Ejemplo n.º 1
0
 /// <summary>
 /// On print button click
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnPrint_Click(object sender, EventArgs e)
 {
     try
     {
         if (dgvCashOrBank.Rows.Count > 0)
         {
             AccountGroupSP spAccountGroup = new AccountGroupSP();
             DataSet        dsCashBankBook = spAccountGroup.CashBankBookPrinting(1, this.dtpFromDate.Value, this.dtpToDate.Value, true);
             frmReport      frmReport      = new frmReport();
             frmReport.MdiParent = formMDI.MDIObj;
             frmReport.CashBankBookPrinting(dsCashBankBook);
         }
         else
         {
             Messages.InformationMessage("No data found");
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("CBBOOK09 :" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// On print button click
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnPrint_Click(object sender, EventArgs e)
 {
     try
     {
         if (dgvCashOrBank.Rows.Count > 0)
         {
             AccountGroupSP spAccountGroup = new AccountGroupSP();
             DataSet        dsCashBankBook = spAccountGroup.CashBankBookPrinting(1, this.dtpFromDate.Value, this.dtpToDate.Value, true);
             frmReport      frmReport      = new frmReport();
             frmReport.MdiParent = formMDI.MDIObj;
             frmReport.CashBankBookPrinting(dsCashBankBook);
         }
         else
         {
             Messages.InformationMessage("No data found");
         }
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "CBBOOK9:" + ex.Message;
     }
 }
 /// <summary>
 /// On print button click
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnPrint_Click(object sender, EventArgs e)
 {
     try
     {
         if (dgvCashOrBank.Rows.Count > 0)
         {
             AccountGroupBll bllAccountGroup = new AccountGroupBll();
             DataSet dsCashBankBook = bllAccountGroup.CashBankBookPrinting(1, this.dtpFromDate.Value, this.dtpToDate.Value, true);
             frmReport frmReport = new frmReport();
             frmReport.MdiParent = formMDI.MDIObj;
             frmReport.CashBankBookPrinting(dsCashBankBook);
         }
         else
         {
             Messages.InformationMessage("No data found");
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("CBBOOK09 :" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }