| | |
| | | using HH.WCS.JiaTong.dispatch; |
| | | using HH.WCS.JiaTong.device; |
| | | using HH.WCS.JiaTong.dispatch; |
| | | using HH.WCS.JiaTong.process; |
| | | using HH.WCS.JiaTong.util; |
| | | using HH.WCS.JiaTong.wms; |
| | |
| | | using System.Linq; |
| | | using System.Net.NetworkInformation; |
| | | using System.Security.Policy; |
| | | using System.Threading; |
| | | using System.Threading.Tasks; |
| | | using System.Web.Services.Description; |
| | | using static HH.WCS.JiaTong.api.ApiModel; |
| | | using static HH.WCS.JiaTong.util.Settings; |
| | | |
| | |
| | | } |
| | | WCSHelper.AddActionRecord(model.task_no, model.state, model.forklift_no, model.ext_data); |
| | | |
| | | //复杂业务线程处理 不影响回报 |
| | | |
| | | //物料到位通知 |
| | | if ((TN_Task.S_TYPE == "出平库" || TN_Task.S_TYPE == "余料返回") && model.state == 6) |
| | | { |
| | |
| | | //TN_Task = WCSHelper.GetTask(TN_Task.S_CODE); |
| | | string urlstate = Settings.tableUrls.Find(a => a.id == 4).url; |
| | | TaskProcess.MESReportback(TN_Task, model.state, urlstate); |
| | | |
| | | //立库与wms任务回报 |
| | | TableUrl url = null; |
| | | switch (TN_Task.Z_TYPE) |
| | |
| | | break; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | else |
| | | { |
| | | |
| | | var db = new SqlHelper<TaskAction>().GetInstance(); |
| | | var taskAction = db.Queryable<TaskAction>().Where(a => a.S_TASK_CODE == model.task_no && a.N_ACTION_CODE == model.state).First(); |
| | | if (taskAction == null) |
| | |
| | | { |
| | | LogHelper.Info($"安全请求:未找到回报地址,请检查配置文件==>{JsonConvert.SerializeObject(Settings.tableUrls)}"); |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
| | | } |