public List <O_LISTAR_DOCUMENTO> ListarDocumento(string strCredencial, O_LISTAR_DOCUMENTO oListarDocumento, ref string strMensajeError) { using (var ctx = new EntidadesSisReservas()) { try { var objListado = ctx.PGET_LISTADOS_P_LISTAR_DOCUMENTO(strCredencial, oListarDocumento.ID_DOCUMENTO, oListarDocumento.ID_PERSONA, oListarDocumento.ID_TIPO_DOCUMENTO, oListarDocumento.TIPO_DOCUMENTO, oListarDocumento.NUMERO_DOCUMENTO, oListarDocumento.DESCRIPCION, oListarDocumento.APP_ID_USUARIO, oListarDocumento.AUD_ESTADO, oListarDocumento.FECHA_REGISTRO ).ToList(); return(objListado); } catch (Exception ex) { strMensajeError = "Error 200: " + ex.Message + "-" + ex.InnerException; return(null); } } }
public List <O_RESULTADO> RegistrarDocumento(string strCredencial, O_LISTAR_DOCUMENTO oDocumento, ref string strMensajeError) { using (var ctx = new EntidadesSisReservas()) { try { var objResultado = ctx.PGET_GESTION_P_REGISTRA_DOCUMENTO(strCredencial, oDocumento.ID_DOCUMENTO, oDocumento.ID_PERSONA, oDocumento.ID_TIPO_DOCUMENTO, oDocumento.NUMERO_DOCUMENTO, oDocumento.DESCRIPCION, oDocumento.APP_ID_USUARIO, oDocumento.AUD_ESTADO, oDocumento.FECHA_REGISTRO ).ToList(); return(objResultado); } catch (Exception ex) { strMensajeError = "CPersistenciaRepositorio " + ex.Message + " " + ex.InnerException; return(null); } } }
public void registrarPersona(string nombre, decimal documento, decimal genero, decimal tipoPersona) { try { var oPersona = new O_LISTAR_PERSONA(); oPersona.NOMBRE = nombre; oPersona.ID_GENERO = Convert.ToDecimal(genero); oPersona.ID_TIPO_PERSONA = tipoPersona; oPersona.AUD_ESTADO = 1; var strMensajeError = ""; var rstRegistroPersona = servicioGestion.RegistrarPersona(strCredencial, oPersona, ref strMensajeError); if (rstRegistroPersona == null || rstRegistroPersona[0].ID_TABLA < 0) { throw new Exception(rstRegistroPersona == null ? "No se registro la persona" : rstRegistroPersona[0].MENSAJE_ERROR); } else { var idUltimaPersona = rstRegistroPersona[0].ID_TABLA; var oDocumento = new O_LISTAR_DOCUMENTO(); oDocumento.ID_TIPO_DOCUMENTO = documento; oDocumento.ID_PERSONA = idUltimaPersona; var rstDocumento = servicioGestion.RegistrarDocumento(strCredencial, oDocumento, ref strMensajeError); } } catch (Exception ex) { throw new Exception("Error 600: " + ex.Message); } }
public List <O_RESULTADO> RegistrarDocumento(string strCredencial, O_LISTAR_DOCUMENTO oDocumento, ref string strMensajeError) { try { return(_repositorioGestion.RegistrarDocumento(strCredencial, oDocumento, ref strMensajeError).ToList()); } catch (Exception ex) { strMensajeError = "Aplicacion Error " + System.Reflection.MethodBase.GetCurrentMethod().Name + "Error: " + ex.InnerException; return(null); } }
public List <O_LISTAR_DOCUMENTO> ListarDocumento(string strCredencial, O_LISTAR_DOCUMENTO oListarDocumento, ref string strMensajeError) { try { var _servicio = FabricaIoC.Contenedor.Resolver <IAplicacionReportes>(); return(_servicio.ListarDocumento(strCredencial, oListarDocumento, ref strMensajeError).ToList()); } catch (Exception e) { strMensajeError += e.Message + " error 500: " + e.InnerException; return(null); } }
public List <O_RESULTADO> RegistrarDocumento(string strCredencial, O_LISTAR_DOCUMENTO oDocumento, ref string strMensajeError) { try { var _servicio = FabricaIoC.Contenedor.Resolver <IAplicacionGestion>(); return(_servicio.RegistrarDocumento(strCredencial, oDocumento, ref strMensajeError)); } catch (Exception e) { strMensajeError += e.Message + " - " + e.InnerException; return(null); } }
public List <O_LISTAR_DOCUMENTO> ListarDocumento(string strCredencial, O_LISTAR_DOCUMENTO oListarDocumento, ref string strMensajeError) { try { var objListado = _repositorioReportes.ListarDocumento(strCredencial, oListarDocumento, ref strMensajeError); return(objListado); } catch (Exception ex) { strMensajeError = "CAplicacionListados: method ListarFeriados(...)" + System.Reflection.MethodBase.GetCurrentMethod().Name + "Error 300:" + ex.Message + '-' + ex.InnerException; return(null); } }