public DataSet DebitNoteReportPrinting(string strFromDate, string strToDate, decimal decVoucherTypeId, decimal decLedgerId, decimal decCompanyId)
        {
            DataSet dst = new DataSet();

            try
            {
                dst = spDebitNoteMaster.DebitNoteReportPrinting(strFromDate, strToDate, decVoucherTypeId, decLedgerId, decCompanyId);
            }
            catch (Exception ex)
            {
                MessageBox.Show("DNBLL:16" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(dst);
        }
Beispiel #2
0
 /// <summary>
 /// Function to print the details
 /// </summary>
 public void Print()
 {
     try
     {
         if (dgvDebitNoteReport.Rows.Count > 0)
         {
             string            strFromDate       = txtFromDate.Text;
             string            strToDate         = txtToDate.Text;
             decimal           decVoucherTypeId  = Convert.ToDecimal(cmbVoucherType.SelectedValue.ToString());
             decimal           decLedgerId       = Convert.ToDecimal(cmbAccountLedger.SelectedValue.ToString());
             DebitNoteMasterSP SpDebitNoteMaster = new DebitNoteMasterSP();
             DataSet           dsDebitNoteReport = SpDebitNoteMaster.DebitNoteReportPrinting(strFromDate, strToDate, decVoucherTypeId, decLedgerId, 1);
             frmReport         frmRepor          = new frmReport();
             frmRepor.MdiParent = formMDI.MDIObj;
             frmRepor.DebitNoteReportPrinting(dsDebitNoteReport);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("DRNTREP6:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }