protected override void btnGenerate_Click(object sender, EventArgs e)
 {
     if (dtStart.Value < dtEnd.Value)
     {
         PaymentReportForm pRprt = new PaymentReportForm(m_nPatID, dtStart.Value, dtEnd.Value);
         pRprt.MdiParent = mdi;
         pRprt.Show();
         Close();
     }
     else
     {
         MessageBox.Show("Bad values for date range");
     }
 }
Beispiel #2
0
 private void generateRecieptToolStripMenuItem_Click(object sender, EventArgs e)
 {
     int payID = (int)dgvPayments.SelectedRows[0].Cells[5].Value;
     int patID = m_payMgr.getPayment(payID).patID;
     Reporting.PaymentReportForm pRpt = new Reporting.PaymentReportForm(patID,
         mcDate.SelectionStart, mcDate.SelectionStart.AddDays(1));
     pRpt.MdiParent = this.MdiParent;
     pRpt.Show();
 }