|  |  |  | 
|---|
|  |  |  | public IBasicService _basicService; | 
|---|
|  |  |  | public IRecordService _recordService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public ErpProScrapSheetDetailService(IErpProScrapSheetDetailRepository BaseDal, IUnitOfWorkManage unitOfWorkManage, IErpProScrapSheetRepository proScrapSheetRepository, IInvokeERPService invokeERPService, IStockRepository stockRepository, IStockService stockService, IOutProStockInfoService outProStockInfoService, IRecordService recordService) : base(BaseDal) | 
|---|
|  |  |  | public ErpProScrapSheetDetailService(IErpProScrapSheetDetailRepository BaseDal, IUnitOfWorkManage unitOfWorkManage, IErpProScrapSheetRepository proScrapSheetRepository, IInvokeERPService invokeERPService, IStockRepository stockRepository, IStockService stockService, IOutProStockInfoService outProStockInfoService, IRecordService recordService, IBasicService basicService) : base(BaseDal) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | _unitOfWorkManage = unitOfWorkManage; | 
|---|
|  |  |  | _proScrapSheetRepository = proScrapSheetRepository; | 
|---|
|  |  |  | 
|---|
|  |  |  | _stockService = stockService; | 
|---|
|  |  |  | _outProStockInfoService = outProStockInfoService; | 
|---|
|  |  |  | _recordService = recordService; | 
|---|
|  |  |  | _basicService = basicService; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //è·å对åºåå·çæ¥åºæç» | 
|---|
|  |  |  | public List<Dt_ErpProScrapSheetDetail> GetByDetails(string scrapNo) | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //} | 
|---|
|  |  |  | } | 
|---|
|  |  |  | List<string> locationArr = outStocks.Select(x => x.LocationCode).ToList(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | locationInfos.AddRange(_basicService.LocationInfoService.Repository.GetLocationInfos(locationArr)); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | List<string> locationCodes = outStocks.Select(x => x.LocationCode).ToList(); | 
|---|
|  |  |  | List<Dt_LocationInfo> locationInfos1 = _basicService.LocationInfoService.Repository.GetLocationInfos(locationCodes); | 
|---|
|  |  |  | if (locationInfos1 == null) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | throw new Exception($"{locationCodes}è´§ä½æ¥è¯¢ä¸ºç©ºï¼è¯·æ£æ¥"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | locationInfos.AddRange(locationInfos1); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return (outStocks, proOutOrderDetails, outProStockInfos, locationInfos); | 
|---|
|  |  |  | } | 
|---|