//PopUp /// <summary> /// Function toi call this form from Currency Form /// </summary> /// <param name="frmCurrencyDetails"></param> /// <param name="decId"></param> public void CallFromCurrenCyDetails(frmCurrencyDetails frmCurrencyDetails, decimal decId) { try { base.Show(); this.frmCurrencyObj = frmCurrencyDetails; CurrencyComboFill(); cmbCurrency.SelectedValue = decId; cmbCurrency.Focus(); frmCurrencyObj.Close(); frmCurrencyObj = null; } catch (Exception ex) { MessageBox.Show("ER12:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function toi call this form from Currency Form /// </summary> /// <param name="frmCurrencyDetails"></param> /// <param name="decId"></param> public void CallFromCurrenCyDetails(frmCurrencyDetails frmCurrencyDetails, decimal decId) //PopUp { try { base.Show(); this.frmCurrencyObj = frmCurrencyDetails; CurrencyComboFill(); cmbCurrency.SelectedValue = decId; cmbCurrency.Focus(); frmCurrencyObj.Close(); frmCurrencyObj = null; } catch (Exception ex) { formMDI.infoError.ErrorString = "ER12:" + ex.Message; } }
/// <summary> /// Function toi call this form from Currency Form /// </summary> /// <param name="frmCurrencyDetails"></param> /// <param name="decId"></param> public void CallFromCurrenCyDetails(frmCurrencyDetails frmCurrencyDetails, decimal decId) //PopUp { try { base.Show(); this.frmCurrencyObj = frmCurrencyDetails; CurrencyComboFill(); cmbCurrency.SelectedValue = decId; cmbCurrency.Focus(); frmCurrencyObj.Close(); frmCurrencyObj = null; } catch (Exception ex) { MessageBox.Show("ER12:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Its for Search and fill the Currency's are available in current date /// </summary> /// <param name="frmCurrencyDetails"></param> /// <param name="decId"></param> public void CallFromCurrenCyDetails(frmCurrencyDetails frmCurrencyDetails, decimal decId) { try { decimal decExchangeRateId = 0; ExchangeRateBll BllExchangeRate = new ExchangeRateBll(); decExchangeRateId = BllExchangeRate.GetExchangeRateId(decId, Convert.ToDateTime(txtContraVoucherDate.Text)); dgvContraVoucher.CurrentRow.Cells["dgvcmbCurrency"].Value = decExchangeRateId; base.Show(); this.frmCurrencyObj = frmCurrencyDetails; frmCurrencyObj.Close(); frmCurrencyObj = null; } catch (Exception ex) { MessageBox.Show("CV:06" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to call this form from frmCurrencyDetails form /// </summary> /// <param name="frmCurrencyDetails"></param> /// <param name="decId"></param> public void CallFromCurrenCyDetails(frmCurrencyDetails frmCurrencyDetails, decimal decId) //PopUp { try { base.Show(); this.frmCurrencyObj = frmCurrencyDetails; GridCurrencyComboFill(); dgvPaymentVoucher.CurrentRow.Cells["dgvcmbCurrency"].Value = decId; frmCurrencyObj.Close(); frmCurrencyObj = null; } catch (Exception ex) { MessageBox.Show("PV4:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }