示例#1
0
        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);
            }
        }
示例#2
0
        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);
            }
        }
示例#3
0
        /// <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));
                }
            }
        }
示例#4
0
        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);
            }
        }