Examples of TSTypegroup


Examples of org.jeecgframework.web.system.pojo.base.TSTypegroup

   * @return
   */
  @RequestMapping(params = "typeList")
  public ModelAndView typeList(HttpServletRequest request) {
    String typegroupid = request.getParameter("typegroupid");
    TSTypegroup typegroup = systemService.getEntity(TSTypegroup.class, typegroupid);
    request.setAttribute("typegroup", typegroup);
    return new ModelAndView("system/type/typeList");
  }
View Full Code Here

Examples of org.jeecgframework.web.system.pojo.base.TSTypegroup

  @RequestMapping(params = "delTypeGridTree")
  @ResponseBody
  public AjaxJson delTypeGridTree(String id, HttpServletRequest request) {
    AjaxJson j = new AjaxJson();
    if (id.startsWith("G")) {//分组
      TSTypegroup typegroup = systemService.getEntity(TSTypegroup.class, id.substring(1));
      message = "数据字典分组: " + typegroup.getTypegroupname() + "被删除 成功";
      systemService.delete(typegroup);
    } else {
      TSType type = systemService.getEntity(TSType.class, id.substring(1));
      message = "数据字典类型: " + type.getTypename() + "被删除 成功";
      systemService.delete(type);
View Full Code Here

Examples of org.jeecgframework.web.system.pojo.base.TSTypegroup

  @RequestMapping(params = "saveFiles", method = RequestMethod.POST)
  @ResponseBody
  public AjaxJson saveFiles(HttpServletRequest request, HttpServletResponse response, TSDocument document) {
    AjaxJson j = new AjaxJson();
    Map<String, Object> attributes = new HashMap<String, Object>();
    TSTypegroup tsTypegroup=systemService.getTypeGroup("fieltype","文档分类");
    TSType tsType = systemService.getType("files","附件", tsTypegroup);
    String fileKey = oConvertUtils.getString(request.getParameter("fileKey"));// 文件ID
    String documentTitle = oConvertUtils.getString(request.getParameter("documentTitle"));// 文件标题
    if (StringUtil.isNotEmpty(fileKey)) {
      document.setId(fileKey);
View Full Code Here

Examples of org.jeecgframework.web.system.pojo.base.TSTypegroup

              .toString(), sb);
        }
        sb.append("</select>");
      }
    } else {
      TSTypegroup typeGroup = TSTypegroup.allTypeGroups
          .get(this.typeGroupCode.toLowerCase());
      List<TSType> types = TSTypegroup.allTypes.get(this.typeGroupCode
          .toLowerCase());
      if (hasLabel) {
        sb.append("<div class=\"" + divClass + "\">");
        sb.append("<label class=\"" + labelClass + "\" >");
      }
      if (typeGroup != null) {
        if (hasLabel) {
          if (StringUtils.isBlank(this.title)) {
            this.title = typeGroup.getTypegroupname();
          }
          sb.append(this.title + ":");
          sb.append("</label>");
        }
        if ("radio".equals(type)) {
View Full Code Here

Examples of org.jeecgframework.web.system.pojo.base.TSTypegroup

            rs=st.executeQuery(sql6);
            List typegroup = new ArrayList();
            i=1;
            while(rs.next())
            {
                 TSTypegroup tsTypegroup = new TSTypegroup();
                 tsTypegroup.setId(i+"");
//                 org.jeecgframework.core.util.LogUtil.info(rs.getString("signaturefile"));
//                 suer.setSignatureFile(rs.getString("signaturefile"));
                 tsTypegroup.setTypegroupname(rs.getString("typegroupname"));
                 tsTypegroup.setTypegroupcode(rs.getString("typegroupcode"));
                 typegroup.add(tsTypegroup);
                 i++;
            }
            root.put("typegroup", typegroup);
           
View Full Code Here

Examples of org.jeecgframework.web.system.pojo.base.TSTypegroup

  /**
   * @Description 修复类型分组表
   * @author tanghan 2013-7-20
   */
  private void repairTypeAndGroup() {
    TSTypegroup icontype = new TSTypegroup();
    icontype.setTypegroupname("图标类型");
    icontype.setTypegroupcode("icontype");
    commonDao.saveOrUpdate(icontype);

    TSTypegroup ordertype = new TSTypegroup();
    ordertype.setTypegroupname("订单类型");
    ordertype.setTypegroupcode("order");
    commonDao.saveOrUpdate(ordertype);

    TSTypegroup custom = new TSTypegroup();
    custom.setTypegroupname("客户类型");
    custom.setTypegroupcode("custom");
    commonDao.saveOrUpdate(custom);

    TSTypegroup servicetype = new TSTypegroup();
    servicetype.setTypegroupname("服务项目类型");
    servicetype.setTypegroupcode("service");
    commonDao.saveOrUpdate(servicetype);

    TSTypegroup searchMode = new TSTypegroup();
    searchMode.setTypegroupname("查询模式");
    searchMode.setTypegroupcode("searchmode");
    commonDao.saveOrUpdate(searchMode);

    TSTypegroup yesOrno = new TSTypegroup();
    yesOrno.setTypegroupname("逻辑条件");
    yesOrno.setTypegroupcode("yesorno");
    commonDao.saveOrUpdate(yesOrno);

    TSTypegroup fieldtype = new TSTypegroup();
    fieldtype.setTypegroupname("字段类型");
    fieldtype.setTypegroupcode("fieldtype");
    commonDao.saveOrUpdate(fieldtype);

    TSTypegroup datatable = new TSTypegroup();
    datatable.setTypegroupname("数据表");
    datatable.setTypegroupcode("database");
    commonDao.saveOrUpdate(datatable);

    TSTypegroup filetype = new TSTypegroup();
    filetype.setTypegroupname("文档分类");
    filetype.setTypegroupcode("fieltype");
    commonDao.saveOrUpdate(filetype);

    TSTypegroup sex = new TSTypegroup();
    sex.setTypegroupname("性别类");
    sex.setTypegroupcode("sex");
    commonDao.saveOrUpdate(sex);
  }
View Full Code Here

Examples of org.jeecgframework.web.system.pojo.base.TSTypegroup

  /**
   * @Description 修复类型表
   * @author tanghan 2013-7-22
   */
  private void repairType() {
    TSTypegroup icontype = commonDao.findByProperty(TSTypegroup.class,
        "typegroupname", "图标类型").get(0);
    TSTypegroup ordertype = commonDao.findByProperty(TSTypegroup.class,
        "typegroupname", "订单类型").get(0);
    TSTypegroup custom = commonDao.findByProperty(TSTypegroup.class,
        "typegroupname", "客户类型").get(0);
    TSTypegroup servicetype = commonDao.findByProperty(TSTypegroup.class,
        "typegroupname", "服务项目类型").get(0);
    TSTypegroup datatable = commonDao.findByProperty(TSTypegroup.class,
        "typegroupname", "数据表").get(0);
    TSTypegroup filetype = commonDao.findByProperty(TSTypegroup.class,
        "typegroupname", "文档分类").get(0);
    TSTypegroup sex = commonDao.findByProperty(TSTypegroup.class,
        "typegroupname", "性别类").get(0);
    TSTypegroup searchmode = commonDao.findByProperty(TSTypegroup.class,
        "typegroupname", "查询模式").get(0);
    TSTypegroup yesorno = commonDao.findByProperty(TSTypegroup.class,
        "typegroupname", "逻辑条件").get(0);
    TSTypegroup fieldtype = commonDao.findByProperty(TSTypegroup.class,
        "typegroupname", "字段类型").get(0);

    TSType menu = new TSType();
    menu.setTypename("菜单图标");
    menu.setTypecode("2");
View Full Code Here

Examples of org.jeecgframework.web.system.pojo.base.TSTypegroup

   * @param typecode
   * @param typename
   * @return
   */
  public TSTypegroup getTypeGroup(String typegroupcode, String typgroupename) {
    TSTypegroup tsTypegroup = commonDao.findUniqueByProperty(TSTypegroup.class, "typegroupcode", typegroupcode);
    if (tsTypegroup == null) {
      tsTypegroup = new TSTypegroup();
      tsTypegroup.setTypegroupcode(typegroupcode);
      tsTypegroup.setTypegroupname(typgroupename);
      commonDao.save(tsTypegroup);
    }
    return tsTypegroup;
  }
View Full Code Here

Examples of org.jeecgframework.web.system.pojo.base.TSTypegroup

    return tsTypegroup;
  }

 
  public TSTypegroup getTypeGroupByCode(String typegroupCode) {
    TSTypegroup tsTypegroup = commonDao.findUniqueByProperty(TSTypegroup.class, "typegroupcode", typegroupCode);
    return tsTypegroup;
  }
View Full Code Here

Examples of org.jeecgframework.web.system.pojo.base.TSTypegroup

    }
  }

 
  public void refleshTypesCach(TSType type) {
    TSTypegroup tsTypegroup = type.getTSTypegroup();
    TSTypegroup typeGroupEntity = this.commonDao.get(TSTypegroup.class, tsTypegroup.getId());
    List<TSType> types = this.commonDao.findByProperty(TSType.class, "TSTypegroup.id", tsTypegroup.getId());
    TSTypegroup.allTypes.put(typeGroupEntity.getTypegroupcode().toLowerCase(), types);
  }
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.