Browse Source

修复在未启用mes时进行锁付产品时创建文件夹,保存图片,csv失败与无界面锁付记录

KWD 6 months ago
parent
commit
0115ba3968
1 changed files with 5 additions and 5 deletions
  1. 5 5
      TeamAAS-VM/Core/Management.cs

+ 5 - 5
TeamAAS-VM/Core/Management.cs

@@ -1272,10 +1272,10 @@ namespace TeamAAS_VP.Core
         Int16[] _LastMesCheck = new Int16[10];
         Int16 _LastPickINC = 0;
         DateTime[] _LastMesCheckTime = new DateTime[10];
-        string[] ProductMainSN = new string[10];//产品主sn
-        string[] model_num = new string[10];//产品model_num
-        string[] wo = new string[10];//产品wo
-        string[] color = new string[10];//产品color
+        string[] ProductMainSN { get; set; } = new string[10];//产品主sn
+        string[] model_num { get; set; } = new string[10];//产品model_num
+        string[] wo { get; set; } = new string[10];//产品wo
+        string[] color { get; set; } = new string[10];//产品color
         /// <summary>
         /// PLC命令触发时
         /// </summary>
@@ -2351,7 +2351,7 @@ namespace TeamAAS_VP.Core
                                     }
                                     else
                                     {
-                                        ProductMainSN[i] = DateTime.Now.ToString();
+                                        ProductMainSN[i] = DateTime.Now.ToString("yyyyMMddHHmmssfff");
                                         if (i == 0)
                                         {
                                             _productService.CurrentProductCode = ProductMainSN[i];