Example #1
0
        public override void MakeReport()
        {
#if RELEASE || DEBUG
            PeriodForm dlg = new PeriodForm(this.MenuText);
            if (dlg.ShowDialog() == DialogResult.Cancel)
            {
                return;
            }

            Filters f = new Filters(Filters.MAKE_CANDIDATE, Engine.get().candidateAge(),
                                    Filters.MAKE_BRIDE, Engine.get().brideAge(),
                                    Filters.DATE_PERIOD, dlg.PeriodChar,
                                    Filters.DATE_VALUE, dlg.PeriodValue);
            string      s   = getSQL(f);
            XmlDocument doc = Engine.db().makeReport(s);

            ReportViewForm rvf = new ReportViewForm(MenuText, FileName, new XmlDocument[] { doc, dlg.GetXml() });
            rvf.ExcelEnabled = false;
            rvf.Show();
#endif
        }
Example #2
0
        private void ocjeneIzPredmetaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form frm = new ReportViewForm();

            frm.Show();
        }