Exemplo n.º 1
0
 /**
  * 增加角色
  *
  * @return
  */
 @Action(
     value = "addRoleM",
     results = {@Result(name = "json", type = "json")})
 public String addRoleM() {
   RoleM rm = new RoleM();
   rm.setId(this.getSerial().Serialid(Serial.ROLE));
   rm.setRolename(this.getRolename());
   rm.setNote(this.getNote());
   rm.setCreatetime(BaseTools.systemtime());
   this.getRoleMService().save(rm);
   this.getRoleFunctionMService().addRoleFunctionM(rm, this.getFunctionid().trim());
   this.setSucflag(true);
   return "json";
 }