Browse Source

update

bugfix/10.0
Hades 5 years ago
parent
commit
c5e1ffbce0
  1. 31
      designer-realize/src/main/java/com/fr/design/write/submit/SmartInsertDBManipulationPane.java

31
designer-realize/src/main/java/com/fr/design/write/submit/SmartInsertDBManipulationPane.java

@ -445,24 +445,11 @@ public class SmartInsertDBManipulationPane extends DBManipulationPane {
oriCellSelection = cellselection; oriCellSelection = cellselection;
} }
private ColumnRowGroup getColumnRowGroupValue(Object oriValue) {
ColumnRowGroup newValue = new ColumnRowGroup();
if (oriValue instanceof ColumnRowGroup) {
newValue.addAll((ColumnRowGroup) oriValue);
} else if (oriValue instanceof ColumnRow) {
newValue.addColumnRow((ColumnRow) oriValue);
}
return newValue;
}
private boolean isSameStartPoint(CellSelection cs1, CellSelection cs2) {
return cs1.getColumn() == cs2.getColumn() && cs1.getRow() == cs2.getRow();
}
private void dealDragSelection(ColumnRowGroup add, CellSelection cellselection, ColumnRowGroup newValue) { private void dealDragSelection(ColumnRowGroup add, CellSelection cellselection, ColumnRowGroup newValue) {
int c = cellselection.getColumn(); int c = cellselection.getColumn();
int cs = cellselection.getColumnSpan(); int cs = cellselection.getColumnSpan();
int r = cellselection.getRow();int rs = cellselection.getRowSpan(); int r = cellselection.getRow();
int rs = cellselection.getRowSpan();
String allColumnRow = newValue.toString(); String allColumnRow = newValue.toString();
newAdd.clear(); newAdd.clear();
for (int i = 0; i < cs; i++) { for (int i = 0; i < cs; i++) {
@ -484,6 +471,20 @@ public class SmartInsertDBManipulationPane extends DBManipulationPane {
oldAdd.addAll(newAdd); oldAdd.addAll(newAdd);
} }
private ColumnRowGroup getColumnRowGroupValue(Object oriValue) {
ColumnRowGroup newValue = new ColumnRowGroup();
if (oriValue instanceof ColumnRowGroup) {
newValue.addAll((ColumnRowGroup) oriValue);
} else if (oriValue instanceof ColumnRow) {
newValue.addColumnRow((ColumnRow) oriValue);
}
return newValue;
}
private boolean isSameStartPoint(CellSelection cs1, CellSelection cs2) {
return cs1.getColumn() == cs2.getColumn() && cs1.getRow() == cs2.getRow();
}
private void dealSelectColRow(ColumnRowGroup add, CellSelection se) { private void dealSelectColRow(ColumnRowGroup add, CellSelection se) {
int c = se.getColumn(), cs = se.getColumnSpan(), int c = se.getColumn(), cs = se.getColumnSpan(),
r = se.getRow(), rs = se.getRowSpan(); r = se.getRow(), rs = se.getRowSpan();

Loading…
Cancel
Save