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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HH.WMS.Entitys.Entitys;
using HH.WMS.Entitys.Basic;
using HH.WMS.Entitys.Common;
 
namespace HH.WMS.Entitys
{
    [Table("TN_WM_B_TRAY_ITEM_MST")]
    public class TN_WM_B_TRAY_ITEM_MSTEntity:BaseEntity,ICloneable 
    {
        public TN_WM_B_TRAY_ITEM_MSTEntity()
        {
            TrayItemDtlList = new List<TN_WM_B_TRAY_ITEM_DTLEntity>();
        }
        [Column("CN_GUID")]
        public string CN_GUID { get; set; }
 
        [Column("CN_S_TRAY_CODE")]
        public string CN_S_TRAY_CODE { get; set; }
 
        [Column("CN_S_TRAY_GRID")]
        public string CN_S_TRAY_GRID { get; set; }
 
        [Column("CN_S_OWNER")]
        public string CN_S_OWNER { get; set; }
 
        [Column("CN_S_ITEM_CODE")]
        public string CN_S_ITEM_CODE { get; set; }
 
        [Column("CN_S_ITEM_NAME")]
        public string CN_S_ITEM_NAME { get; set; }
 
        [Column("CN_S_FIGURE_NO")]
        public string CN_S_FIGURE_NO { get; set; }
 
        [Column("CN_S_MODEL")]
        public string CN_S_MODEL { get; set; }
 
        [Column("CN_S_ITEM_STATE")]
        public string CN_S_ITEM_STATE { get; set; }
 
        [Column("CN_F_QUANTITY")]
        public decimal CN_F_QUANTITY { get; set; }
 
        [Column("CN_S_MEASURE_UNIT")]
        public string CN_S_MEASURE_UNIT { get; set; }
 
        [Column("CN_S_IN_AREA_CODE")]
        public string CN_S_IN_AREA_CODE { get; set; }
 
        [Column("CN_F_INQTY")]
        public decimal CN_F_INQTY { get; set; }
 
        [Column("CN_F_ALLOC_QTY")]
        public decimal CN_F_ALLOC_QTY { get; set; }
 
        [Column("CN_S_TIMESTAMP")]
        public string CN_S_TIMESTAMP { get; set; }
 
        public string CN_S_UNIQUE_CODE { get; set; }
 
        public string CN_S_LOT_NO { get; set; }
 
        /// <summary>
        /// 包装单位
        /// </summary>
        public string CN_S_PACKING_UNIT { get; set; }
        /// <summary>
        /// 包装数量
        /// </summary>
 
        public decimal? CN_F_PACKING_QTY { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string CN_S_PRODUCTION_BATCH { get; set; }
 
        public string sqlwhere { get; set; }
 
        public string sqlwhere1 { get; set; }
        public List<TN_WM_B_TRAY_ITEM_DTLEntity> TrayItemDtlList { get; set; }
 
        /// <summary>
        /// 货位码 暂存
        /// </summary>
        public string  CN_S_LOCATION_CODE { get; set; }
        /// <summary>
        /// 老的托盘 暂存
        /// </summary>
        public string CN_S_TRAY_CODE_OLD { get; set; }
        /// <summary>
        /// 起始库区
        /// </summary>
        public string CN_S_START_AREA { get; set; }
        /// <summary>
        /// 仓库
        /// </summary>
        public string CN_S_STOCK_CODE { get; set; }
        /// <summary>
        /// 结束库区
        /// </summary>
        public string CN_S_END_AREA { get; set; }
          /// <summary>
        /// 暂存
        /// </summary>
        public decimal quantity { get; set; }
        /// <summary>
        /// 标识暂存
        /// </summary>
        public int flags { get; set; }
 
        public string CN_S_STOCK_AREA { get; set; }
 
        public int CN_N_INDEX { get; set; }
 
        public string CN_C_IS_SN { get; set; }
 
        public List<AuxiliaryEntity> AuxiliaryUnitList { get; set; }
 
        ///// <summary>
        ///// 物料重量
        ///// </summary>
        //public decimal CN_S_WEIGHT { get; set; }
        /// <summary>
        /// 拆包的明细,需要新增的
        /// </summary>
        public List<TN_WM_B_TRAY_ITEM_DTLEntity> UnpackingDtl { get; set; }
 
        public decimal CN_S_WEIGHT { get; set; }
 
        public TN_WM_B_TRAY_ITEM_MSTEntity Clone()
        {
            TN_WM_B_TRAY_ITEM_MSTEntity mst = (TN_WM_B_TRAY_ITEM_MSTEntity)this.MemberwiseClone();
            mst.TrayItemDtlList = new List<TN_WM_B_TRAY_ITEM_DTLEntity>();
            this.TrayItemDtlList.ForEach(x => { mst.TrayItemDtlList.Add(x.Clone()); });
            return mst;
        }
        public bool Update { get; set; }
    }
 
    public class TrayItemMstAndDtlEntity
    {
        public string CN_S_TRAY_CODE { get; set; }
        public string CN_S_TRAY_GRID { get; set; }
        public string CN_S_OWNER { get; set; }
        public string CN_S_ITEM_CODE { get; set; }
        public string CN_S_ITEM_NAME { get; set; }
        public string CN_S_FIGURE_NO { get; set; }
        public string CN_S_MODEL { get; set; }
        public string CN_S_ITEM_STATE { get; set; }
        public string CN_S_MEASURE_UNIT { get; set; }
        public string CN_S_LOT_NO { get; set; }
        public string CN_S_PRODUCTION_BATCH { get; set; }
        public string CN_S_SERIAL_NO { get; set; }
        public string CN_S_VENDOR_NO { get; set; }
        public string CN_S_VENDOR_NAME { get; set; }
        public string CN_S_PACKING_UNIT { get; set; }
        public decimal? CN_F_PACKING_QTY { get; set; }
        public decimal CN_F_QUANTITY { get; set; }
 
    }
}