87
MINOR PROJECT REPORT ON ELECTION MODERNISINGSYSTEM Submitted by JOSE THOMAS P In partial fulfillment of the requirements for the award of the Degree of Bachelor of Technology in COMPUTER SCIENCE & ENGINEERING Of COCHIN UNIVERSITY OF SCIENCE AND TECHNOLOGY March 2009 DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Toc H INSTITUTE OF SCIENCE & TECHNOLOGY Arakkunnam P.O, Ernakulam District, KERALA – 682313

Election Modernizing System

Embed Size (px)

DESCRIPTION

Mini project done in ASP Platform

Citation preview

Page 1: Election Modernizing System

MINOR PROJECT REPORTON

ELECTION MODERNISINGSYSTEMSubmitted by

JOSE THOMAS P

In partial fulfillment of the requirements for the award of the

Degree of Bachelor of Technology in

COMPUTER SCIENCE & ENGINEERING

Of

COCHIN UNIVERSITY OF SCIENCE AND TECHNOLOGY

March 2009DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

Toc H INSTITUTE OF SCIENCE & TECHNOLOGY

Arakkunnam P.O, Ernakulam District, KERALA – 682313

Page 2: Election Modernizing System

Toc H INSTITUTE OF SCIENCE&TECHNOLOGY

Arakkunnam P.O, Ernakulam District,KERALA – 682313

DEPARTMENT OF INFORMATION TECHNOLOGY

CERTIFICATE

This is to certify that the major project entitled “ELECTION

MODERNISING SYSTEM” submitted by Jose Thomas P of Semester VI is a bonafide

account of the work done by him/her under our supervision, during the academic year

2009-2010..

Ms. Smitha Ms.Jayakumar (Project In-charge) (Head, Department of I.T.)

Prof. (Dr).V.Job.Kuruvilla (Head of the institution)

Page 3: Election Modernizing System

SEMESTER: VI BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

ACKNOWLEDGEMENT

The successful completion of my project can be attributed to the combined efforts

made by me and the contribution made in one form or other by the individuals I hereby

acknowledge.

First and foremost thank God Almighty for giving me all strength, courage and

blessings to design and complete this project.

I wish to extend my sincere gratitude to the management and our honorable

Principle, Prof.V.Job Kuruvilla for providing me the valuable opportunity to this project.

I also thank Dr.Varghese Paul, Dean (IT & CS) for his support.

I express my sincere gratitude to our Head of the Computer Science & Engineering

Department, Mr.Jayakumar.I also thank him for his sincere help and support.

Words fail to thank adequately our project-in-charge ,Ms.Smitha and Project guide

Mr.Deepu who gave me all supports and helped me to clear all confusions regarding the

project.

And last but not the least; I thank my family members and my friends for providing

me moral support to achieve my goal.

Thanking you,

Jose Thomas P

Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 4: Election Modernizing System

SEMESTER: VI BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 5: Election Modernizing System

SEMESTER: VI BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

ABSTRACT

Today election procedure is mainly through courier; paper working. It is

found to be time consuming. In order to over come these difficulties, Election Modernizing System is

used. It’s a highly secured system. Only state election commission, collector, RDO and thahasildhar

can access the system. Main advantage of the system is that the allowed users can view the entire

system and can confirm that each section is working perfect.

Different modules of this project are Candidates list allocation, Booth allocation,

Equipment allocation & management, Security procedures, Expense management, Staff delication

module Equipment Storage, Counting process, Tabulation and declaration. In candidates’ list allocation

module, the eligible candidates list created after checking some criteria, like checking whether the

candidate is involved in any criminal cases, murder etc. It is mainly done by election commission. In

Booth allocation module, place for election is selected and allocated in each Panchayath. Collector,

RDO, thahasildhar is involved in this allocation. In equipments allocation & management module, voting

machine for each place is allocated by the collector. In Security procedures module, collector is

checking whether proper security is allocated to each place. If any additional security is required in

some specific area can also be request to him through it.

In Staff delication module, staffs and reserved staffs are allocated for each place. It’s

done by Collector on behalf of election commission. In Expense management module, funds for

elections are calculated as soon as possible after the day the writs are issued for the election .The

entitlement of eligible parties, candidates and groups are calculated. Storage Information about voting

equipments is included Equipment storage module. In counting process module, the entered valid votes

are counted and find out the winner. In Tabulation and declaration, it gives the information about the

results and finally declare the result.

Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 6: Election Modernizing System

SEMESTER: VI BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

TABLE OF CONTENTS

1. INTRODUCTION………………………………………………………………….. 12.SYSTEM ANALYSIS……………………………………………………………… 3 2.1 EXISTING SYSTEM…………………………………………………………. 4 2.2 PROPOSED SYSTEM………………………………………………………..5 2.3 FEASIBILITY STUDY…………………………………………………………63. SYTEM REQUIREMENT STUDY…………………………………………….….8 3.1 SYSTEM CONFIGURATION…………………………………………...…...9 3.2 ABOUT THE DEVELOPING SYSTEM……………………………………..10 3.3 OPERATING SYSTEM…………………………………………………….…11 3.4GRAPHICAL USER INTERFACE: MS VISUAL STUDIO 2005……….…134. SYSTEM DESIGN……………………………………………………………….…14 4.1 LOGICAL SYSTEM DESIGN………………………………………………..15 4.2 PHYSICAL SYSTEM DESIGN……………………………………………....205. SYSTEM IMPLEMENTATION………………………………………………….…25 5.1 IMPLEMENTATION DETAILS…………………………………………….…28 5.2 CODING…………………………………………………………………….…..296. SYSTEM TESTING…………………………………………………………….…...507. FUTURE ENHANCEMENT………………………………………………………...428.CONCLUSION…………………………………………………………………….….589. BIBLIOGRAPHY……………………………………………………………….……60

Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 7: Election Modernizing System

SEMESTER: VI BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

Page No:1 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 8: Election Modernizing System

SEMESTER: VI BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

Our project election modernizing system as the name implies aims at modernizing the

election procedure.This site can be accessed by only few authorized clients which include

