Ejemplo n.º 1
0
 private void barBtn_Search_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     Query.ConditionPronoteHeaderChooseForm f = new Query.ConditionPronoteHeaderChooseForm();
     if (f.ShowDialog(this) == DialogResult.OK)
     {
         Query.ConditionPronoteHeader condition = f.Condition as Query.ConditionPronoteHeader;
         this.bindingSource1.DataSource = (this.manager as BL.PCPenetrateCheckManager).SelectByDateRage(condition.StartDate, condition.EndDate, condition.Product, condition.Customer, condition.CusXOId);
         this.gridControl1.RefreshDataSource();
     }
 }
Ejemplo n.º 2
0
 private void barBtnSearch_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     Query.ConditionPronoteHeaderChooseForm f = new Query.ConditionPronoteHeaderChooseForm();
     if (f.ShowDialog(this) == DialogResult.OK)
     {
         Query.ConditionPronoteHeader condition = f.Condition as Query.ConditionPronoteHeader;
         this.bindingSource1.DataSource = (this.manager as BL.PCExportReportANSIManager).SelectByDateRage(etype, condition.StartDate, condition.EndDate, condition.Product, condition.Customer, condition.CusXOId);
         this.barStaticItem1.Caption    = string.Format("{0}Items", this.bindingSource1.Count);
         this.gridControl1.RefreshDataSource();
     }
 }
Ejemplo n.º 3
0
        //条件打印
        private void barBtnContionPrint_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Query.ConditionPronoteHeaderChooseForm f = new Query.ConditionPronoteHeaderChooseForm();

            if (f.ShowDialog(this) == DialogResult.OK)
            {
                Query.ConditionPronoteHeader  condition = f.Condition as Query.ConditionPronoteHeader;
                IList <Model.PCPGOnlineCheck> list      = this._pcpgocManager.SelectByDateRage(condition.StartDate, condition.EndDate, condition.Product, condition.Customer, condition.CusXOId, condition.PronoteHeaderIdStart, condition.PronoteHeaderIdEnd);
                if (list.Count < 1)
                {
                    MessageBox.Show("無數據!", this.Text, MessageBoxButtons.OK);
                    return;
                }
                RoList ro = new RoList(list);
                ro.ShowPreviewDialog();
            }
            f.Dispose();
            GC.Collect();
        }
Ejemplo n.º 4
0
        private void barBtnSearch_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Query.ConditionPronoteHeaderChooseForm f = new Query.ConditionPronoteHeaderChooseForm();

            if (f.ShowDialog(this) == DialogResult.OK)
            {
                Query.ConditionPronoteHeader condition = f.Condition as Query.ConditionPronoteHeader;
                DataTable dt = (this.manager as BL.PCPGOnlineCheckManager).SelectDetailByDateRage(condition.StartDate, condition.EndDate, condition.Product, condition.Customer, condition.CusXOId, condition.PronoteHeaderIdStart, condition.PronoteHeaderIdEnd);
                this.bindingSource1.DataSource = dt;
                this.barStaticItem1.Caption    = string.Format("{0}Items", this.bindingSource1.Count);
                this.gridControl1.RefreshDataSource();
            }
            else
            {
                this.Dispose();
                this.Close();
            }
            f.Dispose();
            GC.Collect();
        }