public BIM.BusinessEntities.VerificadorPLD ServicioVerificadorPLD(BIM.BusinessEntities.BitacoraPLD parametros) { BIM.BusinessEntities.VerificadorPLD result = null; try { result = (new VerificadorPLDLogic()).ServicioVerificadorPLD(parametros); } catch (Exception ex) { #if (DEBUG) if (Directory.Exists(RepositorioTmpLocal)) { Directory.CreateDirectory(RepositorioTmpLocal); } string msg = DateTime.Today.ToShortDateString() + " - " + DateTime.Today.ToShortTimeString() + " Mensaje error: " + ex.Message; File.AppendAllText(RepositorioTmpLocal + ArchivoError, msg); #else EventLogManager.LogErrorEntry("Error en VerificadorPLDServices.ServicioVerificadorPLD: " + ex.Message); //TODO: Codificar envío de notificación de error al EventLog #endif } return(result); }
public BIM.BusinessEntities.VerificadorPLD ServicioVerificadorPLD(BIM.BusinessEntities.BitacoraPLD parametros) { BIM.BusinessEntities.VerificadorPLD result = null; try { result = (new VerificadorPLDLogic()).ServicioVerificadorPLD(parametros); } catch (Exception ex) { #if (DEBUG) const string fic = @"C:\inetpub\wwwroot\PLD\Prueba.txt"; string texto = ex.Message; System.IO.StreamWriter sw = new System.IO.StreamWriter(fic); sw.WriteLine(texto); sw.Close(); //Console.WriteLine("Error en VerificadorPLDServices.ServicioVerificadorPLD: " + ex.Message); //if (!EventLog.SourceExists(cs)) // EventLog.CreateEventSource(cs, "Application"); //EventLog.WriteEntry(cs, ex.Message, EventLogEntryType.Error); #else EventLogManager.LogErrorEntry("Error en VerificadorPLDServices.ServicioVerificadorPLD: " + ex.Message); //TODO: Codificar envío de notificación de error al EventLog #endif } return(result); }
public List <Catalogo> ListaBusquedaInteligenteTipoTipificacion(string strDatos) { List <Catalogo> result = null; try { result = (new CatalogosLogic()).ListaBusquedaInteligenteTipoTipificacion(strDatos); } catch (Exception ex) { #if (DEBUG) Console.WriteLine("Error en CatalogoServices.ListaBusquedaInteligenteTipoTipificacion: " + ex.Message); #else EventLogManager.LogErrorEntry("Error en CatalogoServices.ListaBusquedaInteligenteTipoTipificacion: " + ex.Message); //TODO: Codificar envío de notificación de error al EventLog #endif } return(result); }
public List <Catalogo> ListadoCatAccionesPLD() { List <Catalogo> result = null; try { result = (new CatalogosLogic()).ListadoCatAccionesPLD(); } catch (Exception ex) { #if (DEBUG) Console.WriteLine("Error en CatalogoServices.ListadoCatAccionesPLD: " + ex.Message); #else EventLogManager.LogErrorEntry("Error en CatalogoServices.ListadoCatAccionesPLD: " + ex.Message); //TODO: Codificar envío de notificación de error al EventLog #endif } return(result); }
/// <summary> /// Permite realizar el alta, modificación y baja de la empresa /// </summary> /// <param name="empresa"></param> /// <param name="tinOpcion"></param> /// <returns></returns> public Resultado setEmpresa(Empresa empresa, short tinOpcion) { Resultado result = new Resultado(); try { result = (new EmpresaLogic()).setEmpresa(empresa, tinOpcion); } catch (Exception ex) { #if (DEBUG) Console.WriteLine("Error en EmpresaServices.setEmpresa: " + ex.Message); #else EventLogManager.LogErrorEntry("Error en EmpresaServices.setEmpresa: " + ex.Message); //TODO: Codificar envío de notificación de error al EventLog #endif } return(result); }
/// <summary> /// Obtiene los datos de la persona /// </summary> /// <param name="intEmpresaID"></param> /// <param name="sintTipoEmpresaID"></param> /// <returns></returns> public List <Empresa> ListarDatosPersona(Int32 @intEmpresaID, Int16 @sintTipoEmpresaID) { List <Empresa> result = new List <Empresa>(); try { result = (new EmpresaLogic()).ListarDatosPersona(@intEmpresaID, @sintTipoEmpresaID); } catch (Exception ex) { #if (DEBUG) Console.WriteLine("Error en EmpresaServices.ListarDatosPersona: " + ex.Message); #else EventLogManager.LogErrorEntry("Error en EmpresaServices.ListarDatosPersona: " + ex.Message); //TODO: Codificar envío de notificación de error al EventLog #endif } return(result); }
public VerificadorPLD ServicioVerificadorPLD(BitacoraPLD parametros) { VerificadorPLD result = null; try { result = (new VerificadorPLDLogic()).ServicioVerificadorPLD(parametros); } catch (Exception ex) { #if (DEBUG) Console.WriteLine("Error en VerificadorPLDServices.ServicioVerificadorPLD: " + ex.Message); #else EventLogManager.LogErrorEntry("Error en VerificadorPLDServices.ServicioVerificadorPLD: " + ex.Message); //TODO: Codificar envío de notificación de error al EventLog #endif } return(result); }
public List <SistemasPLD> ListarSistemasPLD() { List <SistemasPLD> result = null; try { result = (new ListaNegraLogic()).ListarSistemasPLD(); } catch (Exception ex) { #if (DEBUG) Console.WriteLine("Error en ListaNegraServices.ListarSistemasPLD: " + ex.Message); #else EventLogManager.LogErrorEntry("Error en BitacoraInterfacesService.ListaRelCatTipoListNegAccion: " + ex.Message); //TODO: Codificar envío de notificación de error al EventLog #endif } return(result); }
public List <TipoLista> ListarTipoListaPLD() { List <TipoLista> result = null; try { result = (new ListaNegraLogic()).ListarTipoListaPLD(); } catch (Exception ex) { #if (DEBUG) Console.WriteLine("Error en ListaNegraServices.ListarTipoListaPLD: " + ex.Message); #else EventLogManager.LogErrorEntry("Error en ListaNegraServices.ListarTipoListaPLD: " + ex.Message); //TODO: Codificar envío de notificación de error al EventLog #endif } return(result); }
/// <summary> /// Obitiene la lista de la relación de dirección y empresa /// </summary> /// <param name="intPersonaDomEmpreID"></param> /// <param name="intPersonaID"></param> /// <param name="intDireccionID"></param> /// <param name="intEmpresaID"></param> /// <returns></returns> public List <Persona> ListarRelPersonaDireccionEmpresa(Int32 @intPersonaDomEmpreID, Int32 @intPersonaID, Int32 @intDireccionID, Int32 @intEmpresaID) { List <Persona> result = new List <Persona>(); try { result = (new PersonaLogic()).ListarRelPersonaDireccionEmpresa(@intPersonaDomEmpreID, @intPersonaID, @intDireccionID, @intEmpresaID); } catch (Exception ex) { #if (DEBUG) Console.WriteLine("Error en PersonaServices.ListarRelPersonaDireccionEmpresa: " + ex.Message); #else EventLogManager.LogErrorEntry("Error en EmpresaServices.ListarRelPersonaDireccionEmpresa: " + ex.Message); //TODO: Codificar envío de notificación de error al EventLog #endif } return(result); }
public List <BitacoraPLD> ListadoBusquedaBitacoraPLD(string vchUsuario, int?intSistema) { List <BitacoraPLD> result = null; try { result = (new BitacoraLogic()).ListadoBusquedaBitacoraPLD(vchUsuario, intSistema); } catch (Exception ex) { #if (DEBUG) Console.WriteLine("Error en BitacoraPLDServices.ListadoBusquedaBitacoraPLD: " + ex.Message); #else EventLogManager.LogErrorEntry("Error en BitacoraPLDServices.ListadoBusquedaBitacoraPLD: " + ex.Message); //TODO: Codificar envío de notificación de error al EventLog #endif } return(result); }
/// <summary> /// Permite realizar el alta, modificación o baja de los datos de domicilio /// </summary> /// <param name="direccion"></param> /// <param name="tinOpcion"></param> /// <returns></returns> public Resultado setDomicilio(Direccion direccion, short tinOpcion) { Resultado result = new Resultado(); try { result = (new DireccionLogic()).setDomicilio(direccion, tinOpcion); } catch (Exception ex) { #if (DEBUG) Console.WriteLine("Error en DireccionServices.setDomicilio: " + ex.Message); #else EventLogManager.LogErrorEntry("Error en DireccionServices.setDomicilio: " + ex.Message); //TODO: Codificar envío de notificación de error al EventLog #endif } return(result); }
/// <summary> /// Devuelve la lista de datos de personas /// </summary> /// <param name="intDireccionID"></param> /// <param name="intMunicipioID"></param> /// <param name="intEstadoID"></param> /// <param name="intLocalidadID"></param> /// <param name="intTipoDomicilioID"></param> /// <returns></returns> public List <Direccion> ListarDatosPersona(Int32 @intDireccionID, Int32 @intMunicipioID, Int32 @intEstadoID, Int32 @intLocalidadID, Int32 @intTipoDomicilioID) { List <Direccion> result = new List <Direccion>(); try { result = (new DireccionLogic()).ListarDatosPersona(@intDireccionID, @intMunicipioID, @intEstadoID, @intLocalidadID, @intTipoDomicilioID); } catch (Exception ex) { #if (DEBUG) Console.WriteLine("Error en DireccionServices.ListarDatosPersona: " + ex.Message); #else EventLogManager.LogErrorEntry("Error en DireccionServices.ListarDatosPersona: " + ex.Message); //TODO: Codificar envío de notificación de error al EventLog #endif } return(result); }
static void Main(string[] args) { Uri baseAddress = new Uri("http://localhost:8000/Cotizacion/"); ServiceHost selfHost = new ServiceHost(typeof(FormatosCotizacionService), baseAddress); try { // Step 5: Start the service. selfHost.Open(); Console.WriteLine($"The service is ready. '{baseAddress}'"); // Close the ServiceHost to stop the service. Console.WriteLine("Press <Enter> to terminate the service."); Console.ReadLine(); } catch (Exception exception) { EventLogManager.LogErrorEntry(exception); Console.WriteLine(exception.Message); Console.WriteLine("Press <Enter> to terminate the service."); Console.ReadLine(); } selfHost.Close(); }