44
Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE: OCTOBER 21, 2012 CURRENT DATE: OCTOBER 21, 2012 Barbara Williams, Team Leader Timothy Peck Brandon Merjil Florence Adebusuyl PROJECT NAME: Taylor's Professional Services--Web Site eCommerce DeVry University Professor: William McClure CIS470: CIS Senior Project

 · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

  • Upload
    hahanh

  • View
    222

  • Download
    5

Embed Size (px)

Citation preview

Page 1:  · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

Team BDesign Specification

PROJECT START DATE: SEPTEMBER 03, 2012PROJECT COMPLETION DATE: OCTOBER 21, 2012

CURRENT DATE: OCTOBER 21, 2012

Barbara Williams, Team LeaderTimothy PeckBrandon Merjil

Florence Adebusuyl

PROJECT NAME:Taylor's Professional Services--Web Site eCommerce

DeVry UniversityProfessor: William McClureCIS470: CIS Senior Project

Page 2:  · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

DeVry UniversityCIS470 - CIS Senior Project

Design Specification

DESIGN SPECIFICATION:

PROJECT NAME:

Taylor's Professional Services--Web Site eCommerce

TABLE OF CONTENTS

1. Scope. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

1.1.System Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

1.2.Major Software Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

1.3.Database Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

1.4.Design Constraints and Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

2. Design Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

2.1.Data Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

2.2.Data Flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

2.3.Program Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

2.4.Component Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11

3. Detailed Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

1 | P a g e

Page 3:  · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

DeVry UniversityCIS470 - CIS Senior Project

Design Specification

1. Scope

This section defines the scope of the project by defining and describing the System, the major functions of the application, and the database.

1.1. System Description

Taylor’s Professional Services, a technical and engineering staffing service, wants a web site developed to enable their customers to complete a staffing request over the Internet as well as providing their clients with a list of potential candidates based on experience, education, salary, and location. There are two areas of the website. One area will allow the clients to search for the potential employees. While the other area will be available for TPS staff members to update their resumes and picture through the web site.

In addition, the web site has a layout that is easy to use. The layout includes a log-in screen that allows clients to access the client area; staff to access the staff area; and the contract manager to have full access to the site. Furthermore, a client will be able to select up to three potential staff members and submit the request. After a client has submitted a staff request order, the system will generate an automated response message informing them that “the contract manager will validate your request within 24 hours of receipt”.

2 | P a g e

Page 4:  · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

DeVry UniversityCIS470 - CIS Senior Project

Design Specification

1.2. Major Software Functions

TSP1: Web site login – This is where a user can enter in their credentials. When the user presses the login button the web site will validate the credentials with the

3 | P a g e

Page 5:  · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

DeVry UniversityCIS470 - CIS Senior Project

Design Specification

information in the database and either return an error if data is invalid or move to the main page area.

TSP2: Client Area – Where Clients and Contract Manager can access information on staffing requests.

TSP3: Enter Staff Request – Where the Clients can select up to three potential staff members based on the location of work, type of work, and salary. Once the Client submits a valid request they will receive a response that the contract manager will validate their request.

TSP4: Retrieve Staff Request – Where the Clients and Contract Manager can go to search and retrieve staffing requests by number. This information will show the staffing request and its status.

TSP5: Retrieve Contract Information – Where the Contract Manger can retrieve contract information. The Contract Manger can create, edit, or delete contract information.

TSP6: Validate Staffing Request – Where the Contract Manager can go to validate the Staffing request.

TSP7: Close Staffing Request – Where the Contract Manager can go to close the Staffing request.

TSP8: Web Site Database – This is where all the data for the web site will be stored.

TSP9: Staff Area – This is where the Staff and Contract Manager can add, edit, and remove personal information.

TSP10: Update Personal Information – This is where the Staff and Contract Manager can add personal information, resumes, availability, and pictures.

1.3. Database Description

The scope of the database allows for clients to easily search for jobs, upload resumes, and store this information for later use. The restrictions of the database are defined in the data dictionary. A major limitation to the database is the storing of resumes. The database is a fully operational MS Access Database acting as the Data Layer for our Website. Data validation is done through referential integrity rules based on common relational database design.

The relational database Microsoft Access will be used for this application. This option is chosen because relational database links more than one table together with

4 | P a g e

Page 6:  · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

DeVry UniversityCIS470 - CIS Senior Project

Design Specification

no duplication of any data, if the database is designed successfully. Using relational databases can also help us retrieve, sort, edit data in different ways.

The Database provides the following direct functionality:

o Creation of datao Updating of datao Insertion of datao Retrieval of data

The tables involved in the database include the following:

o Staff Tableo Client Tableo Login Tableo Staff SelectionTableo Staff Request Table

These tables are broke down to the following fields:

STAFF CLIENT LOGIN STAFF SELECTION

STAFF REQUEST

Staff ID Client ID User ID ID Staff Request IDLast Name Business Name User Name Client ID Client IDFirst Name Contact Person User Password StaffRequestID Type of WorkAddress Phone END TABLE Location LocationCity Email TypeOfWork ExperienceLocation Street SelectionDate EducationZip City Salary SalaryPhone State Choice1 StatusStartDate ZipCode StaffID1 Approval NumberEndDate ContractDate LastName1 DateOpenedEMail ClientType Choice2 END TABLEExperience END TABLE StaffID2Education LastName2Salary Choice3Profession StaffID3Availability LastName3Resume END TABLEPhotoEmployeeIDEND TABLE

5 | P a g e

Page 7:  · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

DeVry UniversityCIS470 - CIS Senior Project

Design Specification

1.4. Design Constraints and Limitations

The scope of the database is to allow for clients to easily search for jobs, upload resumes, and store this information for later use. The restrictions of the database are defined in the data dictionary. A major limitation to the database is the storing of resumes.

With web based environments, we are either trapped in a Linux or Windows web server environment, both of which cause a major setback with the design and implementation of a database system.

In a Windows environment, we are restricted to an ASP, ADO, Access, and MySQL environment. While in a Linux environment, we are even more restricted to a PHP, JSP/Java, and MySQL environment.

Our limited experience as a team in both of these scenarios could pose a serious problem. However, instead of regarding this as constraint or limitation, we regarded this as a way to look at it as a positive, building experience, where we can learn and face a challenge head-on and learn new ways to defeat the problems we may have to encounter.

Operating system requirements or limitations. Web browser limitations due to version or brand differences. Security Response times and processing Data storage limitations

The site has been designed to allow clients to search for staff, staff to place their information on the site to be searched, and allow contact managers access to the searches so that they can be completed. This is browser based so it needs to be kept clean and simple on all the page designs. Navigation should be uniform across all the pages so users can get to the sections they need to.

2. Design Description

This section provides an overview of the application design by providing a description of the data used and managed by the application, defining the flow of data through the system, describing the architecture of the programs within the application and defining how the components will interface.

6 | P a g e

Page 8:  · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

DeVry UniversityCIS470 - CIS Senior Project

Design Specification

2.1. Data Description

SCHEMA/ERD:

7 | P a g e

Page 9:  · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

DeVry UniversityCIS470 - CIS Senior Project

Design Specification

8 | P a g e

Page 10:  · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

DeVry UniversityCIS470 - CIS Senior Project

Design Specification

2.2. Data Flow

Data Flow Diagram Validating Staff Requests

The process “Register Staff” accepts staff information from staff members and inserts the staff information in the staff datastore. The process “Request Staff” is responsible for receiving information about staff requests to be offered by the client, validate the proposed staff request, and insert/update the staff request datastore

9 | P a g e

Page 11:  · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

DeVry UniversityCIS470 - CIS Senior Project

Design Specification

accordingly. If a proposed staff request is found to be invalid, a notification is sent to the concerned client. The “Edit Staff Info” handles changes in staff information (including changes in address, availability, etc.). The process “Search Staff Members” handles search requests for potential staff members for a particular staff request. The process, checks the staff request criteria (e.g., location or experience) from the staff request datastore. Then, the client draws on information stored in the staff datastore to generate a list that is sent to contract manager to be filled.

2.3. Program Architecture

User Login: This is where a user enters their login credentials. Then the login module checks the entered credentials against the database and allows the user to enter the requested area if their credentials are valid. If the credentials are invalid the user will receive an error message.

Client Area: The client area allows a client to enter a staff request and retrieve a staff request. All requests will be validated and checked against the database. The Contract Manager can login to the client area and retrieve contract information, validate staffing requests, and close staffing requests.

Staff Area: The staff area allows a staff member to update their personal information, resume, pictures, etc. The Contract Manager is also allowed to view, edit, and update staff information. All requests are validated and updated within the database.

Logoff Area: The Client and Staff areas allow the users to log out. All data retrieved and entered is added to or pulled from the database. The data flow determines how the database tables will logically pass data between them.

The client, staff, and contract manager all have access to the TPS site through the defined flow diagram, determining which tables and data have access to each other.

Specifically the detailed design includes the processing descriptions, use cases, interface descriptions, module uses and pseudo code on how the module functions.

