Преглед изворни кода

优化填充空白行功能,对于当前行存在行合并的单元格不再插入单元格,而是扩大其行合并值

master
jacky6024 пре 7 година
родитељ
комит
294cf27383
  1. 13
      ureport2-core/src/main/java/com/bstek/ureport/build/ReportBuilder.java

13
ureport2-core/src/main/java/com/bstek/ureport/build/ReportBuilder.java

@ -241,10 +241,15 @@ public class ReportBuilder extends BasePagination implements ApplicationContextA
colSpan--;
index+=colSpan;
}
Cell newCell=newBlankCell(currentCell, column, report);
newCell.setRow(newRow);
newRow.getCells().add(newCell);
newCellMap.put(newCell.getColumn(), newCell);
int rowSpan=currentCell.getRowSpan();
if(rowSpan>1){
currentCell.setRowSpan(rowSpan+1);
}else{
Cell newCell=newBlankCell(currentCell, column, report);
newCell.setRow(newRow);
newRow.getCells().add(newCell);
newCellMap.put(newCell.getColumn(), newCell);
}
}
return newRow;
}

Loading…
Откажи
Сачувај