Sunteți pe pagina 1din 35

Portfolio Management Design Overview The overall design of the Stock Portfolio Management System is an object-oriented approach.

a brief overview of the class design. A class dependence diagram is provided to Below is illustrate the classes ( See : 2-1). help Page A Portfolio represents the object that contains all of the information See : 3-1). A Portfolio ( Page will keep track of the cash account as well as all sales and purchases of stock. Portfolio also keeps all of StockHistory information that is necessary for the sale or purchase of The the stock. Cas is used to keep track of CashTransaction (See : 3-5). Cas class includes h all s Page The h methods that allow the user to make deposits and withdrawals. Cas object will also be able return the current balance and the balance of the cash account on any given to A h date. A CashTransactio represents a single cash transaction See : 3-6). This n (transaction, the amount of the transaction, a description of Page information includes the date of the transaction, and the type of the transaction (deposit, withdrawal, stock purchase, or stock the sale). A TaxLo is used to record the purchase or sale of Stock (See : 3-3). When recording t a Page a stock purchase, TaxLo stores the date, price, and number of shares purchased for corresponding Stock object. If the stock is sold, TaxLo will also store the date, price, a t the the t and number of shares sold for Stock object. the A Stock object represents a company See : 3-4). Stock object provides the name the company and its ticker ( Page The of symbol. A MarketHistory object keeps historical information for all companies provided in the Stock : History folder ( See 3-7). MarketHistory object maintains StockHistory object for each individual Page company The a provided. A StockHistory holds the historical information for one company See : 3-8). ( Page A StockDa object represents the historical data of one day of trading for a company See : y ( Page 3-9). A Date represents a calendar date See : 3-10). ( Page A Report object represents the output from a report See : 3-11). The output could be HTML, PDFXML, or images. The purpose of ReportPage is to abstract away how to present object ( text, a a report.

Stock System

1-1

Stock Portfolio Management System Dependency Diagram


Portfoli o

Report Cash ketHistory

axLot

Mar

CashTr StockHistory

ansaction

Stock StockDay

Date

2-1

Stock System

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63

Portfolio Class Designs

Management

Class Portfoli o /* DESCRIPTION : A Portfolio represents the entire financial information. This includes a Cash account, TaxLot information, and the histories of all available companies . CONSTRUCTOR METHODS: Portfolio( String public file) loads file: name, description, currencySymbol, StockHistory, TaxLot, & Cash; req #6, 13 INSTANCE VARIABLES: String name(file)name of the portfolio; req. #6 String description description of the users portfolio String currencySymbolPrefixcurrency currency prefix for reports String currencySymbolSuffixcurrency currency suffix for reports MarketHistory history all market history Vecter TaxLot lots stock sales and Cash purchases cash cash on hand INSTANCE METHODS: void setCurrencySymbol( String prefix, String public suffix ) replaces the class currency symbols public String getCurrencySymbolPrefix() returns the class currency symbol prefix public String getCurrencySymbolSuffix() returns the class currency symbol suffix public void setDescription( String description ) the sets portfolio description public String getDescription() the returns portfolio description String public getName() returns the portfolio namevoid public setName( String newNamethe new name, deletes the old portfolio (including cash), sets ) and saves a new one using the current name and other class data; req. #17 public void deletePortfolio() associated portfolio file; req deletes the #16 public int getValue( Date ) returns stock value + COH for a given date; req. #5 public int getCOH( Date ) returns COH for a given date public int getCOH( Datecurrent COH; req. returns ) #36 public int getAmountInvested( Date ) returns amount invested for a given date public int getPercentageGainLoss( Date ) returns percentage gain (+) or loss (-) for a given date public int getCurrencyGainLoss( Date ) (+) or loss (-) for a given returns amount of gain date public Report getRptOpenTaxLots( Date ) returns a line report of open tax lots for a given date with headers, sorted in ascending order by Purchase Date; req. #3943 public Report getRptClosedTaxLots( Date )

3-1

Stock System

64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86

Portfolio Class Designs

Management

*/

returns a line report of closed tax lots for a given date with headers, sorted in ascending order by Sell Date; req. #4447 public Report getRptOpenPositions( Date ) open positions for a given date returns a line report of with headers, sorted in ascending order by Trade Symbol; req. #4853 public Report getRptClosedPositions( Dateclosed positions for a given date returns a collection of ) with headers, sorted in ascending order by Closed (Sell) Date; req. #5458 Report public getRptBuysSells( Stock ) of buys and sells for the company returns a line report provided with headers, sorted in ascending order by date; req #5960 public Report getRptLineChart() chart of portfolio value with time returns a line period increments distributed along the x-axis and currency amount increments distributed along the y-axis; req. #6267 Report public getRptCashTransactions()of cash transactions with headers, sorted returns a line report in ascending order by Date; req. 6872Date public getMostRecentDate() recent date associated with portfolio returns the most activity

3-2

Stock System

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57

Portfolio Class Designs

Management

Class TaxLot /* DESCRIPTION : A TaxLot is used to represent stock that has been purchased and sold, records the purchase or sale of a Stock; req. #1011 CONSTRUCTOR METHODS: public TaxLot( Stock stock, Date buyDate, double buyPrice, int numberOfShares ) records the stock purchase with a new tax lot object; req. #1824 public TaxLot( Stock stock, Date buyDate, double buyPrice, int buyShares, Date sellDate, double sellPrice, int sellShares) records the stock purchase and sale with a new tax lot object INSTANCE VARIABLES: Stock stockassociated Date stock buyDate date at which the stock was the purchased double buyPrice price at which the stock was the int purchased buyShares shares Date purchased sellDate date at which the stock was the sold double sellPrice price at which the stock was the int sold sellShares shares sold INSTANCE METHODS: sellLot( Date sellDate, double sellPrice, int public sellShares ) a (partial) sale of the tax lot; req. #25records 28 public Stock getStock() the associated stock, from which symbol and company can returns be obtaine d public boolean isOpen( Date date ) returns true if the associated tax lot is open on the given date; false public Date otherwise getBuyDate() the associated buy returns date public double getBuyPrice() the associated price per returns share public int getBuyShares() returns the associated number of shares purchased public Date getSellDate() the associated sell returns date public double getSellPrice()the associated sell price per returns share public int getSellShares() associated number of shares returns the sold public int getPercentageGainLoss() returns percentage gain (+) or loss (-) for the tax lot public int getCurrencyGainLoss() gain (+) or loss (-) for the tax returns amount of lot */

3-3

Stock System

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22

Portfolio Class Designs

Management

Class Stock /* DESCRIPTION : Stock represent a company name and its associated ticker symbol. CONSTRUCTOR METHODS: public Stock( symbol, company )new stock given a ticker symbol and company creates a name INSTANCE VARIABLES: String symbol trading symbol; req. #32 String company associated company name INSTANCE METHODS: public String getSymbol() ticker symbol for the returns the stock public String getName() company name for the returns the stock */

3-4

Stock System

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44

Portfolio Class Designs

Management

Class Cash /* DESCRIPTION : Cash represents a cash account. It is a collection of CashTransaction objects. CONSTRUCTOR METHODS: public Cash( Portfolio portfolio ) loads the file and adds transactions to the collection given the portfolio for filename; req. #7-8 INSTANCE VARIABLES: Vector cashTransactio all COH n activity INSTANCE METHODS: cashDeposit( double amount, Date date, String public void comment )the deposit transaction to the collection; req. adds #37 public void cashWithdrawal( double amount, Date date, String comment )the withdrawal transaction to the collection; req. adds #38 public void stockSale( stock Stock, Date date, int shares, double price) creates a new CashTransaction for a stock sale; generates comment in format: Sale of [Ticker Symbol]: [# of Shares] @ [Price] public void stockPurchase( stock Stock, Date date, int shares, double price) creates a new CashTransaction for a stock sale; generates comment in format: Sale of [Ticker Symbol]: [# of Shares] @ [Price] public double getCOH( Date date ) returns the COH for a given date public double getCOH() the most recent COH (accounts for all activity); returns #36 public Date getFirstDeposit() date of the first returns the deposit public Date getLastTransaction() returns the date of the most recent transaction public String getRptCashTransactions()of cash transactions with headers, sorted returns a line report in ascending order by public void save( Date Portfolio instance ) records the current collection to disk given the Portfolio (for file location) public void load( Portfolio instance ) a collection to disk given the Portfolio (for file loads location) */

3-5

Stock System

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46

Portfolio Class Designs

Management

Class CashTransactio n /* DESCRIPTION : A CashTransaction represents a single transaction. This can be a cash deposit, cash withdrawal, stock purchase, or a stock sale. CONSTRUCTOR METHODS:CashTransaction( double amount, String type, Date date, public String comment creates a ) new CashTransaction for a deposit or withdrawal public CashTransaction( String type, Date date, Stock stock, int Shares, double price) creates a new CashTransaction for a stock purchase or sale CONSTANTS : public static final char codeCashDeposit = D public static final char codeCashWithdrawal = W static final char codeStockSale = public S public static final char codeStockPurchase = P INSTANCE VARIABLES: req. #9 double amount amount of the char transaction typeCode Cash Deposit, W = Cash Withdrawal, S = Stock Sale, P = D= Stock Purchase Date date date of transaction String comment associated description INSTANCE METHODS: public double getAmount() the amount of the returns transactionString public getType() returns the type of transaction( cash deposit, cash withdrawal, stock sale, stock purchase) public Date getDate() the date for the returns transaction public String getComment() comment for the returns the transaction public String toString() returns the cash transaction as a String */

3-6

Stock System

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42

Portfolio Class Designs

Management

Class /*

MarketHistory

DESCRIPTION : A MarketHistory represents the entire historical information for all companies provided. CONSTRUCTOR METHODS: public MarketHistory( Portfolio portfolio ) instantiates and populates StockHistory[] given a portfolio object (for stock files location) and updates earliestDate and mostRecentDate with each addition to StockHistory[] INSTANCE VARIABLES: StockHistory[] stocks contains a stocks Date history earliestDate market date in earliest Date history mostRecentDate most recent market date in history INSTANCE METHODS: void loadStock( String private filename ) a StockHistory object and adds it to the class creates collection, StockHistor y private String[] getFilenames() collection of filenames in the StockHistory returns a folder public StockHistory[] getStocks() a collection of all stocks with historic daily returns summaries public StockHistory[] getStocks( Date date )returns a collection of all stocks with historic daily summaries for a given date public boolean inHistory( String symbol ) returns true if MarketHistory contains StockHistory for the given symbol, false otherwise public boolean inHistory( String symbol, Date date )returns true if MarketHistory contains StockHistory for the given symbol and date, false otherwise public StockDay getStockDayHistory( Stock stock, Date date )returns the statistics (open, close, high, low, volume) contained in type StockDay for the date provided */

3-7

Stock System

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35

Portfolio Class Designs

Management

Class StockHistory /* DESCRIPTION : StockHistory holds the historical information for one company; A #29-35 CONSTRUCTOR METHODS: public StockHistory( String filename ) all daily activity for a given filename and adds loads it to dailyHistory, populates Stock; INSTANCE VARIABLES: StockDay[] dailyHistory for every historic statistics Stockdate stockthe objects associated Date stock earliestDate earliest date in stocks Date history mostRecentDate stocks most recent date in history INSTANCE METHODS: public StockDay getDaySummary( Date date )returns the statistics (open, close, high, low, volume) contained in type StockDay for the date provided public Date getEarliestDate()earliest date that the stock has history returns the for public Date getMostRecentDate() recent date that the stock has history returns the most for public boolean inHistory( Date date )returns true if the date provided has an associated days summary, false if it does not public Date[] daysWithHistory() returns a collection of dates with recorded stock */ activity

3-8

Stock System

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29

Portfolio Class Designs

Management

Class /*

StockDay

DESCRIPTION : A StockDay object represents the historical data of one day of trading for a company . CONSTRUCTOR METHODS:Date date, Stock stock, double priceOpen, double StockDay( priceClose, double priceHigh, double priceLow, int volume ) creates a new stock day given a summary of one days activity INSTANCE VARIABLES: Date date the associated trading day double priceClose double priceOpen double priceHigh double priceLow int volume INSTANCE METHODS: public Stock getStock() public Date getDate() public double getPriceClose() public double getPriceOpen() public double getPriceHigh() public double getPriceLow() public int getVolume() */

3-9

Stock System

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

Portfolio Class Designs

Management

Class

Date

/* DESCRIPTION : Represents a calendar date inside the Stock Portfolio Management System CONSTRUCTOR METHODS:int day, int month, int Date( year ) creates a new date Date(object String yearMonthDay ) new date object given date in the format: creates a YYYYMMDD INSTANCE METHODS: int getDay() returns the day as an int integer getMonth() the month as an returns int integer getYear() returns the year as an integer String getDate returns the date in the format: MM/DD/YYYY String getYearMonthDay date in the format: returns the */ YYYYMMDD

Extends java.util.Calendar

3-10

Stock System

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

Portfolio Class Designs

Management

Class Report /* DESCRIPTION : Represents report data CONSTRUCTOR METHODS: reportData, int reportDataType Report( object ) creates a new Report object storing the reportData and reportDataTyp e INSTANCE VARIABLES: object reportData int reportDataType INSTANCE METHODS:void Public viewReport( Component parentComponent ) GUI frame to view the creates a new report void Public printReport( Component parentComponent ) with needed information to print prompts user */ report

3-11

Stock System

Portfolio GUI Design

Management

F i le Pre fe re nce s He lp

N e w ta k e s yo u to th e P re f e re n c e s d ia lo g b o x

Ne w O pe n De le te Cl ose Sav e Exit

Va lid ch o ic e s w h en a n a cc o u n t is o p e n

O pe n Po rtf o lio
/\

Po rt fo li o N ame 0 1 Po rt fo li o N ame 0 1 Po rt fo li o

Po r tf o lio D e s cr ip t io n 0 1

Po r tf o lio D e s cr ip t io n 0 2

Po r tf o lio D e s cr ip t io n 0 3

\/

C an cel

Menu - File

File Menu A user would select the command from a dropdown menu for the GUI menu bar. Depending of the application different commands will be available. Provides access on the state to Portfolio maintenance requirements (13, 14, 15, 16). New: Prompts the user with the Preferences dialog box. Open: Prompts the user with the Open Portfolio dialog box ( See Page : 4-15).

Delete: (Requires that a Portfolio is open) prompts the user to close and delete Portfolio.open Close: (Requires that a Portfolio is open) Prompts the user if the Portfolio needs to be saved, closes Portfolio. Save : (Requires that a Portfolio is open) Saves the open Portfolio to disk.

Exit: Check to see if files need saving, exit program.

4-1

Stock System

Portfolio GUI Design

Management

F i le Pre fe re nce s He lp

Pre fe ren ces Acco un t N am e: De scri pt io n:

Cu rren cy La be l:

\/

O K C an cel

Menu - Preferences

Preferences Menu A user would select the command from a dropdown menu for the GUI menu bar. A Portfolio would need to be open for this menu to be active. Provides access to Portfolio maintenance (17). requirements The user could then edit or change the preferences for the open Portfolio. Changes could the name, description, and currency label include See : 4-16). ( Page

4-2

Stock System

Portfolio GUI Design

Management

F i le Pre fe re nce s He lp

He lp Abo ut

Menu - Help

Help Menu Provides access information. to help documentation and application

Help: Selecting the help menu item will open the help document in a web browser. About Displays the Splash Screen : ( See Page : 4-5).

4-3

Stock System

Portfolio GUI Design

Management

F il e Pref e ren ces He lp Da shb oa rd Ca sh St ocks R ep ort s

GU I Ta b s

Navigation Tabs

Navigation Tabs The user can click on one of the tabs and switch between the available views in the application. The tabs are only visible when a portfolio is opened. Dashboard : Cash : Shows the Dashboard View ( See Page See Page See Page See Page : 4-8). : 4-11). : 4-14). : 4-7).

Shows the Cash View (

Stocks: Shows the Stocks View ( Reports: Shows the Reports View (

4-4

Stock System

Portfolio GUI Design

Management

S ta tu s A r ea

Stock Portfolio Management System

View Splash Screen

Splash Screen Default screen the user will see after the splash screen and stock history is loaded. This is the screen the user will see after they have: closed or deleted a also Portfolio.

4-5

Stock System

Portfolio GUI Design

Management

F il e Pref e ren ces He lp

C ho ose : F i le > O pe n or F ile > N ew t o g et st ar te d

View - Main

Main View Default screen the user will see after the splash screen and stock history is loaded. This is the screen the user will see after they have: closed or deleted a also Portfolio.

4-6

Stock System

Portfolio GUI Design

Management

F il e Pref e ren ces He lp Da shb oa rd O v ervi ew C as h on H a nd


$ 0 4, 2 3 4 .0

Ca sh

St ocks

R ep ort s

Amo un t I nv est ed
$ 3 5 , 0 75 . 0 4

St ock s C omp an y Pu rcha se d In ve ste d Va lu e


/\

\/

View - Dashboard

Dashboard View Default screen that will be visible once a Portfolio is opened. This screen provides an overview of the users current positions. The view shows the current of cash on hand, amount invested in stocks, and a breakdown of the amount currently stock tax owned lots.

4-7

Stock System

Portfolio GUI Design

Management

F il e Pref e ren ces He lp Da shb oa rd Ca sh O v ervi ew


C as h o n Ha n d : $ 4 , 23 4 . 00
ICON ICON

St ocks

R ep ort s

D e p o s it

W it hd r a w

T ra nsa ct ion s D escr ipt i on D at e Act ivi ty Am ou nt


/\

\/

View - Cash

Cash View This screen provides an overview of the cash on hand, deposit and withdraw commands, and a transaction history view.

4-8

Stock System

Portfolio GUI Design

Management

F i le Pre fe re nce s He lp Da sh boa rd Ca sh O vervi ew


C a sh o n H a n d: $ 4 , 2 34 . 0 0

St ock s

R ep or ts De po sit Ca sh D at e:
X

ICO N

ICON

Amo un t:
De p o s it W i th d ra w

D escri pt io n: T ra ns act io ns De scri pt io n Da te Act iv it y A mou nt


/\

O K C an cel
\/

View Cash [Deposit]

Deposit Cash When a user c licks on the Cash dialog box. The user will provide: ( Date Amount Deposited (optional) Description deposit icon the program will prompt the user with the Deposit : 4-17)

See Page

4-9

Stock System

Portfolio GUI Design

Management

F i le Pre fe re nce s He lp Da sh boa rd Ca sh O vervi ew


C a sh o n H a n d: $ 4 , 2 34 . 0 0

St ock s

R ep or ts W it hd raw Ca sh D at e:
X

ICO N

ICON

Amo un t:
De p o s it W i th d ra w

D escri pt io n: T ra ns act io ns De scri pt io n Da te Act iv it y A mou nt


/\

O K C an cel
\/

View Cash [W ithdraw]

Withdraw Cash When a user c licks on the Withdraw Cash dialog box. The user will provide: ( Date Amount Deposited (optional) Description withdraw icon the program will prompt the user with the : 4-18)

See Page

4-10

Stock System

Portfolio GUI Design

Management

F il e Pref e ren ces He lp Da shb oa rd Ca sh St ocks O v ervi ew


Am o un t I n ve s te :d $ 35 , 0 7 5. 0 4
ICON ICON

R ep ort s

P u rc h a se

S e ll

St ock / T ran sac ti on s C omp an y Pu rcha se d In ve ste d Va lu e


/\

\/

View - Stocks

Stocks View This screen provides an overview of the stocks that are owned by this Portfolio, purchase commands, and a transaction history and sell view.

4-11

Stock System

Portfolio GUI Design

Management

F i le Pre fe re nce s He lp Da sh boa rd Ca sh St ock s O vervi ew


A mo u n t In ve s te :d $ 3 5 ,0 7 5 .0 4

R ep or ts

ICO N

ICON

P u r ch a s e

Se ll

St oc k / T ran sa ct ion s C om pa ny P urch ase d I nve st ed Va lu e


/\

Pu rch/ ase Sto ck \ D at e : St oc k: Nu mbe r of Sha res : Pri ce:

\/

O K C an ce l

View Stocks [Purchase]

Purchase Stock When a user c licks on the Purchase Stock dialog box. The user will provide: ( Date Company Symbol Number / of Stock purchas e icon the program will prompt the user with the

See Page

: 4-19)

Shares Purchase Price

4-12

Stock System

Portfolio GUI Design

Management

F i le Pre fe re nce s He lp Da sh boa rd Ca sh St ock s O vervi ew


A mo u n t In ve s te :d $ 3 5 ,0 7 5 .0 4

R ep or ts

ICO N

ICON

P u r ch a s e

Se ll

St oc k / T ran sa ct ion s C omp an y P urch ase d I nve st ed Va lu e


/\

Se ll S to ck
\/

D at e : St oc k: T ax Lo t :

\/ \/

Nu mbe r of Sha res : Pri ce:

O K C an ce l

View Stocks [Sell]

Sell Stock When a user c licks on the dialog box. The user will provide: ( Date sell icon the program will prompt the user with the Sell Stock : 4-20)

See Page

Select Company / Stock Symbol Tax Lot (Only currently owned Tax Select Lots) Number of Shares Purchase Price

4-13

Stock System

Portfolio GUI Design

Management

F il e Pref e ren ces He lp Da shb oa rd Ca sh St ocks R ep ort s

R ep ort

\/

S e le ct r e p o r t

( R ep ort Op t io ns )

Vie w

Op e n R e p o r t i n n e w w in d o w

View - Reports

View Reports This screen will provide a mechanism to select reports, set report options, and view a report. (Select Report): Use the select report See Page : 4-21).

View: Opens a new window with the selected report (

4-14

Stock System

Portfolio GUI Design

Management

O pe n Po rt fo li o
/\

Po rt fo li o N ame 01 Po rt fo li o N ame 01 Po rt fo li o

Po r t fo lio De s c rip t io n 0 1

Po r t fo lio De s c rip t io n 0 2

Po r t fo lio De s c rip t io n 0 3

\/

C an cel

Dialog Box - Open

Open Portfolio Dialog Box Detail view of Open Portfolio dialog box.

4-15

Stock System

Portfolio GUI Design

Management

Pre fe ren ce s Acc oun t N am e: De scri pt io n:

Cu rren cy La be l:

\/

O K C an cel

Dialog Box Preferences

Preferences Dialog Box Detail view of Preferences dialog box. Account Name: The user provides an account name for the Portfolio.

Description: The user and optionally provide a description for the Portfolio. Currency Label: The user can select from a list of currency labels.

[OK] When the user clicks on the OK button the preferences in the dialog box will : replace the current Portfolio preferences, the window will close. [Cancel]: When the user clicks on the Cancel button the window will close and cancel any action.

4-16

Stock System

Portfolio GUI Design

Management

De po sit Ca sh D at e: Amo un t: D escri pt io n:

O K C an cel

Dialog Box Deposit Cash

Deposit Cash Dialog Box Detail view of Deposit Cash dialog box. Date: The user will select a date or enter a date in the space provided. Amount : The user will provide an amount.

Description: The user can optionally provide a desc ription of the transac tion. [OK] When the user clicks on the OK button, cash transaction is saved and the : closes. window [Cancel]: When the user clicks on the Cancel button the window will close and cancel any action.

4-17

Stock System

Portfolio GUI Design

Management

W it hd ra w Ca sh D at e: Amo un t: D escri pt io n:

O K C an cel

Dialog Box Withdraw Cash

Withdraw Box Detail view of Withdraw Cash dialog box.

Cash

Dialog

Date: The user will select a date or enter a date in the space provided. Amount : The user will provide the amount of money to withdraw.

Description: The user can optionally provide a desc ription of the transac tion. [OK] When the user clicks on the OK button, cash transaction is saved and the : closes. window [Cancel]: When the user clicks on the Cancel button the window will close and cancel any action.

4-18

Stock System

Portfolio GUI Design

Management

P urch as e St ock Da te : St o ck: N umb er o f Sh are s: P rice :

\/

O K Ca nce l

Dialog Box Purchase Stock

Purchase Stock Dialog Box Detail view of Purchase Stock dialog box. Date: The user will select a date or enter a date in the space provided. Stock: The user will select the stock (company) from the list provided. The selection limited is stocks that are in the market to history. Number Shares: of The user will provide a number of shares that was purchased.

Price: The user will provide a purchas e price for each share of stock. The purchase price is bounded by the price information in the market history. [OK] When the user clicks on the OK button, cash transaction is saved and the : closes. window [Cancel]: When the user clicks on the Cancel button the window will close and cancel any action.

4-19

Stock System

Portfolio GUI Design

Management

S el l St ock Da te : St o ck: T ax L ot : N umb er o f Sh are s: P rice :

\/ \/

O K Ca nce l

Dialog Stock

Box

Sell

Sell Stock Dialog Box Detail view of Sell Stock dialog box. Date: The user will select a date or enter a date in the space provided. Stock: The user will select from a list of currently owned stocks. Tax Lot: Once a stock is selected, this list is populated with the available tax lots.

Number of The user then enters the number of shares that they would like to Shares: is limited to the number that is owned in the tax sell. The user lot. Price: The user will provide a sale price for the stock. The sale price is limited to what is provided in the market history. [OK] When the user clicks on the OK button, cash transaction is saved and the : closes. window [Cancel]: When the user clicks on the Cancel button the window will close and cancel any action.

4-20

Stock System

Portfolio GUI Design

Management

P rin t Fu n c tio n

( R ep ort Vie w )

Report View

Report View This screen will provide a mechanism to view and print selected reports. Printer Icon (Print Function): When the user click on the printer icon a standard dialog box will be displayed. The print can selec t the need print options and print the user reportcancel the print or request.

4-21

S-ar putea să vă placă și