Sie sind auf Seite 1von 110

PROJECT REPORT

Student1002051 Antonie Cruz


Student1002052 Apple Marie Fajardo
1

CERTIF

__________________________________ __________________________________
2

ACKNOWLEDGEMENT

the project work in Aptech Qatar Education


Centre

We are thankful for and fortunate enou h to get constant encouragement, support an guidance
from all Teachin Staffs of Apte h Qata which helped us in successfully completing our project work.

Lastly, to family members, friends and relatives, who supported us until the resentation of this
projec , thank you for always belie ing and trus ing.
3

TABLE OF CONTENTS

PROJECT SYNOPSIS..............................................................................................................................................................8
PROJECT ANALYSIS ..............................................................................................................................................................9
PROJECT PLAN ................................................................................................................................................................... 10
PROJECT DESIGN ............................................................................................................................................................... 11
DATA FLOW DIAGRAM .......................................................................................................................................................12
FLOWCHART ...........................................................................................................................................................................13
PROCESS DIAGRAM .............................................................................................................................................................14
DATABASE DESIGN AND STRUCTURE ..........................................................................................................................15
CAREERS TABLE .................................................................................................................................................................15
CLIENTS TABLE ..................................................................................................................................................................16
CUSTOMERS TABLE .........................................................................................................................................................16
ORDER_PRODUCTS TABLE ............................................................................................................................................16
ORDERS TABLE ..................................................................................................................................................................17
PRODUCTS TABLE ............................................................................................................................................................17
SHOPPINGCARTDATA TABLE ......................................................................................................................................17
SUPPLIERS TABLE ..............................................................................................................................................................18
SCREENSHOTS .................................................................................................................................................................... 19
HOMEPAGE ..............................................................................................................................................................................19
ABOUT US ................................................................................................................................................................................21
OUR PRODUCTS ....................................................................................................................................................................22
QUOTE US ................................................................................................................................................................................24
CONTACT US ...........................................................................................................................................................................25
REGISTER...................................................................................................................................................................................26
LOGIN.........................................................................................................................................................................................26
USER SPECIFIC PAGES .........................................................................................................................................................27
ADMIN PAGE ......................................................................................................................................................................27
CANDIDATE PAGE ............................................................................................................................................................27
CUSTOMER PAGE .............................................................................................................................................................28
SOURCE CODES ................................................................................................................................................................. 29
MVC ............................................................................................................................................................................................29
4

MODELS ...............................................................................................................................................................................29
VIEWS ....................................................................................................................................................................................41
CONTROLLERS ...................................................................................................................................................................51
ALGORITHMS ..........................................................................................................................................................................66
CONNECTION STRINGS .................................................................................................................................................66
IDENTITY USER - ROLE ....................................................................................................................................................66
UPLOAD RESUME .............................................................................................................................................................69
SEND EMAIL........................................................................................................................................................................70
INTERFACE DESIGN ..............................................................................................................................................................71
HTML 5 .................................................................................................................................................................................71
CSS 3 ......................................................................................................................................................................................76
TASK SHEET ......................................................................................................................................................................... 80
USER GUIDE......................................................................................................................................................................... 81
HEADER .....................................................................................................................................................................................82
FOOTER .....................................................................................................................................................................................82
HOMEPAGE ..............................................................................................................................................................................83
ABOUT US ................................................................................................................................................................................84
OUR PRODUCTS ....................................................................................................................................................................84
QUOTE US ................................................................................................................................................................................87
CONTACT US ...........................................................................................................................................................................89
REGISTER...................................................................................................................................................................................90
LOG IN .......................................................................................................................................................................................91
ADMIN PAGE ......................................................................................................................................................................92
CANDIDATE PAGE ......................................................................................................................................................... 100
CUSTOMER PAGE .......................................................................................................................................................... 103
DEVELOPER’S GUIDE ....................................................................................................................................................... 106
MODULE DESCRIPTION ................................................................................................................................................... 106
MINIMUM SYSTEM REQUIREMENTS ..................................................................................................................... 106
SYSTEM USED ................................................................................................................................................................. 107
PROJECT REVIEW AND MONITORING REPORT ...................................................................................................... 108
UNIT TESTING CHECKLIST ............................................................................................................................................. 109
FINAL TESTING CHECKLIST ........................................................................................................................................... 109
5

