zhuguifei
2026-03-10 58402bd5e762361363a0f7d7907153c77dbb819f
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
package com.shlanbao.tzsc.init;
 
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
 
import com.alibaba.fastjson.JSONArray;
import com.shlanbao.tzsc.base.mapping.MdEquipment;
import com.shlanbao.tzsc.base.model.Combobox;
import com.shlanbao.tzsc.pms.md.eqp.beans.EquipmentsBean;
import com.shlanbao.tzsc.pms.md.eqpcategory.beans.MdEqpCategoryBean;
import com.shlanbao.tzsc.pms.md.eqptype.beans.MdEqpTypeBean;
import com.shlanbao.tzsc.pms.md.fixCode.beans.FixCodeBean;
import com.shlanbao.tzsc.pms.md.mat.beans.MatBean;
import com.shlanbao.tzsc.pms.md.matgrp.beans.MatGrpBean;
import com.shlanbao.tzsc.pms.md.matparam.beans.MatParamBean;
import com.shlanbao.tzsc.pms.md.mattype.beans.MatTypeBean;
import com.shlanbao.tzsc.pms.md.shift.beans.ShiftBean;
import com.shlanbao.tzsc.pms.md.team.beans.TeamBean;
import com.shlanbao.tzsc.pms.md.unit.beans.UnitBean;
import com.shlanbao.tzsc.pms.md.workshop.beans.WorkShopBean;
import com.shlanbao.tzsc.pms.sys.role.beans.RoleBean;
import com.shlanbao.tzsc.utils.params.ComboboxType;
import com.shlanbao.tzsc.utils.tools.Mes2DASParams;
import com.shlanbao.tzsc.utils.tools.RedisUtil;
 
/**
 * 基础参数类
 * <li>@author Leejean
 * <li>@create 2014-7-5下午09:22:47
 * <li>存放项目运行过程中常用而不经常改变的基础参数
 * <li>如:班次,班组,机组信息等
 */
public class BaseParams {
 
    /**
     * 车间
     */
    private static List<Combobox> workShopCombobox = new ArrayList<Combobox>();
    private static List<WorkShopBean> workShopLt = new ArrayList<WorkShopBean>();
 
 
    /**
     * 基础数据导入转换ID,name
     * */
    private static List<Map<String,String>> listSysEqpType = new ArrayList<Map<String,String>>();
 
 
    /**
     * wct  登录名对应的设备
     */
    private static Map<String,List<MdEquipment>> wctEquMap=new HashMap<>();
 
    public static Map<String, List<MdEquipment>> getWctEquMap() {
        return wctEquMap;
    }
 
    public static void setWctEquMap(Map<String, List<MdEquipment>> wctEquMap) {
        BaseParams.wctEquMap = wctEquMap;
    }
 
    /**
     * 【功能说明】:辅料初始化
     * @author wanchanghuang
     * @time 2015年8月10日16:06:47
     *
     */
    private static List<MatParamBean> allMdMatParam = new ArrayList<MatParamBean>();
 
 
    public static List<Map<String, String>> getListSysEqpType() {
        return listSysEqpType;
    }
 
    public static void setListSysEqpType(List<Map<String, String>> listSysEqpType) {
        BaseParams.listSysEqpType = listSysEqpType;
    }
 
    public static List<MatParamBean> getAllMdMatParam() {
        return allMdMatParam;
    }
 
    public static void setAllMdMatParam(List<MatParamBean> allMdMatParam) {
        BaseParams.allMdMatParam = allMdMatParam;
    }
 
    public static List<Combobox> getAllFiltersCombobox(boolean setAll) {
        List<Combobox> allFiltersCombobox = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","FILTERSCOMBO"),Combobox.class);
        if(setAll){
            return setAll(allFiltersCombobox);
        }
        return allFiltersCombobox;
    }
 
 
    public static List<Combobox> getEqpCategoryCombobox(boolean setAll) {
        List<Combobox> eqpCategoryCombobox = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","EQPCATEGORYCOMBO"),Combobox.class);
        if(setAll){
            return setAll(eqpCategoryCombobox);
        }
        return eqpCategoryCombobox;
    }
 
    public static List<Combobox> getAllEqpsCombobox(boolean setAll) {
        List<Combobox> allEqpsCombobox = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","ALLEQPSCOMBO"),Combobox.class);
        if(setAll){
            return setAll(allEqpsCombobox);
        }
        return allEqpsCombobox;
    }
 
