private void BaseButton_Search_Click(object sender, EventArgs e) { this.pagePara = new SupplierAccountContrastPara() { 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(SupplierAccountContrastPara para) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } InteractResult <SupplierAccountContrastItem> listPage = GlobalCache.ServerProxy.GetSupplierAccountContrast(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 SupplierAccountContrastPara() { 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); }