Beispiel #1
0
        private void RunReportGroup()
        {
            SelectPeriodDialog selectPeriodDialog       = new SelectPeriodDialog();
            DialogResult       selectPeriodDialogResult = selectPeriodDialog.ShowDialog();

            if (selectPeriodDialogResult == DialogResult.OK)
            {
                int[] reports = new int[Lv_BillingReportList.Items.Count];
                for (int i = 0; i < Lv_BillingReportList.Items.Count; i++)
                {
                    reports[i] = Lv_BillingReportList.Items[i].Index;
                }
                RunDialog    runDialog       = new RunDialog(Settings.Instance.SelectedServer, Settings.Instance.SelectedGroup, selectPeriodDialog.StartDate, selectPeriodDialog.EndDate, reports);
                DialogResult runDialogResult = runDialog.ShowDialog();
                runDialog.Dispose();


                if (runDialogResult == DialogResult.OK)
                {
                    AfterRunDialog afterDialog       = new AfterRunDialog();
                    DialogResult   afterDialogResult = afterDialog.ShowDialog();
                    afterDialog.Dispose();
                    BuildReportList();
                }
                else if (runDialogResult == DialogResult.Abort)
                {
                }
            }
            selectPeriodDialog.Dispose();
            BuildReportList();
        }
Beispiel #2
0
        private void RunReportGroup()
        {
            SelectPeriodDialog selectPeriodDialog = new SelectPeriodDialog();
            DialogResult selectPeriodDialogResult = selectPeriodDialog.ShowDialog();
            if (selectPeriodDialogResult == DialogResult.OK)
            {
                int[] reports = new int[Lv_BillingReportList.Items.Count];
                for (int i = 0; i < Lv_BillingReportList.Items.Count; i++)
                {
                    reports[i] = Lv_BillingReportList.Items[i].Index;
                }
                RunDialog runDialog = new RunDialog(Settings.Instance.SelectedServer, Settings.Instance.SelectedGroup, selectPeriodDialog.StartDate, selectPeriodDialog.EndDate, reports);
                DialogResult runDialogResult = runDialog.ShowDialog();
                runDialog.Dispose();

              
                if (runDialogResult == DialogResult.OK)
                {
                    AfterRunDialog afterDialog = new AfterRunDialog();
                    DialogResult afterDialogResult = afterDialog.ShowDialog();
                    afterDialog.Dispose();
                    BuildReportList();
                }
                else if (runDialogResult == DialogResult.Abort)
                {

                }
            }
            selectPeriodDialog.Dispose();
            BuildReportList();
        }