示例#1
0
 private void setSupplierMes(ExcelVO evo) {
   // 获取基本参照导出excel信息类
   ExcelRefConstant refMes = ExcelRefConstant.getInstance();
   // 设置枚举信息
   ExcelEnumConstant eec = ExcelEnumConstant.getInstance();
   evo.putMap(ProjItemSupCfmVO.PK_SUPPLIER, refMes.getRef(refMes.SUPPLIER));
   evo.putEnumVoMapValue(ProjItemSupCfmVO.SUPPLIER_TYPE, eec.getExcelEnumVO(eec.SUPPLIER_TYPE));
 }
示例#2
0
  /*
   * 设置专家信息
   * @user:lifei
   * @date:2010-02-09
   */
  private void setExpertMess(ExcelVO evo) {
    // 获取基本参照导出excel信息类
    ExcelRefConstant refMes = ExcelRefConstant.getInstance();
    // 设置枚举信息
    ExcelEnumConstant eec = ExcelEnumConstant.getInstance();
    // 专家信息设置
    ExcelRefVO refVO = new ExcelRefVO();
    // 设置参照表名人员基础档案表
    refVO.setTableName("ebs_da_expert_main");
    // 设置参照表主键pk_da_expert_main
    refVO.setTable_pk("pk_da_expert_main");
    // 设置参照显示列字段
    refVO.setGetFiledName("expert_name");

    evo.putMap(ProjExpertSubVO.PK_DA_EXPERT_MAIN + "0", refVO);

    refVO = new ExcelRefVO();
    // 设置参照表名人员基础档案表
    refVO.setTableName("ebs_da_expert_main");
    // 设置参照表主键pk_da_expert_main
    refVO.setTable_pk("pk_da_expert_main");
    // 设置参照显示列字段
    refVO.setGetFiledName("pk_corp_from");

    ExcelRefVO refSon = new ExcelRefVO();

    // 设置参照表名人员基础档案表
    refSon.setTableName("bd_corp");
    // 设置参照表主键
    refSon.setTable_pk("pk_corp");
    // 设置参照显示列字段
    refSon.setGetFiledName("unitname");

    refVO.setEvo(refSon);

    evo.putMap(ProjExpertSubVO.PK_DA_EXPERT_MAIN + "1", refVO);

    refVO = new ExcelRefVO();
    // 设置参照表名人员基础档案表
    refVO.setTableName("ebs_da_expert_main");
    // 设置参照表主键pk_da_expert_main
    refVO.setTable_pk("pk_da_expert_main");
    // 设置参照显示列字段
    refVO.setGetFiledName("pk_dept_from");

    refSon = new ExcelRefVO();

    refSon.setTableName("bd_deptdoc");
    // 设置参照表主键
    refSon.setTable_pk("pk_deptdoc");
    // 设置参照显示列字段
    refSon.setGetFiledName("deptname");

    refVO.setEvo(refSon);

    evo.putMap(ProjExpertSubVO.PK_DA_EXPERT_MAIN + "2", refVO);

    refVO = new ExcelRefVO();
    // 设置参照表人员基础档案表
    refVO.setTableName("ebs_da_expert_main");
    // 设置参照表主键pk_da_expert_main
    refVO.setTable_pk("pk_da_expert_main");
    // 设置参照显示列字段
    refVO.setGetFiledName("expert_type");

    refVO.setEevo(eec.getExcelEnumVO(eec.EXPERTCATE));

    evo.putMap(ProjExpertSubVO.PK_DA_EXPERT_MAIN + "3", refVO);

    // 设置专家抽取方式枚举
    evo.putEnumVoMapValue(ProjExpertSubVO.EXPERT_SEL_MODE, eec.getExcelEnumVO(eec.EXPERT_SEL_MODE));

    refVO = new ExcelRefVO();
    // 设置参照表名人员基础档案表
    refVO.setTableName("ebs_da_expert_main");
    // 设置参照表主键pk_da_expert_main
    refVO.setTable_pk("pk_da_expert_main");
    // 设置参照显示列字段
    refVO.setGetFiledName("phone");

    evo.putMap(ProjExpertSubVO.PK_DA_EXPERT_MAIN + "5", refVO);
    refVO = new ExcelRefVO();
    // 设置参照表名人员基础档案表
    refVO.setTableName("ebs_da_expert_main");
    // 设置参照表主键pk_da_expert_main
    refVO.setTable_pk("pk_da_expert_main");
    // 设置参照显示列字段
    refVO.setGetFiledName("email");
    evo.putMap(ProjExpertSubVO.PK_DA_EXPERT_MAIN + "6", refVO);
  }