Blame view

src/main/java/com/huaheng/common/constant/QuantityConstant.java 14.6 KB
pengcheng authored
1
2
package com.huaheng.common.constant;
游杰 authored
3
4
import com.huaheng.mobile.download.Constant;
pengcheng authored
5
6
7
/**
 * 数字自定义常量
 *
易文鹏 authored
8
 * @author ricard
pengcheng authored
9
10
11
12
13
14
15
16
17
18
19
20
21
 */
public class QuantityConstant {
    /**
     * 1、入库单状态
     * 2、出库单状态
     * 3、单据上传状态
     * 4、入库组盘状态
     * 5、出库组盘状态
     * 6、任务类型
     * 7、任务状态
     * 8、波次状态
     * 9、质检状态
     * 10、盘点状态
DESKTOP-AO0VKC8\mahua authored
22
     * 11INVENTORY_TRANSACTION_RECEIPT
pengcheng authored
23
24
25
26
27
28
29
30
31
32
33
     * 12、调整单状态
     * 13、任务内部类型
     * 14、质检单类型
     */

    //1、入库单状态

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

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

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

    //作废
    public static final Integer RECEIPT_HEADER_OBSOLETE = 20;
42
43
44
    /**通过*/
//    public static final Integer RECEIPT_HEADER_APPROVE = 50;
易文鹏 authored
45
46
47
    /**
     * 订单池
     */
pengcheng authored
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
    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;
易文鹏 authored
68
69
70
    /**
     * 上架
     */
pengcheng authored
71
72
    public static final Integer RECEIPT_HEADER_SHELF = 300;
易文鹏 authored
73
74
75
    /**
     * 过账
     */
pengcheng authored
76
77
    public static final Integer RECEIPT_HEADER_POSTING = 800;
易文鹏 authored
78
79
80
    /**
     * 回传
     */
pengcheng authored
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
    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;
114
115
116
    // 查询未完成的出入库单据使用
    public static final Integer HEADER_STATE = 290;
pengcheng authored
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134

    //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;
易文鹏 authored
135
136
137
138
    /**
     * 生成任务
     */
    public static final Integer RECEIPT_CONTAINER_TASK = 10;
pengcheng authored
139
易文鹏 authored
140
141
142
    /**
     * 上架完成
     */
pengcheng authored
143
144
    public static final Integer RECEIPT_CONTAINER_FINISHED = 20;
易文鹏 authored
145
146
147
    /**
     * 复核完成
     */
pengcheng authored
148
149
150
151
152
    public static final Integer RECEIPT_CONTAINER_REVIEWSUCCESS = 30;


    //5、出库组盘状态
易文鹏 authored
153
154
155
    /**
     * 新建
     */
pengcheng authored
156
157
    public static final Integer SHIPMENT_CONTAINER_BUILD = 0;
易文鹏 authored
158
159
160
161
    /**
     * 生成任务
     */
    public static final Integer SHIPMENT_CONTAINER_TASK = 10;
pengcheng authored
162
易文鹏 authored
163
164
165
    /**
     * 拣货完成
     */
pengcheng authored
166
167
    public static final Integer SHIPMENT_CONTAINER_FINISHED = 20;
易文鹏 authored
168
169
170
    /**
     * 复核完成
     */
pengcheng authored
171
172
173
174
175
    public static final Integer SHIPMENT_CONTAINER_REVIEWSUCCESS = 30;


    //6、任务类型
易文鹏 authored
176
177
178
    /**
     * 整盘入库
     */
游杰 authored
179
    public static final int TASK_TYPE_WHOLERECEIPT = 100;
pengcheng authored
180
易文鹏 authored
181
182
183
    /**
     * 补充入库
     */
游杰 authored
184
    public static final int TASK_TYPE_SUPPLEMENTRECEIPT = 200;
pengcheng authored
185
易文鹏 authored
186
187
188
    /**
     * 整盘出库
     */
游杰 authored
189
    public static final int TASK_TYPE_WHOLESHIPMENT = 300;
pengcheng authored
190
易文鹏 authored
191
192
193
    /**
     * 分拣出库
     */
游杰 authored
194
    public static final int TASK_TYPE_SORTINGSHIPMENT = 400;
pengcheng authored
195
易文鹏 authored
196
197
198
    /**
     * 空容器入库
     */
游杰 authored
199
    public static final int TASK_TYPE_EMPTYRECEIPT = 500;
pengcheng authored
200
易文鹏 authored
201
202
203
    /**
     * 空容器出库
     */
游杰 authored
204
    public static final int TASK_TYPE_EMPTYSHIPMENT = 600;
pengcheng authored
205
易文鹏 authored
206
207
208
    /**
     * 盘点
     */
游杰 authored
209
    public static final int TASK_TYPE_CYCLECOUNT = 700;
pengcheng authored
210
易文鹏 authored
211
212
213
    /**
     * 移库
     */
游杰 authored
214
    public static final int TASK_TYPE_TRANSFER = 800;
pengcheng authored
215
易文鹏 authored
216
217
218
    /**
     * 出库查看
     */
游杰 authored
219
    public static final int TASK_TYPE_VIEW = 900;
pengcheng authored
220
易文鹏 authored
221
222
223
    /**
     * 过站
     */
游杰 authored
224
225
    public static final int TASK_TYPE_OVER_STATION = 1000;
易文鹏 authored
226
227
228
    /**
     * 空托盘组入库
     */
游杰 authored
229
230
    public static final int TASK_TYPE_MANY_EMPTYRECEIPT = 1100;
易文鹏 authored
231
232
233
    /**
     * 空托盘组出库
     */
游杰 authored
234
235
    public static final int TASK_TYPE_MANY_EMPTYSHIPMENT = 1200;
pengcheng authored
236
237
238

    //7、任务状态
易文鹏 authored
239
240
241
    /**
     * 生成任务
     */
游杰 authored
242
    public static final int TASK_STATUS_BUILD = 1;
pengcheng authored
243
易文鹏 authored
244
245
246
    /**
     * 下达任务
     */
游杰 authored
247
    public static final int TASK_STATUS_RELEASE = 10;
pengcheng authored
248
易文鹏 authored
249
250
251
    /**
     * 开始执行
     */
游杰 authored
252
    public static final int TASK_STATUS_RUNNING = 20;
pengcheng authored
253
易文鹏 authored
254
255
256
    /**
     * 到达拣选站台
     */
游杰 authored
257
258
259
    public static final int TASK_STATUS_ARRIVED_STATION = 50;
易文鹏 authored
260
261
262
    /**
     * 任务完成
     */
游杰 authored
263
    public static final int TASK_STATUS_COMPLETED = 100;
pengcheng authored
264
265
266
267


    //8、波次状态
pengcheng authored
268
269
    //未执行
    public static final Integer WAVE_STATUS_BUILD = 10;
pengcheng authored
270
pengcheng authored
271
272
    //执行中
    public static final Integer WAVE_STATUS_START = 20;
pengcheng authored
273
pengcheng authored
274
275
    //结束
    public static final Integer WAVE_STATUS_END = 30;
pengcheng authored
276
pengcheng authored
277
278
    //执行失败
    public static final Integer WAVE_STATUS_ERROR = 40;
pengcheng authored
279
280
pengcheng authored
281
282
    //波次新建
    public static final Integer WAVE_STEP_BUILD = 0;
pengcheng authored
283
pengcheng authored
284
285
    //剔除订单
    public static final Integer WAVE_STEP_CULL = 5;
pengcheng authored
286
pengcheng authored
287
288
289
290
291
292
293
294
    //波次执行
    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
295
pengcheng authored
296
297
    //波次失败
    public static final Integer WAVE_STEP_ERROR = 120;
pengcheng authored
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323


    //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;

    //已登记
易文鹏 authored
324
    public static final Integer CYCLECOUNT_STATUS_REGISTERED = 15;
pengcheng authored
325
326
327
328
329
330
331
332
333
334

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

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

    //盘点完成
    public static final Integer CYCLECOUNT_STATUS_COMPLETED = 100;
335
336
337
    //盘点有差异
    public static final Integer CYCLECOUNT_STATUS_DIFFERENCE = 105;
pengcheng authored
338
    //已生成调整单
339
340
    public static final Integer CYCLECOUNT_STATUS_GENERATEADJUST = 110;
pengcheng authored
341
342
343

