public void Search() { this.dataGridViewPagingSumCtrl.SetDataSource <PfAccountRecord>(null); if (this.pagePara != null) { this.pagePara.PfCustomerID = pfCustomer?.ID; } else { this.pagePara = new PfCollectionManagePara() { 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, PayType = (PfAccountRecordType)this.skinComboBox1.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 PfCollectionManagePara() { PfCustomerID = pfCustomer?.ID, StartDate = new CJBasic.Date(this.dateTimePicker_Start.Value), EndDate = new CJBasic.Date(this.dateTimePicker_End.Value), PageIndex = 0, PayType = (PfAccountRecordType)this.skinComboBox1.SelectedValue, PageSize = this.dataGridViewPagingSumCtrl.PageSize, }; Search(pagePara); }
public void Search(PfCollectionManagePara para) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } InteractResult <PfAccountRecordPage> listPage = GlobalCache.ServerProxy.PfCollectionManage(this.pagePara); dataGridViewPagingSumCtrl.OrderPara = pagePara; this.dataGridViewPagingSumCtrl.Initialize(listPage.Data); this.BindingSource(listPage.Data); } catch (Exception ee) { GlobalUtil.ShowError(ee); } finally { GlobalUtil.UnLockPage(this); } }