private void fucksByDateToolStripMenuItem_Click(object sender, EventArgs e) { Filters f = new Filters(); PeriodForm dlg = new PeriodForm(myReportType.FUCKS_BY_DATE); if (dlg.ShowDialog() == DialogResult.OK) { f[Filters.DATE_PERIOD] = dlg.PeriodChar; f[Filters.DATE_VALUE] = dlg.PeriodValue; (new ReportViewForm(myReportType.FUCKS_BY_DATE, new XmlDocument[] { Engine.get().db().makeReport(myReportType.FUCKS_BY_DATE, f) })).ShowDialog(); } }
private void tsmiDeads_Click(object sender, EventArgs e) { Filters f = new Filters(); //XmlDocument dt = null; PeriodForm dlg = new PeriodForm(myReportType.DEADREASONS); if (dlg.ShowDialog() == DialogResult.OK) { f[Filters.DATE_PERIOD] = dlg.PeriodChar; f[Filters.DATE_VALUE] = dlg.PeriodValue; (new ReportViewForm(myReportType.DEADREASONS, new XmlDocument[] { Engine.db().makeReport(myReportType.DEADREASONS, f), dlg.GetXml() })).ShowDialog(); } }