コード例 #1
0
        public static TipoNotifica getTipoNotifica(string systemIdTipoNotifica)
        {
            try
            {
                TipoNotifica tiponotifica = null;

                if (string.IsNullOrEmpty(systemIdTipoNotifica))
                {
                    return(tiponotifica);
                }

                try
                {
                    tiponotifica = _ws.getTipoNotifica(systemIdTipoNotifica);
                }
                catch (Exception e)
                {
                    throw SoapExceptionParser.GetOriginalException(e);
                }

                return(tiponotifica);
            }
            catch (System.Exception ex)
            {
                UIManager.AdministrationManager.DiagnosticError(ex);
                return(null);
            }
        }
コード例 #2
0
        /// <summary>
        /// Metodo per la ricerca delle notifiche di spedizione relative al documento specificato
        /// </summary>
        public static Notifica[] getNotifica(string docnumber)
        {
            try
            {
                Notifica[] notifica = null;

                if (string.IsNullOrEmpty(docnumber))
                {
                    return(notifica);
                }

                try
                {
                    notifica = _ws.ricercaNotifica(docnumber);
                }
                catch (Exception e)
                {
                    throw SoapExceptionParser.GetOriginalException(e);
                }

                return(notifica);
            }
            catch (System.Exception ex)
            {
                UIManager.AdministrationManager.DiagnosticError(ex);
                return(null);
            }
        }
コード例 #3
0
        /// <summary>
        /// Funzione per la generazione dell'anagrafica dei report
        /// </summary>
        /// <param name="contextName">Nome del contesto</param>
        /// <returns>Anagrafica dei report</returns>
        public static ReportMetadata[] GetReportRegistry(String contextName)
        {
            PrintReportResponse response = null;

            try
            {
                response = docsPaWS.GetReportRegistry(contextName);
            }
            catch (Exception e)
            {
                SoapExceptionParser.ThrowOriginalException(e);
            }

            return(response.ReportMetadata);
        }
コード例 #4
0
        /// <summary>
        /// Funzione per la generazione di un report
        /// </summary>
        /// <param name="request">Informazioni sul report da generare</param>
        /// <returns>Report prodotto</returns>
        public static FileDocumento GenerateReport(PrintReportRequest request)
        {
            PrintReportResponse response = null;

            try
            {
                response = docsPaWS.GenerateReport(request);
            }
            catch (Exception e)
            {
                SoapExceptionParser.ThrowOriginalException(e);
            }

            return(response.Document);
        }
コード例 #5
0
ファイル: RegisterRepertories.cs プロジェクト: sebbalex/PITre
        /// <summary>
        /// Metodo per la generazione di una stampa di repertorio
        /// </summary>
        /// <param name="role"></param>
        /// <param name="userInfo"></param>
        /// <param name="rfId"></param>
        /// <param name="registryId"></param>
        /// <param name="counterId"></param>
        /// <returns></returns>
        public static SchedaDocumento GeneratePrintRepertorio(Ruolo role, InfoUtente userInfo, String rfId, String registryId, String counterId)
        {
            SchedaDocumento retVal = null;

            try
            {
                retVal = docsPaWS.GeneratePrintRepertorio(
                    new GeneratePrintRepertorioRequest()
                {
                    CounterId  = counterId,
                    RegistryId = registryId,
                    RfId       = rfId,
                    Role       = role,
                    UserInfo   = userInfo
                }).Document;
            }
            catch (Exception e)
            {
                SoapExceptionParser.ThrowOriginalException(e);
            }
            return(retVal);
        }