Title: Sequence Diagram
1(No Transcript)
2(No Transcript)
3Sequence Diagram
ProductBycategory.aspx
ProductRecord.aspx
CategoryProduct.aspx
ShoppingCartShow.aspx
A Customer
cartShoppingCart
Page_Load(sender, e)
Page_Load(sender, e)
Page_Load(sender, e)
CategoryID, CategoryName
ProductID
ButtonAdd_Click(sender, e)
Page_Load(sender, e)
addItem(myItem)
Page_Load(sender, e)
updateCart(itemIDs(), quantities())
OR
Page_Load(sender, e)
Page_Load(sender, e)
OR
Page_Load(sender, e)
4Class Diagram of Item and ShoppingCart
ShoppingCart
-itemsOrdered Hashtable
The UML Diagram is Partially generated from Visio
Enterprise Architect
New()
Cart() Hashtable
getItemsOrdered() Hashtable
addItem(in myItem Item)
showCart() String
Visibility
updateCart(in itemIDs() String, in
quantities() String)
-setNumOrdered(in itemID String, in numOrdered
Integer)
Public Protected - Private
-Cart
1
-ItemsOrdered
Item
-m_itemID String
m_cost is the private attribute of the public
property cost (i.e., unit-price)
-m_name String
-m_description String
-m_cost Double
-m_quantity Integer
New()
New(in itemID String, in name String, in
cost Double, in quantity Integer)
ItemID() String
name() String
description() String
cost() Double
quantity() Integer
getItem() Item
setItem(in xItem Item)
TotalCost() Double
5Separation of Presentation and Business Logic
Zero degree of separation
.ASPX HTML Code Event Procedure Script
1st degree of separation
.ASPX (presentation tier) Code Behind (Event
Procedures)
1.5 degree of separation
.ASPX (presentation tier) Code Behind (Event
Procedures Functions)
6Continued
2nd degree of separation
.ASPX (presentation tier) Code Behind (Event
Procedures Functions) Business Objects
3rd degree of separation
.ASPX (presentation tier) Code Behind (Event
Procedures Functions) Business Objects
Web Services (Remote Procedures)
Achieving Zero degrees of separation from your
business client.