| | |
| | | namespace WIDESEA_StockService |
| | | { |
| | | /// <summary> |
| | | /// 库存服务 |
| | | /// 库存服务聚合实现类 |
| | | /// </summary> |
| | | public class StockSerivce : IStockService |
| | | public class StockService : IStockService |
| | | { |
| | | /// <summary> |
| | | /// 库存明细服务 |
| | | /// </summary> |
| | | public IStockInfoDetailService StockInfoDetailService { get; } |
| | | |
| | | /// <summary> |
| | | /// 库存信息服务 |
| | | /// </summary> |
| | | public IStockInfoService StockInfoService { get; } |
| | | |
| | | /// <summary> |
| | | /// 库存明细历史服务 |
| | | /// </summary> |
| | | public IStockInfoDetail_HtyService StockInfoDetail_HtyService { get; } |
| | | |
| | | /// <summary> |
| | | /// 库存历史服务 |
| | | /// </summary> |
| | | public IStockInfo_HtyService StockInfo_HtyService { get; } |
| | | |
| | | public StockSerivce( |
| | | /// <summary> |
| | | /// 构造函数 |
| | | /// </summary> |
| | | /// <param name="stockInfoDetailService">库存明细服务</param> |
| | | /// <param name="stockInfoService">库存信息服务</param> |
| | | /// <param name="stockInfoDetail_HtyService">库存明细历史服务</param> |
| | | /// <param name="stockInfo_HtyService">库存历史服务</param> |
| | | public StockService( |
| | | IStockInfoDetailService stockInfoDetailService, |
| | | IStockInfoService stockInfoService, |
| | | IStockInfoDetail_HtyService stockInfoDetail_HtyService, |
| | |
| | | { |
| | | PalletCode = stock.TargetPalletNo, |
| | | WarehouseId = sourceStock.WarehouseId, |
| | | StockStatus = sourceStock.StockStatus, |
| | | Creater = "system" |
| | | StockStatus = StockStatusEmun.组盘暂存.GetHashCode(), |
| | | Creater = "system", |
| | | }; |
| | | |
| | | var newId = StockInfoService.Repository.AddData(newStock); |