| | |
| | | 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; |
| | |
| | | { |
| | | 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 |