public SearchResult <HenDepreciation> GetByCriteria(int page, int limit, DateTime?start = null, DateTime?end = null)
        {
            var searchInfo = new DateRangeSearchInfo
            {
                Start     = start,
                End       = end,
                PageIndex = page,
                PageSize  = limit
            };

            return(service.Search(searchInfo));
        }
Пример #2
0
        void OnRefresh(object param)
        {
            var searchInfo = new DateRangeSearchInfo
            {
                Start     = startDate,
                End       = endDate,
                PageIndex = pageIndex,
                PageSize  = pageSize
            };
            var result = service.Search(searchInfo);

            DepreciationList       = new ObservableCollection <Models.HenDepreciation>(result.Items);
            TotalRecords           = result.Total;
            DeleteCommand.EntityId = Guid.Empty;
        }