Exemplo n.º 1
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);
 }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public static DataSet GetRoleList()
 {
     LTP.Accounts.Data.Role role = new LTP.Accounts.Data.Role();
     return(role.GetRoleList());
 }
Exemplo n.º 4
0
 public static DataSet GetRoleList()
 {
     LTP.Accounts.Data.Role role = new LTP.Accounts.Data.Role();
     return role.GetRoleList();
 }
Exemplo n.º 5
0
 public Role()
 {
     this.dataRole = new LTP.Accounts.Data.Role();
 }
Exemplo n.º 6
0
 public Role()
 {
     this.dataRole = new LTP.Accounts.Data.Role();
 }
Exemplo n.º 7
0
 public bool Update()
 {
     Data.Role role = new LTP.Accounts.Data.Role(PubConstant.ConnectionString);
     return(role.Update(this.roleId, this.description));
 }