Вы находитесь на странице: 1из 66

DANANG SOFTWARE CORPORATION SOFTECH-APTECH

----- -----

PROJECT ACCP i7.1


Topic :

ENVIRONMENTAL SURVEY

Developed by : Class : Instructor : Members :

Group 3 Batch 45B Prof. Nguyen Khanh L Vit Thng L B Bch Trn c Long on Minh Tun

Da Nang, 15th October 2010

Environmental Survey

Project ACCP 7.1

CERTIFICATE

This is to certify that


Mr./Ms.

___________________________ _____

has successfully designed and developed ___________________________ Submitted by:


___________________________ _____
___________________________ _____

__

Date of Issue: ________ Authorized Signature: ___________

Instructor : Nguyen Khanh

Group_01

Page 2

Environmental Survey

Project ACCP 7.1

Table Of Content
1. Acknowledgement ....................................................... 4 2. Problem Definition:...................................................... 5 3. Requirement Specification:........................................ 6 4. Project plan: ................................................................. 8 5. USE CASE: ...................................................................... 9 6. Architecture and Design of the Project ............ 25 7. Dataflow Diagram: .................................................... 25 8. Entity Relationship diagram: .................................. 29 9. Database Design and Structure : .......................... 30 10. FlowChart :.............................................................. 34 11. CODE EXAMPLE : ..................................................... 38 12. INTERFACE DESIGN: ............................................... 41 13. Guide User:................................................................ 46 14. TASKSHEET: ............................................................. 63 15. CHECKLIST OF VALIDATIONS: ............................. 66 16. SUBMISSION CHECKLIST: ..................................... 66

Instructor : Nguyen Khanh

Group_01

Page 3

Environmental Survey

Project ACCP 7.1

1. Acknowledgement
We would like to acknowledge our instructors Prof. Nguyen Khanh who had given support, encouragement, advice and helped us make the project a success. We wish to express our gratitude to the eProjects Team at the Aptechs Head Office, who guided and helped us. We would also like to express my gratitude to all the staff members of Softech centre for not only providing us with the opportunity to work with them on this project but also for their support and encouragement throughout the process. Add finally, We would like to offer many thanks to all my colleagues for their valuable suggestions and constructive feedback. Thank you teachers and friends a lot !

Instructor : Nguyen Khanh

Group_01

Page 4

Environmental Survey

Project ACCP 7.1

2. Problem Definition:
Our client is the educational institute, which wants to enlighten the students of that institute with the precautionary measures related to the environmental protection. So they conduct several seminars, lectures, etc. to the students. They now want to implement some tasks so that the attention of the young generation will be attracted towards taking necessary steps for taking care of the environment, as it relates to the health of the public. They started providing the seminars for free, for the students of the institute and encouraging the students to provide and interactive seminar sessions by visiting to some locations. Also they have started conducting surveys through papers and used to distribute the prizes for the first three students based on the marks secured in the survey and also based on the effective participation in visiting to locations for provided interactive sessions regarding the precautionary measures in protecting the environment. They wanted to reduce the paper consumption for conducting the surveys and want to provide a survey portal where the surveys will be held. So they have approached us to help them in building the survey portal for them.

Instructor : Nguyen Khanh

Group_01

Page 5

Environmental Survey

Project ACCP 7.1

3. Requirement Specification: o Customer Requirement Specification:


a) Client:
Website Application Environmental Survey.

b) Business/Project Object:
- Create a Website using ASP.NET and MSSQL 2005.The website authenticates the existing user by your user name and password. The website has a registration page where a new user can enter your persional details in the given field. The user details get stored in the database and the database containing details of existing users gets updated. - For the purpose of storing information of Administrator, Employees, Customers, details of institute

c) Input by client:
- Inputs for the Web-based application - Process involed in the Web-based application - Expected delivery dates - Data Constraints / Validation Tables

d) Output to client:
- Outputs from the Web-based application - List of delieverables

e) Hardware/Software Requirements:
Web server environment: Hardware: Intel Xeon or better. HDD 1GB or more RAM 2GB or more.
Software:

.Net framework 2.0 IIS 7 Database server environment:


Hardware:

Intel Xeon or better. RAM 2GB or more. HDD 1TeraByte or more


Software:

Windows server 2003 Enterprise Edition. SQL Server 2005 Express Edition. User environment: Hardware:

Instructor : Nguyen Khanh

Group_01

Page 6

Environmental Survey
Pentium 4 or better. Dial-up Internet connection or better. Software: Internet Explorer 6 or Firefox 3 with JavaScript enable. Development environment: Hardware: Pentium 4 3 GHz or better. RAM 2GB or more. HDD has left at least 30 GB.
Software:

