Henry Banking System
Automatic Teller Machine (ATM)
System Structure Interface Facade

See also -   Business Functions   System Structure Interface Facade   Database Structure  
  • DataSet

  • Type Name Introduction
    Variable vector<string> dataRow Store every column data in the current row.
    Method void transact() Begin deal with the database file.
    Method void commit() End of dealing.
    Method void update() Update and store the current data row.
    Method void append(vector newRow) Add a new data row to the end of data table.
    Function int getRowCount() Return the number of data rows.
    Function int getRowId() Return current data row ID.
    Function bool Eof(), Bof() Return current status of the pointer.
    Function bool moveNext(), movePrev(), moveFirst(), moveLast(), moveTo(int row) Pointer movement.
    Function bool query(int column, string value) Do a special query, result will be stored in dataRow
    Virtual Function virtual toString() Return nothing (to be overriden).

  • Banking :: System

  • Type Name Introduction
    Function long getCurrentCardNo() Return the top of card number.
    Function long generateNewCardNo() Generate and return a new card number.
    Function long getCurrentDealingId() Return the top of dealing ID.
    Function long generateNewDealingId() Generate and return a new dealing ID

  • Banking :: Account (Inherit from DataSet)

  • Type Name Introduction
    Property string CardNo Refer to card number.
    Property string Name Account name.
    Property string Password User password.
    Property double Amount The sum of money.
    Property string DateTime Register Time.
    Method Account createAcount(string name, string password) Create a new account.
    Overriden Function virtual string toString() Return a string contained information of current account.
    Function bool searchByCardNo(string cardNo) Search account by card no. and move the pointer to the account.
    Function bool login(string cardNo, string password) Verify the card holder.

  • Banking :: Dealing (Inherit from DataSet)

  • Type Name Introduction
    Property string DealingId Each Dealing has a unique ID.
    Property string DealerCardNo Refer to an unique card holder.
    Property double DealingAmount Dealing amount (A plus or negative.).
    Property string DealingType 1 = OpenAccount; 2 = Draw; 3 = Deposit; 4 = ChangePassword
    Property string DealingDateTime Dealing Time.
    Method void appendDealing(string cardNo, double amount, string type) Add a new dealing to the bottom .
    Method void printBill() Print a bill in a standard form.
    Overriden Function virtual string toString() Return a string contained information of current account.