|
|
@ -369,9 +369,9 @@ public class DBManipulationPane extends BasicBeanPane<DBManipulation> { |
|
|
|
public void itemStateChanged(ItemEvent e) { |
|
|
|
public void itemStateChanged(ItemEvent e) { |
|
|
|
if (e.getStateChange() == ItemEvent.SELECTED) { |
|
|
|
if (e.getStateChange() == ItemEvent.SELECTED) { |
|
|
|
Object ob = e.getItem(); |
|
|
|
Object ob = e.getItem(); |
|
|
|
if ((ComparatorUtils.equals(ob,DML_CONFIG_TYPES[0])) || ComparatorUtils.equals(ob,DML_CONFIG_TYPES[3])) { |
|
|
|
if ((ComparatorUtils.equals(ob, DML_CONFIG_TYPES[0])) || ComparatorUtils.equals(ob, DML_CONFIG_TYPES[3])) { |
|
|
|
checkBoxUpdatePane.setVisible(true); |
|
|
|
checkBoxUpdatePane.setVisible(true); |
|
|
|
} else if ((ComparatorUtils.equals(ob,DML_CONFIG_TYPES[1])) || ComparatorUtils.equals(ob,DML_CONFIG_TYPES[2])){ |
|
|
|
} else if ((ComparatorUtils.equals(ob, DML_CONFIG_TYPES[1])) || ComparatorUtils.equals(ob, DML_CONFIG_TYPES[2])) { |
|
|
|
checkBoxUpdatePane.setVisible(false); |
|
|
|
checkBoxUpdatePane.setVisible(false); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -534,6 +534,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(new KeyColumnNameValue(false, (ColumnName)selected[i], new ColumnValue(""), false)); |
|
|
|
model.addKeyColumnNameValue(new KeyColumnNameValue(false, (ColumnName)selected[i], new ColumnValue(""), false)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}else if (returnValue == 4){ |
|
|
|
|
|
|
|
//新选项和原来没有重复项的情况,产品确认:只做全量增加,原有的清除
|
|
|
|
|
|
|
|
for (int i = 0; i < selected.length; i++) { |
|
|
|
|
|
|
|
model.addKeyColumnNameValue(newKeyColumnNameValueList.get(i)); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
model.fireTableDataChanged(); |
|
|
|
model.fireTableDataChanged(); |
|
|
|
keyColumnValuesTable.validate(); |
|
|
|
keyColumnValuesTable.validate(); |
|
|
|