Package net.loyin.ftl

Examples of net.loyin.ftl.OrgSelectTarget


    if(pid!=null&&!"".equals(pid.trim())){
      whee.append(" and p.pid = ?");
      param.add(Long.parseLong(pid));
    }
    setAttr("pid", pid);
    setAttr(OrgSelectTarget.targetName,new OrgSelectTarget());
    setAttr(PartmentSelectTarget.targetName,new PartmentSelectTarget());
    setAttr("page", Db.paginate(getParaToInt("pageNum", 1),getParaToInt("numPerPage", 20),
        "select p.id,concat(o.name,'[',o.num,']') 所属机构, concat(p.name,'[',p.num,']') 部门名称,e.fullname 部门主管,p.remark 备注 ",
        " from  partment p  join organization o on o.id=p.orgid join employee e on e.id=p.picid "+whee.toString(),param.toArray()));
    setAttr("collist", new String[]{"所属机构","部门名称","部门主管","备注"});
View Full Code Here


    if(id!=null&&id!=0){
      partment=Partment.dao.findById(id);
    }
    partment.set("pid",pid);
    setAttr("pojo",partment);
    setAttr(OrgSelectTarget.targetName,new OrgSelectTarget());
    setAttr(PartmentSelectTarget.targetName,new PartmentSelectTarget());
    setAttr(EmployeeSelectTarget.targetName,new EmployeeSelectTarget());
    render("add.html");
  }
View Full Code Here

    pojo.set("partmentid", pid);
    pojo.set("orgid", orgid);
    if (id != 0) {
      pojo = Employee.dao.findById(id);
    }
    setAttr(OrgSelectTarget.targetName, new OrgSelectTarget());
    setAttr(PartmentSelectTarget.targetName, new PartmentSelectTarget());
    setAttr("pojo", pojo);
    render("add.html");
  }
View Full Code Here

TOP

Related Classes of net.loyin.ftl.OrgSelectTarget

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.