Пример #1
0
 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.AtSummonManager).SelectByDateRage(condtion.StartDate, condtion.EndDate);
         this.gridControl1.RefreshDataSource();
     }
     f.Dispose();
     GC.Collect();
 }
Пример #2
0
 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();
 }