private void dataGridViewPagingSumCtrl_CurrentPageIndexChanged(int index)
 {
     try
     {
         if (CommonGlobalUtil.EngineUnconnectioned(this))
         {
             return;
         }
         if (this.pagePara == null)
         {
             return;
         }
         this.pagePara.PageIndex = index;
         PfCustomerBalanceRecordPage listPage = GlobalCache.ServerProxy.GetPfCustomerBalanceRecordPage(this.pagePara);
         this.BindingSource(listPage);
     }
     catch (Exception ee)
     {
         ShowError(ee);
     }
     finally
     {
         UnLockPage();
     }
 }
        private void BaseButton_Search_Click(object sender, EventArgs e)
        {
            try
            {
                if (CommonGlobalUtil.EngineUnconnectioned(this))
                {
                    return;
                }

                this.pagePara = new GetPfCustomerBalanceRecordPagePara()
                {
                    PfCustomerBalanceType = (PfCustomerBalanceType)this.skinComboBoxChangeType.SelectedValue,

                    StartDate = new CJBasic.Date(this.dateTimePicker_Start.Value),
                    EndDate   = new CJBasic.Date(this.dateTimePicker_End.Value),

                    PageIndex    = 0,
                    PageSize     = this.dataGridViewPagingSumCtrl.PageSize,
                    PfCustomerID = pfCustomer?.ID
                };
                PfCustomerBalanceRecordPage listPage = GlobalCache.ServerProxy.GetPfCustomerBalanceRecordPage(this.pagePara);
                dataGridViewPagingSumCtrl.OrderPara = pagePara;
                dataGridViewPagingSumCtrl.Initialize(listPage);
                this.BindingSource(listPage);
            }
            catch (Exception ee)
            {
                ShowError(ee);
            }
            finally
            {
                UnLockPage();
            }
        }
 private void BindingSource(PfCustomerBalanceRecordPage listPage)
 {
     dataGridViewPagingSumCtrl.BindingDataSource <PfCustomerBalanceRecord>(listPage?.PfCustomerBalanceRecords, null, listPage?.TotalEntityCount, listPage?.PfCustomerBalanceRecordSum);
     this.skinSplitContainer1.Panel2Collapsed = true;
 }