Beruflich Dokumente
Kultur Dokumente
Civil Registry
CIVIL REGISTRY
ABSTRACT
Civil Registry is the online system or agency to help the Indian citizens to apply for their government records like passport, driving license, voters ID card, PAN card etc... And register certificates like birth, death, marriage etc.
The primary objective of this web site is to give awareness about the government or legal documents and its registration details as well as to help to register or apply for those documents. This also acts as a consultancy agency to assist the public. The main purpose of the web site is to reduce the effort by the candidate and save his time and avoid unwanted rushes at the government offices and assure a smooth working schedule at government offices.
The project Civil Registry still requires more development of IT solutions and its applications to improve the issuance of copies of government certificates and legal documents. Civil registry team trying to get more affiliation to government offices and departments. Now civil registry team acting as a agency to help the public.
Project Report
Civil Registry
TABLE OF CONTENTS
CHAPTER 1
TITLE
PAGE NO.
REQUIREMENTS SPECIFICATION 3.1 Introduction 3.2 Hardware and Software specification 3.3 Technologies Used 3.4 Technologies Used 3.5.1 Dotnet 3.5.1.1 Introduction to Dotnet 3.5.1.2 Working of Dotnet 3.5.2 SQL Server 3.5.2.1 Introduction to SQL server 17 17 18 18 18 19 20 20 21
Project Report
Civil Registry
SYSTEM ANALYSIS
DEFINITION
System Analysis is the detailed study of the various operations performed by the system and their relationships within and outside the system. Analysis is the process of breaking something into its parts so that the whole may be understood. System analysis is concerned with becoming aware of the problem, identifying the relevant and most decisional variables, analyzing and synthesizing the various factors and determining an optimal or at least a satisfactory solution. During this a problem is identified, alternate system solutions are studied and recommendations are made about committing the resources used to design the system
To avoid all these limitations and make the working more accurately the system needs to be computerized.
Project Report
Civil Registry
PROPOSED SYSTEM
Civil Registry is aimed at developing a web-based system. In this system the person can register online and do many things. The details of all the things are made available to them through the website.
ADVANTAGES This website provides online help for legal queries. This website helps all the users to view the registration. The user can post thread in the forum. The system is user friendly.
FEASIBILTY STUDY
A feasibility analysis usually involves a through assessment of the operational(need), financial and technical aspects of a proposal. Feasibility study is the test of the system proposal made to identify whether the user needs may be satisfied using the current software and hardware technologies, whether the system will be cost effective from a business point of view and whether it can be developed with the given budgetary constraints. A feasibility study should be relatively cheap and done at the earliest possible time. Depending on the study, the decision is made whether to go ahead with a more detailed analysis.
When a new project is proposed, it normally goes through feasibility assessment. Feasibility study is carried out to determine whether the proposed system is possible to develop with available resources and what should be the cost consideration. Facts considered in the feasibility analysis were.
Project Report
Civil Registry
Technical Feasibility
Technical Feasibility deals with the hardware as well as software requirements. Technology is not a constraint to type system development. We have to find out whether the necessary technology, the proposed equipments have the capacity to hold the data, which is used in the project, should be checked to carry out this technical feasibility. The technical feasibility issues usually raised during the feasibility stage of investigation includes these This software is running in windows 2000 Operating System, which can be easily installed. The hardware required is Pentium based server. The system can be expanded.
Economical Feasibility
This feasibility study present tangible and intangible benefits from the prefect by comparing the development and operational cost. The technique of cost benefit analysis is often used as a basis for assessing economic feasibility. This system needs some more initial investment than the existing system, but it can be justifiable that it will improve quality of service.
Project Report
Civil Registry
Thus feasibility study should center along the following points: Improvement resulting over the existing method in terms of accuracy, timeliness. Cost comparison Estimate on the life expectancy of the hardware Overall objective Our project is economically feasible. It does not require much cost to be involved in the overall process. The overall objectives are in easing out the requirement processes.
SYSTEM DESIGN
DEFINITION
The most creative and challenging face of the system development is System Design. It provides the understanding and procedural details necessary for implementing the system recommended in the feasibility study. Design goes through the logical and physical stages of development.
In designing a new system, the system analyst must have a clear understanding of the objectives, which the design is aiming to fulfill. The first step is to determine how the output is to
Project Report
Civil Registry
be produced and in what format. Second, input data and master files have to be designed to meet the requirements of the proposed output. The operational phases are handled through program construction and testing.
Design of a system can be defined as a process of applying various techniques and principles for the purpose of defining a device, a process or a system in sufficient detail to permit its physical realization. Thus system design is a solution to how to approach to the creation of a new system. Thus important phase provides the understanding and the procedural details necessary for implementing the system recommended in the feasibility study. The design step provides a data design, architectural design, and a procedural design.
OUTPUT DESIGN
In the output design, the emphasis is on producing a hard copy of the information requested or displaying the output on the CRT screen in a predetermined format. Two of the most output media today are printers and the screen. Most users now access their reports from a hard copy or screen display. Computers output is the most important and direct source of information to the user, efficient, logical, output design should improve the systems relations with the user and help in decision-making.
As the outputs are the most important source of information to the user, better design should improve the systems relation and also should help in decision-making. The output devices capability, print capability, print capability, response time requirements etc should also be considered form design elaborates the way output is presented and layout available for capturing information. Its very helpful to produce the clear, accurate and speedy information for end users.
Project Report
Civil Registry
INPUT DESIGN
In the input design, user-oriented inputs are converted into a computer based system format. It also includes determining the record media, method of input, speed of capture and entry on to the screen. Online data entry accepts commands and data through a keyboard. The major approach to input design is the menu and the prompt design. In each alternative, the users options are predefined. The data flow diagram indicates logical data flow, data stores, source and destination. Input data are collected and organized into a group of similar data. Once identified input media are selected for processing.
In this software, importance is given to develop Graphical User Interface (GUI), which is an important factor in developing efficient and user-friendly software. For inputting user data, attractive forms are designed. User can also select desired options from the menu, which provides all possible facilities.
Also the important input format is designed in such a way that accidental errors are avoided. The user has to input only just the minimum data required, which also helps in avoiding the errors that the users may make. Accurate designing of the input format is very important in developing efficient software. The goal or input design is to make entry as easy, logical and free from errors.
Project Report
Civil Registry
SYSTEM SPECIFICATIONS
The requirements specification is a technical specification of requirements for the software products. It is the first step in the requirements analysis process it lists the requirements of a particular software system including functional, performance and security requirements. The requirements also provide usage scenarios from a user, an operational and an administrative perspective. The purpose of software requirements specification is to provide a detailed overview of the software project, its parameters and goals. This describes the project target audience and its user interface, hardware and software requirements. It defines how the client, team and audience see the project and its functionality.
HARDWARE DESCRIPTION
The selection of hardware is very important in the existence and proper working of any software. When selecting hardware, the size and requirements are also important.
Minimum Requirements: Processor RAM Hard Disk Drive Video CD-ROM : : : : : Pentium II class, 450MHz 128MB 3GB 800X600, 256 colors Required
Project Report
Civil Registry
SOFTWARE DESCRIPTION
Operating System Front- End Back- End : : : Windows XP C#. NET with ASP.NET ORACLE CLIENT
10
Project Report
Civil Registry
ASP.NET
ASP.NET is a set of Microsoft.NET framework technologies used for building web applications and XML Web services. ASP.NET page execute on the server and generate mark up such as HTML, WML or XML that is sent to a desktop or mobile browser. ASP.NET pages use a compiled, event-driven programming model that improves performance and enables the separation of application logic and user interface. Both ASP.NET pages and ASP.NET web services files contain server-side (as opposed to client side logic) written in Visual basic .NET, C#.NET or any .NET compatible language, Web applications and XML Web Services take advantage of the features of the common language runtime, such as type safety, inheritance, language, interoperability, versioning, and integrated security.
11
Project Report
Civil Registry
The .NET Framework programming model that enables developers to build Webbased applications which expose their functionality programmatically over a network using standard protocols such as SOAP and HTTP. Developer tools such as Microsoft Visual Studio .NET, which provide a rapid application integrated development environment for programming with the .NET Framework. A set of servers including Microsoft Windows 2000, Microsoft SQL, Server and Microsoft BizTalk Server that integrates, runs, operates and manages XML Web services and applications. Client software such as Windows XP, Windows CE and Microsoft Office XP that helps developers deliver a deep and compelling user experience across a family of devices and existing products.
12
Project Report
Civil Registry
logic code for their applications. The .NET Framework includes the common language runtime and class libraries.
13
Project Report
Civil Registry
To provide a code execution environment that guarantees safe execution of code, including code created by an unknown or semi trusted third party.
To provide a code execution environment that eliminates the performance problem of scripted or interpreted environments.
To make the developer experience consistent across widely types of application, such as windows based applications and web based applications.
To build all communication on industry standards to ensure that code based on the .NET framework can integrate with any other code. The .NET framework has two main components: the common language runtime and
the .Net framework class library. The common language runtime is the foundation of the .NET framework. You can think of the runtime as an agent that manages code at execution time, and remoting while also enforcing strict type safely and other forms of code accuracy that ensure security and robustness in fact the concept of code management is a fundamental principle of the runtime. Code that targets the runtime is known as managed code, while code that does not target the runtime is known as un managed code. The class library, the other main component of the .NET frameworks is a comprehensive, object-oriented collection reusable types that you can use to develop applications ranging from traditional command line or graphical user interface (FGUI) applications to application base d on the latest innovations provided by ASP.NET, such as web forms and XML web services. The .NET framework can be hosted by unmanaged component that load the common language runtime into their processes and initiate the execution of managed code. ASP.NET works directly with the runtime to enable ASP.NET application and XML web services, both of which are discussed later in this topic, Internet explorer is an example of unmanaged application that hosts the runtime (in the form of a MIME type extension). Using internet explorer to the host runtime enables you to embed managed components or windows forms controls in HTML
14
Project Report
Civil Registry
documents. Hosting the runtime in this way makes mobile code 9similar to Microsoft Active Xr controls) possible, but with significant improvement that only managed code can offer, such as semi-trusted execution and secure isolated file storage. The following illustration shows the relationship of the common language runtime and the class library to your application and to the over all system. The illustration also shows how managed code operated with in a larger architecture. We can use the .NET framework to develop the following types of application and services: Console applications Window GUI application (Windows Forms) ASP.NET applications XML Web services Windows services
15
Project Report
Civil Registry
C# (pronounced "see sharp") is a multi-paradigm, object-oriented programming language encompassing strong typing, essential, declarative, efficient, class-based, and componentoriented programming disciplines. C# is one of the programming languages designed for the Common Language Infrastructure. C# is a well-designed and type-safe that allows C Sharp developers to build a wide array of secure and robust applications that run on the .NET Framework. C# is intended to be a simple, modern, general-purpose, object-oriented programming language. Its development team is led by Anders Hejlsberg. The most recent version is C# 4.0, which was released on April 12, 2010.
Features of C# (C Sharp)
C# language is projected to be a simple, modern, general-purpose, object-oriented programming language . C# helps you to import a namespace and use the classes in a componentno COM plumbing or registry lookups required. C# supports XML comments to add comments to code. The comments are placed into XML format and can then be used as needed to document your code. C# simplifies the syntax to be more constant and more rational while also eliminating some of the more difficult features of C++. C# provides operator overloading which is not available in VB.NET.C# allows you to access memory directly using unsafe code blocks.
C# allows you to implement an interface in a base class and re-implement the interface in the derived class and provide a new definition for it C# permits nested classes which are not allowed in C and C++. C# establishes better event management using delegates and supports conditional compilation & cross-language interoperability with any .NET language. C# is based on reflection mechanism which is biggest advantage of C#.
16
Project Report
Civil Registry
BACK END USED Introduction to Oracle The Oracle Database (commonly referred to as Oracle RDBMS or simply as Oracle) is an object-relational database management system produced and marketed by Oracle Corporation. Larry Ellison and his friends, former co-workers Bob Miner and Ed Oates, started the consultancy Software Development Laboratories (SDL) in 1977. SDL developed the original version of the Oracle software. The name Oracle comes from the code-name of a CIA-funded project Ellison had worked on while previously employed by Ampex .
17
Project Report
Civil Registry
LOGICAL DESIGN
Logical data design is about the logically implied data. Each and every data in the form can be designed in such a manner to understand the meaning. Logical data designing should give a clear understanding and idea about the related data used to construct a form.
Four basic symbols are used to construct data flow diagrams. They are symbols that represent data source, data flows, and data transformations and data storage. The points at which data are transformed are represented by enclosed figures, usually circles, which are called nodes.
Data Flow
18
Project Report
Civil Registry
Process
Storage
Four steps are commonly used to construct a DFD Process should be named and numbered for easy reference. Each name should be representative of the process. The destination of flow is from top to bottom and from left to right. When a process is exploded in to lower level details they are numbered. The names of data stores, sources and destinations are written in capital letters.
Rules for constructing a Data Flow Diagram Arrows should not cross each other. Squares, circles and files must bear names. Decomposed data flow squares and circles can have same names. Draw all data flow around the outside of the diagram.
19
Project Report
Civil Registry
CONTEXT DIAGRAM
User
User Details View Details Online Civil Registry System View Details Manage Administrator
Visitor
View Details
Office Management
Updating
20
Project Report
Civil Registry
Details Database
Login
Office Files Verifications & Approvals Civil Registry System Overall Control
User
Managing
21
Project Report
Civil Registry
User Login Details Login Add Details Login Name Change Registration Time Office Management Add Details Pan card apply
Pan Files
Reg: Details Marriage Registration Help Desk Passport Registration Help Desk Files Name, Place
Marriage Files
Passport File
22
Project Report
Civil Registry
Visitor View Details Advertisements Adding Details Civil Registry System Ads Details Posting Ads Help Desk Files
Feedback Enquires Marriage Registration, Passport Registration Registrations Reg: Details Office Files Help Desk
23
Project Report
Civil Registry
TABLE SPECIFICATIONS
Table Name: Registration Primary Key: Username Field name First name Last name User name Password Email location Data type Varchar Varchar Varchar Varchar Varchar Varchar Size 50 50 50 50 50 50
Table Name: Login Field Name Username Password Table Name: Feedback Field Name Name Designation Company Area of work Address City State Country Pin Email Telephone Fax Queries Data Type Varchar Varchar Varchar Varchar Varchar Varchar Varchar Varchar Varchar Varchar Varchar Varchar Varchar Size 50 50 50 100 50 50 50 50 50 50 50 50 50 Data Type varchar Varchar Size 50 100
24
Project Report
Civil Registry
Table Name: Marriage Field Name Date of registration Bridegroomname Bride name Bridegroom father name Brides father name Bridegroom date of birth Bride date of birth Bridegroom present addr Bride present addr Bridegroom permanent addr Bride permanent addr
Bridegroom voter no Bride voter no Bridegroom marital status Bride marital status Date of marriage Place of marriage
Data Type Date/Time Varchar Varchar Varchar Varchar Date/Time Date/Time Varchar Varchar Varchar Varchar
Varchar Varchar Varchar Varchar Date/Time Varchar
Size 50 50 100 50 50 50 50 50 50 50 50
50 50 50 50 50 50
Table Name: Name Change Field Name Title PAN No Name New title New name New nationality New status Permanent Account New Address State Country Proof Data Type Varchar int Varchar Varchar Varchar Varchar Varchar Varchar Varchar Varchar Varchar Varchar Size 50 50 50 200 50 100 100 100 100 50 50 50
25
Project Report
Civil Registry
Field Name Fee Cash /DD Bank code DD No Date of issue of DD Name of applicant Changed name Sex Date of birth Place of birth Father name Mother name Spouse name Present addr Date since residing Per addr Email File no Date of application Place of application Education qualification Profession Visible mark Height Working in central or state govt Citizen of india Emigration checkout Elligible category Mother file no Mother date of issue Mother place of issue Father file no Father date of issue Father place of issue
Data Type Varchar Varchar Varchar Varchar Date/Time Varchar Varchar Varchar Date/Time Varchar Varchar Varchar Varchar Varchar Date/Time Varchar Varchar Varchar Date/Time Varchar Varchar Varchar Varchar Varchar Varchar Varchar Varchar Varchar Varchar Date/Time Varchar Varchar Date/Time Varchar
Size 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50
26
Project Report
Civil Registry
Table Name :Ration Card Field name S No Name of applicant Fathers name Present addr Permanent addr Occupation Name of employer Adults Minor Electrolno Trading liscence Lpg consumer Name 1 Age 1 Sex 1 Relationship1 Name2 Age2 Sex2 Relationship2 Name3 Age3 Sex3 Relationship3 Name4 Age4 Sex4 Relationship4 Name5 Age5 Sex Relationship5 Data type int Varchar Varchar Varchar Varchar Varchar Varchar Varchar Varchar Varchar Varchar Varchar Varchar Int Varchar Varchar Varchar Int Varchar Varchar Varchar Int Varchar Varchar Varchar Int Varchar Varchar Varchar Int Varchar Varchar Size 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50
27
Project Report
Civil Registry
Table Name: Telephone apply Field name Company/organization Name of customer/comp Name of joint application Name of nominee Relationship Name of father/hus/partner PAN No Working telephone No Nearest teleph No Postal addr Pin code Billing addr Email Facilities required Telephone instrument Payment mode Payment details Table Name: Pan Card Data type Varchar Varchar Varchar Varchar Varchar Varchar Int Int Int Varchar Int Varchar Varchar Varchar Varchar Varchar Varchar Size 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50
Field name Name Card name Father name Address Office Address Gender State of Applicant DOB Citizen Representative add
Data type Varchar Varchar Varchar Varchar Varchar Varchar Varchar Int Varchar Varchar
Size 50 50 50 50 50 50 50 50 50 50
28
Project Report
Civil Registry
SOURCE CODE
Account.aspx using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using System.Data.OracleClient; namespace WebApplication4 { public partial class account : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } private bool Validate() { if (txtConfirmPass.Text.Trim() == "") { return false; } if (txtEmail.Text.Trim() == "") { return false; } if (txtFname.Text.Trim() == "") { return false; } if (txtLname.Text.Trim() == "") { return false; } if (txtLocation.Text.Trim() == "") { return false;
29
Project Report
Civil Registry
} if (txtLoginName.Text.Trim() == "") { return false; } if (txtPass.Text.Trim() == "") { return false; } return true; } protected void btnReg_Click(object sender, EventArgs e) { if (Validate()) { try { string sql = "INSERT INTO ACCOUNT VALUES (:Fname,:Lname,:Email,:LoginName,:Pass:,Location,:)"; string strconn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnectionString"].Connectio nString; using (OracleConnection conn = new OracleConnection(strconn)) { conn.Open(); using (OracleCommand cmd = new OracleCommand(sql, conn)) { cmd.Parameters.AddWithValue(":Fname", Convert.ToString(txtFname.Text)); cmd.Parameters.AddWithValue(":Lname", Convert.ToString(txtLname.Text)); cmd.Parameters.AddWithValue(":LoginName", Convert.ToString(txtLoginName.Text)); cmd.Parameters.AddWithValue(":pass", Convert.ToString(txtPass.Text)); cmd.Parameters.AddWithValue(":Email", Convert.ToString(txtEmail.Text)); cmd.Parameters.AddWithValue(":Location", Convert.ToString(txtLocation.Text)); cmd.ExecuteNonQuery(); Label10.Text = "Your account created successfully!!!"; lblMsg.Visible = true; lblAvail.Visible = false; }} catch (Exception ex) {
30
Project Report
Civil Registry
}} else { Label10.Text = "Missing Fields Please check !!!"; lblMsg.Visible = true; lblAvail.Visible = false; }} protected void btnReset_Click(object sender, EventArgs e) { txtConfirmPass.Text = ""; txtEmail.Text = ""; txtFname.Text = ""; txtLname.Text = ""; txtLocation.Text = ""; txtLoginName.Text = ""; txtPass.Text = ""; lblAvail.Visible = false; lblMsg.Visible = false; } protected void btnChkAvailable_Click(object sender, EventArgs e) { try { string sql = "SELECT * FROM ACCOUNT WHERE LoginName='" + txtLoginName.Text + "'"; string strconn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnectionString"].Connectio nString; using (OracleConnection conn = new OracleConnection(strconn)) { conn.Open(); using (OracleCommand cmd = new OracleCommand(sql, conn)) using (IDataReader dataReader = cmd.ExecuteReader()) if (dataReader.Read()) { lblAvail.Text = "Please Select another name!"; lblAvail.Visible = true; } else
31
Project Report
Civil Registry
{ lblAvail.Text = "Not Available, You can continue with this name"; lblAvail.Visible = true; btnReg.Enabled = true; } } } catch (Exception ex) { } } } }
Login.aspx
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using System.Data.OracleClient; using System.Web.Configuration; using WebApplication4; namespace WebApplication4 { public partial class login : System.Web.UI.Page { public void Page_Load(object sender, EventArgs e) { } private bool validate() { if (txtpassword.Text.Trim() == "")
32
Project Report
Civil Registry
{ return false; } if (txtuser.Text.Trim() == "") { return false; } return true; } public bool LoginCheck(string userName, string password) { try { string sql = "SELECT * FROM ACCOUNT Where LOGINNAME= :userName and PASSWORD= :password"; string strconn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnectionString"].Connectio nString; using (OracleConnection conn = new OracleConnection(strconn)) { conn.Open(); using (OracleCommand cmd = new OracleCommand(sql, conn)) { cmd.Parameters.AddWithValue(":userName", userName); cmd.Parameters.AddWithValue(":password", password); using (IDataReader dataReader = cmd.ExecuteReader()) { if (dataReader.Read()) { return true; } } } } } catch (Exception ex) { } return true; }
33
Project Report
Civil Registry
public void bt_submit_Click1(object sender, EventArgs e) { if (validate()) { string str1, str2; str1 = Convert.ToString(txtuser.Text); str2 = Convert.ToString(txtpassword.Text); if (LoginCheck(str1, str2)) { Response.Redirect("~/registration.aspx" );//+ Server.HtmlEncode(str1)); } } else { lblmsg.Text = "missing fields"; } } } }
Pan.aspx
using System; using System.Data; using System.Data.OracleClient; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace WebApplication4 { public partial class pan : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { //Label myLabel = this.FindControl("Label1") as Label; //if (myLabel != null) // myLabel.Text = Request["ltxt"]; }
34
Project Report
Civil Registry
protected string DOBcon(String s) { string[] mo = { "JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JULY", "AUG", "SEP", "OCT", "NOV", "DEC" }; string temp = s.Substring(0, 3); int t = Convert.ToInt16(s.Substring(3, 2)); return temp + mo[t - 1] + s.Substring(5); }
private bool Validate() { if (txtname.Text.Trim() == "") { return false; } if (txtCardname.Text.Trim() == "") { return false; } if (txtFname.Text.Trim() == "") { return false; } if (txtAddress.Text.Trim() == "") { return false; } if (txtOffAddress.Text.Trim() == "") { return false; } if (txtRegNo.Text.Trim() == "") { return false; } if (txtAddressRep.Text.Trim() == "") { return false; } if (drpsex.SelectedIndex == -1)
35
Project Report
Civil Registry
{ return false; } if (drpStat.SelectedIndex == -1) { return false; } if (drpCitizen.SelectedIndex == -1) { return false; } return true; } protected void btnReg_Click(object sender, System.EventArgs e) { if (Validate()) { string s = ""; try { string sql = "INSERT INTO TBLPANCARD VALUES (:NAME , :PRINTINCARD, :FATHERS_NAME, :ADDRESS1, :ADDRESS2, :SEX,:TYPE,:DOB,:REGNO,:CITIZEN,:ADDRESSREP)"; string strconn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnectionString"].Connectio nString; using (OracleConnection conn = new OracleConnection(strconn)) { conn.Open(); using (OracleCommand cmd = new OracleCommand(sql, conn)) { s = DOBcon(Request["dob"]); cmd.Parameters.AddWithValue(":NAME", Convert.ToString(txtname.Text)); cmd.Parameters.AddWithValue(":PRINTINCARD", Convert.ToString(txtCardname.Text)); cmd.Parameters.AddWithValue(":FATHERS_NAME", Convert.ToString(txtFname.Text)); cmd.Parameters.AddWithValue(":ADDRESS1", Convert.ToString(txtAddress.Text));
36
Project Report
Civil Registry
cmd.Parameters.AddWithValue(":ADDRESS2", Convert.ToString(txtOffAddress.Text)); cmd.Parameters.AddWithValue(":SEX", Convert.ToString(drpsex.SelectedValue)); cmd.Parameters.AddWithValue(":TYPE", Convert.ToString(drpStat.SelectedValue)); cmd.Parameters.AddWithValue(":DOB", s); cmd.Parameters.AddWithValue(":REGNO", Convert.ToString(txtRegNo.Text)); cmd.Parameters.AddWithValue(":CITIZEN", Convert.ToString(drpCitizen.Text)); cmd.Parameters.AddWithValue(":ADDRESSREP", Convert.ToString(txtAddressRep.Text)); cmd.ExecuteNonQuery(); } conn.Close(); Label13.Text = "Successfully registered!!!!"; } } catch (Exception ex) { } } else { Label13.Text = "Some Problm in your input data"; } } protected void btnReset_Click(object sender, EventArgs e) { Label13.Text = ""; txtAddress.Text = ""; txtAddressRep.Text = ""; txtCardname.Text = ""; txtFname.Text = ""; txtname.Text = ""; txtOffAddress.Text = ""; txtRegNo.Text = ""; drpCitizen.SelectedIndex = 0;
37
Project Report
Civil Registry
drpsex.SelectedIndex = 0; drpStat.SelectedIndex = 0; } } }
Namechange.aspx
using System; using System.Data; using System.Data.OracleClient; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace WebApplication4 { public partial class namechange : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { //Label myLabel = this.FindControl("Label1") as Label; //if (myLabel != null) // myLabel.Text = Request["ltxt"]; } private bool validate() { if (txnewna.Text.Trim() == "") { return false; } if (txt_country.Text.Trim() == "") { return false; } if (txtdif.Text.Trim() == "") { return false; } if (txtemail.Text.Trim() == "") {
38
Project Report
Civil Registry
return false; } if (txtmob.Text.Trim() == "") { return false; } if (txtna.Text.Trim() == "") { return false; } if (txtnewadd.Text.Trim() == "") { return false; } if (txtpan.Text.Trim() == "") { return false; } if (txtpan2.Text.Trim() == "") { return false; } if (txtres.Text.Trim() == "") { return false; } if (txtstate.Text.Trim() == "") { return false; } if (txttel.Text.Trim() == "") { return false; } if (drop_addition.SelectedIndex == -1) { return false; } if (drop_address.SelectedIndex == -1) { return false; }
39
Project Report
Civil Registry
if (drop_income.SelectedIndex == -1) { return false; } if (drop_nation.SelectedIndex == -1) { return false; } if (drop_occu.SelectedIndex == -1) { return false; } if (drop_status.SelectedIndex == -1) { return false; } if (drop_title.SelectedIndex == -1) { return false; } if (DropDownList2.SelectedIndex == -1) { return false; } return true; }
protected void btnsub_Click1(object sender, EventArgs e) { if (validate()) { try { string sql = "INSERT INTO TBLNAMECHANGE VALUES (:newna , :country, :diff,:email, :mob, :na,:newadd,:pan,:pan2,:res,:state,:tel)"; string strconn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnectionString"].Connectio nString; using (OracleConnection conn = new OracleConnection(strconn)) { conn.Open();
40
Project Report
Civil Registry
using (OracleCommand cmd = new OracleCommand(sql, conn)) { cmd.Parameters.AddWithValue(":newna", Convert.ToString(txnewna.Text)); cmd.Parameters.AddWithValue(":country", Convert.ToString(txt_country.Text)); cmd.Parameters.AddWithValue(":diff", Convert.ToString(txtdif.Text)); cmd.Parameters.AddWithValue(":email", Convert.ToString(txtemail.Text)); cmd.Parameters.AddWithValue(":mob", Convert.ToString(txtmob.Text)); cmd.Parameters.AddWithValue(":na", Convert.ToString(txtna.Text)); cmd.Parameters.AddWithValue(":newadd", Convert.ToString(txtnewadd.Text)); cmd.Parameters.AddWithValue(":pan", Convert.ToString(txtpan.Text)); cmd.Parameters.AddWithValue(":pan2", Convert.ToString(txtpan2.Text)); cmd.Parameters.AddWithValue(":res", Convert.ToString(txtres.Text)); cmd.Parameters.AddWithValue(":state", Convert.ToString(txtstate.Text)); cmd.Parameters.AddWithValue(":tel", Convert.ToString(txttel.Text)); cmd.ExecuteNonQuery(); } conn.Close(); Labelshow.Text = "Successfully Registered!!!"; } } catch (Exception ex) { } } else { Labelshow.Text = "Missing Fields!!"; }
} protected void btnres_Click(object sender, EventArgs e) { txnewna.Text = ""; txt_country.Text = ""; txtdif.Text = ""; txtemail.Text = ""; txtmob.Text = ""; txtna.Text = "";
41
Project Report
Civil Registry
txtnewadd.Text = ""; txtpan.Text = ""; txtpan2.Text = ""; txtres.Text = ""; txtstate.Text = ""; txttel.Text = ""; drop_addition.SelectedIndex = 0; drop_address.SelectedIndex = 0; drop_income.SelectedIndex = 0; drop_nation.SelectedIndex = 0; drop_occu.SelectedIndex = 0; drop_status.SelectedIndex = 0; drop_title.SelectedIndex = 0; DropDownList2.SelectedIndex = 0; } } }
Namechange.aspx
using System; using System.Data; using System.Data.OracleClient; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace WebApplication4 { public partial class namechange : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { //Label myLabel = this.FindControl("Label1") as Label; //if (myLabel != null) // myLabel.Text = Request["ltxt"]; } private bool validate() { if (txnewna.Text.Trim() == "")
42
Project Report
Civil Registry
{ return false; } if (txt_country.Text.Trim() == "") { return false; } if (txtdif.Text.Trim() == "") { return false; } if (txtemail.Text.Trim() == "") { return false; } if (txtmob.Text.Trim() == "") { return false; } if (txtna.Text.Trim() == "") { return false; } if (txtnewadd.Text.Trim() == "") { return false; } if (txtpan.Text.Trim() == "") { return false; } if (txtpan2.Text.Trim() == "") { return false; } if (txtres.Text.Trim() == "") { return false; } if (txtstate.Text.Trim() == "") { return false;
43
Project Report
Civil Registry
} if (txttel.Text.Trim() == "") { return false; } if (drop_addition.SelectedIndex == -1) { return false; } if (drop_address.SelectedIndex == -1) { return false; } if (drop_income.SelectedIndex == -1) { return false; } if (drop_nation.SelectedIndex == -1) { return false; } if (drop_occu.SelectedIndex == -1) { return false; } if (drop_status.SelectedIndex == -1) { return false; } if (drop_title.SelectedIndex == -1) { return false; } if (DropDownList2.SelectedIndex == -1) { return false; } return true; }
44
Project Report
Civil Registry
if (validate()) { try { string sql = "INSERT INTO TBLNAMECHANGE VALUES (:newna , :country, :diff,:email, :mob, :na,:newadd,:pan,:pan2,:res,:state,:tel)"; string strconn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnectionString"].Connectio nString; using (OracleConnection conn = new OracleConnection(strconn)) { conn.Open(); using (OracleCommand cmd = new OracleCommand(sql, conn)) { cmd.Parameters.AddWithValue(":newna", Convert.ToString(txnewna.Text)); cmd.Parameters.AddWithValue(":country", Convert.ToString(txt_country.Text)); cmd.Parameters.AddWithValue(":diff", Convert.ToString(txtdif.Text)); cmd.Parameters.AddWithValue(":email", Convert.ToString(txtemail.Text)); cmd.Parameters.AddWithValue(":mob", Convert.ToString(txtmob.Text)); cmd.Parameters.AddWithValue(":na", Convert.ToString(txtna.Text)); cmd.Parameters.AddWithValue(":newadd", Convert.ToString(txtnewadd.Text)); cmd.Parameters.AddWithValue(":pan", Convert.ToString(txtpan.Text)); cmd.Parameters.AddWithValue(":pan2", Convert.ToString(txtpan2.Text)); cmd.Parameters.AddWithValue(":res", Convert.ToString(txtres.Text)); cmd.Parameters.AddWithValue(":state", Convert.ToString(txtstate.Text)); cmd.Parameters.AddWithValue(":tel", Convert.ToString(txttel.Text)); cmd.ExecuteNonQuery(); } conn.Close(); Labelshow.Text = "Successfully Registered!!!"; } } catch (Exception ex) { } } else { Labelshow.Text = "Missing Fields!!";
45
Project Report
Civil Registry
} } protected void btnres_Click(object sender, EventArgs e) { txnewna.Text = ""; txt_country.Text = ""; txtdif.Text = ""; txtemail.Text = ""; txtmob.Text = ""; txtna.Text = ""; txtnewadd.Text = ""; txtpan.Text = ""; txtpan2.Text = ""; txtres.Text = ""; txtstate.Text = ""; txttel.Text = ""; drop_addition.SelectedIndex = 0; drop_address.SelectedIndex = 0; drop_income.SelectedIndex = 0; drop_nation.SelectedIndex = 0; drop_occu.SelectedIndex = 0; drop_status.SelectedIndex = 0; drop_title.SelectedIndex = 0; DropDownList2.SelectedIndex = 0; } } }
Feedback.aspx
using System; using System.Data; using System.Data.OracleClient; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace WebApplication4 { public partial class feedback : System.Web.UI.Page
46
Project Report
Civil Registry
{ protected void Page_Load(object sender, EventArgs e) { } private bool validate() { if(txtadr.Text.Trim()=="") { return false; } if(txtarea.Text.Trim()=="") { return false; } if(txtcity.Text.Trim()=="") { return false; } if(txtcomp.Text.Trim()=="") { return false; } if(txtcon.Text.Trim()=="") { return false; } if(txtdes.Text.Trim()=="") { return false; } if(txtmail.Text.Trim()=="") { return false; } if(txtnafed.Text.Trim()=="") { return false; } if(txtpin.Text.Trim()=="") { return false; }
47
Project Report
Civil Registry
if(txtquery.Text.Trim()=="") { return false; } if(txtstate.Text.Trim()=="") { return false; } if(txttel.Text.Trim()=="") { return false; } if(txtfax.Text.Trim()=="") { return false; } return true; } protected void btnSubmit_Click(object sender, EventArgs e) { if (validate()) { try { string sql = "INSERT INTO TBLFEEDBACK VALUES (:name, :design, :company,:area, :address, :city,:state,:country,:pin,:email,:phone,:fax,:query)"; string strconn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnectionString"].Connectio nString; using (OracleConnection conn = new OracleConnection(strconn)) { conn.Open(); using (OracleCommand cmd = new OracleCommand(sql, conn)) { cmd.Parameters.AddWithValue(":name", Convert.ToString(txtnafed.Text)); cmd.Parameters.AddWithValue(":design", Convert.ToString(txtdes.Text)); cmd.Parameters.AddWithValue(":company", Convert.ToString(txtcomp.Text)); cmd.Parameters.AddWithValue(":area", Convert.ToString(txtarea.Text));
48
Project Report
Civil Registry
cmd.Parameters.AddWithValue(":address", Convert.ToString(txtadr.Text)); cmd.Parameters.AddWithValue(":city", Convert.ToString(txtcity.Text)); cmd.Parameters.AddWithValue(":state", Convert.ToString(txtstate.Text)); cmd.Parameters.AddWithValue(":country", Convert.ToString(txtcon.Text)); cmd.Parameters.AddWithValue(":pin", Convert.ToString(txtpin.Text)); cmd.Parameters.AddWithValue(":email", Convert.ToString(txtmail.Text)); cmd.Parameters.AddWithValue(":phone", Convert.ToString(txttel.Text)); cmd.Parameters.AddWithValue(":fax", Convert.ToString(txtfax.Text)); cmd.Parameters.AddWithValue(":query", Convert.ToString(txtquery.Text)); cmd.ExecuteNonQuery(); } conn.Close(); lblmsg.Text = "Your Feedback Posted Successfully!!!"; } } catch (Exception ex) { } } else { lblmsg.Text = "You are missing some fields!!!"; } } protected void reset_Click(object sender, EventArgs e) { txtadr.Text = ""; txtarea.Text = ""; txtcity.Text = ""; txtcomp.Text = ""; txtcon.Text = ""; txtdes.Text = ""; txtfax.Text = ""; txtmail.Text = ""; txtnafed.Text = ""; txtpin.Text = ""; txtquery.Text = ""; txtstate.Text = ""; txttel.Text = ""; } }}
49
Project Report
Civil Registry
Mailer.aspx
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using System.Data.OracleClient; namespace WebApplication4 { public partial class mailer : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { //Label myLabel = this.FindControl("Label1") as Label; //if (myLabel != null) // myLabel.Text = Request["ltxt"]; } protected void btnSendmail_Click(object sender, ImageClickEventArgs e) { try { string sql = "INSERT INTO TBLMAIL VALUES (:ETO , :EBCC, :EFROM, :ESUB, :EEMSG,:EATTACH)"; string strconn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnectionString"].Connectio nString; using (OracleConnection conn = new OracleConnection(strconn)) { conn.Open(); using (OracleCommand cmd = new OracleCommand(sql, conn)) { cmd.Parameters.AddWithValue(":ETO", Convert.ToString(txtToAddress.Text)); cmd.Parameters.AddWithValue(":FATHERS_NAME", Convert.ToString(txtBCC.Text)); cmd.Parameters.AddWithValue(":ADDRESS1", Convert.ToString(txtFromAddress.Text));
50
Project Report
Civil Registry
cmd.Parameters.AddWithValue(":ADDRESS2", Convert.ToString(txtSubject.Text)); cmd.ExecuteNonQuery(); } conn.Close(); labelshow.Text="Your Mail Successfully Sned!!"; } } catch(Exception ex) { } } }
Admin.aspx
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace WebApplication4 { public partial class adminlogin : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void Login1_Authenticate(object sender, AuthenticateEventArgs e) { if (Login1.UserName == "admin" && Login1.Password == "321") { Session["admin"] = "admin"; Response.Redirect("admin.aspx"); } else { Response.Write("Invalid ID"); } }}
51
Project Report
Civil Registry
SCREEN SHOTS
HOME PAGE
LOGIN PAGE
52
Civil Registry
TELEPHONE
53
Civil Registry
PAN CARD
54
Civil Registry
MARRIAGE REGISTRATION
55
Civil Registry
RATION CARD
56
Project Report
Civil Registry
57