Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            infoUtente    = UserManager.getInfoUtente(this);
            fileRequest   = FileManager.getSelectedFile(this);
            timestampsDoc = DocumentManager.getTimestampsDoc(infoUtente, fileRequest);

            if (!IsPostBack)
            {
                caricaDgTimestamp();
            }

            AdminTool.UserControl.ScrollKeeper skTimestamps = new AdminTool.UserControl.ScrollKeeper();
            skTimestamps.WebControl = "div_timestamps";
            this.Form.Controls.Add(skTimestamps);

            if (UserManager.getRuolo(this).funzioni.Where(funz => funz.codice.ToUpper().Equals("DO_TIMESTAMP")).FirstOrDefault() != null)
            {
                btn_associaTimestamp.Enabled = true;
                btn_creaTsd.Enabled          = true;
            }
        }
Example #2
0
 /// <summary>
 ///
 /// </summary>
 private void RegisterScrollKeeper(string divID)
 {
     AdminTool.UserControl.ScrollKeeper scrollKeeper = new AdminTool.UserControl.ScrollKeeper();
     scrollKeeper.WebControl = divID;
     this.Form.Controls.Add(scrollKeeper);
 }
Example #3
0
 /// <summary>
 ///
 /// </summary>
 private void RegisterScrollKeeper(string divID)
 {
     AdminTool.UserControl.ScrollKeeper scrollKeeper = new AdminTool.UserControl.ScrollKeeper();
     scrollKeeper.WebControl = divID;
     this.frmCheckedOutDocuments.Controls.Add(scrollKeeper);
 }
Example #4
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Expires = -1;

            //provo a prendere la scheda da sessione se è diversa da zero
            DocsPaWR.SchedaDocumento schedaCorrente = this.CurrentSchedaDocumento;

            //se vengo dalle maschere di ricerche ho in query string altri due parametri (docnumber,idrofile)
            //che mi permettono di recupare da db il dettaglio documento.
            if (schedaCorrente == null)
            {
                schedaCorrente = new DocsPAWA.DocsPaWR.SchedaDocumento();

                string docNumber = string.Empty;
                string idProfile = string.Empty;

                if (!string.IsNullOrEmpty(Request.QueryString["docnumber"]))
                {
                    docNumber = Request.QueryString["docnumber"];
                }

                if (!string.IsNullOrEmpty(Request.QueryString["idprofile"]))
                {
                    idProfile = Request.QueryString["idprofile"];
                }

                schedaCorrente = DocumentManager.getDettaglioDocumento(this, idProfile, docNumber);
            }

            if (!this.IsPostBack)
            {
                // Reperimento versionid della versione correntemente selezionata
                this.VersionId = this.SelectedFile.versionId;

                if (this.SelectedFile.GetType() == typeof(DocsPaWR.Allegato))
                {
                    this.OnTabAllegati = true;

                    // Visualizzazione allegato da tab allegati del documento principale
                    this.VersionIdDocumentoPrincipale = schedaCorrente.documenti[0].versionId;

                    //foreach (DocsPaWR.FileRequest fileRequest in schedaCorrente.documenti)
                    //{
                    //    if (this.IsAcquired(fileRequest))
                    //    {
                    //        // Reperimento versionid dell'ultima versione acquisita del documento principale
                    //        this.VersionIdDocumentoPrincipale = fileRequest.versionId;
                    //        break;
                    //    }
                    //}
                }
                else
                {
                    this.OnTabAllegati = false;

                    this.VersionIdDocumentoPrincipale = this.VersionId;
                }

                this.Bind();
            }

            // imposto titleBar
            if (schedaCorrente.protocollo == null)
            {
                this.Title = "Documento non Protocollato N° " + schedaCorrente.docNumber;
            }
            else
            {
                this.Title = "Segnatura di Protocollo: " + schedaCorrente.protocollo.segnatura;
            }

            if (!string.IsNullOrEmpty(Request.QueryString["id"]))
            {
                //btn_visualizza
                if (!string.IsNullOrEmpty(Request.QueryString["visInOrig"]))
                {
                    this._frameSrc = "docVisualizza.aspx?id=" + Request.QueryString["id"].ToString() + "&visInOrig=" + Request.QueryString["visInOrig"].ToString();
                }
                else
                {
                    this._frameSrc = "docVisualizza.aspx?id=" + Request.QueryString["id"].ToString();
                }
                //btn_visualizza con segnatura
                if (!string.IsNullOrEmpty(Request.QueryString["plusEtic"]))
                {
                    this._frameSrc += "&plusEtic=1&pos=" + Request.QueryString["pos"].ToString() +
                                      "&tipo=" + Request.QueryString["tipo"].ToString() +
                                      "&rotazione=" + Request.QueryString["rotazione"].ToString() +
                                      "&carattere=" + Request.QueryString["carattere"].ToString() +
                                      "&colore=" + Request.QueryString["colore"].ToString() +
                                      "&orientamento=" + Request.QueryString["orientamento"].ToString();
                    //Mev Firma1 - aggiunto parametro notimbro <
                    if (Session["notimbro"] != null)
                    {
                        this._frameSrc += "&notimbro=" + Session["notimbro"].ToString();
                    }
                    else
                    {
                        this._frameSrc += "&notimbro=false";
                    }
                    //>
                    if (Request.QueryString["save"] != null && (!string.IsNullOrEmpty(Request.QueryString["save"].ToString())))
                    {
                        this._frameSrc += "&save=true";
                    }
                }
            }

            AdminTool.UserControl.ScrollKeeper skVisUnificata = new AdminTool.UserControl.ScrollKeeper();
            skVisUnificata.WebControl = "pnlButton";
            this.Form.Controls.Add(skVisUnificata);
            this.pnlButton.Width = Unit.Percentage(100);

            if (!this.IsPostBack)
            {
                // Reperimento versione correntemente visualizzata
                DocsPaWR.FileRequest currentVersion = this.SelectedFile;
                if (this.IsAcquired(currentVersion))
                {
                    // Se acquisita, visualizzazione della versione
                    this.ShowVersion(currentVersion);
                }
            }
        }