public DocsPAWA.DocsPaWR.DocumentoSmistamento GetCurrentDocument(bool content) { if (this._currentDocument == null || content) { this._currentDocument = this.GetDocumentoTrasmesso(content); } return(this._currentDocument); }
public bool MovePreviousDocument() { bool retValue = false; if (this._currentDocumentIndex > 1) { this._currentDocument = null; this._currentDocumentIndex--; retValue = true; } return(retValue); }
public bool MoveNextDocument() { bool retValue = false; if (this._currentDocumentIndex < this.GetDocumentCount()) { this._currentDocument = null; this._currentDocumentIndex++; retValue = true; } return(retValue); }
public bool MoveFirstDocument() { bool retValue = false; if (this._currentDocumentIndex >= 1) { this._currentDocument = null; this._currentDocumentIndex = 1; retValue = true; } return(retValue); }
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); }
/// <summary> /// Smistamento del documento alle UO selezionate /// </summary> /// <param name="selectedUO"></param> /// <returns></returns> public DocsPAWA.DocsPaWR.EsitoSmistamentoDocumento[] SmistaDocumento(DocsPAWA.DocsPaWR.UOSmistamento[] uoDestinatarie) { ProtocollazioneIngresso.Login.LoginMng loginMng = new ProtocollazioneIngresso.Login.LoginMng(this.Page); DocsPAWA.DocsPaWR.InfoUtente infoUtente = loginMng.GetInfoUtente(); loginMng = null; Protocollo.ProtocolloMng protocolloMng = new Protocollo.ProtocolloMng(this.Page); string idDocumento = protocolloMng.GetDocumentoCorrente().systemId; protocolloMng = null; DocsPAWA.DocsPaWR.DocsPaWebService ws = new DocsPAWA.DocsPaWR.DocsPaWebService(); // Reperimento dati del documento da smistare DocsPAWA.DocsPaWR.DocumentoSmistamento documentoSmistamento = ws.GetDocumentoSmistamento(idDocumento, infoUtente, false); DocsPAWA.DocsPaWR.EsitoSmistamentoDocumento[] retValue = ws.SmistaDocumentoNonTrasmesso( this.CreateMittenteSmistamento(), infoUtente, documentoSmistamento, uoDestinatarie, DocsPAWA.Utils.getHttpFullPath()); try { foreach (DocsPAWA.DocsPaWR.EsitoSmistamentoDocumento item in retValue) { ProtocollazioneIngressoLog.WriteLogEntry(string.Format("Smistamento (Esito: {0} - DenominazioneDestinatario: {1}", item.DescrizioneEsitoSmistamento, item.DenominazioneDestinatario)); } } catch { } return(retValue); }