private void Query(int pageIndex) { try { var service = new PosService(); var querylist = service.SelectPosList(QueryCondition.Clone() as Hashtable , SplitPageControl1.PageSize , pageIndex * SplitPageControl1.PageSize); SplitPageControl1.RecoedCount = service.SelectPosListCount(QueryCondition.Clone() as Hashtable); SplitPageControl1.PageIndex = pageIndex; if (SplitPageControl1.PageIndex != pageIndex) { Query(SplitPageControl1.PageIndex); return; } else { gvTerminal.DataSource = querylist; gvTerminal.DataBind(); } } catch (Exception ex) { PageLog.Current.Write(ex); this.InfoBox.ShowPopError("加载数据出错!"); } }