Merge branch 'dev_1.0.0' of http://git.unissense.tech/mula/fourcal into Branch_dev_1.0.0

dev_1.0.0
‘wangjiuyun 2024-10-30 11:11:37 +08:00
commit 5cfa2f90dc
8 changed files with 139 additions and 114 deletions

View File

@ -432,15 +432,16 @@ public abstract class IncomeCostBean {
|| null == costPurchaseServiceTaxInclude || null == costPurchaseServiceTaxInclude
|| null == costPurchaseOtherTaxInclude || null == costPurchaseOtherTaxInclude
// || null == costProjectManageTaxInclude // || null == costProjectManageTaxInclude
|| null == costOtherOtherTaxInclude) { // || null == costOtherOtherTaxInclude
) {
return handleSpecial(null); return handleSpecial(null);
} }
return costPurchaseDeviceTaxInclude return costPurchaseDeviceTaxInclude
.add(costPurchaseBuildTaxInclude) .add(costPurchaseBuildTaxInclude)
.add(costPurchaseServiceTaxInclude) .add(costPurchaseServiceTaxInclude)
.add(costPurchaseOtherTaxInclude) .add(costPurchaseOtherTaxInclude);
// .add(costProjectManageTaxInclude) // .add(costProjectManageTaxInclude)
.add(costOtherOtherTaxInclude); // .add(costOtherOtherTaxInclude);
} }
/** /**

View File

@ -171,12 +171,12 @@ public class ProjectController extends BaseController {
response.setHeader("Content-Type", "application/vnd.ms-excel"); response.setHeader("Content-Type", "application/vnd.ms-excel");
ServletOutputStream outputStream = response.getOutputStream(); ServletOutputStream outputStream = response.getOutputStream();
ExportExcelUtils exportExcelUtils = new ExportExcelUtils(); ExportExcelUtils exportExcelUtils = new ExportExcelUtils();
String[] headers0 = {"部门名称", "项目编号", "项目名称", "项目类型", "项目计划开始时间", "项目计划结束时间", "垫资模式", "合作对象", "垫资利息", "垫资峰值", "合同金额", String[] headers0 = {"部门名称", "项目编号", "项目名称", "项目类型", "垫资模式", "垫资利息", "垫资峰值", "合同金额",
"项目毛利", "项目毛利率", "华智产品金额", "汇智产品金额", "华三产品金额", "其他产品金额", "项目把握度", "行业场景应用", "项目解决方案", "客户名称", "最终用户名称", "项目毛利", "项目毛利率", "华智产品金额", "汇智产品金额", "华三产品金额", "其他产品金额", "项目把握度", "行业场景应用", "客户名称", "最终用户名称",
"价值及风险", "项目负责人", "预计合同签订时间", "项目计划招标时间", "是否二次合作", "直签", "计收计划","项目阶段", "公司销售阶段", "当前进度描述", "下一步计划"}; "价值及风险", "项目负责人", "预计合同签订时间", "项目计划招标时间", "是否二次合作", "是否汇智中标", "计收计划","项目阶段", "公司销售阶段", "当前进度描述"};
String[] columns0 = {"deptName", "projectNo", "name", "typeDesc", "startDate", "endDate", "underwrittenModeStr", "collaborator", "advanceInterestAmountRound", "advancePeakAmountRound", "contractRound", String[] columns0 = {"deptName", "projectNo", "name", "typeDesc", "underwrittenModeStr", "advanceInterestAmountRound", "advancePeakAmountRound", "contractRound",
"grossProfitRound", "grossProfitMarginRound", "huazhiRound", "huizhiRound", "huasanRound", "ziguangRound", "certaintyStr", "industryScenario", "resolvePlanStr", "customer", "terminalCustomer", "grossProfitRound", "grossProfitMarginRound", "huazhiRound", "huizhiRound", "huasanRound", "ziguangRound", "certaintyStr", "industryScenario", "customer", "terminalCustomer",
"valueRisk", "principal", "contractTime", "bidsTime", "isSecondStr", "signTypeStr", "calculationCollection","stageName", "saleStageName", "stageRemark", "nextPlan"}; "valueRisk", "principal", "contractTime", "bidsTime", "isSecondStr", "signTypeStr", "calculationCollection","stageName", "saleStageName", "stageRemark"};
exportExcelUtils.exportProjectExcel(headers0, columns0, project, "yyyy-MM-dd", 0, "项目立项(概算)信息", outputStream); exportExcelUtils.exportProjectExcel(headers0, columns0, project, "yyyy-MM-dd", 0, "项目立项(概算)信息", outputStream);
if (project.getStatus() < 5) { if (project.getStatus() < 5) {
@ -185,12 +185,12 @@ public class ProjectController extends BaseController {
} }
ProjectBudget projectBudget = projectService.findBudgetByProjectId(project.getId()); ProjectBudget projectBudget = projectService.findBudgetByProjectId(project.getId());
String[] headers1 = {"部门名称", "项目编号", "项目名称", "合同名称", "项目类型", "项目计划开始时间", "项目计划结束时间", "垫资模式", "合作对象", "垫资利息", "垫资峰值", "合同金额", String[] headers1 = {"部门名称", "项目编号", "项目名称", "合同名称", "项目类型", "垫资模式", "垫资利息", "垫资峰值", "合同金额",
"项目毛利A", "项目毛利A利率", "项目毛利", "项目毛利率", "华智产品金额", "汇智产品金额", "华三产品金额", "其他产品金额", "项目把握度", "行业场景应用", "项目解决方案", "客户名称", "最终用户名称", "项目毛利A", "项目毛利A利率", "项目毛利", "项目毛利率", "华智产品金额", "汇智产品金额", "华三产品金额", "其他产品金额", "项目把握度", "行业场景应用", "客户名称", "最终用户名称",
"价值及风险", "项目负责人", "预计合同签订时间", "项目计划招标时间", "是否二次合作", "直签", "主合同收款条款", "主合同具体解决方案", "计收计划"}; "价值及风险", "项目负责人", "预计合同签订时间", "项目计划招标时间", "是否二次合作", "是否汇智中标", "计收计划"};
String[] columns1 = {"deptNameBudget", "projectNoBudget", "nameBudget", "contractBudget", "typeDescBudget", "startDateBudget", "endDateBudget", "underwrittenModeStrBudget", "collaboratorBudget", "advanceInterestAmountRoundBudget", "advancePeakAmountRoundBudget", "contractRoundBudget", String[] columns1 = {"deptNameBudget", "projectNoBudget", "nameBudget", "contractBudget", "typeDescBudget", "underwrittenModeStrBudget", "advanceInterestAmountRoundBudget", "advancePeakAmountRoundBudget", "contractRoundBudget",
"grossProfitARoundBudget", "grossProfitAMarginRoundBudget", "grossProfitRoundBudget", "grossProfitMarginRoundBudget", "huazhiRoundBudget", "huizhiRoundBudget", "huasanRoundBudget", "ziguangRoundBudget", "certaintyStrBudget", "industryScenarioBudget", "resolvePlanStrBudget", "customerBudget", "terminalCustomerBudget", "grossProfitARoundBudget", "grossProfitAMarginRoundBudget", "grossProfitRoundBudget", "grossProfitMarginRoundBudget", "huazhiRoundBudget", "huizhiRoundBudget", "huasanRoundBudget", "ziguangRoundBudget", "certaintyStrBudget", "industryScenarioBudget", "customerBudget", "terminalCustomerBudget",
"valueRiskBudget", "principalBudget", "contractTimeBudget", "bidsTimeBudget", "isSecondStrBudget", "signTypeStrBudget", "mainContractCollectionTermsBudget", "mainContractResolvePlanBudget", "calculationCollectionBudget"}; "valueRiskBudget", "principalBudget", "contractTimeBudget", "bidsTimeBudget", "isSecondStrBudget", "signTypeStrBudget", "calculationCollectionBudget"};
exportExcelUtils.exportProjectBudgetExcel(headers1, columns1, projectBudget, "yyyy-MM-dd", 0, "项目基本信息", outputStream); exportExcelUtils.exportProjectBudgetExcel(headers1, columns1, projectBudget, "yyyy-MM-dd", 0, "项目基本信息", outputStream);
BudgetBean budgetBean = projectBudgetService.getBudget(project); BudgetBean budgetBean = projectBudgetService.getBudget(project);
@ -1210,12 +1210,12 @@ public class ProjectController extends BaseController {
response.setHeader("Content-Type", "application/vnd.ms-excel"); response.setHeader("Content-Type", "application/vnd.ms-excel");
ServletOutputStream outputStream = response.getOutputStream(); ServletOutputStream outputStream = response.getOutputStream();
ExportExcelUtils exportExcelUtils = new ExportExcelUtils(); ExportExcelUtils exportExcelUtils = new ExportExcelUtils();
String[] headers0 = {"部门名称", "项目编号", "项目名称", "项目类型", "项目计划开始时间", "项目计划结束时间", "垫资模式", "合作对象", "垫资利息", "垫资峰值", String[] headers0 = {"部门名称", "项目编号", "项目名称", "项目类型", "垫资模式", "垫资利息", "垫资峰值",
"合同金额", "项目毛利", "项目毛利率", "华智产品金额", "汇智产品金额", "华三产品金额", "其他产品金额", "项目把握度", "行业场景应用", "项目解决方案", "合同金额", "项目毛利", "项目毛利率", "华智产品金额", "汇智产品金额", "华三产品金额", "其他产品金额", "项目把握度", "行业场景应用",
"客户名称", "最终用户名称", "价值及风险", "项目负责人", "预计合同签订时间", "项目计划招标时间", "是否二次合作", "直签", "计收计划", "项目阶段", "公司销售阶段", "当前进度描述", "下一步计划"}; "客户名称", "最终用户名称", "价值及风险", "项目负责人", "预计合同签订时间", "项目计划招标时间", "是否二次合作", "是否汇智中标", "计收计划", "项目阶段", "公司销售阶段", "当前进度描述"};
String[] columns0 = {"deptName", "projectNo", "name", "typeDesc", "startDate", "endDate", "underwrittenModeStr", "collaborator", "advanceInterestAmountRound", "advancePeakAmountRound", String[] columns0 = {"deptName", "projectNo", "name", "typeDesc", "underwrittenModeStr", "advanceInterestAmountRound", "advancePeakAmountRound",
"contractRound", "grossProfitRound", "grossProfitMarginRound", "huazhiRound", "huizhiRound", "huasanRound", "ziguangRound", "certaintyStr", "industryScenario", "resolvePlanStr", "contractRound", "grossProfitRound", "grossProfitMarginRound", "huazhiRound", "huizhiRound", "huasanRound", "ziguangRound", "certaintyStr", "industryScenario",
"customer", "terminalCustomer", "valueRisk", "principal", "contractTime", "bidsTime", "isSecondStr", "signTypeStr", "calculationCollection", "stageName", "saleStageName", "stageRemark", "nextPlan"}; "customer", "terminalCustomer", "valueRisk", "principal", "contractTime", "bidsTime", "isSecondStr", "signTypeStr", "calculationCollection", "stageName", "saleStageName", "stageRemark"};
exportExcelUtils.exportProjectExcel(headers0, columns0, project, "yyyy-MM-dd", 0, "项目立项(概算)信息", outputStream); exportExcelUtils.exportProjectExcel(headers0, columns0, project, "yyyy-MM-dd", 0, "项目立项(概算)信息", outputStream);
exportExcelUtils.end(outputStream); exportExcelUtils.end(outputStream);
@ -1233,11 +1233,11 @@ public class ProjectController extends BaseController {
ServletOutputStream outputStream = response.getOutputStream(); ServletOutputStream outputStream = response.getOutputStream();
ExportExcelUtils exportExcelUtils = new ExportExcelUtils(); ExportExcelUtils exportExcelUtils = new ExportExcelUtils();
ProjectBudget projectBudget = projectService.findBudgetByProjectId(project.getId()); ProjectBudget projectBudget = projectService.findBudgetByProjectId(project.getId());
String[] headers1 = {"部门名称", "项目编号", "项目名称", "合同名称", "项目类型", "项目计划开始时间", "项目计划结束时间", "垫资模式", "合作对象", "垫资利息", "垫资峰值", "合同金额", String[] headers1 = {"部门名称", "项目编号", "项目名称", "合同名称", "项目类型", "垫资模式", "垫资利息", "垫资峰值", "合同金额",
"项目毛利A", "项目毛利A利率", "项目毛利", "项目毛利率", "华智产品金额", "汇智产品金额", "华三产品金额", "其他产品金额", "项目把握度", "行业场景应用", "项目解决方案", "客户名称", "最终用户名称", "项目毛利A", "项目毛利A利率", "项目毛利", "项目毛利率", "华智产品金额", "汇智产品金额", "华三产品金额", "其他产品金额", "项目把握度", "行业场景应用", "客户名称", "最终用户名称",
"价值及风险", "项目负责人", "预计合同签订时间", "项目计划招标时间", "是否二次合作", "直签", "主合同收款条款", "主合同具体解决方案", "计收计划"}; "价值及风险", "项目负责人", "预计合同签订时间", "项目计划招标时间", "是否二次合作", "是否汇智中标", "主合同收款条款", "主合同具体解决方案", "计收计划"};
String[] columns1 = {"deptNameBudget", "projectNoBudget", "nameBudget", "contractBudget", "typeDescBudget", "startDateBudget", "endDateBudget", "underwrittenModeStrBudget", "collaboratorBudget", "advanceInterestAmountRoundBudget", "advancePeakAmountRoundBudget", "contractRoundBudget", String[] columns1 = {"deptNameBudget", "projectNoBudget", "nameBudget", "contractBudget", "typeDescBudget", "underwrittenModeStrBudget", "advanceInterestAmountRoundBudget", "advancePeakAmountRoundBudget", "contractRoundBudget",
"grossProfitARoundBudget", "grossProfitAMarginRoundBudget", "grossProfitRoundBudget", "grossProfitMarginRoundBudget", "huazhiRoundBudget", "huizhiRoundBudget", "huasanRoundBudget", "ziguangRoundBudget", "certaintyStrBudget", "industryScenarioBudget", "resolvePlanStrBudget", "customerBudget", "terminalCustomerBudget", "grossProfitARoundBudget", "grossProfitAMarginRoundBudget", "grossProfitRoundBudget", "grossProfitMarginRoundBudget", "huazhiRoundBudget", "huizhiRoundBudget", "huasanRoundBudget", "ziguangRoundBudget", "certaintyStrBudget", "industryScenarioBudget", "customerBudget", "terminalCustomerBudget",
"valueRiskBudget", "principalBudget", "contractTimeBudget", "bidsTimeBudget", "isSecondStrBudget", "signTypeStrBudget", "mainContractCollectionTermsBudget", "mainContractResolvePlanBudget", "calculationCollectionBudget"}; "valueRiskBudget", "principalBudget", "contractTimeBudget", "bidsTimeBudget", "isSecondStrBudget", "signTypeStrBudget", "mainContractCollectionTermsBudget", "mainContractResolvePlanBudget", "calculationCollectionBudget"};
exportExcelUtils.exportProjectBudgetExcel(headers1, columns1, projectBudget, "yyyy-MM-dd", 0, "项目基本信息", outputStream); exportExcelUtils.exportProjectBudgetExcel(headers1, columns1, projectBudget, "yyyy-MM-dd", 0, "项目基本信息", outputStream);

View File

@ -28,6 +28,7 @@ public class ProjectBudgetCostDetailBase {
private int category; private int category;
private String name; private String name;
private String attr;
private String unit; private String unit;
private BigDecimal amount; private BigDecimal amount;
@ -59,6 +60,14 @@ public class ProjectBudgetCostDetailBase {
@Column(name = "remark") @Column(name = "remark")
private String remark; private String remark;
public String getAttr() {
return attr;
}
public void setAttr(String attr) {
this.attr = attr;
}
public Integer getId() { public Integer getId() {
return id; return id;
} }

View File

@ -28,6 +28,7 @@ public class ProjectBudgetCostDetailTemp extends ProjectBudgetCostDetailBase{
detail.setPayWay(getPayWay()); detail.setPayWay(getPayWay());
detail.setRemark(getRemark()); detail.setRemark(getRemark());
detail.setTotalTaxInclude(getTotalTaxInclude()); detail.setTotalTaxInclude(getTotalTaxInclude());
detail.setAttr(getAttr());
return detail; return detail;
} }
} }

View File

@ -39,6 +39,7 @@ public class ProjectBudgetIncomeDetailBase {
private String unit; private String unit;
private BigDecimal amount; private BigDecimal amount;
private BigDecimal price; private BigDecimal price;
private String attr;
@Column(name = "tax_rate") @Column(name = "tax_rate")
private BigDecimal taxRate; private BigDecimal taxRate;
@ -47,6 +48,14 @@ public class ProjectBudgetIncomeDetailBase {
@Column(name = "expiration_date") @Column(name = "expiration_date")
public String expirationDate; public String expirationDate;
public String getAttr() {
return attr;
}
public void setAttr(String attr) {
this.attr = attr;
}
public Integer getId() { public Integer getId() {
return id; return id;
} }

View File

@ -21,6 +21,7 @@ public class ProjectBudgetIncomeDetailTemp extends ProjectBudgetIncomeDetailBase
projectBudgetIncomeDetail.setPrice(getPrice()); projectBudgetIncomeDetail.setPrice(getPrice());
projectBudgetIncomeDetail.setTaxRate(getTaxRate()); projectBudgetIncomeDetail.setTaxRate(getTaxRate());
projectBudgetIncomeDetail.setTotalTaxInclude(getTotalTaxInclude()); projectBudgetIncomeDetail.setTotalTaxInclude(getTotalTaxInclude());
projectBudgetIncomeDetail.setAttr(getAttr());
return projectBudgetIncomeDetail; return projectBudgetIncomeDetail;
} }
} }

View File

@ -749,6 +749,10 @@ public class ProjectBudgetService {
String month = budgetPlan.getMonth(); String month = budgetPlan.getMonth();
Map<String, BigDecimal> projectPayments = monthlyProjectPaymentSum.getOrDefault(month, Collections.emptyMap()); Map<String, BigDecimal> projectPayments = monthlyProjectPaymentSum.getOrDefault(month, Collections.emptyMap());
BigDecimal deviceCostTemp = projectPayments.getOrDefault("1", BigDecimal.ZERO);
budgetPlan.setDeviceCost(deviceCostTemp);
BigDecimal projectCostTemp = projectPayments.getOrDefault("2", BigDecimal.ZERO); BigDecimal projectCostTemp = projectPayments.getOrDefault("2", BigDecimal.ZERO);
budgetPlan.setProjectCost(projectCostTemp); budgetPlan.setProjectCost(projectCostTemp);

View File

@ -205,10 +205,10 @@ public class ExportExcelUtils {
createTitleRow(profitRow, "利润率计算"); createTitleRow(profitRow, "利润率计算");
index = createProfitRow(budgetBean, sheet, index); index = createProfitRow(budgetBean, sheet, index);
index = index + 3; index = index + 3;
// 现金流量表 // // 现金流量表
Row cashFLowRow = sheet.createRow(index++); // Row cashFLowRow = sheet.createRow(index++);
createTitleRow(cashFLowRow, "现金流量表"); // createTitleRow(cashFLowRow, "现金流量表");
createCashFlowRow(cashFlowBean, sheet, index); // createCashFlowRow(cashFlowBean, sheet, index);
} }
@ -360,7 +360,7 @@ public class ExportExcelUtils {
createServiceCostRow(budgetBean, sheet, index++); createServiceCostRow(budgetBean, sheet, index++);
createOtherCostRow(budgetBean, sheet, index++); createOtherCostRow(budgetBean, sheet, index++);
// createManageCostRow(budgetBean, sheet, index++); // createManageCostRow(budgetBean, sheet, index++);
createOtherRow(budgetBean, sheet, index++, otherName); // createOtherRow(budgetBean, sheet, index++, otherName);
createTotalCostRow(budgetBean, sheet, index++); createTotalCostRow(budgetBean, sheet, index++);
Row row = sheet.createRow(index++); Row row = sheet.createRow(index++);
Cell remarkCell = row.createCell(0); Cell remarkCell = row.createCell(0);
@ -372,27 +372,27 @@ public class ExportExcelUtils {
private void createSubTitleCostRow(XSSFSheet sheet, int index) { private void createSubTitleCostRow(XSSFSheet sheet, int index) {
Row row = sheet.createRow(index); Row row = sheet.createRow(index);
Cell firstCell = row.createCell(0); // Cell firstCell = row.createCell(0);
firstCell.setCellStyle(style); // firstCell.setCellStyle(style);
firstCell.setCellType(CellType.STRING); // firstCell.setCellType(CellType.STRING);
firstCell.setCellValue("类别"); // firstCell.setCellValue("类别");
Cell secondCell = row.createCell(1); // Cell secondCell = row.createCell(1);
secondCell.setCellStyle(style); // secondCell.setCellStyle(style);
secondCell.setCellType(CellType.STRING); // secondCell.setCellType(CellType.STRING);
secondCell.setCellValue("费用"); // secondCell.setCellValue("费用");
Cell thirdCell = row.createCell(2); Cell thirdCell = row.createCell(0);
thirdCell.setCellStyle(style); thirdCell.setCellStyle(style);
thirdCell.setCellType(CellType.STRING); thirdCell.setCellType(CellType.STRING);
thirdCell.setCellValue("费用项目"); thirdCell.setCellValue("费用项目");
Cell fourthCell = row.createCell(3); Cell fourthCell = row.createCell(1);
fourthCell.setCellStyle(style); fourthCell.setCellStyle(style);
fourthCell.setCellType(CellType.STRING); fourthCell.setCellType(CellType.STRING);
fourthCell.setCellValue("含税金额(元)"); fourthCell.setCellValue("含税金额(元)");
Cell fifthCell = row.createCell(4); Cell fifthCell = row.createCell(2);
fifthCell.setCellStyle(style); fifthCell.setCellStyle(style);
fifthCell.setCellType(CellType.STRING); fifthCell.setCellType(CellType.STRING);
fifthCell.setCellValue("不含税金额(元)"); fifthCell.setCellValue("不含税金额(元)");
Cell sixthCell = row.createCell(5); Cell sixthCell = row.createCell(3);
sixthCell.setCellStyle(style); sixthCell.setCellStyle(style);
sixthCell.setCellType(CellType.STRING); sixthCell.setCellType(CellType.STRING);
sixthCell.setCellValue("税金(元)"); sixthCell.setCellValue("税金(元)");
@ -400,27 +400,27 @@ public class ExportExcelUtils {
private void createDeviceCostRow(BudgetBean budgetBean, XSSFSheet sheet, int index) { private void createDeviceCostRow(BudgetBean budgetBean, XSSFSheet sheet, int index) {
Row row = sheet.createRow(index); Row row = sheet.createRow(index);
Cell firstCell = row.createCell(0); // Cell firstCell = row.createCell(0);
firstCell.setCellStyle(style2); // firstCell.setCellStyle(style2);
firstCell.setCellType(CellType.STRING); // firstCell.setCellType(CellType.STRING);
firstCell.setCellValue("成本"); // firstCell.setCellValue("成本");
Cell secondCell = row.createCell(1); // Cell secondCell = row.createCell(1);
secondCell.setCellStyle(style2); // secondCell.setCellStyle(style2);
secondCell.setCellType(CellType.STRING); // secondCell.setCellType(CellType.STRING);
secondCell.setCellValue("采购成本"); // secondCell.setCellValue("采购成本");
Cell thirdCell = row.createCell(2); Cell thirdCell = row.createCell(0);
thirdCell.setCellStyle(style2); thirdCell.setCellStyle(style2);
thirdCell.setCellType(CellType.STRING); thirdCell.setCellType(CellType.STRING);
thirdCell.setCellValue("设备"); thirdCell.setCellValue("设备");
Cell fourthCell = row.createCell(3); Cell fourthCell = row.createCell(1);
fourthCell.setCellStyle(style2); fourthCell.setCellStyle(style2);
fourthCell.setCellType(CellType.NUMERIC); fourthCell.setCellType(CellType.NUMERIC);
fourthCell.setCellValue(Utils.format(budgetBean.getCostPurchaseDeviceTaxInclude())); fourthCell.setCellValue(Utils.format(budgetBean.getCostPurchaseDeviceTaxInclude()));
Cell fifthCell = row.createCell(4); Cell fifthCell = row.createCell(2);
fifthCell.setCellStyle(style2); fifthCell.setCellStyle(style2);
fifthCell.setCellType(CellType.NUMERIC); fifthCell.setCellType(CellType.NUMERIC);
fifthCell.setCellValue(Utils.format(budgetBean.getCostPurchaseDeviceTaxExclude())); fifthCell.setCellValue(Utils.format(budgetBean.getCostPurchaseDeviceTaxExclude()));
Cell sixthCell = row.createCell(5); Cell sixthCell = row.createCell(3);
sixthCell.setCellStyle(style2); sixthCell.setCellStyle(style2);
sixthCell.setCellType(CellType.NUMERIC); sixthCell.setCellType(CellType.NUMERIC);
sixthCell.setCellValue(Utils.format(budgetBean.getCostPurchaseDeviceTax())); sixthCell.setCellValue(Utils.format(budgetBean.getCostPurchaseDeviceTax()));
@ -428,27 +428,27 @@ public class ExportExcelUtils {
private void createEngineerCostRow(BudgetBean budgetBean, XSSFSheet sheet, int index) { private void createEngineerCostRow(BudgetBean budgetBean, XSSFSheet sheet, int index) {
Row row = sheet.createRow(index); Row row = sheet.createRow(index);
Cell firstCell = row.createCell(0); // Cell firstCell = row.createCell(0);
firstCell.setCellStyle(style2); // firstCell.setCellStyle(style2);
firstCell.setCellType(CellType.STRING); // firstCell.setCellType(CellType.STRING);
firstCell.setCellValue("成本"); // firstCell.setCellValue("成本");
Cell secondCell = row.createCell(1); // Cell secondCell = row.createCell(1);
secondCell.setCellStyle(style2); // secondCell.setCellStyle(style2);
secondCell.setCellType(CellType.STRING); // secondCell.setCellType(CellType.STRING);
secondCell.setCellValue("采购成本"); // secondCell.setCellValue("采购成本");
Cell thirdCell = row.createCell(2); Cell thirdCell = row.createCell(0);
thirdCell.setCellStyle(style2); thirdCell.setCellStyle(style2);
thirdCell.setCellType(CellType.STRING); thirdCell.setCellType(CellType.STRING);
thirdCell.setCellValue("工程"); thirdCell.setCellValue("工程");
Cell fourthCell = row.createCell(3); Cell fourthCell = row.createCell(1);
fourthCell.setCellStyle(style2); fourthCell.setCellStyle(style2);
fourthCell.setCellType(CellType.NUMERIC); fourthCell.setCellType(CellType.NUMERIC);
fourthCell.setCellValue(Utils.format(budgetBean.getCostPurchaseBuildTaxInclude())); fourthCell.setCellValue(Utils.format(budgetBean.getCostPurchaseBuildTaxInclude()));
Cell fifthCell = row.createCell(4); Cell fifthCell = row.createCell(2);
fifthCell.setCellStyle(style2); fifthCell.setCellStyle(style2);
fifthCell.setCellType(CellType.NUMERIC); fifthCell.setCellType(CellType.NUMERIC);
fifthCell.setCellValue(Utils.format(budgetBean.getCostPurchaseBuildTaxExclude())); fifthCell.setCellValue(Utils.format(budgetBean.getCostPurchaseBuildTaxExclude()));
Cell sixthCell = row.createCell(5); Cell sixthCell = row.createCell(3);
sixthCell.setCellStyle(style2); sixthCell.setCellStyle(style2);
sixthCell.setCellType(CellType.NUMERIC); sixthCell.setCellType(CellType.NUMERIC);
sixthCell.setCellValue(Utils.format(budgetBean.getCostPurchaseBuildTax())); sixthCell.setCellValue(Utils.format(budgetBean.getCostPurchaseBuildTax()));
@ -456,27 +456,27 @@ public class ExportExcelUtils {
private void createServiceCostRow(BudgetBean budgetBean, XSSFSheet sheet, int index) { private void createServiceCostRow(BudgetBean budgetBean, XSSFSheet sheet, int index) {
Row row = sheet.createRow(index); Row row = sheet.createRow(index);
Cell firstCell = row.createCell(0); // Cell firstCell = row.createCell(0);
firstCell.setCellStyle(style2); // firstCell.setCellStyle(style2);
firstCell.setCellType(CellType.STRING); // firstCell.setCellType(CellType.STRING);
firstCell.setCellValue("成本"); // firstCell.setCellValue("成本");
Cell secondCell = row.createCell(1); // Cell secondCell = row.createCell(1);
secondCell.setCellStyle(style2); // secondCell.setCellStyle(style2);
secondCell.setCellType(CellType.STRING); // secondCell.setCellType(CellType.STRING);
secondCell.setCellValue("采购成本"); // secondCell.setCellValue("采购成本");
Cell thirdCell = row.createCell(2); Cell thirdCell = row.createCell(0);
thirdCell.setCellStyle(style2); thirdCell.setCellStyle(style2);
thirdCell.setCellType(CellType.STRING); thirdCell.setCellType(CellType.STRING);
thirdCell.setCellValue("服务"); thirdCell.setCellValue("服务");
Cell fourthCell = row.createCell(3); Cell fourthCell = row.createCell(1);
fourthCell.setCellStyle(style2); fourthCell.setCellStyle(style2);
fourthCell.setCellType(CellType.NUMERIC); fourthCell.setCellType(CellType.NUMERIC);
fourthCell.setCellValue(Utils.format(budgetBean.getCostPurchaseServiceTaxInclude())); fourthCell.setCellValue(Utils.format(budgetBean.getCostPurchaseServiceTaxInclude()));
Cell fifthCell = row.createCell(4); Cell fifthCell = row.createCell(2);
fifthCell.setCellStyle(style2); fifthCell.setCellStyle(style2);
fifthCell.setCellType(CellType.NUMERIC); fifthCell.setCellType(CellType.NUMERIC);
fifthCell.setCellValue(Utils.format(budgetBean.getCostPurchaseServiceTaxExclude())); fifthCell.setCellValue(Utils.format(budgetBean.getCostPurchaseServiceTaxExclude()));
Cell sixthCell = row.createCell(5); Cell sixthCell = row.createCell(3);
sixthCell.setCellStyle(style2); sixthCell.setCellStyle(style2);
sixthCell.setCellType(CellType.NUMERIC); sixthCell.setCellType(CellType.NUMERIC);
sixthCell.setCellValue(Utils.format(budgetBean.getCostPurchaseServiceTax())); sixthCell.setCellValue(Utils.format(budgetBean.getCostPurchaseServiceTax()));
@ -484,27 +484,27 @@ public class ExportExcelUtils {
private void createOtherCostRow(BudgetBean budgetBean, XSSFSheet sheet, int index) { private void createOtherCostRow(BudgetBean budgetBean, XSSFSheet sheet, int index) {
Row row = sheet.createRow(index); Row row = sheet.createRow(index);
Cell firstCell = row.createCell(0); // Cell firstCell = row.createCell(0);
firstCell.setCellStyle(style2); // firstCell.setCellStyle(style2);
firstCell.setCellType(CellType.STRING); // firstCell.setCellType(CellType.STRING);
firstCell.setCellValue("成本"); // firstCell.setCellValue("成本");
Cell secondCell = row.createCell(1); // Cell secondCell = row.createCell(1);
secondCell.setCellStyle(style2); // secondCell.setCellStyle(style2);
secondCell.setCellType(CellType.STRING); // secondCell.setCellType(CellType.STRING);
secondCell.setCellValue("采购成本"); // secondCell.setCellValue("采购成本");
Cell thirdCell = row.createCell(2); Cell thirdCell = row.createCell(0);
thirdCell.setCellStyle(style2); thirdCell.setCellStyle(style2);
thirdCell.setCellType(CellType.STRING); thirdCell.setCellType(CellType.STRING);
thirdCell.setCellValue("其他"); thirdCell.setCellValue("其他");
Cell fourthCell = row.createCell(3); Cell fourthCell = row.createCell(1);
fourthCell.setCellStyle(style2); fourthCell.setCellStyle(style2);
fourthCell.setCellType(CellType.NUMERIC); fourthCell.setCellType(CellType.NUMERIC);
fourthCell.setCellValue(Utils.format(budgetBean.getCostPurchaseOtherTaxInclude())); fourthCell.setCellValue(Utils.format(budgetBean.getCostPurchaseOtherTaxInclude()));
Cell fifthCell = row.createCell(4); Cell fifthCell = row.createCell(2);
fifthCell.setCellStyle(style2); fifthCell.setCellStyle(style2);
fifthCell.setCellType(CellType.NUMERIC); fifthCell.setCellType(CellType.NUMERIC);
fifthCell.setCellValue(Utils.format(budgetBean.getCostPurchaseOtherTaxExclude())); fifthCell.setCellValue(Utils.format(budgetBean.getCostPurchaseOtherTaxExclude()));
Cell sixthCell = row.createCell(5); Cell sixthCell = row.createCell(3);
sixthCell.setCellStyle(style2); sixthCell.setCellStyle(style2);
sixthCell.setCellType(CellType.NUMERIC); sixthCell.setCellType(CellType.NUMERIC);
sixthCell.setCellValue(Utils.format(budgetBean.getCostPurchaseOtherTax())); sixthCell.setCellValue(Utils.format(budgetBean.getCostPurchaseOtherTax()));
@ -528,27 +528,27 @@ public class ExportExcelUtils {
private void createOtherRow(BudgetBean budgetBean, XSSFSheet sheet, int index, String otherName) { private void createOtherRow(BudgetBean budgetBean, XSSFSheet sheet, int index, String otherName) {
Row row = sheet.createRow(index); Row row = sheet.createRow(index);
Cell firstCell = row.createCell(0); // Cell firstCell = row.createCell(0);
firstCell.setCellStyle(style2); // firstCell.setCellStyle(style2);
firstCell.setCellType(CellType.STRING); // firstCell.setCellType(CellType.STRING);
firstCell.setCellValue("成本"); // firstCell.setCellValue("成本");
Cell secondCell = row.createCell(1); // Cell secondCell = row.createCell(1);
secondCell.setCellStyle(style2); // secondCell.setCellStyle(style2);
secondCell.setCellType(CellType.STRING); // secondCell.setCellType(CellType.STRING);
secondCell.setCellValue("其他"); // secondCell.setCellValue("其他");
Cell thirdCell = row.createCell(2); Cell thirdCell = row.createCell(0);
thirdCell.setCellStyle(style2); thirdCell.setCellStyle(style2);
thirdCell.setCellType(CellType.STRING); thirdCell.setCellType(CellType.STRING);
thirdCell.setCellValue(otherName); thirdCell.setCellValue(otherName);
Cell fourthCell = row.createCell(3); Cell fourthCell = row.createCell(1);
fourthCell.setCellStyle(style2); fourthCell.setCellStyle(style2);
fourthCell.setCellType(CellType.NUMERIC); fourthCell.setCellType(CellType.NUMERIC);
fourthCell.setCellValue(Utils.format(budgetBean.getCostOtherOtherTaxInclude())); fourthCell.setCellValue(Utils.format(budgetBean.getCostOtherOtherTaxInclude()));
Cell fifthCell = row.createCell(4); Cell fifthCell = row.createCell(2);
fifthCell.setCellStyle(style2); fifthCell.setCellStyle(style2);
fifthCell.setCellType(CellType.NUMERIC); fifthCell.setCellType(CellType.NUMERIC);
fifthCell.setCellValue(Utils.format(budgetBean.getCostOtherOtherTaxExclude())); fifthCell.setCellValue(Utils.format(budgetBean.getCostOtherOtherTaxExclude()));
Cell sixthCell = row.createCell(5); Cell sixthCell = row.createCell(3);
sixthCell.setCellStyle(style2); sixthCell.setCellStyle(style2);
sixthCell.setCellType(CellType.NUMERIC); sixthCell.setCellType(CellType.NUMERIC);
sixthCell.setCellValue(Utils.format(budgetBean.getCostOtherOtherTax())); sixthCell.setCellValue(Utils.format(budgetBean.getCostOtherOtherTax()));
@ -560,23 +560,23 @@ public class ExportExcelUtils {
firstCell.setCellStyle(style2); firstCell.setCellStyle(style2);
firstCell.setCellType(CellType.STRING); firstCell.setCellType(CellType.STRING);
firstCell.setCellValue("合计"); firstCell.setCellValue("合计");
Cell secondCell = row.createCell(1); // Cell secondCell = row.createCell(1);
secondCell.setCellStyle(style2); // secondCell.setCellStyle(style2);
secondCell.setCellType(CellType.STRING); // secondCell.setCellType(CellType.STRING);
secondCell.setCellValue(""); // secondCell.setCellValue("");
Cell thirdCell = row.createCell(2); // Cell thirdCell = row.createCell(2);
thirdCell.setCellStyle(style2); // thirdCell.setCellStyle(style2);
thirdCell.setCellType(CellType.STRING); // thirdCell.setCellType(CellType.STRING);
thirdCell.setCellValue(""); // thirdCell.setCellValue("");
Cell fourthCell = row.createCell(3); Cell fourthCell = row.createCell(1);
fourthCell.setCellStyle(style2); fourthCell.setCellStyle(style2);
fourthCell.setCellType(CellType.NUMERIC); fourthCell.setCellType(CellType.NUMERIC);
fourthCell.setCellValue(Utils.format(budgetBean.getCostTotalTaxInclude())); fourthCell.setCellValue(Utils.format(budgetBean.getCostTotalTaxInclude()));
Cell fifthCell = row.createCell(4); Cell fifthCell = row.createCell(2);
fifthCell.setCellStyle(style2); fifthCell.setCellStyle(style2);
fifthCell.setCellType(CellType.NUMERIC); fifthCell.setCellType(CellType.NUMERIC);
fifthCell.setCellValue(Utils.format(budgetBean.getCostTotalTaxExclude())); fifthCell.setCellValue(Utils.format(budgetBean.getCostTotalTaxExclude()));
Cell sixthCell = row.createCell(5); Cell sixthCell = row.createCell(3);
sixthCell.setCellStyle(style2); sixthCell.setCellStyle(style2);
sixthCell.setCellType(CellType.NUMERIC); sixthCell.setCellType(CellType.NUMERIC);
sixthCell.setCellValue(Utils.format(budgetBean.getCostTotalTax())); sixthCell.setCellValue(Utils.format(budgetBean.getCostTotalTax()));