[user3] 4 anos atrás
pai
commit
9dc5148b16

+ 15 - 1
src/main/java/com/jeeplus/modules/sg/financial/settlement/entity/CostCheck.java

@@ -1,5 +1,6 @@
 package com.jeeplus.modules.sg.financial.settlement.entity;
 
+import com.jeeplus.common.utils.excel.annotation.ExcelField;
 import com.jeeplus.core.persistence.DataEntity;
 
 /**
@@ -69,7 +70,7 @@ public class CostCheck extends DataEntity<CostCheck> {
      * 查询用id集合
      * */
     private String[] projectIds;
-
+    @ExcelField(title="项目编号", align=2, sort=1)
     public String getProjectId() {
         return projectId;
     }
@@ -78,6 +79,7 @@ public class CostCheck extends DataEntity<CostCheck> {
         this.projectId = projectId;
     }
 
+    @ExcelField(title="项目名称", align=2, sort=2)
     public String getProjectName() {
         return projectName;
     }
@@ -86,6 +88,7 @@ public class CostCheck extends DataEntity<CostCheck> {
         this.projectName = projectName;
     }
 
+    @ExcelField(title="施工费应付金额", align=2, sort=3)
     public Double getConstructionAmountDue() {
         return constructionAmountDue;
     }
@@ -94,6 +97,7 @@ public class CostCheck extends DataEntity<CostCheck> {
         this.constructionAmountDue = constructionAmountDue;
     }
 
+    @ExcelField(title="施工费实付金额", align=2, sort=4)
     public Double getConstructionAmountPaid() {
         return constructionAmountPaid;
     }
@@ -102,6 +106,7 @@ public class CostCheck extends DataEntity<CostCheck> {
         this.constructionAmountPaid = constructionAmountPaid;
     }
 
+    @ExcelField(title="设计费应付金额", align=2, sort=7)
     public Double getDesignAmountDue() {
         return designAmountDue;
     }
@@ -110,6 +115,7 @@ public class CostCheck extends DataEntity<CostCheck> {
         this.designAmountDue = designAmountDue;
     }
 
+    @ExcelField(title="设计费实付金额", align=2, sort=8)
     public Double getDesignAmountPaid() {
         return designAmountPaid;
     }
@@ -118,6 +124,7 @@ public class CostCheck extends DataEntity<CostCheck> {
         this.designAmountPaid = designAmountPaid;
     }
 
+    @ExcelField(title="监理费应付金额", align=2, sort=11)
     public Double getSupervisorAmountDue() {
         return supervisorAmountDue;
     }
@@ -126,6 +133,7 @@ public class CostCheck extends DataEntity<CostCheck> {
         this.supervisorAmountDue = supervisorAmountDue;
     }
 
+    @ExcelField(title="监理费实付金额", align=2, sort=12)
     public Double getSupervisorAmountPaid() {
         return supervisorAmountPaid;
     }
@@ -134,6 +142,7 @@ public class CostCheck extends DataEntity<CostCheck> {
         this.supervisorAmountPaid = supervisorAmountPaid;
     }
 
+    @ExcelField(title="施工费允许少付", align=2, sort=6)
     public String getConstructionUnderPayment() {
         return constructionUnderPayment;
     }
@@ -142,6 +151,7 @@ public class CostCheck extends DataEntity<CostCheck> {
         this.constructionUnderPayment = constructionUnderPayment;
     }
 
+    @ExcelField(title="设计费允许少付", align=2, sort=10)
     public String getDesignUnderPayment() {
         return designUnderPayment;
     }
@@ -150,6 +160,7 @@ public class CostCheck extends DataEntity<CostCheck> {
         this.designUnderPayment = designUnderPayment;
     }
 
+    @ExcelField(title="监理费允许少付", align=2, sort=14)
     public String getSupervisorUnderPayment() {
         return supervisorUnderPayment;
     }
@@ -166,6 +177,7 @@ public class CostCheck extends DataEntity<CostCheck> {
         this.projectIds = projectIds;
     }
 
+    @ExcelField(title="施工费差额", align=2, sort=5)
     public Double getConstructionCostDifference() {
         return constructionCostDifference;
     }
@@ -174,6 +186,7 @@ public class CostCheck extends DataEntity<CostCheck> {
         this.constructionCostDifference = constructionCostDifference;
     }
 
+    @ExcelField(title="设计费差额", align=2, sort=9)
     public Double getDesignCostDifference() {
         return designCostDifference;
     }
@@ -182,6 +195,7 @@ public class CostCheck extends DataEntity<CostCheck> {
         this.designCostDifference = designCostDifference;
     }
 
+    @ExcelField(title="监理费差额", align=2, sort=13)
     public Double getSupervisorDifference() {
         return supervisorDifference;
     }

+ 1 - 0
src/main/java/com/jeeplus/modules/sg/financial/settlement/service/DonorMaterialService.java

@@ -303,6 +303,7 @@ public class DonorMaterialService extends CrudService<DonorMaterialMapper, Donor
                     donorMaterialMapper.updateErpOne(material, projectId);
                 }
             }
+            byId = donorMaterialMapper.findById(projectId);
             for (DonorMaterial p :
                     byId) {
                 if (a == 2) {

+ 249 - 0
src/main/java/com/jeeplus/modules/sg/financial/settlement/util/MyExportUtil.java

@@ -0,0 +1,249 @@
+package com.jeeplus.modules.sg.financial.settlement.util;
+
+import com.jeeplus.modules.sg.financial.settlement.entity.CostCheck;
+import com.jeeplus.modules.sg.financial.settlement.entity.ProjectBudget;
+import org.apache.poi.hssf.usermodel.HSSFCellStyle;
+import org.apache.poi.ss.usermodel.Cell;
+import org.apache.poi.ss.usermodel.Row;
+import org.apache.poi.ss.usermodel.Sheet;
+import org.apache.poi.xssf.usermodel.XSSFCellStyle;
+import org.apache.poi.xssf.usermodel.XSSFWorkbook;
+
+import javax.servlet.http.HttpServletResponse;
+import java.io.*;
+import java.net.URLEncoder;
+import java.util.List;
+
+public class MyExportUtil {
+
+    private  XSSFCellStyle style = null;
+
+    public static MyExportUtil getOne(){
+
+        return new MyExportUtil();
+    }
+
+    /**
+     * 传入excel模板名称 获取workbook对象
+     * @param fileName excel模板名称
+     * @return
+     */
+    public  XSSFWorkbook getWorkbook(String fileName){
+        InputStream inputStream = null;
+        XSSFWorkbook workbook = null;
+        try {
+            String path = this.getClass().getResource("/").getPath() + "/freemarker/"+fileName+".xlsx";
+            File file = new File(path);
+            inputStream = new FileInputStream(file);// 将excel文件转为输入流
+            workbook = new XSSFWorkbook(inputStream);// 创建个workbook,
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        return workbook;
+    }
+
+
+
+    /**
+     * 导出费用检查管理
+     * @param response
+     * @param workbook
+     * @param list
+     */
+    public void exportExcelOne(HttpServletResponse response, XSSFWorkbook workbook, List<CostCheck> list){
+        OutputStream outputStream = null;
+        try {
+            int rowNum = 2;
+            Sheet sheet = workbook.getSheetAt(0);
+            if(list!=null&&list.size()>0){
+                for(int i=0;i<list.size();i++){
+                    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 cell5 = crateCell(workbook,row,5); //施工费允许少付
+                    Cell cell6 = crateCell(workbook,row,6); //设计费应付金额
+                    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); //监理费允许少付
+                    CostCheck view = list.get(i);
+                    cell0.setCellValue(view.getProjectId());
+                    cell1.setCellValue(view.getProjectName());
+                    cell2.setCellValue(getDouble(view.getConstructionAmountDue()));
+                    cell3.setCellValue(getDouble(view.getConstructionAmountPaid()));
+                    cell4.setCellValue(getDouble(view.getConstructionCostDifference()));
+                    cell5.setCellValue(view.getConstructionUnderPayment());
+                    cell6.setCellValue(getDouble(view.getDesignAmountDue()));
+                    cell7.setCellValue(getDouble(view.getDesignAmountPaid()));
+                    cell8.setCellValue(getDouble(view.getDesignCostDifference()));
+                    cell9.setCellValue(view.getDesignUnderPayment());
+                    cell10.setCellValue(getDouble(view.getSupervisorAmountDue()));
+                    cell11.setCellValue(getDouble(view.getSupervisorAmountPaid()));
+                    cell12.setCellValue(getDouble(view.getSupervisorDifference()));
+                    cell13.setCellValue(view.getSupervisorUnderPayment());
+                }
+            }
+            String str = URLEncoder.encode("费用检查.xlsx", "UTF8");
+            response.setHeader("Content-Disposition", "attachment;filename="+str);
+            response.setContentType("application/vnd.ms-excel;charset=UTF-8");
+            outputStream = response.getOutputStream();
+            workbook.write(outputStream);
+            outputStream.flush();
+            outputStream.close();
+        } catch (IOException e) {
+            e.printStackTrace();
+        }
+    }
+
+    /**
+     * 导出财务项目概预算信息管理
+     * @param response
+     * @param workbook
+     * @param list
+     */
+    public void exportExcelTwo(HttpServletResponse response, XSSFWorkbook workbook, List<ProjectBudget> list){
+        OutputStream outputStream = null;
+        try {
+            int rowNum = 3;
+            Sheet sheet = workbook.getSheetAt(0);
+            if(list!=null&&list.size()>0){
+                for(int i=0;i<list.size();i++){
+                    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 cell5 = crateCell(workbook,row,5); //建筑属性
+                    Cell cell6 = crateCell(workbook,row,6); //发文总投资(必填)
+                    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 cell19 = crateCell(workbook,row,19); //合同费率
+                    Cell cell20 = crateCell(workbook,row,20); //典设费率
+                    Cell cell21 = crateCell(workbook,row,21); //合同费率
+                    ProjectBudget view = list.get(i);
+                    cell0.setCellValue(view.getProjectId());
+                    cell1.setCellValue(view.getProjectName());
+                    cell2.setCellValue(view.getDesignUnit());
+                    cell3.setCellValue(view.getConstructionUnit());
+                    cell4.setCellValue(view.getBuildingAddress());
+                    cell5.setCellValue(view.getBuildingProperty());
+                    cell6.setCellValue(view.getTotalInvestment());
+                    cell7.setCellValue(view.getStartTime());
+                    cell8.setCellValue(view.getStopTime());
+                    cell9.setCellValue(view.getApprovalNumber());
+                    cell10.setCellValue(getDouble(view.getConstructionCost()));
+                    cell11.setCellValue(getDouble(view.getInstallationCost()));
+                    cell12.setCellValue(getDouble(view.getEquipmentCost()));
+                    cell13.setCellValue(getDouble(view.getMaterialCost()));
+                    cell14.setCellValue(getDouble(view.getDesignCost()));
+                    cell15.setCellValue(getDouble(view.getSupervisorCost()));
+                    cell16.setCellValue(getDouble(view.getPreliminaryWorkCost()));
+                    cell17.setCellValue(getDouble(view.getCompensationCost()));
+                    cell18.setCellValue(getDouble(view.getAdministrationCost()));
+                    cell19.setCellValue(getDouble(view.getDesignContractDiscount()));
+                    cell20.setCellValue(getDouble(view.getDesignTypicalDiscount()));
+                    cell21.setCellValue(getDouble(view.getSupervisorContractDiscount()));
+                }
+            }
+            String str = URLEncoder.encode("导出财务项目概预算信息.xlsx", "UTF8");
+            response.setHeader("Content-Disposition", "attachment;filename="+str);
+            response.setContentType("application/vnd.ms-excel;charset=UTF-8");
+            outputStream = response.getOutputStream();
+            workbook.write(outputStream);
+            outputStream.flush();
+            outputStream.close();
+        } catch (IOException e) {
+            e.printStackTrace();
+        }
+    }
+
+    /**
+     * 导出财务检查表
+     * @param response
+     * @param workbook
+     * @param list
+     */
+    public void exportExcelThree(HttpServletResponse response, XSSFWorkbook workbook, List<ProjectBudget> list){
+        OutputStream outputStream = null;
+        try {
+            int rowNum = 2;
+            Sheet sheet = workbook.getSheetAt(0);
+            if(list!=null&&list.size()>0){
+                for(int i=0;i<list.size();i++){
+                    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 cell5 = crateCell(workbook,row,5); //建筑属性
+                    Cell cell6 = crateCell(workbook,row,6); //发文总投资(必填)
+                    Cell cell7 = crateCell(workbook,row,7); //开工时间
+                    ProjectBudget view = list.get(i);
+                    cell0.setCellValue(view.getProjectId());
+                    cell1.setCellValue(view.getProjectName());
+                    cell2.setCellValue(view.getProjectType());
+                    cell3.setCellValue(view.getTotalInvestment());
+                    cell4.setCellValue(view.getConstructionCostCheck());
+                    cell5.setCellValue(view.getDesignCostCheck());
+                    cell6.setCellValue(view.getDonorMaterialCheck());
+                    cell7.setCellValue(view.getSupervisorCostCheck());
+                }
+            }
+            String str = URLEncoder.encode("财务检查管理.xlsx", "UTF8");
+            response.setHeader("Content-Disposition", "attachment;filename="+str);
+            response.setContentType("application/vnd.ms-excel;charset=UTF-8");
+            outputStream = response.getOutputStream();
+            workbook.write(outputStream);
+            outputStream.flush();
+            outputStream.close();
+        } catch (IOException e) {
+            e.printStackTrace();
+        }
+    }
+
+
+    /**
+     * 创建Cell对象 同时设置style
+     * @param workbook
+     * @param row
+     * @param num
+     * @return
+     */
+    Cell crateCell(XSSFWorkbook workbook,Row row, int num){
+        Cell cell = row.createCell(num);
+        if(style == null){
+            style = workbook.createCellStyle();
+            style.setWrapText(true);
+            style.setVerticalAlignment(XSSFCellStyle.VERTICAL_CENTER);
+            style.setAlignment(XSSFCellStyle.ALIGN_CENTER);
+        }
+        cell.setCellStyle(style);
+        return cell;
+    }
+
+    Double getDouble(Double num) {
+        Double returnDouble = 0.0;
+        if (null!=num) {
+            returnDouble = num;
+        }
+        return returnDouble;
+    }
+}

+ 266 - 277
src/main/java/com/jeeplus/modules/sg/financial/settlement/web/CostCheckController.java

@@ -4,20 +4,26 @@
 package com.jeeplus.modules.sg.financial.settlement.web;
 
 import com.jeeplus.common.json.AjaxJson;
+import com.jeeplus.common.utils.DateUtils;
 import com.jeeplus.common.utils.StringUtils;
+import com.jeeplus.common.utils.excel.ExportExcel;
 import com.jeeplus.common.utils.excel.ImportExcel;
 import com.jeeplus.core.persistence.Page;
 import com.jeeplus.core.web.BaseController;
 import com.jeeplus.modules.sg.audit.information.utils.FreemarkerUtil;
 import com.jeeplus.modules.sg.audit.information.utils.ResponseUtil;
 import com.jeeplus.modules.sg.financial.settlement.entity.CostCheck;
+import com.jeeplus.modules.sg.financial.settlement.entity.DonorMaterial;
 import com.jeeplus.modules.sg.financial.settlement.entity.ProjectBudget;
 import com.jeeplus.modules.sg.financial.settlement.service.CostCheckService;
 import com.jeeplus.modules.sg.financial.settlement.service.ProjectBudgetService;
+
+import com.jeeplus.modules.sg.financial.settlement.util.MyExportUtil;
 import com.jeeplus.modules.sys.utils.DictUtils;
 import freemarker.template.Configuration;
 import freemarker.template.Template;
 import org.apache.poi.ss.usermodel.Row;
+import org.apache.poi.xssf.usermodel.XSSFWorkbook;
 import org.apache.shiro.authz.annotation.Logical;
 import org.apache.shiro.authz.annotation.RequiresPermissions;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -46,304 +52,287 @@ import java.util.*;
 @RequestMapping(value = "${adminPath}/cost/check")
 public class CostCheckController extends BaseController {
 
-	@Autowired
-	private CostCheckService costCheckService;
-	
-	@ModelAttribute
-	public CostCheck get(@RequestParam(required=false) String id) {
-		CostCheck entity = null;
-		if (StringUtils.isNotBlank(id)){
-			entity = costCheckService.get(id);
-		}
-		if (entity == null){
-			entity = new CostCheck();
-		}
-		return entity;
-	}
-	
-	/**
-	 * 列表页面
-	 */
-	@RequiresPermissions("cost:check:list")
-	@RequestMapping(value = {"list", ""})
-	public String list(CostCheck costCheck, Model model) {
-		model.addAttribute("costCheck", costCheck);
-		return "modules/sg/financial/settlement/costCheckList";
-	}
+    @Autowired
+    private CostCheckService costCheckService;
+
+    @ModelAttribute
+    public CostCheck get(@RequestParam(required = false) String id) {
+        CostCheck entity = null;
+        if (StringUtils.isNotBlank(id)) {
+            entity = costCheckService.get(id);
+        }
+        if (entity == null) {
+            entity = new CostCheck();
+        }
+        return entity;
+    }
+
+    /**
+     * 列表页面
+     */
+    @RequiresPermissions("cost:check:list")
+    @RequestMapping(value = {"list", ""})
+    public String list(CostCheck costCheck, Model model) {
+        model.addAttribute("costCheck", costCheck);
+        return "modules/sg/financial/settlement/costCheckList";
+    }
 
 
-	/**
-	 * 列表数据
-	 */
-	@ResponseBody
-	@RequiresPermissions("cost:check:list")
-	@RequestMapping(value = "data")
-	public Map<String, Object> data(CostCheck costCheck, HttpServletRequest request, HttpServletResponse response, Model model,HttpSession session) {
-		String st = "";
-		String projectId = costCheck.getProjectId();
-		if(StringUtils.isNotBlank(projectId)){
-			st = projectId;
-		}
+    /**
+     * 列表数据
+     */
+    @ResponseBody
+    @RequiresPermissions("cost:check:list")
+    @RequestMapping(value = "data")
+    public Map<String, Object> data(CostCheck costCheck, HttpServletRequest request, HttpServletResponse response, Model model, HttpSession session) {
+        String st = "";
+        String projectId = costCheck.getProjectId();
+        if (StringUtils.isNotBlank(projectId)) {
+            st = projectId;
+        }
 //		对查询的id进行处理,若只有一个id设置projectId模糊匹配,若有多个设置projectIds精准匹配
-		if(StringUtils.isNotBlank(st)){
-			String[] sts = st.split("\\s+");
-			if(sts.length == 1){
-				costCheck.setProjectId(sts[0]);
-            }else {
-				costCheck.setProjectIds(sts);
-				costCheck.setProjectId(null);
+        if (StringUtils.isNotBlank(st)) {
+            String[] sts = st.split("\\s+");
+            if (sts.length == 1) {
+                costCheck.setProjectId(sts[0]);
+            } else {
+                costCheck.setProjectIds(sts);
+                costCheck.setProjectId(null);
             }
-		}
-		Page<CostCheck> page = costCheckService.findPage(new Page<CostCheck>(request, response), costCheck);
-		return getBootstrapData(page);
-	}
+        }
+        Page<CostCheck> page = costCheckService.findPage(new Page<CostCheck>(request, response), costCheck);
+        return getBootstrapData(page);
+    }
 
 
-	/**
-	 * 查看,增加,编辑表单页面
-	 */
-	@RequiresPermissions(value={"cost:check:view","cost:check:add","cost:check:edit"},logical=Logical.OR)
-	@RequestMapping(value = "form")
-	public String form(CostCheck costCheck, Model model) {
-		model.addAttribute("costCheck", costCheck);
-		return "modules/sg/financial/settlement/dataMaintenanceForm";
-	}
+    /**
+     * 查看,增加,编辑表单页面
+     */
+    @RequiresPermissions(value = {"cost:check:view", "cost:check:add", "cost:check:edit"}, logical = Logical.OR)
+    @RequestMapping(value = "form")
+    public String form(CostCheck costCheck, Model model) {
+        model.addAttribute("costCheck", costCheck);
+        return "modules/sg/financial/settlement/dataMaintenanceForm";
+    }
 
-	/**
-	 * 保存
-	 */
-	@ResponseBody
-	@RequiresPermissions(value={"cost:check:add","cost:check:edit"},logical=Logical.OR)
-	@RequestMapping(value = "save")
-	public AjaxJson save(CostCheck costCheck, Model model) throws Exception{
-		AjaxJson j = new AjaxJson();
-		/**
-		 * 后台hibernate-validation插件校验
-		 */
-		String errMsg = beanValidator(costCheck);
-		if (StringUtils.isNotBlank(errMsg)){
-			j.setSuccess(false);
-			j.setMsg(errMsg);
-			return j;
-		}
-		//新增或编辑表单保存
-		costCheckService.save(costCheck);
-		j.setSuccess(true);
-		j.setMsg("保存成功");
-		return j;
-	}
-	
-	/**
-	 * 删除
-	 */
-	@ResponseBody
-	@RequiresPermissions("cost:check:del")
-	@RequestMapping(value = "delete")
-	public AjaxJson delete(CostCheck costCheck) {
-		AjaxJson j = new AjaxJson();
-		costCheckService.delete(costCheck);
-		j.setMsg("删除成功");
-		return j;
-	}
+    /**
+     * 保存
+     */
+    @ResponseBody
+    @RequiresPermissions(value = {"cost:check:add", "cost:check:edit"}, logical = Logical.OR)
+    @RequestMapping(value = "save")
+    public AjaxJson save(CostCheck costCheck, Model model) throws Exception {
+        AjaxJson j = new AjaxJson();
+        /**
+         * 后台hibernate-validation插件校验
+         */
+        String errMsg = beanValidator(costCheck);
+        if (StringUtils.isNotBlank(errMsg)) {
+            j.setSuccess(false);
+            j.setMsg(errMsg);
+            return j;
+        }
+        //新增或编辑表单保存
+        costCheckService.save(costCheck);
+        j.setSuccess(true);
+        j.setMsg("保存成功");
+        return j;
+    }
 
+    /**
+     * 删除
+     */
+    @ResponseBody
+    @RequiresPermissions("cost:check:del")
+    @RequestMapping(value = "delete")
+    public AjaxJson delete(CostCheck costCheck) {
+        AjaxJson j = new AjaxJson();
+        costCheckService.delete(costCheck);
+        j.setMsg("删除成功");
+        return j;
+    }
 
-/**
-	 * 导出excel文件
-	 */
 
-	@ResponseBody
-	@RequiresPermissions("cost:check:export")
+    /**
+     * 导出excel文件
+     */
+    @ResponseBody
+    @RequiresPermissions("cost:check:export")
     @RequestMapping(value = "export")
     public void exportFile(CostCheck costCheck, HttpServletRequest request, HttpServletResponse response) {
-		Template template = null;
-		response.setContentType("text/text;charset=utf-8");
-		response.setCharacterEncoding("UTF-8");
-		File path = new File(this.getClass().getResource("/").getPath() + "/freemarker");
-		Configuration cfg = new Configuration();
-		try {
-			cfg.setDefaultEncoding("UTF-8");
-			//配置cfg对象
-			cfg.setDirectoryForTemplateLoading(path);
-			//            根据模板名称获取Template对象
-			template = cfg.getTemplate("costCheck.ftl");
-		} catch (IOException e) {
-			e.printStackTrace();
-		}
-		Map<String, Object> data = new HashMap<>();
-		String st = "";
-		String projectId = costCheck.getProjectId();
-		if(StringUtils.isNotBlank(projectId)){
-			st = projectId;
-		}
+            String st = "";
+            String projectId = costCheck.getProjectId();
+            if (StringUtils.isNotBlank(projectId)) {
+                st = projectId;
+            }
 //		对查询的id进行处理,若只有一个id设置projectId模糊匹配,若有多个设置projectIds精准匹配
-		if(StringUtils.isNotBlank(st)){
-			String[] sts = st.split("\\s+");
-			if(sts.length == 1){
-				costCheck.setProjectId(sts[0]);
-			}else {
-				costCheck.setProjectIds(sts);
-				costCheck.setProjectId(null);
-			}
-		}
-		List<CostCheck> list = costCheckService.findList(costCheck);
-		for (CostCheck c :
-				list) {
-			String conPay = DictUtils.getDictLabel(c.getConstructionUnderPayment(), "finance_underpayment", "");
-			String desPay = DictUtils.getDictLabel(c.getDesignUnderPayment(), "finance_underpayment", "");
-			String supPay = DictUtils.getDictLabel(c.getSupervisorUnderPayment(), "finance_underpayment", "");
-			if ("请选择".equals(conPay)) {
-				c.setConstructionUnderPayment("");
-			}else {
-				c.setConstructionUnderPayment(conPay);
-			}
-			if ("请选择".equals(desPay)) {
-				c.setDesignUnderPayment("");
-			}else {
-				c.setDesignUnderPayment(desPay);
-			}
-			if ("请选择".equals(supPay)) {
-				c.setSupervisorUnderPayment("");
-			}else {
-				c.setSupervisorUnderPayment(supPay);
-			}
-		}
-		data.put("list", list);
-		File docFile = new File(path + "\\费用检查表.xls");
-		FreemarkerUtil.generateFile(data, template, docFile);
-		ResponseUtil.docResponse("费用检查表.xls", docFile, response);
+            if (StringUtils.isNotBlank(st)) {
+                String[] sts = st.split("\\s+");
+                if (sts.length == 1) {
+                    costCheck.setProjectId(sts[0]);
+                } else {
+                    costCheck.setProjectIds(sts);
+                    costCheck.setProjectId(null);
+                }
+            }
+            List<CostCheck> list = costCheckService.findList(costCheck);
+            for (CostCheck c :
+                    list) {
+                String conPay = DictUtils.getDictLabel(c.getConstructionUnderPayment(), "finance_underpayment", "");
+                String desPay = DictUtils.getDictLabel(c.getDesignUnderPayment(), "finance_underpayment", "");
+                String supPay = DictUtils.getDictLabel(c.getSupervisorUnderPayment(), "finance_underpayment", "");
+                if ("请选择".equals(conPay)) {
+                    c.setConstructionUnderPayment("");
+                } else {
+                    c.setConstructionUnderPayment(conPay);
+                }
+                if ("请选择".equals(desPay)) {
+                    c.setDesignUnderPayment("");
+                } else {
+                    c.setDesignUnderPayment(desPay);
+                }
+                if ("请选择".equals(supPay)) {
+                    c.setSupervisorUnderPayment("");
+                } else {
+                    c.setSupervisorUnderPayment(supPay);
+                }
+            }
+        MyExportUtil util = MyExportUtil.getOne();
+        XSSFWorkbook workbook = util.getWorkbook("costCheck");
+        util.exportExcelOne(response,workbook,list);
     }
 
-	/**
-	 * 导入Excel数据
-	 */
-	@ResponseBody
-	@RequiresPermissions("cost:check:import")
-	@RequestMapping(value = "import")
-	public AjaxJson importFile(@RequestParam("file")MultipartFile file, HttpServletResponse response, HttpServletRequest request) {
-		AjaxJson j = new AjaxJson();
-		try {
-			ImportExcel ei = new ImportExcel(file, 2, "送审单");
-			List<CostCheck> list = getData(ei);
-			//保存费用检查信息
-			String b = costCheckService.insertConstructionList(list);
-			j.setMsg("导入成功" + b);
-		} catch (Exception e) {
-			j.setSuccess(false);
-			j.setMsg("导入失败!失败信息:"+e.getMessage());
-		}
-		return j;
-	}
+    /**
+     * 导入Excel数据
+     */
+    @ResponseBody
+    @RequiresPermissions("cost:check:import")
+    @RequestMapping(value = "import")
+    public AjaxJson importFile(@RequestParam("file") MultipartFile file, HttpServletResponse response, HttpServletRequest request) {
+        AjaxJson j = new AjaxJson();
+        try {
+            ImportExcel ei = new ImportExcel(file, 2, "送审单");
+            List<CostCheck> list = getData(ei);
+            //保存费用检查信息
+            String b = costCheckService.insertConstructionList(list);
+            j.setMsg("导入成功" + b);
+        } catch (Exception e) {
+            j.setSuccess(false);
+            j.setMsg("导入失败!失败信息:" + e.getMessage());
+        }
+        return j;
+    }
 
-	/**
-	 *excel文件数据读取
-	 */
-	private List<CostCheck> getData(ImportExcel importExcel) throws ParseException {
-		int lastRow = importExcel.getLastDataRowNum();
-		List<CostCheck> list = new ArrayList<>();
-		CostCheck costCheck;
-		String construction_fee_rates = DictUtils.getDictLabel("1.09", "construction_fee_rates", "");
-		BigDecimal rates = new BigDecimal(construction_fee_rates);
-		for(int i=2; i<lastRow;i++){
-			costCheck = new CostCheck();
-			Row row = importExcel.getRow(i);
-			String projectId = (String) importExcel.getCellValue(row, 1);
-			if (StringUtils.isNotBlank(projectId)) {
-				costCheck.setProjectId(projectId);
-				double aDouble = getDouble(importExcel, row, 34);
-				BigDecimal bigDecimal = new BigDecimal(aDouble);
-				BigDecimal setScale = bigDecimal.divide(rates, 2, BigDecimal.ROUND_HALF_UP);
-				costCheck.setConstructionAmountDue(Double.valueOf(setScale.toString()));
-				list.add(costCheck);
-			}
-		}
-		return list;
-	}
+    /**
+     * excel文件数据读取
+     */
+    private List<CostCheck> getData(ImportExcel importExcel) throws ParseException {
+        int lastRow = importExcel.getLastDataRowNum();
+        List<CostCheck> list = new ArrayList<>();
+        CostCheck costCheck;
+        String construction_fee_rates = DictUtils.getDictLabel("1.09", "construction_fee_rates", "");
+        BigDecimal rates = new BigDecimal(construction_fee_rates);
+        for (int i = 2; i < lastRow; i++) {
+            costCheck = new CostCheck();
+            Row row = importExcel.getRow(i);
+            String projectId = (String) importExcel.getCellValue(row, 1);
+            if (StringUtils.isNotBlank(projectId)) {
+                costCheck.setProjectId(projectId);
+                double aDouble = getDouble(importExcel, row, 34);
+                BigDecimal bigDecimal = new BigDecimal(aDouble);
+                BigDecimal setScale = bigDecimal.divide(rates, 2, BigDecimal.ROUND_HALF_UP);
+                costCheck.setConstructionAmountDue(Double.valueOf(setScale.toString()));
+                list.add(costCheck);
+            }
+        }
+        return list;
+    }
 
-	/**
-	 *获取excel double类型的值
-	 */
-	private double getDouble(ImportExcel importExcel,Row row,int col){
-		double d = 0.00;
-        Object o = importExcel.getCellValue(row,col);
-        if(!o.equals("") && !o.equals("-")){
-        	d = Double.parseDouble(o.toString());
-		}
-      return d;
-	}
+    /**
+     * 获取excel double类型的值
+     */
+    private double getDouble(ImportExcel importExcel, Row row, int col) {
+        double d = 0.00;
+        Object o = importExcel.getCellValue(row, col);
+        if (!o.equals("") && !o.equals("-")) {
+            d = Double.parseDouble(o.toString());
+        }
+        return d;
+    }
 
-	/**
-	 *获取excel double类型的值(折扣比率值,不能小于1.0)
-	 */
-	private double getDisCount(ImportExcel importExcel,Row row,int col){
-		double d = 1.00;
-		Object o = importExcel.getCellValue(row,col);
-		if(!o.equals("")){
-			d = Double.parseDouble(o.toString());
-		}
-		return d;
-	}
+    /**
+     * 获取excel double类型的值(折扣比率值,不能小于1.0)
+     */
+    private double getDisCount(ImportExcel importExcel, Row row, int col) {
+        double d = 1.00;
+        Object o = importExcel.getCellValue(row, col);
+        if (!o.equals("")) {
+            d = Double.parseDouble(o.toString());
+        }
+        return d;
+    }
 
-	/**
-	 *获取excel date类型的值
-	 */
-	private Date getDate(ImportExcel importExcel,Row row,int col) throws ParseException {
-		Date d = null;
-		Object o = importExcel.getCellValue(row,col);
-		if(!o.equals("")){
-			SimpleDateFormat simpleDateFormat=new SimpleDateFormat("yyyy-MM-dd");
-			d = simpleDateFormat.parse(o.toString());
-		}
-		return d;
-	}
+    /**
+     * 获取excel date类型的值
+     */
+    private Date getDate(ImportExcel importExcel, Row row, int col) throws ParseException {
+        Date d = null;
+        Object o = importExcel.getCellValue(row, col);
+        if (!o.equals("")) {
+            SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
+            d = simpleDateFormat.parse(o.toString());
+        }
+        return d;
+    }
 
-	/**
-	 * 获取excel String类型的值
-	 * */
-	private String getString(ImportExcel importExcel,Row row,int col) throws ParseException {
-		String str = "";
-		Object o = importExcel.getCellValue(row, col);
-		if (null != o && !"".equals(o)) {
-			str = String.valueOf(o);
-		}
-		return str;
-	}
+    /**
+     * 获取excel String类型的值
+     */
+    private String getString(ImportExcel importExcel, Row row, int col) throws ParseException {
+        String str = "";
+        Object o = importExcel.getCellValue(row, col);
+        if (null != o && !"".equals(o)) {
+            str = String.valueOf(o);
+        }
+        return str;
+    }
 
-	/**
-	 * 修改施工费允许少付
-	 * */
-	@ResponseBody
-	@RequestMapping(value = "updateDes")
-	public AjaxJson updateDes(CostCheck costCheck, Model model) throws Exception{
-		AjaxJson j = new AjaxJson();
-		costCheckService.updateDes(costCheck);
-		j.setSuccess(true);
-		j.setMsg("保存成功");
-		return j;
-	}
+    /**
+     * 修改施工费允许少付
+     */
+    @ResponseBody
+    @RequestMapping(value = "updateDes")
+    public AjaxJson updateDes(CostCheck costCheck, Model model) throws Exception {
+        AjaxJson j = new AjaxJson();
+        costCheckService.updateDes(costCheck);
+        j.setSuccess(true);
+        j.setMsg("保存成功");
+        return j;
+    }
 
-	/**
-	 * 修改设计费允许少付
-	 * */
-	@ResponseBody
-	@RequestMapping(value = "updateCon")
-	public AjaxJson updateCon(CostCheck costCheck, Model model) throws Exception{
-		AjaxJson j = new AjaxJson();
-		costCheckService.updateCon(costCheck);
-		j.setSuccess(true);
-		j.setMsg("保存成功");
-		return j;
-	}
+    /**
+     * 修改设计费允许少付
+     */
+    @ResponseBody
+    @RequestMapping(value = "updateCon")
+    public AjaxJson updateCon(CostCheck costCheck, Model model) throws Exception {
+        AjaxJson j = new AjaxJson();
+        costCheckService.updateCon(costCheck);
+        j.setSuccess(true);
+        j.setMsg("保存成功");
+        return j;
+    }
 
-	/**
-	 * 修改监理费允许少付
-	 * */
-	@ResponseBody
-	@RequestMapping(value = "updateSup")
-	public AjaxJson updateSup(CostCheck costCheck, Model model) throws Exception{
-		AjaxJson j = new AjaxJson();
-		costCheckService.updateSup(costCheck);
-		j.setSuccess(true);
-		j.setMsg("保存成功");
-		return j;
-	}
+    /**
+     * 修改监理费允许少付
+     */
+    @ResponseBody
+    @RequestMapping(value = "updateSup")
+    public AjaxJson updateSup(CostCheck costCheck, Model model) throws Exception {
+        AjaxJson j = new AjaxJson();
+        costCheckService.updateSup(costCheck);
+        j.setSuccess(true);
+        j.setMsg("保存成功");
+        return j;
+    }
 }

+ 17 - 45
src/main/java/com/jeeplus/modules/sg/financial/settlement/web/ProjectBudgetController.java

@@ -25,6 +25,7 @@ import com.jeeplus.modules.sg.financial.settlement.entity.ProjectBudget;
 import com.jeeplus.modules.sg.financial.settlement.service.CostCheckService;
 import com.jeeplus.modules.sg.financial.settlement.service.DonorMaterialService;
 import com.jeeplus.modules.sg.financial.settlement.service.ProjectBudgetService;
+import com.jeeplus.modules.sg.financial.settlement.util.MyExportUtil;
 import com.jeeplus.modules.sg.settActivi.entity.SettActivi;
 import com.jeeplus.modules.sg.settActivi.entity.SettList;
 import com.jeeplus.modules.sys.entity.DictValue;
@@ -38,6 +39,7 @@ import net.oschina.j2cache.redis.RedisCacheProvider;
 import net.oschina.j2cache.redis.RedisClient;
 import net.oschina.j2cache.redis.RedisUtils;
 import org.apache.poi.ss.usermodel.Row;
+import org.apache.poi.xssf.usermodel.XSSFWorkbook;
 import org.apache.shiro.authz.annotation.Logical;
 import org.apache.shiro.authz.annotation.RequiresPermissions;
 import org.nustaq.serialization.FSTObjectOutput;
@@ -269,21 +271,7 @@ public class ProjectBudgetController extends BaseController {
     @ResponseBody
     @RequestMapping(value = "exportExcel")
     public void exportExcel(ProjectBudget projectBudget, HttpServletRequest request, HttpServletResponse response) {
-        Template template = null;
-        response.setContentType("text/text;charset=utf-8");
-        response.setCharacterEncoding("UTF-8");
-        File path = new File(this.getClass().getResource("/").getPath() + "/freemarker");
-        Configuration cfg = new Configuration();
-        try {
-            cfg.setDefaultEncoding("UTF-8");
-            //配置cfg对象
-            cfg.setDirectoryForTemplateLoading(path);
-            //            根据模板名称获取Template对象
-            template = cfg.getTemplate("projectBudget.ftl");
-        } catch (IOException e) {
-            e.printStackTrace();
-        }
-        Map<String, Object> data = new HashMap<>();
+
         String st = "";
         String projectId = projectBudget.getProjectId();
         if (StringUtils.isNotBlank(projectId)) {
@@ -300,10 +288,9 @@ public class ProjectBudgetController extends BaseController {
             }
         }
         List<ProjectBudget> list = projectBudgetService.findList(projectBudget);
-        data.put("list", list);
-        File docFile = new File(path + "\\概预算基本信息管理表.xls");
-        FreemarkerUtil.generateFile(data, template, docFile);
-        ResponseUtil.docResponse("概预算基本信息管理表.xls", docFile, response);
+        MyExportUtil util = MyExportUtil.getOne();
+        XSSFWorkbook workbook = util.getWorkbook("projectBudget");
+        util.exportExcelTwo(response,workbook,list);
     }
 
 
@@ -338,21 +325,7 @@ public class ProjectBudgetController extends BaseController {
     @ResponseBody
     @RequestMapping(value = "exportFinanceExcel")
     public void exportFinanceExcel(ProjectBudget projectBudget, HttpServletRequest request, HttpServletResponse response) {
-        Template template = null;
-        response.setContentType("text/text;charset=utf-8");
-        response.setCharacterEncoding("UTF-8");
-        File path = new File(this.getClass().getResource("/").getPath() + "/freemarker");
-        Configuration cfg = new Configuration();
-        try {
-            cfg.setDefaultEncoding("UTF-8");
-            //配置cfg对象
-            cfg.setDirectoryForTemplateLoading(path);
-            //            根据模板名称获取Template对象
-            template = cfg.getTemplate("finance.ftl");
-        } catch (IOException e) {
-            e.printStackTrace();
-        }
-        Map<String, Object> data = new HashMap<>();
+
         String st = "";
         String projectId = projectBudget.getProjectId();
         if (StringUtils.isNotBlank(projectId)) {
@@ -369,10 +342,9 @@ public class ProjectBudgetController extends BaseController {
             }
         }
         List<ProjectBudget> list = projectBudgetService.findFinancialInspection(projectBudget);
-        data.put("list", list);
-        File docFile = new File(path + "\\财务检查表.xls");
-        FreemarkerUtil.generateFile(data, template, docFile);
-        ResponseUtil.docResponse("财务检查表.xls", docFile, response);
+        MyExportUtil util = MyExportUtil.getOne();
+        XSSFWorkbook workbook = util.getWorkbook("finance");
+        util.exportExcelThree(response,workbook,list);
     }
 
     /**
@@ -596,12 +568,12 @@ public class ProjectBudgetController extends BaseController {
                             nullMsg.append("项目编号" + itemId + "无甲供材数据;");
                             //修改项目donor_material_check状态
                             projectBudgetService.updateCheck(itemId, "donor_material_check", "2");
-                            e.setItemName(e.getItemName() + "未通过财务检查");
+                            e.setItemName(e.getItemName() + "(未通过财务检查)");
                         } else if (i == 2) {
                             notMsg.append("项目编号" + itemId + "领料未完成;");
                             //修改项目donor_material_check状态
                             projectBudgetService.updateCheck(itemId, "donor_material_check", "2");
-                            e.setItemName(e.getItemName() + "未通过财务检查");
+                            e.setItemName(e.getItemName() + "(未通过财务检查)");
                         } else {
                             //修改项目donor_material_check状态
                             projectBudgetService.updateCheck(itemId, "donor_material_check", "1");
@@ -626,7 +598,7 @@ public class ProjectBudgetController extends BaseController {
                         for (ErpCredit e :
                                 erpCredits) {
                             if (e.getItemId().equals(a)) {
-                                e.setItemName(e.getItemName() + "未通过财务检查");
+                                e.setItemName(e.getItemName() + "(未通过财务检查)");
                             }
                         }
                         notMsg.append("项目编号" + a + "费用入账有误;");
@@ -697,15 +669,15 @@ public class ProjectBudgetController extends BaseController {
                         int i = donorMaterialService.verifyProjectMaterial(erpCreditChild2s, itemId);
                         //将有问题的信息记录下来
                         if (i == 0) {
-                            costNotMsg.append("成本项目编号" + itemId + "无甲供材数据;");
+                            costNotMsg.append("成本项目编号" + itemId + "(无甲供材数据;");
                             //修改项目donor_material_check状态
                             projectBudgetService.updateCheck(itemId, "donor_material_check", "2");
-                            e.setItemName(e.getItemName() + "未通过财务检查");
+                            e.setItemName(e.getItemName() + "(未通过财务检查)");
                         } else if (i == 2) {
                             costNotMsg.append("成本项目编号" + itemId + "领料未完成;");
                             //修改项目donor_material_check状态
                             projectBudgetService.updateCheck(itemId, "donor_material_check", "2");
-                            e.setItemName(e.getItemName() + "未通过财务检查");
+                            e.setItemName(e.getItemName() + "(未通过财务检查)");
                         } else {
                             //修改项目donor_material_check状态
                             projectBudgetService.updateCheck(itemId, "donor_material_check", "1");
@@ -730,7 +702,7 @@ public class ProjectBudgetController extends BaseController {
                         for (ErpCredit e :
                                 erpCredits) {
                             if (e.getItemId().equals(a)) {
-                                e.setItemName(e.getItemName() + "未通过财务检查");
+                                e.setItemName(e.getItemName() + "(未通过财务检查)");
                             }
                         }
                         costNotMsg.append("项目编号" + a + "费用入账有误;");

+ 0 - 163
src/main/resources/freemarker/costCheck.ftl

@@ -1,163 +0,0 @@
-<?xml version="1.0"?>
-<?mso-application progid="Excel.Sheet"?>
-<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
- xmlns:o="urn:schemas-microsoft-com:office:office"
- xmlns:x="urn:schemas-microsoft-com:office:excel"
- xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
- xmlns:html="http://www.w3.org/TR/REC-html40">
- <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
-  <Author>enford</Author>
-  <LastAuthor>enford</LastAuthor>
-  <Created>2020-11-25T09:41:54Z</Created>
-  <Version>14.00</Version>
- </DocumentProperties>
- <OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
-  <AllowPNG/>
- </OfficeDocumentSettings>
- <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
-  <WindowHeight>8070</WindowHeight>
-  <WindowWidth>18315</WindowWidth>
-  <WindowTopX>360</WindowTopX>
-  <WindowTopY>30</WindowTopY>
-  <ProtectStructure>False</ProtectStructure>
-  <ProtectWindows>False</ProtectWindows>
- </ExcelWorkbook>
- <Styles>
-  <Style ss:ID="Default" ss:Name="Normal">
-   <Alignment ss:Vertical="Center"/>
-   <Borders/>
-   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
-   <Interior/>
-   <NumberFormat/>
-   <Protection/>
-  </Style>
-  <Style ss:ID="m143158824">
-   <Alignment ss:Horizontal="Center" ss:Vertical="Center"/>
-   <Borders>
-    <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/>
-   </Borders>
-   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
-  </Style>
-  <Style ss:ID="m143158844">
-   <Alignment ss:Horizontal="Center" ss:Vertical="Center"/>
-   <Borders>
-    <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/>
-   </Borders>
-   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
-  </Style>
-  <Style ss:ID="s62">
-   <Alignment ss:Horizontal="Center" ss:Vertical="Center"/>
-   <Borders>
-    <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/>
-   </Borders>
-   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
-  </Style>
-  <Style ss:ID="s66">
-   <Alignment ss:Horizontal="Center" ss:Vertical="Center"/>
-   <Borders>
-    <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
-   </Borders>
-   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
-  </Style>
-  <Style ss:ID="s68">
-   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
-  </Style>
-  <Style ss:ID="s69">
-   <Alignment ss:Horizontal="Center" ss:Vertical="Center"/>
-   <Borders>
-    <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/>
-   </Borders>
-   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
-  </Style>
-  <Style ss:ID="s70">
-   <Alignment ss:Horizontal="Center" ss:Vertical="Center"/>
-   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
-  </Style>
-  <Style ss:ID="s71">
-   <Borders>
-    <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/>
-   </Borders>
-   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
-  </Style>
- </Styles>
- <Worksheet ss:Name="费用检查">
-  <Table ss:ExpandedColumnCount="14"  x:FullColumns="1"
-   x:FullRows="1" ss:StyleID="s68" ss:DefaultColumnWidth="54"
-   ss:DefaultRowHeight="13.5">
-   <Column ss:StyleID="s68" ss:AutoFitWidth="0" ss:Width="52.5"/>
-   <Column ss:StyleID="s68" ss:AutoFitWidth="0" ss:Width="77.25"/>
-   <Column ss:StyleID="s68" ss:AutoFitWidth="0" ss:Width="52.5"/>
-   <Row>
-    <Cell ss:MergeDown="1" ss:StyleID="s62"><Data ss:Type="String">项目名称</Data></Cell>
-    <Cell ss:MergeDown="1" ss:StyleID="s62"><Data ss:Type="String">项目定义编码</Data></Cell>
-    <Cell ss:MergeAcross="3" ss:StyleID="m143158824"><Data ss:Type="String">施工费</Data></Cell>
-    <Cell ss:MergeAcross="3" ss:StyleID="m143158844"><Data ss:Type="String">设计费</Data></Cell>
-    <Cell ss:MergeAcross="3" ss:StyleID="s66"><Data ss:Type="String">监理费</Data></Cell>
-   </Row>
-   <Row ss:StyleID="s70">
-    <Cell ss:Index="3" ss:StyleID="s69"><Data ss:Type="String">应付金额</Data></Cell>
-    <Cell ss:StyleID="s69"><Data ss:Type="String">实付金额</Data></Cell>
-    <Cell ss:StyleID="s69"><Data ss:Type="String">差异</Data></Cell>
-    <Cell ss:StyleID="s69"><Data ss:Type="String">备注</Data></Cell>
-    <Cell ss:StyleID="s69"><Data ss:Type="String">应付金额</Data></Cell>
-    <Cell ss:StyleID="s69"><Data ss:Type="String">实付金额</Data></Cell>
-    <Cell ss:StyleID="s69"><Data ss:Type="String">差异</Data></Cell>
-    <Cell ss:StyleID="s69"><Data ss:Type="String">备注</Data></Cell>
-    <Cell ss:StyleID="s69"><Data ss:Type="String">应付金额</Data></Cell>
-    <Cell ss:StyleID="s69"><Data ss:Type="String">实付金额</Data></Cell>
-    <Cell ss:StyleID="s69"><Data ss:Type="String">差异</Data></Cell>
-    <Cell ss:StyleID="s69"><Data ss:Type="String">备注</Data></Cell>
-   </Row>
-   <#list list as item>
-   <Row>
-    <Cell ss:StyleID="s69"><Data ss:Type="String">${item.projectName!""}</Data></Cell>
-    <Cell ss:StyleID="s69"><Data ss:Type="String">${item.projectId!""}</Data></Cell>
-    <Cell ss:StyleID="s71"><Data ss:Type="String">${item.constructionAmountDue!""}</Data></Cell>
-    <Cell ss:StyleID="s71"><Data ss:Type="String">${item.constructionAmountPaid!""}</Data></Cell>
-    <Cell ss:StyleID="s71"><Data ss:Type="String">${item.constructionCostDifference!""}</Data></Cell>
-    <Cell ss:StyleID="s71"><Data ss:Type="String">${item.constructionUnderPayment!""}</Data></Cell>
-    <Cell ss:StyleID="s71"><Data ss:Type="String">${item.designAmountDue!""}</Data></Cell>
-    <Cell ss:StyleID="s71"><Data ss:Type="String">${item.designAmountPaid!""}</Data></Cell>
-    <Cell ss:StyleID="s71"><Data ss:Type="String">${item.designCostDifference!""}</Data></Cell>
-    <Cell ss:StyleID="s71"><Data ss:Type="String">${item.designUnderPayment!""}</Data></Cell>
-    <Cell ss:StyleID="s71"><Data ss:Type="String">${item.supervisorAmountDue!""}</Data></Cell>
-    <Cell ss:StyleID="s71"><Data ss:Type="String">${item.supervisorAmountPaid!""}</Data></Cell>
-    <Cell ss:StyleID="s71"><Data ss:Type="String">${item.supervisorDifference!""}</Data></Cell>
-    <Cell ss:StyleID="s71"><Data ss:Type="String">${item.supervisorUnderPayment!""}</Data></Cell>
-   </Row>
-   </#list>
-  </Table>
-  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
-   <PageSetup>
-    <Header x:Margin="0.3"/>
-    <Footer x:Margin="0.3"/>
-    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
-   </PageSetup>
-   <Selected/>
-   <Panes>
-    <Pane>
-     <Number>3</Number>
-     <ActiveRow>11</ActiveRow>
-     <ActiveCol>6</ActiveCol>
-    </Pane>
-   </Panes>
-   <ProtectObjects>False</ProtectObjects>
-   <ProtectScenarios>False</ProtectScenarios>
-  </WorksheetOptions>
- </Worksheet>
-</Workbook>

BIN
src/main/resources/freemarker/costCheck.xlsx


+ 0 - 167
src/main/resources/freemarker/finance.ftl

@@ -1,167 +0,0 @@
-<?xml version="1.0"?>
-<?mso-application progid="Excel.Sheet"?>
-<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
- xmlns:o="urn:schemas-microsoft-com:office:office"
- xmlns:x="urn:schemas-microsoft-com:office:excel"
- xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
- xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
- xmlns:html="http://www.w3.org/TR/REC-html40">
- <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
-  <Author>enford</Author>
-  <LastAuthor>enford</LastAuthor>
-  <Created>2020-11-27T09:27:12Z</Created>
-  <LastSaved>2020-11-27T09:43:13Z</LastSaved>
-  <Version>14.00</Version>
- </DocumentProperties>
- <CustomDocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
-  <KSOProductBuildVer dt:dt="string">2052-11.1.0.10132</KSOProductBuildVer>
- </CustomDocumentProperties>
- <OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
-  <AllowPNG/>
- </OfficeDocumentSettings>
- <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
-  <WindowHeight>12540</WindowHeight>
-  <WindowWidth>28800</WindowWidth>
-  <WindowTopX>0</WindowTopX>
-  <WindowTopY>0</WindowTopY>
-  <ProtectStructure>False</ProtectStructure>
-  <ProtectWindows>False</ProtectWindows>
- </ExcelWorkbook>
- <Styles>
-  <Style ss:ID="Default" ss:Name="Normal">
-   <Alignment ss:Vertical="Center"/>
-   <Borders/>
-   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
-   <Interior/>
-   <NumberFormat/>
-   <Protection/>
-  </Style>
-  <Style ss:ID="m210722876">
-   <Alignment ss:Horizontal="Center" ss:Vertical="Center"/>
-   <Borders>
-    <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/>
-   </Borders>
-   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
-  </Style>
-  <Style ss:ID="m210722896">
-   <Alignment ss:Horizontal="Center" ss:Vertical="Center"/>
-   <Borders>
-    <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/>
-   </Borders>
-   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
-  </Style>
-  <Style ss:ID="m210722916">
-   <Alignment ss:Horizontal="Center" ss:Vertical="Center"/>
-   <Borders>
-    <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/>
-   </Borders>
-   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
-  </Style>
-  <Style ss:ID="s64">
-   <Alignment ss:Horizontal="Center" ss:Vertical="Center"/>
-   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
-  </Style>
-  <Style ss:ID="s65">
-   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
-  </Style>
-  <Style ss:ID="s66">
-   <Alignment ss:Horizontal="Center" ss:Vertical="Center"/>
-   <Borders>
-    <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/>
-   </Borders>
-   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
-  </Style>
-  <Style ss:ID="s69">
-   <Alignment ss:Horizontal="Center" ss:Vertical="Center" ss:WrapText="1"/>
-   <Borders>
-    <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/>
-   </Borders>
-   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
-  </Style>
-  <Style ss:ID="s70">
-   <Alignment ss:Vertical="Center"/>
-   <Borders>
-    <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/>
-   </Borders>
-   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
-  </Style>
- </Styles>
- <Worksheet ss:Name="配网项目竣工后财务检查">
-  <Table ss:ExpandedColumnCount="8"  x:FullColumns="1"
-   x:FullRows="1" ss:StyleID="s65" ss:DefaultColumnWidth="54"
-   ss:DefaultRowHeight="13.5">
-   <Column ss:StyleID="s64" ss:AutoFitWidth="0" ss:Width="57"/>
-   <Column ss:StyleID="s64" ss:AutoFitWidth="0" ss:Width="83.25"/>
-   <Column ss:StyleID="s64" ss:AutoFitWidth="0" ss:Width="141.75"/>
-   <Column ss:StyleID="s64" ss:AutoFitWidth="0" ss:Width="71.25"/>
-   <Column ss:StyleID="s64" ss:AutoFitWidth="0" ss:Width="69.75"/>
-   <Column ss:StyleID="s64" ss:AutoFitWidth="0" ss:Width="67.5" ss:Span="2"/>
-   <Row>
-    <Cell ss:MergeDown="1" ss:StyleID="s66"><Data ss:Type="String">项目名称</Data></Cell>
-    <Cell ss:MergeDown="1" ss:StyleID="s66"><Data ss:Type="String">项目定义编码</Data></Cell>
-    <Cell ss:MergeDown="1" ss:StyleID="m210722876"><Data ss:Type="String">项目类型</Data></Cell>
-    <Cell ss:MergeDown="1" ss:StyleID="m210722896"><Data ss:Type="String">概预算信息</Data></Cell>
-    <Cell ss:MergeDown="1" ss:StyleID="m210722916"><Data ss:Type="String">甲供领退料</Data></Cell>
-    <Cell ss:MergeAcross="2" ss:StyleID="s66"><Data ss:Type="String">费用检查</Data></Cell>
-   </Row>
-   <Row>
-    <Cell ss:Index="6" ss:StyleID="s66"><Data ss:Type="String">施工费</Data></Cell>
-    <Cell ss:StyleID="s66"><Data ss:Type="String">设计费</Data></Cell>
-    <Cell ss:StyleID="s66"><Data ss:Type="String">监理费</Data></Cell>
-   </Row>
-   <#list list as item>
-   <Row ss:Height="40.5">
-    <Cell ss:StyleID="s66"><Data ss:Type="String">${item.projectName!""}</Data></Cell>
-    <Cell ss:StyleID="s66"><Data ss:Type="String">${item.projectId!""}</Data></Cell>
-    <Cell ss:StyleID="s69"><Data ss:Type="String">${item.projectType!""}</Data></Cell>
-    <Cell ss:StyleID="s69"><Data ss:Type="String">${item.totalInvestment!""}</Data></Cell>
-    <Cell ss:StyleID="s70"><Data ss:Type="String">${item.donorMaterialCheck!""}</Data></Cell>
-    <Cell ss:StyleID="s70"><Data ss:Type="String">${item.constructionCostCheck!""}</Data></Cell>
-    <Cell ss:StyleID="s70"><Data ss:Type="String">${item.designCostCheck!""}</Data></Cell>
-    <Cell ss:StyleID="s70"><Data ss:Type="String">${item.supervisorCostCheck!""}</Data></Cell>
-   </Row>
-   </#list>
-  </Table>
-  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
-   <PageSetup>
-    <Header x:Margin="0.3"/>
-    <Footer x:Margin="0.3"/>
-    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
-   </PageSetup>
-   <Print>
-    <ValidPrinterInfo/>
-    <PaperSizeIndex>9</PaperSizeIndex>
-    <HorizontalResolution>600</HorizontalResolution>
-    <VerticalResolution>600</VerticalResolution>
-   </Print>
-   <Selected/>
-   <Panes>
-    <Pane>
-     <Number>3</Number>
-     <ActiveRow>7</ActiveRow>
-     <ActiveCol>3</ActiveCol>
-    </Pane>
-   </Panes>
-   <ProtectObjects>False</ProtectObjects>
-   <ProtectScenarios>False</ProtectScenarios>
-  </WorksheetOptions>
- </Worksheet>
-</Workbook>

BIN
src/main/resources/freemarker/finance.xlsx


+ 0 - 455
src/main/resources/freemarker/projectBudget.ftl

@@ -1,455 +0,0 @@
-<?xml version="1.0"?>
-<?mso-application progid="Excel.Sheet"?>
-<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
- xmlns:o="urn:schemas-microsoft-com:office:office"
- xmlns:x="urn:schemas-microsoft-com:office:excel"
- xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
- xmlns:html="http://www.w3.org/TR/REC-html40">
- <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
-  <Author>enford</Author>
-  <LastAuthor>enford</LastAuthor>
-  <Created>2020-11-25T05:49:31Z</Created>
-  <LastSaved>2020-11-25T05:50:06Z</LastSaved>
-  <Version>14.00</Version>
- </DocumentProperties>
- <OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
-  <AllowPNG/>
- </OfficeDocumentSettings>
- <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
-  <SupBook>
-   <Path>镇江财务模块\自动决算\配网项目竣工后财务检查系统各模块情况.xlsx</Path>
-   <SheetName>配网项目竣工后财务检查</SheetName>
-   <SheetName>概预算基本信息管理</SheetName>
-   <SheetName>费用检查</SheetName>
-   <SheetName>甲供物资领退料</SheetName>
-   <Xct>
-    <Count>0</Count>
-    <SheetIndex>0</SheetIndex>
-   </Xct>
-   <Xct>
-    <Count>0</Count>
-    <SheetIndex>1</SheetIndex>
-   </Xct>
-   <Xct>
-    <Count>0</Count>
-    <SheetIndex>2</SheetIndex>
-   </Xct>
-   <Xct>
-    <Count>0</Count>
-    <SheetIndex>3</SheetIndex>
-   </Xct>
-  </SupBook>
-  <WindowHeight>12345</WindowHeight>
-  <WindowWidth>28035</WindowWidth>
-  <WindowTopX>360</WindowTopX>
-  <WindowTopY>90</WindowTopY>
-  <ProtectStructure>False</ProtectStructure>
-  <ProtectWindows>False</ProtectWindows>
- </ExcelWorkbook>
- <Styles>
-  <Style ss:ID="Default" ss:Name="Normal">
-   <Alignment ss:Vertical="Center"/>
-   <Borders/>
-   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
-   <Interior/>
-   <NumberFormat/>
-   <Protection/>
-  </Style>
-  <Style ss:ID="s16" ss:Name="千位分隔">
-   <NumberFormat ss:Format="_ * #,##0.00_ ;_ * \-#,##0.00_ ;_ * &quot;-&quot;??_ ;_ @_ "/>
-  </Style>
-  <Style ss:ID="s62">
-   <Alignment ss:Horizontal="Center" ss:Vertical="Center"/>
-   <Borders>
-    <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/>
-   </Borders>
-   <Font ss:FontName="Arial" x:Family="Swiss" ss:Color="#000000" ss:Bold="1"/>
-   <Interior ss:Color="#FFFF00" ss:Pattern="Solid"/>
-  </Style>
-  <Style ss:ID="s63">
-   <Alignment ss:Horizontal="Center" ss:Vertical="Center"/>
-   <Borders>
-    <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/>
-   </Borders>
-   <Font ss:FontName="Arial" x:Family="Swiss" ss:Color="#000000" ss:Bold="1"/>
-   <Interior ss:Color="#FFFFFF" ss:Pattern="Solid"/>
-  </Style>
-  <Style ss:ID="s64" ss:Parent="s16">
-   <Alignment ss:Horizontal="Center" ss:Vertical="Center"/>
-   <Borders>
-    <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/>
-   </Borders>
-   <Font ss:FontName="Arial" x:Family="Swiss" ss:Color="#000000" ss:Bold="1"/>
-   <Interior ss:Color="#FFFFFF" ss:Pattern="Solid"/>
-  </Style>
-  <Style ss:ID="s66">
-   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
-  </Style>
-  <Style ss:ID="s67" ss:Parent="s16">
-   <Alignment ss:Horizontal="Center" ss:Vertical="Center"/>
-   <Borders>
-    <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/>
-   </Borders>
-   <Font ss:FontName="宋体" x:CharSet="134" ss:Color="#000000" ss:Bold="1"/>
-   <Interior ss:Color="#FFFFFF" ss:Pattern="Solid"/>
-  </Style>
-  <Style ss:ID="s68" ss:Parent="s16">
-   <Alignment ss:Horizontal="Center" ss:Vertical="Center"/>
-   <Borders>
-    <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/>
-   </Borders>
-   <Font ss:FontName="Arial" x:Family="Swiss" ss:Color="#000000" ss:Bold="1"/>
-   <Interior ss:Color="#FFFFFF" ss:Pattern="Solid"/>
-  </Style>
-  <Style ss:ID="s69" ss:Parent="s16">
-   <Alignment ss:Horizontal="Center" ss:Vertical="Center"/>
-   <Borders>
-    <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/>
-   </Borders>
-   <Font ss:FontName="宋体" x:CharSet="134" ss:Color="#000000" ss:Bold="1"/>
-   <Interior ss:Color="#FFFFFF" ss:Pattern="Solid"/>
-  </Style>
-  <Style ss:ID="s70">
-   <Alignment ss:Vertical="Center" ss:WrapText="1"/>
-   <Borders>
-    <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/>
-   </Borders>
-   <Font ss:FontName="方正仿宋_GBK" x:CharSet="134" ss:Size="11"/>
-   <Interior/>
-  </Style>
-  <Style ss:ID="s71">
-   <Alignment ss:Horizontal="Left" ss:Vertical="Center" ss:ShrinkToFit="1"/>
-   <Borders>
-    <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/>
-   </Borders>
-   <Font ss:FontName="方正仿宋_GBK" x:CharSet="134" ss:Size="11"/>
-   <Interior/>
-   <NumberFormat ss:Format="@"/>
-  </Style>
-  <Style ss:ID="s72">
-   <Borders>
-    <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/>
-   </Borders>
-   <Font ss:FontName="方正仿宋_GBK" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
-  </Style>
-  <Style ss:ID="s73">
-   <Alignment ss:Vertical="Center"/>
-   <Borders>
-    <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/>
-   </Borders>
-   <Font ss:FontName="方正仿宋_GBK" x:CharSet="134" ss:Size="11"/>
-   <Interior/>
-  </Style>
-  <Style ss:ID="s74" ss:Parent="s16">
-   <Borders>
-    <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/>
-   </Borders>
-   <Font ss:FontName="方正仿宋_GBK" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
-  </Style>
-  <Style ss:ID="s75">
-   <Alignment ss:Horizontal="Center" ss:Vertical="Center"/>
-   <Borders>
-    <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
-    <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/>
-   </Borders>
-   <Font ss:FontName="方正仿宋_GBK" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
-   <Interior/>
-   <NumberFormat ss:Format="Short Date"/>
-  </Style>
-  <Style ss:ID="s76">
-   <Font ss:FontName="方正仿宋_GBK" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
-  </Style>
-  <Style ss:ID="s88" ss:Parent="s16">
-   <Alignment ss:Vertical="Bottom"/>
-   <Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11"/>
-  </Style>
-  <Style ss:ID="s89">
-   <Alignment ss:Vertical="Bottom"/>
-   <Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11"/>
-  </Style>
-  <Style ss:ID="s90" ss:Parent="s16">
-   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
-  </Style>
-  <Style ss:ID="s91">
-   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
-   <NumberFormat ss:Format="0.00_ "/>
-  </Style>
- </Styles>
- <Worksheet ss:Name="概预算基本信息管理">
-  <Names>
-   <NamedRange ss:Name="_FilterDatabase" ss:RefersTo="=概预算基本信息管理!R3:R4"
-    ss:Hidden="1"/>
-  </Names>
-  <Table ss:ExpandedColumnCount="29" x:FullColumns="1"
-   x:FullRows="1" ss:StyleID="s66" ss:DefaultColumnWidth="54"
-   ss:DefaultRowHeight="19.875">
-   <Column ss:StyleID="s66" ss:AutoFitWidth="0" ss:Width="349.5"/>
-   <Column ss:StyleID="s66" ss:AutoFitWidth="0" ss:Width="147"/>
-   <Column ss:StyleID="s66" ss:AutoFitWidth="0" ss:Width="171"/>
-   <Column ss:StyleID="s66" ss:AutoFitWidth="0" ss:Width="257.25"/>
-   <Column ss:StyleID="s66" ss:AutoFitWidth="0" ss:Width="57"/>
-   <Column ss:StyleID="s66" ss:AutoFitWidth="0" ss:Width="54.75"/>
-   <Column ss:StyleID="s90" ss:AutoFitWidth="0" ss:Width="86.25"/>
-   <Column ss:StyleID="s66" ss:AutoFitWidth="0" ss:Width="69" ss:Span="1"/>
-   <Column ss:Index="10" ss:StyleID="s66" ss:AutoFitWidth="0" ss:Width="57.75"/>
-   <Column ss:StyleID="s90" ss:AutoFitWidth="0" ss:Width="77.25"/>
-   <Column ss:StyleID="s90" ss:AutoFitWidth="0" ss:Width="82.5"/>
-   <Column ss:StyleID="s90" ss:AutoFitWidth="0" ss:Width="78.75"/>
-   <Column ss:StyleID="s90" ss:AutoFitWidth="0" ss:Width="69.75"/>
-   <Column ss:StyleID="s90" ss:AutoFitWidth="0" ss:Width="71.25" ss:Span="1"/>
-   <Column ss:Index="17" ss:StyleID="s90" ss:AutoFitWidth="0" ss:Width="117"/>
-   <Column ss:StyleID="s90" ss:AutoFitWidth="0" ss:Width="93.75"/>
-   <Column ss:StyleID="s90" ss:AutoFitWidth="0" ss:Width="125.25"/>
-   <Column ss:StyleID="s90" ss:AutoFitWidth="0" ss:Width="71.25"/>
-   <Column ss:StyleID="s66" ss:AutoFitWidth="0" ss:Width="69"/>
-   <Row ss:AutoFitHeight="0" ss:Height="18">
-    <Cell ss:MergeDown="2" ss:StyleID="s62"><Data ss:Type="String">项目名称</Data></Cell>
-    <Cell ss:MergeDown="2" ss:StyleID="s62"><Data ss:Type="String">项目定义编码</Data></Cell>
-    <Cell ss:MergeDown="2" ss:StyleID="s63"><Data ss:Type="String">设计单位</Data></Cell>
-    <Cell ss:MergeDown="2" ss:StyleID="s62"><Data ss:Type="String">施工单位</Data></Cell>
-    <Cell ss:MergeDown="2" ss:StyleID="s63"><Data ss:Type="String">建筑地址</Data></Cell>
-    <Cell ss:MergeDown="2" ss:StyleID="s63"><Data ss:Type="String">建筑属性</Data></Cell>
-    <Cell ss:MergeDown="2" ss:StyleID="s64"><Data ss:Type="String">发文总投资</Data></Cell>
-    <Cell ss:MergeDown="2" ss:StyleID="s63"><Data ss:Type="String">开工时间</Data></Cell>
-    <Cell ss:MergeDown="2" ss:StyleID="s63"><Data ss:Type="String">竣工时间</Data></Cell>
-    <Cell ss:MergeDown="2" ss:StyleID="s63"><Data ss:Type="String">批准文号</Data></Cell>
-    <Cell ss:MergeAcross="8" ss:StyleID="s64"><Data ss:Type="String">概算数</Data></Cell>
-    <Cell ss:MergeAcross="2" ss:StyleID="s64"><Data ss:Type="String">费用折扣</Data></Cell>
-   </Row>
-   <Row ss:AutoFitHeight="0">
-    <Cell ss:Index="11" ss:MergeDown="1" ss:StyleID="s64"><Data ss:Type="String">建筑费</Data></Cell>
-    <Cell ss:MergeDown="1" ss:StyleID="s64"><Data ss:Type="String">安装费</Data></Cell>
-    <Cell ss:MergeDown="1" ss:StyleID="s64"><Data ss:Type="String">设备购置费</Data></Cell>
-    <Cell ss:MergeDown="1" ss:StyleID="s64"><Data ss:Type="String">主材费</Data></Cell>
-    <Cell ss:MergeAcross="4" ss:StyleID="s64"><Data ss:Type="String">其他费用</Data></Cell>
-    <Cell ss:MergeAcross="1" ss:StyleID="s67"><Data ss:Type="String">设计费</Data></Cell>
-    <Cell ss:StyleID="s68"><Data ss:Type="String">监理费</Data></Cell>
-   </Row>
-   <Row ss:Height="13.5">
-    <Cell ss:Index="15" ss:StyleID="s68"><Data ss:Type="String">设计费</Data><NamedCell
-      ss:Name="_FilterDatabase"/></Cell>
-    <Cell ss:StyleID="s68"><Data ss:Type="String">监理费</Data><NamedCell
-      ss:Name="_FilterDatabase"/></Cell>
-    <Cell ss:StyleID="s69"><Data ss:Type="String">项目前期工作费</Data><NamedCell
-      ss:Name="_FilterDatabase"/></Cell>
-    <Cell ss:StyleID="s69"><Data ss:Type="String">线路施工赔偿费</Data><NamedCell
-      ss:Name="_FilterDatabase"/></Cell>
-    <Cell ss:StyleID="s69"><Data ss:Type="String">法人管理费(余物清理费)</Data><NamedCell
-      ss:Name="_FilterDatabase"/></Cell>
-    <Cell ss:StyleID="s69"><Data ss:Type="String">合同费率</Data><NamedCell
-      ss:Name="_FilterDatabase"/></Cell>
-    <Cell ss:StyleID="s69"><Data ss:Type="String">典设费率</Data><NamedCell
-      ss:Name="_FilterDatabase"/></Cell>
-    <Cell ss:StyleID="s68"><ss:Data ss:Type="String"
-      xmlns="http://www.w3.org/TR/REC-html40"><B><Font html:Face="宋体"
-        x:CharSet="134" html:Color="#000000">合同费率</Font></B></ss:Data><NamedCell
-      ss:Name="_FilterDatabase"/></Cell>
-   </Row>
-   <#list list as item>
-   <Row ss:Height="13.5" ss:StyleID="s76">
-    <Cell ss:StyleID="s70"><Data ss:Type="String">${item.projectName!""}</Data><NamedCell
-      ss:Name="_FilterDatabase"/></Cell>
-    <Cell ss:StyleID="s71"><Data ss:Type="String">${item.projectId!""}</Data><NamedCell
-      ss:Name="_FilterDatabase"/></Cell>
-    <Cell ss:StyleID="s72"><Data ss:Type="String">${item.designUnit!""}</Data><NamedCell
-      ss:Name="_FilterDatabase"/></Cell>
-    <Cell ss:StyleID="s73"><Data ss:Type="String">${item.constructionUnit!""}</Data><NamedCell
-      ss:Name="_FilterDatabase"/></Cell>
-    <Cell ss:StyleID="s72"><Data ss:Type="String">${item.buildingAddress!""}</Data><NamedCell
-      ss:Name="_FilterDatabase"/></Cell>
-    <Cell ss:StyleID="s72"><Data ss:Type="String">${item.buildingProperty!""}</Data><NamedCell
-      ss:Name="_FilterDatabase"/></Cell>
-    <Cell ss:StyleID="s74"><Data ss:Type="Number">${item.totalInvestment!""}</Data><NamedCell
-      ss:Name="_FilterDatabase"/></Cell>
-    <Cell ss:StyleID="s75"><Data ss:Type="DateTime">${((item.startTime)?string("yyyy-MM-dd"))!""}</Data><NamedCell
-      ss:Name="_FilterDatabase"/></Cell>
-    <Cell ss:StyleID="s75"><Data ss:Type="DateTime">${((item.stopTime)?string("yyyy-MM-dd"))!""}</Data><NamedCell
-      ss:Name="_FilterDatabase"/></Cell>
-    <Cell ss:StyleID="s72"><Data ss:Type="String">${item.approvalNumber!""}</Data><NamedCell
-      ss:Name="_FilterDatabase"/></Cell>
-    <Cell ss:StyleID="s74"><Data ss:Type="Number">${item.constructionCost!""}</Data><NamedCell ss:Name="_FilterDatabase"/></Cell>
-    <Cell ss:StyleID="s74"><Data ss:Type="Number">${item.installationCost!""}</Data><NamedCell
-      ss:Name="_FilterDatabase"/></Cell>
-    <Cell ss:StyleID="s74"><Data ss:Type="Number">${item.equipmentCost!""}</Data><NamedCell
-      ss:Name="_FilterDatabase"/></Cell>
-    <Cell ss:StyleID="s74"><Data ss:Type="Number">${item.materialCost!""}</Data><NamedCell
-      ss:Name="_FilterDatabase"/></Cell>
-    <Cell ss:StyleID="s74"><Data ss:Type="Number">${item.designCost!""}</Data><NamedCell
-      ss:Name="_FilterDatabase"/></Cell>
-    <Cell ss:StyleID="s74"><Data ss:Type="Number">${item.supervisorCost!""}</Data><NamedCell
-      ss:Name="_FilterDatabase"/></Cell>
-    <Cell ss:StyleID="s74"><Data ss:Type="Number">${item.preliminaryWorkCost!""}</Data><NamedCell
-      ss:Name="_FilterDatabase"/></Cell>
-    <Cell ss:StyleID="s74"><Data ss:Type="Number">${item.compensationCost!""}</Data><NamedCell ss:Name="_FilterDatabase"/></Cell>
-    <Cell ss:StyleID="s74"><Data ss:Type="Number">${item.administrationCost!""}</Data><NamedCell ss:Name="_FilterDatabase"/></Cell>
-    <Cell ss:StyleID="s74"><Data ss:Type="Number">${item.designContractDiscount!""}</Data><NamedCell ss:Name="_FilterDatabase"/></Cell>
-    <Cell ss:StyleID="s72"><Data ss:Type="Number">${item.designTypicalDiscount!""}</Data><NamedCell ss:Name="_FilterDatabase"/></Cell>
-    <Cell ss:StyleID="s72"><Data ss:Type="Number">${item.supervisorContractDiscount!""}</Data><NamedCell ss:Name="_FilterDatabase"/></Cell>
-   </Row>
-   </#list>
-   <Row ss:Height="15">
-    <Cell ss:Index="7" ss:StyleID="s88"/>
-    <Cell ss:StyleID="s89"/>
-    <Cell ss:StyleID="s89"/>
-    <Cell ss:StyleID="s89"/>
-    <Cell ss:StyleID="s88"/>
-    <Cell ss:StyleID="s88"/>
-    <Cell ss:StyleID="s88"/>
-    <Cell ss:StyleID="s88"/>
-    <Cell ss:StyleID="s88"/>
-    <Cell ss:StyleID="s88"/>
-    <Cell ss:StyleID="s88"/>
-    <Cell ss:StyleID="s88"/>
-    <Cell ss:StyleID="s88"/>
-    <Cell ss:StyleID="s88"/>
-    <Cell ss:StyleID="s89"/>
-    <Cell ss:StyleID="s89"/>
-   </Row>
-   <Row ss:Height="13.5"/>
-   <Row ss:Height="15">
-    <Cell ss:Index="11" ss:StyleID="s88"/>
-    <Cell ss:StyleID="s88"/>
-    <Cell ss:StyleID="s88"/>
-    <Cell ss:StyleID="s88"/>
-    <Cell ss:StyleID="s88"/>
-    <Cell ss:StyleID="s88"/>
-    <Cell ss:StyleID="s88"/>
-    <Cell ss:StyleID="s88"/>
-    <Cell ss:StyleID="s88"/>
-    <Cell ss:Index="21" ss:StyleID="s89"/>
-    <Cell ss:StyleID="s89"/>
-    <Cell ss:StyleID="s89"/>
-    <Cell ss:StyleID="s89"/>
-    <Cell ss:StyleID="s89"/>
-    <Cell ss:StyleID="s89"/>
-    <Cell ss:StyleID="s89"/>
-    <Cell ss:StyleID="s89"/>
-    <Cell ss:StyleID="s89"/>
-   </Row>
-   <Row ss:Height="13.5">
-    <Cell ss:Index="9" ss:StyleID="s91"/>
-   </Row>
-   <Row ss:AutoFitHeight="0">
-    <Cell ss:Index="9" ss:StyleID="s91"/>
-   </Row>
-   <Row ss:AutoFitHeight="0">
-    <Cell ss:Index="9" ss:StyleID="s91"/>
-   </Row>
-   <Row ss:AutoFitHeight="0">
-    <Cell ss:Index="9" ss:StyleID="s91"/>
-   </Row>
-   <Row ss:AutoFitHeight="0">
-    <Cell ss:Index="9" ss:StyleID="s91"/>
-   </Row>
-   <Row ss:AutoFitHeight="0">
-    <Cell ss:Index="9" ss:StyleID="s91"/>
-   </Row>
-   <Row ss:AutoFitHeight="0">
-    <Cell ss:Index="9" ss:StyleID="s91"/>
-   </Row>
-   <Row ss:AutoFitHeight="0">
-    <Cell ss:Index="9" ss:StyleID="s91"/>
-   </Row>
-   <Row ss:AutoFitHeight="0">
-    <Cell ss:Index="9" ss:StyleID="s91"/>
-   </Row>
-   <Row ss:AutoFitHeight="0">
-    <Cell ss:Index="9" ss:StyleID="s91"/>
-   </Row>
-   <Row ss:AutoFitHeight="0">
-    <Cell ss:Index="9" ss:StyleID="s91"/>
-   </Row>
-   <Row ss:AutoFitHeight="0">
-    <Cell ss:Index="9" ss:StyleID="s91"/>
-   </Row>
-   <Row ss:AutoFitHeight="0">
-    <Cell ss:Index="9" ss:StyleID="s91"/>
-   </Row>
-   <Row ss:AutoFitHeight="0">
-    <Cell ss:Index="9" ss:StyleID="s91"/>
-   </Row>
-   <Row ss:AutoFitHeight="0">
-    <Cell ss:Index="9" ss:StyleID="s91"/>
-   </Row>
-   <Row ss:AutoFitHeight="0">
-    <Cell ss:Index="9" ss:StyleID="s91"/>
-   </Row>
-   <Row ss:AutoFitHeight="0">
-    <Cell ss:Index="9" ss:StyleID="s91"/>
-   </Row>
-   <Row ss:AutoFitHeight="0">
-    <Cell ss:Index="9" ss:StyleID="s91"/>
-   </Row>
-   <Row ss:AutoFitHeight="0">
-    <Cell ss:Index="9" ss:StyleID="s91"/>
-   </Row>
-   <Row ss:AutoFitHeight="0">
-    <Cell ss:Index="9" ss:StyleID="s91"/>
-   </Row>
-   <Row ss:AutoFitHeight="0">
-    <Cell ss:Index="9" ss:StyleID="s91"/>
-   </Row>
-  </Table>
-  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
-   <PageSetup>
-    <Header x:Margin="0.3"/>
-    <Footer x:Margin="0.3"/>
-    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
-   </PageSetup>
-   <Unsynced/>
-   <Selected/>
-   <FreezePanes/>
-   <FrozenNoSplit/>
-   <SplitHorizontal>3</SplitHorizontal>
-   <TopRowBottomPane>3</TopRowBottomPane>
-   <ActivePane>2</ActivePane>
-   <Panes>
-    <Pane>
-     <Number>3</Number>
-    </Pane>
-    <Pane>
-     <Number>2</Number>
-     <ActiveRow>13</ActiveRow>
-     <ActiveCol>2</ActiveCol>
-    </Pane>
-   </Panes>
-   <ProtectObjects>False</ProtectObjects>
-   <ProtectScenarios>False</ProtectScenarios>
-  </WorksheetOptions>
- </Worksheet>
-</Workbook>

BIN
src/main/resources/freemarker/projectBudget.xlsx


+ 2 - 2
src/main/webapp/webpage/modules/sg/financial/settlement/costCheckList.js

@@ -201,7 +201,7 @@
                     title: '设计费允许少付',
                     events: operateEvents,
                     formatter: function (value,row,index) {
-                        var item = ${fns:toJson(fns:getDictList('finance_underpayment'))}
+                        var item = ${fns:toJson(fns:getDictList('design_underpayment'))}
                         var option
                         var headOption
                         $.each(item,function (i,obj) {
@@ -238,7 +238,7 @@
                     title: '监理费允许少付',
                     events: operateEvents,
                     formatter: function (value,row,index) {
-                        var item = ${fns:toJson(fns:getDictList('finance_underpayment'))}
+                        var item = ${fns:toJson(fns:getDictList('supervision_underpayment'))}
                         var option
                         var headOption
                        $.each(item,function (i,obj) {

+ 40 - 0
src/main/webapp/webpage/modules/sg/financial/settlement/financeList.js

@@ -75,6 +75,9 @@
             },
             onClickRow: function (row, $el) {
             },
+            onLoadSuccess: function () {  //加载成功时执行
+                getTdValue();
+            },
             onShowSearch: function () {
                 $("#search-collapse").slideToggle();
             },
@@ -208,6 +211,43 @@ function getIdSelections() {
     });
 }
 
+function getTdValue() {
+    var tableId = document.getElementById("dataTable");
+    if (tableId.rows.length>3){
+        for(var i = 2;i < tableId.rows.length;i++) {
+            if(tableId.rows[i].cells[4].innerHTML!="-" && tableId.rows[i].cells[4].innerHTML=="未通过"){
+                tableId.rows[i].cells[4].setAttribute("style","color: red;text-align:center;vertical-align:middle;");
+            }
+            if(tableId.rows[i].cells[4].innerHTML!="-" && tableId.rows[i].cells[4].innerHTML=="未检查"){
+                tableId.rows[i].cells[4].setAttribute("style","color: blue;text-align:center;vertical-align:middle;");
+            }
+
+            if(tableId.rows[i].cells[5].innerHTML!="-" && tableId.rows[i].cells[5].innerHTML=="未通过"){
+                tableId.rows[i].cells[5].setAttribute("style","color: red;text-align:center;vertical-align:middle;");
+            }
+            if(tableId.rows[i].cells[5].innerHTML!="-" && tableId.rows[i].cells[5].innerHTML=="未检查"){
+                tableId.rows[i].cells[5].setAttribute("style"," color: blue;text-align:center;vertical-align:middle;");
+            }
+
+            if(tableId.rows[i].cells[6].innerHTML!="-" && tableId.rows[i].cells[6].innerHTML=="未通过"){
+                tableId.rows[i].cells[6].setAttribute("style","color: red;text-align:center;vertical-align:middle;");
+            }
+            if(tableId.rows[i].cells[6].innerHTML!="-" && tableId.rows[i].cells[6].innerHTML=="未检查"){
+                tableId.rows[i].cells[6].setAttribute("style"," color: blue;text-align:center;vertical-align:middle;");
+            }
+
+            if(tableId.rows[i].cells[7].innerHTML!="-" && tableId.rows[i].cells[7].innerHTML=="未通过"){
+                tableId.rows[i].cells[7].setAttribute("style","color: red;text-align:center;vertical-align:middle;");
+            }
+            if(tableId.rows[i].cells[7].innerHTML!="-" && tableId.rows[i].cells[7].innerHTML=="未检查"){
+                tableId.rows[i].cells[7].setAttribute("style"," color: blue;text-align:center;vertical-align:middle;");
+            }
+            
+        }
+    }
+}
+
+
 function deleteAll() {
     jp.confirm('确认要删除该数据记录吗?', function () {
         jp.loading();