    public static List<Combobox> getAllPackersCombobox(boolean setAll) {
        List<Combobox> allPackersCombobox = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","PACKERSCOMBO"),Combobox.class);
        if(setAll){
            return setAll(allPackersCombobox);
        }
        return allPackersCombobox;
    }
 
 
    public static List<Combobox> getAllRollersCombobox(boolean setAll) {
        List<Combobox> allRollersCombobox = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","ROLLERSCOMBO"),Combobox.class);
        if(setAll){
            return setAll(allRollersCombobox);
        }
        return allRollersCombobox;
    }
 
 
    public static List<Combobox> getAllBoxersCombobox(boolean setAll) {
        List<Combobox> allBoxersCombobox = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","BOXERSCOMBO"),Combobox.class);
        if(setAll){
            return setAll(allBoxersCombobox);
        }
        return allBoxersCombobox;
    }
 
 
    public static List<Combobox> getEqpTypesCombobox(boolean setAll) {
        List<Combobox> eqpTypesCombobox = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","EQPTYPECOMBO"),Combobox.class);
        if(setAll){
            return setAll(eqpTypesCombobox);
        }
        return eqpTypesCombobox;
    }
 
    public static List<Combobox> getUnitCombobox(boolean setAll) {
        List<Combobox> unitCombobox = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","UNITCOMBO"),Combobox.class);
        if(setAll){
            return setAll(unitCombobox);
        }
        return unitCombobox;
    }
 
    public static List<Combobox> getShiftCombobox(boolean setAll) {
        List<Combobox> shiftCombobox = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","SHIFTCOMBO"),Combobox.class);
        if(setAll){
            return setAll(shiftCombobox);
        }
        return shiftCombobox;
    }
 
    public static List<Combobox> getTeamCombobox(boolean setAll) {
        List<Combobox> teamCombobox = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","TEAMCOMBO"),Combobox.class);
        if(setAll){
            return setAll(teamCombobox);
        }
        return teamCombobox;
    }
 
    public static List<Combobox> getWorkShopCombobox(boolean setAll) {
        if(setAll){
            return setAll(workShopCombobox);
        }
        return workShopCombobox;
    }
 
    public static void setWorkShopCombobox(List<Combobox> workShopCombobox) {
        BaseParams.workShopCombobox = workShopCombobox;
    }
 
    public static List<Combobox> getEqpTypesComboboxCombobox(boolean setAll) {
        List<Combobox> eqpTypesCombobox = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","EQPTYPECOMBO"),Combobox.class);
        if(setAll){
            return setAll(eqpTypesCombobox);
        }
        return eqpTypesCombobox;
    }
 
    public static List<Combobox> getMatProdCombobox(boolean setAll) {
        List<Combobox> matProdCombobox = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","MATPRODCOMBO"),Combobox.class);
        if(setAll){
            return setAll(matProdCombobox);
        }
        return matProdCombobox;
    }
 
    public static List<Combobox> getMatGrpCombobox(boolean setAll) {
        List<Combobox> matGrpCombobox = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","MATGRPCOMBO"),Combobox.class);
        if(setAll){
            return setAll(matGrpCombobox);
        }
        return matGrpCombobox;
    }
 
    public static List<Combobox> getMatTypeCombobox(boolean setAll) {
        List<Combobox> matTypeCombobox = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","MATTYPECOMBO"),Combobox.class);
        if(setAll){
            return setAll(matTypeCombobox);
        }
        return matTypeCombobox;
    }
 
    public static List<FixCodeBean> getListMdFixCode() {
        List<FixCodeBean> listMdFixCode = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","FIXCODES"),FixCodeBean.class);
        return listMdFixCode;
    }
 
    public static List<RoleBean> getListRole() {
        List<RoleBean> listRole = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","ROLLERS"),RoleBean.class);
        return listRole;
    }
 
    public static List<EquipmentsBean> getAllEquipments() {
        List<EquipmentsBean> allEquipments = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","ALLEQPS"),EquipmentsBean.class);
        return allEquipments;
    }
 
