public List <DataTable> CurrencyViewAllForCombo()
        {
            List <DataTable> listObj = new List <DataTable>();

            try
            {
                listObj = SpCurrency.CurrencyViewAllForCombo();
            }
            catch (Exception ex)
            {
                MessageBox.Show("C7:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(listObj);
        }
Exemple #2
0
 /// <summary>
 /// Function to fill Currency combobox
 /// </summary>
 public void CurrencyRateComboFill()
 {
     try
     {
         DataTable  dtblCurrencyRate = new DataTable();
         CurrencySP spCurrency       = new CurrencySP();
         dtblCurrencyRate = spCurrency.CurrencyViewAllForCombo();
         DataRow dr = dtblCurrencyRate.NewRow();
         dr[2] = "All";
         dtblCurrencyRate.Rows.InsertAt(dr, 0);
         cmbCurrencyRate.DataSource    = dtblCurrencyRate;
         cmbCurrencyRate.ValueMember   = "currencyId";
         cmbCurrencyRate.DisplayMember = "currencyName";
     }
     catch (Exception ex)
     {
         MessageBox.Show("ER6:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }