QuantityConstant.java 17.8 KB
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 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 286 287 288 289 290 291 292 293 294 295 296 297 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 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929
package com.huaheng.common.constant;

/**
 * 数字自定义常量
 */
public class QuantityConstant {

    //入库单状态

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

    /**
     * 等待审核
     */
    public static final Integer RECEIPT_HEADER_VERIFYING = 5;

    /**
     * 驳回
     */
    public static final Integer RECEIPT_HEADER_REJECTED = 10;

    /**
     * 作废
     */
    public static final Integer RECEIPT_HEADER_OBSOLETE = 20;

    /**
     * 通过
     */
    public static final Integer RECEIPT_HEADER_APPROVE = 50;

    /**
     * 订单池
     */
    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;

    /**
     * 上架
     */
    public static final Integer RECEIPT_HEADER_SHELF = 300;

    /**
     * 过账
     */
    public static final Integer RECEIPT_HEADER_POSTING = 800;

    /**
     * 回传
     */
    public static final Integer RECEIPT_HEADER_RETURN = 900;

    // 出库单状态

    /**
     * 新建
     */
    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;

    // 单据上传状态

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

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

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

    // 入库组盘状态

    /**
     * 新建
     */
    public static final Integer RECEIPT_CONTAINER_BUILD = 0;

    /**
     * 生成任务
     */
    public static final Integer RECEIPT_CONTAINER_TASK = 10;

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

    /**
     * 复核完成
     */
    public static final Integer RECEIPT_CONTAINER_REVIEWSUCCESS = 30;

    // 出库组盘状态

    /**
     * 新建
     */
    public static final Integer SHIPMENT_CONTAINER_BUILD = 0;

    /**
     * 生成任务
     */
    public static final Integer SHIPMENT_CONTAINER_TASK = 10;

    /**
     * 拣货完成
     */
    public static final Integer SHIPMENT_CONTAINER_FINISHED = 20;

    /**
     * 复核完成
     */
    public static final Integer SHIPMENT_CONTAINER_REVIEWSUCCESS = 30;


    // 任务类型

    /**
     * 整盘入库
     */
    public static final int TASK_TYPE_WHOLERECEIPT = 100;

    /**
     * 补充入库
     */
    public static final int TASK_TYPE_SUPPLEMENTRECEIPT = 200;

    /**
     * 整盘出库
     */
    public static final int TASK_TYPE_WHOLESHIPMENT = 300;

    /**
     * 分拣出库
     */
    public static final int TASK_TYPE_SORTINGSHIPMENT = 400;

    /**
     * 空容器入库
     */
    public static final int TASK_TYPE_EMPTYRECEIPT = 500;

    /**
     * 空容器出库
     */
    public static final int TASK_TYPE_EMPTYSHIPMENT = 600;

    /**
     * 盘点
     */
    public static final int TASK_TYPE_CYCLECOUNT = 700;

    /**
     * 移库
     */
    public static final int TASK_TYPE_TRANSFER = 800;

    /**
     * 出库查看
     */
    public static final int TASK_TYPE_VIEW = 900;

    /**
     * 过站
     */
    public static final int TASK_TYPE_OVER_STATION = 1000;

    /**
     * 空托盘组入库
     */
    public static final int TASK_TYPE_MANY_EMPTYRECEIPT = 1100;

    /**
     * 空托盘组出库
     */
    public static final int TASK_TYPE_MANY_EMPTYSHIPMENT = 1200;


    // 任务状态

    /**
     * 生成任务
     */
    public static final int TASK_STATUS_BUILD = 1;

    /**
     * 下达任务
     */
    public static final int TASK_STATUS_RELEASE = 10;

    /**
     * 开始执行
     */
    public static final int TASK_STATUS_RUNNING = 20;

    /**
     * 到达拣选站台
     */
    public static final int TASK_STATUS_ARRIVED_STATION = 50;

    /**
     * 任务完成
     */
    public static final int TASK_STATUS_COMPLETED = 100;


    // 波次状态

    /**
     * 未执行
     */
    public static final Integer WAVE_STATUS_BUILD = 10;

    /**
     * 执行中
     */
    public static final Integer WAVE_STATUS_START = 20;

    /**
     * 结束
     */
    public static final Integer WAVE_STATUS_END = 30;

    /**
     * 执行失败
     */
    public static final Integer WAVE_STATUS_ERROR = 40;

    /**
     * 波次新建
     */
    public static final Integer WAVE_STEP_BUILD = 0;

    /**
     * 剔除订单
     */
    public static final Integer WAVE_STEP_CULL = 5;

    /**
     * 波次执行
     */
    public static final Integer WAVE_STEP_START = 10;

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

    /**
     * 波次完成
     */
    public static final Integer WAVE_STEP_END = 100;

    /**
     * 波次失败
     */
    public static final Integer WAVE_STEP_ERROR = 120;


    // 质检状态

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

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

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


    // 盘点状态

    /**
     * 新建
     */
    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;

    /**
     * 盘点有差异
     */
    public static final Integer CYCLECOUNT_STATUS_DIFFERENCE = 105;

    /**
     * 已生成调整单
     */
    public static final Integer CYCLECOUNT_STATUS_GENERATEADJUST = 110;


    // 库存交易类型

    /**
     * 入库
     */
    public static final Integer INVENTORY_TRANSACTION_RECEIPT = 10;

    /**
     * 出库
     */
    public static final Integer INVENTORY_TRANSACTION_SHIPMENT = 20;

    /**
     * 调整入
     */
    public static final Integer INVENTORY_TRANSACTION_ADJUSTINTO = 30;

    /**
     * 调整出
     */
    public static final Integer INVENTORY_TRANSACTION_ADJUSTOUT = 40;

    /**
     * 调整属性
     */
    public static final Integer INVENTORY_TRANSACTION_ADJUSTPROPERTIES = 50;

    /**
     * 盘点
     */
    public static final Integer INVENTORY_TRANSACTION_CYCLECOUNT = 60;

    /**
     * 移库入
     */
    public static final Integer INVENTORY_TRANSACTION_TRANSFERINTO = 70;

    /**
     * 移库出
     */
    public static final Integer INVENTORY_TRANSACTION_TRANSFEROUT = 80;

    /**
     * 报废出库
     */
    public static final Integer INVENTORY_TRANSACTION_SCRAP = 90;


    // 调整单状态

    /**
     * 未批准
     */
    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;


    // 任务内部类型

    /**
     * 上架任务
     */
    public static final Integer TASK_INTENERTYPE_RECEIPT = 100;

    /**
     * 拣货任务
     */
    public static final Integer TASK_INTENERTYPE_SHIPMENT = 200;

    /**
     * 工作任务
     */
    public static final Integer TASK_INTENERTYPE_WORK = 300;

    /**
     * 盘点任务
     */
    public static final Integer TASK_INTENERTYPE_CYCLECOUNT = 400;

    /**
     * 换站任务
     */
    public static final Integer TASK_INTENERTYPE_OVERSTATION = 1000;

    /**
     * 人工装配任务
     */
    public static final Integer TASK_INTENERTYPE_ASSEMBLE = 1100;


    // 质检单类型

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

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

    /**
     * 在库抽检
     */
    public static final Integer CHECK_TYPE_SELECT = 300;

    /**
     * 空货架
     */
    public static final Integer POINTS_EMPTY = 0;

    /**
     * 非空货架
     */
    public static final Integer POINTS_SOME = 1;

    // 双伸位,内外侧库位(深浅库位)
    /**
     * 外侧库位(深库位)
     */
    public static final int ROW_OUT = 1;

    /**
     * 内库位(浅库位)
     */
    public static final int ROW_IN = 0;

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

    /**
     * 拆盘机地址
     */
    public static final String ADDRESS_WCS_MANY_EMPTY_CONTAINER = "WCS_MANY_EMPTY_CONTAINER";

    // 系统简称

    /**
     * ERP
     */
    public static final String PLATFORM_ERP = "ERP";

    /**
     * WMS
     */
    public static final String PLATFORM_WMS = "WMS";

    /**
     * WCS
     */
    public static final String PLATFORM_WCS = "WCS";

    /**
     * MES
     */
    public static final String PLATFORM_MES = "MES";

    // 物料质量

    /**
     * 良品
     */
    public static final String GOOD = "good";

    // 常见字符串常量
    /**
     * 空字符 ""
     */
    public static final String EMPTY_STRING = "";

    /**
     * 英文逗号 ,
     */
    public static final String COMMA_STRING = ",";

    // 站台类型

    /**
     * 入库站台
     */
    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;

    // 传爆管的特殊 入库/出库口
    public static final String STATION_ST0448 = "ST0448";

    // 传爆管缓存位出库目标料点
    public static final String STATION_ST0447 = "ST0447";

    // 传爆管人工装配口
    public static final String STATION_ST0000 = "ST0000";

    // 容器状态

    /**
     * 空闲
     */
    public static final String STATUS_CONTAINER_EMPTY = "empty";

    /**
     * 锁定
     */
    public static final String STATUS_CONTAINER_LOCK = "lock";

    /**
     * 有货
     */
    public static final String STATUS_CONTAINER_SOME = "some";

    /**
     * 满货
     */
    public static final String STATUS_CONTAINER_FULL = "full";

    /**
     * 空托盘组
     */
    public static final String STATUS_CONTAINER_MANY = "many";

    // 库位状态

    /**
     * 空闲
     */

    public static final String STATUS_LOCATION_EMPTY = "empty";

    /**
     * 锁定
     */
    public static final String STATUS_LOCATION_LOCK = "lock";

    // 参数设置

    /**
     * 出库任务规则
     */
    public static final String RULE_SHIPMENT_TASK = "shipmentTaskRule";

    /**
     * 分配库位原则
     */
    public static final String RULE_TASK_LOCATION = "taskLocationRule";

    /**
     * 连接WCS
     */
    public static final String RULE_CONNECT_WCS = "connectWcs";
    public static final String CALL_BACK_TIMES = "callBackTimes";

    /**
     * 单双伸位处理
     */
    public static final String RULE_ALLOCATION = "allocationRule";

    /**
     * 双伸位预留库位
     */
    public static final String DOUBLE_FORK_RESERVE_LOCATION = "doubleForkReserveLocation";

    // 双伸位
    /**
     * 双伸位
     */
    public static final int DOUBLE_FORK = 1;

    /**
     * 单伸位
     */
    public static final int SINGLE_FORK = 0;

    // 参数配置任务是否设置目标库位

    /**
     * 设置目标库位
     */
    public static final int RULE_TASK_SET_LOCATION = 1;

    /**
     * 不目标库位
     */
    public static final int RULE_TASK_NOT_LOCATION = 0;

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

    // 参数配置是否连接WCS
    public static final int RULE_WCS_CONNECT = 1;
    public static final int RULE_WCS_DISCONNECT = 0;

    public static final int NOT_MATERIAL_AREAS = 0;

    public static final int RYTASK_STATUS_RUN = 0;
    public static final int RYTASK_STATUS_STOP = 1;

    public static final int DOUBLE_IN = 1;
    public static final int NORMAL_IN = 0;

    // 出库单类型

    /**
     * 出库单类型:报废出库单
     */
    public static final String SHIPMENT_BILL_TYPE_SCRAP = "DOW";

    /**
     * 出库单类型:报废出库单
     */
    public static final String SHIPMENT_BILL_TYPE_SPECIAL = "TS";

    /**
     * 出库单类型:工单领料单
     */
    public static final String SHIPMENT_BILL_TYPE_OTF = "OTF";

    // 是否重入

    /**
     * 重入
     */
    public static final int EMPTY_OUT = 1;

    /**
     * 正常
     */
    public static final int NORMAL_OUT = 0;

    /**
     * 空出已处理,不能重复处理
     */
    public static final int EMPTY_OUT_PROSESS = 2;

    // 默认参数值

    /**
     * 仓库编码
     */
    public static final String DEFAULT_WAREHOUSE = "CS0001";

    /**
     * 货主编码
     */
    public static final String DEFAULT_COMPANY_CODE = "BHF";

    /**
     * 物料分区
     */
    public static final String DEFAULT_AREA = "1";

    public static String ryTask_warehouse_code;

    /**
     * 是否为原材料,入库组盘
     */
    public static final Boolean IS_MATERIAL = true;

    /**
     * MES 回传
     */
    public static final String ADDRESS_MES = "MES_BACK";

    /**
     * MES指定任务完成 返回 1
     */
    public static final Integer MES_TASK_COMPLETE = 1;

    /**
     * 任务完成已回传
     */
    public static final Integer MES_TASK_BACK = 1;

    /**
     * 任务完成未回传
     */
    public static final Integer MES_TASK_NOT_BACK = 0;

    // 领料单状态
    /**
     * 删除领料单
     */
    public static final Integer MES_SHIPMENT_BILL_REMOVE = 5;

    // 入库单类型
    /**
     * 原材料入库类型
     **/
    public static final String RECEIPT_TYPE_RAW = "RAW";
    /**
     * 余料回库类型
     **/
    public static final String RECEIPT_TYPE_BACK = "BACK";
    /**
     * 半成品入库类型
     **/
    public static final String RECEIPT_TYPE_SEMI = "SEMI";
    /**
     * 虚拟入库类型
     **/
    public static final String RECEIPT_TYPE_VIRTUAL = "RXN";
    /**
     * 调拨入库单
     */
    public static final String RECEIPT_TYPE_ALLOT = "ALLOT";

    // 出库单类型
    /**
     * 虚拟出库单
     */
    public static final String SHIPMENT_TYPE_VIRTUAL = "SXN";

    /**
     * 缓存库清库调拨单
     */
    public static final String SHIPMENT_TYPE_BACK_VIRTUAL = "BACKXN";

    // 可用状态
    /**
     * 可用状态: 可用
     */
    public static final Boolean STATUS_ENABLE = true;
    /**
     * 可用状态:不可用
     */
    public static final Boolean STATUS_DISABLE = false;

    // 盛具类型
    /**
     * 通用盛具类型
     */
    public static final String VEHICLE_TYPE_COMMON = "CJ10000";

    // 库存状态
    /**
     * 合格品
     */
    public static final String INVENTORY_STATUS_OK = "1";
    /**
     * 不合格品
     */
    public static final String INVENTORY_STATUS_NG = "0";

    // 库位类型
    /**
     * 虚拟库位
     */
    public static final String LOCATION_TYPE_VIRTUAL = "XNKW";

    // 载具类型
    /**
     * 虚拟载具
     */
    public static final String CONTAINER_TYPE_VIRTUAL = "XNZJ";

    // 盛具类型
    /**
     * 虚拟盛具
     */
    public static final String VEHICLE_TYPE_VIRTUAL = "XNCJ";

    // 库区类型
    /**
     * 虚拟库区
     */
    public static final String ZONE_TYPE_VIRTUAL = "KC05";

    /**
     * 传爆管立库库区
     */
    public static final String ZONE_TYPE_CBGSOLID = "KC06";
}