Package org.jeecgframework.web.system.pojo.base

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


  /**
   * @Description 修复User表
   * @author tanghan 2013-7-23
   */
  private void repairUser() {
    TSDepart eiu = commonDao.findByProperty(TSDepart.class, "departname",
        "信息部").get(0);
    TSDepart RAndD = commonDao.findByProperty(TSDepart.class, "departname",
        "研发室").get(0);

    TSUser admin = new TSUser();
    admin.setSignatureFile("images/renfang/qm/licf.gif");
    admin.setStatus((short) 1);
View Full Code Here


  /**
   * @Description 修复部门表
   * @author tanghan 2013-7-20
   */
  private void repairDepart() {
    TSDepart eiu = new TSDepart();
    eiu.setDepartname("信息部");
    eiu.setDescription("12");
    commonDao.saveOrUpdate(eiu);

    TSDepart desgin = new TSDepart();
    desgin.setDepartname("设计部");
    commonDao.saveOrUpdate(desgin);

    TSDepart RAndD = new TSDepart();
    RAndD.setDepartname("研发室");
    RAndD.setDescription("研发技术难题");
    RAndD.setTSPDepart(desgin);
    commonDao.saveOrUpdate(RAndD);
  }
View Full Code Here

    List<ComboBox> comboBoxs = new ArrayList<ComboBox>();
    List<TSDepart> departs = new ArrayList();
    if (StringUtil.isNotEmpty(id)) {
      TSUser user = systemService.get(TSUser.class, id);
      if (user.getTSDepart() != null) {
        TSDepart depart = systemService.get(TSDepart.class, user.getTSDepart().getId());
        departs.add(depart);
      }
    }
    List<TSDepart> departList = systemService.getList(TSDepart.class);
    comboBoxs = TagUtil.getComboBox(departList, departs, comboBox);
View Full Code Here

  @RequestMapping(params = "add")
  public ModelAndView add(TSDepart depart, HttpServletRequest req) {
    List<TSDepart> departList = systemService.getList(TSDepart.class);
    req.setAttribute("departList", departList);
    if (StringUtil.isNotEmpty(depart.getId())) {
      TSDepart tspDepart = new TSDepart();
      TSDepart tsDepart = new TSDepart();
      depart = systemService.getEntity(TSDepart.class, depart.getId());
      tspDepart.setId(depart.getId());
      tspDepart.setDepartname(depart.getDepartname());
      tsDepart.setTSPDepart(tspDepart);
      req.setAttribute("depart", tsDepart);
    }
    return new ModelAndView("system/depart/depart");
  }
View Full Code Here

    cq.add();
    List<TreeGrid> departList =null;
    departList=systemService.getListByCriteriaQuery(cq, false);
    if(departList.size()==0&&tSDepart.getDepartname()!=null){
      cq = new CriteriaQuery(TSDepart.class);
      TSDepart parDepart = new TSDepart();
      tSDepart.setTSPDepart(parDepart);
      org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, tSDepart);
         departList =systemService.getListByCriteriaQuery(cq, false);
    }
    List<TreeGrid> treeGrids = new ArrayList<TreeGrid>();
View Full Code Here

            rs=st.executeQuery(sql3);
            List dep = new ArrayList();
            i=1;
            while(rs.next())
            {
                 TSDepart tsDepart = new TSDepart();
                 tsDepart.setId(i+"");
                 tsDepart.setDepartname(rs.getString("departname"));
                 tsDepart.setDescription(rs.getString("description"));
                 dep.add(tsDepart);
                 i++;
            }
            root.put("depart", dep);   
           
View Full Code Here

TOP

Related Classes of org.jeecgframework.web.system.pojo.base.TSDepart

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.