Project ACCP 7.1

OS: Windows XP Professional SP2 or Higher. SDK: .Net Framework 2.0 and ajax control toolkit. Database: SQL Server 2005. Web design tool: Dreamweaver 8. Browser: Internet Explorer 7 and Firefox 3. Server : IIS 7 yEd Graph Editor IDE: Visual Studio 2005

o Function Specification
1) Who use this Website Admin. Faculty or Staff Students. 2) Functional Requirements Admin: Place new survey for the faculty or staff. Place new survey for the students. Delete survey. Accept or decline the registration request. Delete the User. Place a competition, or list the names of the members who have won the prize for previous survey. Enter new FAQs. Edit FAQs. Edit Support Information.

Instructor : Nguyen Khanh

Group_01

Page 7

Environmental Survey
Faculty or Staff: Register. Login. Edit Profile. Participate competition . Edit Answer in competition. Register Survey. Place new seminar or lectural for students. Employee: Register. Login. Edit Profile. Participate competition. Edit Answer in competition. Register Survey.

Project ACCP 7.1

User Interface: Must have a Logo, Banner for web page. Separate login for Admin and Users(Faculty or Staff and Students). Display Register form or validation alert error. Display accounts name of members which logged on at the right top corner of website. There should be edit profile, search survey or competition and place seminar or lectural for members and admin. Beside, Admin have functions as : new, edit, delete, search options available to manage members, surveys, competitions...

4. Project plan:
Starting project : 10/5/2010 - ending project : 11/10/2010 Get an overview of project (group1). Design database(relation database) using SQL server Express 2005. Using IDE Visual Studio 2005 and Ajax Control Toolkit. Looking for document in the internet. Take Usecase, DFD, ER Diagram....before 20/10/2010. Begin coding from 10/22/2010. Finish coding before 11/5/2010. Accomplish document, user guide before 11/10/2010. Submit final project.

Instructor : Nguyen Khanh

Group_01

Page 8

Environmental Survey

Project ACCP 7.1

5. USE CASE:
1) Use case Diagram:

Figure 1: Use case Overview Diagram

Figure 2: Use case Administrator Diagram

Instructor : Nguyen Khanh

Group_01

Page 9

Environmental Survey

Project ACCP 7.1

Figure 3: Use case Falcuty/Staff Diagram

Figure 4: Use case Student Diagram

Instructor : Nguyen Khanh

Group_01

Page 10

Environmental Survey
2) Use case Specification: USE CASE SPECIFICATION

Project ACCP 7.1

Use-case No. Use-case Name Actor:


Administrator

UC001 Add new Survey

Use-case Version

1.0

Purpose:
List competitions have end date larger curent date.

Triggers Preconditions:
Admin must login to the system

Post Conditions:
Admin list links to competition to staffs and students perform survey.

Main Success Scenario:


Admin login System show a list of competition in the system Admin select competition valid System confirm action Display to a list competition to student and staff survey

USE CASE SPECIFICATION

se-case No. Use-case Name Actor:

UC002 Delete Survey

Use-case Version

1.0

Admin (Head of the System)

Instructor : Nguyen Khanh

Group_01

Page 11

Environmental Survey
Purpose:
Delete survey follow id_survey

Project ACCP 7.1

Triggers Preconditions:
Admin must login into the system

Post Conditions:
After admin login, admin have function delete survey.

Main Success Scenario:


Admin login System shows a list of survey respective id of it. Admin select survey want to delete. Admin perform delete survey follow id_survey. System confirm action Update into the database

USE CASE SPECIFICATION

Use-case No. Use-case Name Actor:


Administrator

UC003 Accept Register

Use-case Version

1.0

Purpose:
Administrator accept register of member to their become a member in the institute.

Triggers Preconditions:
Admin must login to the system

Post Conditions:
Admin can update status of the member after admin agree for their.

Main Success Scenario:


Admin login System shows a list members

Instructor : Nguyen Khanh

Group_01

Page 12

Environmental Survey
Admin select member want to accept action Admin perform update status for that member System confirm action System confirm action Update info of member into the database

Project ACCP 7.1

USE CASE SPECIFICATION

Use-case No.

UC004

Use-case Version

1.0

Use-case Name Actor:


Administrator

Decline Register

Purpose:
Administrator decline register of member to their isnt become a member in the institute.

Triggers Preconditions:
Admin must login to the system

Post Conditions:
Admin can update status of the member after admin agree for their.

Main Success Scenario:


Admin login System shows a list members Admin select member want to decline action Admin perform update status for that member System confirm action Update info of member into the database

Instructor : Nguyen Khanh

Group_01

Page 13

Environmental Survey

Project ACCP 7.1

USE CASE SPECIFICATION

Use-case No.

UC005

Use-case Version

1.0

Use-case Name Actor:


Administrator

Delete User

Purpose:
Delete a member from system.

Triggers Preconditions:
Admin must login to the system

Post Conditions:
After delete member,system will remove record on database.

Main Success Scenario:


Admin login System shows a list members Admin select member want to delete Admin perform delete System confirm action Update into the database

USE CASE SPECIFICATION

Use-case No.

UC006

Use-case Version

1.0

Instructor : Nguyen Khanh

Group_01

Page 14

Environmental Survey
Use-case Name Actor:
Administrator

Project ACCP 7.1

Add New Competition

Purpose:
Administrator add new competition to system.

Triggers Preconditions:
Admin must login to the system

Post Conditions:
After login,admin can to create new competitions to the system.

Main Success Scenario:


Admin login Admin enter information about competition System determines the validity of the information Admin perform add competition into the system System confirm action Update info of competition into the database

USE CASE ADMINISTRATOR SPECIFICATION

Use-case No.

UC007

Use-case Version

1.0

Use-case Name Actor:


Administrator

Add New FAQs

Purpose:
Administrator add new FAQs to system.

Instructor : Nguyen Khanh

Group_01

Page 15

Environmental Survey
Triggers Preconditions:
Admin must login to the system

Project ACCP 7.1

Post Conditions:
Admin can to create new FAQs to the system.

Main Success Scenario:


Admin login Admin enter information about FAQs System determines the validity of the information Admin perform add FAQs into the system System confirm action Update info of FAQs into the database

USE CASE ADMINISTRATOR SPECIFICATION

Use-case No.

UC008

Use-case Version

1.0

Use-case Name Actor:


Administrator

Edit FAQs

Purpose:
Administrator can edit FAQs.

Triggers Preconditions:
Admin must login to the system

Post Conditions:
Admin can update FAQs into system,after admin agree for it.

Instructor : Nguyen Khanh

Group_01

Page 16

Environmental Survey
Main Success Scenario:
Admin login System shows a list FAQs Admin select FAQs want to edit Admin enter information about FAQs System determines the validity of the information Admin perform edit FAQs into the system System confirm action Update info of FAQs into the database

Project ACCP 7.1

USE CASE ADMINISTRATOR SPECIFICATION

Use-case No.

UC009

Use-case Version

1.0

Use-case Name Actor:

Edit Support Information

Administrator can edit support information.

Triggers Preconditions:
Admin must login to the system

Post Conditions:
Admin can edit support information into system,after admin agree for it.

Main Success Scenario:


Admin login System shows a list Support Information Admin select support information want to edit Admin enter content about support information System determines the validity of the information

Instructor : Nguyen Khanh

Group_01

Page 17

Environmental Survey
Admin perform edit support information into the system System confirm action Update into the database

Project ACCP 7.1

USE CASE ADMINISTRATOR SPECIFICATION

Use-case No.

UC010

Use-case Version

1.0

Use-case Name Actor:

Add Seminar

Administrator,Faculty/Staff

Purpose:
Insert seminar into the system.

Triggers Preconditions:
Admin or staff must login to the system

Post Conditions:
Admin or staff can add new seminar into the system.

Main Success Scenario:


Admin or staff login Admin or staff enter information about seminar System determines the validity of the information Admin or staff perform add new seminar into the system System confirm action Insert info of seminar into the database

Instructor : Nguyen Khanh

Group_01

Page 18

Environmental Survey
USE CASE ADMINISTRATOR SPECIFICATION

Project ACCP 7.1

Use-case No.

UC011

Use-case Version

1.0

Use-case Name Actor:

Edit Seminar

Administrator,Faculty/Staff

Purpose:
Edit Information of Seminar.

Triggers Preconditions:
Admin or staff must login to the system

Post Conditions:
Admin or staff can update seminar information into the system.

Main Success Scenario:


Admin or staff login Admin or staff enter information about seminar System determines the validity of the information Admin or staff perform update seminar info into the system System confirm action Update info of seminar into the database

USE CASE ADMINISTRATOR SPECIFICATION

Use-case No.

UC012

Use-case Version

1.0

Use-case Name

Delete Seminar

Instructor : Nguyen Khanh

Group_01

Page 19

Environmental Survey
Actor:
Administrator,Faculty/Staff

Project ACCP 7.1

Purpose:
Delete seminar from the system.

Triggers Preconditions:
Admin or staff must login to the system

Post Conditions:
After remove seminar,system will remove record on the database.

Main Success Scenario:


Admin or staff login System shows a list seminars Admin or staff select seminar want to delete System determines the validity of the information Admin or staff performs delete this seminar System confirm action Update into the database

USE CASE ADMINISTRATOR SPECIFICATION

Use-case No.

UC013

Use-case Version

1.0

Use-case Name Actor:

Edit Profile

Administrator , Faculty/Staff , Student

Purpose:
Update personal information of admin or staff or student.

Triggers

Instructor : Nguyen Khanh

Group_01

Page 20

Environmental Survey
Preconditions:
Admin or staff or student must login to the system

Project ACCP 7.1

Post Conditions:
After perform update your personal info,system will update info into the database.

Main Success Scenario:


Admin,staff,student login You should enter your personal information details. System determines the validity of the information Admin or staff or student perform update info into the system System confirm action Update your info into the database

USE CASE ADMINISTRATOR SPECIFICATION

Use-case No.

UC014

Use-case Version

1.0

Use-case Name Actor:


Faculty/Staff,Student

Edit Answer

Purpose:
Update answer into the system.

Triggers Preconditions:
Staff or student must login to the system

Post Conditions:
Staff or student can update myself answer.

Main Success Scenario:


Staff or Student login

Instructor : Nguyen Khanh

Group_01

Page 21

Environmental Survey
Staff or student enter content answer details. System determines the validity of the information Staff or student perform update content answer into the system System confirm action Update into the database

Project ACCP 7.1

USE CASE ADMINISTRATOR SPECIFICATION

Use-case No.

UC015

Use-case Version

1.0

Use-case Name Actor:


Staff , Student

Participate Competition

Purpose:
Post your answer.

Triggers Preconditions:
Staff or Student must login to the system

Post Conditions:
After post your answer, system will insert your answer content into the database.

Main Success Scenario:


Staff , Student login System shows a question Staff or student enter content answer details. System determines the validity of the information Staff or student perform post answer content into the system System confirm action Update into the database

Instructor : Nguyen Khanh

Group_01

Page 22

Environmental Survey

Project ACCP 7.1

USE CASE ADMINISTRATOR SPECIFICATION

Use-case No.

UC016

Use-case Version

1.0

Use-case Name Actor:


Faculty/Staff,Student

Participate Survey

Purpose:
Survey competition and give mark respective each answer.

Triggers Preconditions:
Staff or Student must login to the system

Post Conditions:
After give mark respective each answer,system will update info into the database

Main Success Scenario:


Staff or Student login System shows a list answers Staff or Student can give mark for each answer Staff or Student perform give mark action System confirm action Update into the database

USE CASE ADMINISTRATOR SPECIFICATION

Instructor : Nguyen Khanh

Group_01

Page 23

Environmental Survey
Use-case No. UC017 Use-case Version Use-case Name Actor:
Student

Project ACCP 7.1


1.0

Register Seminar

Purpose:
Student can register favourite seminar to participate answer questions respective seminar that you registered.

Triggers Preconditions:
Student must login to the system and register seminar

Post Conditions:
Student can participate seminar and answer questions.

Main Success Scenario:


Student login Student enter info register and choose seminar System determines the validity of the information Student perform register seminar System confirm action Insert your info register into the database

Instructor : Nguyen Khanh

Group_01

Page 24

Environmental Survey

Project ACCP 7.1

6. Architecture and Design of the Project


The application will be made of a Web-based distributed three-tier architecture to support multiple user transaction at the same time.

Figure 2 : Web-based Distributed 3-layer Architecture of the Project

7. Dataflow Diagram:
a)DFD Context :

Figure 3 : DFD Context

Instructor : Nguyen Khanh

Group_01

Page 25

Environmental Survey
b)DFD level 1:

Project ACCP 7.1

Figure 4 : DFD level-1 c)DFD level 2: Member Manage:

Figure 5 : DFD level-2 Member Manage

Instructor : Nguyen Khanh

Group_01

Page 26

Environmental Survey
Competition Manage:

Project ACCP 7.1

Figure 6 : DFD level-2 Competition Manage Survey Manage :

Figure 7 : DFD level-2 Survey Manage

Instructor : Nguyen Khanh

Group_01

Page 27

Environmental Survey
Seminar Manage:

Project ACCP 7.1

Figure 8 : DFD level-2 Seminar Manage FAQs Manage:

Figure 9 : DFD level-2 FAQs Manage

Instructor : Nguyen Khanh

Group_01

Page 28

Environmental Survey

Project ACCP 7.1

8. Entity Relationship diagram:

Figure 10 : Entity Relation Diagram

Instructor : Nguyen Khanh

Group_01

Page 29

Environmental Survey

Project ACCP 7.1

9. Database Design and Structure :


1. Diagram:

Figure 11 : Entity Relation Diagram

2.Table description:
Instructor : Nguyen Khanh Group_01 Page 30

Environmental Survey
Table : Role_User Field Name id_rol name_rol Data Type Int Nvarchar(50) Null No No Table : Faculty Field Name id_fac name_fac Data Type Int Nvarchar(50) Null No Yes Table : Class Field Name id_cla name_cla id_fac Data Type Int Nvarchar(50) Int Null No Yes Yes Table : Member Field Name id_mem username fullname pass id_fac id_cla specification section date status Data Type Int Nvarchar(50) Nvarchar(50) Nvarchar(50) Int Int Nvarchar(100) Int Datetime Int Null No No Yes Yes Yes Yes Yes Yes Yes Yes Table : Category Field Name Data Type Null FK FK FK FK

Project ACCP 7.1

Description PK

Description PK

Description PK

Description PK Unique

Description

Instructor : Nguyen Khanh

Group_01

Page 31

Environmental Survey
id_cat name_cat Int Nvarchar(50) No Yes Table : Seminar Field Name id_sem id_cat title content_sem images date address max_num status Data Type Int Int Nvarchar(100) Ntext ntext Datetime Nvarchar(100) Int Int Null No Yes Yes Yes Yes Yes Yes Yes Yes Table : Seminar_Register Field Name id_res id_sem username date Data Type Int Int Nvarchar(50) Datetime Null No Yes Yes Yes Table : Competition Field Name id_comp username content_comp date_start date_end date_end_survey id_cat Data Type Int Nvarchar(50) Nvarchar(1000) Datetime Datetime Datetime Int Null No Yes Yes Yes Yes Yes Yes FK PK

Project ACCP 7.1

Description PK FK

Description PK FK FK

Description PK FK

Instructor : Nguyen Khanh

Group_01

Page 32

Environmental Survey
id_sem Int Yes Table : Competition_Answer Field Name id_com_ans content_ans date id_comp username mark Data Type Int Ntext Datetime Int Nvarchar(50) Int Null No Yes Yes Yes Yes Yes Table : Competition_Survey Field Name id_sur Mark id_ans_com username date Data Type Int Int Int Nvarchar(50) Datetime Null No Yes Yes Yes Yes Table : Competition_Prize Field Name id_prize id_comp username totalmark Data Type Int Int Nvarchar(50) Int Null No Yes Yes Yes Table : FAQs Field Name id_faq Question Answer Data Type Int Nvarchar(500) Ntext Null No Yes Yes FK FK FK FK FK

Project ACCP 7.1

Description PK

Description PK

Description PK FK FK

Description PK

Instructor : Nguyen Khanh

Group_01

Page 33

Environmental Survey
Table : Help Field Name id_help title_help content_help date Data Type Int Nvarchar(300) Ntext Datetime Null No Yes Yes Yes

Project ACCP 7.1

Description PK

10. FlowChart :

Figure 12 : Flow Chart for Login Object

Instructor : Nguyen Khanh

Group_01

Page 34

Environmental Survey

Project ACCP 7.1

Figure 13 : Flow Chart for Add Object

Instructor : Nguyen Khanh

Group_01

Page 35

Environmental Survey

Project ACCP 7.1

Figure 14 : Flow Chart for Update Object

Instructor : Nguyen Khanh

Group_01

Page 36

Environmental Survey

Project ACCP 7.1

Figure 15 : Flow Chart for Delete Object

Instructor : Nguyen Khanh

Group_01

Page 37

Environmental Survey

Project ACCP 7.1

Figure 16 : Flow Chart for Search Object

11. CODE EXAMPLE :


//Insert_Competition_Answer method used to add new answer into database public int Insert_Competition_Answer(string content_ans, DateTime date, int idcompe, string username, int mark) { //check validate date before post answer int j=testAnswer(date,idcompe,username); if(j==1) { SqlParameter[] param1 = new SqlParameter[5]; param1[0] = new SqlParameter("@content_ans", SqlDbType.NText); param1[0].Value = content_ans; param1[1] = new SqlParameter("@date", SqlDbType.DateTime); param1[1].Value = date; param1[2] = new SqlParameter("@id_comp", SqlDbType.Int);

Instructor : Nguyen Khanh

Group_01

Page 38

Environmental Survey
param1[2].Value param1[3] = new param1[3].Value param1[4] = new param1[4].Value

Project ACCP 7.1


= idcompe; SqlParameter("@username", SqlDbType.NVarChar, 50); = username; SqlParameter("@mark", SqlDbType.Int); = mark;

j=DatabaseConn.execQuery("Insert_Competition_Answer", param1); } return j; } //Up_Competition_Answer1 method used to update answer respective username //of member public int Up_Competition_Answer1(int id_com_ans,int id_comp,string username, string content_ans, DateTime date) { //check username to perform update your answer int i = testAnswerToEdit(date, id_comp, username); if (i == 1) { SqlParameter[] param = new SqlParameter[3]; param[0] = new SqlParameter("@id_com_ans", SqlDbType.Int); param[0].Value = id_com_ans; param[1] = new SqlParameter("@content_ans", SqlDbType.NText); param[1].Value = content_ans; param[2] = new SqlParameter("@date", SqlDbType.DateTime, 50); param[2].Value = date; return DatabaseConn.execQuery("Up_Competition_Answer1", param); } return i; } //GetPagingSQL method used to separate page and get answer of //members from the database public DataSet GetPagingSQL(int currPage, int recodperpage, int Pagesize, int id_comp) { SqlParameter[] param = new SqlParameter[4]; param[0] = new SqlParameter("@currPage", SqlDbType.Int); param[0].Value = currPage; param[1] = new SqlParameter("@recodperpage", SqlDbType.Int); param[1].Value = recodperpage; param[2] = new SqlParameter("@Pagesize", SqlDbType.Int); param[2].Value = Pagesize; param[3] = new SqlParameter("@id_comp", SqlDbType.Int); param[3].Value = id_comp; return DatabaseConn.getDataset("spNews_PhanTrang", param); } //CheckInsertSurvey method used to check insert a survey into the database public int CheckInsertSurvey(int id_ans_com, string username) { SqlParameter[] para = new SqlParameter[2]; para[0] = new SqlParameter("@id_ans_com", SqlDbType.Int); para[0].Value = id_ans_com; para[1] = new SqlParameter("@username", SqlDbType.NVarChar, 50); para[1].Value = username; DataSet ds = new DataSet(); ds = DatabaseConn.getDataset("CheckInsertSurvey", para); DataTable dt = new DataTable(); dt = ds.Tables[0];

Instructor : Nguyen Khanh

Group_01

Page 39

Environmental Survey
if (dt.Rows.Count > 0) { return 0; } else return 1; }

Project ACCP 7.1

//InsertSurvey method used to survey for answer respective question public int InsertSurvey(int mark,int id_ans_com,string username, string date) { if (CheckInsertSurvey(id_ans_com, username) == 1) { SqlParameter[] para = new SqlParameter[4]; para[0] = new SqlParameter("@mark", SqlDbType.Int); para[0].Value = mark; para[1] = new SqlParameter("@id_ans_com", SqlDbType.Int); para[1].Value = id_ans_com; para[2] = new SqlParameter("@username", SqlDbType.NVarChar, 50); para[2].Value = username; para[3] = new SqlParameter("@date", SqlDbType.DateTime); para[3].Value = date; return DatabaseConn.execQuery("InsertSurvey", para); } else { return 0; } } //GetPagingCompetitionSurvey method used to separate page and get survey //to display to web page public DataSet GetPagingCompetitionSurvey(int currPage,int recodperpage, int Pagesize) { SqlParameter[] para = new SqlParameter[3]; para[0] = new SqlParameter("@currPage", SqlDbType.Int); para[0].Value = currPage; para[1] = new SqlParameter("@recodperpage", SqlDbType.Int); para[1].Value = recodperpage; para[2] = new SqlParameter("@Pagesize", SqlDbType.Int); para[2].Value = Pagesize; return DatabaseConn.getDataset("GetPagingCompetitionSurvey", para); }

Instructor : Nguyen Khanh

Group_01

Page 40

Environmental Survey

Project ACCP 7.1

12. INTERFACE DESIGN:


Home :

Instructor : Nguyen Khanh

Group_01

Page 41

Environmental Survey Register:

Project ACCP 7.1

Instructor : Nguyen Khanh

Group_01

Page 42

Environmental Survey News:

Project ACCP 7.1

Instructor : Nguyen Khanh

Group_01

Page 43

Environmental Survey Survey Board:

Project ACCP 7.1

Support:

Instructor : Nguyen Khanh

Group_01

Page 44

Environmental Survey FAQs:

Project ACCP 7.1

Contact:

Instructor : Nguyen Khanh

Group_01

Page 45

Environmental Survey

Project ACCP 7.1

13. Guide User:


I. Users, Guest: 1. Home page: This is home page. Top are banner and menu. Followed by a list of some of the latest competition . Finally are the news.

index.aspx

2. Register: In order to answer the question you must be registered. You can create a new account easily. By clicking REGISTER menu, it will redirect to register page. Enter the full and correct information below to register:

Instructor : Nguyen Khanh

Group_01

Page 46

Environmental Survey

Project ACCP 7.1

Register.aspx If register successful, message is displayed:

But your account need consent of admin after account have created. If approved by admin, you can login to the account you just created. By enter username and password in two textbox located between the menu and banner . Then clicking Login button to login.

Instructor : Nguyen Khanh

Group_01

Page 47

Environmental Survey 3. News: This is News page, display the latest news:

Project ACCP 7.1

Instructor : Nguyen Khanh

Group_01

Page 48

Environmental Survey

Project ACCP 7.1

4. Survey Board: List competition and Survey and members are distributed prize.

5. Support: This is Support page, displaying all necessary support.

Instructor : Nguyen Khanh

Group_01

Page 49

Environmental Survey

Project ACCP 7.1

6. FAQs: Frequently asked questions (or FAQs) are listed questions and answers, all supposed to be frequently asked in some context and pertaining to a particular topic. This is FAQs page.

7. Contact: This is Contact page. Display information to contact us.

Instructor : Nguyen Khanh

Group_01

Page 50

Environmental Survey II. Management

Project ACCP 7.1

After logging with administrator account, MANAGEMENT button on the menu will appear.
1. Account:

If you select Acount menu, User Manage page is displayed. Search by username, result will display in GridView:

You can delete users by tick corresponding CheckBox then click Delete Items button. To add a user account, clicking Insert button. To view detailed information users click Select Linkbutton in the row you want to see.

Instructor : Nguyen Khanh

Group_01

Page 51

Environmental Survey

Project ACCP 7.1

If you clicking Back button, displaying the back page. If you clicking Update button, displaying the Update page. You can change information user account. Then you clicking Update button.

If clicking Insert button, displaying the Insert page. You enter user information account. Then clicking Insert button to add in the database .

Instructor : Nguyen Khanh

Group_01

Page 52

Environmental Survey
2. Answer:

Project ACCP 7.1

Search for answers, result will display in GridView.

You can delete answers by tick corresponding CheckBox then click Delete Items button. To view detailed information answers click Select Linkbutton in the row you want to see

Instructor : Nguyen Khanh

Group_01

Page 53

Environmental Survey
3. Competiton:

Project ACCP 7.1

If you select Competiton menu, Competiton Manage page is displayed. Search by category or username, result will display in GridView:

You can delete competition by tick corresponding CheckBox then click Delete Items button. To add a competition , clicking Insert button. To view detailed information competition click Select Linkbutton in the row you want to see.

Instructor : Nguyen Khanh

Group_01

Page 54

Environmental Survey

Project ACCP 7.1

If you clicking Back button, displaying the back page. If you clicking Delete button, competition will be deleted. If you clicking Update button, displaying the Update page. You can change information competition. Then you clicking Update button

If clicking Insert button, displaying the Insert page. You enter information competition. Then clicking Insert button to add in the database

Instructor : Nguyen Khanh

Group_01

Page 55

Environmental Survey
4. FAQs:

Project ACCP 7.1

If you select FAQs menu, FAQs Manage page is displayed. Result will display in GridView:

You can delete FAQs by tick corresponding CheckBox then click Delete Items button. To add a FAQ, clicking Insert button. To view detailed information FAQ click Select Linkbutton in the row you want to see.

Instructor : Nguyen Khanh

Group_01

Page 56

Environmental Survey

Project ACCP 7.1

If you clicking Back button, displaying the back page. If you clicking Update button, displaying the Update page. You can change information FAQ. Then you clicking Update button.

If clicking Insert button, displaying the Insert page. You enter user information FAQ. Then clicking Insert button to add in the database .

5. Seminar: If you select Seminar menu, Seminar Manage page is displayed. Search by category, username or id. Result will display in GridView:

Instructor : Nguyen Khanh

Group_01

Page 57

Environmental Survey

Project ACCP 7.1

You can delete seminar by tick corresponding CheckBox then click Delete Items button. To add a seminar, clicking Insert button . To view detailed information seminar click Select Linkbutton in the row you want to see. If you clicking Back button, displaying the back page. If you clicking Update button, displaying the Update page. You can change information seminar. Then you clicking Update button. If clicking Insert button, displaying the Insert page. You enter user information seminar. Then clicking Insert button to add in the database .

Instructor : Nguyen Khanh

Group_01

Page 58

Environmental Survey

Project ACCP 7.1

6. Support: If you select Support menu, Support Manage page is displayed. Result will display in GridView:

You can delete support by tick corresponding CheckBox then click Delete Items button.To add a support , clicking Insert button.

Instructor : Nguyen Khanh

Group_01

Page 59

Environmental Survey

Project ACCP 7.1

To view detailed information support click Select Linkbutton in the row you want to see.

If you clicking Back button, displaying the back page. If you clicking Update button, displaying the Update page. You can change information support. Then you clicking Update button.

Instructor : Nguyen Khanh

Group_01

Page 60

Environmental Survey

Project ACCP 7.1

If clicking Insert button, displaying the Insert page. You enter user information support. Then clicking Insert button to add in the database .

Instructor : Nguyen Khanh

Group_01

Page 61

Environmental Survey
7. Survey:

Project ACCP 7.1

If you select Survey menu, Survey Manage page is displayed. Search by competition or seminar, category and username. Result will display in GridView:

You can delete survey by tick corresponding CheckBox then click Delete Items button. To add a Survey , clicking Insert button.

Instructor : Nguyen Khanh

Group_01

Page 62

Environmental Survey

Project ACCP 7.1

To view detailed information survey click Select Linkbutton in the row you want to see.

If you clicking Back button, displaying the back page. If you clicking Delete button, survey will be deleted.

14. TASKSHEET:
Task No 01 Description Translation Specification to Vietnamese Analyze and Collect information Design Use Case & Start date 5 October 2010 6 October 2010 11 October End date 6 October 2010
10

Member

Status

Thang

Completed

01

October 2010 13 October

Group1

Completed

02

Thang

Completed

Instructor : Nguyen Khanh

Group_01

Page 63

Environmental Survey
write specification
2010 14 October 2010 21 October 2010 24 October 2010 26 October 2010 27 October 2010 28 October 2010 30 October 2010 2010 20 October 2010 23 October 2010 26 October 2010 29 October 2010 30 October 2010 29 October 2010 31 October 2010

Project ACCP 7.1

03

Design Data Flow Diagram

Thang

Completed

04

Analyse Database

Group1

Completed

05

Create Table, Constrains,RelationShip

Group1

Completed

06

Write Function,triggers

Group1

Completed

07

Analyze Graphic User Interface


Design Template, Master

Thang,Bach

Completed

08

Page
Design HomePage

Thang

Completed

09

Thang,Tuan

Completed

10

Design My Account and New Agents Page

1 3 November November 2010 2010 2 3 November November 2010 2010 2 4 November November 2010 2010 2 5 November November 2010 2010 3 6 November November 2010 2010 3 5 November November 2010 2010

Tuan,Long

Completed

11

Design Help,FAQs Page

Tuan,Long

Completed

12

Coding for Answer page.

Bach

Completed

13

Coding for Survey Page

Thang,Bach

Completed

14

Coding for ManageUser Page Coding for Question Manage Page

Tuan

Completed

15

Long

Completed

Instructor : Nguyen Khanh

Group_01

Page 64

Environmental Survey
Coding for Answer Manage Page 3 6 November November 2010 2010 3 6 November November 2010 2010 1 5 November November 2010 2010 1 5 November November 2010 2010 4 5 November November 2010 2010 5 6 November November 2010 2010 5 6 November November 2010 2010 01 05 November November 2010 2010 05 07 November November 2010 2010 07 10 November November 2010 2010

Project ACCP 7.1

16

Bach

Completed

17

Coding for Survey,Seminar Manage Page

Thang

Completed

18

Create all Stored Procedures

Group1

Completed

19

Design Admin Site

Thang

Completed

20

Make validation all

Group1

Completed

21

Check and test all Web Forms

Group1

Completed

22

Write Installation Guild

Thang,Tuan

Completed

23

Photoshop banner,button, Sumarization & Write document. Review All & Submit final eproject

Long

Completed

24

Thang,Tuan

Completed

25

Group1

Completed

Instructor : Nguyen Khanh

Group_01

Page 65

Environmental Survey

Project ACCP 7.1

15. CHECKLIST OF VALIDATIONS:


Option Validated

Can an administrator user or exhibitor user who gets registered, enter the application after logging in ? Do all the present in the application display the correct result ? Does the applications functionally resolve the user problem, and satisfy their needs Has the hard ware and software been correctly chosen ?

Yes Yes Yes Yes

16. SUBMISSION CHECKLIST:


Sr. No. Particulars Yes No NA Comments Admin, Faculty/Staff, Students

1.

2. 3 4 5

Are the administrator user or exhibitor user able to log in to the application after validation is performed on the username and password ? Are the users able to search detail which they want ? Are all the screen contents devoid of spelling mistakes ? Are all the process working well ? Is the application user friendly

Yes

Yes Yes Yes Yes Tested on Window 7

Instructor : Nguyen Khanh

Group_01

Page 66

Вам также может понравиться