| | |
| | | private short heartBeatVal = 1; |
| | | |
| | | public static final ArrayList<Integer> staNos1 = new ArrayList<Integer>() {{ |
| | | add(100);add(101);add(102);add(103);add(104);add(105); |
| | | add(200);add(201);add(202);add(203);add(204);add(205);add(206); |
| | | add(100);add(101);add(102);add(103); |
| | | }}; |
| | | |
| | | public static final ArrayList<Integer> staNos2 = new ArrayList<Integer>() {{ |
| | | add(300);add(301);add(302);add(303);add(304);add(305);add(306);add(307); |
| | | add(400);add(401);add(402);add(403);add(404);add(405);add(406);add(407);add(408);add(409); |
| | | }}; |
| | | /** |
| | | * 条码数量 |
| | | */ |
| | | private int barcodeSize = 2; |
| | | private int barcodeSize = 1; |
| | | |
| | | /** |
| | | * 入出库模式 |
| | |
| | | switch (slave.getId()) { |
| | | case 1: |
| | | return staNos1; |
| | | case 2: |
| | | return staNos2; |
| | | default: |
| | | throw new CoolException("获取站点失败!"); |
| | | } |