删除TrModel 专家摘录表专用,不能放到common里
This commit is contained in:
@ -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<String> rowList;//行内容
|
||||
//表名称
|
||||
public List<ExcelTd> tableNameList;
|
||||
//详审固定表头
|
||||
public List<ExcelTd> detailedTdList;
|
||||
//详审固定隐藏ID
|
||||
public List<Integer> detailedHiddenId;
|
||||
|
||||
//初审固定表头
|
||||
public List<ExcelTd> 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<ExcelTd> 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"));
|
||||
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user