private void Page_Load(object sender, System.EventArgs e) { try { // Reperimento parametri query string this.idProfile = this.GetQueryStringParameter("iddoc"); this.docNum = this.GetQueryStringParameter("docnum"); if (idProfile != string.Empty && docNum != string.Empty) { DocumentoHandler handler = new DocumentoHandler(); this._schedaDocumento = handler.GetDocumento(this.idProfile, this.docNum); // Caricamento dettagli generali del documento this.GetDettagliGenerali().Initialize(this._schedaDocumento, true); this.InitializeControlMenuDocumento(); if (!this.IsPostBack) { this.Fetch(); } } else { throw new ApplicationException("Parametri mancanti"); } } catch (Exception ex) { ErrorManager.redirect(this, ex); } }
private void Page_Load(object sender, System.EventArgs e) { try { // Reperimento parametri query string this.idProfile = this.GetQueryStringParameter("iddoc"); this.docNum = this.GetQueryStringParameter("docnum"); if (idProfile != string.Empty && docNum != string.Empty) { DocumentoHandler handler = new DocumentoHandler(); this._schedaDocumento = handler.GetDocumento(this.idProfile, this.docNum); this.InitializeControlMenuDocumento(); this.Fetch(); // Impostazione visibilità campi UI this.SetFieldsVisibility(); } else { throw new ApplicationException("Parametri mancanti"); } } catch (Exception ex) { ErrorManager.redirect(this, ex); } }
private void Page_Load(object sender, System.EventArgs e) { try { ListPagingNavigationControls ctl = this.GetPagingNavigationControls(); ctl.OnPageChanged += new DocsPAWA.SitoAccessibile.Paging.ListPagingNavigationControls.PageChangedDelegate(this.GridPaging_OnPageChanged); if (!this.IsPostBack) { // Impostazione valori di default this.SetDefaultValues(); } // Reperimento parametri query string this.idProfile = this.GetQueryStringParameter("iddoc"); this.docNum = this.GetQueryStringParameter("docnum"); this.activeMenu = this.GetQueryStringParameter("activemenu"); if (idProfile != string.Empty && docNum != string.Empty) { DocumentoHandler handler = new DocumentoHandler(); this._schedaDocumento = handler.GetDocumento(this.idProfile, this.docNum); this.InitializeControlMenuDocumento(); // Caricamento dettagli generali del documento this.GetDettagliGenerali().Initialize(this._schedaDocumento, true); if (!this.IsPostBack) { this.Fetch(); } } else { throw new ApplicationException("Parametri mancanti, impossibile caricare il documento"); } } catch (Exception ex) { ErrorManager.redirect(this, ex); } }