Esempio n. 1
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);
        }
Esempio n. 2
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);
        }
Esempio n. 3
0
        /// <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);
        }