Package net.loyin.model

Examples of net.loyin.model.Partment


    render("index.html");
  }
  public void add() {
    Long id = getParaToLong(0, 0L);
    Long pid = getParaToLong(1, 0L);
    Partment partment=new Partment();
    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


    setAttr(EmployeeSelectTarget.targetName,new EmployeeSelectTarget());
    render("add.html");
  }
  public void save() {
    try{
      Partment m=getModel(Partment.class);
      if(m.getLong("id")!=null){
        m.update();
      }else{
        m.save();
      }
      toDwzJson( 200, "保存成功!", navTabId);
    }catch(Exception e){
      log.error("保存部门异常",e);
      toDwzJson(300, "保存异常!");
View Full Code Here

TOP

Related Classes of net.loyin.model.Partment

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.