Figure 1: Project Plan Table .................................................................................................................. 10


Figure 2: Data Flow Diagram ................................................................................................................. 12
Figure 3: Flowchart ............................................................................................................................... 13
Figure 4: Process Diagram..................................................................................................................... 14
Figure 5: Entity Relationship Diagram................................................................................................... 15
Figure 6: Careers Table ......................................................................................................................... 15
Figure 7: Clients Table ........................................................................................................................... 16
Figure 8: Customers Table .................................................................................................................... 16
Figure 9: Order_Products Table ............................................................................................................ 16
Figure 10: Orders Table ......................................................................................................................... 17
Figure 11: Products Table ..................................................................................................................... 17
Figure 12: Shopping Cart Data Table .................................................................................................... 17
Figure 13: Suppliers Table ..................................................................................................................... 18
Figure 14: Homepage ............................................................................................................................ 20
Figure 15: About Us .............................................................................................................................. 21
Figure 16: Our Products ........................................................................................................................ 23
Figure 17: Quote Us .............................................................................................................................. 24
Figure 18: Contact Us ............................................................................................................................ 25
Figure 19: Registration Page ................................................................................................................. 26
Figure 20: Login Page ............................................................................................................................ 26
Figure 21: Admin Page .......................................................................................................................... 27
Figure 22: Candidates Page ................................................................................................................... 27
Figure 23: Customer Page ..................................................................................................................... 28
Figure 24: Models ................................................................................................................................. 29
Figure 25: Account View Model ............................................................................................................ 31
Figure 26: Clients Model ....................................................................................................................... 32
Figure 27: Email Model ......................................................................................................................... 33
Figure 28: Manage View Model ............................................................................................................ 35
Figure 29: Career Model ....................................................................................................................... 36
Figure 30: Customer Model .................................................................................................................. 37
Figure 31: Order Model......................................................................................................................... 38
Figure 32: Order Products Model ......................................................................................................... 38
Figure 33: Products Model .................................................................................................................... 39
Figure 34: Shopping Cart Data Model ................................................................................................... 40
Figure 35: Supplier Model ..................................................................................................................... 40
Figure 36: Views .................................................................................................................................... 42
Figure 37: _Layout.cshtml (View) ......................................................................................................... 44
Figure 38: Index.cshtml (Manage) ........................................................................................................ 45
Figure 39: Index.cshtml (Role) .............................................................................................................. 45
Figure 40: SendEmail.cshtml (Career) ................................................................................................... 46
Figure 41: Index.cshtml (Products) ....................................................................................................... 49
Figure 42: Index.cshtml (User) .............................................................................................................. 50
Figure 43: Controllers............................................................................................................................ 51
Figure 44: RoleController.cs (Roles)...................................................................................................... 53
6

Figure 45: UsersController.cs (Users) ................................................................................................... 55


