|
@@ -60,17 +60,17 @@ public class MyExportUtil {
|
|
|
Row row = sheet.createRow(rowNum+i);
|
|
|
Cell cell0 = crateCell(workbook,row,0); //项目编号
|
|
|
Cell cell1 = crateCell(workbook,row,1); //项目名称
|
|
|
- Cell cell2 = crateCell(workbook,row,2); //施工费应付金额
|
|
|
- Cell cell3 = crateCell(workbook,row,3); //施工费实付金额
|
|
|
- Cell cell4 = crateCell(workbook,row,4); //施工费差额
|
|
|
+ Cell cell2 = crateCellLeft(workbook,row,2); //施工费应付金额
|
|
|
+ Cell cell3 = crateCellLeft(workbook,row,3); //施工费实付金额
|
|
|
+ Cell cell4 = crateCellLeft(workbook,row,4); //施工费差额
|
|
|
Cell cell5 = crateCell(workbook,row,5); //施工费允许少付
|
|
|
- Cell cell6 = crateCell(workbook,row,6); //设计费应付金额
|
|
|
- Cell cell7 = crateCell(workbook,row,7); //设计费实付金额
|
|
|
- Cell cell8 = crateCell(workbook,row,8); //设计费差额
|
|
|
+ Cell cell6 = crateCellLeft(workbook,row,6); //设计费应付金额
|
|
|
+ Cell cell7 = crateCellLeft(workbook,row,7); //设计费实付金额
|
|
|
+ Cell cell8 = crateCellLeft(workbook,row,8); //设计费差额
|
|
|
Cell cell9 = crateCell(workbook,row,9); //设计费允许少付
|
|
|
- Cell cell10 = crateCell(workbook,row,10); //监理费应付金额
|
|
|
- Cell cell11 = crateCell(workbook,row,11); //监理费实付金额
|
|
|
- Cell cell12 = crateCell(workbook,row,12); //监理费差额
|
|
|
+ Cell cell10 = crateCellLeft(workbook,row,10); //监理费应付金额
|
|
|
+ Cell cell11 = crateCellLeft(workbook,row,11); //监理费实付金额
|
|
|
+ Cell cell12 = crateCellLeft(workbook,row,12); //监理费差额
|
|
|
Cell cell13 = crateCell(workbook,row,13); //监理费允许少付
|
|
|
CostCheck view = list.get(i);
|
|
|
cell0.setCellValue(view.getProjectId());
|
|
@@ -125,15 +125,15 @@ public class MyExportUtil {
|
|
|
Cell cell7 = crateCell(workbook,row,7); //开工时间
|
|
|
Cell cell8 = crateCell(workbook,row,8); //竣工时间
|
|
|
Cell cell9 = crateCell(workbook,row,9); //批准文号
|
|
|
- Cell cell10 = crateCell(workbook,row,10); //建筑费
|
|
|
- Cell cell11 = crateCell(workbook,row,11); //安装费
|
|
|
- Cell cell12 = crateCell(workbook,row,12); //设备购置费
|
|
|
- Cell cell13 = crateCell(workbook,row,13); //主材费
|
|
|
- Cell cell14 = crateCell(workbook,row,14); //设计费
|
|
|
- Cell cell15 = crateCell(workbook,row,15); //监理费
|
|
|
- Cell cell16 = crateCell(workbook,row,16); //项目前期工作费
|
|
|
- Cell cell17 = crateCell(workbook,row,17); //线路施工赔偿费
|
|
|
- Cell cell18 = crateCell(workbook,row,18); //法人管理费(余物清理费)
|
|
|
+ Cell cell10 = crateCellLeft(workbook,row,10); //建筑费
|
|
|
+ Cell cell11 = crateCellLeft(workbook,row,11); //安装费
|
|
|
+ Cell cell12 = crateCellLeft(workbook,row,12); //设备购置费
|
|
|
+ Cell cell13 = crateCellLeft(workbook,row,13); //主材费
|
|
|
+ Cell cell14 = crateCellLeft(workbook,row,14); //设计费
|
|
|
+ Cell cell15 = crateCellLeft(workbook,row,15); //监理费
|
|
|
+ Cell cell16 = crateCellLeft(workbook,row,16); //项目前期工作费
|
|
|
+ Cell cell17 = crateCellLeft(workbook,row,17); //线路施工赔偿费
|
|
|
+ Cell cell18 = crateCellLeft(workbook,row,18); //法人管理费(余物清理费)
|
|
|
Cell cell19 = crateCell(workbook,row,19); //合同费率
|
|
|
Cell cell20 = crateCell(workbook,row,20); //典设费率
|
|
|
Cell cell21 = crateCell(workbook,row,21); //合同费率
|
|
@@ -194,7 +194,7 @@ public class MyExportUtil {
|
|
|
Cell cell3 = crateCell(workbook,row,3); //施工单位
|
|
|
Cell cell4 = crateCell(workbook,row,4); //建筑地址
|
|
|
Cell cell5 = crateCell(workbook,row,5); //建筑属性
|
|
|
- Cell cell6 = crateCell(workbook,row,6); //发文总投资(必填)
|
|
|
+ Cell cell6 = crateCellLeft(workbook,row,6); //发文总投资(必填)
|
|
|
Cell cell7 = crateCell(workbook,row,7); //开工时间
|
|
|
ProjectBudget view = list.get(i);
|
|
|
cell0.setCellValue(view.getProjectId());
|
|
@@ -239,6 +239,17 @@ public class MyExportUtil {
|
|
|
return cell;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ Cell crateCellLeft(XSSFWorkbook workbook,Row row, int num){
|
|
|
+ Cell cell = row.createCell(num);
|
|
|
+ if(style == null){
|
|
|
+ style = workbook.createCellStyle();
|
|
|
+ style.setWrapText(true);
|
|
|
+ }
|
|
|
+ cell.setCellStyle(style);
|
|
|
+ return cell;
|
|
|
+ }
|
|
|
+
|
|
|
Double getDouble(Double num) {
|
|
|
Double returnDouble = 0.0;
|
|
|
if (null!=num) {
|