using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.Text; using ULA.Cathay.IntegracionesSAP.EstructuraEPower; using Ultimus.Utilitarios; using System.Reflection; namespace ULA.Cathay.IntegracionesSAP { public class IntegracionesEPower : IIntegracionesEPower { private UltimusLogs logs = new UltimusLogs("IntegracionesEPower"); public bool setNewCorrespondencia(setNewCorrespondenciaRequestBody req) { bool Respuesta = false; try { using (EstructuraEPower.WS_eP_CathaySoapClient Conn = new EstructuraEPower.WS_eP_CathaySoapClient()) { Respuesta = Conn.setNewCorrespondencia(req.codigo_cliente, req.numero_identificacion, req.nombre, req.tipo, req.anno, req.estado, req.id_tramite, req.tipo_documento, req.nombre_referencia, req.extencion_referencia, req.cuerpo_referencia); } } catch (Exception ex) { logs.Error(ex); } return Respuesta; } public bool setNewExpedientes_Aprobaciones(setNewExpedientes_AprobacionesRequestBody req) { bool Respuesta = false; try { using (EstructuraEPower.WS_eP_CathaySoapClient Conn = new EstructuraEPower.WS_eP_CathaySoapClient()) { Respuesta = Conn.setNewExpedientes_Aprobaciones( req.codigo_cliente, req.numero_identificacion, req.nombre, req.tipo_documento, req.numero_caratula, req.fecha_vencimiento, req.estado, req.id_tramite, req.fecha_aprobacion, req.nombre_referencia, req.extencion_referencia, req.cuerpo_referencia); } } catch (Exception ex) { logs.Error(ex); } return Respuesta; } public bool setNewFacilidades(setNewFacilidadesRequestBody req) { bool Respuesta = false; try { using (EstructuraEPower.WS_eP_CathaySoapClient Conn = new EstructuraEPower.WS_eP_CathaySoapClient()) { Respuesta = Conn.setNewFacilidades(req.codigo_cliente, req.numero_identificacion, req.nombre, req.seccion, req.numero_operacion, req.estado, req.numero_documento, req.id_tramite, req.nombre_referencia, req.extencion_referencia, req.cuerpo_referencia); } } catch (Exception ex) { logs.Error(ex); } return Respuesta; } public bool setNewGarantias(setNewGarantiasRequestBody req) { bool Respuesta = false; try { using (EstructuraEPower.WS_eP_CathaySoapClient Conn = new EstructuraEPower.WS_eP_CathaySoapClient()) { Respuesta = Conn.setNewGarantias(req.codigo_cliente, req.numero_identificacion, req.nombre, req.seccion, req.tipo_documento, req.fecha_vencimiento, req.estado, req.identificador, req.fecha_emision, req.id_tramite, req.tipo_avaluo, req.nombre_referencia, req.extencion_referencia, req.cuerpo_referencia); } } catch (Exception ex) { logs.Error(ex); } return Respuesta; } public bool setNewInformacion_Financiera(setNewInformacion_FinancieraRequestBody req) { bool Respuesta = false; try { using (EstructuraEPower.WS_eP_CathaySoapClient Conn = new EstructuraEPower.WS_eP_CathaySoapClient()) { Respuesta = Conn.setNewInformacion_Financiera(req.codigo_cliente, req.numero_identificacion, req.nombre, req.condicion, req.tipo_persona, req.anno, req.estado, req.tipo_documento, req.mes, req.id_tramite, req.nombre_referencia, req.extencion_referencia, req.cuerpo_referencia); } } catch (Exception ex) { logs.Error(ex); } return Respuesta; } public bool setNewInformacion_General_Cliente(setNewInformacion_General_ClienteRequestBody req) { bool Respuesta = false; try { using (EstructuraEPower.WS_eP_CathaySoapClient Conn = new EstructuraEPower.WS_eP_CathaySoapClient()) { Respuesta = Conn.setNewInformacion_General_Cliente(req.codigo_cliente, req.numero_identificacion, req.nombre, req.seccion, req.condicion, req.tipo_persona, req.tipo_documento, req.fecha_vencimiento, req.anno, req.estado, req.fecha_emision, req.nombre_persona, req.id_tramite, req.nombre_referencia, req.extencion_referencia, req.cuerpo_referencia); } } catch (Exception ex) { logs.Error(ex); } return Respuesta; } } }