|
@@ -77,7 +77,8 @@ public class ExeclReadEquipStaticInfoUtil {
|
|
|
object.put(caVal, dic);
|
|
|
}
|
|
|
fis.close();
|
|
|
- } else if (Constant.info_point_version.equals("new")) {
|
|
|
+ }
|
|
|
+ else if (Constant.info_point_version.equals("new")) {
|
|
|
String infoClass = "基本参数";
|
|
|
JSONArray dic = new JSONArray();
|
|
|
for (SceneDataObject sdo : Repository.InfoPointListArray.set) {
|
|
@@ -183,9 +184,9 @@ public class ExeclReadEquipStaticInfoUtil {
|
|
|
map.put(caVal, dic);
|
|
|
}
|
|
|
fis.close();
|
|
|
- } else if (Constant.info_point_version.equals("new")) {
|
|
|
+ }
|
|
|
+ else if (Constant.info_point_version.equals("new")) {
|
|
|
JSONArray infoArray = Repository.infoArrayJson.get(classCode);
|
|
|
-
|
|
|
String infoClass = "基本参数";
|
|
|
JSONArray dic = new JSONArray();
|
|
|
for (SceneDataObject sdo : Repository.InfoPointListArray.set) {
|
|
@@ -197,17 +198,20 @@ public class ExeclReadEquipStaticInfoUtil {
|
|
|
String infoType = (String) sdo.get("infoType").value_prim.value;
|
|
|
String infoCode = (String) sdo.get("infoCode").value_prim.value;
|
|
|
boolean isVisible = (Boolean) sdo.get("isVisible").value_prim.value;
|
|
|
- if (infoType.equals(infoClass)) {
|
|
|
- for (int z = 0; z < infoArray.size(); z++) {
|
|
|
- JSONObject obj = (JSONObject) FastJsonUtil.Clone_JSON(infoArray.get(z));
|
|
|
- String codeVal = obj.get("code").toString();
|
|
|
- if (codeVal.equals(infoCode)) {
|
|
|
- if (queryObj != null) {
|
|
|
- obj.put("data", queryObj.get(infoCode));
|
|
|
+ if(isVisible)
|
|
|
+ {
|
|
|
+ if (infoType.equals(infoClass)) {
|
|
|
+ for (int z = 0; z < infoArray.size(); z++) {
|
|
|
+ JSONObject obj = (JSONObject) FastJsonUtil.Clone_JSON(infoArray.get(z));
|
|
|
+ String codeVal = obj.get("code").toString();
|
|
|
+ if (codeVal.equals(infoCode)) {
|
|
|
+ if (queryObj != null) {
|
|
|
+ obj.put("data", queryObj.get(infoCode));
|
|
|
+ }
|
|
|
+ //obj.put("enable", isVisible);
|
|
|
+ dic.add(obj);
|
|
|
+ break;
|
|
|
}
|
|
|
- obj.put("enable", isVisible);
|
|
|
- dic.add(obj);
|
|
|
- break;
|
|
|
}
|
|
|
}
|
|
|
}
|