Tjiny
2025-06-17 7e47d1856a1db4367ce103a8b7de37fb0f3590b0
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
using System;
using HH.WCS.Mobox3.RiDong.util;
using SqlSugar;
 
namespace HH.WCS.Mobox3.RiDong.models;
 
/// <summary>
/// 容器货品明细
/// </summary>
[SugarTable("TN_CG_Detail")]
public class CntrItemDetail : BaseModel
{
    /// <summary>
    /// 容器货品ID
    /// </summary>
    public string S_CG_ID { get; set; }
        
    /// <summary>
    /// 容器编码
    /// </summary>
    public string S_CNTR_CODE { get; set; }
 
    /// <summary>
    ///相同 ITEM 合并
    /// </summary>
    public string C_ITEM_MERGE { get; set; } = "空";
        
    /// <summary>
    /// 箱格号
    /// </summary>
    public char S_CELL_NO { get; set; }
        
    /// <summary>
    /// 货品系列号
    /// </summary>
    public string S_SERIAL_NO { get; set; }
        
    /// <summary>
    /// 货品编码
    /// </summary>
    public string S_ITEM_CODE { get; set; }
        
    /// <summary>
    /// 货品名称
    /// </summary>
    public string S_ITEM_NAME { get; set; }
 
    /// <summary>
    /// 货品规格
    /// </summary>
    public string S_ITEM_SPEC { get; set; }
 
    /// <summary>
    /// 货品状态
    /// </summary>
    public string S_ITEM_STATE { get; set; } = "合格";
 
    /// <summary>
    /// 货品状态
    /// </summary>
    public int N_ITEM_STATE { get; set; }
 
    /// <summary>
    /// 批次号
    /// </summary>
    public string S_BATCH_NO { get; set; }
 
    /// <summary>
    /// 使用者
    /// </summary>
    public string S_END_USER { get; set; }
 
    /// <summary>
    /// 货主编码
    /// </summary>
    public string S_OWNER { get; set; }
 
    /// <summary>
    /// 供应商编码
    /// </summary>
    public string S_SUPPLIER_NO { get; set; }
        
    /// <summary>
    /// 供应商名称
    /// </summary>
    public string S_SUPPLIER_NAME { get; set; }
 
    /// <summary>
    /// 数量
    /// </summary>
    public float F_QTY { get; set; }
 
    /// <summary>
    /// 计量单位
    /// </summary>
    public string S_UOM { get; set; } = "kg";
 
    /// <summary>
    /// 分配量
    /// </summary>
    public float F_ALLOC_QTY { get; set; }
        
    /// <summary>
    /// 来源类型
    /// </summary>
    public string S_BS_TYPE { get; set; }
 
    /// <summary>
    /// 来源单号
    /// </summary>
    public string S_BS_NO { get; set; }
 
    /// <summary>
    /// 来源单行号
    /// </summary>
    public int N_BS_ROW_NO { get; set; }
 
    /// <summary>
    /// 生产日期
    /// </summary>
    public string D_PRD_DATE { get; set; }
        
    /// <summary>
    /// 过期日期
    /// </summary>
    public string D_EXP_DATE { get; set; }
        
    /// <summary>
    /// 体积
    /// </summary>
    public float F_VOLUME { get; set; }
 
    /// <summary>
    /// 重量
    /// </summary>
    public float F_WEIGHT { get; set; }
 
    /// <summary>
    /// 入库时间
    /// </summary>
    public DateTime T_INBOUND_TIME { get; set; }
 
    /// <summary>
    /// ERP仓库
    /// </summary>
    public string S_ERP_WH_CODE { get; set; }
 
    /// <summary>
    /// 扩展属性1
    /// </summary>
    public string S_EXT_ATTR1 { get; set; }
        
    /// <summary>
    /// 扩展属性2
    /// </summary>
    public string S_EXT_ATTR2 { get; set; }
        
    /// <summary>
    /// 扩展属性3
    /// </summary>
    public string S_EXT_ATTR3 { get; set; }
        
    /// <summary>
    /// 扩展属性4
    /// </summary>
    public string S_EXT_ATTR4 { get; set; }
        
    /// <summary>
    /// 扩展属性5
    /// </summary>
    public string S_EXT_ATTR5 { get; set; }
 
    /// <summary>
    /// 是否入库(1:默认未入库,2:入库)
    /// </summary>
    public int N_ALR_ENTR { get; set; } = 1;
 
    /// <summary>
    /// 地址码
    /// </summary>
    public string S_ADDRESS_CODE { get; set; }
 
    /// <summary>
    /// 仓库编码
    /// </summary>
    public string S_WH_CODE { get; set; } = Settings.WHCode;
 
    /// <summary>
    /// 容器表
    /// </summary>
    [SugarColumn(IsIgnore = true)]
    [Navigate(NavigateType.OneToOne, nameof(S_CNTR_CODE), nameof(Container.S_CODE))]
    public Container Cntr { get; set; }
}