From e3782bdff4070fe362ff0b91bac601736b11918d Mon Sep 17 00:00:00 2001 From: zhangqinbin <181961702@qq.com> Date: Thu, 7 Jan 2021 09:20:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4TrModel=20=E4=B8=93=E5=AE=B6?= =?UTF-8?q?=E6=91=98=E5=BD=95=E8=A1=A8=E4=B8=93=E7=94=A8=EF=BC=8C=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E6=94=BE=E5=88=B0common=E9=87=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/poiExport/constant/TrModel.java | 108 ------------------ 1 file changed, 108 deletions(-) delete mode 100644 uboot-common/src/main/java/com/chinaunicom/mall/ebtp/common/poiExport/constant/TrModel.java diff --git a/uboot-common/src/main/java/com/chinaunicom/mall/ebtp/common/poiExport/constant/TrModel.java b/uboot-common/src/main/java/com/chinaunicom/mall/ebtp/common/poiExport/constant/TrModel.java deleted file mode 100644 index abc98ab..0000000 --- a/uboot-common/src/main/java/com/chinaunicom/mall/ebtp/common/poiExport/constant/TrModel.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.chinaunicom.mall.ebtp.common.poiExport.constant; - -import com.chinaunicom.mall.ebtp.common.poiExport.entity.ExcelTd; -import lombok.Data; - -import java.util.ArrayList; -import java.util.List; - -/** - * - * 详细审查 表表格模型 - * @author fqj - */ -@Data -public class TrModel { - - public List rowList;//行内容 - //表名称 - public List tableNameList; - //详审固定表头 - public List detailedTdList; - //详审固定隐藏ID - public List detailedHiddenId; - - //初审固定表头 - public List firstTdList; - public TrModel() { - //固定头三行 - this.setRow(); - //详审固定表头 - this.setDetailedTd(); - //初审固定表头 - this.setFirstTd(); - } - - public TrModel(String tableName){ - tableNameList = new ArrayList<>(); - ExcelTd td0_0 = new ExcelTd();//表名称 - td0_0.setTdValue(tableName); - td0_0.setIsRowMerge(true);//是否向右合并 - td0_0.setCellStyleKey("name"); - tableNameList.add(td0_0); - //固定头三行 - this.setRow(); - //详审固定表头 - this.setDetailedTd(); - //初审固定表头 - this.setFirstTd(); - //详审固定列 -/* detailedList = new ArrayList<>(); - detailedList.add("序号"); - detailedList.add("评审类别"); - detailedList.add("评审项编号"); - detailedList.add("评分项"); - detailedList.add("评分因素"); - detailedList.add("评分因素ID"); - detailedList.add("分值"); - - //初审固定列 - firstList = new ArrayList<>(); - firstList.add("序号"); - firstList.add("评审类别"); - firstList.add("评审项编号"); - firstList.add("评审因素"); - firstList.add("评审标准");*/ - - } - public void setRow(){ - //固定行格式 - rowList = new ArrayList<>(); - rowList.add("表名称"); - rowList.add("表头"); - rowList.add("供应商隐藏域"); - } - - public List getTdByType(String type){ - if("1".equals(type)){ - return this.firstTdList; - }else if("2".equals(type)){ - return this.detailedTdList; - } - return new ArrayList<>(); - } - - public void setDetailedTd(){ - detailedTdList = new ArrayList<>(); - detailedTdList.add(new ExcelTd().setTdValue("序号").setWidth(3700).setCellStyleKey("title1")); - detailedTdList.add(new ExcelTd().setTdValue("评审类别").setWidth(3700).setCellStyleKey("title1")); - detailedTdList.add(new ExcelTd().setTdValue("评审项编号").setWidth(3700).setCellStyleKey("title1").setIsHidde(true)); - detailedTdList.add(new ExcelTd().setTdValue("评分项").setWidth(3700).setCellStyleKey("title1")); - detailedTdList.add(new ExcelTd().setTdValue("评审标准").setWidth(3700).setCellStyleKey("title1")); - detailedTdList.add(new ExcelTd().setTdValue("评分因素ID").setWidth(3700).setCellStyleKey("title1").setIsHidde(true)); - detailedTdList.add(new ExcelTd().setTdValue("评分因素").setWidth(6700).setCellStyleKey("title1")); - detailedTdList.add(new ExcelTd().setTdValue("分值").setWidth(6700).setCellStyleKey("title1")); - - } - - public void setFirstTd(){ - firstTdList = new ArrayList<>(); - firstTdList.add(new ExcelTd().setTdValue("序号").setWidth(3700).setCellStyleKey("title1")); - firstTdList.add(new ExcelTd().setTdValue("评审类别").setWidth(3700).setCellStyleKey("title1")); - firstTdList.add(new ExcelTd().setTdValue("评审项编号").setWidth(3700).setCellStyleKey("title1").setIsHidde(true)); - firstTdList.add(new ExcelTd().setTdValue("评审因素").setWidth(6900).setCellStyleKey("title1")); - firstTdList.add(new ExcelTd().setTdValue("评审标准").setWidth(9800).setCellStyleKey("title1")); - - } - -}