Пример #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
        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);
            }
        }