1
0

3 Revīzijas 59bb2846b6 ... 3804ecfc01

Autors SHA1 Ziņojums Datums
  莫海杰 3804ecfc01 提交 1 mēnesi atpakaļ
  莫海杰 d8609e1ca9 Merge branch '71博创自动立库' of http://www.imaodou.com.cn:30030/c_jack/EICP3.0_69 into 71博创自动立库 1 mēnesi atpakaļ
  莫海杰 8ac4a3a23a 临时提交 1 mēnesi atpakaļ

+ 4 - 4
SCADA_DAQ/Customer/Machines/SampleMachine_ScanCompleted.cs

@@ -252,12 +252,12 @@ namespace SCADA_DAQ.Customer.Machines
             if (screen1?.GetListenReg("ScreenRow1") != null && CurrentOperationLine1 != null)
             {
                 var rcl = CurrentOperationLine1.RowColLayerFormat();
-                screen1?.GetListenReg("ScreenRow1").WriteReg($"    {rcl}");
+                screen1?.GetListenReg("ScreenRow1").WriteReg($"       {rcl}");
                 screen1?.GetListenReg("ScreenRow2").WriteReg(CurrentOperationLine1.ItemName);
             }
             if (screen1?.GetListenReg("ScreenRow1") != null && CurrentOperationLine1 == null)
             {
-                screen1?.GetListenReg("ScreenRow1").WriteReg("    00-000-00");
+                screen1?.GetListenReg("ScreenRow1").WriteReg("       00-000-00");
                 screen1?.GetListenReg("ScreenRow2").WriteReg(" ");
             }
 
@@ -265,12 +265,12 @@ namespace SCADA_DAQ.Customer.Machines
             if (screen2?.GetListenReg("ScreenRow1") != null && CurrentOperationLine2 != null)
             {
                 var rcl = CurrentOperationLine2.RowColLayerFormat();
-                screen2?.GetListenReg("ScreenRow1").WriteReg($"    {rcl}");
+                screen2?.GetListenReg("ScreenRow1").WriteReg($"       {rcl}");
                 screen2?.GetListenReg("ScreenRow2").WriteReg(CurrentOperationLine2.ItemName);
             }
             if (screen2?.GetListenReg("ScreenRow1") != null && CurrentOperationLine2 == null)
             {
-                screen2?.GetListenReg("ScreenRow1").WriteReg("    00-000-00");
+                screen2?.GetListenReg("ScreenRow1").WriteReg("       00-000-00");
                 screen2?.GetListenReg("ScreenRow2").WriteReg(" ");
             }
 

+ 9 - 2
SCADA_DAQ/Customer/Service/Wcs_WebOperationService.cs

@@ -1,4 +1,5 @@
-using SCADA.CommonLib;
+using DBModel;
+using SCADA.CommonLib;
 using SCADA.CommonLib.Helper;
 using SCADA_DAQ.Customer.Machines;
 using SCADA_DAQ.Customer.Models;
@@ -81,7 +82,13 @@ namespace SCADA_DAQ.Customer.Service
                     return res;
                 }
             }
-            var sl = operation.RowColLayerFormat();
+            var rcl = $"L-{operation.RowColLayerFormat()}";
+            var inventory = Env.DAL.App_BC_Inventory.GetData<App_BC_Inventory>(t=>t.SourceLocation_Str == rcl).FirstOrDefault();
+            if (inventory != null)
+            {
+                operation.ItemName = inventory.ItemName_Str ?? " ";
+                operation.ItemCode = inventory.ItemCode_Str;
+            }
             if (operation.Crane == 1)
             {
                 CustomerEnv.OperationCrane1List.Add(operation);

+ 10 - 3
SCADA_DAQ/Customer/Service/Wcs_WmsService.cs

@@ -382,11 +382,18 @@ namespace SCADA_DAQ.Customer.Service
                 }
             });
             wmsTasks.Sort((item1, item2) => item1.TaskNo.CompareTo(item2.TaskNo)); //排序
-            var dbRes = Env.DAL.Insert(noSourceLocationWmsTask);
+            var dbRes = new SCADA.CommonLib.Data.ExecuteResult
+            {
+                IsSucceed = true
+            };
+            if (noSourceLocationWmsTask.Count != 0)
+            {
+                dbRes = Env.DAL.Insert(noSourceLocationWmsTask);
+            }
             Log.Info(taskNos);
-            //sourceLocationWmsTask = sourceLocationWmsTask.Where(t=>!t.WoNo.StartsWith("CS12")).ToList();
+
             AddDeviceTaskList(sourceLocationWmsTask);
-            //UpLoadWms(sourceLocationWmsTask);
+
             if (dbRes.IsSucceed == true)
             {
                 res.Message = $"{taskNos}";