using AutoMapper;
|
using WIDESEA_Common.StockEnum;
|
using WIDESEA_Core;
|
using WIDESEA_Core.BaseRepository;
|
using WIDESEA_Core.BaseServices;
|
using WIDESEA_IStockService;
|
using WIDESEA_Model.Models;
|
|
namespace WIDESEA_StockService
|
{
|
public partial class StockInfoService : ServiceBase<Dt_StockInfo, IRepository<Dt_StockInfo>>, IStockInfoService
|
{
|
private readonly IMapper _mapper;
|
|
public IRepository<Dt_StockInfo> Repository => BaseDal;
|
|
public StockInfoService(IRepository<Dt_StockInfo> BaseDal, IMapper mapper) : base(BaseDal)
|
{
|
_mapper = mapper;
|
}
|
|
/*public WebResponseContent AddStockInfo(string PalletCode, int PalletType, int WarehouseId)
|
{
|
WebResponseContent webResponse=new WebResponseContent();
|
try
|
{
|
Dt_StockInfo dt_StockInfo = new Dt_StockInfo();
|
dt_StockInfo.PalletCode = PalletCode;
|
dt_StockInfo.PalletType = PalletType;
|
dt_StockInfo.WarehouseId = WarehouseId;
|
dt_StockInfo.StockStatus = (int)StockStatusEmun.入库中;
|
dt_StockInfo.Creater = "MWS";
|
dt_StockInfo.CreateDate = DateTime.Now;
|
BaseDal.AddData(dt_StockInfo);
|
return webResponse.OK();
|
}
|
catch (Exception ex)
|
{
|
return webResponse.Error($"库存添加错误:原因:{ex.Message}");
|
}
|
}*/
|
}
|
}
|