public void LoadAccounts()
        {
            mCmbAcct.Select(0, SAPbouiCOM.BoSearchKey.psk_Index);
            //Remove old valid values
            int lIntValuesLength = mCmbAcct.ValidValues.Count - 1;

            for (int i = 0; i < lIntValuesLength; i++)
            {
                mCmbAcct.ValidValues.Remove(1, SAPbouiCOM.BoSearchKey.psk_Index);
            }

            mCmbAcct.Item.Enabled = true;

            IList <AccountDTO> ListAccounts = mBankDAO.GetBankAccounts(mCmbBank.Value.ToString());

            foreach (AccountDTO lObjAccount in ListAccounts)
            {
                mCmbAcct.ValidValues.Add(lObjAccount.Account, lObjAccount.Account);
            }
        }
Beispiel #2
0
 public IList <AccountDTO> GetBankAccounts(string pBankCode)
 {
     return(mObjBankDAO.GetBankAccounts(pBankCode));
 }