Exemplo n.º 1
0
        /// <summary>
        /// Creazione oggetto "FileRequest" relativamente all'allegato del documento
        /// </summary>
        /// <returns></returns>
        private DocsPAWA.DocsPaWR.FileRequest GetFileRequestAllegato()
        {
            DocsPAWA.DocsPaWR.Allegato retValue = new DocsPAWA.DocsPaWR.Allegato();
            retValue.numeroPagine = 0;
            retValue.descrizione  = string.Empty;

            ProtocollazioneIngresso.Protocollo.ProtocolloMng protocolloMng = new ProtocollazioneIngresso.Protocollo.ProtocolloMng(this._page);
            retValue.docNumber = protocolloMng.GetDocumentoCorrente().docNumber;

            DocsPAWA.DocsPaWR.DocsPaWebService     ws       = new DocsPAWA.DocsPaWR.DocsPaWebService();
            ProtocollazioneIngresso.Login.LoginMng loginMng = new ProtocollazioneIngresso.Login.LoginMng(this._page);
            retValue = ws.DocumentoAggiungiAllegato(loginMng.GetInfoUtente(), retValue);

            retValue.version = "0";

            loginMng = null;
            ws       = null;

            // Impostazione della descrizione dell'allegato
            retValue.descrizione = "Allegato " + retValue.versionLabel;

            // Inserimento del file request nella scheda documento
            this.AppendFileRequestAllegati(protocolloMng.GetDocumentoCorrente(), retValue);

            return(retValue);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Inserimento del file request nella scheda documento
        /// </summary>
        /// <param name="schedaDocumento"></param>
        /// <param name="fileRequestAllegato"></param>
        private void AppendFileRequestAllegati(DocsPAWA.DocsPaWR.SchedaDocumento schedaDocumento, DocsPAWA.DocsPaWR.Allegato fileRequestAllegato)
        {
            ArrayList list = new ArrayList(schedaDocumento.allegati);

            list.Add(fileRequestAllegato);

            schedaDocumento.allegati = null;

            schedaDocumento.allegati = new DocsPAWA.DocsPaWR.Allegato[list.Count];
            list.CopyTo(schedaDocumento.allegati);
        }