| | |
| | | TaskProcess.OperateStatus(cst, 6); |
| | | break; |
| | | case 7: |
| | | WCSHelper.UpdateStatus(cst, "异常取消"); |
| | | WCSHelper.Cancel(cst); |
| | | WCSHelper.UpdateStatus(cst, "取消"); |
| | | TaskProcess.OperateStatus(cst, 7); |
| | | mst.N_B_STATE = 3; |
| | | WMSHelper.UpdateTaskState(mst); |
| | | break; |
| | | case 8: |
| | | WCSHelper.UpdateStatus(cst, "强制完成"); |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 货位状态反馈 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <returns></returns> |
| | | public static bool locStateFeedBack(LocStateFeedBackModel model) |
| | | { |
| | | bool result = false; |
| | | var task = WCSHelper.GetTask(model.req_no); |
| | | if (task != null) |
| | | { |
| | | TaskAction taskAction = null; |
| | | if (model.type == "1") |
| | | { |
| | | taskAction = WCSHelper.getActionRecord(task.S_CODE, 1101); |
| | | } |
| | | if (model.type == "2") |
| | | { |
| | | taskAction = WCSHelper.getActionRecord(task.S_CODE, 1103); |
| | | } |
| | | if (taskAction != null) |
| | | { |
| | | taskAction.N_S_STATUS = 1; |
| | | result = WCSHelper.updateActionRecord(taskAction); |
| | | } |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 读码反馈 |
| | | /// </summary> |
| | | /// <param name="model"></param> |