Figure 46: SuppliersController.cs (Suppliers) ........................................................................................ 57
Figure 47: ClientsController.cs (Clients) ................................................................................................ 59
Figure 48: CheckoutController.cs (Checkout) ....................................................................................... 62
Figure 49: CareersController.cs (Careers) ............................................................................................. 65
Figure 50: Connection Strings ............................................................................................................... 66
Figure 51: Identity User – Role.............................................................................................................. 66
Figure 52: IsAdminUser() ...................................................................................................................... 67
Figure 53:IsCandidateUser() ................................................................................................................. 67
Figure 54: Pseudo Code ........................................................................................................................ 68
Figure 55: Upload Resume .................................................................................................................... 69
Figure 56: Send Email............................................................................................................................ 70
Figure 57: Header HTML ....................................................................................................................... 71
Figure 58: Footer HTML ........................................................................................................................ 72
Figure 59: HomePage HTML ................................................................................................................. 74
Figure 60: About Us HTML .................................................................................................................... 75
Figure 61: Contact Us HTML ................................................................................................................. 75
Figure 62: CSS3...................................................................................................................................... 79
Figure 63: Task Sheet Table .................................................................................................................. 80
Figure 64: File Location ......................................................................................................................... 81
Figure 65: IIS Express ............................................................................................................................ 81
Figure 66: URL(localhost) with favicon ................................................................................................. 81
Figure 67: Navbar (Default View).......................................................................................................... 82
Figure 68: Navbar (Logged in user View) .............................................................................................. 82
Figure 69: Footer ................................................................................................................................... 82
Figure 70: Buttons in Homepage .......................................................................................................... 83
Figure 71: Snippet from About Us ........................................................................................................ 84
Figure 72: Editable View (Our Products)............................................................................................... 84
Figure 73: Edit View (Our Products)...................................................................................................... 85
Figure 74: Details View (Our Products) ................................................................................................. 86
Figure 75: Delete View (Our Products) ................................................................................................. 86
Figure 76: Hyperlinks to .pdf files ......................................................................................................... 86
Figure 77: Edit View (Quote Us) ............................................................................................................ 87
Figure 78: Details View (Quote Us) ....................................................................................................... 88
Figure 79: Delete View (Quote Us) ....................................................................................................... 88
Figure 80: Snippet from Contact Us page ............................................................................................. 89
Figure 81: Dropdown list - Choosing an Account.................................................................................. 90
Figure 82: Validation Error Messages ................................................................................................... 90
Figure 83: Reset Password page ........................................................................................................... 91
Figure 84: Resetting the password ....................................................................................................... 91
Figure 85: Admin Page .......................................................................................................................... 92
Figure 86: Overview of the Account Types ........................................................................................... 92
Figure 87: Adding Account Type ........................................................................................................... 92
Figure 88: Manage View (Candidates) .................................................................................................. 93
Figure 89: Details View (Candidates) .................................................................................................... 93
Figure 90: Downloaded Curriculum Vitae ............................................................................................. 93
Figure 91: Sending an Email (Candidates)............................................................................................. 94
Figure 92: Email sent successfully ......................................................................................................... 94
7

Figure 93: Email Received ..................................................................................................................... 95


Figure 94: Manage View (Clients) ......................................................................................................... 95
Figure 95: Details View (Clients) ........................................................................................................... 95
Figure 96: Delete View (Clients) ............................................................................................................ 96
Figure 97: Edit View (Clients) ................................................................................................................ 96
Figure 98: Manage Customers .............................................................................................................. 97
Figure 99: Adding New Products........................................................................................................... 97
Figure 100: Dropdown list (Products) ................................................................................................... 98
Figure 101: Manage Suppliers .............................................................................................................. 98
Figure 102: Details View (Suppliers) ..................................................................................................... 98
Figure 103: Delete View (Suppliers) ...................................................................................................... 99
Figure 104: Adding a Supplier ............................................................................................................... 99
Figure 105: Candidate Page ................................................................................................................ 100
Figure 106: Register (Candidates) ....................................................................................................... 100
Figure 107: Uploading Curriculum Vitae ............................................................................................. 101
Figure 108: Validation Error ................................................................................................................ 101
Figure 109: Edit View (Candidates) ..................................................................................................... 102
Figure 110: Customer page ................................................................................................................. 103
Figure 111: Creating an Account (Customer)...................................................................................... 103
Figure 112: States dropdown list (Customer) ..................................................................................... 104
Figure 113: Card Types dropdown list (Customer) ............................................................................. 104
Figure 114: Date picker field (Customer) ............................................................................................ 104
Figure 115: Empty Shopping Cart ....................................................................................................... 105
Figure 116: Items in Shopping Cart ..................................................................................................... 105
Figure 117: Success Message .............................................................................................................. 105
Figure 118: Unit Testing Table ............................................................................................................ 109
Figure 119: Final Testing Table ........................................................................................................... 109
8

XYZ Pharmaceuticals
9
10

Task No. of Days Start Date End Date

Figure 1: Project Plan Table


11

o
o
o

o
o
o
o
o
o
o
o
o
o

o
o
o

o



o

o
o
12

ADMIN CANDIDATE CUSTOMER

MANAGEMENT MANAGEMENT

XYZ PHARMACEUTICALS

INSERT
TABLE
RETURN

RESPONSE DELETE

REQUEST
DELETE
ADD
NEW
RETURN

REQUEST
RESPONSE
ADMIN
REQUEST REQUEST

UPDATE
LOAD
EDIT

VIEW
REQUEST
RETURN
TABLE

Figure 2: Data Flow Diagram


13

About Us
(Read More)
Our Products
Home (Landing)
(Show More)
Register
About Us
(Join)

Our Products

Quote Us