    public static List<MdEqpTypeBean> getAllEqpTypes() {
        List<MdEqpTypeBean> allEqpTypes = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","EQPTYPE"),MdEqpTypeBean.class);
        return allEqpTypes;
    }
 
    /**
     * 添加[全部]选项
     * @author Leejean
     * @create 2014年12月2日上午8:45:53
     * @param sourceList
     * @return
     */
    private static List<Combobox> setAll(List<Combobox> sourceList) {
        List<Combobox> cb = new ArrayList<Combobox>(sourceList);
        cb.add(0, new Combobox("", "全部"));
        return cb;
    }
 
    public static List<Combobox> getMatFilterCombobox(boolean setAll) {
        List<Combobox> matFilterCombobox = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","MATFILTERCOMBO"),Combobox.class);
        if(setAll){
            return setAll(matFilterCombobox);
        }
        return matFilterCombobox;
    }
 
    public static List<Combobox> getFlFilterCombobox(boolean setAll) {
        List<Combobox> flFilterCombobox = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","FLFILTERCOMBO"),Combobox.class);
        if(setAll){
            return setAll(flFilterCombobox);
        }
        return flFilterCombobox;
    }
 
    public static List<ShiftBean> getShiftLt() {
        List<ShiftBean> shiftLt = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","SHIFT"),ShiftBean.class);
        return shiftLt;
    }
 
    public static List<TeamBean> getTeamLt() {
        List<TeamBean> teamLt = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","TEAM"),TeamBean.class);
        return teamLt;
    }
 
    public static List<WorkShopBean> getWorkShopLt() {
        return workShopLt;
    }
 
    public static void setWorkShopLt(List<WorkShopBean> workShopLt) {
        BaseParams.workShopLt = workShopLt;
    }
 
    public static List<MatBean> getMatProdLt() {
        List<MatBean> matProdLt = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","MATPROD"),MatBean.class);
        return matProdLt;
    }
 
    public static List<MatBean> getMatFilterLt() {
        List<MatBean> matFilterLt = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","MATFILTER"),MatBean.class);
        return matFilterLt;
    }
 
    public static List<MatGrpBean> getMatGrpLt() {
        List<MatGrpBean> matGrpLt = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","MATGRP"),MatGrpBean.class);
        return matGrpLt;
    }
 
    public static List<MatTypeBean> getMatTypeLt() {
        List<MatTypeBean> matTypeLt = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","MATTYPE"),MatTypeBean.class);
        return matTypeLt;
    }
 
    public static List<UnitBean> getUnitLt() {
        List<UnitBean> unitLt = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","UNIT"),UnitBean.class);
        return unitLt;
    }
 
    public static List<MdEqpCategoryBean> getEqpCategoryLt() {
        List<MdEqpCategoryBean> eqpCategoryLt = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","EQPCATEGORY"),MdEqpCategoryBean.class);
        return eqpCategoryLt;
    }
 
 
    public static List<EquipmentsBean> getAllPackersLt() {
        List<EquipmentsBean> allPackersLt = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","PACKERS"),EquipmentsBean.class);
        return allPackersLt;
    }
 
    public static List<EquipmentsBean> getAllRollersLt() {
        List<EquipmentsBean> allRollersLt = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","ROLLERS"),EquipmentsBean.class);
        return allRollersLt;
    }
 
    public static List<EquipmentsBean> getAllBoxersLt() {
        List<EquipmentsBean> allBoxersLt = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","BOXERS"),EquipmentsBean.class);
        return allBoxersLt;
    }
 
    public static List<EquipmentsBean> getAllFiltersLt() {
        List<EquipmentsBean> allFiltersLt = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","FILTERS"),EquipmentsBean.class);
        return allFiltersLt;
    }
 
 
    public static List<Combobox> getAllTransmCombobox(boolean setAll) {
        List<Combobox> allTransmCombobox = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","TRANSMCOMBO"),Combobox.class);
        if(setAll){
            return setAll(allTransmCombobox);
        }
        return allTransmCombobox;
    }
 
 
    public static List<EquipmentsBean> getAllTransmsLt(boolean setAll) {
        List<EquipmentsBean> allTransmsLt = JSONArray.parseArray(
                (String) RedisUtil.getMapKey("baseParams","TRANSM"),EquipmentsBean.class);
        return allTransmsLt;
 
    }
 
    public static String LOCALADRESS = "";
 
 
 
 
}