|
|
@ -2,6 +2,7 @@ package com.fr.design.write.submit; |
|
|
|
|
|
|
|
|
|
|
|
import com.fine.swing.ui.layout.Layouts; |
|
|
|
import com.fine.swing.ui.layout.Layouts; |
|
|
|
import com.fine.theme.utils.FineUIScale; |
|
|
|
import com.fine.theme.utils.FineUIScale; |
|
|
|
|
|
|
|
import com.fine.theme.utils.FineUIUtils; |
|
|
|
import com.fr.base.BaseFormula; |
|
|
|
import com.fr.base.BaseFormula; |
|
|
|
import com.fr.base.BaseUtils; |
|
|
|
import com.fr.base.BaseUtils; |
|
|
|
import com.fr.base.Parameter; |
|
|
|
import com.fr.base.Parameter; |
|
|
@ -156,16 +157,13 @@ public class DBManipulationPane extends BasicBeanPane<DBManipulation> { |
|
|
|
|
|
|
|
|
|
|
|
JPanel typePane = new JPanel(new BorderLayout()); |
|
|
|
JPanel typePane = new JPanel(new BorderLayout()); |
|
|
|
typePane.add(row(10, |
|
|
|
typePane.add(row(10, |
|
|
|
cell(new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Write_Choose_Submit_Type") + ":")), |
|
|
|
cell(new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Write_Choose_Submit_Type"))), |
|
|
|
cell(dmlConfigComboBox)).getComponent()); |
|
|
|
cell(dmlConfigComboBox)).getComponent()); |
|
|
|
typePane.setBorder(BorderFactory.createTitledBorder(new ModLineBorder(ModLineBorder.TOP), com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Write_Submit_Type"))); |
|
|
|
|
|
|
|
chooseTable = new ChoosePaneSupportFormula(); |
|
|
|
chooseTable = new ChoosePaneSupportFormula(); |
|
|
|
chooseTable.setBorder(BorderFactory.createTitledBorder(new ModLineBorder(ModLineBorder.TOP), com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Base_Table"))); |
|
|
|
|
|
|
|
chooseTable.setTableNameComboBoxPopSize(160, 320); |
|
|
|
chooseTable.setTableNameComboBoxPopSize(160, 320); |
|
|
|
|
|
|
|
|
|
|
|
// peter:编辑的TablePane
|
|
|
|
// peter:编辑的TablePane
|
|
|
|
JPanel editTablePane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
JPanel editTablePane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
editTablePane.setBorder(BorderFactory.createTitledBorder(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Base_Value"))); |
|
|
|
|
|
|
|
editTablePane.setBounds(0, 0, FineUIScale.scale(280), FineUIScale.scale(180)); |
|
|
|
editTablePane.setBounds(0, 0, FineUIScale.scale(280), FineUIScale.scale(180)); |
|
|
|
keyColumnValuesTable = new KeyColumnNameValueTable(); |
|
|
|
keyColumnValuesTable = new KeyColumnNameValueTable(); |
|
|
|
editTablePane.add(new UIScrollPane(this.keyColumnValuesTable), BorderLayout.CENTER); |
|
|
|
editTablePane.add(new UIScrollPane(this.keyColumnValuesTable), BorderLayout.CENTER); |
|
|
@ -177,13 +175,13 @@ public class DBManipulationPane extends BasicBeanPane<DBManipulation> { |
|
|
|
keyColumnValuesTable.getTableHeader().setDefaultRenderer(headerRenderer); |
|
|
|
keyColumnValuesTable.getTableHeader().setDefaultRenderer(headerRenderer); |
|
|
|
|
|
|
|
|
|
|
|
northPane.add(column(10, true, |
|
|
|
northPane.add(column(10, true, |
|
|
|
cell(typePane), |
|
|
|
cell(FineUIUtils.wrapComponentWithTitle(typePane, com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Write_Submit_Type"))), |
|
|
|
cell(chooseTable)) |
|
|
|
cell(FineUIUtils.wrapComponentWithTitle(chooseTable, com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Base_Table")))) |
|
|
|
.getComponent()); |
|
|
|
.getComponent()); |
|
|
|
|
|
|
|
|
|
|
|
this.add(column(10, true, |
|
|
|
this.add(column(10, true, |
|
|
|
cell(northPane), |
|
|
|
cell(northPane), |
|
|
|
cell(editTablePane)) |
|
|
|
cell(FineUIUtils.wrapComponentWithTitle(editTablePane, com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Base_Value")))) |
|
|
|
.getComponent()); |
|
|
|
.getComponent()); |
|
|
|
|
|
|
|
|
|
|
|
initJTableColumn(); |
|
|
|
initJTableColumn(); |
|
|
@ -266,8 +264,10 @@ public class DBManipulationPane extends BasicBeanPane<DBManipulation> { |
|
|
|
JPanel conditionPane = this.createConditionPane(); |
|
|
|
JPanel conditionPane = this.createConditionPane(); |
|
|
|
|
|
|
|
|
|
|
|
JPanel btPane = new JPanel(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
JPanel btPane = new JPanel(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
btPane.add(eventPane, BorderLayout.CENTER); |
|
|
|
btPane.add(column( |
|
|
|
btPane.add(conditionPane, BorderLayout.NORTH); |
|
|
|
cell(FineUIUtils.wrapComponentWithTitle(conditionPane, com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Submit_Condition"))), |
|
|
|
|
|
|
|
cell(eventPane) |
|
|
|
|
|
|
|
).getComponent()); |
|
|
|
this.add(btPane, BorderLayout.SOUTH); |
|
|
|
this.add(btPane, BorderLayout.SOUTH); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -341,8 +341,8 @@ public class DBManipulationPane extends BasicBeanPane<DBManipulation> { |
|
|
|
controlBtnPane.setPreferredSize(createControlBtnPanePreferredSize()); |
|
|
|
controlBtnPane.setPreferredSize(createControlBtnPanePreferredSize()); |
|
|
|
controlBtnPane.add(addSubmitConditionButton); |
|
|
|
controlBtnPane.add(addSubmitConditionButton); |
|
|
|
conditionPane.add(row( |
|
|
|
conditionPane.add(row( |
|
|
|
cell(jp).weight(0.74), |
|
|
|
cell(jp).weight(0.76), |
|
|
|
column(cell(controlBtnPane).weight(0.5),cell(new UILabel()).weight(0.5)).weight(0.26) |
|
|
|
column(cell(controlBtnPane).weight(0.4),cell(new UILabel()).weight(0.6)).weight(0.24) |
|
|
|
).getComponent()); |
|
|
|
).getComponent()); |
|
|
|
|
|
|
|
|
|
|
|
return conditionPane; |
|
|
|
return conditionPane; |
|
|
@ -350,8 +350,6 @@ public class DBManipulationPane extends BasicBeanPane<DBManipulation> { |
|
|
|
|
|
|
|
|
|
|
|
protected void setBorderAndLayout(JPanel jPanel) { |
|
|
|
protected void setBorderAndLayout(JPanel jPanel) { |
|
|
|
jPanel.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
jPanel.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
jPanel.setBorder(BorderFactory.createTitledBorder( |
|
|
|
|
|
|
|
new ModLineBorder(ModLineBorder.TOP), com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Submit_Condition"))); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected void addComponent(JPanel mainPane, JScrollPane addPane) { |
|
|
|
protected void addComponent(JPanel mainPane, JScrollPane addPane) { |
|
|
|