|
@@ -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}";
|