Examples of TSType


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

    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);
    }
    systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
    //刷新缓存
    systemService.refleshTypeGroupCach();
View Full Code Here

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

  @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);
      document = systemService.getEntity(TSDocument.class, fileKey);
View Full Code Here

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

            rs=st.executeQuery(sql8);
            List type = new ArrayList();
            i=1;
            while(rs.next())
            {
                 TSType tsType = new TSType();
                 tsType.setId(i+"");
//                 org.jeecgframework.core.util.LogUtil.info(rs.getString("signaturefile"));
//                 suer.setSignatureFile(rs.getString("signaturefile"));
                 tsType.setTypename(rs.getString("typename"));
                 tsType.setTypecode(rs.getString("typecode"));
                 type.add(tsType);
                 i++;
            }
            root.put("type", type);
           
View Full Code Here

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

    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");
    menu.setTSTypegroup(icontype);
    commonDao.saveOrUpdate(menu);

    TSType systemicon = new TSType();
    systemicon.setTypename("系统图标");
    systemicon.setTypecode("1");
    systemicon.setTSTypegroup(icontype);
    commonDao.saveOrUpdate(systemicon);

    TSType file = new TSType();
    file.setTypename("附件");
    file.setTypecode("files");
    file.setTSTypegroup(filetype);
    commonDao.saveOrUpdate(file);

    TSType goodorder = new TSType();
    goodorder.setTypename("优质订单");
    goodorder.setTypecode("1");
    goodorder.setTSTypegroup(ordertype);
    commonDao.saveOrUpdate(goodorder);

    TSType general = new TSType();
    general.setTypename("普通订单");
    general.setTypecode("2");
    general.setTSTypegroup(ordertype);
    commonDao.saveOrUpdate(general);

    TSType sign = new TSType();
    sign.setTypename("签约客户");
    sign.setTypecode("1");
    sign.setTSTypegroup(custom);
    commonDao.saveOrUpdate(sign);

    TSType commoncustom = new TSType();
    commoncustom.setTypename("普通客户");
    commoncustom.setTypecode("2");
    commoncustom.setTSTypegroup(custom);
    commonDao.saveOrUpdate(commoncustom);

    TSType vipservice = new TSType();
    vipservice.setTypename("特殊服务");
    vipservice.setTypecode("1");
    vipservice.setTSTypegroup(servicetype);
    commonDao.saveOrUpdate(vipservice);

    TSType commonservice = new TSType();
    commonservice.setTypename("普通服务");
    commonservice.setTypecode("2");
    commonservice.setTSTypegroup(servicetype);
    commonDao.saveOrUpdate(commonservice);

    // TSType leave = new TSType();
    // leave.setTypename("请假流程");
    // leave.setTypecode("leave");
    // commonDao.saveOrUpdate(leave);

    TSType single = new TSType();
    single.setTypename("单条件查询");
    single.setTypecode("single");
    single.setTSTypegroup(searchmode);
    commonDao.saveOrUpdate(single);

    TSType group = new TSType();
    group.setTypename("范围查询");
    group.setTypecode("group");
    group.setTSTypegroup(searchmode);
    commonDao.saveOrUpdate(group);

    TSType yes = new TSType();
    yes.setTypename("是");
    yes.setTypecode("Y");
    yes.setTSTypegroup(yesorno);
    commonDao.saveOrUpdate(yes);

    TSType no = new TSType();
    no.setTypename("否");
    no.setTypecode("N");
    no.setTSTypegroup(yesorno);
    commonDao.saveOrUpdate(no);

    TSType type_integer = new TSType();
    type_integer.setTypename("Integer");
    type_integer.setTypecode("Integer");
    type_integer.setTSTypegroup(fieldtype);
    commonDao.saveOrUpdate(type_integer);

    TSType type_date = new TSType();
    type_date.setTypename("Date");
    type_date.setTypecode("Date");
    type_date.setTSTypegroup(fieldtype);
    commonDao.saveOrUpdate(type_date);

    TSType type_string = new TSType();
    type_string.setTypename("String");
    type_string.setTypecode("String");
    type_string.setTSTypegroup(fieldtype);
    commonDao.saveOrUpdate(type_string);

    TSType type_long = new TSType();
    type_long.setTypename("Long");
    type_long.setTypecode("Long");
    type_long.setTSTypegroup(fieldtype);
    commonDao.saveOrUpdate(type_long);

    TSType workflow = new TSType();
    workflow.setTypename("工作流引擎表");
    workflow.setTypecode("act");
    workflow.setTSTypegroup(datatable);
    commonDao.saveOrUpdate(workflow);

    TSType systable = new TSType();
    systable.setTypename("系统基础表");
    systable.setTypecode("t_s");
    systable.setTSTypegroup(datatable);
    commonDao.saveOrUpdate(systable);

    TSType business = new TSType();
    business.setTypename("业务表");
    business.setTypecode("t_b");
    business.setTSTypegroup(datatable);
    commonDao.saveOrUpdate(business);

    TSType customwork = new TSType();
    customwork.setTypename("自定义引擎表");
    customwork.setTypecode("t_p");
    customwork.setTSTypegroup(datatable);
    commonDao.saveOrUpdate(customwork);

    TSType news = new TSType();
    news.setTypename("新闻");
    news.setTypecode("news");
    news.setTSTypegroup(filetype);
    commonDao.saveOrUpdate(news);

    TSType man = new TSType();
    man.setTypename("男性");
    man.setTypecode("0");
    man.setTSTypegroup(sex);
    commonDao.saveOrUpdate(man);

    TSType woman = new TSType();
    woman.setTypename("女性");
    woman.setTypecode("1");
    woman.setTSTypegroup(sex);
    commonDao.saveOrUpdate(woman);
  }
View Full Code Here

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

   * @param typecode
   * @param typename
   * @return
   */
  public TSType getType(String typecode, String typename, TSTypegroup tsTypegroup) {
    TSType actType = commonDao.findUniqueByProperty(TSType.class, "typecode", typecode);
    if (actType == null) {
      actType = new TSType();
      actType.setTypecode(typecode);
      actType.setTypename(typename);
      actType.setTSTypegroup(tsTypegroup);
      commonDao.save(actType);
    }
    return actType;

  }
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.