| | |
| | | residueDetailList.Add(stockInfo.Details[i]); |
| | | } |
| | | } |
| | | |
| | | stockInfo.StockStatus = StockStatusEmun.æ£é宿.ObjToInt(); |
| | | List<string> mCodes = stockInfo.Details.GroupBy(x => x.MaterielCode).Select(x => x.Key).ToList(); |
| | | _unitOfWorkManage.BeginTran(); |
| | | foreach (string code in mCodes) |
| | |
| | | { |
| | | x.OutboundQuantity = 0; |
| | | }); |
| | | |
| | | if (stockInfo.Details.Count > deleteDetailList.Count) |
| | | _stockService.StockInfoService.Repository.UpdateData(stockInfo); |
| | | else |
| | | _stockService.StockInfoService.Repository.DeleteAndMoveIntoHty(stockInfo, OperateTypeEnum.èªå¨å®æ); |
| | | _stockService.StockInfoDetailService.Repository.DeleteAndMoveIntoHty(deleteDetailList, OperateTypeEnum.èªå¨å®æ); |
| | | _stockService.StockInfoDetailService.Repository.UpdateData(updateDetailList); |
| | | //_stockService.StockInfoDetailService.Repository.DeleteData(deleteDetailList); |