| | |
| | | { |
| | | 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(); |
| | | } |
| | |
| | | finally |
| | | { |
| | | _trackloginfoService.AddTrackLog(wMSContainerFlow, content, "容卿µå¨è¯·æ±", "", ""); |
| | | } |
| | | } |
| | | public WebResponseContent UpStationType(UpStationTypeDTO stationTypeDTO) |
| | | { |
| | | try |
| | | { |
| | | if (stationTypeDTO.stationType < 1 || stationTypeDTO.stationType > 3) throw new Exception($"æªå®ä¹çç«å°ç±»åã{stationTypeDTO.stationType}ãï¼1å
¥åºç«å°ï¼2åºåºç«å°ï¼3åºå
¥åºç«å°"); |
| | | Dt_StationManger stationManger = _stationMangerService.Repository.QueryFirst(x => x.StationCode == stationTypeDTO.stationCode) ?? throw new Exception($"æªæ¾å°ç«å°ç¼å·ã{stationTypeDTO.stationCode}ãä¿¡æ¯"); |
| | | stationManger.StationType = stationTypeDTO.stationType; |
| | | _stationMangerService.Repository.UpdateData(stationManger); |
| | | return WebResponseContent.Instance.OK(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return WebResponseContent.Instance.Error(ex.Message); |
| | | } |
| | | } |
| | | /// <summary> |
| | |
| | | WMSReturn wMSReturn = response.DeserializeObject<WMSReturn>(); |
| | | if (wMSReturn == null) throw new Exception("WMSè¿åç»æè½¬æ¢å¤±è´¥ï¼"); |
| | | if (!wMSReturn.success) throw new Exception(wMSReturn.message); |
| | | return content.OK(); |
| | | return content.OK(); |
| | | } |
| | | catch (Exception ex) |
| | | { |