Beispiel #1
0
        private void barButtonItem2_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            //ConditionForm f = new ConditionForm();
            //if (f.ShowDialog(this) == DialogResult.OK)
            //{
            //    IList<Model.AtSummon> list = this.atSummonManager.SelectByCondition(f.condition.StartDate, f.condition.EndDate, f.condition.StartId, f.condition.EndId, f.condition.StartSubjectId, f.condition.EndSubjectId);
            //    if (list.Count == 0)
            //    {
            //        MessageBox.Show("無資料!", this.Text);
            //        return;
            //    }

            //    RO3 r = new RO3(list);
            //    r.ShowPreviewDialog();
            //}
            ConditionForm f = new ConditionForm();

            if (f.ShowDialog(this) == DialogResult.OK)
            {
                IList <Model.AtSummon> list = this.atSummonManager.SelectByCondition(f.condition.StartDate, f.condition.EndDate, f.condition.StartId, f.condition.EndId, f.condition.StartSubjectId, f.condition.EndSubjectId);
                if (list.Count == 0)
                {
                    MessageBox.Show("無資料!", this.Text);
                    return;
                }

                RO4 r = new RO4(list);
                r.ShowPreviewDialog();
            }
        }
Beispiel #2
0
        /// <summary>
        /// 连续打印
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void barButtonItem1_ItemClick_1(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            ConditionForm f = new ConditionForm();

            if (f.ShowDialog(this) == DialogResult.OK)
            {
                IList <Model.AtSummon> list = this.atSummonManager.SelectByCondition(f.condition.StartDate, f.condition.EndDate, f.condition.StartId, f.condition.EndId, f.condition.StartSubjectId, f.condition.EndSubjectId);
                if (list.Count == 0)
                {
                    MessageBox.Show("No data!", this.Text);
                    return;
                }

                RO1 r = new RO1(list);
                r.ShowPreviewDialog();
            }
        }
Beispiel #3
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.AtSummonManager).SelectByDateRage(condition.StartDate, condition.EndDate);
            //    this.gridControl1.RefreshDataSource();
            //}

            ConditionForm f = new ConditionForm();

            if (f.ShowDialog(this) == DialogResult.OK)
            {
                this.bindingSource1.DataSource = (this.manager as BL.AtSummonManager).SelectByCondition(f.condition.StartDate, f.condition.EndDate, f.condition.StartId, f.condition.EndId, f.condition.SummonCategory, f.condition.EmployeeId);

                this.gridControl1.RefreshDataSource();
                this.barStaticItem1.Caption = string.Format("{0}項", this.bindingSource1.Count);
            }
        }
Beispiel #4
0
        //A4
        private void barButtonItem2_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (this.action != "view")
            {
                MessageBox.Show("請先保存單據!", "提示", MessageBoxButtons.OK);
                return;
            }

            ConditionForm f = new ConditionForm();

            if (f.ShowDialog(this) == DialogResult.OK)
            {
                IList <Model.AtSummon> list = this.atSummonManager.SelectByCondition(f.condition.StartDate, f.condition.EndDate, f.condition.StartId, f.condition.EndId, f.condition.SummonCategory, f.condition.EmployeeId);
                if (list.Count == 0)
                {
                    MessageBox.Show("No data!", this.Text);
                    return;
                }

                RO3 r = new RO3(list);
                r.ShowPreviewDialog();
            }
        }