Ejemplo n.º 1
0
        /// <summary>
        /// Aggiornamento pannello checkinout
        /// </summary>
        /// <param name="idDocument"></param>
        /// <param name="documentNumber"></param>
        public void Refresh(string idDocument, string documentNumber)
        {
            // Impostazione parametri relativi al documento corrente
            this.IDDocument        = this.documentId.Value = idDocument;
            this.DocumentNumber    = this.documentNumber.Value = documentNumber;
            this.hdnFilePath.Value = CheckOutFilePath;
            lastDocument           = this.LastDocument;
            this.isSigned.Value    = IsSignedFile.ToString();
            // Registrazione eventi javascript
            this.RegisterClientScriptEvents();

            //bool fileExist = false;
            //if (string.IsNullOrEmpty(UIManager.FileManager.getSelectedFile().fileSize))
            //fileExist = true;
            // Verifica se l'utente è abilitato all'utilizzo della funzione

            // Inizializzazione del contesto di checkout per il documento corrente
            CheckInOutServices.InitializeContext();
            this.ViewState["IsUserEnabled"] = true;

            this.ViewState["LastAcquiredDocumentExtension"] = null;
            this.fileExt.Value = LastAcquiredDocumentExtension;
            this.pnlFileExtValue.Update();
            this.CheckInOutController.UpdateCheckOutPath();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Inizializzazione pannello checkinout
        /// </summary>
        /// <param name="idDocument"></param>
        /// <param name="documentNumber"></param>
        public void Initialize(string idDocument, string documentNumber)
        {
            if (!this.IsPostBack)
            {
                // Impostazione parametri relativi al documento corrente
                this.IDDocument     = idDocument;
                this.DocumentNumber = documentNumber;

                // Registrazione eventi javascript
                this.RegisterClientScriptEvents();

                //bool fileExist = false;
                //if (string.IsNullOrEmpty(UIManager.FileManager.getSelectedFile().fileSize))
                //fileExist = true;
                // Verifica se l'utente è abilitato all'utilizzo della funzione
                if (this.UserEnabled) // && fileExist
                {
                    // Inizializzazione del contesto di checkout per il documento corrente
                    CheckInOutServices.InitializeContext();
                }
            }
        }