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
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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
using MongoDB.Bson;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
 
namespace HH.WMS.Entitys.Algorithm
{
    /// <summary>
    /// 仓库结构-AutoBom
    /// </summary>
    //[DataContract]
    public class AutoBomStockStructreEntity
    {
        [JsonIgnore]
        public ObjectId _id
        {
            get;
            set;
        }
 
        /// <summary>
        /// CN_GUID
        /// </summary>
        public string CN_GUID
        {
            get;
            set;
        }
        /// <summary>
        /// 仓库编号
        /// </summary>
        public string CN_S_STOCK_CODE
        {
            set;
            get;
        }
        /// <summary>
        /// 排前缀
        /// </summary>
        public string CN_S_ROW_PREFIX
        {
            set;
            get;
        }
        /// <summary>
        ///  排
        /// </summary>
        public string CN_S_ROW
        {
            set;
            get;
        }
        /// <summary>
        /// 列前缀
        /// </summary>
        public string CN_S_COL_PREFIX
        {
            set;
            get;
        }
        /// <summary>
        /// 列
        /// </summary>
        public int CN_N_COL
        {
            set;
            get;
        }
        /// <summary>
        /// 已生成列数
        /// </summary>
        public int CN_N_CREATED_COL_NUM
        {
            set;
            get;
        }
        /// <summary>
        /// 起始列
        /// </summary>
        public string CN_S_START_COL_NUM
        {
            set;
            get;
        }
        /// <summary>
        /// 层前缀
        /// </summary>
        public string CN_S_FLOOR_PREFIX
        {
            set;
            get;
        }
        /// <summary>
        /// 层数
        /// </summary>
        public int CN_N_FLOOR
        {
            set;
            get;
        }
        /// <summary>
        /// 已生成层数
        /// </summary>
        public int CN_N_CREATED_FLOOR_NUM
        {
            set;
            get;
        }
        /// <summary>
        /// 起始层
        /// </summary>
        public string CN_S_START_FLOOR_NUM
        {
            set;
            get;
        }
        /// <summary>
        /// 巷道
        /// </summary>
        public string CN_S_ROADWAY
        {
            set;
            get;
        }
        /// <summary>
        /// 创建人
        /// </summary>
        public string CN_S_CREATOR
        {
            set;
            get;
        }
        /// <summary>
        /// 
        /// </summary>
        public string CN_S_CREATOR_NAME
        {
            set;
            get;
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime CN_T_CREATE
        {
            set;
            get;
        }
        /// <summary>
        /// 
        /// </summary>
        public string CN_S_MODIFY_BY
        {
            set;
            get;
        }
        /// <summary>
        /// 
        /// </summary>
        public string CN_S_MODIFY_NAME
        {
            set;
            get;
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? CN_T_MODIFY
        {
            set;
            get;
        }
        /// <summary>
        /// 库区编码
        /// </summary>
        public string CN_S_AREA_CODE
        {
            set;
            get;
        }
        /// <summary>
        /// 是否可生成货位
        /// </summary>
        public string CN_C_IS_ALLOW_GENERATE
        {
            set;
            get;
        }
 
 
        #region 根据起始列号和起始行号做判断
        /// <summary>
        /// 起始行号(层号)
        /// </summary>
        public int first_row
        {
            get
            {
                int n = 1;
                int.TryParse(CN_S_START_FLOOR_NUM, out n);
                return n;
            }
        }
 
        /// <summary>
        /// 起始列号
        /// </summary>
        public int first_column
        {
            get
            {
                int n = 1;
                int.TryParse(CN_S_START_COL_NUM, out n);
                return n;
            }
        }
 
        /// <summary>
        /// 起始行长度(层)
        /// </summary>
        public int first_row_count
        {
            get
            {
                return CN_S_START_FLOOR_NUM.Length;
            }
        }
 
        /// <summary>
        /// 起始列长度
        /// </summary>
        public int first_column_count
        {
            get
            {
                return CN_S_START_COL_NUM.Length;
            }
        }
        #endregion
    }
}