| | |
| | | private readonly IDt_RoadWayRepository _roadWayRepository; |
| | | private readonly IDt_RoadWayInfoRepository _roadWayInfoRepository; |
| | | private readonly IDt_CarBodyInfo_htyRepository _carBodyInfo_HtyRepository; |
| | | private readonly IStockQuantityChangeRecordService _stockQuantityChangeRecordService; |
| | | |
| | | public Dt_TaskService(IDt_TaskRepository BaseDal, |
| | | IUnitOfWorkManage unitOfWorkManage, |
| | |
| | | ITaskExecuteDetailRepository taskExecuteDetailRepository, |
| | | ILocationStatusChangeRecordRepository locationStatusChangeRecordRepository, |
| | | IDt_StationManagerRepository stationManagerRepository, |
| | | ISys_ConfigService configService, IDt_PalletStockInfoRepository palletStockInfoRepository, IDt_PalletStockInfo_htyRepository palletStockInfo_HtyRepository, IDt_CarBodyInfoRepository carBodyRepository, IDt_BDCConfigurationRepository bdcConfigurationRepository, IDt_BDCConfigurationService bDCConfigurationService, IDt_RoadWayRepository roadWayRepository, IDt_RoadWayInfoRepository roadWayInfoRepository, IDt_CarBodyInfo_htyRepository carBodyInfo_HtyRepository) : base(BaseDal) |
| | | ISys_ConfigService configService, IDt_PalletStockInfoRepository palletStockInfoRepository, IDt_PalletStockInfo_htyRepository palletStockInfo_HtyRepository, IDt_CarBodyInfoRepository carBodyRepository, IDt_BDCConfigurationRepository bdcConfigurationRepository, IDt_BDCConfigurationService bDCConfigurationService, IDt_RoadWayRepository roadWayRepository, IDt_RoadWayInfoRepository roadWayInfoRepository, IDt_CarBodyInfo_htyRepository carBodyInfo_HtyRepository, IStockQuantityChangeRecordService stockQuantityChangeRecordService) : base(BaseDal) |
| | | |
| | | { |
| | | _unitOfWorkManage = unitOfWorkManage; |
| | |
| | | _roadWayRepository = roadWayRepository; |
| | | _roadWayInfoRepository = roadWayInfoRepository; |
| | | _carBodyInfo_HtyRepository = carBodyInfo_HtyRepository; |
| | | _stockQuantityChangeRecordService = stockQuantityChangeRecordService; |
| | | } |
| | | |
| | | #region 澶栭儴鎺ュ彛鏂规硶 |
| | |
| | | if (isResult) |
| | | { |
| | | _locationStatusChangeRecordRepository.AddLocationStatusChangeRecord(locationInf, lastStatus, (int)StatusChangeTypeEnum.AutomaticStorage, task.TaskNum); |
| | | //_stockQuantityChangeRecordService.AddStockChangeRecord() |
| | | content.OK("鍏ュ簱浠诲姟瀹屾垚鎴愬姛"); |
| | | } |
| | | else |
| | |
| | | { |
| | | // 鍒涘缓WebResponseContent瀵硅薄 |
| | | var content = new WebResponseContent(); |
| | | var carInfo = _carBodyRepository.QueryFirst(x => x.PalletCode == task.PalletCode); |
| | | var carInfo = _carBodyRepository.QueryFirst(x => x.PalletCode == task.PalletCode && x.RFID == task.PVI); |
| | | var stationInfo = _stationManagerRepository.QueryFirst(x => x.stationChildCode == input.Position); |
| | | // 鑾峰彇搴撲綅; |
| | | var location = RequestLocation(stationInfo.RoadwayNo, carInfo.CarType); |