You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.1 KiB
40 lines
1.1 KiB
using Kean.Domain.Stock.Repositories;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Kean.Domain.Stock.SharedServices
|
|
{
|
|
/// <summary>
|
|
/// 获取库存位置
|
|
/// </summary>
|
|
public sealed class ChooseStorageCell
|
|
{
|
|
private readonly IStockRepository _stockRepository;
|
|
|
|
/// <summary>
|
|
/// 依赖注入
|
|
/// </summary>
|
|
public ChooseStorageCell(IStockRepository stockRepository) =>
|
|
_stockRepository = stockRepository;
|
|
|
|
/// <summary>
|
|
/// 处理程序
|
|
/// </summary>
|
|
public Task<int?> 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);
|
|
}
|
|
}
|