Blame view

src/main/java/com/huaheng/common/constant/QuantityConstant.java 14.4 KB
pengcheng authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.huaheng.common.constant;

/**
 * 数字自定义常量
 *
 * @author  ricard
 */
public class QuantityConstant {
    /**
     * 1、入库单状态
     * 2、出库单状态
     * 3、单据上传状态
     * 4、入库组盘状态
     * 5、出库组盘状态
     * 6、任务类型
     * 7、任务状态
     * 8、波次状态
     * 9、质检状态
     * 10、盘点状态
DESKTOP-AO0VKC8\mahua authored
20
     * 11INVENTORY_TRANSACTION_RECEIPT
pengcheng authored
21
22
23
24
25
26
27
28
29
30
31
     * 12、调整单状态
     * 13、任务内部类型
     * 14、质检单类型
     */

    //1、入库单状态

    //新建
    public static final Integer RECEIPT_HEADER_BUILD = 0;

    //等待审核
32
    public static final Integer RECEIPT_HEADER_VERIFYING = 5;
pengcheng authored
33
34

    //驳回
35
    public static final Integer RECEIPT_HEADER_REJECTED = 10;
pengcheng authored
36
37
38
39

    //作废
    public static final Integer RECEIPT_HEADER_OBSOLETE = 20;
40
41
42
43
    /**通过*/
//    public static final Integer RECEIPT_HEADER_APPROVE = 50;

    /**订单池*/
pengcheng authored
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
    public static final Integer RECEIPT_HEADER_POOL = 100;

    //入库预约
    public static final Integer RECEIPT_HEADER_RESERVATION = 120;

    //入库到货
    public static final Integer RECEIPT_HEADER_ARRIVAL = 150;

    //入库质检
    public static final Integer RECEIPT_HEADER_CHECK = 180;

    //收货
    public static final Integer RECEIPT_HEADER_RECEIVING = 200;

    //定位
    public static final Integer RECEIPT_HEADER_POSITION = 240;

    //等待上架
    public static final Integer RECEIPT_HEADER_WAIT = 280;
64
    /** 上架 */
pengcheng authored
65
66
    public static final Integer RECEIPT_HEADER_SHELF = 300;
DESKTOP-AO0VKC8\mahua authored
67
    /** 过账*/
pengcheng authored
68
69
    public static final Integer RECEIPT_HEADER_POSTING = 800;
DESKTOP-AO0VKC8\mahua authored
70
    /** 回传 */
pengcheng authored
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
    public static final Integer RECEIPT_HEADER_RETURN = 900;





    //2、出库单状态

    //新建
    public static final Integer SHIPMENT_HEADER_BUILD = 0;

    //订单池
    public static final Integer SHIPMENT_HEADER_POOL = 100;

    //出库预约
    public static final Integer SHIPMENT_HEADER_RESERVATION = 120;

    //订单分析
    public static final Integer SHIPMENT_HEADER_ANALYSIS = 150;

    //波次
    public static final Integer SHIPMENT_HEADER_WAVE = 200;

    //出库组盘
    public static final Integer SHIPMENT_HEADER_GROUPDISK = 300;

    //拣货完成
    public static final Integer SHIPMENT_HEADER_COMPLETED = 500;

    //发运
    public static final Integer SHIPMENT_HEADER_SHIPPING = 800;

    //回传
    public static final Integer SHIPMENT_HEADER_RETURN = 900;




    //3、单据上传状态

    //未上传
    public static final Integer UPLOAD_NOT = 0;

    //上传失败
    public static final Integer UPLOAD_FAILED = 10;

    //上架完成
    public static final Integer UPLOAD_SUCCESS = 20;




    //4、入库组盘状态

    //新建
    public static final Integer RECEIPT_CONTAINER_BUILD = 0;
128
    /** 生成任务 */
pengcheng authored
129
130
    public static final Integer RECEIPT_CONTAINER_TASK= 10;
131
    /**上架完成 */
pengcheng authored
132
133
    public static final Integer RECEIPT_CONTAINER_FINISHED = 20;
134
    /** 复核完成*/
pengcheng authored
135
136
137
138
139
140
    public static final Integer RECEIPT_CONTAINER_REVIEWSUCCESS = 30;



    //5、出库组盘状态
141
    /** 新建 */
pengcheng authored
142
143
    public static final Integer SHIPMENT_CONTAINER_BUILD = 0;
144
    /** 生成任务 */
pengcheng authored
145
146
    public static final Integer SHIPMENT_CONTAINER_TASK= 10;
147
    /** 拣货完成 */
pengcheng authored
148
149
    public static final Integer SHIPMENT_CONTAINER_FINISHED = 20;
150
    /** 复核完成 */
pengcheng authored
151
152
153
154
155
156
    public static final Integer SHIPMENT_CONTAINER_REVIEWSUCCESS = 30;



    //6、任务类型
157
    /** 整盘入库 */
游杰 authored
158
    public static final int TASK_TYPE_WHOLERECEIPT = 100;
pengcheng authored
159
160
    /** 补充入库 */
游杰 authored
161
    public static final int TASK_TYPE_SUPPLEMENTRECEIPT = 200;
pengcheng authored
162
163
    /** 整盘出库 */
游杰 authored
164
    public static final int TASK_TYPE_WHOLESHIPMENT = 300;
pengcheng authored
165
166
    /** 分拣出库 */
游杰 authored
167
    public static final int TASK_TYPE_SORTINGSHIPMENT = 400;
pengcheng authored
168
169
    /** 空容器入库 */
游杰 authored
170
    public static final int TASK_TYPE_EMPTYRECEIPT = 500;
pengcheng authored
171
172
    /** 空容器出库 */
游杰 authored
173
    public static final int TASK_TYPE_EMPTYSHIPMENT = 600;
pengcheng authored
174
175
    /** 盘点 */
游杰 authored
176
    public static final int TASK_TYPE_CYCLECOUNT = 700;
pengcheng authored
177
178
    /** 移库 */
游杰 authored
179
    public static final int TASK_TYPE_TRANSFER = 800;
pengcheng authored
180
181
    /** 出库查看 */
游杰 authored
182
    public static final int TASK_TYPE_VIEW = 900;
pengcheng authored
183
游杰 authored
184
    /** 过站 */
游杰 authored
185
186
    public static final int TASK_TYPE_OVER_STATION = 1000;
游杰 authored
187
188
189
190
191
192
    /** 空托盘组入库 */
    public static final int TASK_TYPE_MANY_EMPTYRECEIPT = 1100;

    /** 空托盘组出库 */
    public static final int TASK_TYPE_MANY_EMPTYSHIPMENT = 1200;
pengcheng authored
193
194
195
196


    //7、任务状态
197
    /** 生成任务 */
游杰 authored
198
    public static final int TASK_STATUS_BUILD = 1;
pengcheng authored
199
200
    /** 下达任务 */
游杰 authored
201
    public static final int TASK_STATUS_RELEASE = 10;
pengcheng authored
202
203
    /** 开始执行 */
游杰 authored
204
    public static final int TASK_STATUS_RUNNING = 20;
pengcheng authored
205
游杰 authored
206
207
208
209
    /** 到达拣选站台 */
    public static final int TASK_STATUS_ARRIVED_STATION = 50;
210
    /** 任务完成 */
游杰 authored
211
    public static final int TASK_STATUS_COMPLETED = 100;
pengcheng authored
212
213
214
215


    //8、波次状态
pengcheng authored
216
217
    //未执行
    public static final Integer WAVE_STATUS_BUILD = 10;
pengcheng authored
218
pengcheng authored
219
220
    //执行中
    public static final Integer WAVE_STATUS_START = 20;
pengcheng authored
221
pengcheng authored
222
223
    //结束
    public static final Integer WAVE_STATUS_END = 30;
pengcheng authored
224
pengcheng authored
225
226
    //执行失败
    public static final Integer WAVE_STATUS_ERROR = 40;
pengcheng authored
227
228
pengcheng authored
229
230
    //波次新建
    public static final Integer WAVE_STEP_BUILD = 0;
pengcheng authored
231
pengcheng authored
232
233
    //剔除订单
    public static final Integer WAVE_STEP_CULL = 5;
pengcheng authored
234
pengcheng authored
235
236
237
238
239
240
241
242
    //波次执行
    public static final Integer WAVE_STEP_START = 10;

    //波次释放
    public static final Integer WAVE_STEP_FREED = 130;

    //波次完成
    public static final Integer WAVE_STEP_END = 100;
pengcheng authored
243
pengcheng authored
244
245
    //波次失败
    public static final Integer WAVE_STEP_ERROR = 120;
pengcheng authored
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285




