/// <summary>
 /// Function to fill Tax grid
 /// </summary>
 public void TaxGridFill()
 {
     try
     {
         List<DataTable> ListObj = new List<DataTable>();
         TaxBll bllTax = new TaxBll();
         PurchaseInvoiceBll BllPurchaseInvoice = new PurchaseInvoiceBll();
         if (decPurchaseMasterId == 0)
         {
             ListObj = bllTax.TaxViewAllByVoucherTypeIdForPurchaseInvoice(decPurchaseInvoiceVoucherTypeId);
         }
         else
         {
             ListObj = BllPurchaseInvoice.PurchaseBillTaxViewAllByPurchaseMasterId(decPurchaseMasterId);
         }
         dgvTax.DataSource = ListObj[0];
         TaxSerialNo();
     }
     catch (Exception ex)
     {
         MessageBox.Show("PI24:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }