using HH.WMS.Common.Response;
|
using HH.WMS.DAL.External;
|
using HH.WMS.Entitys.Basic;
|
using HH.WMS.Entitys.External;
|
using System;
|
using System.Collections.Generic;
|
using System.Data.Common;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace HH.WMS.BLL.External
|
{
|
public class TN_WM_B_OBJ_INOUTBLL : BaseBLL
|
{
|
#region 添加货位状态变化数据
|
|
public WebApiResponse Add(TN_WM_B_OBJ_INOUTEntity model, DbTransaction trans)
|
{
|
if (string.IsNullOrEmpty(model.CN_S_STOCK_AREA))
|
{
|
AutoBomLocationEntity locationModel = CreateDAL<HH.WMS.DAL.Algorithm.TN_WMS_LOCATIONDAL>().GetModel(model.CN_S_LOCATION_CODE);
|
model.CN_S_STOCK_AREA = locationModel.CN_S_AREA_CODE;
|
model.CN_S_STOCK_CODE = locationModel.CN_S_STOCK_CODE;
|
}
|
var result = CreateDAL<TN_WM_B_OBJ_INOUTDAL>().Add(model, trans);
|
return result;
|
}
|
|
#endregion
|
|
#region 货位状态变化数据
|
|
public WebApiResponse Delete(string strWhere)
|
{
|
var result = CreateDAL<TN_WM_B_OBJ_INOUTDAL>().Delete(strWhere);
|
return result;
|
}
|
|
#endregion
|
|
#region 备份货位变化表
|
|
public WebApiResponse BackData(string strWhere)
|
{
|
var result = CreateDAL<TN_WM_B_OBJ_INOUTDAL>().BackData(strWhere);
|
return result;
|
}
|
|
#endregion
|
}
|
}
|