Esempio n. 1
0
 public List <CARGA_PRESTACIONES_ENCABEZADO> GetByFilterWithReferences(int?CARGA_PRESTACIONES_ESTADOId = null, int?TIPO_PRESTACIONId = null, System.DateTime?FECHA_CARGA = null, string ARCHIVO = "")
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioCARGA_PRESTACIONES_ENCABEZADO repositorio = new RepositorioCARGA_PRESTACIONES_ENCABEZADO(context);
             return(repositorio.GetByFilterWithReferences(CARGA_PRESTACIONES_ESTADOId, TIPO_PRESTACIONId, FECHA_CARGA, ARCHIVO).OrderBy(i => i.ID).ToList());
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }
Esempio n. 2
0
 public List <FACTURA> GetAllWithReferences()
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioFACTURA repositorio = new RepositorioFACTURA(context);
             return(repositorio.GetAllWithReferences().OrderBy(i => i.ID).ToList());
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }
Esempio n. 3
0
 public List <CARGA_PRESTACIONES_DETALLE_ESTADO> GetAllWithReferences()
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioCARGA_PRESTACIONES_DETALLE_ESTADO repositorio = new RepositorioCARGA_PRESTACIONES_DETALLE_ESTADO(context);
             return(repositorio.GetAllWithReferences().OrderBy(i => i.NOMBRE).ToList());
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }
Esempio n. 4
0
 public List <EXAMEN> GetByFilterWithReferences(int?TIPO_PRESTACIONId = null, string CODIGO = "", string NOMBRE = "")
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioEXAMEN repositorio = new RepositorioEXAMEN(context);
             return(repositorio.GetByFilterWithReferences(TIPO_PRESTACIONId, CODIGO, NOMBRE).OrderBy(i => i.ID).ToList());
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }
Esempio n. 5
0
 public EXAMEN GetById(int ID)
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioEXAMEN repositorio = new RepositorioEXAMEN(context);
             return(repositorio.GetById(ID));
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }
Esempio n. 6
0
 public List <PAGO_DETALLE> GetAll()
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioPAGO_DETALLE repositorio = new RepositorioPAGO_DETALLE(context);
             return(repositorio.GetAll().OrderBy(i => i.ID).ToList());
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }
Esempio n. 7
0
 public List <CARGA_PRESTACIONES_HUMANAS_EXAMEN> GetByFilterWithReferences(int?EXAMENId = null, int?CARGA_PRESTACIONES_HUMANAS_DETALLEId = null, System.DateTime?FECHA_ACTUALIZACION = null, string NOMBRE_EXAMEN = "", string VALOR_EXAMEN = "", int?VALOR_VALOR_EXAMEN = null)
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioCARGA_PRESTACIONES_HUMANAS_EXAMEN repositorio = new RepositorioCARGA_PRESTACIONES_HUMANAS_EXAMEN(context);
             return(repositorio.GetByFilterWithReferences(EXAMENId, CARGA_PRESTACIONES_HUMANAS_DETALLEId, FECHA_ACTUALIZACION, NOMBRE_EXAMEN, VALOR_EXAMEN, VALOR_VALOR_EXAMEN).OrderBy(i => i.ID).ToList());
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }
Esempio n. 8
0
 public List <COBRO> GetByFilterWithReferences(int?TIPO_COBROId = null, System.DateTime?FECHA_COBRO = null)
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioCOBRO repositorio = new RepositorioCOBRO(context);
             return(repositorio.GetByFilterWithReferences(TIPO_COBROId, FECHA_COBRO).OrderBy(i => i.ID).ToList());
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }
Esempio n. 9
0
 public List <PRESTACION_HUMANA> GetByFilterWithReferences(string NOMBRE = "", string RUT = "", string EDAD = "", string TELEFONO = "", string PAGADO = "")
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioPRESTACION_HUMANA repositorio = new RepositorioPRESTACION_HUMANA(context);
             return(repositorio.GetByFilterWithReferences(NOMBRE, RUT, EDAD, TELEFONO, PAGADO).OrderBy(i => i.ID).ToList());
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }
Esempio n. 10
0
 public List <NOTA_CREDITO> GetByFilterWithReferences(int?FACTURAId = null, System.DateTime?FECHA_EMISION = null, int?NUMERO_NOTA_CREDITO = null, bool?CORRECCION_TOTAL_PARCIAL = null)
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioNOTA_CREDITO repositorio = new RepositorioNOTA_CREDITO(context);
             return(repositorio.GetByFilterWithReferences(FACTURAId, FECHA_EMISION, NUMERO_NOTA_CREDITO, CORRECCION_TOTAL_PARCIAL).OrderBy(i => i.ID).ToList());
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }
Esempio n. 11
0
 public List <EXAMEN_DETALLE> GetByFilterWithReferences(int?EXAMENId = null, int?EXAMEN1Id = null)
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioEXAMEN_DETALLE repositorio = new RepositorioEXAMEN_DETALLE(context);
             return(repositorio.GetByFilterWithReferences(EXAMENId, EXAMEN1Id).OrderBy(i => i.ID).ToList());
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }
Esempio n. 12
0
 public List <ESPECIE> GetByFilterWithReferences(string NOMBRE = "")
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioESPECIE repositorio = new RepositorioESPECIE(context);
             return(repositorio.GetByFilterWithReferences(NOMBRE).OrderBy(i => i.ID).ToList());
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }
Esempio n. 13
0
 public List <CLIENTE> GetByFilterWithReferences(int?COMUNAId = null, int?CONVENIOId = null, int?TIPO_PRESTACIONId = null, int?TIPO_FACTURAId = null, string RUT = "", string NOMBRE = "", int?DESCUENTO = null, string DIRECCION = "", string FONO = "", string GIRO = "")
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioCLIENTE repositorio = new RepositorioCLIENTE(context);
             return(repositorio.GetByFilterWithReferences(COMUNAId, CONVENIOId, TIPO_PRESTACIONId, TIPO_FACTURAId, RUT, NOMBRE, DESCUENTO, DIRECCION, FONO, GIRO).OrderBy(i => i.ID).ToList());
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }
Esempio n. 14
0
 public List <VISTA_REPORTE_FACTURA> GetByFilterWithReferences(int?ID_FACTURACION = null, int?ID_TIPO_FACTURA = null, System.DateTime?FECHA_FACTURACION = null, string RUT_LABORATORIO = "", int?NETO = null, int?IVA = null, int?TOTAL = null, bool?PAGADA = null, string NOMBRE_CLIENTE = "", string RUT_CLIENTE = "", string DIRECCION = "", string NOMBRE_COMUNA = "", int?NUMERO_FACTURA = null, int?DESCUENTO = null, string FONO = "", string GIRO = "", string DETALLE = "", int?VALOR_PAGADO = null, int?PAGOS_REGISTRADOS = null, int?SALDO_DEUDOR = null)
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioVISTA_REPORTE_FACTURA repositorio = new RepositorioVISTA_REPORTE_FACTURA(context);
             return(repositorio.GetByFilterWithReferences(ID_FACTURACION, ID_TIPO_FACTURA, FECHA_FACTURACION, RUT_LABORATORIO, NETO, IVA, TOTAL, PAGADA, NOMBRE_CLIENTE, RUT_CLIENTE, DIRECCION, NOMBRE_COMUNA, NUMERO_FACTURA, DESCUENTO, FONO, GIRO, DETALLE, VALOR_PAGADO, PAGOS_REGISTRADOS, SALDO_DEUDOR).OrderBy(i => i.ID).ToList());
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }
Esempio n. 15
0
 public List <CLIENTE_SINONIMO> GetAllWithReferences()
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioCLIENTE_SINONIMO repositorio = new RepositorioCLIENTE_SINONIMO(context);
             return(repositorio.GetAllWithReferences().OrderBy(i => i.NOMBRE).ToList());
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }
Esempio n. 16
0
 public List <PRESTACION_EXAMEN> GetByFilterWithReferences(int?EXAMENId = null, int?PRESTACIONId = null, int?VALOR = null)
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioPRESTACION_EXAMEN repositorio = new RepositorioPRESTACION_EXAMEN(context);
             return(repositorio.GetByFilterWithReferences(EXAMENId, PRESTACIONId, VALOR).OrderBy(i => i.ID).ToList());
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }
Esempio n. 17
0
 public List <PAGO_DETALLE> GetByFilterWithReferences(int?FACTURA_DETALLEId = null, int?PAGOId = null, int?MONTO = null)
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioPAGO_DETALLE repositorio = new RepositorioPAGO_DETALLE(context);
             return(repositorio.GetByFilterWithReferences(FACTURA_DETALLEId, PAGOId, MONTO).OrderBy(i => i.ID).ToList());
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }
Esempio n. 18
0
 public List <COMUNA> GetByFilterWithReferences(int?REGIONId = null, string NOMBRE = "")
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioCOMUNA repositorio = new RepositorioCOMUNA(context);
             return(repositorio.GetByFilterWithReferences(REGIONId, NOMBRE).OrderBy(i => i.ID).ToList());
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }
Esempio n. 19
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         panelMensaje.CssClass = "OcultarMensaje";
         if (!Page.IsPostBack && !Page.IsCallback)
         {
             //panelMensaje.CssClass = "OcultarMensaje";
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         panelMensaje.CssClass = "MostrarMensaje";
         lblMensaje.Text       = ex.Message;
         return;
     }
 }
