private void BaseButton_Search_Click(object sender, EventArgs e)
 {
     this.pagePara = new SupplierAccountRecordSummaryPara()
     {
         SupplierID = ValidateUtil.CheckEmptyValue(this.skinComboBoxSupplier.SelectedValue),
         StartDate  = new CJBasic.Date(this.dateTimePicker_Start.Value),
         EndDate    = new CJBasic.Date(this.dateTimePicker_End.Value),
     };
     Search(pagePara);
 }
 public void Search(SupplierAccountRecordSummaryPara para)
 {
     try
     {
         if (GlobalUtil.EngineUnconnectioned(this))
         {
             return;
         }
         InteractResult <List <SupplierAccountRecordSummaryInfo> > listPage = GlobalCache.ServerProxy.GetSupplierAccountRecordSummary(this.pagePara);
         this.BindingSource(listPage.Data);
     }
     catch (Exception ee)
     {
         GlobalUtil.ShowError(ee);
     }
     finally
     {
         GlobalUtil.UnLockPage(this);
     }
 }
 public void Search()
 {
     if (this.pagePara != null)
     {
         this.pagePara.SupplierID = supplier?.ID;
     }
     else
     {
         this.pagePara = new SupplierAccountRecordSummaryPara()
         {
             SupplierID = supplier?.ID,
             StartDate  = new CJBasic.Date(this.dateTimePicker_Start.Value),
             EndDate    = new CJBasic.Date(this.dateTimePicker_End.Value),
         };
     }
     if (supplier != null)
     {
         skinComboBoxSupplier.SelectedValue = supplier.ID;
     }
     Search(this.pagePara);
 }