Contact Us
Candidate
Register
Customer

Reset Password

Manage Roles Add New Role

Edit
XYZ Pharmaceuticals

Details
Manage
(Index)

Candidates
Delete

Email

Edit

Manage Clients Details

Admin Delete

Edit

Manage
Details
Customers

Delete

Edit

Manage
Details
Products

Delete
Login
Edit

Manage
Details
Suppliers
Register an
Delete
Account

Candidate Edit Account

Reset Password

Create Account

Customer Reset Password


Clear
Shopping Cart
Purchase

Figure 3: Flowchart
14

XYZ Pharmaceuticals
Company

Home

Information about the Introduction of the


About
company/organisation Company
Us

Objectives of the
Company

Our
Capsule/Encapsulation Products
Click on the links that
Tablets directly view to other tabs

QUOTE
Liquid Filling US

Career

Contact
Us
Feedback/Suggestion Form Create an account

Register
Do you have
Location Map
an account
Invoke Local Call
already?
Mail Client

Login

Manages the website and


candidates flow Candidate Login

Figure 4: Process Diagram


15

Figure 5: Entity Relationship Diagram

Field name Datatype Allow nulls Keys Description

Figure 6: Careers Table


16

Field name Datatype Allow nulls Keys Description

Figure 7: Clients Table

Field name Datatype Allow nulls Keys Description

Figure 8: Customers Table

Field name Datatype Allow nulls Keys Description

Figure 9: Order_Products Table


17

Field name Datatype Allow nulls Keys Description

Figure 10: Orders Table

Field name Datatype Allow nulls Keys Description

Figure 11: Products Table

Field name Datatype Allow nulls Keys Description

Figure 12: Shopping Cart Data Table


18

Field name Datatype Allow nulls Keys Description

Figure 13: Suppliers Table


19
20

Figure 14: Homepage


21

Figure 15: About Us


22
23

Figure 16: Our Products


24

Figure 17: Quote Us


25

Figure 18: Contact Us


26

Figure 19: Registration Page

Figure 20: Login Page


27

Figure 21: Admin Page

Figure 22: Candidates Page


28

Figure 23: Customer Page


29

Figure 24: Models


30
31

Figure 25: Account View Model


32

Figure 26: Clients Model


33

Figure 27: Email Model


34
35

Figure 28: Manage View Model


36

Figure 29: Career Model


37

Figure 30: Customer Model


38

Figure 31: Order Model

Figure 32: Order Products Model


39

Figure 33: Products Model


40

Figure 34: Shopping Cart Data Model

Figure 35: Supplier Model


41
42

Figure 36: Views


43
44

Figure 37: _Layout.cshtml (View)


45

Figure 38: Index.cshtml (Manage)

Figure 39: Index.cshtml (Role)


46

Figure 40: SendEmail.cshtml (Career)


47
48
49

Figure 41: Index.cshtml (Products)


50

Figure 42: Index.cshtml (User)


51

Figure 43: Controllers


52
53

Figure 44: RoleController.cs (Roles)


54
55

Figure 45: UsersController.cs (Users)


56
57

Figure 46: SuppliersController.cs (Suppliers)


58
59

Figure 47: ClientsController.cs (Clients)


60
61
62

Figure 48: CheckoutController.cs (Checkout)


63
64
65

Figure 49: CareersController.cs (Careers)


66

<connectionStrings>
<add name="DefaultConnection" connectionString="Data
Source=(LocalDb)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\XYZpharmaceuticalsDB
.mdf;Initial Catalog=XYZpharmaceuticalsDB;Integrated Security=True"
providerName="System.Data.SqlClient" />
<add name="ClientsEntities"
connectionString="metadata=res://*/Models.Clients.csdl|res://*/Models.Clients.ssdl|
res://*/Models.Clients.msl;provider=System.Data.SqlClient;provider connection
string=&quot;data
source=(LocalDb)\MSSQLLocalDB;attachdbfilename=|DataDirectory|\XYZpharmaceuticalsDB
.mdf;initial catalog=XYZpharmaceuticalsDB;integrated
security=True;multipleactiveresultsets=True;application name=EntityFramework&quot;"
providerName="System.Data.EntityClient" />
<add name="XYZpharmaceuticalsDBEntities"
connectionString="metadata=res://*/Models.XYZpharmaceuticalsDB.csdl|res://*/Models.
XYZpharmaceuticalsDB.ssdl|res://*/Models.XYZpharmaceuticalsDB.msl;provider=System.D
ata.SqlClient;provider connection string=&quot;data
source=(LocalDb)\MSSQLLocalDB;attachdbfilename=|DataDirectory|\XYZpharmaceuticalsDB
.mdf;initial catalog=XYZpharmaceuticalsDB;integrated
security=True;multipleactiveresultsets=True;application name=EntityFramework&quot;"
providerName="System.Data.EntityClient" />
</connectionStrings>

