| | |
| | | bool isAGV = dt_Task.TaskType == (int)TaskTypeEnum.CPInbound || dt_Task.TaskType == (int)TaskTypeEnum.CPOutbound; |
| | | |
| | | //海康 |
| | | bool isHK = dt_Task.TaskType == (int)TaskTypeEnum.F01 || dt_Task.TaskType == (int)TaskTypeEnum.RK3F || dt_Task.TaskType == (int)TaskTypeEnum.CK3F || dt_Task.TaskType == (int)TaskTypeEnum.Q1TSJ4 || dt_Task.TaskType == (int)TaskTypeEnum.STU0003 || dt_Task.TaskType == (int)TaskTypeEnum.F02 || dt_Task.TaskType == (int)TaskTypeEnum.CHUKU1 || dt_Task.TaskType == (int)TaskTypeEnum.Q3RK || dt_Task.TaskType == (int)TaskTypeEnum.Q3CK||dt_Task.TaskType == (int)TaskTypeEnum.STUPTBY; |
| | | bool isHK = dt_Task.TaskType == (int)TaskTypeEnum.F01 || dt_Task.TaskType == (int)TaskTypeEnum.RK3F || dt_Task.TaskType == (int)TaskTypeEnum.CK3F || dt_Task.TaskType == (int)TaskTypeEnum.Q1TSJ4 || dt_Task.TaskType == (int)TaskTypeEnum.STU0003 || dt_Task.TaskType == (int)TaskTypeEnum.F02 || dt_Task.TaskType == (int)TaskTypeEnum.CHUKU1 || dt_Task.TaskType == (int)TaskTypeEnum.Q3RK || dt_Task.TaskType == (int)TaskTypeEnum.Q3CK || dt_Task.TaskType == (int)TaskTypeEnum.STUPTBY; |
| | | //ä¿®æ¹åæ¬ä»»å¡ä¼å
级 |
| | | dt_Task.Grade = updateTaskPriority.taskPriority; |
| | | #region å¯ä¹å£« |
| | |
| | | var kls = new List<Dt_KLSLocationInfo>(); |
| | | var hk = new List<Dt_HKLocationInfo>(); |
| | | List<Dt_StationInfo> pk = new List<Dt_StationInfo>(); |
| | | if (wMSUpdateLocationArea==null) |
| | | if (wMSUpdateLocationArea == null) |
| | | { |
| | | return content.Error("请æ±åæ°ä¸è½ä¸ºç©º"); |
| | | } |
| | |
| | | LoctionCode = item.LocationCode, |
| | | LocationStatus = item.LocationStatus, |
| | | EnableStatus = item.EnableStatus, |
| | | PalletCode = item.PalletCode |
| | | PalletCode = item.PalletCode, |
| | | AreaCode = item.WarehouseId |
| | | |
| | | }); |
| | | } |
| | |
| | | LoctionCode = item.LocationCode, |
| | | LocationStatus = item.LocationStatus, |
| | | EnableStatus = item.EnableStatus, |
| | | PalletCode = item.PalletCode |
| | | PalletCode = item.PalletCode, |
| | | AreaCode = item.WarehouseId |
| | | }); |
| | | } |
| | | content.OK(data: list); |
| | |
| | | LoctionCode = item.LocationCode, |
| | | LocationStatus = item.LocationStatus, |
| | | EnableStatus = item.EnableStatus, |
| | | PalletCode = item.PalletCode |
| | | PalletCode = item.PalletCode, |
| | | AreaCode = item.WarehouseId |
| | | }); |
| | | } |
| | | content.OK(data: list); |
| | |
| | | LoctionCode = item.StationCode, |
| | | LocationStatus = item.StationStatus, |
| | | EnableStatus = item.IsOccupied, |
| | | PalletCode = item.PalletCode |
| | | PalletCode = item.PalletCode, |
| | | AreaCode = item.StationRegion |
| | | |
| | | }); |
| | | } |
| | | content.OK(data: list); |
| | |
| | | { |
| | | throw new NotImplementedException(); |
| | | } |
| | | |
| | | public WebResponseContent InboundElevatorExit(string LocationCode, string containerCode) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | |
| | | { |
| | | stationManger.IsOccupied = LocationStatusEnum.Free.ObjToInt(); |
| | | stationManger.Remark = ""; |
| | | _stationMangerService.UpdateData(stationManger); |
| | | FOURBOToccupyStation fOURBOToccupyStation = new FOURBOToccupyStation() |
| | | { |
| | | stationCode = wMSContainerFlow.slotCode, |
| | |
| | | FOURBOTReturn fOURBOTReturn = response.DeserializeObject<FOURBOTReturn>(); |
| | | content.OK(data: fOURBOTReturn); |
| | | if (fOURBOTReturn.returnCode != 0) throw new Exception(fOURBOTReturn.returnUserMsg); |
| | | _stationMangerService.UpdateData(stationManger); |
| | | } |
| | | return content.OK(); |
| | | } |
| | |
| | | var station = _stationInfo.Repository.QueryFirst(x => x.StationCode == locationCode); |
| | | if (station != null) |
| | | { |
| | | station.IsOccupied = upLocationStatusDTO.EnableStatus==0?0:1; |
| | | station.IsOccupied = upLocationStatusDTO.EnableStatus == 0 ? 0 : 1; |
| | | locationsToUpdate.Add(station); |
| | | |
| | | resultList.Add(new |
| | |
| | | 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", "", ""); |
| | | } |
| | | } |
| | | } |
| | | } |