예제 #1
0
파일: Role.cs 프로젝트: sidny/d4d-studio
 public Role(int currentRoleId)
 {
     this.dataRole = new LTP.Accounts.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 LTP.Accounts.Data.User().GetUsersByRole(currentRoleId);
 }
예제 #2
0
        public Role(int currentRoleId)
        {
            this.dataRole = new LTP.Accounts.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 LTP.Accounts.Data.User().GetUsersByRole(currentRoleId);
        }
예제 #3
0
 public static DataSet GetRoleList()
 {
     LTP.Accounts.Data.Role role = new LTP.Accounts.Data.Role();
     return(role.GetRoleList());
 }
예제 #4
0
 public static DataSet GetRoleList()
 {
     LTP.Accounts.Data.Role role = new LTP.Accounts.Data.Role();
     return role.GetRoleList();
 }
예제 #5
0
파일: Role.cs 프로젝트: sidny/d4d-studio
 public Role()
 {
     this.dataRole = new LTP.Accounts.Data.Role();
 }
예제 #6
0
 public Role()
 {
     this.dataRole = new LTP.Accounts.Data.Role();
 }
예제 #7
0
파일: Role.cs 프로젝트: screwcat/pipe
 public bool Update()
 {
     Data.Role role = new LTP.Accounts.Data.Role(PubConstant.ConnectionString);
     return(role.Update(this.roleId, this.description));
 }