Figure 50: Connection Strings

Figure 51: Identity User – Role


67

Figure 52: IsAdminUser()

Figure 53:IsCandidateUser()
68

START

Determine Logged in
User’s Role

TRUE Is the User FALSE


Logged In?

ViewBag.dispalyMenu =
“Not Logged IN”
Is the User FALSE
Admin?

TRUE

IsAdminUser()
Is the User FALSE
Candidate?

ViewBag.displayMenu = TRUE
“Admin”
IsCandidateUser()

ViewBag.displayMenu =
“Candidate”

ViewBag.displayMenu =
“Customer”

Show ViewBag.displayMenu

END

Figure 54: Pseudo Code


69

Figure 55: Upload Resume


70

Figure 56: Send Email


71

Figure 57: Header HTML


72

Figure 58: Footer HTML


73
74

Figure 59: HomePage HTML


75

Figure 60: About Us HTML

Figure 61: Contact Us HTML


76
77
78
79

Figure 62: CSS3


80

Planned Actual Start No. of


Stage Description Student Code Status
Start Date Date Days

Figure 63: Task Sheet Table


81

Figure 64: File Location

Figure 65: IIS Express

Figure 66: URL(localhost) with favicon


82

Figure 67: Navbar (Default View)

Figure 68: Navbar (Logged in user View)

Figure 69: Footer


83

Figure 70: Buttons in Homepage


84

Figure 71: Snippet from About Us

Figure 72: Editable View (Our Products)


85

Figure 73: Edit View (Our Products)


86

Figure 74: Details View (Our Products)

Figure 75: Delete View (Our Products)

Figure 76: Hyperlinks to .pdf files


87

Figure 77: Edit View (Quote Us)


88

Figure 78: Details View (Quote Us)

Figure 79: Delete View (Quote Us)


89

Figure 80: Snippet from Contact Us page


90

Figure 81: Dropdown list - Choosing an Account

Figure 82: Validation Error Messages


91

Figure 83: Reset Password page

Figure 84: Resetting the password


92

Figure 85: Admin Page

Figure 86: Overview of the Account Types

Figure 87: Adding Account Type


93

Figure 88: Manage View (Candidates)

Figure 89: Details View (Candidates)

Figure 90: Downloaded Curriculum Vitae


94

Figure 91: Sending an Email (Candidates)

Figure 92: Email sent successfully


95

Figure 93: Email Received

Figure 94: Manage View (Clients)

Figure 95: Details View (Clients)


96

Figure 96: Delete View (Clients)

Figure 97: Edit View (Clients)


97

Figure 98: Manage Customers

See OUR PRODUCTS,

Figure 99: Adding New Products


98

Figure 100: Dropdown list (Products)

Figure 101: Manage Suppliers

Figure 102: Details View (Suppliers)


99

Figure 103: Delete View (Suppliers)

Figure 104: Adding a Supplier


100

Figure 105: Candidate Page

Figure 106: Register (Candidates)


101

Figure 107: Uploading Curriculum Vitae

Figure 108: Validation Error


102

Figure 109: Edit View (Candidates)


103

Figure 110: Customer page

Figure 111: Creating an Account (Customer)


104

Figure 112: States dropdown list (Customer)

Figure 113: Card Types dropdown list (Customer)

Figure 114: Date picker field (Customer)


105

Figure 115: Empty Shopping Cart

Figure 116: Items in Shopping Cart

Figure 117: Success Message


106

o
o

o
o
o
o
o
o
o
o
o
o
o
o
107

o
o
o
o
o
o

o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
108

o
o
o
109

Testing Parameters Results

Figure 118: Unit Testing Table

Aspect Tested Results

Figure 119: Final Testing Table

Das könnte Ihnen auch gefallen