    //9、质检状态

    //新建
    public static final Integer CHECK_STATUS_BUILD = 0;

    //质检中
    public static final Integer CHECK_STATUS_IN = 10;

    //质检完成
    public static final Integer CHECK_STATUS_COMPLETED = 20;



    //10、盘点状态

    //新建
    public static final Integer CYCLECOUNT_STATUS_BUILD = 1;

    //盘点任务生成
    public static final Integer CYCLECOUNT_STATUS_BUILDTASK = 5;

    //执行中
    public static final Integer CYCLECOUNT_STATUS_EXECUTING = 10;

    //已登记
    public static final Integer CYCLECOUNT_STATUS_REGISTERED= 15;

    //审核
    public static final Integer CYCLECOUNT_STATUS_REVIEW = 30;

    //关闭
    public static final Integer CYCLECOUNT_STATUS_CLOSE = 99;

    //盘点完成
    public static final Integer CYCLECOUNT_STATUS_COMPLETED = 100;
286
287
288
    //盘点有差异
    public static final Integer CYCLECOUNT_STATUS_DIFFERENCE = 105;
pengcheng authored
289
    //已生成调整单
290
291
    public static final Integer CYCLECOUNT_STATUS_GENERATEADJUST = 110;
pengcheng authored
292
293
294
295
296



    //11、库存交易类型
DESKTOP-AO0VKC8\mahua authored
297
    /** 入库 */
pengcheng authored
298
299
    public static final Integer INVENTORY_TRANSACTION_RECEIPT = 10;
DESKTOP-AO0VKC8\mahua authored
300
    /** 出库 */
pengcheng authored
301
302
    public static final Integer INVENTORY_TRANSACTION_SHIPMENT = 20;
DESKTOP-AO0VKC8\mahua authored
303
    /** 调整入 */
pengcheng authored
304
305
    public static final Integer INVENTORY_TRANSACTION_ADJUSTINTO = 30;
DESKTOP-AO0VKC8\mahua authored
306
    /** 调整出 */
pengcheng authored
307
308
    public static final Integer INVENTORY_TRANSACTION_ADJUSTOUT = 40;
DESKTOP-AO0VKC8\mahua authored
309
    /** 调整属性 */
pengcheng authored
310
311
    public static final Integer INVENTORY_TRANSACTION_ADJUSTPROPERTIES = 50;
DESKTOP-AO0VKC8\mahua authored
312
    /** 盘点 */
pengcheng authored
313
314
    public static final Integer INVENTORY_TRANSACTION_CYCLECOUNT = 60;
DESKTOP-AO0VKC8\mahua authored
315
    /** 移库入 */
pengcheng authored
316
317
    public static final Integer INVENTORY_TRANSACTION_TRANSFERINTO = 70;
DESKTOP-AO0VKC8\mahua authored
318
    /** 移库出 */
pengcheng authored
319
320
321
    public static final Integer INVENTORY_TRANSACTION_TRANSFEROUT = 80;
322
pengcheng authored
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
    //12、调整单状态

    //未批准
    public static final Integer ADJUST_STATUS_NOAPPROVED = 0;

    //已批准
    public static final Integer ADJUST_STATUS_APPROVED = 1;

    //待调整
    public static final Integer ADJUST_STATUS_WAIT = 2;

    //已调整
    public static final Integer ADJUST_STATUS_STOP = 3;


    //13、任务内部类型
340
    /** 上架任务*/
游杰 authored
341
    public static final Integer TASK_INTENERTYPE_RECEIPT = 100;
pengcheng authored
342
343
    /** 拣货任务*/
游杰 authored
344
    public static final Integer TASK_INTENERTYPE_SHIPMENT = 200;
pengcheng authored
345
346
    /** 工作任务*/
游杰 authored
347
    public static final Integer TASK_INTENERTYPE_WORK = 300;
pengcheng authored
348
349

    //盘点任务
游杰 authored
350
    public static final Integer TASK_INTENERTYPE_CYCLECOUNT = 400;
pengcheng authored
351
352
353
354
355
356
357
358
359
360
361
362
363
364



    //13、质检单类型

    //入库质检
    public static final Integer CHECK_TYPE_RECEIPT = 100;

    //在库全检
    public static final Integer CHECK_TYPE_FULL = 200;

    //在库抽检
    public static final Integer CHECK_TYPE_SELECT = 300;
pengcheng authored
365
366
    //空货架
    public static final Integer POINTS_EMPTY = 0;
pengcheng authored
367
pengcheng authored
368
369
    //非空货架
    public static final Integer POINTS_SOME = 1;
游杰 authored
370
371
372

    public static final int ROW_OUT = 1;
    public static final int ROW_IN = 0;
游杰 authored
373
374
375
376
377
378
379
380
381
    //WCS任务下发
    public static final String ADDRESS_WCS_TASK_ASSIGN = "WCS_TASK_ASSIGN";
    //WCS任务取消
    public static final String ADDRESS_WCS_TASK_CANCEL = "WCS_TASK_CANCEL";
    //WCS任务信息查询
    public static final String ADDRESS_WCS_TASK_INFO = "WCS_TASK_INFO";
    //WCS设置任务优先级
    public static final String ADDRESS_WCS_TASK_PRIORITY_CHANGE = "WCS_TASK_PRIORITY_CHANGE";
382
383
    //WCS根据站台获取托盘
    public static final String ADDRESS_WCS_GET_STATION_PALLET = "WCS_GET_STATION_PALLET";
384
385
386
387
    //WCS站台信息查询
    public static final String ADDRESS_WCS_STATION_INFOS = "WCS_STATION_INFOS";
    //WCS获取可用巷道
    public static final String ADDRESS_WCS_AVAILABLE_ROADWAY = "WCS_AVAILABLE_ROADWAY";
游杰 authored
388
389
    //拆盘机地址
    public static final String ADDRESS_WCS_MANY_EMPTY_CONTAINER = "WCS_MANY_EMPTY_CONTAINER";
390
游杰 authored
391
    //ERP
392
393
    public static final String PLATFORM_ERP = "ERP";
    public static final String PLATFORM_WMS = "WMS";
394
395
    public static final String PLATFORM_WCS = "WCS";
    public static final String PLATFORM_AGV = "AGV";
游杰 authored
396
397
398
    //good
    public static final String GOOD = "good";
399
400
401
402
    public static final int STATION_IN = 1;
    public static final int STATION_OUT = 2;
    public static final int STATION_PICK = 3;
    public static final int STATION_PICK_AND_OUT = 4;
403
游杰 authored
404
    public static final String STATUS_CONTAINER_EMPTY = "empty";
405
    public static final String STATUS_CONTAINER_LOCK = "lock";
游杰 authored
406
    public static final String STATUS_CONTAINER_SOME = "some";
407
    public static final String STATUS_CONTAINER_FULL = "full";
游杰 authored
408
    public static final String STATUS_CONTAINER_MANY = "many";
409
游杰 authored
410
411
    public static final String STATUS_LOCATION_EMPTY = "empty";
    public static final String STATUS_LOCATION_LOCK = "lock";
游杰 authored
412
游杰 authored
413
414
    public static final String RULE_SHIPMENT_TASK= "shipmentTaskRule";
    public static final String RULE_TASK_LOCATION = "taskLocationRule";
415
    public static final String RULE_CONNECT_WCS = "connectWcs";
游杰 authored
416
    public static final String RULE_ALLOCATION = "allocationRule";
417
    public static final String DOUBLE_FORK_RESERVE_LOCATION = "doubleForkReserveLocation";
游杰 authored
418
419
420

    public static final int DOUBLE_FORK = 1;
    public static final int SINGLE_FORK = 0;
游杰 authored
421
游杰 authored
422
423
    public static final int RULE_TASK_SET_LOCATION = 1;
    public static final int RULE_TASK_NOT_LOCATION = 0;
424
425
426
427
428
429

    public static final int RULE_TASK_PICK_SHIPMENT = 1;
    public static final int RULE_TASK_WHOLE_SHIPMENT = 0;

    public static final int RULE_WCS_CONNECT = 1;
    public static final int RULE_WCS_DISCONNECT = 0;
430
游杰 authored
431
432
    public static final int NOT_MATERIAL_AREAS = 0;
433
434
435
    public static final int RYTASK_STATUS_RUN = 0;
    public static final int RYTASK_STATUS_STOP = 1;
436
437
438
439
440
441
442
    public static final int DOUBLE_IN = 1;
    public static final int NORMAL_IN = 0;

    public static final int EMPTY_OUT = 1;
    public static final int NORMAL_OUT = 0;
443
    public static String ryTask_warehouse_code;
444
445
446
447
448
449
450
451
452

