| | |
| | | using HH.WCS.Hexafluo.util; |
| | | using HH.WCS.Hexafluo.api; |
| | | using HH.WCS.Hexafluo.util; |
| | | using HH.WCS.Hexafluo.wms; |
| | | using HH.WCS.SJML.Bll; |
| | | using HH.WCS.SJML.dispatch; |
| | | using HH.WCS.SJML.util; |
| | | using HH.WCS.ZCQTJ.Entitys; |
| | | using SqlSugar; |
| | |
| | | var ta = BLLCreator.Create<StateTaskBLL>().ExecuteState(item.S_VALUE_JSON, "取消", logPara); |
| | | if (ta.Success) |
| | | { |
| | | if (ttg.S_NOTE.Equals("agv任务") && ta.Success) |
| | | { |
| | | if (ttg.S_TASK_NO.IndexOf('_') > 0 && ttg.S_TYPE == "入库") |
| | | { |
| | | |
| | | BLLCreator.Create<WmsController>().AgvStateWcsIn(ttg, logPara); |
| | | } |
| | | else if (ttg.S_TASK_NO.IndexOf('_') > 0 && ttg.S_TYPE == "出库") |
| | | { |
| | | var tac = newDb.Queryable<WmsTaskAction>().Where(a => a.S_TASK_NO == ttg.S_TASK_NO && a.S_ACTION_CODE == "1101")?.First(); |
| | | if (tac != null) |
| | | { |
| | | LogHelper.TaskDetail(logPara, "完工回报 调用安全请求取消:"); |
| | | var Wcs = BLLCreator.Create<WcsTask>().WcsCallback(ttg, 7, ttg.S_EQ_NO); |
| | | } |
| | | } |
| | | } |
| | | try |
| | | { |
| | | newDb.BeginTran(); |