| | |
| | | try |
| | | { |
| | | Dt_HKLocationInfo? hKLocationInfo = null; |
| | | int containerType = taskDTO.containerCode.Contains("LXM") ? (int)LocationTypeEnum.LargePallet : (int)LocationTypeEnum.SmallPallet; |
| | | if (taskType == (int)TaskTypeEnum.STURR) |
| | | { |
| | | var reslut = _stationInfo.Repository.QueryFirst(x => x.StationCode == taskDTO.fromLocationCode) ?? throw new Exception($"æªæ¾å°èµ·ç¹è´§ä½ã{taskDTO.fromLocationCode}ã"); |
| | |
| | | #endregion |
| | | //è·åè´§ä½ä¿¡æ¯ |
| | | else |
| | | hKLocationInfo = _hKLocationInfoService.GetFreeLocationInfo(taskDTO.toAreaCode) ?? throw new Exception($"æªæ¾å°ç»ç¹åºåºã{taskDTO.toAreaCode}ãå¯ç¨ç©ºè´§ä½ï¼"); |
| | | hKLocationInfo = _hKLocationInfoService.GetFreeLocationInfo(taskDTO.toAreaCode, containerType) ?? throw new Exception($"æªæ¾å°ç»ç¹åºåºã{taskDTO.toAreaCode}ãå¯ç¨ç©ºè´§ä½ï¼"); |
| | | if (taskType == (int)TaskTypeEnum.Q1TSJ4) |
| | | { |
| | | var device = Storage.Devices.FirstOrDefault(x => x.DeviceCode == "TSJ") as OtherDevice; |
| | |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// æµ·åº·è®¾å¤æ¥è¦ |
| | | /// </summary> |
| | | /// <param name="hKDeviceAalarmDTO"></param> |
| | | /// <returns></returns> |
| | | public WebResponseContent HKDeviceAlarm(HKDeviceAalarmDTO hKDeviceAalarmDTO) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | |
| | | extra = hKDeviceAalarmDTO.extra, |
| | | }; |
| | | |
| | | string response = HttpHelper.Post(apiInfo.ApiAddress, hIKROBOTDeviceAlarm.Serialize()); |
| | | string response = HttpHelper.Post(apiInfo.ApiAddress,hIKROBOTDeviceAlarm.Serialize()); |
| | | wMSReturn = response.DeserializeObject<WMSReturn>(); |
| | | if (wMSReturn.success == true && wMSReturn.message == "success") |
| | | { |