/// <summary>
 /// Calls corresponding voucher on ViewDetails button click
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnViewDetails_Click(object sender, EventArgs e)
 {
     try
     {
         if (dgvSalesQuotationRegister.CurrentRow != null)
         {
             frmSalesQuotation frmSalesQuotationObj  = new frmSalesQuotation();
             frmSalesQuotation frmSalesQuotationOpen = Application.OpenForms["frmSalesQuotation"] as frmSalesQuotation;
             if (frmSalesQuotationOpen == null)
             {
                 frmSalesQuotationObj.MdiParent   = formMDI.MDIObj;
                 frmSalesQuotationObj.WindowState = FormWindowState.Normal;
                 frmSalesQuotationObj.CallFRomSalesQuotationRegister(this, Convert.ToDecimal(dgvSalesQuotationRegister.CurrentRow.Cells["dgvtxtquotationMasterId"].Value));
             }
             else
             {
                 frmSalesQuotationOpen.CallFRomSalesQuotationRegister(this, Convert.ToDecimal(dgvSalesQuotationRegister.CurrentRow.Cells["dgvtxtquotationMasterId"].Value));
                 frmSalesQuotationOpen.BringToFront();
                 if (frmSalesQuotationOpen.WindowState == FormWindowState.Minimized)
                 {
                     frmSalesQuotationOpen.WindowState = FormWindowState.Normal;
                 }
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("SQREG10:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }