private void barReport_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { ConditionForm f = new ConditionForm(); if (f.ShowDialog(this) == DialogResult.OK) { Condition c = f.condition; IList <Model.AtBillsIncome> list = AtBillsIncomeManager.SelectByCondition(c.KPStart, c.KPEnd, c.DQStart, c.DQEnd, c.YDStart, c.YDEnd, c.IdStart, c.IdEnd, c.Category, c.InvoiceState, c.BankNameStart, c.BankNameEnd, c.SupplierIdStart, c.SupplierIdEnd, c.CustomerIdStart, c.CustomerIdEnd); ROList rolit = new ROList(list, c.Category); rolit.ShowPreviewDialog(); } }
private void barSearch_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { ConditionForm f = new ConditionForm(); if (f.ShowDialog(this) == DialogResult.OK) { Condition c = f.condition; this.bindingSource1.DataSource = manager.SelectByCondition(c.KPStart, c.KPEnd, c.DQStart, c.DQEnd, c.YDStart, c.YDEnd, c.IdStart, c.IdEnd, c.Category, c.InvoiceState, c.BankNameStart, c.BankNameEnd, c.SupplierIdStart, c.SupplierIdEnd, c.CustomerIdStart, c.CustomerIdEnd); this.gridControl1.RefreshDataSource(); } else { this.Dispose(); this.Close(); } f.Dispose(); GC.Collect(); }