예제 #1
0
 /// <summary>
 /// BankAccount Combobox fill function
 /// </summary>
 public void bankAccountComboFill()
 {
     try
     {
         DataTable               dtbl            = new DataTable();
         AccountLedgerSP         spAccountLedger = new AccountLedgerSP();
         TransactionsGeneralFill obj             = new TransactionsGeneralFill();
         dtbl = obj.BankComboFill();
         cmbBankAccount.DataSource    = dtbl;
         cmbBankAccount.ValueMember   = "ledgerId";
         cmbBankAccount.DisplayMember = "ledgerName";
         cmbBankAccount.SelectedIndex = -1;
     }
     catch (Exception ex)
     {
         MessageBox.Show("BR:2" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }