private void SetControl(eControl Control) { divUser.Visible = false; pnlAuthority.Visible = false; PageIndex = 0; switch (Control) { case eControl.User: LoadUserGrid(ePageIndex.Custom); CheckVisibleButton(); divUser.Visible = true; break; case eControl.Authority: ManageAuthority.LoadAuthorityDetail(0, txtUsersId.zToInt().Value, "User"); pnlAuthority.Visible = true; break; } }
private void SetControl(eControl Control) { pnlDesignation.Visible = false; pnlDesignationAuthority.Visible = false; switch (Control) { case eControl.Designation: pnlDesignation.Visible = true; LoadDesignationGrid(ePageIndex.Custom); CheckVisibleButton(); break; case eControl.DesignationAuthority: pnlDesignationAuthority.Visible = true; ManageAuthority.LoadAuthorityDetail(lblDesignationId.zToInt().Value, 0, "Designation"); break; default: break; } }