| | |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | var carInfo = _carBodyInfoRepository.QueryFirst(x => x.RFID == json.Rfid); ///*x.PalletCode == json.PalletCode ||*/ |
| | | var carInfo = _carBodyInfoRepository.QueryFirst(x => x.RFID == json.PVI); ///*x.PalletCode == json.PalletCode ||*/ |
| | | if (carInfo != null) throw new Exception($"æ¶è£
ç´éæ»è£
失败:PVI{json.Rfid}å·²åå¨ã"); |
| | | |
| | | WebResponseContent responseContent = _mesService.issuedCharacter(json.PVI, json.Position, json.PalletCode); |
| | |
| | | //json.PVI = json.PVI.Substring(0, 9); |
| | | json.Position = "RB001"; |
| | | WebResponseContent content1 = _mesService.PassPoint(json); |
| | | if (!content1.Status) throw new Exception($"è¿ç¹å¤±è´¥ï¼{content1.msg}"); |
| | | if (!content1.Status) throw new Exception($"BDC02è¿ç¹å¤±è´¥ï¼{content1.msg}"); |
| | | |
| | | WebResponseContent webResponse = _mesService.bindWorkOrder("EL01RB", json.PVI); |
| | | if (!responseContent.Status) throw new Exception($"ç»å®å¤±è´¥ï¼{webResponse.msg}"); |
| | | if (!webResponse.Status) throw new Exception($"çæ¶ç»å®å¤±è´¥ï¼{webResponse.msg}"); |
| | | |
| | | //è¿ç¹ä¿¡æ¯ -BDC02 |
| | | json.Position = "EL01RB"; |
| | | WebResponseContent BDC02 = _mesService.PassPoint(json); |
| | | if (!BDC02.Status) throw new Exception($"è¿ç¹å¤±è´¥ï¼{BDC02.msg}"); |
| | | if (!BDC02.Status) throw new Exception($"BDC02è¿ç¹å¤±è´¥ï¼{BDC02.msg}"); |
| | | |
| | | ////è¿ç¹ä¿¡æ¯ -BDC03 |
| | | json.Position = "EL01RB01"; |
| | | WebResponseContent BDC03 = _mesService.PassPoint(json); |
| | | if (!BDC03.Status) throw new Exception($"è¿ç¹å¤±è´¥ï¼{BDC03.msg}"); |
| | | if (!BDC03.Status) throw new Exception($"BDC03è¿ç¹å¤±è´¥ï¼{BDC03.msg}"); |
| | | |
| | | content.OK(); |
| | | } |