using JSMachine.WMS.App.Dto; using JSMachine.WMS.App.Dto.Enum; using JSMachine.WMS.App.IService; using JSMachine.WMS.Business.StockIn.IService; using JSMachine.WMS.Business.StockIn.ServiceImpl.ResponsibilityChain; using JSMachine.WMS.Infrastructure; using JSMachine.WMS.Infrastructure.Helper; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static JSMachine.WMS.App.Dto.StorageRackDto; namespace JSMachine.WMS.Business.StockIn.ServiceImpl.Strategy { /// /// 不混放策略 /// public class NoMixingStrategy : IStockInStrategy { private static readonly IStorageRackService StorageRackService = GlobalServericeProvidor.GetService(); private FloorEnum _floor; private TransportEnum _startArea; private string _materiaBatch; public NoMixingStrategy(TransportEnum startArea, FloorEnum floor, string materiaBatch) { _floor = floor; _startArea = startArea; _materiaBatch = materiaBatch; } public async Task CalCulateWarehouse() { StockInByExist stockInByExist = new(); StockInByNew stockInByNew = new(); stockInByExist.SetNextHandler(stockInByNew); return await stockInByExist.CalculateWarehouse(_startArea, _floor, _materiaBatch, null); } } }