示例#1
0
 public DocsPaWR.DocumentoSmistamento GetCurrentDocument(bool content)
 {
     if (this._currentDocument == null || content)
     {
         this._currentDocument = this.GetDocumentoTrasmesso(content);
     }
     return(this._currentDocument);
 }
示例#2
0
        public bool MovePreviousDocument()
        {
            bool retValue = false;

            if (this._currentDocumentIndex > 1)
            {
                this._currentDocument = null;
                this._currentDocumentIndex--;
                retValue = true;
            }

            return(retValue);
        }
示例#3
0
        public bool MoveNextDocument()
        {
            bool retValue = false;

            if (this._currentDocumentIndex < this.GetDocumentCount())
            {
                this._currentDocument = null;
                this._currentDocumentIndex++;
                retValue = true;
            }

            return(retValue);
        }
示例#4
0
        public bool MoveFirstDocument()
        {
            bool retValue = false;

            if (this._currentDocumentIndex >= 1)
            {
                this._currentDocument      = null;
                this._currentDocumentIndex = 1;
                retValue = true;
            }

            return(retValue);
        }
示例#5
0
        public bool MoveAbsoluteDocument(int documentIndex)
        {
            bool retValue = false;

            if (documentIndex >= 1 &&
                documentIndex <= this._datiDocumentiTrasmessi.Count)
            {
                this._currentDocument      = null;
                this._currentDocumentIndex = documentIndex;
                retValue = true;
            }

            return(retValue);
        }
示例#6
0
        /// <summary>
        /// Info del singolo documento trasmesso
        /// </summary>
        /// <returns></returns>
        private DocsPaWR.DocumentoSmistamento GetDocumentoTrasmesso(bool content)
        {
            DocsPaWR.DocumentoSmistamento retValue = null;
            if (this._datiDocumentiTrasmessi.Count > 0)
            {
                string idDocumentoTrasmesso = ((DocsPaWR.DatiTrasmissioneDocumento) this._datiDocumentiTrasmessi[this._currentDocumentIndex - 1]).IDDocumento;

                if (PdfConverterInfo.ShowDocumentAsPdfFormat)
                {
                    // Conversione pdf inline del documento
                    bool pdfConverted;
                    retValue = docsPaWS.GetDocumentoSmistamentoAsPdf(idDocumentoTrasmesso, this._infoUtente, content, out pdfConverted);
                }
                else
                {
                    // retValue = docsPaWS.GetDocumentoSmistamento(idDocumentoTrasmesso, this._infoUtente, content);
                    retValue = docsPaWS.GetDocumentoSmistamento(idDocumentoTrasmesso, this._infoUtente, false);
                }
            }

            return(retValue);
        }