| | |
| | | public WebResponseContent ReceiveWeightResultFromWCS(SaveModel saveModel) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | |
| | | try |
| | | { |
| | | string barcode = saveModel.MainData["barcode"].ToString(); |
| | | string weight = saveModel.MainData["weight"].ToString(); |
| | | |
| | | if (weight == null || weight == "0") |
| | | { |
| | | throw new Exception($"æçå·ï¼ã{barcode}ãï¼ééä¸å¯¹ä¸ç¬¦åè§å®"); |
| | | } |
| | | |
| | | Dt_taskinfo taskInfo = Dt_taskinfoRepository.Instance.FindFirst(x => x.task_barcode == barcode); |
| | | if (null == taskInfo) |
| | | throw new Exception($"æ²¡ææ¾å°æçå·ï¼ã{barcode}ãï¼ç¸å¯¹åºçä»»å¡"); |