    //11、库存交易类型
易文鹏 authored
344
345
346
    /**
     * 入库
     */
pengcheng authored
347
348
    public static final Integer INVENTORY_TRANSACTION_RECEIPT = 10;
易文鹏 authored
349
350
351
    /**
     * 出库
     */
pengcheng authored
352
353
    public static final Integer INVENTORY_TRANSACTION_SHIPMENT = 20;
易文鹏 authored
354
355
356
    /**
     * 调整入
     */
pengcheng authored
357
358
    public static final Integer INVENTORY_TRANSACTION_ADJUSTINTO = 30;
易文鹏 authored
359
360
361
    /**
     * 调整出
     */
pengcheng authored
362
363
    public static final Integer INVENTORY_TRANSACTION_ADJUSTOUT = 40;
易文鹏 authored
364
365
366
    /**
     * 调整属性
     */
pengcheng authored
367
368
    public static final Integer INVENTORY_TRANSACTION_ADJUSTPROPERTIES = 50;
易文鹏 authored
369
370
371
    /**
     * 盘点
     */
pengcheng authored
372
373
    public static final Integer INVENTORY_TRANSACTION_CYCLECOUNT = 60;
易文鹏 authored
374
375
376
    /**
     * 移库入
     */
pengcheng authored
377
378
    public static final Integer INVENTORY_TRANSACTION_TRANSFERINTO = 70;
易文鹏 authored
379
380
381
    /**
     * 移库出
     */
pengcheng authored
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
    public static final Integer INVENTORY_TRANSACTION_TRANSFEROUT = 80;


    //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、任务内部类型
易文鹏 authored
402
403
404
    /**
     * 上架任务
     */
游杰 authored
405
    public static final Integer TASK_INTENERTYPE_RECEIPT = 100;
pengcheng authored
406
易文鹏 authored
407
408
409
    /**
     * 拣货任务
     */
游杰 authored
410
    public static final Integer TASK_INTENERTYPE_SHIPMENT = 200;
pengcheng authored
411
易文鹏 authored
412
413
414
    /**
     * 工作任务
     */
游杰 authored
415
    public static final Integer TASK_INTENERTYPE_WORK = 300;
pengcheng authored
416
417

    //盘点任务
游杰 authored
418
    public static final Integer TASK_INTENERTYPE_CYCLECOUNT = 400;
pengcheng authored
419
420
421
422
423
424
425
426
427
428
429
430
431


    //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
432
433
    //空货架
    public static final Integer POINTS_EMPTY = 0;
pengcheng authored
434
pengcheng authored
435
436
    //非空货架
    public static final Integer POINTS_SOME = 1;
游杰 authored
437
438
    //内外侧库位
439
440
    public static final int ROW_OUT = 1;//外侧 深库位
    public static final int ROW_IN = 0;//内侧  浅库位
游杰 authored
441
442
443
    //WCS任务下发
    public static final String ADDRESS_WCS_TASK_ASSIGN = "WCS_TASK_ASSIGN";
周峰 authored
444
    public static final String PRINT_SER1VER_URL = "PRINT_SER1VER_URL";
445
446
447
448
449
450
451
452
453
454
    //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";
    //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
455
456
    //拆盘机地址
    public static final String ADDRESS_WCS_MANY_EMPTY_CONTAINER = "WCS_MANY_EMPTY_CONTAINER";
457
游杰 authored
458
    //ERP
459
460
    public static final String PLATFORM_ERP = "ERP";
    public static final String PLATFORM_WMS = "WMS";
游杰 authored
461
462
    //good
    public static final String GOOD = "good";
463
    public static final String EMPTY_STRING = "";
游杰 authored
464
465
466
467
468
    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;
469
游杰 authored
470
    public static final String STATUS_CONTAINER_EMPTY = "empty";
471
    public static final String STATUS_CONTAINER_LOCK = "lock";
游杰 authored
472
    public static final String STATUS_CONTAINER_SOME = "some";
473
    public static final String STATUS_CONTAINER_FULL = "full";
游杰 authored
474
    public static final String STATUS_CONTAINER_MANY = "many";
475
游杰 authored
476
477
    public static final String STATUS_LOCATION_EMPTY = "empty";
    public static final String STATUS_LOCATION_LOCK = "lock";
478
    public static final String STATUS_LOCATION_DISABLE = "disable";
游杰 authored
479
易文鹏 authored
480
    public static final String RULE_SHIPMENT_TASK = "shipmentTaskRule";
游杰 authored
481
    public static final String RULE_TASK_LOCATION = "taskLocationRule";
482
    public static final String RULE_CONNECT_WCS = "connectWcs";
483
    public static final String WCS_WAREHOUSE = "wcsWarehouse";
游杰 authored
484
    public static final String RULE_ALLOCATION = "allocationRule";
485
    public static final String DOUBLE_FORK_RESERVE_LOCATION = "doubleForkReserveLocation";
486
487
    public static final String DYNAMIC_DOUBLE_FORK_RESERVE_LOCATION = "dynamicDoubleForkReserveLocation";
488
易文鹏 authored
489
490
491
    // 自动出库状态
    public static final String AUTO_SHIPMENT_STATUS = "autoShipmentStatus";
易文鹏 authored
492
493
494
    // 自动出库打印,1为打印,0为不打印
    public static final String AUTO_SHIPMENT_PRINT = "autoShipmentPrint";
易文鹏 authored
495
496
497
498
    // 自动出库出库单预设条数
    public static final String AUTO_SHIPMENT_DEFAULT_QTY = "autoShipmentDefaultQty";
    // 自动出库单据间隔(秒)
    public static final String AUTO_SHIPMENT_INTERVAL = "autoShipmentInterval";
499
500
    // 自动出库,生成车间
    public static final String AUTO_SHIPMENT_WORKSHOPS = "autoShipmentWorkshops";
易文鹏 authored
501
hh authored
502
503
    // 呆滞时间
    public static final String DEAD_TIME = "dead_time";
504
505
506
507
    // 批次物料呆滞时间
    public static final String DEAD_TIME_BATCH = "dead_time_batch";
    // 可燃物料呆滞时间
    public static final String DEAD_TIME_FLAMMABLE = "dead_time_flammable";
易文鹏 authored
508
509
510
    //MOM地址
    public static final String MOM = "H_DJ2J_10.ashx";
游杰 authored
511
512
513

