| | |
| | | { |
| | | throw new NotImplementedException(); |
| | | } |
| | | |
| | | public WebResponseContent InboundElevatorExit(string LocationCode, string containerCode) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | |
| | | return content.Error($"æ´æ°ç«å°ç¶æå¤±è´¥ï¼{ex.Message}"); |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// PLCæ¥è¦ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="ErrorMsg"></param> |
| | | /// <returns></returns> |
| | | public WebResponseContent PLCAlarmtoWMS(string ErrorMsg) |
| | | { |
| | | PLCAlarmDTO PLCAlarmDTO = new PLCAlarmDTO(); |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | Dt_ApiInfo? apiInfo = _apiInfoService.Repository.QueryFirst(x => x.ApiCode == nameof(PLCAlarmDTO)) ?? throw new Exception("æªæ¾å°PLCæ¥è¦ä¿¡æ¯æ¥å£é
置信æ¯ï¼è¯·æ£æ¥æ¥å£é
ç½®"); |
| | | PLCAlarmDTO.errorMsg = ErrorMsg; |
| | | string response = HttpHelper.Post(apiInfo.ApiAddress, PLCAlarmDTO.Serialize()); |
| | | content.OK(data: response); |
| | | WMSReturn wMSReturn = response.DeserializeObject<WMSReturn>(); |
| | | if (wMSReturn == null) throw new Exception("WMSè¿åç»æè½¬æ¢å¤±è´¥ï¼"); |
| | | if (!wMSReturn.success) throw new Exception(wMSReturn.message); |
| | | return content.OK(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return content.Error(ex.Message); |
| | | } |
| | | finally |
| | | { |
| | | _trackloginfoService.AddTrackLog(PLCAlarmDTO, content, "PLCæ¥è¦ä¿¡æ¯ä¸æ¥WMS", "", ""); |
| | | } |
| | | } |
| | | } |
| | | } |