예제 #1
0
파일: Role.cs 프로젝트: sjyanxin/JiaJiao
 public Role(int currentRoleId)
 {
     this.dataRole = new JiaJiao.Data.Role();
     DataRow row = this.dataRole.Retrieve(currentRoleId);
     this.roleId = currentRoleId;
     if (row["Description"] != null)
     {
         this.description = (string) row["Description"];
     }
     Permission permission = new Permission();
     this.permissions = permission.GetPermissionList(currentRoleId);
     this.nopermissions = permission.GetNoPermissionList(currentRoleId);
     this.users = new JiaJiao.Data.User().GetUsersByRole(currentRoleId);
 }
예제 #2
0
 public static DataSet GetRoleList()
 {
     JiaJiao.Data.Role role = new JiaJiao.Data.Role();
     return role.GetRoleList();
 }
예제 #3
0
파일: Role.cs 프로젝트: sjyanxin/JiaJiao
 public Role()
 {
     this.dataRole = new JiaJiao.Data.Role();
 }