|
|
@@ -296,8 +296,16 @@ namespace UAS_MES.Make
|
|
|
{
|
|
|
dh.ExecuteSql("update package set pa_status=1 where pa_outboxcode='" + pa_outboxcode.Text + "'", "update");
|
|
|
OperateResult.AppendText("栈板" + pa_outboxcode.Text + "已装满,封栈板成功\n");
|
|
|
- pa_outboxcode.Focus();
|
|
|
- pa_outboxcode.SelectAll();
|
|
|
+ if (!AutoOutBoxCode.Checked)
|
|
|
+ {
|
|
|
+ pa_outboxcode.Focus();
|
|
|
+ pa_outboxcode.SelectAll();
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ outboxcode.Focus();
|
|
|
+ outboxcode.SelectAll();
|
|
|
+ }
|
|
|
if (AutoPrint.Checked)
|
|
|
{
|
|
|
OperateResult.AppendText(">>打印栈板" + pa_outboxcode.Text + ",自动打印!\n", Color.Green);
|
|
|
@@ -406,6 +414,10 @@ namespace UAS_MES.Make
|
|
|
pa_outboxcode.Focus();
|
|
|
pa_outboxcode.SelectAll();
|
|
|
}
|
|
|
+ else {
|
|
|
+ outboxcode.Focus();
|
|
|
+ outboxcode.SelectAll();
|
|
|
+ }
|
|
|
//doc = lbl.Documents.Open(PrintLabel.Text);
|
|
|
if (Print.CodeSoft(Tag.ToString(), ref lbl, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), PrinterList.Text, pa_outboxcode.Text, int.Parse(PrintNum.Text), pa_makecode.Text, pa_prodcode.Text, "栈板标", "0", out ErrorMessage))
|
|
|
{
|
|
|
@@ -488,6 +500,16 @@ namespace UAS_MES.Make
|
|
|
LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, pa_makecode.Text, User.UserLineCode, User.UserSourceCode, "栈板采集", "封栈板" + pa_outboxcode.Text + "成功", outboxcode.Text, "");
|
|
|
dh.ExecuteSql("update package set pa_status=1 where pa_outboxcode='" + pa_outboxcode.Text + "'", "update");
|
|
|
pa_status.Text = "1";
|
|
|
+ if (!AutoOutBoxCode.Checked)
|
|
|
+ {
|
|
|
+ pa_outboxcode.Focus();
|
|
|
+ pa_outboxcode.SelectAll();
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ outboxcode.Focus();
|
|
|
+ outboxcode.SelectAll();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
else OperateResult.AppendText(">>栈板号" + pa_outboxcode.Text + "已封栈板\n", Color.Red);
|