collector,rdo,tahsildar of each states and the staff allocated to election job.This site is

managed by a single administrator that is by the election commissioner of India.He can

administer the whole election operation by login this site.election commissioner can allocate

staff,check status of equipments used,accept or reject nomination of candidates,can provide

security to violent prone areas.After the elections are over results are displayed in this site .

Today elections are moving in a slow manner .If a candidate wants to participate in election

he should go to tahsildar’s office and submit his details ,all this can be done online in this

site.Each and every action happening in the country can be quikly bring to the notice of

election commissioner with this site.

Page No:2 Toc H Institute of Science &Technology

Arakkunnam – 682313

Page 9: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE ELECTION MODERNISING SYSTEM

Page No:3 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 10: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

2. SYSTEM ANALYSIS

System analysis is the process of gathering and interpreting facts, diagnosing problems, and using

the information to recommend improvements to the system. This is the job of the system analyst. System

analysts do more than solve current problems. They are frequently called upon to help handle the

planned expansion of a business. Analysts assess as carefully as possible what the future needs of the

business will be and what changes should be considered to meet these needs.

The various tasks in the system analysis include the following.

Understanding application.

Planning.

Scheduling.

Developing candidate solution.

Performing trade studies.

Performing cost benefit analysis.

Recommending alternative solutions.

Selling of the system.

Supervising, installing and maintaining the system

Page No:4 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 11: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

2.1 EXISTING SYSTEM Today election procedure is mainly through courier, paper working, It is found to be time

consuming and highly confusing. There are lots of procedures to be done at each section of work. One

has to wait for a long time to get a final submission from one department .There is no provision to view all

procedures happened in the election and confirm the security.

Advantage of existing system

Easy to understand

2.1.1 LIMITATIONS OF EXISTING SYSTEMAccuracy is not reached

It is prone to errors

It is time consuming

No security is provide

Highly confusing

Employees are overloaded with work.

Inefficient, poorly managed, and Lacks Flexibility.

.

2.2 PROPOSED SYSTEM In order to over come the difficulties, election modernizing system is used. One of the important

qualities of the system is its security. It’s a highly secured system. Only state election commission,

collector, RDO and thahasildar can access the system. No other access is allowed in the system. Main

advantage is that the allowed users can lively view the entire system and can confirm that each section is

working perfect.

Page No:5 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 12: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

Advantages of the Proposed System: Accuracy is attained

It is fast and consumes less time

Reduced manpower

Security is provided

Less complexity

Confidentiality and anonymity issues.

In the fast moving world, if people lack something it is time. All are busy in their world. It will be

welcomed if services are provided at their will. So the main objective of our product is better

communication, better leadership, reducing crime and disorder etc.The product provides a framework

within which a user can easily work with. That was our next objective. So it should be user friendly.

The product provides a framework, which is error free. We know a election process is actually a

serious process. So even a simple error lead to big problems. So it should be error free and our objective

is to build error free software.

Page No:6 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 13: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

Page No:7 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 14: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

SOFTWARE REQUIREMENT SPECIFICATIONS

3.1 SYSTEM CONFIGURATION:

3.1.1 HARDWARE CONFIGURATION

PROCESSOR -Pentium 4

RAM SIZE -256MB

HARD DISK DRIVE -40GB

CD ROM DRIVE -52X

KEYBOARD -108 keys

MONITOR -SVGA 15 inch

MOUSE -PS/2

3.1.2 SOFTWARE CONFIGURATIONFRONT END -ASP.NET

BACK END -MS SQL SERVER 2000

OPERATING SYSTEM -WINDOWS XP

SCRIPT LANGUAGE -C#

BROWSER -MS INTERNET EXPLORER

Page No:8 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 15: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

3.2 ABOUT THE DEVELOPING SYSTEMThe system has developed in ASP.NET as front end and SQL server 2000 as back end.

3.2.1 FRONT END TOOL: ASP.NET(Active Server Pages.net)

WHAT IS ASP.NET: Microsoft ASP.NET is a free technology that allows programmers to create dynamic

web applications.ASP.NET can be used to create anything from small, personal websites to large,

enterprise-class web applications. ASP.NET is the latest version of Microsoft's Active Server Pages

technology (ASP).ASP.NET is a part of the Microsoft .NET framework, and a powerful tool for creating

dynamic and interactive web pages.

ASP: ASP is a server side scripting technology that enables scripts (embedded in web pages) to be

executed by an Internet server ASP is a program that runs inside IIS.IIS stands for Internet Information

Services. IIS comes as a free component with Windows 2000.IIS is also a part of the Windows NT 4.0

Option Pack. The Option Pack can be downloaded from Microsoft.

An ASP file is just the same as an HTML file. An ASP file contains text, HTML, XML and

scripts. Scripts in an ASP file are executed on the server. An ASP file has the file extension “.asp”. When

a browser requests an HTML file, the server returns the file. When a browser requests an ASP file, IIS

passes the request to the ASP engine. The ASP engine reads the ASP file, line by line, and executes the

scripts in the file .Finally, the ASP file is returned to the browser as plain HTML.

Uses of ASP: Dynamically edit, change or add any content of a web page.

Customize a web page to make it more useful for individual users.

Another advantage of ASP is its simplicity and speed.

Provide security since your ASP code cannot be viewed from the browser.

Clever ASP programming can minimize the network traffic.

Page No:9 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 16: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

3.2.2 BACK END TOOL: SQL Server 2000

Microsoft SQL Server 2000 is a relational database management system (RDBMS)

produced by Microsoft. Its primary query language is Transact SQL, an implementation of the ANSI/ISO

standard SQL used by both Microsoft and Sybase.

SQL Server allows multiple clients to use the same database

concurrently. SQL Server provides two modes of concurrency control: pessimistic and optimistic

concurrency. When pessimistic concurrency control is being used, SQL Server controls concurrent

access by using locks. Locks can be either shared or exclusive. Exclusive lock grants the user exclusive

access to the data no other user can access the data as long as the lock is held. Shared locks are used

when some data is being read-multiple users can read data locked with a shared lock, but not acquire an

exclusive lock. SQL Server also provides the optimistic concurrency control mechanism, which is similar

to the multiversion concurrency control used in other databases.

3.3 OPERATING SYSTEM: WINDOWS XP Windows has graphical based multitasking windowing environment that allows programs

written specifically for windows to have a consistent appearance and command structure. This capability

makes even new programs easier to master.

Windows provides several built in routines that allow easy implementation of pull down menus,

scrollbars and dialogue box icons and many other features of a user friendly graphical interface. Starting

with Windows 3.0 through Windows XP, programs can take advantage of new dialog control, menu types

and owner draw control. Our application uses Windows XP Platform.

Page No:10 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 17: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

Characteristics:

Input/Output Input and Output is essential to the operation of any computer. Input-Output allows the computer to

store and receive data on disks or tapes, to interact with the users terminals and to print the output on

paper. This form of input-output is provided by the chosen Operating system.

Time Sharing Time-Sharing is a way of allowing several people to run programs on different terminals

concurrently. This introduces the facility of enabling a group of people to simultaneously approach a

problem on different levels or at the same level, when the need arises.

Communication Communication refers to the ability of one computer to communicate with other computer and

terminals, to transfer programs and/or data.

Security The OS invokes security that protects one user from another and the OS from all users. Its main

function is to make sure that only authorized users gain access to the computer and its data and those

users do only things that they are authorized to do. As time sharing is available in the OS, a large degree

of security is provided.

Page No:11 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 18: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

Modularity The design of the OS is modular which allows new capabilities to be added as required.

Reliability Applications are run in their own memory and are unable to corrupt other applications or the system.

System errors are logged.

Portability Allows Windows XP to run on various platforms.

Page No:12 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 19: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

3.4: GRAPHICAL USER INTERFACE:- MS VISUAL STUDIO 2005

Microsoft Visual Studio is the main integrated Development Environment (IDE) from Microsoft. It can be

used to develop console and Graphical User Interface applications. Visual studio supports languages by

means of language services, which allow any programming language to be supported (to varying

degrees) by the code editor and debugger, provided a language specific service has been authored.

Some important components of Visual Studio 2005 are :

Visual Studio like any other IDE includes a code editor that supports syntax highlighting and code

completion.

Visual Studio also includes a web site editor and designer that allow web pages to be authored by

dragging and dropping widgets. It is used for developing ASP.net applications, and supports

HTML, CSS and JavaScript.

The data designer can be used to graphically edit database schemas, including typed tables,

primary and foreign keys and constraints.

The object browser is a namespace and class library browser for Microsoft .NET. It can be used to

browse the namespaces

The solution Explorer is used to manage and browse the files in a solution.

Data Explorer is used to manage databases on Microsoft SQL sever instances. It allows creation

and alteration of database tables.

Visual Studio 2005 also includes a local web server, separate from IIS that can be used to host

ASP.NET applications during development and testing. It also supports all SQL Server2005

databases.

Page No:13 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 20: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

Page No:14 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 21: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION

MODERNISING SYSTEM

The most creative and challenging phase of the system life cycle is system design. The

term design describes a final system and the process by which it is developed. It refers to the technical

specifications that will be applied in implementing the proposed system. It also includes the construction

of program and designing of output, input, code, database and process of the system.

4.1 LOGICAL SYSTEM DESIGN: The logical system design reviews the present system and prepares input and output specifications,

editing, security and control specification details of the implementation plans.

4.1.1 USECASE DIAGRAM: In designing an efficient and effective system it is important to consider usecase diagram.Usecase

diagram is one of the five diagrams in uML or modeling the dynamic aspects of the system.Usecase

diagram is central to modeling the behaviour of a system, a subsystem or a class.Usecase diagram are

more important for visualizing, specifying and make systems, subsystems and classes approachable and

view of how those elements may be used in context.

Page No:15 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 22: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION

MODERNISING SYSTEM

USECASE DIAGRAM

The citizen can report crimes. He will enter all details about the crime. It contains the date, time,

spot, nature of crime, location of crime etc.He can view all crimes accepted and closed by the

administrator. Thus he can see whether the crime reported by him has been accepted or not.

The Administrator will accept the complaints if it is genuine. He can create a new police station,

view complaints from the citizens, crime details, criminal details, and victim details, witness details etc.He

can create a new investigation team and assign them to the investigation of a crime. Removal of old and

outdated crime details will be done by him.

Page No:16 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 23: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

4.1.2 DATAFLOW DIAGRAMDataflow diagram is used to define the flow of the system and their resources .It is the way of expressing

system requirements in a graphical manner. It is one of the most ingenious tools used for structured

analysis. It is the starting point of design phase.

Context level

User UserELECTION

MODERNISINGSYSTEM

request response

Page No:19 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 24: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

LEVEL1

Admin

RegistrationProcess

1.0

ViewComplaints

2.0

ApprovalProcess

3.0

Add/ViewComplaint

4.0

VottingProcess

5.0

RDO/CollectorThahasildar/CEO

AllocationProcess

6.0

UpdationProcess

7.0

view process

Updation Process

AddProcess

ViewReports

8.0

Reportdetail

Admin

RDO/CollectorThahasildar/CEO

view process

Votting Process

Reportdetail

Page No:20 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 25: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

Level2 Admin registrationRegistration

1.0Admin

StaffRegistration

1.1.0

StateEntry1.5.0

DistrictEntry1.2.0

BlockEntry1.6.0

state

district

AddAssembly1

1.4.0

Legislative_assembly

block

Staff _regn

AddTaluk1.3.0

taluk

Page No:21 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 26: Election Modernizing System

SEMESTER: VI BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

Level2 Staff allocation process

RDO/CollectorThahasildar/CEO

AllocationProcess

6.0

StaffAllocation

6.1.0 CandidateAllocation

6.2.0 EquipmentAllocation

6.5.0

ExpenseEntry6.6.0

EquipmentStorage

6.4.0SecurityOfficer

Allocation6.3.0

boothAllocation

6.7.0Candidateallocation

expenditure

Eqp_allocation

Eqp_storage

booth

Staff_allocation

Security

Page No:22 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 27: Election Modernizing System

SEMESTER: VI BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

4.2 PHYSICAL SYSTEM DESIGN: Following the logical design is the physical design. This produces the working system by

defining the design specifications that tell the programmers exactly what the candidate system must do.

4.2.1 ARCHITECTURAL DESIGN: Architectural design is a comprehensive framework that describes its form and a structure its

components and how they fit together. Architectural design is a software component that can be

something as simple as program module, but it can also be extended to include database and

middleware that enable the configuration of a network of client and servers .Architectural design focuses

on the representation of the structure of software components their properties and interaction.

This project consists of different modules. The Administrator module helps the administration

of the entire site. The complaints send by the citizen cannot be viewed by all police stations. The

administrator will decide which station should view the complaint.

4.2.2 INTERFACE DESIGN: Interface design creates an effective communication medium between a human and a

computer. In this project it is the communication between Administrator and station in-charge design.

Since this project requires a database, the client machines require proper connection with the server

machine. The users will interact with the software through the user friendly web pages.

4.2.3 DATABASE DESIGN: Database design is the most important part of the system design phase. In a database

environment common data are available and are used by several users. Instead of each program

managing its own data, authorized users share data across application with the database software

managing the data as an entity

Page No:23 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 28: Election Modernizing System

SEMESTER: VI BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

DATABASE TABLES: 1.Designtion It contains designation details.

Field name Data type Constraint DescriptionDesign_Id varchar Primary key Designation idDesign Name varchar Designation name

2.State

It contains the state details.

Field name Data type Constraint Descriptionstate_Id varchar Primary key State idState_Name varchar State name

3 .District

It contains the district details.

Field name Data type Constraint DescriptionDist_Id varchar Primary key District idState_Id varchar Foreign key State idDist_Name District name

4 Taluk It contains the taluk details

Field name Data type Constraint DescriptionTaluk_Id varchar Primary key Taluk idDist_Id varchar Foreign key District idTaluk Name varchar Taluk name

Page No:24 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 29: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

5 .Block It contains the block details.

Field name Data type Constraint DescriptionBlock_Id varchar Primary key Block idTaluk_Id varchar Foreign key Taluk idBlock_Name varchar Block name

6 .Legislative assembly It contain legislative assembly details

Field name Data type Constraint DescriptionAssembly_Id varchar Primary key Assembly idAssembly_Name varchar Assembly nameAssembly_TotalVote varchar Assembly Total VoteAssembly_Description varchar Assembly Description

7 .Polling Booth It contains the poling booth details.

Field name Data type Constraint DescriptionBooth_Id varchar Primary key Polling booth idBlock_Id varchar Foreign key Block idAssembly_Id varchar Foreign key Assembly idAuthority_Type varchar Authority typeBooth_Name varchar Booth nameBooth_Location varchar Booth location

Page No:25 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 30: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

8. Staff_Regn It contain staff registration details.

Field name Data type Constraint DescriptionStaff_Id varchar Primary key Staff idStaff_Name varchar Staff nameDesign_Id varchar Designation idAddress varchar AddressGender varchar GenderAge varchar AgeAssembly_Id varchar Foreign key Assembly idBooth _Id varchar Foreign key Booth idBlock_id varchar Foreign key Block idStatus varchar To Give

approval

9 Staff_AllocationIt contain staff allocation details.

Field name Data type Constraint DescriptionAlloc_Staff_Id varchar Primary key Staff idBooth_Id varchar Foreign key Poll_booth idDesign_Id varchar Foreign key Design idReporting_Date varchar Reporting_DateReporting_Time varchar Reporting_Time

10 Login_tab It contain login details.

Field name Data type Constraint DescriptionLogin_Id varchar primary key Login idLog_Name varchar Login nameLog_Pwd varchar PasswordLog_Type varchar Login type

Page No:26 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 31: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

11. Eqp_storage

It contain equipment storage details.

Field name Data type Constraint DescriptionEqp_Id varchar Primary key Equipment idEqp_Name varchar Equipment nameDist_Id varchar Foreign key District idRemarks varchar Remarks

12. Equipment_Allocation

It contain equipment allocation details.

Field name Data type Constraint DescriptionEqp_Alloc_Id varchar Primary key Eqp Allocation idEqp_Id varchar Foreign key Equipment idBooth_Id varchar Foreign key Booth_idEqp_No varchar Eqp number

13 Sign_ tab

It contain Sign details

Field name Data type Constraint DescriptionSign_Id varchar Primary key Sign_IdSign_Name varchar Sign_NameSign_Image varchar Sign_Image

Page No:27 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 32: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

14. Expenditure_Tab

It contain expenditure details

Field name Data type Constraint DescriptionExp_Id varchar Primary key Expenditure idCand_Id varchar Foreign key Candidate idAmount varchar AmountRemarks varchar Remarks

15. Votting_tab

It contain votting details

Field name Data type Constraint DescriptionVotting_Id varchar Primary key Votting idCand_Id varchar Foreign key Candidate idStaff_Id varchar Foreign key Staff idVote_Count varchar Vote countVote_Total varchar Vote total

16 . Candidate_Allocation

It contain candidate allocation details.

Field name Data type Constraint DescriptionCand_Id varchar Primary key Candidate idSign_Id varchar Foreign key Sign IdCand_Name varchar Candidate nameCand_Address varchar Candidate AddressCand_Gender varchar Candidate GenderCand_Age varchar Candidate AgeCand_Assembly_id varchar Cand_Assembly_idParty_Name varchar Party_Name

Page No:28 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 33: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

17. Complaint/Suggestion/Requirement

It contain Complaint details

Field name Data type Constraint DescriptionComplaint_id varchar Primary key Complaint idBooth_id varchar Foreign key Booth idComplaints varchar ComplaintsStatus varchar Status

18 Security_Tab

It contain security details

