|
|
@ -310,7 +310,7 @@ 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( |
|
|
|
jPanel.setBorder(BorderFactory.createTitledBorder( |
|
|
|
new ModLineBorder(ModLineBorder.TOP), Inter.getLocText(new String[]{"Submit", "Condition"}))); |
|
|
|
new ModLineBorder(ModLineBorder.TOP), Inter.getLocText("Fine-Designer_Submit_Condition"))); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected void addComponent(JPanel mainPane,JScrollPane addPane){ |
|
|
|
protected void addComponent(JPanel mainPane,JScrollPane addPane){ |
|
|
@ -465,6 +465,11 @@ public class DBManipulationPane extends BasicBeanPane<DBManipulation> { |
|
|
|
// Richie:初始化
|
|
|
|
// Richie:初始化
|
|
|
|
int returnValue = DEFAULT_RETURN_VALUE; |
|
|
|
int returnValue = DEFAULT_RETURN_VALUE; |
|
|
|
int coverNumber = 0; |
|
|
|
int coverNumber = 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!keyColumnNameValueList.isEmpty()) { |
|
|
|
|
|
|
|
//如果存在先前项,设置状态为5
|
|
|
|
|
|
|
|
returnValue = 5 ; |
|
|
|
|
|
|
|
} |
|
|
|
for (int i = 0; i < selected.length; i++) { |
|
|
|
for (int i = 0; i < selected.length; i++) { |
|
|
|
if (returnValue == 0 || returnValue == 3) { |
|
|
|
if (returnValue == 0 || returnValue == 3) { |
|
|
|
break; |
|
|
|
break; |
|
|
@ -526,6 +531,11 @@ public class DBManipulationPane extends BasicBeanPane<DBManipulation> { |
|
|
|
for (int i = 0; i < selected.length; i++) { |
|
|
|
for (int i = 0; i < selected.length; i++) { |
|
|
|
model.addKeyColumnNameValue(newKeyColumnNameValueList.get(i)); |
|
|
|
model.addKeyColumnNameValue(newKeyColumnNameValueList.get(i)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} else if (returnValue == 5){ |
|
|
|
|
|
|
|
//新选项和原来没有重复项的情况,产品确认:只做全量增加,原有的清除
|
|
|
|
|
|
|
|
for (int i = 0; i < selected.length; i++) { |
|
|
|
|
|
|
|
model.addKeyColumnNameValue(newKeyColumnNameValueList.get(i)); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Richie:初始化
|
|
|
|
// Richie:初始化
|
|
|
@ -535,6 +545,7 @@ public class DBManipulationPane extends BasicBeanPane<DBManipulation> { |
|
|
|
model.addKeyColumnNameValue(new KeyColumnNameValue(false, (ColumnName)selected[i], new ColumnValue(""), false)); |
|
|
|
model.addKeyColumnNameValue(new KeyColumnNameValue(false, (ColumnName)selected[i], new ColumnValue(""), false)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
model.fireTableDataChanged(); |
|
|
|
model.fireTableDataChanged(); |
|
|
|
keyColumnValuesTable.validate(); |
|
|
|
keyColumnValuesTable.validate(); |
|
|
|
} |
|
|
|
} |
|
|
|