private void BaseButton_Search_Click(object sender, EventArgs e) { string curPfCustomerID = ""; if (skinComboBoxSupplier.SelectedValue != null) { curPfCustomerID = ValidateUtil.CheckEmptyValue(skinComboBoxSupplier.SelectedValue); } else { if (skinComboBoxSupplier.Text != "" && skinComboBoxSupplier.Text != "所有") { GlobalMessageBox.Show("请输入正确的客户信息后再进行查询!"); this.skinComboBoxSupplier.Focus(); return; } } this.pagePara = new PfAccountContrastPara() { PfCustomerID = curPfCustomerID, StartDate = new CJBasic.Date(this.dateTimePicker_Start.Value), EndDate = new CJBasic.Date(this.dateTimePicker_End.Value), }; Search(pagePara); }
public void Search(PfAccountContrastPara para) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } InteractResult <PfAccountContrastItem> listPage = GlobalCache.ServerProxy.GetPfAccountContrast(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.PfCustomerID = supplier?.ID; } else { this.pagePara = new PfAccountContrastPara() { PfCustomerID = 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); }