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

            if (this.pagePara != null)
            {
                this.pagePara.SupplierID = supplier?.ID;
            }
            else
            {
                this.pagePara = new PurchasePayManagePara()
                {
                    SupplierID = supplier?.ID,
                    StartDate  = new CJBasic.Date(this.dateTimePicker_Start.Value),
                    EndDate    = new CJBasic.Date(this.dateTimePicker_End.Value),
                    PageIndex  = 0,
                    PageSize   = this.dataGridViewPagingSumCtrl.PageSize,
                    PayType    = (SupplierAccountRecordPayType)this.skinComboBox1.SelectedValue,
                };
            }
            if (supplier != null)
            {
                skinComboBoxSupplier.SelectedValue = supplier.ID;
            }
            Search(this.pagePara);
        }
 private void BaseButton_Search_Click(object sender, EventArgs e)
 {
     this.pagePara = new PurchasePayManagePara()
     {
         SupplierID = ValidateUtil.CheckEmptyValue(this.skinComboBoxSupplier.SelectedValue),
         StartDate  = new CJBasic.Date(this.dateTimePicker_Start.Value),
         EndDate    = new CJBasic.Date(this.dateTimePicker_End.Value),
         PageIndex  = 0,
         PageSize   = this.dataGridViewPagingSumCtrl.PageSize,
         PayType    = (SupplierAccountRecordPayType)this.skinComboBox1.SelectedValue,
     };
     Search(pagePara);
 }
 public void Search(PurchasePayManagePara para)
 {
     try
     {
         if (GlobalUtil.EngineUnconnectioned(this))
         {
             return;
         }
         InteractResult <SupplierAccountRecordPage> listPage = GlobalCache.ServerProxy.PurchasePayManage(this.pagePara);
         dataGridViewPagingSumCtrl.OrderPara = pagePara;
         this.dataGridViewPagingSumCtrl.Initialize(listPage.Data);
         this.BindingSource(listPage.Data);
     }
     catch (Exception ee)
     {
         GlobalUtil.ShowError(ee);
     }
     finally
     {
         GlobalUtil.UnLockPage(this);
     }
 }