These functions include:

Client Login, Staff Login, Contract Manager Login, Staff Info, Staff Request Info, Staff Request Verification, Staff Info Verification, Client Info, Client Info Verification, Update Staff Info, and Update Staff Request Info.

10 | P a g e

Page 12:  · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

DeVry UniversityCIS470 - CIS Senior Project

Design Specification

11 | P a g e

Page 13:  · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

DeVry UniversityCIS470 - CIS Senior Project

Design Specification

2.4. Component Interfaces

Screen Navigation Diagram:

12 | P a g e

Page 14:  · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

DeVry UniversityCIS470 - CIS Senior Project

Design Specification

Descriptive Narrative:

Page Title-Name Description

13 | P a g e

Page 15:  · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

DeVry UniversityCIS470 - CIS Senior Project

Design Specification

Home Page Allows the user to choose either the Register New Staff link, Login link, or Register New Client link.

Staff Registration Page Allows the user to choose to fill out the new staff member registration form and new user login information and then submit the completed information, which will result in the user being automatically sent to the Verify Staff Information Page, or use the supplied link to return back to the Home Page.

Login Page The user will be given the option to log in and enter the TPS site or to use the provided link and go back to the Home Page. A successful login will automatically take the user to the Main Page.

Main Page Gives the user a list of authorized areas they can choose to visit.

For staff members their choices include the Home Page and the Update Staff Member Information Page.

For clients, their choices include the Home Page, New Staff Request Page, View Staff Requests Page, and Search Staff Information Page.

For the contract manager, their choices include all the above (both the staff and client sections) as well as links to Update Staffing Requests Page and View User Activity Page.

Update Staff Info Page Allows the user (staff member and/or contract manager) to search for specific staff members and then displays that specific record/file in order to update/edit/delete their personal staff information, resume, availability status, and/or photos. In addition, the Update Staff Member Info Page also displays links back to the Home Page, Main Page, and Login Page for ease of use.

New Staff Request Allows the user (client) to fill out the new staff request order form. Once completed the user has option to either “Submit” the form, which will result in the system providing an automated response stating that the contract manager will validate their request within 24 hours of receipt, or to “Cancel” the order.

The New Staff Request Page also displays links back to the Home Page, Main Page, View Staff Requests Page, Search Staff Information Page, and Login Page for ease of use.

View Staff Requests Allows the user (client or contract manager) to search for and view specific staff request order by number. Once submitted, all staff

14 | P a g e

Page 16:  · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

DeVry UniversityCIS470 - CIS Senior Project

Design Specification

request information along with a field that states whether the staff request is valid, invalid, unable to fill, or filled is displayed.

The View Staff Requests Page also displays links back to the Home Page, Main Page, New Staff Request Page, Search Staff Information Page, and Login Page for ease of use.

Search Staff Information

Allows the user (client or contract manager) to search for and view a list of potential candidates based on experience, education, salary, and location. Then be able to choose up to three potential candidates, and submit the selected potential candidates to the contract manager.

The Search Staff Information Page also displays links back to the Home Page, Main Page, New Staff Request Page, View Staff Information Page, and Login Page for ease of use.

Update Staffing Requests Page

Allows the contract manager to state whether the staff request is valid, invalid, unable to fill, or filled.

The Update Staffing Requests Page also displays links back to the Home Page, Main Page, and Login Page, Update Staff Member Information Page, New Staff Request Page, View Staff Requests Page, View User Activity Page, and Search Staff Information Page displayed for ease of use.

View Selected Staff Page

Allows the contract manager to view the list/chart of selected potential staff by staff request number, displaying staff members along with the location of work, type of work, and salary. In addition, the View User Activity Page also displays links back to the Home, Main, Login, Update Staff Member Info, New Staff Request, View Staff Requests, View User Activity, and Search Staff Info Pages are displayed for ease of use.

Event Chart/List:

Event | Description/Summary

submit( ) Called when adding the value of a variable for all members of the group specified by this function's argument.

15 | P a g e

Page 17:  · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

DeVry UniversityCIS470 - CIS Senior Project

Design Specification

Event | Description/Summary

search( ) Called when searching a variable from all members of the group specified by this function's argument.

cancel( ) Called when cancelling a variable from all members of the group specified by this function's argument.

delete( ) Called when deleting a variable from all members of the group specified by this function's argument.

update( ) Called when replacing the value of a variable for all members of the group specified by this function's argument.

16 | P a g e

Page 18:  · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

DeVry UniversityCIS470 - CIS Senior Project

Design Specification

17 | P a g e

Page 19:  · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

DeVry UniversityCIS470 - CIS Senior Project

Design Specification

3. Detailed Design

This section will define and describe the design details for each of the components in the application.

3.1Home Page3.1.1 Processing Description

This web page welcomes the user to Taylor’s Professional Service web site. From this web page the user can choose to go to the “Home”, “Login”, or “Staff Registration” page.

3.1.2 Interface DescriptionLocated on the footer of this page are hyperlinks to take the user to their choice of “Client Registration” page, “Login” page, or to the “Staff Registration” page.

3.1.3 Pseudo codeUser clicks choice of “Client Registration”, “Login”, or “Staff Registration” hyperlink.

3.1.4 Modules UsesThis module is used to send the user to their choice of either “Client Registration”, “Login”, or “Staff Registration” web pages.

3.2Manage Contract3.2.1 Processing Description

This module is used to gather important contact information regarding the client (e.g. business name, address, etc.) and store this information in the database table clientContract.

3.2.2 Interface DescriptionLocated just below the header banner containing the company name and logo, is a hyper link that allows the user the choice to go back to the “Home Page” , “Login Page” , or “Main Page”. The “Manage Contract” page contains text boxes for the company name, contact person, address, city, zip code, email address, phone, and date. In addition, the “Manage Contract” also includes drop down lists for the state choices and client type choices. Locate at the bottom of the form is a “Submit” button and a “Cancel” button. The footer contains hyperlinks to the “Home Page”, “Login Page”, and “Main Page”.

18 | P a g e

Page 20:  · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

DeVry UniversityCIS470 - CIS Senior Project

Design Specification

3.2.3 Pseudo codeEnter information requested in the proper text boxesChoose to either “Submit” information or “Cancel”

Submit button redirects information to the “New Client Confirmation” page to verify information is correct.Cancel button redirects user back to the “Home Page”

3.2.4 Module UsesThis module is used to collection information from the user/client and sends that information to the “New Client Confirmation” page to be verified, and then saves the information to the database table Client.

3.3SaveClient3.3.1 Processing Description

This process creates a client if no ClientId is specified or updates an existing client when a valid ClientId is specified.

3.3.2 Interface Description The user could also add other information like contact numbers, address, or Type of business. When the user clicks the Save button the ClientId is checked against the database, if it is blank a new ClientId is generated and the new client information is added to the database. If the ClientId is valid then the entered information is updated in the database. If the ClientId is not found an error is given.

3.3.3 Pseudo code// declare variablesDeclare myTransaction As OleDbTransaction = NothingDeclare recordSaved As BooleanDeclare strSql As String

TRY Set OleDbConnection conn to new OleDbConnection ("PROVIDER=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + Database)

Open the database connectionSet command As OleDbCommand to conn.CreateCommand()Set myTransaction to conn.BeginTransaction() to start database transaction

Set command transaction to myTransaction

Set strSQL to Insert into tblClient plus “(column names)” with values “(‘” + column names…)”

Set command type to interpret string using text Set text command to strSQL statement

19 | P a g e

Page 21:  · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

DeVry UniversityCIS470 - CIS Senior Project

Design Specification

Set command to executeNonQuery() Declare command to commit myTransaction

Close the database connectonReturn true if recordSaved

End TRY CATCH ex As Exception Rollback myTransaction Set recordSaved to false

End CATCH

Return recordSaved End Method

3.3.4 Module UsesThis module is used to save data for clients who are interested in registering or who want to update their information for the company.

3.4Staff Registration3.4.1 Processing Description

This module is used to gather important contact information regarding the staff (e.g. first name, address, resume, etc.) and store this information in the database table staff.

3.4.2 Interface DescriptionLocated just below the header banner containing the company name and logo, is a hyper link that allows the user the choice to go back to the “Home Page” without filling out the “Staff Registration Form”. The “Staff Registration Form” contains text boxes for the first name, last name, address, city, zip code, email address, phone, and date. In addition, the “Staff Registration Form” also includes drop down lists for the state choices, status, profession, salary range, education level, and work experience choices. Furthermore, the “Staff Registration Form also has a section for the user to browse their own computer and upload their photo and/or resume. Located at the bottom of the form are a “Submit” button and a “Cancel” button.

3.4.3 Pseudo codeEnter information requested in the proper text boxesChoose to either “Submit” information or “Cancel”

Submit button redirects information to the “New Staff Confirmation” page to verify information is correct.

Cancel button redirects user back to the “Home Page”3.4.4 Module Uses

This module is used to collection information from the user/client and sends that information to the “New Client Confirmation” page to be verified, and then saves the information to the database table Client.

20 | P a g e

Page 22:  · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

DeVry UniversityCIS470 - CIS Senior Project

Design Specification

3.5SaveStaff3.5.1 Processing Description

This process creates a staff member if no StaffId is specified or updates an existing staff when a valid StaffId is specified.

3.5.2 Interface Description The StaffId would be queried in the database. If the StaffId was located it would display the information to the user otherwise there would be an error.

3.5.3 Pseudo codedeclare variablesDeclare myTransaction_staff As OleDbTransaction = NothingDeclare recordSaved As Boolean

TRY Set OleDbConnection conn to new OleDbConnection ("PROVIDER=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + Database)Open the database connectionSet command As OleDbCommand to conn.CreateCommand()Declare strSql as stringSet myTransaction_staff to conn.BeginTransaction() to start database transactionSet command transaction to myTransaction_staff

Set strSQL to Insert into tblStaff plus “(column names)” with values “(‘” + column names…)”

Set command type to interpret string using text Set text command to strSQL statementSet command to executeNonQuery() Declare command to commit myTransaction_staff

Close the database connectonReturn true if recordSavedEnd TRY

CATCH ex As ExceptionRollback myTransaction_staff Set recordSaved to false

End CATCHReturn recordSaved

End Method

21 | P a g e

Page 23:  · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

DeVry UniversityCIS470 - CIS Senior Project

Design Specification

3.5.4 Module UsesThis module is used to save data for staff who are interested in registering or who want to update their information for the company.

3.6 Add Staff Login3.6.1 Processing Description

This module is used by the new staff members to register their user login information. Once the information is entered, the user submits the information to be saved in the database table User Login, by clicking on the “Add User” button. If not correct, the user may choose the “Cancel” button or the “Home Page” hyper link.

3.6.2 Interface DescriptionLocated just below the header banner containing the company name and logo, are hyper links that allow the user the choice to go back to the “Home Page” without entering any information or after submitting the information. The “Add Staff Login” page contains a two text boxes for the client to enter their User ID and Password and an invisible “Error Message” text box. Below the text boxes are the “Add User” and “Cancel” buttons.

3.6.3 Pseudo codeIF “Cancel” button chosen

Postback to “AddStaffLogin” formElse if “Add User” button chosenClear the lblErrorMessage text If txtUserName.Text.Length is empty Declare lblErrorMessage.ForeColor As Red Declare lblErrorMessage.Text As "Please enter user name." Display/return lblErrorMessage

IF txtPassword.Text.Length is empty Declare lblErrorMessage.ForeColor As Red Declare lblErrorMessage.Text As "Please enter user password." Display/return lblErrorMessage ELSE

Save the information and display the result Call tpsDataLayer.AddUser Server.MapPath("TPS_DB.mdb"),

txtUserName.Text, txtPassword.Text, ddlSecurityLevel.Text To Save the

information Set lblErrorMessage.Text As "The user was successfully added!"

Display/return the save result3.6.4 Module Uses

This module is used to save the staff member’s user name and password an also calls the “SaveUserLogin” method to save the data in the database User Login table.

22 | P a g e

Page 24:  · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

DeVry UniversityCIS470 - CIS Senior Project

Design Specification

3.7 Login3.7.1 Processing Description

This method verifies the user ID and Password in order to only allow authorized users to access their restricted areas.

3.7.2 Interface DescriptionThis Interface would allow a user to enter a UserId and a Password using textboxs. The user could then press a Submit or Login button which would query the user provided credentials against the database. If the credentials match then the user would be passed to the appropriate area. If they did not match the user would receive an error.

3.7.3 Pseudo CodeSet dsUserLogin As dsUserLoginSet SecurtyLevel As string

//call tpsDataLayer.VerifyUser to verify user Set tpsDataLayer.VerifyUser(Server.MapPath("TPS_DB.mdb"), Login1.UserName, Login1.Password) As dsUserLogin

// if nothing is returned then not authenticated IF dsUserLogin.tblUserLogin.Count is less than 1 Set e.Authenticated As false;

//Call the SendEmail method and if login fails send an email advising of this IF tpsBusinessLayer.SendEmail ("[email protected]", "[email protected]", "", "", "Login Incorrect", "The login failed for UserName: " + Login1.UserName + " Password: " + Login1.Password))

Set Login1.FailureText As Login1.FailureText Plus "Your incorrect login

information was sent to [email protected]" Display/return result

// Fill security level strings with security level character dsUserLogin.tblUserLogin[0].SecurityLevel.ToString() As SecurityLevel

// Set certain actions to perform depending on the security level SWITCH (SecurityLevel) Set case "A” (for administration security leve) Set e.Authenticated As true

23 | P a g e

Page 25:  · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

DeVry UniversityCIS470 - CIS Senior Project

Design Specification

Declare FormsAuthentication.RedirectFromLoginPage(Login1.UserName, false) Set "A" As Session["SecurityLevel"] Set break Set case "C” (for client security leve) Set e.Authenticated As true Declare FormsAuthentication.RedirectFromLoginPage(Login1.UserName, false) Set "C" As Session["SecurityLevel"] Set break

Set case "S" (for staff security leve) Set e.Authenticated As true Declare FormsAuthentication.RedirectFromLoginPage(Login1.UserName, false) Set "S" As Session["SecurityLevel"] Set break

Set default e.Authenticated As false Set break

End method3.7.4 Module Uses

This module is used by the “Verify Users” method to query and verify the user is authorized to enter their secure sections.

3.8 VerifyUser3.8.1. Processing Description

Verifies user and allows authorized users to access their restricted areas.

3.8.2. Interface DescriptionThis Interface would allow a user to enter a UserId and a Password using textboxs. The user could then press a Submit or Login button which would query the user provided credentials against the database. If the credentials match then the user would be passed to the appropriate area. If they did not match the user would receive an error.

3.8.3. Pseudo Code// declare variablesDeclare Dul as dsUserLogin Declare sqlConn as OleDbConnectionDeclare sqlDA as OleDbDataAdapter

Set the sqlConn object to New OleDbConnection to connect to the database using Microsoft server SQL

24 | P a g e

Page 26:  · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

DeVry UniversityCIS470 - CIS Senior Project

Design Specification

Set the SQL adapter to New OleDbDataAdapter to connect to the database (selecting SecurityLevel from tblUserLogin + "where UserName like '" + UserName + "' "+ "and UserPassword like '" + UserPassword + "'", sqlConn);

Set Dul to new dsUserLogin()Fill in data from the user (dc) into the database tblUserLogin using sqlDA.Fill

Return DulEnd Method

3.9 Main Page3.9.1 Processing Description

Allows the user to access the TPS System based on their security level.

3.9.2. Interface DescriptionLocated just below the header banner containing the company name and logo and in the footer, are hyper links that allow the user the choice to go to the “Home Page”, “Login Page” . The “Main Page” is divided into three sections; Staff, Client, and Manager. Depending on the user’s security level at login, only the area(s) pertaining to their security level are displayed (eg. Staff users can only see the Staff Section, Home Page and Login hyper links).

3.9.3 Psuedo codeCall tpsDataLayer.SaveUserActivity(Server.MapPath("TPS_DB.mdb"), "frmTPS_ClientRegistration"

If Session("SecurityLevel") Equals "C" Then

Set hyper link lnkUpdateStaffMember.Visible As false Set hyper link lnkUpdateStaffReq.Visible As false Set hyper link lnkViewUserAct.Visible As false Set hyper link lnkManageUsers.Visible As false Set hyper link lnkUpdateStaffMember.Visible As false Set label lblStaffSection.Visible As false Set label lblManagerSection.Visible As falseEnd If

If Session("SecurityLevel") Equals "S" Then

Set hyper link lnkUpdateStaffReq.Visible As false Set hyper link lnkViewUserAct.Visible As false Set hyper link lnkManageUsers.Visible As false Set hyper link lnkViewStaffRequest.Visible As false

25 | P a g e

Page 27:  · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

DeVry UniversityCIS470 - CIS Senior Project

Design Specification

Set hyper link lnkNewStaffReq.Visible As false Set hyper link lnkStaffSearch.Visible As false Set label lblClientSection.Visible As false Set label lblManagerSection.Visible As false

End If3.9.4 Module Uses

The Master Page is the main access point to access the other various processes/modules of TPS System and calls the SaveUserActivity method.

3.10 Search Staff Members3.10.1 Processing Description

Allows the client to search for potential staff member information.3.10.2 Interface Descripition

Located just below the header banner containing the company name and logo and in the footer, are hyper links that allow the user the choice to go to the “Home Page”, “Login Page”, “Main Page” . In addition the “Search Staff Members” page has four drop down lists. Below the drop down lists are the “Search” and “Cancel” buttons.

3.10.3 Psuedo codeSet “Cancel” button to postback to frmTPS_SearchStaffMembers.Set “Submit” button to postback to frmTPS_ViewStaffMembers.

3.10.4 Module UsesThis module also uses the “GetStaff” method to retrieve the matching staff member information to the criteria selected and the “View Staff Members”page.

3.11 GetStaff 3.11.1 Processing Description

Retrieves a user from the given staffId and executes of several actions in the context of that user.

3.11.2. Interface Description The user enters their StaffId and clicks the Submit button. The StaffID is then checked against the Database. If the StaffID is valid the information on that Staff member is displayed on the screen otherwise a error is displayed.

3.11.3. Pseudo code// declare variablesDeclare df as dsStaffDeclare sqlConn as OleDbConnectionDeclare sqlDA as OleDbDataAdapter

Set the sqlConn object to New OleDbConnection to connect to the database using Microsoft server SQL

26 | P a g e

Page 28:  · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

DeVry UniversityCIS470 - CIS Senior Project

Design Specification

Set the SQL adapter to New OleDbDataAdapter to connect to the database (selecting all from tblStaff, sqlConn)Set df to dsStaff

Fill in data from the user (df) into the database tblStaff using sqlDA.Fill

Return dfEnd Method

3.11.4. Module UsesThis module is used to display data for staffs who are employed in the company.

3.12 View Staff Members3.12.1 Processing Description

This process allows users to view individual, those meeting certain criteria, or all the staff member information. This data can be also edited only by the individual staff member or the contract manager.

3.12.2 Interface DescriptionLocated just below the header banner containing the company name and logo and in the footer, are hyper links that allow the user the choice to go to the “Home Page”, “Login Page”, “Main Page” . In addition the “View Staff Members” page displays the database staff table with all the various columns.

3.12.3 Psuedo codeIF Page.IsPostBack Then

// Declare the DataSet Set new dsStaff () AS dsStaffmyDataSet

Set Request["txtSearchName"] As string search

// Fill the dataset with what is returned from the function Set myDataSet =

clsDataLayer.GetStaff(Server.MapPath("PayrollSystem_DB.mdb"), search) AS myDataSet

// Set the DataGrid to the DataSource based on the table

Set myDataSet.Tables["tblPersonnel"] As grdViewStaff.DataSource;

Bind the DataGrid grdViewStaffEnd If

3.12.4 Module UsesThis module is used with “Search Staff Members” and “Edit Staff Info”.

27 | P a g e

Page 29:  · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

DeVry UniversityCIS470 - CIS Senior Project

Design Specification

3.13 Staff Request3.13.1 Processing Description

This process allows users to complete a form to request or order specific staff members.

3.13.2 Interface DescriptionLocated just below the header banner containing the company name and logo and in the footer, are hyper links that allow the user the choice to go to the “Home Page”, “Login Page”, “Main Page” . In addition the “Staff Request” page displays the database staff table with all the various columns.

3.13.3 Psuedo code// Get each value from the data entry fields

// Get values from the data entry fields in session state Set string typeOfWork As ddlTypeOfWork.SelectedValue.Trim

Set string education As ddlEducation.SelectedValue.TrimSet string salary As ddlSalary.SelectedValue.Trim

Set string strDateOpened As txtDateOpened.Text.Trim Set string experience As ddlExperience.SelectedValue.Trim Set string clientID As txtClientID.Text.Trim

// Set a values in session state Set Session ("txtTypeOfWork") As ddlTypeOfWork.SelectedValueSet Session("txtEducation") As ddlEducation.SelectedValueSet Session("txtSalary") As ddlSalary.SelectedValueSet Session("txtDateOpened") As txtDateOpened.TextSet Session("txtExperience") As ddlExperience.SelectedValue

Set Session("txtClientID") As txtClientID.Text

// Remove the previous yellowSet Set text box txtDateOpened.BackColor As White

Set text box txtClientID.BackColor As White

//Add validation codes for firstName, LastName, payRate & strStartDate -- Checks for empty or filled with spacesIf string.IsNullOrEmpty(clientID) AND string.IsNullOrEmpty(strDateOpened) Then

Set text box txtClientID.BackColor As Yellow Set text box txtDateOpened.BackColor As Yellow Set label lblError.ForeColor As Red

Set lable lblError.Text As "Client ID may not be empty. Date may not be empty."

Return/display result End If

28 | P a g e

Page 30:  · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

DeVry UniversityCIS470 - CIS Senior Project

Design Specification

If string.IsNullOrEmpty(clientID) Then Set textbox txtClientID.BackColor As Yellow Set label lblError.ForeColor As Red Set label lblError.Text As "Client ID may not be empty." Return/display result

End If

If string.IsNullOrEmpty(strDateOpened) Then Set textbox txtDateOpened.BackColor As Yellow Set label lblError.ForeColor As Red Set label lblError.Text As "Date may not be empty." Return/display result

End If3.13.4 Module Uses

This moduleuses the SaveStaffRequest method to save the data entered by the user into the database table Staff Request.

3.14 SaveStaffRequest3.14.1. Processing Description

Creates a staff request order if no StaffRequestId is specified or updates an existing staff request order when a valid StaffRequestId is specified.

3.14.2. Interface DescriptionThis method would query the database for the StaffRequestId. If one did not exist a new StaffRequestId would be generated and the user provided information would be added to the database. If the StaffRequestId did exist the user provided information would be added to the existing StaffRequestId information.

3.14.3. Pseudo Code// declare variablesDeclare myTransaction_staff_request As OleDbTransaction = NothingDeclare recordSaved As Boolean

TRY Set OleDbConnection conn to new OleDbConnection ("PROVIDER=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + Database)Open the database connectionSet command As OleDbCommand to conn.CreateCommand()Declare strSql as stringSet myTransaction_staff_request to conn.BeginTransaction() to start database transaction

29 | P a g e

Page 31:  · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

DeVry UniversityCIS470 - CIS Senior Project

Design Specification

Set command transaction to myTransaction_staff_request

Set strSQL to Insert into tblStaffRequest plus “(column names)” with values “(‘” + column names…)”

Set command type to interpret string using text Set text command to strSQL statementSet command to executeNonQuery() Declare command to commit myTransaction_staff_request

Close the database connectonReturn true if recordSavedEnd TRY

CATCH ex As ExceptionRollback myTransaction_staff_request Set recordSaved to false

End CATCHReturn recordSaved End Method

3.14.4. Module UsesThis module is used to save data for clients who are interested in requesting staff members to work for their company.

3.15 GetStaffRequest 3.15.1. Processing Description

Retrieves a list (represented in an array) of all staff request orders that has been created and passes it in to the supplied callback.

3.15.2. Interface DescriptionThis method would run a query on the database for the user entered fields, like Skill, Education, and Availability, and return the matching results to the array.

3.15.3. Pseudo Code// declare variablesDeclare dsr as dsStaffRequestDeclare sqlConn as OleDbConnectionDeclare sqlDA as OleDbDataAdapter

Set the sqlConn object to New OleDbConnection to connect to the database using Microsoft server SQL

IF strSearch Is Nothing OrElse strSearch.Trim() = "" THENSet sqlDA = New OleDbDataAdapter("select all from

30 | P a g e

Page 32:  · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

DeVry UniversityCIS470 - CIS Senior Project

Design Specification

tblStaffRequest", sqlConn)ELSESet sqlDA = New OleDbDataAdapter("select all from tblStaffRequest where staffingRequestID = '" & strSearch & "'", sqlConn)End IF

Set sqlDA = New OleDbDataAdapter("select all from tblStaffRequest", sqlConn)Set dsr = New dsStaffRequest()

Fill in data from the user (dsr) into the database tblStaffRequest using sqlDA.Fill

Return dsrEnd Method

3.15.4. Module Uses This module is used to retrieve and display the staff request orders from the database table Staff Request.

3.16 GetClient 3.16.1 Processing Description

Retrieves a user from the given client ID and executes of several actions in the context of that user. Use this operation to retrieve and review customer information, including address, phone numbers, addresses, and contact information, from the TPS database.

3.16.2 Interface Description The Client will enter their Client ID and then click the Retrieve Client button. The Client Id will then be checked against the database and the valid Client information would be returned.

3.16.3 Pseudo Code // declare variablesDeclare dc As dsClientDeclare sqlConn As OleDbConnectionDeclare sqlDA As OleDbDataAdapter

Set the sqlConn object to New OleDbConnection to connect to the database using Microsoft server SQLSet the SQL adapter to New OleDbDataAdapter to connect to the database (selecting all from tblClient, sqlConn)Set dc to dsClient

Fill in data from the user (dc) into the database tblClient using sqlDA.Fill

31 | P a g e

Page 33:  · Web viewDeVry University CIS470 - CIS Senior Project Design Specification 1 | Page Team B Design Specification PROJECT START DATE: SEPTEMBER 03, 2012 PROJECT COMPLETION DATE:

DeVry UniversityCIS470 - CIS Senior Project

Design Specification

Return dc

End Method

3.16.4 Modules UsesThis module is used to display data of the clients who are registered for the company and allow clients to update their personal information.

32 | P a g e