コード例 #1
0
 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);
     }
 }
コード例 #2
0
 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();
     }
 }
コード例 #3
0
 /// <summary>
 /// 绑定plenishOrderSource源到dataGridView中
 /// </summary>
 /// <param name="listPage"></param>
 private void BindingDayReportSource(DayReportPage listPage)
 {
     this.dataGridViewPagingSumCtrl.BindingDataSource <DayReport>(listPage?.DayReportList, null, listPage?.TotalEntityCount, listPage?.DayReportSum);
 }