Esempio n. 1
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("無資料!", this.Text);
                    return;
                }

                RO1 r = new RO1(list);
                r.ShowPreviewDialog();
            }
        }
Esempio n. 2
0
        //1/3
        private void barButtonItem1_ItemClick_1(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;
                }

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