| | |
| | | } |
| | | |
| | | var carBody = _carBodyRepository.QueryFirst(x => x.PalletCode == input.PalletCode); |
| | | if (carBody == null) throw new Exception($"车身{input.PalletCode}ä¿¡æ¯ä¸åå¨"); |
| | | if (carBody != null) throw new Exception($"空æ¬{input.PalletCode}ä¿¡æ¯å·²åå¨"); |
| | | |
| | | Dt_CarBodyInfo dt_CarBodyInfo = new Dt_CarBodyInfo |
| | | { |
| | | PalletCode = input.PalletCode, |
| | | CarType = 3, |
| | | PVI = input.PalletCode, |
| | | RFID = input.PalletCode, |
| | | BodyStatus = 0 |
| | | }; |
| | | |
| | | //BDCManager bDCManager = new BDCManager(_bdcConfigurationService, _locationRepository, _roadWayInfoRepository); |
| | | |
| | | //await bDCManager.AddToBDC(carBody); |
| | | |
| | | // è·ååºä½ |
| | | var location = RequestLocation(stationInfo.RoadwayNo, carBody.CarType); |
| | | var location = RequestLocation(stationInfo.RoadwayNo, 3); |
| | | if (location == null) |
| | | { |
| | | return content.Error("æ æ³è·åè´§ä½ä¿¡æ¯æåºä½å·²æ»¡"); |
| | |
| | | PalletCode = input.PalletCode, |
| | | SourceAddress = stationInfo.stationLocation, |
| | | TaskState = (int)TaskInStatusEnum.InNew, |
| | | TaskType = (int)TaskInboundTypeEnum.Inbound, |
| | | TaskType = (int)TaskInboundTypeEnum.InTray, |
| | | TaskNum = await BaseDal.GetTaskNo(), |
| | | Creater = "Systeam", |
| | | PVI = input.PVI, |
| | | |
| | | }; |
| | | |
| | | _unitOfWorkManage.BeginTran(); |
| | | |
| | | BaseDal.AddData(newtask); |
| | | _carBodyRepository.AddData(dt_CarBodyInfo); |
| | | location.LocationStatus = (int)LocationEnum.InStockDisable; |
| | | _locationRepository.UpdateData(location); |
| | | _unitOfWorkManage.CommitTran(); |