Просмотр исходного кода

优化采集栈板标签打印

callm 1 день назад
Родитель
Сommit
2dca97157a

+ 5 - 0
UAS_MES_YDCY/FunctionCode/Warehouse/Warehouse_FinishedProductOutSumNEW.cs

@@ -386,6 +386,7 @@ namespace UAS_MES_NEW.Warehouse
                             }
                             dh.BatchInsert("update makeserial set ms_outno='" + pi_inoutno.Text + "' where ms_sncode = :v_barcode and ms_makecode = :v_makecode and ms_outno is null", new string[] { "v_barcode", "v_makecode" }, v_barcode.ToArray(), v_makecode.ToArray());
                             LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, pa_makecode, User.UserLineCode, User.UserSourceCode, "栈板" + input.Text + "出货备货", "栈板" + input.Text + "出货备货成功", input.Text, "");
+                            Printlab.PerformClick();
                         }
                         else if (bigboxBtn.Checked)
                         {
@@ -462,6 +463,10 @@ namespace UAS_MES_NEW.Warehouse
                                 }
                                 dh.BatchInsert("update makeserial set ms_outno='" + pi_inoutno.Text + "' where ms_sncode = :v_barcode and ms_makecode = :v_makecode and ms_outno is null", new string[] { "v_barcode", "v_makecode" }, v_barcode.ToArray(), v_makecode.ToArray());
                                 LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, pa_makecode, User.UserLineCode, User.UserSourceCode, "箱号" + input.Text + "出货备货", "箱号" + input.Text + "出货备货成功", input.Text, "");
+                                if (int.Parse(pa_standardqty.Text) == datatable.Rows.Count)
+                                {
+                                    Printlab.PerformClick();
+                                }
                             }
                             else
                             {