コード例 #1
0
 public List<VISTA_PRESTACIONES_POR_FACTURAR> GetAllWithReferences()
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioVISTA_PRESTACIONES_POR_FACTURAR repositorio = new RepositorioVISTA_PRESTACIONES_POR_FACTURAR(context);
                                 return repositorio.GetAllWithReferences().OrderBy(i => i.NOMBRE).ToList();
                             }
     }
     catch (Exception ex)
        {
          ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }
コード例 #2
0
 public List<VISTA_PRESTACIONES_POR_FACTURAR> GetByFilter(int? ID_CLIENTE = null, string RUT = "", string NOMBRE = "", int? DESCUENTO = null, System.DateTime? FECHA_RECEPCION = null, int? TOTAL = null)
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioVISTA_PRESTACIONES_POR_FACTURAR repositorio = new RepositorioVISTA_PRESTACIONES_POR_FACTURAR(context);
             return repositorio.GetByFilter(ID_CLIENTE, RUT, NOMBRE, DESCUENTO, FECHA_RECEPCION, TOTAL).OrderBy(i => i.ID).ToList();
         }
     }
     catch (Exception ex)
     {
          ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }
コード例 #3
0
 public VISTA_PRESTACIONES_POR_FACTURAR GetByIdWithReferences(int ID)
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioVISTA_PRESTACIONES_POR_FACTURAR repositorio = new RepositorioVISTA_PRESTACIONES_POR_FACTURAR(context);
             return repositorio.GetByIdWithReferences(ID);
         }
     }
     catch (Exception ex)
     {
          ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }