private void Page_Load(object sender, System.EventArgs e) { try { // 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.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.InitializeControlsDettagliDocumento(); } else { throw new ApplicationException("Parametri mancanti"); } this.ShowButtonBackToSearchResult(); this.ShowButtonVisualizzaDocumento(); } catch (Exception ex) { ErrorManager.redirect(this, ex); } }
/// <summary> /// Caricamento dati parole chiavi /// </summary> private void Fetch() { DocumentoHandler handler = new DocumentoHandler(); DocumentoParolaChiave[] items = handler.GetParoleChiavi(); if (items.Length == 0) { this.listParoleChiavi.Items.Add(this.GetListItemParolaChiave(null)); } else { foreach (DocumentoParolaChiave item in items) { this.listParoleChiavi.Items.Add(this.GetListItemParolaChiave(item)); this.AddParolaChiaveViewState(new ParolaChiave(item.idAmministrazione, item.systemId, item.descrizione)); } } }
private void Page_Load(object sender, System.EventArgs e) { try { string idProfile; string docNumber; string versionId; bool isAllegato; this.ParsePageParameters(out idProfile, out docNumber, out versionId, out isAllegato); DocumentoHandler handler = new DocumentoHandler(); SchedaDocumento schedaDocumento = handler.GetDocumento(idProfile, docNumber); this.ShowFileDocument(schedaDocumento, versionId, isAllegato); } catch (Exception ex) { ErrorManager.redirect(this, ex); } }