| | |
| | | { |
| | | _trackloginfoService.AddTrackLog(hIKROBOTTaskContinue, content, "海康AGVç»§ç»æ§è¡ä»»å¡", "", hIKROBOTReturn.message); |
| | | |
| | | } |
| | | return content; |
| | | } |
| | | |
| | | |
| | | |
| | | public WebResponseContent HKDeviceAlarm(HKDeviceAalarmDTO hKDeviceAalarmDTO) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | WMSReturn wMSReturn = null; |
| | | HKDeviceAalarmDTO hIKROBOTDeviceAlarm = null; |
| | | try |
| | | { |
| | | Dt_ApiInfo? apiInfo = _apiInfoService.Repository.QueryFirst(x => x.ApiCode == nameof(HKDeviceAalarmDTO)) ?? throw new Exception("æªæ¾å°ä¸æ¥æµ·åº·AGVè®¾å¤æ¥è¦æ¥å£é
置信æ¯ï¼è¯·æ£æ¥æ¥å£é
ç½®"); |
| | | hIKROBOTDeviceAlarm = new HKDeviceAalarmDTO() |
| | | { |
| | | robotTaskCode = hKDeviceAalarmDTO.robotTaskCode, |
| | | taskWarnCode = hKDeviceAalarmDTO.taskWarnCode, |
| | | startTime = hKDeviceAalarmDTO.startTime, |
| | | singleRobotCode = hKDeviceAalarmDTO.singleRobotCode, |
| | | errorCode = hKDeviceAalarmDTO.errorCode, |
| | | errorMsg = hKDeviceAalarmDTO.errorMsg, |
| | | extra = hKDeviceAalarmDTO.extra, |
| | | }; |
| | | |
| | | string response = HttpHelper.Post(apiInfo.ApiAddress, hIKROBOTDeviceAlarm.Serialize()); |
| | | wMSReturn = response.DeserializeObject<WMSReturn>(); |
| | | if (wMSReturn.success == true && wMSReturn.message == "success") |
| | | { |
| | | content.OK("䏿¥æµ·åº·AGVè®¾å¤æ¥è¦ä¿¡æ¯æå"); |
| | | } |
| | | else |
| | | { |
| | | content.Error(wMSReturn.message); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | content.Error(ex.Message); |
| | | } |
| | | finally |
| | | { |
| | | _trackloginfoService.AddTrackLog(hIKROBOTDeviceAlarm, content, "䏿¥æµ·åº·AGVè®¾å¤æ¥è¦ä¿¡æ¯", "", ""); |
| | | } |
| | | return content; |
| | | } |