Blame view

src/main/java/com/huaheng/common/constant/QuantityConstant.java 14.9 KB
pengcheng authored
1
2
package com.huaheng.common.constant;
游杰 authored
3
4
import com.huaheng.mobile.download.Constant;
pengcheng authored
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
 * 数字自定义常量
 *
 * @author  ricard
 */
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
     * 12、调整单状态
     * 13、任务内部类型
     * 14、质检单类型
     */
pengcheng authored
28
    //新建
pengcheng authored
29
    public static final String IS_BATTERY = "196";
pengcheng authored
30
pengcheng authored
31
32
33
34
35
36
    //1、入库单状态

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

    //等待审核
37
    public static final Integer RECEIPT_HEADER_VERIFYING = 5;
pengcheng authored
38
39

    //驳回
40
    public static final Integer RECEIPT_HEADER_REJECTED = 10;
pengcheng authored
41
42
43
44

    //作废
    public static final Integer RECEIPT_HEADER_OBSOLETE = 20;
45
46
47
48
    /**通过*/
//    public static final Integer RECEIPT_HEADER_APPROVE = 50;

    /**订单池*/
pengcheng authored
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
    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;
69
    /** 上架 */
pengcheng authored
70
71
    public static final Integer RECEIPT_HEADER_SHELF = 300;
DESKTOP-AO0VKC8\mahua authored
72
    /** 过账*/
pengcheng authored
73
74
    public static final Integer RECEIPT_HEADER_POSTING = 800;
DESKTOP-AO0VKC8\mahua authored
75
    /** 回传 */
pengcheng authored
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
    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;
133
    /** 生成任务 */
pengcheng authored
134
135
    public static final Integer RECEIPT_CONTAINER_TASK= 10;
136
    /**上架完成 */
pengcheng authored
137
138
    public static final Integer RECEIPT_CONTAINER_FINISHED = 20;
139
    /** 复核完成*/
pengcheng authored
140
141
142
143
144
145
    public static final Integer RECEIPT_CONTAINER_REVIEWSUCCESS = 30;



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



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

    /** 空托盘组出库 */
    public static final int TASK_TYPE_MANY_EMPTYSHIPMENT = 1200;
pengcheng authored
198
199
200
201


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


    //8、波次状态
pengcheng authored
221
222
    //未执行
    public static final Integer WAVE_STATUS_BUILD = 10;
pengcheng authored
223
pengcheng authored
224
225
    //执行中
    public static final Integer WAVE_STATUS_START = 20;
pengcheng authored
226
pengcheng authored
227
228
    //结束
    public static final Integer WAVE_STATUS_END = 30;
pengcheng authored
229
pengcheng authored
230
231
    //执行失败
    public static final Integer WAVE_STATUS_ERROR = 40;
pengcheng authored
232
233
pengcheng authored
234
235
    //波次新建
    public static final Integer WAVE_STEP_BUILD = 0;
pengcheng authored
236
pengcheng authored
237
238
    //剔除订单
    public static final Integer WAVE_STEP_CULL = 5;
pengcheng authored
239
pengcheng authored
240
241
242
243
244
245
246
247
    //波次执行
    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
248
pengcheng authored
249
250
    //波次失败
    public static final Integer WAVE_STEP_ERROR = 120;
pengcheng authored
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
286
287
288
289
290




    //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;
291
292
293
    //盘点有差异
    public static final Integer CYCLECOUNT_STATUS_DIFFERENCE = 105;
pengcheng authored
294
    //已生成调整单
295
296
    public static final Integer CYCLECOUNT_STATUS_GENERATEADJUST = 110;
pengcheng authored
297
298
299
300
301



    //11、库存交易类型
DESKTOP-AO0VKC8\mahua authored
302
    /** 入库 */
pengcheng authored
303
304
    public static final Integer INVENTORY_TRANSACTION_RECEIPT = 10;
DESKTOP-AO0VKC8\mahua authored
305
    /** 出库 */
pengcheng authored
306
307
    public static final Integer INVENTORY_TRANSACTION_SHIPMENT = 20;
DESKTOP-AO0VKC8\mahua authored
308
    /** 调整入 */
pengcheng authored
309
310
    public static final Integer INVENTORY_TRANSACTION_ADJUSTINTO = 30;
DESKTOP-AO0VKC8\mahua authored
311
    /** 调整出 */
pengcheng authored
312
313
    public static final Integer INVENTORY_TRANSACTION_ADJUSTOUT = 40;
DESKTOP-AO0VKC8\mahua authored
314
    /** 调整属性 */