    public static final int DOUBLE_FORK = 1;
    public static final int SINGLE_FORK = 0;
游杰 authored
514
游杰 authored
515
516
    public static final int RULE_TASK_SET_LOCATION = 1;
    public static final int RULE_TASK_NOT_LOCATION = 0;
517
518
519
520
521
522

    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;
523
游杰 authored
524
525
    public static final int NOT_MATERIAL_AREAS = 0;
526
527
528
    public static final int RYTASK_STATUS_RUN = 0;
    public static final int RYTASK_STATUS_STOP = 1;
529
530
531
532
533
    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;
易文鹏 authored
534
535
    public static final String ZONE_TYPE_PK = "平库";
    public static final String ZONE_TYPE_LK = "立库";
536
537
538
    public static String ryTask_warehouse_code;
539
540
541
542
543
544
545
546
547
548
549
550
551

    /***
     * 盘点对接相关 出入单
     */

    //其他入库
    public static final String OTHER_RECEIPT = "199";

    //其他出库
    public static final String OTHER_SHIPMENT = "299";

    public static final String DEFAULT_WAREHOUSE = "CS0001";
    public static final String DEFAULT_COMPANY = "BHF";
552
553
    public static final String DEFAULT_DEPT = "01030101";
    public static final String DEFAULT_STOCK = "035";
554
555
556
    public static final String PROJECT_VERSION = "version";
557
558
559
560
561
562

    /**
     * 动态分配库位
     */
    public static final String CONTAINER_TYPE_X = "X";
    public static final String CONTAINER_TYPE_W = "W";
563
    //todo 一厂二期5号巷道为动态分配大小托盘,二厂也有,到时候需要修改代码
易文鹏 authored
564
    public static final String DYNAMIC_ROADWAY = "5";
565
566
567
568
569
570
571
572

    /**
     * 库位临时托盘类型
     */
    public static final String UNDEFINED_CONTAINER_TYPE = "0";
    public static final String SMALL_CONTAINER_TYPE = "1";
    public static final String BIG_CONTAINER_TYPE = "2";
573
    public static final String AREA = "1";
574
575
576
577
578
579
    public static final String SELFCREATED = "1";//自建单据库位
    public static final String NO_TSELFCREATED = "0";//非建单据库位

    public static final String EMPTY_CONTAINER_LOCATION = "1";//空托盘库位
    public static final String NO_EMPTY_CONTAINER_LOCATION = "0";//不是空托盘库位
pengcheng authored
580
}