Field name Data type Constraint DescriptionSecurity_Id varchar Primary key Security IdBooth_Id varchar Foreign key Booth IdSecurity_Leader varchar Security LeaderSecurity_Contactno varchar Security ContactnoNo_Of_Supporting_Officials

varchar No_Of_SupportingOfficials

19 Result_tab

It contain Complaint details

Field name Data type Constraint DescriptionResult_Id varchar Primary key Result IdCand_Id varchar Foreign key Cand IdAssembly_Id varchar Foreign key Assembly IdYear varchar YearMonth varchar MonthDate varchar DatePublic_Vote varchar Public VotePostal_Vote varchar Postal VoteTotal_Vote varchar Total Vote

Page No:29 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 34: Election Modernizing System

SEMESTER: VIII

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

Page No:30 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 35: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

5.1 IMPLEMENTATION DETAILS: System implementation is the important stage of project when the theoretical design is turned

into a practical system. It includes all those activities that take place to convert an old system to a new

one. Replacing an existing manual or automated system may be a major modification to an existing

system

SCREEN SHOTS.

LOGIN PAGE

Page No:31 Toc H Institute of Science &Technology

Arakkunnam – 682313

Page 36: Election Modernizing System

SEMESTER: VI BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

HOME PAGE OF ADMINISTRATOR

Page No:32 Toc H Institute of Science &Technology

Arakkunnam – 682313

Page 37: Election Modernizing System

SEMESTER: VI BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

HOME PAGE OF CEC

Page No:33 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 38: Election Modernizing System

SEMESTER: VI BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

HOME PAGE OF COLLECTOR

Page No:34 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 39: Election Modernizing System

SEMESTER: VI BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

FOR EDITING ADMIN DETAILS

Page No:35 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 40: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

UPDATING STAFF DETAILS

Page No:36 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 41: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

CODING: The goal of coding phase is to translate the design of the systemIn to code in a particular

programming language.For a givev design, The aim of coding phase is to implement the design in the

best possible manner.

CODE SNIPPETS:

CLASSLIBRARYusing System;using System.Data;using System.Configuration;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;using System.Data.SqlClient;

public class Class2{ SqlConnection con;

public Class2(){

con = new SqlConnection(@"server=QISPC-12\SQLEXPRESS;integrated security=true;database=electionmodernisingsystem");

} public void exe_nonquery(string sql) { if (con.State == ConnectionState.Open) { con.Close(); } SqlCommand cmd = new SqlCommand(sql, con); con.Open(); cmd.ExecuteNonQuery(); con.Close(); }

public DataSet exe_adapter(string sql) {

Page No:37 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 42: Election Modernizing System

SEMESTER: VI BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

if (con.State == ConnectionState.Open) { con.Close(); } SqlDataAdapter da = new SqlDataAdapter(sql, con); DataSet ds = new DataSet(); da.Fill(ds); return ds; }public SqlDataReader exe_reader(string sql) { if (con.State == ConnectionState.Open) { con.Close(); } SqlCommand cmd = new SqlCommand(sql, con); con.Open(); SqlDataReader dr = cmd.ExecuteReader(); return dr; }

public string exe_scalarstring(string sql) { if (con.State == ConnectionState.Open) { con.Close(); } SqlCommand cmd = new SqlCommand(sql, con); con.Open(); string i = Convert.ToString(cmd.ExecuteScalar()); con.Close(); return i; }

public string generate_Id(string sql, string strchar) { con.Open(); string stid, returnid, strnum; int num = 0; SqlCommand cmd = new SqlCommand(sql, con); stid = cmd.ExecuteScalar().ToString(); if (stid == "") { returnid = strchar + "1000"; con.Close(); return returnid;

Page No:38 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 43: Election Modernizing System

SEMESTER: VI BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

} else { num = Convert.ToInt32(stid.Substring(3, 4)); num++; strnum = Convert.ToString(num); returnid = strchar + strnum; con.Close(); return returnid; } } public string votegenerate_Id(string sql) { con.Open(); string stid, returnid, strnum; int num = 0; SqlCommand cmd = new SqlCommand(sql, con); stid = cmd.ExecuteScalar().ToString(); if (stid == "") { returnid = "1"; con.Close(); return returnid; } else { stid = stid + 1; con.Close(); return stid; } }public string Encode(string str) { byte[] encbuff = System.Text.Encoding.UTF8.GetBytes(str); return Convert.ToBase64String(encbuff); }}

LOGIN

using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;

Page No:39 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 44: Election Modernizing System

SEMESTER: VIII

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;

public partial class login1 : System.Web.UI.Page{ Class2 ob = new Class2(); protected void Page_Load(object sender, EventArgs e) {

} protected void Button1_Click(object sender, EventArgs e) { string c = "select count(Log_Name) from login_tab where Log_Name='" + txtuname.Text + "'and Log_Pwd='" + txtpwd.Text + "'"; string k = ob.exe_scalarstring(c); if (k == "0") { Response.Write("Invalid User"); } else { string c1 = "select Log_Type from login_tab where Log_Name='" + txtuname.Text + "'and Log_Pwd='" + txtpwd.Text + "'"; string k1 = ob.exe_scalarstring(c1); if (k1 == "Admin") { Session["adminuname"] = txtuname.Text; Response.Redirect("adminhome.aspx"); }

else if (k1 == "staff ") { string s1 = "Select status from staff_regn where Staff_Name='" + txtuname.Text + "'"; string s2 = ob.exe_scalarstring(s1); if (s2 == "Pending") { Label3.Visible = true; Label3.Text = "Your Account in Waiting List....."; } else {

Session["uname"] = txtuname.Text;

Page No:40 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 45: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

string deg1, deg2,deg3,deg4;deg1 = "select Design_Id from staff_regn where Staff_Name='" + txtuname.Text + "' "; deg2 = ob.exe_scalarstring(deg1);

deg3 = "select Design_Name from designation where Design_Id='"+deg2+"' "; deg4 = ob.exe_scalarstring(deg3); if ( deg4 == "Thahasildar" || deg4 == "RDO") { Response.Redirect("staffhome.aspx"); } else { Label3.Visible = true; Label3.Text = "Invalid Designation....Sorry....."; }

if (deg4 == "Collector" ) { Response.Redirect("CollectorHome.aspx"); } else { Label3.Visible = true; Label3.Text = "Invalid Designation....Sorry....."; }if (deg4 == "CEC") { Response.Redirect("CECHome.aspx"); } else { Label3.Visible = true; Label3.Text = "Invalid Designation....Sorry....."; } } } } }}

