private void dataGridViewPagingSumCtrl_CurrentPageIndexChanged(int index) { try { if (this.pagePara == null) { return; } pagePara.PageIndex = index; DayReportPage listPage = CommonGlobalCache.ServerProxy.GetDayReportPage(this.pagePara); this.BindingDayReportSource(listPage); } catch (Exception ee) { CommonGlobalUtil.ShowError(ee); } }
private void Search(object sender, EventArgs args) { try { if (CommonGlobalUtil.EngineUnconnectioned(this)) { return; } DayReportPage listPage = CommonGlobalCache.ServerProxy.GetDayReportPage(this.pagePara); dataGridViewPagingSumCtrl.OrderPara = pagePara; this.dataGridViewPagingSumCtrl.Initialize(listPage); this.BindingDayReportSource(listPage); } catch (Exception ee) { ShowError(ee); } finally { UnLockPage(); } }
/// <summary> /// 绑定plenishOrderSource源到dataGridView中 /// </summary> /// <param name="listPage"></param> private void BindingDayReportSource(DayReportPage listPage) { this.dataGridViewPagingSumCtrl.BindingDataSource <DayReport>(listPage?.DayReportList, null, listPage?.TotalEntityCount, listPage?.DayReportSum); }