Beispiel #1
0
        protected void LinkButton3_Click(object sender, EventArgs e)
        {
            List <interop.PERMISSION> permisionsByUser         = new PermissionsDAL().GetPermisionsByUser((interop.USER) this.Session["user"]);
            List <HelpClassUsers>     permissionsByInstitution = new UsersDAL().GetUsersPermissionsByInstitution(true, permisionsByUser[0].INSTITUTION);

            permissionsByInstitution.AddRange((IEnumerable <HelpClassUsers>) new UsersDAL().GetUsersPermissionsByInstitution(false, permisionsByUser[0].INSTITUTION));
            this.Application["ListUsersPermissions"] = (object)permissionsByInstitution;
            this.CustomersGridView.DataSource        = (object)permissionsByInstitution;
            this.CustomersGridView.DataBind();
            this.ClearStyleSubmeni();
            this.LinkButton3.CssClass = "subselected";
        }
Beispiel #2
0
        protected void LinkButton3_Click(object sender, EventArgs e)
        {
            List <HelpClassUsers> institutionsPermissions = new UsersDAL().GetUsersInstitutionsPermissions(2, true);

            institutionsPermissions.AddRange((IEnumerable <HelpClassUsers>) new UsersDAL().GetUsersInstitutionsPermissions(2, false));
            this.Application["ListUsersPermissions"] = (object)institutionsPermissions;
            this.IGridView.DataSource = (object)institutionsPermissions;
            this.IGridView.DataBind();
            this.IGridView.SelectedIndex = -1;
            this.CheckBoxListOwner.Items.Clear();
            this.CheckBoxListUser.Items.Clear();
            this.ClearStyleSubmeni();
        }
Beispiel #3
0
        protected void LinkButton3_Click(object sender, EventArgs e)
        {
            List <INSTITUTION>    list = (List <INSTITUTION>) this.Application["DropDownInstitutions"];
            List <HelpClassUsers> permissionsByInstitution = new UsersDAL().GetUsersPermissionsByInstitution(true, list[0]);

            permissionsByInstitution.AddRange((IEnumerable <HelpClassUsers>) new UsersDAL().GetUsersPermissionsByInstitution(false, list[0]));
            this.Application["ListUsersPermissions"] = (object)permissionsByInstitution;
            this.IGridView.DataSource = (object)permissionsByInstitution;
            this.IGridView.DataBind();
            this.IGridView.SelectedIndex = -1;
            this.CheckBoxListUser.Items.Clear();
            this.ClearStyleSubmeni();
        }