STAFF ALLOCATIONusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;

Page No:41 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 46: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;

public partial class saffalloc : System.Web.UI.Page{ Class2 ob = new Class2(); string s1; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string st="select Staff_Id,Staff_Name from staff_regn"; Dstaff.DataSource = ob.exe_adapter(st); Dstaff.DataTextField = "Staff_Name"; Dstaff.DataValueField = "Staff_Id"; Dstaff.DataBind(); Dstaff.Items.Insert(0, "-Select-"); txtdate.Text = Convert.ToString(DateTime.Now.ToShortDateString()); txttime.Text = Convert.ToString(DateTime.Now.ToShortTimeString()); string s4 = "select Booth_Id,Booth_Name from booth"; ob.exe_adapter(s4); Dbooth.DataSource = ob.exe_adapter(s4); Dbooth.DataTextField = "Booth_Name"; Dbooth.DataValueField = "Booth_Id"; Dbooth.DataBind(); Dbooth.Items.Insert(0, "-Select-"); }}

protected void Button1_Click(object sender, EventArgs e) { string c = "select max(Staff_Alloc_Id)from Staff_allocation"; string k = ob.generate_Id(c, "STA"); string ins = "insert into Staff_allocation values('" + k + "','" + Dstaff.SelectedItem.Value + "','" + Dbooth.SelectedItem.Value + "','" + Session["design_id"] + "','" + txtdate.Text + "','" + txttime.Text + "','" + txtstatus.Text + "')"; ob.exe_nonquery(ins);

}

Page No:42 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 47: Election Modernizing System

SEMESTER: VI

BRANCH:INFORMATION TECHNOLOGY PROJECT TITLE :ELECTION MODERNISING SYSTEM

protected void Dstaff_SelectedIndexChanged(object sender, EventArgs e) { string s = "select Design_Id from Staff_Regn where Staff_Id='"+Dstaff.SelectedItem.Value+"'"; string s1=ob.exe_scalarstring(s); Session["design_id"] = s1; string s2="select Design_Name from designation where Design_Id='"+s1+"'"; string s3=ob.exe_scalarstring(s2); txtdname.Text = s3;

} }VEIW STAFF REGISTRATION DETAILSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;

public partial class Updatestaffregn : System.Web.UI.Page{ Class2 ob = new Class2(); public void funfill() { string st ="SELECT dbo.staff_regn.Staff_Id, dbo.staff_regn.Staff_Name, dbo.designation.Design_Name, dbo.staff_regn.Address, dbo.staff_regn.Age, dbo.legislative_assembly.Assembly_Name, dbo.block.Block_Name, dbo.booth.Booth_Name FROM dbo.block INNER JOIN dbo.booth ON dbo.block.Block_id = dbo.booth.Block_Id INNER JOIN dbo.legislative_assembly ON dbo.booth.Assembly_Id = dbo.legislative_assembly.Assembly_Id INNER JOIN dbo.staff_regn ON dbo.block.Block_id = dbo.staff_regn.Block_Id AND dbo.booth.Booth_Id = dbo.staff_regn.Booth_Id AND dbo.legislative_assembly.Assembly_Id = dbo.staff_regn.Assembly_Id INNER JOIN dbo.designation ON dbo.staff_regn.Design_Id = dbo.designation.Design_Id"; DataSet ds = ob.exe_adapter(st); GridView1.DataSource = ds; GridView1.DataBind(); }protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) {

Page No:43 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 48: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

Panel1.Visible = false;

string str = "select Assembly_Id,Assembly_Name from legislative_assembly"; Dassembly.DataSource = ob.exe_adapter(str); Dassembly.DataTextField = "Assembly_Name"; Dassembly.DataValueField = "Assembly_Id"; Dassembly.DataBind(); Dassembly.Items.Insert(0, "-Select-");

string s3 = "select Block_Id,Block_Name from block "; ob.exe_adapter(s3); Dblock.DataSource = ob.exe_adapter(s3); Dblock.DataTextField = "Block_Name"; Dblock.DataValueField = "Block_Id"; Dblock.DataBind(); Dblock.Items.Insert(0, "-Select-");

string s5 = "select Booth_Id,Booth_Name from booth "; ob.exe_adapter(s5); Dbooth.DataSource = ob.exe_adapter(s5); Dbooth.DataTextField = "Booth_Name"; Dbooth.DataValueField = "Booth_Id"; Dbooth.DataBind(); Dbooth.Items.Insert(0, "-Select-"); funfill();}protected void Button1_Click(object sender, EventArgs e) { string s2 = "select Assembly_Id from legislative_assembly where Assembly_Name='" + Dassembly.SelectedItem.Text + "'"; string s6 = ob.exe_scalarstring(s2); string s1 = "select Booth_Id from booth where Booth_Name='" + Dbooth.SelectedItem.Text + "'"; string s5 = ob.exe_scalarstring(s1); string s3 = "select Block_Id from block where Block_Name='" + Dblock.SelectedItem.Text+ "'"; string s4 = ob.exe_scalarstring(s3);

string up = "update staff_regn set Staff_Name='" + txtstaff.Text + "',Address='" + txtaddr.Text + "',Age='" + txtage.Text + "',Assembly_Id='" + s6 + "',Booth_Id='" + s5 + "',Block_Id='" + s4 + "',Status='" + txtstatus.Text + "' where Staff_Id ='" + Session["staff_id"] + "'"; ob.exe_nonquery(up);funfill(); }

Page No:44 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 49: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

