Explorar el Código

拆解模块逻辑补充

Hcsy hace 8 años
padre
commit
9baaa2612c

+ 2 - 1
UAS-MES/FunctionCode/Make/Make_Decompose.cs

@@ -259,7 +259,8 @@ namespace UAS_MES.Make
                             string sp_barcoderule = dtbar.Rows[0]["sp_barcoderule"].ToString();
                             if (!LogicHandler.CheckSNBeforeLoad(LabelDataGridView.Rows[i].Cells["New_BarCode"].Value.ToString(), sp_soncode, sp_barcoderule, sp_prefix, length, out ErrorMessage))
                             {
-                                OperateResult.AppendText(">>物料" + LabelDataGridView.Rows[i].Cells["cm_barcode"].Value+" s"+ErrorMessage + "\n", Color.Red);
+                                OperateResult.AppendText(">>物料" + LabelDataGridView.Rows[i].Cells["cm_barcode"].Value+" "+ErrorMessage + "\n", Color.Red);
+                                LoadData(sncode_1, sender, new KeyEventArgs(Keys.Enter));
                                 return;
                             }
                             sql.Clear();

+ 2 - 2
UAS-MES/PublicMethod/BaseUtil.cs

@@ -980,14 +980,14 @@ namespace UAS_MES.PublicMethod
         {
             Process[] processes = System.Diagnostics.Process.GetProcessesByName("lppa");
             List<int> PidList = new List<int>();
-            List<DateTime> Pstarttime = new List<DateTime>();
+            List<System.DateTime> Pstarttime = new List<System.DateTime>();
             int PID = 0;
             for (int i = 0; i < processes.Length; i++)
             {
                 PidList.Add(processes[i].Id);
                 Pstarttime.Add(processes[i].StartTime);
             }
-            DateTime Temp = Pstarttime[0];
+            System.DateTime Temp = Pstarttime[0];
             if (Pstarttime.ToArray().Length > 0)
             {
                 PID = PidList[0];