Compare commits
	
		
			No commits in common. "978f9ca88afd12af67ea9235037e6e3e0cccebf9" and "3b7b20c5aa14c76d3ce1b435d6b2739768ef6e54" have entirely different histories.
		
	
	
		
			978f9ca88a
			...
			3b7b20c5aa
		
	
		| 
						 | 
				
			
			@ -195,8 +195,6 @@ public class RecosMeasurecosFormPlugin extends AbstractFormPlugin implements Upl
 | 
			
		|||
            // 设置垂直居中
 | 
			
		||||
            titleStyle.setVerticalAlignment(VerticalAlignment.CENTER);
 | 
			
		||||
 | 
			
		||||
            titleStyle.setLocked(false);
 | 
			
		||||
 | 
			
		||||
            headCell.setCellStyle(titleStyle);
 | 
			
		||||
 | 
			
		||||
            // 合并第1行的前几列,合并列数 = excel的列数
 | 
			
		||||
| 
						 | 
				
			
			@ -473,7 +471,7 @@ public class RecosMeasurecosFormPlugin extends AbstractFormPlugin implements Upl
 | 
			
		|||
                                    calculation = new Calculation(
 | 
			
		||||
                                            String.valueOf(getcellvallue(row.getCell(6))),//科目编码
 | 
			
		||||
                                            String.valueOf(getcellvallue(row.getCell(7))),//科目名称
 | 
			
		||||
                                            row.getCell(8).getStringCellValue(),//财务预算分类
 | 
			
		||||
                                            String.valueOf(getcellvallue(row.getCell(8))),//财务预算分类
 | 
			
		||||
                                            String.valueOf(getcellvallue(row.getCell(9))),//估算口径
 | 
			
		||||
                                            String.valueOf(getcellvallue(row.getCell(10))),//单位
 | 
			
		||||
                                            (double)getcellvallue(row.getCell(11)),//工程量基数
 | 
			
		||||
| 
						 | 
				
			
			@ -484,8 +482,7 @@ public class RecosMeasurecosFormPlugin extends AbstractFormPlugin implements Upl
 | 
			
		|||
                                            (double)getcellvallue(row.getCell(16)),//单价调整值
 | 
			
		||||
                                            (double)getcellvallue(row.getCell(17)),//单价
 | 
			
		||||
                                            (double)getcellvallue(row.getCell(18)),//合价(含税)
 | 
			
		||||
                                            row.getCell(19).getStringCellValue(),//明细
 | 
			
		||||
//                                            String.valueOf(getcellvallue(row.getCell(19))),//明细
 | 
			
		||||
                                            String.valueOf(getcellvallue(row.getCell(19))),//明细
 | 
			
		||||
                                            String.valueOf(getcellvallue(row.getCell(20)))//备注
 | 
			
		||||
                                    );
 | 
			
		||||
                                } catch (Exception e) {
 | 
			
		||||
| 
						 | 
				
			
			@ -691,7 +688,7 @@ public class RecosMeasurecosFormPlugin extends AbstractFormPlugin implements Upl
 | 
			
		|||
                    break;
 | 
			
		||||
                case "估算口径":
 | 
			
		||||
                    // 1. 设置下拉项数据
 | 
			
		||||
                    String[] products1 = {"按建筑面积指标", "按施工面积指标", "按项估入", "其他计算口径","个/套/组/件/点位","按点位估入","按个估入","按扩电容量","按套估入","费率","以上述费用合计数为基数"};
 | 
			
		||||
                    String[] products1 = {"按建筑面积指标", "按施工面积指标", "按项估入", "其他计算口径","个/套/组/件/点位"};
 | 
			
		||||
                    DataValidationHelper helper1 = sheet.getDataValidationHelper();
 | 
			
		||||
                    DataValidationConstraint constraint1 = helper1.createExplicitListConstraint(products1);
 | 
			
		||||
                    int totalRowCount1 = sheet.getLastRowNum() + 1;
 | 
			
		||||
| 
						 | 
				
			
			@ -709,7 +706,7 @@ public class RecosMeasurecosFormPlugin extends AbstractFormPlugin implements Upl
 | 
			
		|||
        sheet.createFreezePane(0, 4);  // 0列, 4行
 | 
			
		||||
 | 
			
		||||
        //设置公式
 | 
			
		||||
        for (int rowNum =5 ; rowNum < sheet.getPhysicalNumberOfRows()+1; rowNum++) {
 | 
			
		||||
        for (int rowNum =5 ; rowNum < sheet.getPhysicalNumberOfRows(); rowNum++) {
 | 
			
		||||
            for (int i = 0; i < numColumns; i++) {
 | 
			
		||||
                Cell cell = sheet.getRow(3).getCell(i);
 | 
			
		||||
                if (cell==null){
 | 
			
		||||
| 
						 | 
				
			
			@ -748,8 +745,9 @@ public class RecosMeasurecosFormPlugin extends AbstractFormPlugin implements Upl
 | 
			
		|||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        //设置合并
 | 
			
		||||
 | 
			
		||||
        //设置保护单元格密码
 | 
			
		||||
//        sheet.protectSheet("password");
 | 
			
		||||
 | 
			
		||||
        sheet.protectSheet("password");
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue