Esempio n. 1
0
 public ArrayList<BankAccountVO> readBalance() {
   ArrayList<BankAccountVO> bankVOList = new ArrayList<BankAccountVO>();
   FinanceDataService dataService = new FinanceDataController();
   BankList bankList = dataService.readBankAccount();
   for (BankAccountPO bankPO : bankList.getList()) {
     bankVOList.add(new BankAccountVO(bankPO.getAccount(), bankPO.getMoney()));
   }
   return bankVOList;
 }
Esempio n. 2
0
 public boolean changeBalance(BankAccountVO bank) {
   BankAccountPO bankPO = new BankAccountPO(bank.getCode(), bank.getBalance());
   FinanceDataService finance = new FinanceDataController();
   return finance.modifyBalance(bankPO);
 }