FSA -- Account Administration Panel


Powered by: Liveconnect, IIOP
Last modified: Wed Apr 30 18:44:09 1997
// lookup selected account if (client.accountName != "") { __account = project.fsa_admin.lookupAccount(client.accountName); if (__account == null) { redirect("admin.html"); } } // handle account operations // handle deposit if (request.accountOp == "DEPOSIT") { __account.deposit(parseFloat(request.depositAmount)); } // handle closing of account if (request.accountOp == "CLOSE") { project.fsa_admin.closeAccount(__account.getName()); __account = null; redirect("admin.html"); } // handle end of the account selection if (request.accountOp == "DONE") { client.accountName = null; __account = null; redirect("admin.html"); } // get claim __claim = __account.getCurrentClaim(); // handle claim operations if (__claim != null) { // handle acceptance of claim if (request.claimOp == "ACCEPT") { __claim.accept(); } // handle rejection of claim if (request.claimOp == "REJECT") { __claim.reject(); } // handle acceptance of claim if (request.claimOp == "DELETE") { __claim.remove(); __claim = null; } }

SELECTED ACCOUNT
Account Id: write(__account.getId());
Name: write(__account.getName());
Balance: write(__account.getBalance());
Claims: if (__claim == null) { write("NONE"); } else { write(__claim.getStatus()); }


ACCOUNT OPERATIONS
if (__claim != null) { write("

"); write("


"); write("

"); write("

"); write(""); write(""); write(""); write("
"); write("CLAIM OPERATIONS"); write("
"); write(""); write(""); write(""); write(""); write(""); write("
"); write("
"); }
if (__claim != null) { write("


"); write("

"); write("CLAIM OPERATION RESULTS"); write("

"); // handle acceptance of claim if (request.claimOp == "ACCEPT") { write("CLAIM ACCEPTED
"); } // handle rejection of claim if (request.claimOp == "REJECT") { write("CLAIM REJECTED
"); } // handle acceptance of claim if (request.claimOp == "DELETE") { write("CLAIM DELETED
"); } write("


"); }