| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Reflection.Emit; |
| | | using System.Security.Cryptography; |
| | | using System.Text; |
| | | using static HH.WCS.DaYang.api.ApiModel; |
| | |
| | | { |
| | | Result<DeviceStatusModel> DeviceStatu = httpHelper.GetDeviceStatus(new string[] { mst.S_END_LOC }, tableUrl.url); |
| | | //设备状态空则允许推送 |
| | | if (DeviceStatu != null && DeviceStatu.Data[0].PhotoStatus == 0) |
| | | if (DeviceStatu != null && DeviceStatu.Data.PhotoStatus == 0) |
| | | { |
| | | result = true; |
| | | |
| | |
| | | { |
| | | var task = WCSHelper.GetTaskByOpName(mst.S_OP_CODE, 3); |
| | | if (task != null) |
| | | { result = true; } |
| | | { |
| | | result = true; |
| | | } |
| | | } |
| | | } |
| | | if (mst.S_TYPE == "出库") |
| | |
| | | { |
| | | var task = WCSHelper.GetTaskByOpName(mst.S_OP_CODE, 3); |
| | | if (task != null) |
| | | { result = true; } |
| | | { |
| | | result = true; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | //如果当前任务不是移库任务,需要判断移库任务是否完成 |
| | | if (mst.S_TYPE != "移库") |
| | | { |
| | | var db = new SqlHelper<object>().GetInstance(); |
| | | var ykmst = db.Queryable<WCSTask>().Where(a => a.S_OP_CODE == mst.S_OP_NAME && a.N_B_STATE == 3 && a.S_TYPE == "移库").First(); |
| | | if (ykmst != null) |
| | | { |
| | | result = true; |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | | #endregion |