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); } }
/// <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); } }
/// <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); }
/// <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); }
/// <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); }