    public static String FILTER_CONFIG_XJXC = "XJXC";

    public static String FILTER_CONFIG_XJHC = "XJHC";

    public static String FILTER_CONFIG_PH = "PH";

    public static String FILTER_CONFIG_XMH = "XMH";
453
454
455
456
457
458
    /*默认仓库*/
    public static String DEFAULT_WAREHOUSE = "CS0001";

    /*默认货主编码*/
    public static String DEFAULT_COMPANY = "SHUZ";
459
460
461
    /*分拣图片URL*/
    public static String FILE_PICTURE_URL = "FILE_PICTURE_URL";
462
463
464
465
    /*托盘类型*/
    public static String CONTAINER_TYPE_X = "X";
    public static String CONTAINER_TYPE_S = "S";
466
467
468
469
470
471
    /*库位高度类型*/
    /*高高度*/
    public static String LOCATION_HEIGHT_LIGH = "3";
    /*低高度*/
    public static String LOCATION_HEIGHT_LOW = "2";
tongzhonghao authored
472
473
474
    /*整出口*/
    public static String SHIPMENT_ALL_IN_PORT = "P1001";
475
476
477
478
479
480
481
482
483
    /*整出口*/
    public static String MES_RECEIPT_TYPE_01 = "01receipt";
    public static String MES_RECEIPT_TYPE_02 = "02internalInbound";
    public static String MES_RECEIPT_TYPE_05 = "05transferInbound";

    public static String MES_SHIPMENT_TYPE_03 = "03internalOutbound";
    public static String MES_SHIPMENT_TYPE_04 = "04release";
    public static String MES_SHIPMENT_TYPE_06 = "06transferOutbound";
tongzhonghao authored
484
485
486
487
488
    public static String MES_BACK_ADDRESS = "MES_BACK_ADDRESS";

    public static String MES_STATUS_UN_COMPLETE = "01draft";
    public static String MES_STATUS_COMPLETE = "02accepted";
tongzhonghao authored
489
490
491
    public static String ERP_PULL_MATERIALINFO = "ERP_PULL_MATERIALINFO";
    public static String ERP_PULL_MATERIALGROUP = "ERP_PULL_MATERIALGROUP";
tongzhonghao authored
492
493
494
495
    /**
     * 其他出库类型
     */
    public static String SHIPMENT_QTCKLX= "QTCKLX";
tongzhonghao authored
496
    public static String RECEIPT_QTCKLX= "QTRKLX";
tongzhonghao authored
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
    public static final String LOCAL_SERVER_IP = "localServerIP";

    public static final String ERP_K3CLOUD_SAVE = "ERP_K3CLOUD_SAVE";
    public static final String ERP_K3CLOUD_POST = "ERP_K3CLOUD_POST";
    public static final String ERP_K3CLOUD_QUERY = "ERP_K3CLOUD_QUERY";
    public static final String ERP_K3CLOUD_LOGIN = "ERP_K3CLOUD_LOGIN";
    public static final String ERP_SESSION_ID = "SESSION_ID";
    public static final String WCS_PUSH_ARTIFICIAL = "WCS_PUSH_ARTIFICIAL";

    public static final String ERP_AcctID = "6278d00c226ad0";
    public static final String ERP_AppID = "236892_x0boS8GoTul+0f8o74SAQayrTsxbwqkI";
    public static final String ERP_AppSec = "3d439025fd6a4f59990f18e4161f6d24";
    public static final String ERP_UserName = "Administrator";
    public static final String ERP_PASSWORD = "";
    public static final String ERP_LCID = "2052";
    public static final String ERP_ServerUrl = "http://172.19.70.60/k3cloud";
tongzhonghao authored
515
tongzhonghao authored
516
李泰瑜 authored
517
518
519
520
    /*生产入库单回传*/
    public static final String SP_InStock = "SP_InStock";
    /*其他入库单回传*/
    public static final String STK_MISCELLANEOUS = "STK_MISCELLANEOUS";
tongzhonghao authored
521
522
523
524
525
526
    /**
     * 平库容器组盘自动生成任务
     */
    public static final String FLOOR_AUTO_CREATE_TASK = "FLOOR_AUTO_CREATE_TASK";

    public static final String ZONE_FLOOR = "A";
李泰瑜 authored
527
528
tongzhonghao authored
529
pengcheng authored
530
}