jt
2021-06-10 5d0d028456874576560552f5a5c4e8b801786f11
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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
    }
}