1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
public DataModel getListAccount() {
List<AccountImpl> accounts = getAccount();
listAccount = new ListDataModel();
listAccount.setWrappedData(accounts);
return listAccount;
}
private List<AccountImpl> getAccount() {
List<AccountImpl> accountList = new ArrayList<AccountImpl>();
accountList.add(new AccountImpl("Compte",
"987456321", new Long(852), new Long(456), new Long(4744),
new Long(876), new Long(96)));
accountList.add(new AccountImpl("Compte sur carnet",
"9874564561", new Long(50000), new Long(0), new Long(0),
new Long(0), new Long(0)));
accountList.add(new AccountImpl("Cheque", "9874562221", new Long(
50000), new Long(0), new Long(0), new Long(0), new Long(0)));
return accountList;
} |
Partager