Package org.jeecgframework.web.cgform.entity.config

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


        Map<String, CgFormFieldEntity>  fields = cgFormFieldService.getAllCgFormFieldByTableName(subTable);
        String subFkField = null;
        Iterator it = fields.keySet().iterator();
        for(;it.hasNext();){
          String fieldName  = (String) it.next();
          CgFormFieldEntity fieldc = fields.get(fieldName);
          if(StringUtil.isNotEmpty(fieldc.getMainTable())){
            if(table.equalsIgnoreCase(fieldc.getMainTable())){
              subFkField = fieldName;
            }
          }
        }
        if(StringUtil.isNotEmpty(subFkField)){
View Full Code Here


    ResultSet rs = st.executeQuery(sql10+"'"+cgformhead_id.trim()+"'");
        List cgfield = new ArrayList();
        int i=1;
        while(rs.next())
        {
          CgFormFieldEntity filed = new CgFormFieldEntity();
            filed.setFieldName(rs.getString("field_name"));
            filed.setLength(rs.getInt("length"));
            filed.setType(rs.getString("type"));
            filed.setPointLength(rs.getInt("point_length"));
            filed.setIsNull(rs.getString("is_null"));
            filed.setIsKey(rs.getString("is_key"));
            filed.setIsQuery(rs.getString("is_query"));
            filed.setIsShow(rs.getString("is_show"));
            filed.setShowType(rs.getString("show_type"));
            filed.setOrderNum(rs.getInt("order_num"));
            filed.setFieldHref(rs.getString("field_href"));
            filed.setFieldLength(rs.getInt("field_length"));
            filed.setFieldValidType(rs.getString("field_valid_type"));
            filed.setQueryMode(rs.getString("query_mode"));
            filed.setContent(rs.getString("content"));
            filed.setDictTable(rs.getString("dict_table"));
            filed.setDictField(rs.getString("dict_field"));
            filed.setMainField(rs.getString("main_field"));
            filed.setMainTable(rs.getString("main_table"));
            cgfield.add(filed);
            i++;
        }
        return cgfield;
  }
View Full Code Here

      Row row = sheet.createRow(index);
      row.setHeight((short) 450);
      CellStyle titleStyle = getTitleStyle(workbook);
      Iterator it = dataSet.iterator();
      while (it.hasNext()) {
        CgFormFieldEntity type = (CgFormFieldEntity) it.next();
        // 输入需要显示的字段信息
        if (type.getIsShow().equals("Y")) {
          Cell cell = row.createCell(index);
          RichTextString text = new HSSFRichTextString(type
              .getContent());
          cell.setCellValue(text);
          // 设置列宽
          int columnWidth = type.getLength()==0?minColumnWidth:type.getLength()>maxColumnWidth?maxColumnWidth:type.getLength();
          sheet.setColumnWidth(index,256 * columnWidth);
          cell.setCellStyle(titleStyle);
          index++;
          //标题列下方默认给三行的边框空位置
        }
 
View Full Code Here

TOP

Related Classes of org.jeecgframework.web.cgform.entity.config.CgFormFieldEntity

Copyright © 2018 www.massapicom. 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.