Пример #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);
     }
 }
Пример #2
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)
     {
         formMDI.infoError.ErrorString = "BR2:" + ex.Message;
     }
 }
Пример #3
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);
     }
 }