/// <summary> /// Event handler for the page load event /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, System.EventArgs e) { pagTitle.InnerText = ResourceManager.GetString("pagTitle"); // Get the unit id from the querystring this.m_intUnitID = int.Parse(Request.QueryString["UnitID"]); WebSecurity.CheckUnitAdministrator(this.m_intUnitID); if (!Page.IsPostBack) { BusinessServices.Unit objUnit = new BusinessServices.Unit(); DataSet dstUnits = objUnit.GetUnitsTreeByUserID(UserContext.UserData.OrgID, UserContext.UserID, 'A'); // Get permissions of the user on this unit string strPermission = objUnit.GetPermission(this.m_intUnitID, UserContext.UserID); // If administrator if (strPermission == "A") { this.chkAdminSub.Visible = false; } this.tblPagination.Visible = false; } }