pengcheng authored
315
316
    public static final Integer INVENTORY_TRANSACTION_ADJUSTPROPERTIES = 50;
DESKTOP-AO0VKC8\mahua authored
317
    /** 盘点 */
pengcheng authored
318
319
    public static final Integer INVENTORY_TRANSACTION_CYCLECOUNT = 60;
DESKTOP-AO0VKC8\mahua authored
320
    /** 移库入 */
pengcheng authored
321
322
    public static final Integer INVENTORY_TRANSACTION_TRANSFERINTO = 70;
DESKTOP-AO0VKC8\mahua authored
323
    /** 移库出 */
pengcheng authored
324
325
    public static final Integer INVENTORY_TRANSACTION_TRANSFEROUT = 80;
326
327
328
329
330
    /** 合托入 */
    public static final Integer INVENTORY_TRANSACTION_COMFOMCOMTAINER_TO = 90;
    public static final Integer INVENTORY_TRANSACTION_COMFOMCOMTAINER_OUT = 100;
pengcheng authored
331
332
pengcheng authored
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
    //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、任务内部类型
350
    /** 上架任务*/
游杰 authored
351
    public static final Integer TASK_INTENERTYPE_RECEIPT = 100;
pengcheng authored
352
353
    /** 拣货任务*/
游杰 authored
354
    public static final Integer TASK_INTENERTYPE_SHIPMENT = 200;
pengcheng authored
355
356
    /** 工作任务*/
游杰 authored
357
    public static final Integer TASK_INTENERTYPE_WORK = 300;
pengcheng authored
358
359

    //盘点任务
游杰 authored
360
    public static final Integer TASK_INTENERTYPE_CYCLECOUNT = 400;
pengcheng authored
361
362
363
364
365
366
367
368
369
370
371
372
373
374



    //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
375
376
    //空货架
    public static final Integer POINTS_EMPTY = 0;
pengcheng authored
377
pengcheng authored
378
379
    //非空货架
    public static final Integer POINTS_SOME = 1;
游杰 authored
380
381
382

    public static final int ROW_OUT = 1;
    public static final int ROW_IN = 0;
游杰 authored
383
384
385
386
387
388
389
390
391
392
393
394
395
    //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";
    //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
396
397
    //拆盘机地址
    public static final String ADDRESS_WCS_MANY_EMPTY_CONTAINER = "WCS_MANY_EMPTY_CONTAINER";
398
399
    //mes
    public static final String RETURN_MES="RETURN_MES";
400
游杰 authored
401
    //ERP
402
403
    public static final String PLATFORM_ERP = "ERP";
    public static final String PLATFORM_WMS = "WMS";
404
    public static final String PLATFORM_MES = "MES";
405
406
407


    //erp地址
408
    public static final String ADDRESS_RETURNTASK_ERP = "RETURNTASK_ERP";
409
410
411
412
413
    public static final String ERP_LEDGERID= "ERP_ledgerId";
    public static final String ERP_USERNAME = "ERP_username";
    public static final String ERP_ID = "ERP_id";
    public static final String ERP_KEY = "ERP_key";
414
415
416
    public static final String ERP_KEYSTRING = "ERP_keyString";
417
418
419
420

    public static final String CONFIG_WEGHT = "AGV_CONTAINER_WEGHT";
    public static final String CONFIG_TOTAL_WEGHT = "AGV_COLUMN_WEIGTH";
    public static final String CONFIG_HEIGHT = "AGV_CONTAINER_HEIGHT";
421
    public static final String CONFIG_AGV_HEIGHT = "AGV_HEIGHT";
422
游杰 authored
423
424
    //good
    public static final String GOOD = "good";
425
    public static final String EMPTY_STRING = "";
游杰 authored
426
427
428
429
430
    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;
431
游杰 authored
432
    public static final String STATUS_CONTAINER_EMPTY = "empty";
433
    public static final String STATUS_CONTAINER_LOCK = "lock";
游杰 authored
434
    public static final String STATUS_CONTAINER_SOME = "some";
435
    public static final String STATUS_CONTAINER_FULL = "full";
游杰 authored
436
    public static final String STATUS_CONTAINER_MANY = "many";
437
游杰 authored
438
439
    public static final String STATUS_LOCATION_EMPTY = "empty";
    public static final String STATUS_LOCATION_LOCK = "lock";
游杰 authored
440
游杰 authored
441
442
    public static final String RULE_SHIPMENT_TASK= "shipmentTaskRule";
    public static final String RULE_TASK_LOCATION = "taskLocationRule";
443
    public static final String RULE_CONNECT_WCS = "connectWcs";
游杰 authored
444
    public static final String RULE_ALLOCATION = "allocationRule";
肖超群 authored
445
    public static final String RULE_WEIGHT_VALUE = "weightValue";
游杰 authored
446
447
448

    public static final int DOUBLE_FORK = 1;
    public static final int SINGLE_FORK = 0;
游杰 authored
449
游杰 authored
450
451
    public static final int RULE_TASK_SET_LOCATION = 1;
    public static final int RULE_TASK_NOT_LOCATION = 0;
452
453
454
455
456
457

    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;
458
游杰 authored
459
460
    public static final int NOT_MATERIAL_AREAS = 0;
461
462
463
    public static final int RYTASK_STATUS_RUN = 0;
    public static final int RYTASK_STATUS_STOP = 1;
464
465
466
467
468
469
    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;
470
471
472
473
    //成品入库锁定状态, 0解锁,1锁定,2任务已完成
    public static final int BARCODEHEADER_LOCKED_DEFAULT=0;
    public static final int BARCODEHEADER_LOCKED=1;
    public static final int BARCODEHEADER_LOCKED_OFF=2;
474
475
    public static String ryTask_warehouse_code="CS0001";
tongzhonghao authored
476
477
    public static String IMAGE_PATH = "/static/img/Capture/";
478
479
    public static String DEFAULT_WAREHOUSE = "CS0001";
    public static String DEFAULT_COMPANYCODE = "BHF";
tongzhonghao authored
480
pengcheng authored
481
482
483
484
485
486
487
488
489
490
491
492
    public static final  String STATUS_TASK_SHELF="1";
    public static final  String STATUS_TASK_PICK="2";
    public static final  String STATUS_TASK_ROTATE="3";

    public static final  String STATUS_POSITION_EMPTY="empty";
    public static final  String STATUS_POSITION_SOME="some";
    public static final  String STATUS_POSITION_FULL="full";
    public static final  String STATUS_POSITION_LOCK="lock";

    public static final String RULE_CONNECT_AGV = "connectAGV";
    public static final int RULE_AGV_CONNECT = 1;
    public static final int RULE_AGV_DISCONNECT = 0;
周鸿 authored
493
494
495
496
497
498

    //14、AGV任务
    /** AGV取放货任务 */
    public static final int AGV_TYPE_TAKE_AND_RELEASE = 100;
    /** AGV行走任务 */
    public static final int AGV_TYPE_MOVE = 200;
499
    /** AGV取货任务 入库*/
周鸿 authored
500
    public static final int AGV_TYPE_TAKE = 300;
501
    /** AGV放货任务 出库*/
周鸿 authored
502
503
504
    public static final int AGV_TYPE_RELEASE = 400;
    //15、AGV任务状态
    /** AGV生成任务 */
周鸿 authored
505
506
    public static final int AGV_TASK_STATUS_ERROR= 0;
    /** AGV生成任务 */
周鸿 authored
507
508
509
510
511
512
513
514
515
516
    public static final int AGV_TASK_STATUS_BUILD = 1;
    /** AGV下发任务 */
    public static final int AGV_TASK_STATUS_RELEASE = 10;
    /** AGV开始执行 */
    public static final int AGV_TASK_STATUS_RUNNING = 20;
    /** AGV取货完成 */
    public static final int AGV_TASK_STATUS_COMPLETE_TAKE = 50;
    /** AGV任务完成 */
    public static final int AGV_TASK_STATUS_COMPLETED = 100;
517
    public static final String ZONE_AGV = "B";
518
519
   // public static final String USERID_AGV = "420";
520
    public static String[] USERID_AGV=new String[]{"420"};
周鸿 authored
521
522
523
    public static final  String CONFIG_AGV_ROWS="agv_rows";
周鸿 authored
524
525
526
527
528
529
530
531
    public static final int AGV_TASK_NOT_CREATE = 0;   //没有创建过AGV任务
    public static final int AGV_TASK_ALREADY_CREATE = 1;   //创建过AGV任务


    public static final int AGV_TASK_SEND_TYPE_CREATE = 1;
    public static final int AGV_TASK_SEND_TYPE_CANCEL = 2;

    //WCS任务下发
pengcheng authored
532
    public static final String ADDRESS_AGV_TASK_ASSIGN = "AGV_TASK_ASSIGN";
周鸿 authored
533
534
535
536
537
    //WCS任务取消
    public static final String ADDRESS_AGV_TASK_CANCEL = "AGV_TASK_CANCEL";
    //WCS任务更新
    public static final String ADDRESS_AGV_TASK_UPDATE = "AGV_TASK_UPDATE";
pengcheng authored
538
pengcheng authored
539
}