Docsity

Database Design and Implementation: A Three-Tier Architecture Approach, Slides of Applications of Computer Sciences

Partial preview of the text

Download Database Design and Implementation: A Three-Tier Architecture Approach and more Slides Applications of Computer Sciences in PDF only on Docsity!

Outline

 Introduction

 Previous Work

 Three main parts - Physical Database Design, Deployment Model and

the Graphical User Interfaces.

 Implementation

 Layered Architecture

 Three Tier Architecture

 Use Cases Implementation

 Each Use Case is implemented individually

 Test Cases

 Conclusion

 References

Previous work

Presentation Focus

Introduction

Presentation Focus

 The primary Focus is on the implementation of the

Use cases. Each Use case is implemented

Separately.

 The layered Architecture is shown to explicitly

define how and which code snippets were used in

the implementation

 Test cases are also shown at the end of the

Presentation to elaborate on the quality which has

been incorporated into the project.

Layered Architecture

Use Case Implementation

Implementation

Presentation Tier

WebForm (UI)

WebForm (CodeBehind)

Business Tier

Objects

DAL

Data Tier

Stored Procedures

Data Tables

Select Goods

Order Fulfillment

Register as a new Customer

Sign In to Customer Account

Use Credit Card

Use Invoice

Use Direct Billing

Source Goods

Checking Order Status

Use Cases Implementation

HomePage

Code Behind

Product Catalog UI

Custom Entity Class

DAL

ProductDAL

countrows = dsPCLAN.Tables("Product").Rows.Count

For Each row As DataRow IndsPCLAN.Tables("Product").Rows Dim prod As New Product

prod.Product_ID = row("PRODUCT_ID") prod.Product_Line_ID=row("PRODUCT_LI NE_ID") prod.Catalog_Item_Name = row("CATALOG_ITEM_NAME").ToString() prod.Product_Actual_Cost = row("PRODUCT_ACTUAL_COST")

prod.Product_Selling_Cost = row("PRODUCT_SELLING_COST") prod.Product_Count = row("PRODUCT_COUNT") prod.Cost_Currency_CD = row("COST_CURRENCY_CD") prod.Product_Status = row("PRODUCT_STATUS").ToString() prod.Manufacturing_Company_Id = row("MANUFACTURING_COMPANY_ID"). ToString() productList.Add(prod)

Next Return productList

Adding to Product.vb from

the database

Order.aspx

myDataColumn = New DataColumn() myDataColumn.DataType = GetType(Decimal) myDataColumn.ColumnName = "Total_Price"

myDataTable.Columns.Add(myDataColum n)

Dim count, index As Integer Dim manComp As New ManufacturingCompany Dim manCompDal As New ManufacturingCompanyDAL prodArray = CType(Current.Session("ProductArray"), ArrayList) count = prodArray.Count

For index = 0 To (count - 1) product = prodArray(index)

manComp = manCompDal.GetManufacturingCompany (product.Manufacturing_Company_Id Dim totalPrice As Decimal totalPrice = totalPrice + (product.Product_Selling_Cost) Dim rowNew As DataRow rowNew = myDataTable.NewRow() rowNew("Product_ID") = product.Product_ID rowNew("Product_Name")= product.Catalog_ Item_Name

Adding rows from product.vb

Creating Grid columns

Custom Entity

Class

DAL

Order Table

Order Page UI

Order Fulfillment

 Presentation Tier

 Sign In.aspx

 Sign In.aspx.vb

 CustomerAccount.aspx

 CustomerAccount.aspx.vb

 Business Tier

 Customer.BE

 CustomerDAL

 CustomerAccount.BE

 CustomerAccountDAL

 Data Tier

 CustomerTable

 CustomerAccountTable