浏览代码

添加提示

yhluo 6 天之前
父节点
当前提交
df44c13a7c
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      UAS_MES_BG/FunctionCode/Make/Make_ParseLog.cs

+ 6 - 1
UAS_MES_BG/FunctionCode/Make/Make_ParseLog.cs

@@ -857,8 +857,13 @@ namespace UAS_MES_NEW.Make
                             wo = dt.Rows[0]["ms_makecode"].ToString();
                             line = dt.Rows[0]["ms_linecode"].ToString();
                         }
+                        else
+                        {
+                            LogMessage($"NG,文件{PathName} 序列号{currItem[0]}无归属过站记录");
+                            continue;
+                        }
 
-                        if(string.IsNullOrEmpty(wo) && string.IsNullOrEmpty(line))
+                        if (string.IsNullOrEmpty(wo) && string.IsNullOrEmpty(line))
                         {
                             if (currItem.Length < 3)
                             {