| | |
| | | while (true) |
| | | { |
| | | if (/*list.Count > 0 && */WebSocketClientWithReconnect.GetWebSocketState() == WebSocketState.Open) |
| | | for (int i = 60000; i < 70000; i++) |
| | | for (int i = 0; i < 70000; i++) |
| | | { |
| | | Thread.Sleep(1000); |
| | | Console.WriteLine($"{DateTime.Now.ToString("HH:mm:ss.fff")}>>>GGG{i}"); |
| | | LogHelper.Info($"{DateTime.Now.ToString("HH:mm:ss.fff")}>>>GGG{i}"); |
| | | var b = WebSocketClientWithReconnect.Instance?.SendAsync($"He >>GGG{i}").Result; |
| | | Console.WriteLine("åé宿ï¼ï¼" + b); |
| | | Console.WriteLine($"{DateTime.Now.ToString("HH:mm:ss.fff")}>>>åé 第 {i} æ¡"); |
| | | //LogHelper.Info($"Hello Server {i}"); |
| | | var req = new ReportWeightInfoRequest |
| | | { |
| | | data = new ReportWeightInfoData |
| | | { |
| | | header = new ReportWeightInfoHeader |
| | | { |
| | | deliveryNo = "F0000" + i, |
| | | grossWeight = i, |
| | | cube = i, |
| | | addTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"), |
| | | addWho = "WCS" |
| | | } |
| | | } |
| | | }; |
| | | var b = WebSocketClientWithReconnect.Instance?.SendAsync(JsonConvert.SerializeObject(req)).Result; |
| | | Console.WriteLine($"{DateTime.Now.ToString("HH:mm:ss.fff")}>>åé宿ï¼ï¼" + b); |
| | | if (b == true) |
| | | { |
| | | // çå¾
ç¹å®ååº |
| | | |
| | | var rr = reportWeightinfo.GetChinnnl().Result; |
| | | |
| | | //LogHelper.Info($" {DateTime.Now.ToString("HH:mm:ss.fff")}>> æ¥æ¶" + JsonConvert.SerializeObject(rr)); |
| | | //} |
| | | Console.WriteLine($"{DateTime.Now.ToString("HH:mm:ss.fff")}>>" + JsonConvert.SerializeObject(rr)); |
| | | } |
| | | else Console.WriteLine("åé失败ã"); |
| | | } |
| | | Thread.Sleep(1000); |
| | | } |
| | |
| | | new HttpServer(ip.ToString()).HttpServerRun(); |
| | | //new TcpServer(ip.ToString()); |
| | | //var server = new EnhancedWebSocketServer($"http://{ip.ToString()}:8809/").StartAsync(); http://10.20.66.121:18080 |
| | | new WebSocketClientWithReconnect($"ws://10.20.66.121:18080/socket").StartAsync(); |
| | | new WebSocketClientWithReconnect($"ws://10.20.66.121:20001/socket").StartAsync(); |
| | | //new WebSocketClientWithReconnect($"ws://{ip.ToString()}:8809/socket").StartAsync(); |
| | | WebSocketClientWithReconnect.Instance.OnMessageReceived += (msg) => |
| | | { |
| | | reportWeightinfo.channel.Writer.TryWrite(JsonConvert.DeserializeObject<ReportWeightInfoResponse>(msg)); |
| | | //reportWeightinfo.channel.Writer.TryWrite(JsonConvert.DeserializeObject<ReportWeightInfoResponse>(msg)); |
| | | reportWeightinfo.channel.Writer.TryWrite(new ReportWeightInfoResponse |
| | | { |
| | | Response = new ReportWeightInfoResponseData |
| | | { |
| | | Return = new ReportWeightInfoReturnInfo |
| | | { |
| | | returnCode = "0000", |
| | | sortingChute = msg |
| | | } |
| | | } |
| | | }); |
| | | }; |
| | | break; |
| | | } |
| | |
| | | case "/api/Wcs/RemoveTask": |
| | | { |
| | | statusCode = System.Net.HttpStatusCode.OK; |
| | | lstr.RemoveAll(x => x.PalletId == requestJson); |
| | | putConveyorTasks.RemoveAll(x => x.PalletId == requestJson); |
| | | lstr.RemoveAll(x => x.palletId == requestJson); |
| | | putConveyorTasks.RemoveAll(x => x.palletId == requestJson); |
| | | break; |
| | | } |
| | | ///ä»»å¡ä¸å--WMS-->WC |
| | |
| | | { |
| | | statusCode = System.Net.HttpStatusCode.OK; |
| | | var req = JsonConvert.DeserializeObject<SendTaskRequest>(requestJson); |
| | | if (req.Data == null || lstr.Find(x => x.GroupTaskSequence == req.Data.Header.GroupTaskSequence && x.GroupTaskId == req.Data.Header.GroupTaskId) != null) |
| | | if (req == null || req.data == null || lstr.Find(x => x.groupTaskSequence == req.data.header.groupTaskSequence && x.groupTaskId == req.data.header.groupTaskId) != null) |
| | | { |
| | | if (req == null || req.data == null) |
| | | |
| | | return JsonConvert.SerializeObject(new SendTaskResponse |
| | | { |
| | | Response = new ResponseData |
| | | { |
| | | Return = new ReturnInfo |
| | | { |
| | | ReturnCode = "0001", |
| | | ReturnDesc = req.Data == null ? "æ ä»»å¡ä¸åï¼" : "ä»»å¡éå¤ä¸åï¼", |
| | | ReturnFlag = "0" |
| | | returnCode = "0001", |
| | | returnDesc = req?.data == null ? "æ ä»»å¡ä¸åï¼" : "ä»»å¡éå¤ä¸åï¼", |
| | | returnFlag = "0" |
| | | } |
| | | } |
| | | }); |
| | | lstr.Add(req.Data.Header); |
| | | else |
| | | return JsonConvert.SerializeObject(new SendTaskResponse |
| | | { |
| | | Response = new ResponseData |
| | | { |
| | | Return = new ReturnInfo |
| | | { |
| | | ReturnCode = "0000", |
| | | ReturnDesc = "ok", |
| | | ReturnFlag = "1" |
| | | returnCode = "0000", |
| | | returnDesc = "ä»»å¡éå¤ä¸åï¼", |
| | | returnFlag = "1" |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | lstr.Add(req.data.header); |
| | | return JsonConvert.SerializeObject(new SendTaskResponse |
| | | { |
| | | Response = new ResponseData |
| | | { |
| | | Return = new ReturnInfo |
| | | { |
| | | returnCode = "0000", |
| | | returnDesc = "ok", |
| | | returnFlag = "1" |
| | | } |
| | | } |
| | | }); |
| | |
| | | case "/api/Wcs/stockInException": |
| | | { |
| | | statusCode = System.Net.HttpStatusCode.OK; |
| | | var f = string.IsNullOrEmpty(requestJson) ? lstr.FirstOrDefault() : lstr.Find(x => x.PalletId == requestJson); |
| | | var str = apiHelper.Post("http://10.20.66.121:18080/datahubjson/wcs/?method=STOCKINEXCEPTION", JsonConvert.SerializeObject(new StockInExceptionRequest |
| | | var f = string.IsNullOrEmpty(requestJson) ? lstr.FirstOrDefault() : lstr.Find(x => x.palletId == requestJson); |
| | | var str = apiHelper.Post("http://10.20.66.121:18080/datahubjson/wcs/?method=STOCKINEXCEP", JsonConvert.SerializeObject(new StockInExceptionRequest |
| | | { |
| | | Data = new StockInExceptionData |
| | | data = new StockInExceptionData |
| | | { |
| | | Header = new StockInExceptionHeader |
| | | header = new StockInExceptionHeader |
| | | { |
| | | OrganizationId = f.OrganizationId, |
| | | WarehouseId = f.WarehouseId, |
| | | GroupTaskId = f.GroupTaskId, |
| | | GroupTaskSequence = f.GroupTaskSequence, |
| | | PalletId = f.PalletId, |
| | | AddTime = f.AddTime, |
| | | AddWho = f.AddWho, |
| | | Reason = "åºä½æè´§ä¸å¯ç¨", |
| | | ReasonCode = "01" |
| | | organizationId = f.organizationId, |
| | | warehouseId = f.warehouseId, |
| | | groupTaskId = f.groupTaskId, |
| | | groupTaskSequence = f.groupTaskSequence, |
| | | palletId = f.palletId, |
| | | addTime = f.addTime.ToString("yyyy-MM-dd HH:mm:ss"), |
| | | addWho = f.addWho, |
| | | reason = "åºä½æè´§ä¸å¯ç¨", |
| | | reasonCode = "01" |
| | | } |
| | | } |
| | | })); |
| | | |
| | | var strres = JsonConvert.DeserializeObject<StockInExceptionResponse>(str); |
| | | if (strres.Response.Return.returnCode == "0000") |
| | | { |
| | | f.toPosition = strres.Response.Return.toPosition; |
| | | f.toLocation = strres.Response.Return.toLocation; |
| | | } |
| | | return str; |
| | | } |
| | | ///ä»»å¡ç¶æåé¦ WCS-->WM |
| | |
| | | statusCode = System.Net.HttpStatusCode.OK; |
| | | //foreach (var statu in new List<string> { "", "" }) |
| | | { |
| | | var f = string.IsNullOrEmpty(requestJson) ? lstr.FirstOrDefault() : lstr.Find(x => x.PalletId == requestJson); |
| | | var f = string.IsNullOrEmpty(requestJson) ? lstr.FirstOrDefault() : lstr.Find(x => x.palletId == requestJson); |
| | | var str = apiHelper.Post("http://10.20.66.121:18080/datahubjson/wcs/?method=TASKFEEDBACK", JsonConvert.SerializeObject(new TaskFeedbackRequest |
| | | { |
| | | Data = new TaskFeedbackData |
| | | data = new TaskFeedbackData |
| | | { |
| | | Header = new TaskFeedbackHeader |
| | | header = new TaskFeedbackHeader |
| | | { |
| | | OrganizationId = f.OrganizationId, |
| | | WarehouseId = f.WarehouseId, |
| | | GroupTaskId = f.GroupTaskId, |
| | | GroupTaskSequence = f.GroupTaskSequence, |
| | | PalletId = f.PalletId, |
| | | FmLocation = f.FmLocation, |
| | | FmPosition = f.FmPosition, |
| | | ToLocation = f.ToLocation, |
| | | ToPosition = f.ToPosition, |
| | | TaskStatus = "80", |
| | | TaskType = f.TaskType, |
| | | CloseTime = DateTime.Now, |
| | | CloseWho = f.AddWho |
| | | organizationId = f.organizationId, |
| | | warehouseId = f.warehouseId, |
| | | groupTaskId = f.groupTaskId, |
| | | groupTaskSequence = f.groupTaskSequence, |
| | | palletId = f.palletId, |
| | | fmLocation = f.fmLocation, |
| | | fmPosition = f.fmPosition, |
| | | toLocation = f.toLocation, |
| | | toPosition = f.toPosition, |
| | | taskStatus = "80", |
| | | taskType = f.taskType, |
| | | closeTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), |
| | | closeWho = f.addWho |
| | | } |
| | | } |
| | | })); |
| | |
| | | case "/api/Wcs/stockInInteraction": |
| | | { |
| | | statusCode = System.Net.HttpStatusCode.OK; |
| | | var str = apiHelper.Post("http://10.20.66.121:18080/datahubjson/wcs/?method=STOCKININTERACTION", JsonConvert.SerializeObject(new StockInInteractionRequest |
| | | var req = JsonConvert.DeserializeObject<StockInInteractionRequest>(requestJson); |
| | | |
| | | var str = apiHelper.Post("http://10.20.66.121:18080/datahubjson/wcs/?method=STOCKININTERACTION", requestJson); |
| | | //var str = @"{""Response"":{""return"":{""returnCode"":""0000"",""returnDesc"":""Success"",""returnFlag"":""1"",""groupTaskId"":""GT250708000001"",""groupTaskSequence"":""1"",""taskStatus"":""00"",""taskType"":""PA"",""priority"":""3"",""toLocation"":""5A070101"",""toPosition"":""01""}}}"; |
| | | var res = JsonConvert.DeserializeObject<StockInInteractionResponse>(str); |
| | | if (res.Response.Return.returnCode == "0000") |
| | | { |
| | | Data = new StockInInteractionData |
| | | var from = req.data.header; |
| | | var resss = res.Response.Return; |
| | | lstr.Add(new SendTaskHeader |
| | | { |
| | | Header = new StockInInteractionHeader |
| | | groupTaskId = resss.groupTaskId, |
| | | groupTaskSequence = resss.groupTaskSequence, |
| | | fmLocation = from.fmLocation, |
| | | fmPosition = from.fmPosition, |
| | | palletId = from.palletId, |
| | | taskStatus = resss.taskStatus, |
| | | taskType = resss.taskType, |
| | | priority = resss.priority, |
| | | toLocation = resss.toLocation, |
| | | toPosition = resss.toPosition, |
| | | addTime = DateTime.Now, |
| | | addWho = from.addWho, |
| | | }); |
| | | } |
| | | return str;// + JsonConvert.SerializeObject(lstr); |
| | | var str1 = apiHelper.Post("http://10.20.66.121:18080/datahubjson/wcs/?method=STOCKININTERACTION", JsonConvert.SerializeObject(new StockInInteractionRequest |
| | | { |
| | | PalletId = "TP9901", |
| | | GrossWeight = 99, |
| | | PalletWidth = 99, |
| | | FmLocation = "", |
| | | FmPosition = "", |
| | | AddTime = DateTime.Now, |
| | | AddWho = "" |
| | | data = new StockInInteractionData |
| | | { |
| | | header = new StockInInteractionHeader |
| | | { |
| | | palletId = "TP9901", |
| | | grossWeight = 99, |
| | | palletWidth = 99, |
| | | fmLocation = "", |
| | | fmPosition = "", |
| | | addTime = DateTime.Now, |
| | | addWho = "" |
| | | } |
| | | } |
| | | })); |
| | | return str; |
| | | return str1; |
| | | } |
| | | ///å
¥åºäº¤äº ãWCS-->WMS |
| | | case "/api/Wcs/stockInInteraction2": |
| | | { |
| | | statusCode = System.Net.HttpStatusCode.OK; |
| | | var req = JsonConvert.DeserializeObject<StockInInteractionRequest>(requestJson); |
| | | |
| | | var str = apiHelper.Post("http://10.20.66.121:18080/datahubjson/wcs/?method=STOCKININTERACTION", requestJson); |
| | | //var str = @"{""Response"":{""return"":{""returnCode"":""0000"",""returnDesc"":""Success"",""returnFlag"":""1"",""groupTaskId"":""GT250708000001"",""groupTaskSequence"":""1"",""taskStatus"":""00"",""taskType"":""PA"",""priority"":""3"",""toLocation"":""5A070101"",""toPosition"":""01""}}}"; |
| | | var res = JsonConvert.DeserializeObject<StockInInteractionResponse>(str); |
| | | if (res.Response.Return.returnCode == "0000") |
| | | { |
| | | var from = req.data.header; |
| | | var resss = res.Response.Return; |
| | | lstr.Add(new SendTaskHeader |
| | | { |
| | | groupTaskId = resss.groupTaskId, |
| | | groupTaskSequence = resss.groupTaskSequence, |
| | | fmLocation = from.fmLocation, |
| | | fmPosition = from.fmPosition, |
| | | palletId = from.palletId, |
| | | taskStatus = resss.taskStatus, |
| | | taskType = resss.taskType, |
| | | priority = resss.priority, |
| | | toLocation = resss.toLocation, |
| | | toPosition = resss.toPosition, |
| | | addTime = DateTime.Now, |
| | | addWho = from.addWho, |
| | | }); |
| | | } |
| | | return str;// + JsonConvert.SerializeObject(lstr); |
| | | var str1 = apiHelper.Post("http://10.20.66.121:18080/datahubjson/wcs/?method=STOCKININTERACTION", JsonConvert.SerializeObject(new StockInInteractionRequest |
| | | { |
| | | data = new StockInInteractionData |
| | | { |
| | | header = new StockInInteractionHeader |
| | | { |
| | | palletId = "TP9901", |
| | | grossWeight = 99, |
| | | palletWidth = 99, |
| | | fmLocation = "", |
| | | fmPosition = "", |
| | | addTime = DateTime.Now, |
| | | addWho = "" |
| | | } |
| | | } |
| | | })); |
| | | return str1; |
| | | } |
| | | |
| | | ///ä»»å¡åæ¶ã WMS-->WCS |
| | |
| | | { |
| | | statusCode = System.Net.HttpStatusCode.OK; |
| | | var req = JsonConvert.DeserializeObject<CancelTaskRequest>(requestJson); |
| | | var task = lstr.Find(x => x.GroupTaskId == req.Data.Header.GroupTaskId && x.GroupTaskSequence == req.Data.Header.GroupTaskSequence); |
| | | var task = lstr.Find(x => x.groupTaskId == req.data.header.groupTaskId && x.groupTaskSequence == req.data.header.groupTaskSequence); |
| | | if (task == null) |
| | | return JsonConvert.SerializeObject(new CancelTaskResponse |
| | | { |
| | |
| | | { |
| | | Return = new ReturnInfo |
| | | { |
| | | ReturnCode = "0001", |
| | | ReturnDesc = "ä»»å¡ä¸åå¨ï¼ï¼ï¼", |
| | | ReturnFlag = "0" |
| | | returnCode = "0001", |
| | | returnDesc = "ä»»å¡ä¸åå¨ï¼ï¼ï¼", |
| | | returnFlag = "0" |
| | | } |
| | | } |
| | | }); |
| | |
| | | { |
| | | Return = new ReturnInfo |
| | | { |
| | | ReturnCode = "0000", |
| | | ReturnDesc = "", |
| | | ReturnFlag = "1" |
| | | returnCode = "0000", |
| | | returnDesc = "", |
| | | returnFlag = "1" |
| | | } |
| | | } |
| | | }); |
| | |
| | | case "/api/Wcs/palletStackerInteraction": |
| | | { |
| | | statusCode = System.Net.HttpStatusCode.OK; |
| | | var str = apiHelper.Post("http://10.20.66.121:18080/datahubjson/wcs/?method=PALLETSTACKERINTERACTION", JsonConvert.SerializeObject(new PalletStackerInteractionRequest |
| | | |
| | | var str = apiHelper.Post("http://10.20.66.121:18080/datahubjson/wcs/?method=PALLETSTACKERINTERACTION", !string.IsNullOrEmpty(requestJson) ? requestJson : JsonConvert.SerializeObject(new PalletStackerInteractionRequest |
| | | { |
| | | Data = new PalletStackerInteractionData |
| | | data = new PalletStackerInteractionData |
| | | { |
| | | Header = new PalletStackerInteractionHeader |
| | | header = new PalletStackerInteractionHeader |
| | | { |
| | | PalletId = "TP9901", |
| | | TaskId = $"X{DateTime.Now.ToString("yyyy-MM-dd")}001", |
| | | TaskType = "PI", |
| | | FmLocation = "2FC1076", |
| | | AddTime = DateTime.Now, |
| | | AddWho = "wcs" |
| | | palletId = "TP9901", |
| | | taskId = $"X{DateTime.Now.ToString("yyyyMMdd")}001", |
| | | taskType = "PI", |
| | | fmLocation = "2FC1076", |
| | | addTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), |
| | | addWho = "wcs" |
| | | } |
| | | } |
| | | })); |
| | |
| | | List<TaskErrorInfo> taskErrorInfos = new List<TaskErrorInfo>(); |
| | | if (req != null) |
| | | { |
| | | foreach (var item in req.Data.Header) |
| | | foreach (var item in req.data.header) |
| | | { |
| | | var task = lstr.Find(x => x.GroupTaskSequence == item.GroupTaskSequence && x.GroupTaskId == item.GroupTaskId); |
| | | var task = lstr.Find(x => x.groupTaskSequence == item.groupTaskSequence && x.groupTaskId == item.groupTaskId); |
| | | if (task != null) |
| | | { |
| | | task.Priority = item.Priority; |
| | | task.priority = item.priority; |
| | | } |
| | | else |
| | | { |
| | | taskErrorInfos.Add(new TaskErrorInfo |
| | | { |
| | | GroupTaskId = item.GroupTaskId, |
| | | GroupTaskSequence = item.GroupTaskSequence, |
| | | ErrorCode = "0001", |
| | | ErrorDesc = "没è¿ä¸ªä»»å¡" |
| | | groupTaskId = item.groupTaskId, |
| | | groupTaskSequence = item.groupTaskSequence, |
| | | errorCode = "0001", |
| | | errorDesc = "没è¿ä¸ªä»»å¡" |
| | | }); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | if (req == null || req.Data.Header.Count == taskErrorInfos.Count) |
| | | if (req == null || req.data.header.Count == taskErrorInfos.Count) |
| | | return JsonConvert.SerializeObject(new ModifyTaskPriorityResponse |
| | | { |
| | | Response = new ModifyTaskPriorityResponseData |
| | | { |
| | | Return = new ModifyTaskPriorityReturnInfo |
| | | { |
| | | ReturnCode = "0001", |
| | | ReturnDesc = "没æä»»å¡å¯æ´æ¹", |
| | | ReturnFlag = "0" |
| | | returnCode = "0001", |
| | | returnDesc = "没æä»»å¡å¯æ´æ¹", |
| | | returnFlag = "0" |
| | | } |
| | | } |
| | | }); |
| | |
| | | { |
| | | Return = new ModifyTaskPriorityReturnInfo |
| | | { |
| | | ReturnCode = "0000", |
| | | ReturnFlag = "1" |
| | | returnCode = "0000", |
| | | returnFlag = "1" |
| | | } |
| | | } |
| | | }); |
| | |
| | | { |
| | | Return = new ModifyTaskPriorityReturnInfo |
| | | { |
| | | ReturnCode = "0001", |
| | | ReturnDesc = "é¨åä»»å¡å¯æ´æ¹", |
| | | ReturnFlag = "2", |
| | | ResultInfo = taskErrorInfos |
| | | returnCode = "0001", |
| | | returnDesc = "é¨åä»»å¡å¯æ´æ¹", |
| | | returnFlag = "2", |
| | | resultInfo = taskErrorInfos |
| | | } |
| | | } |
| | | }); |
| | |
| | | List<TaskErrorInfo> taskErrorInfos = new List<TaskErrorInfo>(); |
| | | if (req != null) |
| | | { |
| | | foreach (var item in req.Data.Header) |
| | | foreach (var item in req.data.header) |
| | | { |
| | | var task = putConveyorTasks.Find(x => x.GroupTaskSequence == item.GroupTaskSequence && x.GroupTaskId == item.GroupTaskId); |
| | | var task = putConveyorTasks.Find(x => x.groupTaskSequence == item.groupTaskSequence && x.groupTaskId == item.groupTaskId); |
| | | if (task == null) |
| | | { |
| | | putConveyorTasks.Add(item); |
| | |
| | | { |
| | | taskErrorInfos.Add(new TaskErrorInfo |
| | | { |
| | | GroupTaskId = item.GroupTaskId, |
| | | GroupTaskSequence = item.GroupTaskSequence, |
| | | ErrorCode = "0001", |
| | | ErrorDesc = "éå¤" |
| | | groupTaskId = item.groupTaskId, |
| | | groupTaskSequence = item.groupTaskSequence, |
| | | errorCode = "0001", |
| | | errorDesc = "éå¤" |
| | | }); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | if (req == null || req.Data.Header.Count == taskErrorInfos.Count) |
| | | if (req == null || req.data.header.Count == taskErrorInfos.Count) |
| | | return JsonConvert.SerializeObject(new PutConveyorTaskResponse |
| | | { |
| | | Response = new PutConveyorTaskResponseData |
| | | { |
| | | Return = new PutConveyorTaskReturnInfo |
| | | { |
| | | ReturnCode = "0001", |
| | | ReturnDesc = "å
¨é¨éå¤", |
| | | ReturnFlag = "0" |
| | | returnCode = "0001", |
| | | returnDesc = "å
¨é¨éå¤", |
| | | returnFlag = "0" |
| | | } |
| | | } |
| | | }); |
| | |
| | | { |
| | | Return = new PutConveyorTaskReturnInfo |
| | | { |
| | | ReturnCode = "0000", |
| | | ReturnFlag = "1" |
| | | returnCode = "0000", |
| | | returnFlag = "1" |
| | | } |
| | | } |
| | | }); |
| | |
| | | { |
| | | Return = new PutConveyorTaskReturnInfo |
| | | { |
| | | ReturnCode = "0001", |
| | | ReturnDesc = "é¨åéå¤", |
| | | ReturnFlag = "2", |
| | | ResultInfo = taskErrorInfos |
| | | returnCode = "0001", |
| | | returnDesc = "é¨åéå¤", |
| | | returnFlag = "2", |
| | | resultInfo = taskErrorInfos |
| | | } |
| | | } |
| | | }); |
| | |
| | | //Thread.Sleep(1000); |
| | | var req = new ReportWeightInfoRequest |
| | | { |
| | | Data = new ReportWeightInfoData |
| | | data = new ReportWeightInfoData |
| | | { |
| | | Header = new ReportWeightInfoHeader |
| | | header = new ReportWeightInfoHeader |
| | | { |
| | | DeliveryNo = "F00001", |
| | | GrossWeight = 99, |
| | | Cube = 66, |
| | | AddTime = DateTime.Now, |
| | | AddWho = "WCS" |
| | | deliveryNo = "F00001", |
| | | grossWeight = 99, |
| | | cube = 66, |
| | | addTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"), |
| | | addWho = "WCS" |
| | | } |
| | | } |
| | | }; |
| | | //Console.WriteLine($"{DateTime.Now.ToString("HH:mm:ss.fff")}>>>GGG{i}"); |
| | | LogHelper.Info(JsonConvert.SerializeObject(req)); |
| | | var b = WebSocketClientWithReconnect.Instance?.SendAsync(JsonConvert.SerializeObject(req)).Result; |
| | | Console.WriteLine(req.Data.Header.DeliveryNo + "åé宿ï¼ï¼" + b); |
| | | Console.WriteLine(req.data.header.deliveryNo + "åé宿ï¼ï¼" + b); |
| | | if (b == true) |
| | | { |
| | | // çå¾
ç¹å®ååº |
| | |
| | | /// <summary> |
| | | /// è¯·æ±æ°æ® |
| | | /// </summary> |
| | | public SendTaskData Data { get; set; } |
| | | public SendTaskData data { get; set; } |
| | | } |
| | | |
| | | public class SendTaskData |
| | |
| | | /// <summary> |
| | | /// 请æ±å¤´ä¿¡æ¯ |
| | | /// </summary> |
| | | public SendTaskHeader Header { get; set; } |
| | | public SendTaskHeader header { get; set; } |
| | | } |
| | | |
| | | public class SendTaskHeader |
| | |
| | | /// <summary> |
| | | /// ç»ç»ç¼å· - 主é®ï¼é»è®¤MERCURY |
| | | /// </summary> |
| | | public string OrganizationId { get; set; } = "MERCURY"; |
| | | public string organizationId { get; set; } = "MERCURY"; |
| | | |
| | | /// <summary> |
| | | /// ä»åºç¼å· - 主é®ï¼é»è®¤HN02 |
| | | /// </summary> |
| | | public string WarehouseId { get; set; } = "HN02"; |
| | | public string warehouseId { get; set; } = "HN02"; |
| | | |
| | | /// <summary> |
| | | /// ä»»å¡ç»ç¼å· - ä¸»é® |
| | | /// </summary> |
| | | public string GroupTaskId { get; set; } |
| | | public string groupTaskId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä»»å¡ç»åºå· - ä¸»é® |
| | | /// </summary> |
| | | public int GroupTaskSequence { get; set; } |
| | | public int groupTaskSequence { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æçå· |
| | | /// </summary> |
| | | public string PalletId { get; set; } |
| | | public string palletId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¥æºåºä½ |
| | | /// </summary> |
| | | public string FmLocation { get; set; } |
| | | public string fmLocation { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¥æºç¹ä½ |
| | | /// </summary> |
| | | public string FmPosition { get; set; } |
| | | public string fmPosition { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç®æ åºä½å· |
| | | /// </summary> |
| | | public string ToLocation { get; set; } |
| | | public string toLocation { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç®æ ç¹ä½ |
| | | /// </summary> |
| | | public string ToPosition { get; set; } |
| | | public string toPosition { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç¶æ - 00:å建 |
| | | /// </summary> |
| | | public string TaskStatus { get; set; } = "00"; |
| | | public string taskStatus { get; set; } = "00"; |
| | | |
| | | /// <summary> |
| | | /// ä»»å¡ç±»å - PA:å
¥åº(䏿¶/ååº/ç§»åº), PK:åºåº(æ£è´§/ç§»åº/补货/çç¹), MV:ååº |
| | | /// </summary> |
| | | public string TaskType { get; set; } |
| | | public string taskType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å建æ¶é´ |
| | | /// </summary> |
| | | public DateTime AddTime { get; set; } |
| | | public DateTime addTime { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å建人 |
| | | /// </summary> |
| | | public string AddWho { get; set; } |
| | | public string addWho { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä¼å
级 - 1-5(1æé«,5æä½),é»è®¤3 |
| | | /// </summary> |
| | | public string Priority { get; set; } = "3"; |
| | | public string priority { get; set; } = "3"; |
| | | |
| | | } |
| | | |
| | |
| | | /// <summary> |
| | | /// è¿å代ç - 0000:æå, å
¶ä»:失败 |
| | | /// </summary> |
| | | public string ReturnCode { get; set; } |
| | | public string returnCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è¿åæè¿° |
| | | /// </summary> |
| | | public string ReturnDesc { get; set; } |
| | | public string returnDesc { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è¿åæ è®° - 1:æå, 0:失败 |
| | | /// </summary> |
| | | public string ReturnFlag { get; set; } |
| | | public string returnFlag { get; set; } |
| | | } |
| | | } |
| | | |
| | |
| | | /// </summary> |
| | | public class StockInExceptionRequest |
| | | { |
| | | public StockInExceptionData Data { get; set; } |
| | | public StockInExceptionData data { get; set; } |
| | | } |
| | | |
| | | public class StockInExceptionData |
| | | { |
| | | public StockInExceptionHeader Header { get; set; } |
| | | public StockInExceptionHeader header { get; set; } |
| | | } |
| | | |
| | | public class StockInExceptionHeader |
| | |
| | | /// <summary> |
| | | /// ç»ç»ç¼å· - 主é®ï¼é»è®¤MERCURY |
| | | /// </summary> |
| | | public string OrganizationId { get; set; } = "MERCURY"; |
| | | public string organizationId { get; set; } = "MERCURY"; |
| | | |
| | | /// <summary> |
| | | /// ä»åºç¼å· - 主é®ï¼é»è®¤HN02 |
| | | /// </summary> |
| | | public string WarehouseId { get; set; } = "HN02"; |
| | | public string warehouseId { get; set; } = "HN02"; |
| | | |
| | | /// <summary> |
| | | /// ä»»å¡ç»ç¼å· - ä¸»é® |
| | | /// </summary> |
| | | public string GroupTaskId { get; set; } |
| | | public string groupTaskId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä»»å¡ç»åºå· - ä¸»é® |
| | | /// </summary> |
| | | public int GroupTaskSequence { get; set; } |
| | | public int groupTaskSequence { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æçå· |
| | | /// </summary> |
| | | public string PalletId { get; set; } |
| | | public string palletId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å建æ¶é´ |
| | | /// </summary> |
| | | public DateTime AddTime { get; set; } |
| | | public string addTime { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åå»ºè®¾å¤ |
| | | /// </summary> |
| | | public string AddWho { get; set; } |
| | | public string addWho { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å¼å¸¸åå æè¿° |
| | | /// </summary> |
| | | public string Reason { get; set; } |
| | | public string reason { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å¼å¸¸åå 代ç - 01:åºä½æè´§ä¸å¯ç¨, 03:å
¥å
伸ä½å¤ä¼¸ä½æè´§ |
| | | /// </summary> |
| | | public string ReasonCode { get; set; } |
| | | public string reasonCode { get; set; } |
| | | |
| | | // ... UDFåæ®µ |
| | | } |
| | |
| | | /// <summary> |
| | | /// æ°åé
çç®æ åºä½ |
| | | /// </summary> |
| | | public string ToLocation { get; set; } |
| | | public string toLocation { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ°åé
çç®æ ç¹ä½ |
| | | /// </summary> |
| | | public string ToPosition { get; set; } |
| | | public string toPosition { get; set; } |
| | | } |
| | | } |
| | | |
| | |
| | | /// </summary> |
| | | public class TaskFeedbackRequest |
| | | { |
| | | public TaskFeedbackData Data { get; set; } |
| | | public TaskFeedbackData data { get; set; } |
| | | } |
| | | |
| | | public class TaskFeedbackData |
| | | { |
| | | public TaskFeedbackHeader Header { get; set; } |
| | | public TaskFeedbackHeader header { get; set; } |
| | | } |
| | | |
| | | public class TaskFeedbackHeader |
| | |
| | | /// <summary> |
| | | /// ç»ç»ç¼å· - 主é®ï¼é»è®¤MERCURY |
| | | /// </summary> |
| | | public string OrganizationId { get; set; } = "MERCURY"; |
| | | public string organizationId { get; set; } = "MERCURY"; |
| | | |
| | | /// <summary> |
| | | /// ä»åºç¼å· - 主é®ï¼é»è®¤HN02 |
| | | /// </summary> |
| | | public string WarehouseId { get; set; } = "HN02"; |
| | | public string warehouseId { get; set; } = "HN02"; |
| | | |
| | | /// <summary> |
| | | /// ä»»å¡ç»ç¼å· - ä¸»é® |
| | | /// </summary> |
| | | public string GroupTaskId { get; set; } |
| | | public string groupTaskId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä»»å¡ç»åºå· - ä¸»é® |
| | | /// </summary> |
| | | public int GroupTaskSequence { get; set; } |
| | | public int groupTaskSequence { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æçå· |
| | | /// </summary> |
| | | public string PalletId { get; set; } |
| | | public string palletId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¥æºåºä½ |
| | | /// </summary> |
| | | public string FmLocation { get; set; } |
| | | public string fmLocation { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¥æºç¹ä½ |
| | | /// </summary> |
| | | public string FmPosition { get; set; } |
| | | public string fmPosition { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç®æ åºä½å· |
| | | /// </summary> |
| | | public string ToLocation { get; set; } |
| | | public string toLocation { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç®æ ç¹ä½ |
| | | /// </summary> |
| | | public string ToPosition { get; set; } |
| | | public string toPosition { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç¶æ - 80:宿, 98:å¼å¸¸(åè´§æ è´§) |
| | | /// </summary> |
| | | public string TaskStatus { get; set; } |
| | | public string taskStatus { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä»»å¡ç±»å - PA:å
¥åº, PK:åºåº, MV:ååº |
| | | /// </summary> |
| | | public string TaskType { get; set; } |
| | | public string taskType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 宿æ¶é´ |
| | | /// </summary> |
| | | public DateTime CloseTime { get; set; } |
| | | public string closeTime { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å®æäººå |
| | | /// </summary> |
| | | public string CloseWho { get; set; } |
| | | public string closeWho { get; set; } |
| | | |
| | | // ... UDFåæ®µ |
| | | } |
| | |
| | | /// </summary> |
| | | public class StockInInteractionRequest |
| | | { |
| | | public StockInInteractionData Data { get; set; } |
| | | public StockInInteractionData data { get; set; } |
| | | } |
| | | |
| | | public class StockInInteractionData |
| | | { |
| | | public StockInInteractionHeader Header { get; set; } |
| | | public StockInInteractionHeader header { get; set; } |
| | | } |
| | | |
| | | public class StockInInteractionHeader |
| | |
| | | /// <summary> |
| | | /// ç»ç»ç¼å· - 主é®ï¼é»è®¤MERCURY |
| | | /// </summary> |
| | | public string OrganizationId { get; set; } = "MERCURY"; |
| | | public string organizationId { get; set; } = "MERCURY"; |
| | | |
| | | /// <summary> |
| | | /// ä»åºç¼å· - 主é®ï¼é»è®¤HN02 |
| | | /// </summary> |
| | | public string WarehouseId { get; set; } = "HN02"; |
| | | public string warehouseId { get; set; } = "HN02"; |
| | | |
| | | /// <summary> |
| | | /// æçå· - ä¸»é® |
| | | /// </summary> |
| | | public string PalletId { get; set; } |
| | | public string palletId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ»éé(kg) |
| | | /// </summary> |
| | | public decimal GrossWeight { get; set; } |
| | | public decimal grossWeight { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç ç宽度(cm) |
| | | /// </summary> |
| | | public decimal PalletWidth { get; set; } |
| | | public decimal palletWidth { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¥æºåºä½ |
| | | /// </summary> |
| | | public string FmLocation { get; set; } |
| | | public string fmLocation { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¥æºç¹ä½ |
| | | /// </summary> |
| | | public string FmPosition { get; set; } |
| | | public string fmPosition { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å建æ¶é´ |
| | | /// </summary> |
| | | public DateTime AddTime { get; set; } |
| | | public DateTime addTime { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å建人 |
| | | /// </summary> |
| | | public string AddWho { get; set; } |
| | | public string addWho { get; set; } |
| | | |
| | | // ... UDF01-UDF10 |
| | | } |
| | |
| | | /// <summary> |
| | | /// ä»»å¡ç»ç¼å· |
| | | /// </summary> |
| | | public string GroupTaskId { get; set; } |
| | | public string groupTaskId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä»»å¡ç»åºå· |
| | | /// </summary> |
| | | public int GroupTaskSequence { get; set; } |
| | | public int groupTaskSequence { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç¶æ - 00:å建 |
| | | /// </summary> |
| | | public string TaskStatus { get; set; } |
| | | public string taskStatus { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä»»å¡ç±»å - PA:å
¥åº |
| | | /// </summary> |
| | | public string TaskType { get; set; } |
| | | public string taskType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä¼å
级 - 1-5(1æé«) |
| | | /// </summary> |
| | | public string Priority { get; set; } |
| | | public string priority { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç®æ åºä½å· |
| | | /// </summary> |
| | | public string ToLocation { get; set; } |
| | | public string toLocation { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç®æ ç¹ä½ |
| | | /// </summary> |
| | | public string ToPosition { get; set; } |
| | | public string toPosition { get; set; } |
| | | } |
| | | } |
| | | public class cancelTask |
| | |
| | | /// </summary> |
| | | public class CancelTaskRequest |
| | | { |
| | | public CancelTaskData Data { get; set; } |
| | | public CancelTaskData data { get; set; } |
| | | } |
| | | |
| | | public class CancelTaskData |
| | | { |
| | | public CancelTaskHeader Header { get; set; } |
| | | public CancelTaskHeader header { get; set; } |
| | | } |
| | | |
| | | public class CancelTaskHeader |
| | |
| | | /// <summary> |
| | | /// ç»ç»ç¼å· - 主é®ï¼é»è®¤MERCURY |
| | | /// </summary> |
| | | public string OrganizationId { get; set; } = "MERCURY"; |
| | | public string organizationId { get; set; } = "MERCURY"; |
| | | |
| | | /// <summary> |
| | | /// ä»åºç¼å· - 主é®ï¼é»è®¤HN02 |
| | | /// </summary> |
| | | public string WarehouseId { get; set; } = "HN02"; |
| | | public string warehouseId { get; set; } = "HN02"; |
| | | |
| | | /// <summary> |
| | | /// ä»»å¡ç»ç¼å· - ä¸»é® |
| | | /// </summary> |
| | | public string GroupTaskId { get; set; } |
| | | public string groupTaskId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä»»å¡ç»åºå· - ä¸»é® |
| | | /// </summary> |
| | | public int GroupTaskSequence { get; set; } |
| | | public int groupTaskSequence { get; set; } |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | public class PalletStackerInteractionRequest |
| | | { |
| | | public PalletStackerInteractionData Data { get; set; } |
| | | public PalletStackerInteractionData data { get; set; } |
| | | } |
| | | |
| | | public class PalletStackerInteractionData |
| | | { |
| | | public PalletStackerInteractionHeader Header { get; set; } |
| | | public PalletStackerInteractionHeader header { get; set; } |
| | | } |
| | | |
| | | public class PalletStackerInteractionHeader |
| | |
| | | /// <summary> |
| | | /// ç»ç»ç¼å· - 主é®ï¼é»è®¤MERCURY |
| | | /// </summary> |
| | | public string OrganizationId { get; set; } = "MERCURY"; |
| | | public string organizationId { get; set; } = "MERCURY"; |
| | | |
| | | /// <summary> |
| | | /// ä»åºç¼å· - 主é®ï¼é»è®¤HN02 |
| | | /// </summary> |
| | | public string WarehouseId { get; set; } = "HN02"; |
| | | public string warehouseId { get; set; } = "HN02"; |
| | | |
| | | /// <summary> |
| | | /// ä»»å¡ç¼å· - 主é®ï¼è®¾å¤ååºç请æ±ID |
| | | /// </summary> |
| | | public string TaskId { get; set; } |
| | | public string taskId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æçå· |
| | | /// </summary> |
| | | public string PalletId { get; set; } |
| | | public string palletId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç±»å - PI:å
¥åº, PT:åºåº(å½åæ åºåºåºæ¯) |
| | | /// </summary> |
| | | public string TaskType { get; set; } |
| | | public string taskType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// èµ·å§åºä½ - å çæºç©çèµ·å§ä½ç½® |
| | | /// </summary> |
| | | public string FmLocation { get; set; } |
| | | public string fmLocation { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä¼å
级 - 1-5(1æé«) |
| | | /// </summary> |
| | | public string Priority { get; set; } = "3"; |
| | | public string priority { get; set; } = "3"; |
| | | |
| | | /// <summary> |
| | | /// å建æ¶é´ |
| | | /// </summary> |
| | | public DateTime AddTime { get; set; } |
| | | public string addTime { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åå»ºè®¾å¤ |
| | | /// </summary> |
| | | public string AddWho { get; set; } |
| | | public string addWho { get; set; } |
| | | |
| | | // ... UDF01-UDF10 |
| | | } |
| | |
| | | /// </summary> |
| | | public class ModifyTaskPriorityRequest |
| | | { |
| | | public ModifyTaskPriorityData Data { get; set; } |
| | | public ModifyTaskPriorityData data { get; set; } |
| | | } |
| | | |
| | | public class ModifyTaskPriorityData |
| | | { |
| | | public List<ModifyTaskPriorityHeader> Header { get; set; } |
| | | public List<ModifyTaskPriorityHeader> header { get; set; } |
| | | } |
| | | |
| | | public class ModifyTaskPriorityHeader |
| | |
| | | /// <summary> |
| | | /// ç»ç»ç¼å· - 主é®ï¼é»è®¤MERCURY |
| | | /// </summary> |
| | | public string OrganizationId { get; set; } = "MERCURY"; |
| | | public string organizationId { get; set; } = "MERCURY"; |
| | | |
| | | /// <summary> |
| | | /// ä»åºç¼å· - 主é®ï¼é»è®¤HN02 |
| | | /// </summary> |
| | | public string WarehouseId { get; set; } = "HN02"; |
| | | public string warehouseId { get; set; } = "HN02"; |
| | | |
| | | /// <summary> |
| | | /// ä»»å¡ç»ç¼å· - ä¸»é® |
| | | /// </summary> |
| | | public string GroupTaskId { get; set; } |
| | | public string groupTaskId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä»»å¡ç»åºå· - ä¸»é® |
| | | /// </summary> |
| | | public int GroupTaskSequence { get; set; } |
| | | public int groupTaskSequence { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä¼å
级 - 1-5(1æé«) |
| | | /// </summary> |
| | | public string Priority { get; set; } |
| | | public string priority { get; set; } |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | |
| | | public class ModifyTaskPriorityResponseData |
| | | { |
| | | [JsonProperty("return")] |
| | | public ModifyTaskPriorityReturnInfo Return { get; set; } |
| | | } |
| | | |
| | |
| | | /// <summary> |
| | | /// é¨åæåæ¶çé误详æ
|
| | | /// </summary> |
| | | public List<TaskErrorInfo> ResultInfo { get; set; } |
| | | public List<TaskErrorInfo> resultInfo { get; set; } |
| | | } |
| | | |
| | | public class TaskErrorInfo |
| | |
| | | /// <summary> |
| | | /// ä»»å¡ç»ç¼å· |
| | | /// </summary> |
| | | public string GroupTaskId { get; set; } |
| | | public string groupTaskId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä»»å¡ç»åºå· |
| | | /// </summary> |
| | | public int GroupTaskSequence { get; set; } |
| | | public int groupTaskSequence { get; set; } |
| | | |
| | | /// <summary> |
| | | /// é误代ç |
| | | /// </summary> |
| | | public string ErrorCode { get; set; } |
| | | public string errorCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// é误åå |
| | | /// </summary> |
| | | public string ErrorDesc { get; set; } |
| | | public string errorDesc { get; set; } |
| | | } |
| | | } |
| | | public class putConveyorTask |
| | |
| | | /// </summary> |
| | | public class PutConveyorTaskRequest |
| | | { |
| | | public PutConveyorTaskData Data { get; set; } |
| | | public PutConveyorTaskData data { get; set; } |
| | | } |
| | | |
| | | public class PutConveyorTaskData |
| | | { |
| | | public List<PutConveyorTaskHeader> Header { get; set; } |
| | | public List<PutConveyorTaskHeader> header { get; set; } |
| | | } |
| | | |
| | | public class PutConveyorTaskHeader |
| | |
| | | /// <summary> |
| | | /// ç»ç»ç¼å· - 主é®ï¼é»è®¤MERCURY |
| | | /// </summary> |
| | | public string OrganizationId { get; set; } = "MERCURY"; |
| | | public string organizationId { get; set; } = "MERCURY"; |
| | | |
| | | /// <summary> |
| | | /// ä»åºç¼å· - 主é®ï¼é»è®¤HN02 |
| | | /// </summary> |
| | | public string WarehouseId { get; set; } = "HN02"; |
| | | public string warehouseId { get; set; } = "HN02"; |
| | | |
| | | /// <summary> |
| | | /// ä»»å¡ç»ç¼å· - ä¸»é® |
| | | /// </summary> |
| | | public string GroupTaskId { get; set; } |
| | | public string groupTaskId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä»»å¡ç»åºå· - ä¸»é® |
| | | /// </summary> |
| | | public int GroupTaskSequence { get; set; } |
| | | public int groupTaskSequence { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç®±å· |
| | | /// </summary> |
| | | public string PalletId { get; set; } |
| | | public string palletId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç®±å - 大箱/å°ç®±/å¨è½¬ç®±ç¼ç |
| | | /// </summary> |
| | | public string PalletIdType { get; set; } |
| | | public string palletIdType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è´´æ æ è®° - Y:éè¦è´´æ , N:ä¸éè¦ |
| | | /// </summary> |
| | | public string SyncFlag { get; set; } |
| | | public string syncFlag { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç®æ åºå/éå£ - ç©çä½ç½®éå£ç¼ç æB2C夿 ¸å°åºåç¼ç |
| | | /// </summary> |
| | | public string DLocation { get; set; } |
| | | public string dLocation { get; set; } |
| | | |
| | | // ... UDF01-UDF10 |
| | | } |
| | |
| | | /// <summary> |
| | | /// é¨åæåæ¶çé误详æ
|
| | | /// </summary> |
| | | public List<TaskErrorInfo> ResultInfo { get; set; } |
| | | public List<TaskErrorInfo> resultInfo { get; set; } |
| | | } |
| | | } |
| | | public class reportWeightinfo |
| | |
| | | { |
| | | while (reportWeightinfo.channel.Reader.TryRead(out var response)) |
| | | { |
| | | return response?.Response?.Return ?? new ReportWeightInfoReturnInfo { ReturnCode = "0001", SortingChute = "0", ReturnDesc = "è¿å为空ã" }; |
| | | return response?.Response?.Return ?? new ReportWeightInfoReturnInfo { returnCode = "0001", sortingChute = "0", returnDesc = "è¿å为空ã" }; |
| | | } |
| | | } |
| | | return new ReportWeightInfoReturnInfo { ReturnCode = "0001", SortingChute = "0", ReturnDesc = "è¿å为空ã" }; |
| | | return new ReportWeightInfoReturnInfo { returnCode = "0001", sortingChute = "0", returnDesc = "è¿å为空ã" }; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | public class ReportWeightInfoRequest |
| | | { |
| | | public ReportWeightInfoData Data { get; set; } |
| | | public ReportWeightInfoData data { get; set; } |
| | | } |
| | | |
| | | public class ReportWeightInfoData |
| | | { |
| | | public ReportWeightInfoHeader Header { get; set; } |
| | | public ReportWeightInfoHeader header { get; set; } |
| | | } |
| | | |
| | | public class ReportWeightInfoHeader |
| | |
| | | /// <summary> |
| | | /// ç»ç»ç¼å· - 主é®ï¼é»è®¤MERCURY |
| | | /// </summary> |
| | | public string OrganizationId { get; set; } = "MERCURY"; |
| | | public string organizationId { get; set; } = "MERCURY"; |
| | | |
| | | /// <summary> |
| | | /// ä»åºç¼å· - 主é®ï¼é»è®¤HN02 |
| | | /// </summary> |
| | | public string WarehouseId { get; set; } = "HN02"; |
| | | public string warehouseId { get; set; } = "HN02"; |
| | | |
| | | /// <summary> |
| | | /// é¢åå· - ä¸»é® |
| | | /// </summary> |
| | | public string DeliveryNo { get; set; } |
| | | public string deliveryNo { get; set; } |
| | | |
| | | /// <summary> |
| | | /// éé(kg) |
| | | /// </summary> |
| | | public decimal GrossWeight { get; set; } |
| | | public decimal grossWeight { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä½ç§¯(ç«æ¹åç±³) |
| | | /// </summary> |
| | | public decimal Cube { get; set; } |
| | | public decimal cube { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å建æ¶é´ |
| | | /// </summary> |
| | | public DateTime AddTime { get; set; } |
| | | public string addTime { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åå»ºè®¾å¤ |
| | | /// </summary> |
| | | public string AddWho { get; set; } |
| | | public string addWho { get; set; } |
| | | |
| | | // ... UDFåæ®µ |
| | | } |
| | |
| | | /// <summary> |
| | | /// 忣éå£ - è¾é线快é忣éå£ç¼ç |
| | | /// </summary> |
| | | public string SortingChute { get; set; } |
| | | public string sortingChute { get; set; } |
| | | } |
| | | } |
| | | |