Beispiel #1
0
 /*
  * 角色下拉数据
  * @see com.cxstock.biz.power.RoleBiz#deleteRole(java.lang.Integer)
  */
 public List findRoleType() {
   List list = new ArrayList();
   List<Role> roleList = baseDao.listAll("Role");
   for (Role role : roleList) {
     ComboData dto = new ComboData();
     dto.setValue(role.getRoleid().toString());
     dto.setText(role.getRolename());
     list.add(dto);
   }
   return list;
 }