private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Query.ConditionAChooseForm f = new Book.UI.Query.ConditionAChooseForm(); if (f.ShowDialog(this) == DialogResult.OK) { ROList r = new ROList(f.Condition as Query.ConditionA); r.ShowPreviewDialog(); } }
private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Query.ConditionAChooseForm f = new Book.UI.Query.ConditionAChooseForm(); if (f.ShowDialog(this) == DialogResult.OK) { Query.ConditionA conditionA = f.Condition as Query.ConditionA; this.bindingSource1.DataSource = (this.manager as BL.PCEarProtectCheckManager).SelectByDateRage(conditionA.StartDate, conditionA.EndDate, this.tag); this.gridControl1.RefreshDataSource(); } }
private void barButtonItemQuery_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Query.ConditionAChooseForm f = new Book.UI.Query.ConditionAChooseForm(); if (f.ShowDialog(this) == DialogResult.OK) { Query.ConditionA condition = f.Condition as Query.ConditionA; this.bindingSource1.DataSource = (this.manager as BL.MPSheaderManager).Select(condition.StartDate, condition.EndDate); this.barStaticItem1.Caption = string.Format("{0}項", this.bindingSource1.Count); } }
private void barBtnChangeDate_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Query.ConditionAChooseForm f = new Book.UI.Query.ConditionAChooseForm(); if (f.ShowDialog(this) == DialogResult.OK) { Query.ConditionA condition = f.Condition as Query.ConditionA; this.bindingSource1.DataSource = (this.manager as BL.AtSummonManager).SelectByDateRage(condition.StartDate, condition.EndDate); this.gridControl1.RefreshDataSource(); } }
private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Query.ConditionAChooseForm f = new Book.UI.Query.ConditionAChooseForm(); if (f.ShowDialog(this) == DialogResult.OK) { Query.ConditionA condition = f.Condition as Query.ConditionA; this.bindingSource1.DataSource = ((BL.ProductOnlineCheckManager) this.manager).SelectByDate(condition.StartDate, condition.EndDate, null); this.barStaticItem1.Caption = string.Format("{0}项", this.bindingSource1.Count); this.gridControl1.RefreshDataSource(); } }
private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Query.ConditionAChooseForm f = new Book.UI.Query.ConditionAChooseForm(); if (f.ShowDialog(this) == DialogResult.OK) { Query.ConditionA condtion = f.Condition as Query.ConditionA; this.bindingSource1.DataSource = (this.manager as BL.ProductMouldSizeManager).SelectByDateRage(condtion.StartDate, condtion.EndDate); this.gridControl1.RefreshDataSource(); } f.Dispose(); GC.Collect(); }
private void barBtnChangeDate_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Query.ConditionAChooseForm f = new Book.UI.Query.ConditionAChooseForm(); if (f.ShowDialog(this) == DialogResult.OK) { Query.ConditionA condition = f.Condition as Query.ConditionA; this.bindingSource1.DataSource = (this.manager as BL.ThicknessTestManager).SelectByDateRage(condition.StartDate, condition.EndDate, this._PCPGOnlineCheckDetailId); this.gridControl1.RefreshDataSource(); this.gridView1.GroupPanelText = condition.StartDate.ToShortDateString() + "~" + condition.EndDate.ToShortDateString() + "的記錄"; } f.Dispose(); GC.Collect(); }
private void barBtn_ChangeDateSearch_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Query.ConditionAChooseForm f = new Book.UI.Query.ConditionAChooseForm(); if (f.ShowDialog(this) == DialogResult.OK) { Query.ConditionA condition = f.Condition as Query.ConditionA; IList <Model.StockCheck> mStockChecklist = (this.manager as BL.StockCheckManager).SelectByDateRage(condition.StartDate, condition.EndDate); foreach (Model.StockCheck sc in mStockChecklist) { Model.ProductCategory _pc = new BL.ProductCategoryManager().Get(sc.ProductCategoryId); sc.ProductCategoryName = _pc == null ? "" : _pc.ProductCategoryName; } this.bindingSource1.DataSource = mStockChecklist; this.gridView1.GroupPanelText = condition.StartDate.ToString("yyyy-MM-dd") + " To " + condition.EndDate.ToString("yyyy-MM-dd") + " Records"; } }
//日期区间删除 private void barBtnDelbyCondition_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Query.ConditionAChooseForm f = new Book.UI.Query.ConditionAChooseForm(); if (f.ShowDialog(this) == DialogResult.OK) { DateTime startdate = (f.Condition as Query.ConditionA).StartDate; DateTime enddate = (f.Condition as Query.ConditionA).EndDate; IList <Model.Employee> emplist = (from Model.Employee emp in (this.bs_Employees.DataSource as IList <Model.Employee>) where emp.IsChecked == true select emp).ToList <Model.Employee>(); if (emplist == null || emplist.Count == 0) { emplist.Add(this._employee); } this.leaveManamer.DeleteByDateRangeEmp(emplist, startdate, enddate); //控制页面 this._employee = emplist.First <Model.Employee>(); this.MoveLast(); this.Refresh(); } }