示例#1
0
 private void todaySaleToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Report.ShortCutReport go = new Report.ShortCutReport();
     go.DTtoday    = DateTime.Now.ToString("yyyy-MM-dd");
     go.ReportName = "Daily Report";
     go.MdiParent  = this;
     go.Show();
 }
示例#2
0
        private void last30DaysSalesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DateTime dtd = DateTime.Now;

            dtd = dtd.AddDays(-30);

            Report.ShortCutReport go = new Report.ShortCutReport();
            go.last30salesStartDate = dtd.ToString("yyyy-MM-dd");
            go.last30salesENDDate   = DateTime.Now.ToString("yyyy-MM-dd");
            go.ReportName           = "Last 30 Days Report";
            go.MdiParent            = this;
            go.Show();
        }