Esempio n. 20
0
 public List <CARGA_PRESTACIONES_VETERINARIAS_DETALLE> GetByFilterWithReferences(int?CARGA_PRESTACIONES_DETALLE_ESTADOId = null, int?CARGA_PRESTACIONES_ENCABEZADOId = null, int?CLIENTEId = null, int?ESPECIE1Id = null, int?GARANTIA1Id = null, int?PREVISIONId = null, int?RAZA1Id = null, System.DateTime?FECHA_ACTUALIZACION = null, string FICHA = "", string NOMBRE = "", string ESPECIE = "", string RAZA = "", string EDAD = "", string SEXO = "", string SOLICITA = "", string TELEFONO = "", string MEDICO = "", string PROCEDENCIA = "", string FECHA_RECEPCION = "", string FECHA_MUESTRA = "", string FECHA_RESULTADOS = "", string PENDIENTE = "", string GARANTIA = "", string PAGADO = "", string TOTAL = "", string FICHA_CLINICA = "", string RECEPCION = "", string MENSAJE_ERROR = "", int?VALOR_FICHA = null, DateTime?VALOR_FECHA_MUESTRA = null, DateTime?VALOR_FECHA_RECEPCION = null, DateTime?VALOR_FECHA_ENTREGA_RESULTADOS = null, int?VALOR_FICHA_CLINICA = null, int?VALOR_TOTAL = null)
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioCARGA_PRESTACIONES_VETERINARIAS_DETALLE repositorio = new RepositorioCARGA_PRESTACIONES_VETERINARIAS_DETALLE(context);
             return(repositorio.GetByFilterWithReferences(CARGA_PRESTACIONES_DETALLE_ESTADOId, CARGA_PRESTACIONES_ENCABEZADOId, CLIENTEId, ESPECIE1Id, GARANTIA1Id, PREVISIONId, RAZA1Id, FECHA_ACTUALIZACION, FICHA, NOMBRE, ESPECIE, RAZA, EDAD, SEXO, SOLICITA, TELEFONO, MEDICO, PROCEDENCIA, FECHA_RECEPCION, FECHA_MUESTRA, FECHA_RESULTADOS, PENDIENTE, GARANTIA, PAGADO, TOTAL, FICHA_CLINICA, RECEPCION, MENSAJE_ERROR, VALOR_FICHA, VALOR_FECHA_MUESTRA, VALOR_FECHA_RECEPCION, VALOR_FECHA_ENTREGA_RESULTADOS, VALOR_FICHA_CLINICA, VALOR_TOTAL).OrderBy(i => i.ID).ToList());
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }
Esempio n. 21
0
 public CARGA_PRESTACIONES_HUMANAS_DETALLE GetByIdWithReferencesFull(int ID)
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioCARGA_PRESTACIONES_HUMANAS_DETALLE repositorio = new RepositorioCARGA_PRESTACIONES_HUMANAS_DETALLE(context);
             return(repositorio.GetByIdWithReferencesFull(ID));
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         return(null);
     }
 }
Esempio n. 22
0
 public List <PRESTACION_MUESTRA> GetByFilter(int?PRESTACIONId = null, string NOMBRE = "")
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioPRESTACION_MUESTRA repositorio = new RepositorioPRESTACION_MUESTRA(context);
             return(repositorio.GetByFilter(PRESTACIONId, NOMBRE).OrderBy(i => i.ID).ToList());
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }
Esempio n. 23
0
 public List <EXAMEN> GetAll()
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioEXAMEN repositorio = new RepositorioEXAMEN(context);
             return(repositorio.GetAll().OrderBy(i => i.NOMBRE).ToList());
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }
Esempio n. 24
0
 public List <PAGO> GetByFilterWithReferences(int?CLIENTEId = null, int?FECHA_PAGO = null, int?MONTO_PAGO = null)
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioPAGO repositorio = new RepositorioPAGO(context);
             return(repositorio.GetByFilterWithReferences(CLIENTEId, FECHA_PAGO, MONTO_PAGO).OrderBy(i => i.ID).ToList());
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }
Esempio n. 25
0
 public List <FACTURA> GetByFilterWithReferences(int?CLIENTEId = null, int?FACTURACIONId = null, int?TIPO_FACTURAId = null, int?CORRELATIVO = null, string RUT_LABORATORIO = "", int?NETO = null, int?IVA = null, int?TOTAL = null, string NOMBRE_CLIENTE = "", string RUT_CLIENTE = "", string DIRECCION = "", string NOMBRE_COMUNA = "", int?NUMERO_FACTURA = null, int?DESCUENTO = null, string FONO = "", string GIRO = "", string DETALLE = "", bool?PAGADA = null)
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioFACTURA repositorio = new RepositorioFACTURA(context);
             return(repositorio.GetByFilterWithReferences(CLIENTEId, FACTURACIONId, TIPO_FACTURAId, CORRELATIVO, RUT_LABORATORIO, NETO, IVA, TOTAL, NOMBRE_CLIENTE, RUT_CLIENTE, DIRECCION, NOMBRE_COMUNA, NUMERO_FACTURA, DESCUENTO, FONO, GIRO, DETALLE, PAGADA).OrderBy(i => i.ID).ToList());
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }
Esempio n. 26
0
 public List <CARGA_PRESTACIONES_ESTADO> GetByFilter(string NOMBRE = "")
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioCARGA_PRESTACIONES_ESTADO repositorio = new RepositorioCARGA_PRESTACIONES_ESTADO(context);
             return(repositorio.GetByFilter(NOMBRE).OrderBy(i => i.ID).ToList());
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }
Esempio n. 27
0
 public FACTURA GetByIdWithReferences(int ID)
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioFACTURA repositorio = new RepositorioFACTURA(context);
             return(repositorio.GetByIdWithReferences(ID));
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }
Esempio n. 28
0
 public List <CLIENTE_SINONIMO> GetByFilter(int?CLIENTEId = null, string NOMBRE = "")
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioCLIENTE_SINONIMO repositorio = new RepositorioCLIENTE_SINONIMO(context);
             return(repositorio.GetByFilter(CLIENTEId, NOMBRE).OrderBy(i => i.ID).ToList());
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }
Esempio n. 29
0
 public CARGA_PRESTACIONES_DETALLE_ESTADO GetById(int ID)
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioCARGA_PRESTACIONES_DETALLE_ESTADO repositorio = new RepositorioCARGA_PRESTACIONES_DETALLE_ESTADO(context);
             return(repositorio.GetById(ID));
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }
Esempio n. 30
0
 public List <NOTA_COBRO> GetByFilterWithReferences(int?CLIENTEId = null, int?COBROId = null, int?CORRELATIVO = null)
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioNOTA_COBRO repositorio = new RepositorioNOTA_COBRO(context);
             return(repositorio.GetByFilterWithReferences(CLIENTEId, COBROId, CORRELATIVO).OrderBy(i => i.ID).ToList());
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }