| | |
| | | using Furion.Logging; |
| | | using IoTClient; |
| | | using NewLife.Reflection; |
| | | using Org.BouncyCastle.Ocsp; |
| | | using SixLabors.ImageSharp.ColorSpaces; |
| | | using WCS.Application.Entity; |
| | | using WCS.Application.Util; |
| | |
| | | taskModel.taskType = taskTypeModel; |
| | | if (jiebo == "") |
| | | { |
| | | taskModel.targetRoute = new List<targetRoute>() |
| | | |
| | | taskModel.targetRoute = new List<targetRoute>(); |
| | | |
| | | if (taskModel.taskType == "DPJRK") |
| | | { |
| | | new targetRoute(){seq = 0,type = type1,code = modTask.StartLocate}, |
| | | new targetRoute(){seq = 1,type = type2,code = modTask.EndLocate} |
| | | }; |
| | | taskModel.targetRoute.Add(new targetRoute() { |
| | | seq = 0, |
| | | type = "MIX_CONDITION", |
| | | code = new List<object>() { |
| | | new { type = "SITE", code = modTask.StartLocate }, |
| | | new { type = "PILE_COUNT", code = modTask.Qty } |
| | | } |
| | | |
| | | }); |
| | | taskModel.targetRoute.Add(new targetRoute() { seq = 1, type = type2, code = modTask.EndLocate }); |
| | | } |
| | | else |
| | | { |
| | | taskModel.targetRoute.Add(new targetRoute() { seq = 0, type = type1, code = modTask.StartLocate }); |
| | | taskModel.targetRoute.Add(new targetRoute() { seq = 1, type = type2, code = modTask.EndLocate }); |
| | | } |
| | | |
| | | } |
| | | else |
| | | { |
| | |
| | | new targetRoute(){seq = 2,type = type2,code = modTask.EndLocate} |
| | | }; |
| | | } |
| | | |
| | | taskModel.extra = new extra() |
| | | |
| | | taskModel.extra = new extra(); |
| | | |
| | | if (taskModel.taskType != "DPJRK") |
| | | { |
| | | carrierInfo = new List<carrierInfo>() |
| | | taskModel.extra.carrierInfo = new List<carrierInfo>() |
| | | { |
| | | new carrierInfo(){ carrierType = "TP",carrierCode = modTask.PalletNo} |
| | | } |
| | | }; |
| | | }; |
| | | } |
| | | |
| | | |
| | | |
| | | var response = new HttpService().GenAgvSendTask(taskModel).Result; |
| | | if (response.code == "SUCCESS") |
| | | { |