|
@@ -437,22 +437,7 @@ public class ExportUtil {
|
|
|
}else {
|
|
|
cell = row.getCell(7);
|
|
|
}
|
|
|
- String powerInstallFee = transferOfPower2.getPowerInstallFee();
|
|
|
- String powerValue = transferOfPower2.getPowerValue();
|
|
|
- BigDecimal one = new BigDecimal("0.0");
|
|
|
- BigDecimal two = new BigDecimal("0.0");
|
|
|
- if (null == powerInstallFee || "".equals(powerInstallFee)) {
|
|
|
- one = new BigDecimal("0.0");
|
|
|
- }else {
|
|
|
- one = new BigDecimal(powerInstallFee);
|
|
|
- }
|
|
|
- if (null == powerValue || "".equals(powerValue)) {
|
|
|
- two = new BigDecimal("0.0");
|
|
|
- }else {
|
|
|
- two = new BigDecimal(powerValue);
|
|
|
- }
|
|
|
- BigDecimal bigDecimal = one.subtract(two).setScale(2, BigDecimal.ROUND_HALF_UP);
|
|
|
- cell.setCellValue(bigDecimal.toString());//安装费
|
|
|
+ cell.setCellValue(transferOfPower2.getPowerInstallFee());//安装费
|
|
|
cell.setCellStyle(cellStyle);
|
|
|
if (i == transferOfPower2s.size() - 1){ cell.setCellStyle(style); }
|
|
|
//第9行
|
|
@@ -707,7 +692,7 @@ public class ExportUtil {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- //移交资产—配电网资产一览表(设备)2
|
|
|
+ //移交资产—配电网资产一览表(设备)2-(04-2)
|
|
|
public static void getSheetEquip2(Sheet sheet,List<ErpCredit> erpCredits,List<MaintainData> maintainDataList,Workbook workbook){
|
|
|
if (sheet!=null){
|
|
|
CellStyle style=getCellStyleFont(workbook);
|
|
@@ -743,7 +728,7 @@ public class ExportUtil {
|
|
|
}else {
|
|
|
cell = row.getCell(2);
|
|
|
}
|
|
|
- cell.setCellValue(transferOfPower2.getPowerAssetClass());
|
|
|
+ cell.setCellValue(transferOfPower2.getPowerAssetClass());//资产类别
|
|
|
cell.setCellStyle(cellStyle);
|
|
|
if (i == transferOfPower2s.size() - 1){ cell.setCellStyle(style); }
|
|
|
//第4行
|
|
@@ -791,22 +776,24 @@ public class ExportUtil {
|
|
|
cell.setCellValue(transferOfPower2.getPowerCapacity());//配变容量
|
|
|
cell.setCellStyle(cellStyle);
|
|
|
if (i == transferOfPower2s.size() - 1){ cell.setCellStyle(style); }
|
|
|
+
|
|
|
//第9行
|
|
|
if (row.getCell(8)==null){
|
|
|
cell = row.createCell(8);
|
|
|
}else {
|
|
|
cell = row.getCell(8);
|
|
|
}
|
|
|
- cell.setCellValue(transferOfPower2.getPowerValue());//设备价值
|
|
|
+ cell.setCellValue(transferOfPower2.getPowerInstallFee());//安装费
|
|
|
cell.setCellStyle(cellStyle);
|
|
|
if (i == transferOfPower2s.size() - 1){ cell.setCellStyle(style); }
|
|
|
+
|
|
|
//第10行
|
|
|
if (row.getCell(9)==null){
|
|
|
cell = row.createCell(9);
|
|
|
}else {
|
|
|
cell = row.getCell(9);
|
|
|
}
|
|
|
- cell.setCellValue(transferOfPower2.getPowerStandInFee());//摊入费用
|
|
|
+ cell.setCellValue(transferOfPower2.getPowerValue());//设备价值
|
|
|
cell.setCellStyle(cellStyle);
|
|
|
if (i == transferOfPower2s.size() - 1){ cell.setCellStyle(style); }
|
|
|
//第11行
|
|
@@ -815,15 +802,24 @@ public class ExportUtil {
|
|
|
}else {
|
|
|
cell = row.getCell(10);
|
|
|
}
|
|
|
- cell.setCellValue(transferOfPower2.getPowerDeliveredAssets());//交付使用资产价值
|
|
|
+ cell.setCellValue(transferOfPower2.getPowerStandInFee());//摊入费用
|
|
|
cell.setCellStyle(cellStyle);
|
|
|
if (i == transferOfPower2s.size() - 1){ cell.setCellStyle(style); }
|
|
|
//第12行
|
|
|
- if (row.getCell(11) == null){
|
|
|
+ if (row.getCell(11)==null){
|
|
|
cell = row.createCell(11);
|
|
|
}else {
|
|
|
cell = row.getCell(11);
|
|
|
}
|
|
|
+ cell.setCellValue(transferOfPower2.getPowerDeliveredAssets());//交付使用资产价值
|
|
|
+ cell.setCellStyle(cellStyle);
|
|
|
+ if (i == transferOfPower2s.size() - 1){ cell.setCellStyle(style); }
|
|
|
+ //第13行
|
|
|
+ if (row.getCell(12) == null){
|
|
|
+ cell = row.createCell(12);
|
|
|
+ }else {
|
|
|
+ cell = row.getCell(12);
|
|
|
+ }
|
|
|
cell.setCellValue(transferOfPower2.getPoweRequipmentFee());//其中:附属设备价值
|
|
|
cell.setCellStyle(cellStyle);
|
|
|
if (i == transferOfPower2s.size() - 1){ cell.setCellStyle(style); }
|