Example #1
0
        public decimal? SaldoTanque(int ID_COMBUSTIBLE, DateTime FECHA, int ID_USR)
        {
            decimal? result = 0;
            ExecuteManager(uow =>
            {
                var manager = new SG_TANQUESManager(uow);
                var query = manager.BuscarTodos(x => x.ID_COMBUSTIBLE == ID_COMBUSTIBLE).FirstOrDefault();
                result = query.SALDO_INICIAL;

            });
            return result;
        }
Example #2
0
        public IEnumerable<SG_TANQUES> ObtenerTanquesPaginado(PagingInfo paginacion)
        {
            IQueryable<SG_TANQUES> result = null;
            ExecuteManager(uow =>
            {
                var manager = new SG_TANQUESManager(uow);
                result = manager.BuscarTodos();

                paginacion.total = result.Count();
                result = manager.QueryPaged(result, paginacion.limit, paginacion.start, paginacion.sort, paginacion.dir);

            });
            return result;
        }