Sie sind auf Seite 1von 57

Project Report

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.

INTRODUCTION 1.1 About the Project 15

SYSTEM ANALYSIS 2.1 Existing system 2.2 Proposed system 16 16

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

DESCRIPTION OF PRESENT SYSTEM


Existing system refers to the system that is being follow till now. Presently all the registrations are done manually. If a person wants to make registrations like birth, death, marriage etc he should directly contact the corresponding office. The main disadvantage is that there will be lot of difficulties for the citizens. So, all these procedures will be a time consuming one.

LIMITATIONS OF PRESENT SYSTEM


Difficult for persons. Time consuming.

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 Economic Feasibility Behavioral Feasibility

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.

Behavioral/ Operational Feasibility


This analysis involves how it will work when it is installed and the assessment of political and managerial environment in which it is implemented. People are inherently resistant to change and computers have been known to facilitate change. The new proposed system is very much useful to the useful to the users and there for it will accept broad audience from around the world.

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

The proposed System is developed on:


Processor RAM Hard Disk Drive Key Board Monitor Display Adapter Network Adapter Mouse : : : : : : : : INTEL Pentium 4 512MB 40GB Standard 101/102 or Digi Sync Family Display Panel (1024 X 764) Trident Super VGA SMC Ethernet Card Elite 16 Ultra Logitech Serial Mouse

SOFTWARE DESCRIPTION
Operating System Front- End Back- End : : : Windows XP C#. NET with ASP.NET ORACLE CLIENT

10

Project Report

Civil Registry

OVERVIEW OF THE LANGUAGE USED


Project will be done in ASP. NET with C# 2.0 as front end and Oracle client as back end. Microsoft .NET is software that connects information, people, systems and devices. It spans clients, servers and developer tools and consists of:

FRONT END USED MICROSOFT VISUAL STUDIO


Microsoft Visual Studio is Microsofts flagship software development product for computer programmers. It centers on an integrated distribution environment which has programmers create stand alone, and web services that run on any platforms supported by Microsofts .Net Framework (for all versions after 6). Supported platforms include Microsoft windows, servers and workstations, Pocket PC, Smart Phones and World Wide Web browsers not the Java Virtual Machine that all other java tools target.

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.

IIS- Internet Information Service


Microsoft Internet Information S4ervices (IIS; formerly called Server is a set of Internet-based services for servers using Microsoft Windows. It is the worlds second most popular web server in terms of overall websites. As of September 2007 it served 34.94% of all websites and 36.63% of all active websites according to Net craft. HTTP/HTTPS . The .NET Framework is the programming model of the .NET environment for building, deploying and running Web- based applications, smart client applications and XML Web services. It manages much of the plumbing, enabling developers to focus on writing the business The servers currently include FTP, SMTP, NNTOP, and

12

Project Report

Civil Registry

logic code for their applications. The .NET Framework includes the common language runtime and class libraries.

NET FRAMEWORK SDK


The .NET framework is an integral windows component that supports building and running the next generation of applications and XML web services. The key component of the .NET frame work are the common language run time and the . NET frame work class library, which includes ADO.NET, ASP.NET and windows forms. The .NET framework provides a managed execution environment simplified development and deployment and integration with a wide variety of programming languages. This framework is made up of the following parts: The common language runtime(CLR) The base class libraries. Object oriented internet development with ASP.NET Rich client user interface using windows forms RAD for the internet using web forms

OVERVIEW OF THE .NET FRAME WORK


The .NET framework is a new computing platform that simplifies application development in the highly distributed environment of the internet. The .NET framework is designed to fulfill following objectives: To provide a consistent object oriented programming environment whether object code is stored and executed locally but internet- distributed or executed remotely. To provide a code execution environment that minimizes software deployment and versioning conflicts.

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

COMMON LANGUAGE RUNTIME (CLR)


The common language runtime (CLR) is responsible for runt-time services such as language integration; security enforcement; and memory, process and thread management. In addition, it has a roll at development time when features such as life cycle management strong type naming, cross-language exception handling, dynamic binding and so on, reduce the amount of code that a developer must write to turn the business logic the reusable component. The runtime can be hosted by high performance, server-side applications, such a s Microsoft Internet Information Services (IIS) for building web applications with ASP.NE and the next release of Microsoft SQL Server. This infrastructure enables you to use code managed by the .NET framework to write your business logic, while still enjoying the superior performance of the industrys best enterprises servers that support runtime hosting.

Introduction for C-Sharp

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.

DATA FLOW DIAGRAM


A Data Flow Diagram (DFD) is a diagram that describes the flow of data and the processes that change data throughout a system. Its a structured analysis and design tool that can be used for flowcharting in place of or in association with information. Oriented and process oriented system flowcharts. When analysts prepare the Data Flow Diagram, they specify the user needs at a level of detail that virtually determines the information flow into and out of the system and the required data resources. This network is constructed by using a set of symbols that do not imply physical implementations. The Data Flow Diagram reviews the current physical system, prepares input and output specification, specifies the implementation plan etc.

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 DIAGRAM SYMBOLS:-

Source or Destination of data

Data Flow

18

Project Report

Civil Registry

Process

Storage

Steps to Construct Data Flow Diagrams

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

Level 1 DFD- User

Details Login Confirmation Validation Login

Office Management

User name, Password User

Updating

Office Files User Details Add Details Registration Registration

20

Project Report

Civil Registry

Level 1 DFD- Visitor

Enquires Visitor View Details

Civil Registry System

Details Database

Level 1 DFD- Administrator

Administrator Login Details Login

Login

Office Files Verifications & Approvals Civil Registry System Overall Control

Office Management Visitor

User

Managing

21

Project Report

Civil Registry

Level 2 DFD- User

User Login Details Login Add Details Login Name Change Registration Time Office Management Add Details Pan card apply

Name change Files

Pan Files

Reg: Details Marriage Registration Help Desk Passport Registration Help Desk Files Name, Place

Marriage Files

Passport File

22

Project Report

Civil Registry

Level 2 DFD- Visitor

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

Table Name: Passport

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; }

protected void btnsub_Click1(object sender, EventArgs e) {

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

Project Report NEW ACCOUNT

Civil Registry

TELEPHONE

53

Project Report FEEDBACK

Civil Registry

PAN CARD

54

Project Report MAIL

Civil Registry

MARRIAGE REGISTRATION

55

Project Report ADMIN LOGIN

Civil Registry

RATION CARD

56

Project Report

Civil Registry

57

Das könnte Ihnen auch gefallen