Пример #1
0
        public void InitData(int page = 1)
        {
            dataPager1.PageIndex = page;

            PagingInfo pi = new PagingInfo()
            {
                PageIndex  = page,
                PageSize   = dataPager1.PageSize,
                Conditions = " r.house_id = " + houseId
            };

            routeList             = x_rService.GetByPage(pi);
            dataPager1.TotalCount = pi.RecordCount;
            //dataPager1.PageCount = pi.PageCount;
            this.dataGrid1.ItemsSource = routeList;
        }