Examples of CgSubTableVO


Examples of org.jeecgframework.web.cgform.entity.config.CgSubTableVO

    Map<String, Object> field = new HashMap<String, Object>();
    CgFormHeadEntity head = this.getCgFormHeadByTableName(tableName,
        version);
    data.put("head", head);
    if (head.getJformType() == CgAutoListConstant.JFORM_TYPE_MAIN_TALBE) {
      CgSubTableVO subtableVo = new CgSubTableVO();
      String subTableStr = head.getSubTableStr();
      if (StringUtils.isNotEmpty(subTableStr)) {
        String[] subTables = subTableStr.split(",");
        List<Map<String, Object>> subTalbeFieldList = new ArrayList<Map<String, Object>>();
        List<Map<String, Object>> subTalbeHiddenFieldList = new ArrayList<Map<String, Object>>();
        for (String subTable : subTables) {
          subTalbeFieldList = this
              .getCgFormFieldByTableName(subTable);
          subTalbeHiddenFieldList = this
              .getCgFormHiddenFieldByTableName(subTable);
          CgFormHeadEntity subhead = this
              .getCgFormHeadByTableName(subTable);
          subtableVo = new CgSubTableVO();
          subtableVo.setHead(subhead);
          subtableVo.setFieldList(subTalbeFieldList);
          subtableVo.setHiddenFieldList(subTalbeHiddenFieldList);
          field.put(subTable, subtableVo);
        }
      }
    }
    // 装载附表表单配置
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.