From 3a3e3ca8d9ff0f78c51d3c7cfc917574df10c376 Mon Sep 17 00:00:00 2001 From: "fly.li" Date: Tue, 28 Sep 2021 15:35:53 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-59567:=E4=BF=AE=E6=94=B9=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E4=B8=8D=E8=A7=84=E8=8C=83=E7=9A=84=E5=9C=B0=E6=96=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/fr/design/report/ReportEnginePane.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/designer-realize/src/main/java/com/fr/design/report/ReportEnginePane.java b/designer-realize/src/main/java/com/fr/design/report/ReportEnginePane.java index 9a2f38b99..e310c6668 100644 --- a/designer-realize/src/main/java/com/fr/design/report/ReportEnginePane.java +++ b/designer-realize/src/main/java/com/fr/design/report/ReportEnginePane.java @@ -216,8 +216,8 @@ public class ReportEnginePane extends BasicBeanPane { if (pageQueryBox.isSelected()){ pageQueryPane.setVisible(true); } - radioButtons.get(0).setSelected(ob.getEngineState() == LayerReportAttr.ENGINE_X ? true : false); - radioButtons.get(1).setSelected(ob.getEngineState() == LayerReportAttr.LINE_ENGINE ? true : false); + radioButtons.get(0).setSelected(ob.getEngineState() == LayerReportAttr.ENGINE_X); + radioButtons.get(1).setSelected(ob.getEngineState() == LayerReportAttr.LINE_ENGINE); //有一个默认值,一定会显示分页选项界面 outEngineXSettingPane.setVisible(true); @@ -228,7 +228,7 @@ public class ReportEnginePane extends BasicBeanPane { //这里注意一下怎么更新的,后续可能存在判断为空的调用,从而对老引擎造成影响。 LayerReportAttr attr = new LayerReportAttr(); attr.setPageQuery(pageQueryBox.isSelected()); - attr.setCountPerPage(Math.min(500, ((Integer)countPerPageEditor.getValue()).intValue())); + attr.setCountPerPage(Math.min(500, (countPerPageEditor.getValue()).intValue())); attr.setClientPaging(clientPaging.isSelected()); attr.setShowDataNumber(showDataNumber.isSelected()); for (int i = 0; i < radioButtons.size(); i++){ @@ -253,7 +253,7 @@ public class ReportEnginePane extends BasicBeanPane { } public void setDefaultAttr(){ clientPaging.setSelected(false); - countPerPageEditor.setValue(new Integer(30)); + countPerPageEditor.setValue(30); countPerPageEditor.setEnabled(false); pageQueryBox.setSelected(false); pageQueryBox.setEnabled(false);