Package net.loyin.model

Examples of net.loyin.model.Menu


    render("add.html");
  }

  public void save() {
    try{
      Menu m=getModel(Menu.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


    this.setAttr("collist", new String[]{"名称","类别","级别","链接","排序","安全码","图标","状态"});
    render("index.html");
  }
  public void add() {
    Long id = this.getParaToLong(0, 0L);
    Menu menu=new Menu();
    if(id!=null&&id!=0){
      menu=Menu.dao.findById(id);
    }
    setAttr("pojo",menu);
    render("add.html");
View Full Code Here

    }
    setAttr("pojo",menu);
    render("add.html");
  }
  public void child(){
    Menu pojo=new Menu();
    pojo.set("pid", getParaToLong(0, 0L));
    setAttr("pojo",pojo);
    render("add.html");
  }
View Full Code Here

TOP

Related Classes of net.loyin.model.Menu

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.