Documente Academic
Documente Profesional
Documente Cultură
Abstract
Aim:
The motto of the project is to build an enterprise site, which should be able to allow people to cast their vote online.
SYSTEM ANALYSIS
Existing System
Remote voting is exercise into two different ways. 1.proxy voting The person who is unable to be physically present authorized other person on behalf of him. 2. close envelope ballet In this the person cast is voter, enclosed in an envelope and post to register post. The problem with this system is that not always the ballets are riched in time. The proxy person may exercise other ballet then the one synthezised the person.
Proposed System
In propose system remote and users can exercise .There voter within any favour using this system any level of voting like ,lokha sab voting,rajya sab voting etc. In the proposed system we can get the result without manually counting.The computerized counting is simple and we can access any information of any party.
1. Time saving 2. Working load reduced to a large extent 3. Less prone to errors 4. Information available at time 5. Man power reduced 6. Many tasks are automated 7. It also provide security for the data
Modules description
1. Election commissioner: It check about the user details like id proof and no proxy voting cannot be done. This is election commissioner home page . 2.Generate voter id:It check details like name,password,state,address,block,area about the voter. 3Prepare for Election:It check prepare for election like election no and candidates no. 4.Insert party:We have to insert the party. 5.Automatic counting:It will count how many voting has be done by public.
SYSTEM DESIGN
BLOCK DIAGRAM
Election Election Commissioner Commissioner Voting Day Set Voting Day Set Voter Id Name Password Voting List Address City Personal Information
Voter
Result Preparation
Result Voting
Candidate View State Wise Cast Vote Party Wise Voter List Validation Nation Wide
Result Voting
Validation
All Voters
Result
State
Address s
Participates
Date
Result
Total vote
DataBase Table
Voter registration
Candidate Details
Form Design
Election details
Source Code
Election Commissioner Home Page Coding
{
Response.Redirect("InsertParty.aspx"); }
#region this method inert the voter registration data into the database public int InsertVoterRegistration(string voterid, string voter_password, string voterretypepassword, string state, string area, string block) { string connectionString = "server=\'(local)\'; trusted_connection=true; database=\'onlinevoting\'"; System.Data.IDbConnection dbConnection = new System.Data.SqlClient.SqlConnection(connectionString);
string queryString = "INSERT INTO [voterregistration] ([voterid], [voter_password], [voterretypepasswor" + "d], [state], [area], [block]) VALUES (@voterid, @voter_password, @voterretypepas" + "sword, @state, @area, @block)"; System.Data.IDbCommand dbCommand = new System.Data.SqlClient.SqlCommand(); dbCommand.CommandText = queryString;
System.Data.IDataParameter dbParam_voterid = new System.Data.SqlClient.SqlParameter(); dbParam_voterid.ParameterName = "@voterid"; dbParam_voterid.Value = voterid; dbParam_voterid.DbType = System.Data.DbType.String; dbCommand.Parameters.Add(dbParam_voterid); System.Data.IDataParameter dbParam_voter_password = new System.Data.SqlClient.SqlParameter(); dbParam_voter_password.ParameterName = "@voter_password"; dbParam_voter_password.Value = voter_password; dbParam_voter_password.DbType = System.Data.DbType.String; dbCommand.Parameters.Add(dbParam_voter_password); System.Data.IDataParameter dbParam_voterretypepassword = new System.Data.SqlClient.SqlParameter(); dbParam_voterretypepassword.ParameterName = "@voterretypepassword"; dbParam_voterretypepassword.Value = voterretypepassword; dbParam_voterretypepassword.DbType = System.Data.DbType.String; dbCommand.Parameters.Add(dbParam_voterretypepassword); System.Data.IDataParameter dbParam_state = new System.Data.SqlClient.SqlParameter(); dbParam_state.ParameterName = "@state"; dbParam_state.Value = state; dbParam_state.DbType = System.Data.DbType.String; dbCommand.Parameters.Add(dbParam_state); System.Data.IDataParameter dbParam_area = new System.Data.SqlClient.SqlParameter();
int NewElectionNumber() { string connectionString = "server=\'(local)\'; trusted_connection=true; database=\'onlinevoting\'"; System.Data.IDbConnection dbConnection = new System.Data.SqlClient.SqlConnection(connectionString);
string queryString = "SELECT max([election_date].[election_no]) FROM [election_date]"; System.Data.IDbCommand dbCommand = new System.Data.SqlClient.SqlCommand(); dbCommand.CommandText = queryString; dbCommand.Connection = dbConnection;
dbConnection.Open();
int InsertElection(int election_no, System.DateTime date, string election_type, string state) { string connectionString = "server=\'(local)\'; trusted_connection=true; database=\'onlinevoting\'"; System.Data.IDbConnection dbConnection = new System.Data.SqlClient.SqlConnection(connectionString);
string queryString = "INSERT INTO [election_date] ([election_no], [date], [election_type], [state]) VAL" + "UES (@election_no, @date, @election_type, @state)";
System.Data.IDataParameter dbParam_election_no = new System.Data.SqlClient.SqlParameter(); dbParam_election_no.ParameterName = "@election_no"; dbParam_election_no.Value = election_no; dbParam_election_no.DbType = System.Data.DbType.Int32; dbCommand.Parameters.Add(dbParam_election_no); System.Data.IDataParameter dbParam_date = new System.Data.SqlClient.SqlParameter(); dbParam_date.ParameterName = "@date"; dbParam_date.Value = date; dbParam_date.DbType = System.Data.DbType.DateTime; dbCommand.Parameters.Add(dbParam_date); System.Data.IDataParameter dbParam_election_type = new System.Data.SqlClient.SqlParameter(); dbParam_election_type.ParameterName = "@election_type"; dbParam_election_type.Value = election_type; dbParam_election_type.DbType = System.Data.DbType.String; dbCommand.Parameters.Add(dbParam_election_type); System.Data.IDataParameter dbParam_state = new System.Data.SqlClient.SqlParameter(); dbParam_state.ParameterName = "@state"; dbParam_state.Value = state;
return rowsAffected; }
System.Data.DataSet ElectionDetails() { string connectionString = "server=\'(local)\'; trusted_connection=true; database=\'onlinevoting\'"; System.Data.IDbConnection dbConnection = new System.Data.SqlClient.SqlConnection(connectionString);
string queryString = "SELECT [election_date].* FROM [election_date] order by date desc"; System.Data.IDbCommand dbCommand = new System.Data.SqlClient.SqlCommand(); dbCommand.CommandText = queryString; dbCommand.Connection = dbConnection;
System.Data.IDbDataAdapter dataAdapter = new System.Data.SqlClient.SqlDataAdapter(); dataAdapter.SelectCommand = dbCommand; System.Data.DataSet dataSet = new System.Data.DataSet(); dataAdapter.Fill(dataSet);
return dataSet; }
</script> <html> <head> </head> <body> <form runat="server"> <uc1:Header id="Header1" runat="server"></uc1:Header> <table style="WIDTH: 550px; HEIGHT: 152px" bgcolor="cornflowerblue" border="3"> <tbody>
  ; &nbs p; </p> </td> </tr> </tbody> </table> <table style="WIDTH: 551px; HEIGHT: 43px" bgcolor="cornflowerblue" border="3">
  ; &nbs p; &nb sp; <asp:Button id="Button1" onclick="Button1_Click" runat="server" Text="Submit"></asp:Button> <asp:Button id="Button2" onclick="Button2_Click" runat="server" Text="View Election Details"></asp:Button>
</p> </td> </tr> </tbody> </table> <!-- Insert content here --> </form> <asp:DataGrid id="DataGrid1" runat="server"></asp:DataGrid> </body> </html>
select vote.election_no,vote.candidate_no,candidate.name,vote.total_vote,party .name as party,candidate.state,candidate.block from vote,party,candidate where (total_vote =(select max(total_vote) from vote where election_no=1)) and (party.name=candidate.party) and (candidate.candidate_no=vote.candidate_no) and (candidate.block in (select distinct(block)from candidate))
SYSTEM ENVIRONMENT
Software Requirements
Operating System Technology Server Side Coding Tool Frame Work Back-end Browser : Windows XP Professional. : ASP.Net.
: C#.Net : .Net Frame Work : : Microsoft SQL Server 2000 Internet Explorer 6.
Hardware Requirement
I. Pentium or AMD processors with speed minimum 1GHz.
II. Minimum 256MB RAM. III. Accelerated Graphics Card. IV. Minimum 2GB Hard Disk. V. Better performance with 82KB and above Cache Memory.
FUTURE ENHANCEMENT
1.It provides easy information about easy information about procedure of online voting system.
CONCLUSION
Generally voting has to be perform by user by going to the voting center. Many users like army personal or NRI cannot come to the voting place.Therefore we have to implement a online voting system by which the users can vote over the online.It will be greatest of advantage for NRI and personWhich are go outside of the country the can vote on online by the by our software only.
BIBLIOGRAPHY
C# and .Net platform by Andrew Troelsen. Inside C# by Tom Archer. Fundamentals of database Systems by Ramez Elmasri ans S. B. Navathe
Software Engineering-Roger S. Pressman An Introduction to database system C.J.Date The Unified modeling language user guideG.Booch,J.Rambough and I Jacobson.