string up = "update staff_regn set Staff_Name='" + txtstaff.Text + "',Address='" + txtaddr.Text + "',Age='" + txtage.Text + "',Assembly_Id='" + s6 + "',Booth_Id='" + s5 + "',Block_Id='" + s4 + "',Status='" + txtstatus.Text + "' where Staff_Id ='" + Session["staff_id"] + "'"; ob.exe_nonquery(up); funfill(); }Panel1.Visible = true; GridViewRow row = GridView1.Rows[e.NewSelectedIndex]; Session["staff_id"] = row.Cells[1].Text; txtstaff.Text = row.Cells[3].Text; txtaddr.Text = row.Cells[4].Text; txtage.Text = row.Cells[7].Text; Dassembly.SelectedItem.Text = row.Cells[6].Text; Dbooth.SelectedItem.Text = row.Cells[2].Text; Dblock.SelectedItem.Text = row.Cells[5].Text; } }

EXPENDITUREusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;

public partial class expenditure : System.Web.UI.Page{ Class2 ob = new Class2(); protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) {

string str = "select Cand_Id,Cand_Name from candidate_allocation"; Dcname.DataSource = ob.exe_adapter(str); Dcname.DataTextField = "Cand_Name"; Dcname.DataValueField = "Cand_Id"; Dcname.DataBind();

Page No:45 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 50: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

Dcname.Items.Insert(0, "-Select-"); } }protected void Button1_Click1(object sender, EventArgs e) { string c = "select max(Exp_Id)from Expenditure_tab"; string k = ob.generate_Id(c, "EXP"); string ins = "insert into Expenditure_tab values('" + k + "','" + Dcname.SelectedItem.Value + "','" + txtamount.Text + "','" + txtremarks.Text + "')"; ob.exe_nonquery(ins); }}UPDATE STAFF ALLOCATIONusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;

public partial class updatestaffallocation : System.Web.UI.Page{ Class2 ob = new Class2();

public void funfill() { string st= "SELECT dbo.staff_allocation.Staff_Alloc_Id,dbo.staff_regn.Staff_Name,dbo.booth.Booth_Name FROM dbo.staff_allocation INNER JOIN dbo.staff_regn ON dbo.staff_allocation.Staff_Id = dbo.staff_regn.Staff_Id INNER JOIN dbo.booth ON dbo.staff_allocation.Booth_Id = dbo.booth.Booth_Id"; DataSet ds = ob.exe_adapter(st); GridView1.DataSource = ds; GridView1.DataBind(); }protected void Page_Load(object sender, EventArgs e) {

Page No:46 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 51: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

Panel2.Visible = false; if (!IsPostBack) { funfill(); }}

protected void Button1_Click(object sender, EventArgs e) {

funfill(); } protected void GridView1_SelectedIndexChanging(object sender, GridViewSelectEventArgs e) { Panel2.Visible = true; string s5 = "select Booth_Id,Booth_Name from booth "; ob.exe_adapter(s5); DropDownList1.DataSource = ob.exe_adapter(s5); DropDownList1.DataTextField = "Booth_Name"; DropDownList1.DataValueField = "Booth_Id"; DropDownList1.DataBind(); DropDownList1.Items.Insert(0, "-Select-"); }}WINNERusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;using System.Data.SqlClient;

public partial class winner : System.Web.UI.Page{

Page No:47 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 52: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

Class2 ob = new Class2(); protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { for (int i = 1990; i < DateTime.Now.Year; i++) { Dyear.Items.Add(i.ToString());

} Dyear.Items.Insert(0, "--Select--"); } Panel1.Visible = false;

} protected void Button1_Click(object sender, EventArgs e) { Panel1.Visible = true; string s1 = "Select max(Poll_Vote) from Result where year='" + Dyear.SelectedItem.Text + "'"; string s2 = ob.exe_scalarstring(s1); string st = "select C.Cand_Name,S.Sign_Image,R.Poll_Vote from result as R join candidate_allocation as C on R.Candidate_Id=C.Cand_Id join sign_tab as S on C.sign_Id=S.sign_id where R.Poll_Vote ='"+s2+"'"; SqlDataReader dr = ob.exe_reader(st); while (dr.Read()) { Label2.Text = dr["Cand_Name"].ToString(); Image1.ImageUrl = dr["Sign_Image"].ToString(); Label3.Text = dr["Poll_Vote"].ToString(); } }}

Page No:48 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 53: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

Page No:49 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 54: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

Page No:50 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 55: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

Testing is the process of executing the program to find if there are any errors. It is the final

verification and validation activity .In testing phase we have tried to affirm the quality of the product. We

have also tried to eliminate errors in the previous stages.

7.1System TestingTesting is the process of executing a program with the indent of finding any errors. Testing is

vital to the success of the system. Without proper testing, hide errors will surface after sometime of use

and perhaps irreversible damage has been done to valuable data. A series of tests like responsiveness,

its value, stress and security are performed before the system is ready for user acceptance testing.

System testing follows the logical conclusion that is all the part of the system are tested and found to be

working properly under all kinds of situations, and then the system is achieving its goal of processing the

data perfectly according to user rules and requirements.

System testing is aimed at ensuring the system works accurately before live operation

commences. Testing is vital to the system. System testing makes a logical assumption that if all parts of

the system are correct, the goal will be successfully achieved. The candidate system is subjected to a

verity of tests: Online Response, Volume, Stress Recovery & Security and Usable tests. A series of

testing are performed for the proposed system before the system is ready for user acceptance testing.

Nothing is complete without testing, as it is vital success of the system.

7.2Unit Testing

Unit testing is a software development process in which the smallest testable parts of an

application called units are individually and independently scrutinized for proper operation. In this project

unit test had conducted by calling a connection class variable. This class contains some methods. Each

modules of this project works under this connection class variable. This project contains different

modules. For example a login operation to be happening it will be tested by checking the username or id

and password entered by the user .It also check data are correctly stored in the data base & data base

are properly connected. In this way each module is tested. All the unit tests got executed successfully for

the application.

Page No:51 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 56: Election Modernizing System

SEMESTER: VI

BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

7.3 Integration Testing

Integration testing is the activity of software testing in which individual software modules

are combined and tested as a group. It occurs after unit testing .In this project integration testing was

conducted by running the modules together. The application was integrated to the main user application

successfully. This module was introduced as a part of main module. The entire module is tested as a

whole. In this it checks whether the valid user can login and perform the necessary functions. All

requirement areas were integrated successfully to the existing application. Testing has been done to see

whether the administrator could allocate a new user. Also the information entry by each user has been

tested

7.4 Validation Testing

Validation can be defined in many ways, but a simple definition is that validation succeeds when

software functions in a manner that can be reasonably expected by the customer. Software validation is

achieved through a series of black – box tests that demonstrate conformity with requirements. A test plan

outlines the classes of tests to be conducted and a test procedure defines specific test cases that will be

used to demonstrate conformity with requirements.

7.5 Alpha Testing

The alpha test is conducted at the developer’s site by a customer. The software is used in a

natural setting with the developer looking over the shoulder of the user and recording errors and usage

problems. Alpha tests are conducted in a controlled environment.

Page No:52 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 57: Election Modernizing System

SEMESTER: VI BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

7.6 Beta Testing

The beta test is conducted at one or more customer sites by the end-user of the software.Unlike

alpha testing,the developer is generally not present.Therefore,the beta-test is a live application of the

software in an environment that cannot be controlled by the developer.The customer records all problems

that are encountered during beta testing and reports these to the developer at regular intervals.As a

result of problems reported during beta tests,software engineers make modifications and then prepare for

release of the software product to the entire customer base.

7.7 Test Cases

Page No:53 Toc H Institute of Science &TechnologyArakkunnam – 682313

Test Case No

Test Data DB Table

Name(s)

influenced

Form(s)/

Report(s)

Involved

Expected Result

Actual Result Remarks

1.

Log_Name

Log_Pwd

login_tab AdminHome.aspx AdminHome AdminHome Passed

2

Log_Name

Log_Pwd

login_tab CollectorHome.aspx CollectorHome CollectorHome Passed

3

Enakulam

Aluva

Angamaly

block Block.aspx Enter into the

database

Enter into the

database

Passed

4

Stmarys

Computer

5

equipment_

allocation

eqpallocation.aspx Enter into the

database

Enter into the

database

Passed

Page 58: Election Modernizing System

SEMESTER: VI BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

5. Thomas K

10000

Campaign

Expenditure

_tab

expenditure.aspx Enter into the

database

Enter into the

database

Passed

6. Chalakudy

200000

legislative_

assembly

updateassembly.aspx Edit and enter into the database

Edit and enter into the database

Passed

7. Thomas k

Male

29

Chalakudy

candidate_

allocation

viewcandidates.aspx View

Candidate details

View

Candidate details

Passed

8. Stmarys

Computer is not working

complaints ViewComplaints.aspx View

Complaint details

View

Complaint details

Passed

9. Mary T

Union School

staff_

allocation

updatestaffallocation.

aspx

Edit and enter into the database

Edit and enter into the database

Passed

Page No:54 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 59: Election Modernizing System

SEMESTER: VI BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

Page No:55 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 60: Election Modernizing System

SEMESTER: VI BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

Page No:56 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 61: Election Modernizing System

SEMESTER: VI BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

Maintenance of the software is one of major step in the computer animation. Software which is

developed by the engineer, should undergo maintenance process in regular interval of time goes on new

problems arise and it must be corrected accordingly. Maintenance and enhancement are a long term

process.

In this project, the maintenance is carried over by the staff concern. Since they are the key

persons to develop this project they know clearly about the project and coding structure. So, they will

change the coding whenever required. Regarding the project maintenance, the changes will occur then

and there according to the conditions.

Various types of maintenance that can be made are:

Corrective maintenance

Adaptive maintenance

Prefecture maintenance

Reverse engineering

Re engineering

The staff in the concern are parted each and every level of the project. So they don’t need

any training of the software. During the development process they sit and entered each and every entry

to test the project. They themselves used this is an opportunities to take training in the software so extra

training is not needed for the user.

Page No:57 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 62: Election Modernizing System

SEMESTER: VI BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

Page No:58 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 63: Election Modernizing System

SEMESTER: VI BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

The project entitled ‘Election Modernizing System’ is very useful for the Election

Commission. The project was designed, implemented and tested successfully. The Software developed is

found to be working efficiently and effectively. It can be observed that the information can be obtained

easily and accurately.

The project provides much security. The simplicity and friendliness are the advantages

of this project. The Software is made user friendly to the maximum so that any one can run the software

provided he could access to the system via the login password.

The software which I developed was implemented and tested with real data and were

found to be error free. Also, it is found that the system will work successfully. I tried to make the system

maximum user friendly. The system is protected from any unauthorized access by giving user name and

password during log in process. All the necessary validations are carried out in this project, so that any

kind of users can make use of this software and necessary messages makes them conscious of the error

they have made

This project manages all details without any risk. All the objectives

were met with satisfaction. The performance of the system is found to be satisfactory.

Page No:59 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 64: Election Modernizing System

SEMESTER: VI BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

Page No:60 Toc H Institute of Science &TechnologyArakkunnam – 682313

Page 65: Election Modernizing System

SEMESTER: VI BRANCH: COMPUTER SCIENCE& ENGINEERING

PROJECT TITLE :ELECTION MODERNISING SYSTEM

BOOKS REFERED :

Active Server Pages for Dummies. IDG Books worldwide, 2001

Scott Stabbert, Authentication and security for Internet developers

C#.NET Illuminated ,Art Gittleman California State University, Long Beach

C# Professional Projects,Nithin Pandey ,Geetanjali Arora.

Microsoft Visual C#.NET ,Mickey Williams

ONLINE HELP :

Howard, Michael. “Microsoft Internet Information Server Security” available at

www.csharpcorner.com

www.microsoft.com/sql

www.databasejournal.com/features/mssql

www.microsoft.com/vcsharp

www.asp.net.com

www.framework.com

www.references.asp.net.com

Page No:61 Toc H Institute of Science &Technology

Arakkunnam – 682313