Esempio n. 1
0
 /**
  * 更新功能
  *
  * @return
  */
 @Action(
     value = "updateFunctionM",
     results = {@Result(name = "json", type = "json")})
 public String updateFunctionM() {
   bean.setId(this.getId());
   bean.setFunctionname(this.getFunctionname());
   bean.setVisitmethodname(this.getVisitmethodname());
   bean.setVisiturl(this.getVisiturl());
   bean.setModuleid(this.getModuleid());
   bean.setCreatetime(BaseTools.systemtime());
   this.getFunctionMService().updateFunctionM(bean);
   this.setSucflag(true);
   return "json";
 }
Esempio n. 2
0
 /**
  * 增加可访问的功能路径或方法
  *
  * @return
  */
 @Action(
     value = "addFunctionM",
     results = {@Result(name = "json", type = "json")})
 public String addFunctionM() {
   FunctionM fm = new FunctionM();
   fm.setId(this.getSerial().Serialid(Serial.FUNCTION));
   fm.setFunctionname(this.getFunctionname());
   fm.setVisitmethodname(this.getVisitmethodname());
   fm.setVisiturl(this.getVisiturl());
   fm.setModuleid(this.getModuleid());
   fm.setCreatetime(BaseTools.systemtime());
   this.getFunctionMService().save(fm);
   this.setSucflag(true);
   return "json";
 }