using Kean.Domain.Stock.Repositories;
using System.Threading.Tasks;
namespace Kean.Domain.Stock.SharedServices
{
///
/// 获取库存位置
///
public sealed class ChooseStorageCell
{
private readonly IStockRepository _stockRepository;
///
/// 依赖注入
///
public ChooseStorageCell(IStockRepository stockRepository) =>
_stockRepository = stockRepository;
///
/// 处理程序
///
public Task Handler(int destination,
int goodsid,
bool bEnable,
string isLocal,
string materialType,
string workOrderNo,
string qualityState,
string productDate) =>
_stockRepository.ChooseStorageCell(
destination,
goodsid,
bEnable,
isLocal,
materialType,
workOrderNo,
qualityState,
productDate);
}
}