|
|
@@ -565,8 +565,13 @@ namespace UAS_MES.Make
|
|
|
{
|
|
|
if (dh.CheckExist("package", "pa_outboxcode='" + pa_outboxcode.Text + "' and nvl(pa_status,0)=0"))
|
|
|
{
|
|
|
-
|
|
|
- string Seal = MessageBox.Show(this.ParentForm, "是否确认封箱?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question).ToString();
|
|
|
+ string Seal = "";
|
|
|
+ if (sender != "true")
|
|
|
+ {
|
|
|
+ Seal = MessageBox.Show(this.ParentForm, "是否确认封箱?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question).ToString();
|
|
|
+ }
|
|
|
+ else
|
|
|
+ Seal = "Yes";
|
|
|
if (Seal == "Yes")
|
|
|
{
|
|
|
LoadData();
|
|
|
@@ -976,7 +981,7 @@ namespace UAS_MES.Make
|
|
|
LoadGridData();
|
|
|
if (int.Parse(pa_currentqty.Text == "" ? "0" : pa_currentqty.Text) == int.Parse(pr_outboxinnerqty.Text))
|
|
|
{
|
|
|
- Packing_Click(new object(), new EventArgs());
|
|
|
+ Packing_Click("true", new EventArgs());
|
|
|
}
|
|
|
if (!AutoGenBoxCode.Checked)
|
|
|
{
|