Browse Source

REPORT-55243:修改整型数字为常量,修改对cpt和cptx文件后缀的判断方式

research/11.0
fly.li 3 years ago
parent
commit
5c23d0c45e
  1. 4
      designer-base/src/main/java/com/fr/nx/app/designer/utils/CptAndCptxCompatibilityUtil.java

4
designer-base/src/main/java/com/fr/nx/app/designer/utils/CptAndCptxCompatibilityUtil.java

@ -22,7 +22,7 @@ public class CptAndCptxCompatibilityUtil {
FILE editingFILE = jTemplate.getEditingFILE();
String path = editingFILE.getPath();
//只有在旧文件是cptx文件并且新文件是cpt文件时才会改变报表引擎属性
boolean isCptxConvertToCpt = oldName.endsWith(".cptx") && path.endsWith(".cpt");
boolean isCptxConvertToCpt = FileExtension.CPTX.matchExtension(oldName) && FileExtension.CPT.matchExtension(path);
if (isCptxConvertToCpt && !changeFrEngineAttr(jTemplate)){
isCptxConvertToCpt = false;
}
@ -83,6 +83,6 @@ public class CptAndCptxCompatibilityUtil {
}
private static boolean isEngineXEnable(LayerReportAttr layerReportAttr, String fileName){
return (layerReportAttr!= null && layerReportAttr.isClientPaging() && layerReportAttr.getEngineState() == 0) || FileExtension.CPTX.matchExtension(fileName);
return (layerReportAttr!= null && layerReportAttr.isClientPaging() && layerReportAttr.getEngineState() == LayerReportAttr.ENGINE_X) || FileExtension.CPTX.matchExtension(fileName);
}
}

Loading…
Cancel
Save