/// <summary> /// Function to get decimal places based on parameter /// </summary> /// <param name="decCurrencyId"></param> /// <returns></returns> public int NoOfDecimalNumberViewByCurrencyId(decimal decCurrencyId) { int NoOfDecimalNumber = 0; try { NoOfDecimalNumber = SPExchangeRate.NoOfDecimalNumberViewByCurrencyId(decCurrencyId); } catch (Exception ex) { MessageBox.Show("ERBll15:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(NoOfDecimalNumber); }
public int NoofDecimalPlacesFind() { int inNoOfDecimalPlaces = 0; try { ExchangeRateSP spExchangeRate = new ExchangeRateSP(); if (cmbCurrency.SelectedValue != null) { inNoOfDecimalPlaces = spExchangeRate.NoOfDecimalNumberViewByCurrencyId(Convert.ToDecimal(cmbCurrency.SelectedValue.ToString())); } } catch (Exception) { throw; } return(inNoOfDecimalPlaces); }