Exemplo n.º 1
0
 public List <VISTA_FACTURAS_POR_NOTIFICAR> GetAllWithReferences()
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioVISTA_FACTURAS_POR_NOTIFICAR repositorio = new RepositorioVISTA_FACTURAS_POR_NOTIFICAR(context);
             return(repositorio.GetAllWithReferences().OrderBy(i => i.NOMBRE).ToList());
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }
Exemplo n.º 2
0
 public VISTA_FACTURAS_POR_NOTIFICAR GetByIdWithReferences(int ID)
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioVISTA_FACTURAS_POR_NOTIFICAR repositorio = new RepositorioVISTA_FACTURAS_POR_NOTIFICAR(context);
             return(repositorio.GetByIdWithReferences(ID));
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }
Exemplo n.º 3
0
 public List <VISTA_FACTURAS_POR_NOTIFICAR> GetByFilterWithReferences(int?ID_CLIENTE = null, string RUT = "", string NOMBRE = "", System.DateTime?FECHA_FACTURACION = null, int?CONTADOR_NOTAS_COBRO = null, int?NUMERO_FACTURA = null)
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioVISTA_FACTURAS_POR_NOTIFICAR repositorio = new RepositorioVISTA_FACTURAS_POR_NOTIFICAR(context);
             return(repositorio.GetByFilterWithReferences(ID_CLIENTE, RUT, NOMBRE, FECHA_FACTURACION, CONTADOR_NOTAS_COBRO, NUMERO_FACTURA).OrderBy(i => i.ID).ToList());
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }