Ejemplo n.º 1
0
 /// <summary>
 /// Function for print data
 /// </summary>
 /// <param name="decPurchaseReturnMasterId"></param>
 public void Print(decimal decPurchaseReturnMasterId)
 {
     try
     {
         PurchaseReturnMasterInfo infoPurchaseReturnMaster = new PurchaseReturnMasterInfo();
         PurchaseReturnMasterSP SPPurchaseReturnMaster = new PurchaseReturnMasterSP();
         DataSet dsPurchaseReturn = SPPurchaseReturnMaster.PurchaseReturnPrinting(decPurchaseReturnMasterId, 1, infoPurchaseReturnMaster.PurchaseMasterId);
         frmReport frmReport = new frmReport();
         frmReport.MdiParent = formMDI.MDIObj;
         frmReport.PurchaseReturnPrinting(dsPurchaseReturn);
     }
     catch (Exception ex)
     {
         MessageBox.Show("PR:57" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }