| | |
| | | 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) |
| | |
| | | //没æç»çä¿¡æ¯ï¼è¯´æè¯¥ééæ¯ç©ºæççéé |
| | | if (null == boxHead) |
| | | { |
| | | Dt_EmptyPallet dt_Empty= Dt_EmptyPalletRepository.Instance.FindFirst(x => x.EmptyPallet_name == barcode); |
| | | Dt_EmptyPallet dt_Empty = Dt_EmptyPalletRepository.Instance.FindFirst(x => x.EmptyPallet_name == barcode); |
| | | if (null == dt_Empty) |
| | | { |
| | | Dt_EmptyPallet dt_Empty1 = new Dt_EmptyPallet(); |