Ver código fonte

修改采集后Grid刷新再打印之前

章政 8 anos atrás
pai
commit
e56d4db288

+ 1 - 1
UAS-MES/FunctionCode/Make/Make_PackageCollection.cs

@@ -252,6 +252,7 @@ namespace UAS_MES.Make
                                         LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, oMakeCode, User.UserLineCode, User.UserSourceCode, "装箱采集", "采集成功", sn_code.Text, "");
                                         //满箱更新状态为1
                                         LoadData();
+                                        LoadGridData();
                                         if (int.Parse(pa_currentqty.Text == "" ? "0" : pa_currentqty.Text) == pr_outboxinnerqty.Value)
                                         {
                                             dh.UpdateByCondition("package", "pa_status=1,pa_packageqty=pa_currentqty", "pa_outboxcode='" + pa_outboxcode.Text + "'");
@@ -260,7 +261,6 @@ namespace UAS_MES.Make
                                             if (AutoPrint.Checked)
                                                 Print_Click(new object(), new EventArgs());
                                         }
-                                        LoadGridData();
                                         sn_code.Clear();
                                     }
                                     else OperateResult.AppendText(">>" + ErrorMessage + "\n", Color.Red);