yhluo 3 дней назад
Родитель
Сommit
10b3450ef0
1 измененных файлов с 29 добавлено и 0 удалено
  1. 29 0
      UAS_MES_XMW/FunctionCode/Make/Make_ServerListen.cs

+ 29 - 0
UAS_MES_XMW/FunctionCode/Make/Make_ServerListen.cs

@@ -16,6 +16,7 @@ using System.Text.RegularExpressions;
 using System.Windows.Forms;
 using UAS_MES_NEW.DataOperate;
 using UAS_MES_NEW.Entity;
+using UAS_MES_NEW.PublicMethod;
 
 namespace UAS_MES_NEW.Make
 {
@@ -255,6 +256,34 @@ namespace UAS_MES_NEW.Make
                             {"SN", serialNumber}
                         };
                         bool success = _printer.PrintLabel(parameters);
+                        if (success)
+                        {
+                            ShowMsg(1, $"序列号:{serialNumber},已打印成功,请查看打印机");
+                            string outMsg, oldWo, oMSID = "";
+                            if (LogicHandler.CheckStepAttribute(Tag.ToString(), User.UserSourceCode, out outMsg))
+                            {
+                                if (LogicHandler.CheckStepSNAndMacode("", User.UserSourceCode, serialNumber, User.UserCode, out oldWo, out oMSID, out outMsg))
+                                {
+                                    if (LogicHandler.SetStepResult1(oldWo, User.UserSourceCode, serialNumber, "", "OK", User.UserCode, out outMsg))
+                                    {
+                                        ShowMsg(1, $"OK,序列号:{serialNumber},记录过站成功");
+                                        LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, oldWo, User.UserLineCode, User.UserSourceCode, "VCR对接打印", "VCR对接打印成功", serialNumber, "");
+                                    }
+                                    else
+                                    {
+                                        ShowMsg(0, $"NG,处理过站失败,{outMsg}");
+                                    }
+                                }
+                                else
+                                {
+                                    ShowMsg(0, $"NG,过站前工序核对,{outMsg}");
+                                }
+                            }
+                            else
+                            {
+                                ShowMsg(0, $"NG,过站前资源核对,{outMsg}");
+                            }
+                        }
                     }
                 }