From c5ad17adbe6a8628be3a23f79d27586cac4e382b Mon Sep 17 00:00:00 2001 From: rinoux Date: Thu, 16 Dec 2021 11:55:05 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-64103=20=E6=B8=B8=E6=A0=87=E5=88=86?= =?UTF-8?q?=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nx/app/designer/menu/CalculateAttrPane.java | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/designer-realize/src/main/java/com/fr/nx/app/designer/menu/CalculateAttrPane.java b/designer-realize/src/main/java/com/fr/nx/app/designer/menu/CalculateAttrPane.java index a0f53c938..bc4648de4 100644 --- a/designer-realize/src/main/java/com/fr/nx/app/designer/menu/CalculateAttrPane.java +++ b/designer-realize/src/main/java/com/fr/nx/app/designer/menu/CalculateAttrPane.java @@ -39,6 +39,8 @@ public class CalculateAttrPane extends BasicBeanPane { private UICheckBox multiSourceMode; + private UICheckBox cursorPage; + private UISpinner treeExpandLayer; private JPanel treeConfigPanel; @@ -81,9 +83,17 @@ public class CalculateAttrPane extends BasicBeanPane { multiSourceMode = new UICheckBox(InterProviderFactory.getProvider().getLocText("Fine-Plugin_Engine_Feature_Multi_Source")); multiSourcePanel.add(multiSourceMode); + JPanel cursorPagePanel = FRGUIPaneFactory.createVerticalFlowLayout_S_Pane(true); + cursorPage = new UICheckBox(InterProviderFactory.getProvider().getLocText("Fine-Plugin_Engine_Calculate_Prefer_Cursor_Pagination")); + UILabel tipLabel = new UILabel(InterProviderFactory.getProvider().getLocText("Fine-Plugin_Engine_Calculate_Prefer_SQL_Pagination_Tip")); + tipLabel.setForeground(Color.GRAY); + cursorPagePanel.add(cursorPage); + cursorPagePanel.add(tipLabel); + // calculateAttrPanel.add(calculatedEndPanel); calculateAttrPanel.add(queryCachePanel); calculateAttrPanel.add(multiSourcePanel); + calculateAttrPanel.add(cursorPagePanel); treeConfigPanel = FRGUIPaneFactory.createTitledBorderPane( @@ -144,6 +154,7 @@ public class CalculateAttrPane extends BasicBeanPane { treeAsyncQuery.setSelected(attrMark.isTreeAsyncQuery()); treeExpandLayer.setValue(attrMark.getTreeExpandLayer()); multiSourceMode.setSelected(attrMark.isUseMultiSourceMode()); + cursorPage.setSelected(!attrMark.isSqlPage()); isEmptyAttr = false; } @@ -158,7 +169,8 @@ public class CalculateAttrPane extends BasicBeanPane { return new CalculatorAttrMark(false, queryCache.isSelected()) .treeAsyncQuery(treeAsyncQuery.isSelected()) .treeExpandLayer((int) treeExpandLayer.getValue()) - .useMultiSourceMode(multiSourceMode.isSelected()); + .useMultiSourceMode(multiSourceMode.isSelected()) + .useSqlPage(!cursorPage.isSelected()); } /** @@ -197,4 +209,4 @@ public class CalculateAttrPane extends BasicBeanPane { } }); } -} +} \ No newline at end of file