public void Search()
        {
            this.dataGridViewPagingSumCtrl.SetDataSource <PfAccountRecord>(null);

            if (this.pagePara != null)
            {
                this.pagePara.PfCustomerID = pfCustomer?.ID;
            }
            else
            {
                this.pagePara = new GetPfAccountRecordPagePara()
                {
                    PfCustomerID  = pfCustomer?.ID,
                    StartDate     = new CJBasic.Date(this.dateTimePicker_Start.Value),
                    EndDate       = new CJBasic.Date(this.dateTimePicker_End.Value),
                    PageIndex     = 0,
                    PageSize      = this.dataGridViewPagingSumCtrl.PageSize,
                    PfAccountType = (PfAccountType)this.skinComboBox_FeeType.SelectedValue,
                };

                if (pfCustomer != null)
                {
                    skinComboBoxSupplier.SelectedValue = pfCustomer?.ID;
                }
                Search(this.pagePara);
            }
        }
        private void BaseButton_Search_Click(object sender, EventArgs e)
        {
            if (pfCustomer == null)
            {
                GlobalMessageBox.Show("客户不存在,请重新选择!");
                skinComboBoxSupplier.Focus();
                return;
            }

            this.pagePara = new GetPfAccountRecordPagePara()
            {
                PfCustomerID  = pfCustomer?.ID,
                StartDate     = new CJBasic.Date(this.dateTimePicker_Start.Value),
                EndDate       = new CJBasic.Date(this.dateTimePicker_End.Value),
                PageIndex     = 0,
                PageSize      = this.dataGridViewPagingSumCtrl.PageSize,
                PfAccountType = (PfAccountType)this.skinComboBox_FeeType.SelectedValue,
            };
            Search(pagePara);
        }
 public void Search(GetPfAccountRecordPagePara para)
 {
     try
     {
         if (GlobalUtil.EngineUnconnectioned(this))
         {
             return;
         }
         PfAccountRecordPage listPage = GlobalCache.ServerProxy.GetPfAccountRecordPage(this.pagePara);
         dataGridViewPagingSumCtrl.OrderPara = pagePara;
         this.dataGridViewPagingSumCtrl.Initialize(listPage);
         this.BindingSource(listPage);
     }
     catch (Exception ee)
     {
         GlobalUtil.ShowError(ee);
     }
     finally
     {
         GlobalUtil.UnLockPage(this);
     }
 }