0% found this document useful (0 votes)
13 views48 pages

Final Report

The document outlines a project for a passport status tracking system designed for users and administrators, utilizing Visual Studio as the front-end and SQL Server as the back-end. It discusses the existing system, proposes a simplified user interface, and details hardware and software configurations necessary for implementation. Additionally, it covers system design methodologies, input/output design, and various diagrams like use case, data flow, and ER diagrams to illustrate system architecture and functionality.

Uploaded by

Muthukumar P
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views48 pages

Final Report

The document outlines a project for a passport status tracking system designed for users and administrators, utilizing Visual Studio as the front-end and SQL Server as the back-end. It discusses the existing system, proposes a simplified user interface, and details hardware and software configurations necessary for implementation. Additionally, it covers system design methodologies, input/output design, and various diagrams like use case, data flow, and ER diagrams to illustrate system architecture and functionality.

Uploaded by

Muthukumar P
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 48

CHAPTER 1

1 .INTRODUCTION
It provides a clear Passport status tracking for the end users. It provides a
single user interface for both the administrators and also the passport officer. Who
can do this project - 10th, 12th, Degree students You need Windows 10 OS to
install the software (With Internet) .Visual Studio is the front-end of this project. In
that link, you can download and install visual studio. SQL Server is the back-end
of this project. In that link, you can download and install SQL Server. Download
below libraries needed for the project Preliminary knowledge to do this
project.Project covers the end to end communication of applying passport to Status
tracking. It involves the case officer can represent the user to apply for passport
and also the end user can access it and track the status of the application. This
application is used only by the passport officer. Initially as a first step the
executable form of the application is to be created and loaded in the common
server machine which is accessible to all the user and the server is to be connected
to a network. The final stage is to document the entire system which provides
components and the operating procedures of the system. Software Design is at
relatively early stage in its revolution. Therefore, Software Design methodology
lacks the depth, flexibility and quantitative nature that are normally associated with
more classical engineering disciplines. However techniques for software designs
do exist, criteria for design qualities are available and design notation can be
applied. The final stage is to document the entire system which provides
components and the operating procedures of the system. Software Design is at
relatively early stage in its revolution. Therefore, Software Design methodology
lacks the depth, flexibility and quantitative nature that are normally associated with
more classical engineering disciplines.
1
CHAPTER 2

2. SYSTEM ANALYSIS
2.1.1 EXISTING SYSTEM

Passport can be provided by the admin department. Admin Department updated


the status. Finally User check the updated status.
2.2.1 PROPOSED SYSTEM

A single User can interact for both the end user and the passport officer. This
simplify the process of multiple applications to a single purpose. The updated
system is made in one single point.
2.2.3 ADVANTAGES
 The site is simultaneously accessed from more than one system.
Simultaneous login from more than one place is tested.

 The site works according to the restrictions provided in their respective


browsers.

 Further enhancements can be made to the application, so that the web site
functions very attractive and useful manner than the present one.

 The speed of the transactions become more enough now.

2
2.2 SYSTEM CONFIGURATION
2.2.1 HARDWARE CONFIGURATION

PROCESSOR : Intel I3 and Above


RAM : 4 GB RAM
MONITOR : 15” COLOR
HARD DISK : 400 GB
KEYBOARD : STANDARD 102 KEYS
MOUSE : 3 BUTTONS
2.2.2 SOFTWARE CONFIGURATION

OPERATING SYSTEM : Windows 10

ENVIRONMENT : Visual Studio .NET 2017


.NET FRAMEWORK : Version 4.7
LANGUAGE : C#.NET
BACK END :SQL SERVER- 2008R2 ()

3
2.3. SOFTWARE DESCRIPTION
2.3.1 FRONT END
2.3.1.1 Microsoft Visual Studio
Microsoft Visual Studio is an IDE from Microsoft. It is used to view and edit
nearly any kind of code, and then debug, build, and publish apps for Windows,
web, Android, iOS and the cloud. Visual Studio uses Microsoft software
development platforms such as Windows API, Windows Forms, Windows
Presentation Foundation, Windows Store and Microsoft Silverlight. It can produce
both native code and managed code.

2.3.1.2 Performance Improvement

VS2017 has specialize in performance improvements such as Fast begin of


VS IDE, Lower resolution load time, on demand Python and Xamarin extensions
loading, Less memory consumption, Additional responsiveness, New setup
experience,
2.3.1.3 Faster Visual Studio

Visual Studio 2017 comes up with a new performance check list, once VS
loader Visual Studio takes longer to load, it'll provides a list of all extensions
which take time to load your editor. If you uncheck them and load your Visual
Studio instantly. It will avoid opening/running some tool on editor startup. On-
demand loading extensions Earlier versions of Visual Studio load with all
extensions and packages. On startup, it'll slow down its loading performance,
however VS2017 has the control of 'On-demand loading extensions' within which
you'll choose what you wish to load in startup. Xamarin extensions in on-demand
category, shortly they need planned to move additional packages and extensions.

4
2.3.1.4 ASP.NET
ASP.NET is the next version of Active Server Pages (ASP); it is a unified
Web development platform that provides the services necessary for developers to
build enterprise-class Web applications. While ASP.NET is largely syntax
compatible, it also provides a new programming model and infrastructure for more
secure, scalable, and stable applications. ASP.NET is a compiled, NET-based
environment, we can author applications in any .NET compatible language,
including Visual Basic .NET, C#, and JScript .NET. Additionally, the entire .NET
Framework is available to any ASP.NET application. Developers can easily access
the benefits of these technologies, which include the managed common language
runtime environment (CLR), type safety, inheritance, and so on. ASP.NET has
been designed to work seamlessly with WYSIWYG HTML editors and other
programming tools, including Microsoft Visual Studio .NET. Not only does this
make Web development easier, but it also provides all the benefits that these tools
have to offer, including a GUI that developers can use to drop server controls onto
a Web page and fully integrated debugging support. Developers can choose from
the following two features when creating an ASP.NET application. Web Forms
and Web services, or combine these in any way they see fit. Each is supported by
the same infrastructure that allows you to use authentication schemes; cache
frequently used data, or customizes your application's configuration, to name only
a few possibilities. Web Forms allows us to build powerful forms-based Web
pages. When building these pages, we can use ASP.NET server controls to create
common UI elements, and program them for common tasks. These controls allow
we to rapidly build a Web Form out of reusable built-in or custom components,
simplifying the code of a page. An XML Web service provides the means to access
server functionality remotely.
5
2.3.2 BACK END
2.3.2.1 MICROSOFT SQL SERVER
Microsoft SQL Server is a relational database management system
established by Microsoft. SQL Server a platform that gives selections of
development languages, data types, cloud, and operating systems by fetching the
power of SQL Server to Linux, Linux-based Docker containers, and Windows.
SQL Server 2017 Features The features are, SQL Server Machine Learning
Services - R and Python Improved SELECT INTO statement Resumable online
index rebuild operation New dynamic management views (DMVs) SQL Server
Machine Learning Services - R and Python SQL Server 2016 integrated with the R
programming which may be run within the database server and can be embedded
into T-SQL script. In SQL Server 2017, we will execute the Python script within
the database server itself. Both, R and Python are most popular programming
language which provides general support for data analytics along with language
processing capability. R and Python programming languages are used by data
scientists. Adding Python to the SQL Server 2017 can give a lot of power to SQL
Server for advanced analytics, data transformations capabilities and statistical
computing.
2.3.2.1.1 Improved SELECT INTO statement

We weren't able to give the file group name on which we need to create the
new table using ON keyword with SELECT INTO statement. The table gets
created on the default file group of the user by default. But, in SQL Server 2017,
we will give the name of the file group on which we need to create the new table
using SELECT INTO statement.

6
2.3.2.2 Features of SQL-SERVER
The OLAP Services feature available in SQL Server version 7.0 is now
called SQL Server 2000 Analysis Services. The term OLAP Services has been
replaced with the term Analysis Services. Analysis Services also includes a new
data mining component. The Repository component available in SQL Server
version 7.0 is now called Microsoft SQL Server 2000 Meta Data Services.
References to the component now use the term Meta Data Services. The term
repository is used only in reference to the repository engine within Meta Data
Services

7
2.4 PROJECT DESCRIPTION
2.4.1 System Design
Design is multi-step process that focuses on data structure software
architecture, procedural details, (algorithms etc.) and interface between modules.
The design process also translates the requirements into the presentation of
software that can be accessed for quality before coding begins. Computer software
design changes continuously as new methods; better analysis and broader
understanding evolved. Software Design is at relatively early stage in its
revolution. Therefore, Software Design methodology lacks the depth, flexibility
and quantitative nature that are normally associated with more classical
engineering disciplines. However techniques for software designs do exist, criteria
for design qualities are available and design notation can be applied.

Fig 3: System design diagram

8
2.4.1.1 Input Design
Input design is the process of converting user-originated inputs to a
computer-based format. Input design is one of the most expensive phases of the
operation of computerized system and is often the major problem of a system.
2.4.1.2 Output Design
Output design generally refers to the results and information that are
generated by the system for many end-users; output is the main reason for
developing the system and the basis on which they evaluate the usefulness of the
application. In any system, the output design determines the input to be given to
the application.

2.4.2 Architecture Diagram


For system developers, they need system architecture diagrams to
understand, clarify, and communicate ideas about the system structure and the user
requirements that the system must support. It's a basic framework can be used at
the system planning phase helping partners understand the architecture, discuss
changes, and communicate intentions clearly.

9
Fig 4: Architecture diagram

2.4.3 USE CASE DIAGRAM

In the Unified Modeling Language, a use case diagram can summarize the
details of your system's users (also known as actors) and their interactions with the
system. To build one, you'll use a set of specialized symbols and connectors. An
effective use case diagram can help your team discuss and represent: Scenarios in
which your system or application interacts with people, organizations, or external
systems. Goals that it helps those entities (known as actors) achieve. The scope of
your system.

10
Fig 5: Use case diagram

2.4.3.1 Purpose of Use Case Diagram

The purpose of use case diagram is to capture the dynamic aspect of a


system. However, this definition is too generic to describe the purpose, as other
four diagrams (activity, sequence, collaboration, and State chart) also have the
same purpose. We will look into some specific purpose, which will distinguish it
from other four diagrams. Use case diagrams are used to gather the requirements of
a system including internal and external influences.
11
2.4.4 DATA FLOW DIAGRAM
A data flow diagram (DFD) maps out the flow of information for any
process or system. It uses defined symbols like rectangles, circles and arrows, plus
short text labels, to show data inputs, outputs, storage points and the routes
between each destination. Data flowcharts can range from simple, even hand-
drawn process overviews, to in-depth, multi-level DFDs that dig progressively
deeper into how the data is handled.

Fig 6: Data flow diagram

12
2.4.5 ER DIAGRAM

Entity Relationship Diagram, also known as ERD, ER Diagram or ER


model, is a type of structural diagram for use in database design. An ERD contains
different symbols and connectors that visualize two important information: The
major entities within the system scope, and the inter-relationships among these
entities. And that's why it's called "Entity" "Relationship" diagram (ERD)!

Fig 7: ER diagram
2.4.6 DATABASE DIAGRAM
ER diagrams are used to model and design relational databases, in terms of
logic and business rules (in a logical data model) and in terms of the specific
technology to be implemented (in a physical data model.) In software engineering,
an ER diagram is often an initial step in determining requirements for an
information systems project. It’s also later used to model a particular database or
databases. A relational database has an equivalent relational table and can
potentially be expressed that way as needed. It’s also later used to model a
particular database or databases. A relational database has an equivalent relational
table and can potentially be expressed that way as needed.

13
2.4.6.1 Database troubleshooting:

ER diagrams are used to analyze existing databases to find and resolve


problems in logic or deployment. Drawing the diagram should reveal where it’s
going wrong.
2.4.6.2Business information systems:
The diagrams are used to design or analyze relational databases used in
business processes. Any business process that uses fielded data involving entities,
actions and interplay can potentially benefit from a relational database. It can
streamline processes, uncover information more easily and improve results.
Business process re-engineering (BPR): ER diagrams help in analyzing
databases used in business process re-engineering and in modeling a new database
setup.
Education: Databases are today’s method of storing relational information for
educational purposes and later retrieval, so ER Diagrams can be valuable in
planning those data structures.
Research: Since so much research focuses on structured data, ER diagrams can
play a key role in setting up useful databases to analyze the data.

14
2.4.7 The components and features of an ER diagram

ER Diagrams are composed of entities, relationships and attributes. They


also depict cardinality, which defines relationships in terms of numbers. Here’s a
glossary:

2.4.7.1 Entity
A definable thing-such as a person, object, concept or event-that can have
data stored about it. Think of entities as nouns. Examples: a customer, student, car
or product. Typically shown as a rectangle.
Entity type: A group of definable things, such as students or athletes, whereas the
entity would be the specific student or athlete. Other examples: customers, cars or
products.
Entity set: Same as an entity type, but defined at a particular point in time, such
as students enrolled in a class on the first day. Other examples: Customers who
purchased last month, cars currently registered in Florida. A related term is
instance,
Entity categories: Entities are categorized as strong, weak or associative.
A strong entity can be defined solely by its own attributes, while a weak
entity cannot. An associative entity associates entities (or elements) within an
entity set.
Entity keys: Refers to an attribute that uniquely defines an entity in an entity set.
Entity keys can be super, candidate or primary.

15
Super key: A set of attributes (one or more) that together define an entity in an
entity set.
Candidate key: A minimal super key, meaning it has the least possible number of
attributes to still be a super key. An entity set may have more than one candidate
key.
Primary key: A candidate key chosen by the database designer to uniquely
identify the entity set.
Foreign key: Identifies the relationship between entities.
2.4.8 Relationship
How entities act upon each other or are associated with each other. Think of
relationships as verbs. For example, the named student might register for a course.
The two entities would be the student and the course, and the relationship depicted
is the act of enrolling, connecting the two entities in that way. Relationships are
typically shown as diamonds or labels directly on the connecting lines.
Recursive relationship: The same entity participates more than once in the
relationship.
Attribute
Descriptive attribute: A property or characteristic of a relationship (versus of an
entity.)
Attribute categories: Attributes are categorized as simple, composite, derived, as
well as single-value or multi-value.
Simple: Means the attribute value is atomic and can’t be further divided, such as a
phone number.
Composite: Sub-attributes spring from an attribute.

16
Derived: Attributed is calculated or otherwise derived from another attribute, such
as age from a birthdate.
Multi-value: More than one attribute value is denoted, such as multiple phone
numbers for a person.
Single-value: Just one attribute value. The types can be combined, such as: simple
single-value attributes or composite multi-value attributes.

2.4.9 Cardinality
Defines the numerical attributes of the relationship between two entities or
entity sets. The three main cardinal relationships are one-to-one, one-to-many, and
many-many. A one-to-one example would be one student associated with one
mailing address. A one-to-many example (or many-to-one, depending on the
relationship direction): One student registers for multiple courses, but all those
courses have a single line back to that one student. Many-to-many example:
Students as a group are associated with multiple faculty members, and faculty
members in turn are associated with multiple students.
Cardinality views: Cardinality can be shown as look-across or same-side,
depending on where the symbols are shown.
Cardinality constraints: The minimum or maximum numbers that apply to a
relationship.

17
2.4.9.1 Mapping natural language
ER components can be equated to parts of speech, as Peter Chen did. This
shows how an ER Diagram compares to a grammar diagram:

Common noun: Entity type. Example: student.

Proper noun: Entity. Example: Sally Smith.

Verb: Relationship type. Example: Enrolls. (Such as in a course, which would be


another entity type.)

Adjective: Attribute for entity. Example: sophomore.

2.5 SYSTEM IMPLEMENTATION


Implementation is the most crucial stage in achieving a successful system
and giving the user’s confidence that the new system is workable and effective.
Implementation of a modified application to replace an existing one. This type of
conversation is relatively easy to handle, provide there are no major changes in the
system. Each program is tested individually at the time of development using the
data and has verified that this program linked together in the way specified in the
programs specification, the computer system and its environment is tested to the
satisfaction of the user. The system that has been developed is accepted and proved
to be satisfactory for the user. And so the system is going to be implemented very
soon. A simple operating procedure is included so that the user can understand the
different functions clearly and quickly.

18
2.5.1 SIMPLEX ALGORITHM
 Constraints of type (<=) : for each constraint i of this type, we add a slack
variable ݁ei, such that ݁ei is nonnegative.

 Constraints of type (>=) : for each constraint ݅i of this type, we add a


surplus variable ݁ei, such that ݁ei is nonnegative.

 Set n-m variables equal to zero. These variables are called non-basic
variables (N.B.V).

 Solve the system for the m remaining variables. These variables are called
basic variables (B.V.)

 The vector of variables obtained is called the basic solution (it contains both
basic and non-basic variables).

 Each basic solution of (LP=) for which all variables are nonnegative, is
called an admissible basic solution. This admissible basic solution
corresponds to an extreme point (corner solution).

 Maximum of the Cj - zjfor maximum problems.

 Minimum of the Cj - zjfor maximum problems.

19
Fig 8: Flow of Simplex algorithm

20
2.5.3 Database Design Diagram - Table Structure
Database design is the process of producing a detailed data model of a
database. This data model contains all the needed logical and physical design
choices and physical storage parameters needed to generate a design in a data
definition language, which can then be used to create a database. A fully attributed
data model contains detailed attributes for each entity. The term database design
can be used to describe many different parts of the design of an overall database
system. Principally, and most correctly, it can be thought of as the logical design of
the base data structures used to store the data. In the relational model these are the
tables and views. In an object database the entities and relationships map directly
to object classes and named relationships. However, the term database design
could also be used to apply to the overall process of designing, not just the base
data structures, but also the forms and queries used as part of the overall database
application within the database management system (DBMS).
2.5.3.1 Usually, the designer must:
Determine the data to be stored in the database. Determine the relationships
between the different data elements. Superimpose a logical structure upon the data
on the basis of these relationships.

21
Fig 10: Database design diagram

22
Fig 11: Database design diagram- table structure

Fig 12 : Database design diagram- table structures

23
2.5.4 SEQUENCE DIAGRAM
A sequence diagram is a type of interaction diagram because it describes
how and in what order—a group of objects works together. These diagrams are
used by software developers and business professionals to understand requirements
for a new system or to document an existing process. Sequence diagrams are
sometimes known as event diagrams or event scenarios.

Fig 13: Sequence diagram

24
2.5.4.1 Use cases for sequence diagrams

Usage scenario: A usage scenario is a diagram of how your system could


potentially be used. It's a great way to make sure that you have worked through the
logic of every usage scenario for the system.

Method logic: Just as you might use a UML sequence diagram to explore the logic
of a use case, you can use it to explore the logic of any function, procedure, or
complex process.
Service logic: If you consider a service to be a high-level method used by different
clients, a sequence diagram is an ideal way to map that out.

2.5.5 FEASIBILITY STUDY

The feasibility of the project is analyzed in this phase and business proposal
is put forth with a very general plan for the project and some cost estimates.
During system analysis the feasibility study of the proposed system is to be carried
out. This is to ensure that the proposed system is not a burden to the company. For
feasibility analysis, some understanding of the major requirements for the system
is essential. Three key considerations involved in the feasibility analysis are
Economical Feasibility, Technical Feasibility, Social Feasibility .

2.5.5.1 Economical Feasibility


This study is carried out to check the economic impact that the system will
have on the organization. The amount of fund that the company can pour into the
research and development of the system is limited. The expenditures must be
25
justified. Thus the developed system as well within the budget and this was
achieved because most of the technologies used are freely available. Only the
customized products had to be purchased.
2.5.5.2 Technical Feasibility
This study is carried out to check the technical feasibility, that is, the
technical requirements of the system. Any system developed must not have a high
demand on the available technical resources. This will lead to high demands on the
available technical resources. This will lead to high demands being placed on the
client. The developed system must have a modest requirement, as only minimal or
null changes are required for implementing this system. This will lead to high
demands being placed on the client. The developed system must have a modest
requirement, as only minimal or null changes are required for implementing this
system. This will lead to high demands being placed on the client.

CHAPTER 3
3. CONCLUSION
It is concluded that the application works well and satisfy the users. The
application is tested very well and errors are properly debugged. The site is
simultaneously accessed from more than one system. Simultaneous login from
more than one place is tested. The site works according to the restrictions provided
in their respective browsers. Further enhancements can be made to the application,
so that the web site functions very attractive and useful manner than the present
one. The speed of the transactions become more enough now.
3.1 Scope for Future Development
Every application has its own merits and demerits. The project has covered
almost all the requirements. Further requirements and improvements can easily be
26
done since the coding is mainly structured or modular in nature. Changing the
existing modules or adding new modules can append improvements. Further
enhancements can be made to the application, so that the web site functions very
attractive and useful manner than the present one.

APPENDIX
A.1 SOUCRE CODE
Login page
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
using Wikitechy;

27
namespace status_tracking_app
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

SqlConnection conn = new SqlConnection(@"Data Source=DESKTOP-


G08G9KU\MSSQLSERVER01 ; Integrated security=True ; Initial
Catalog=passporttrackingsystem ");
private void label7_Click(object sender, EventArgs e)
{

}
private void label6_Click(object sender, EventArgs e)
{

private void Password_Click(object sender, EventArgs e)


{

private void label3_Click(object sender, EventArgs e)


{

private void button3_Click(object sender, EventArgs e)


{

private void button4_Click(object sender, EventArgs e)


{
28
}

private void textBox1_TextChanged(object sender, EventArgs e)


{

private void textBox2_TextChanged(object sender, EventArgs e)


{

private void button1_Click(object sender, EventArgs e)


{

private void textBox4_TextChanged(object sender, EventArgs e)


{

private void textBox3_TextChanged(object sender, EventArgs e)


{

private void label2_Click(object sender, EventArgs e)


{

private void button3_Click_1(object sender, EventArgs e)


{
conn.Open();

29
SqlCommand cmd = new SqlCommand("select count(1) from [dbo].
[loginTable] where [Username]='" + txt_admin_username.Text + "' and [pwd]= '"
+ txt_admin_pwd.Text + "'", conn);
cmd.CommandType = CommandType.Text;
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds);

int val = Convert.ToInt32(ds.Tables[0].Rows[0][0].ToString());

if (val > 0)
{
MessageBox.Show("Valid Login");
Optionpage optpage = new Optionpage();
optpage.Show();
this.Hide();

else
{
MessageBox.Show("Invalid Login");

}
conn.Close();
}

private void button4_Click_1(object sender, EventArgs e)


{
this.Close();

private void button1_Click_1(object sender, EventArgs e)


{
this.Close();
}

30
private void linkLabel1_LinkClicked(object sender,
LinkLabelLinkClickedEventArgs e)
{
txt_firstname newlogin = new txt_firstname();
newlogin.Show();
this.Hide();

private void button2_Click(object sender, EventArgs e)


{
conn.Open();
string query = "select id from [dbo].[status_newlogin_details] where
UserName='"+ txt_username.Text + "'and Password ='" + txt_pwd.Text + "'";
SqlCommand cmd = new SqlCommand(query, conn);
cmd.CommandType = CommandType.Text;
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds);

int val = Convert.ToInt32(ds.Tables[0].Rows[0][0].ToString());

if (val > 0)
{
MessageBox.Show("Valid Login");

Viewstatuspage vsp = new Viewstatuspage();


vsp.Show();
this.Hide();

else
{
MessageBox.Show("Invalid Login");

}
conn.Close();
31
}

private void label7_Click_1(object sender, EventArgs e)


{

private void Form1_Load(object sender, EventArgs e)


{

}
}
}

New login page


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
using Wikitechy;

namespace status_tracking_app
{
public partial class txt_firstname : Form
{
public txt_firstname()
{
InitializeComponent();
}
SqlConnection conn = new SqlConnection(@"Data Source=DESKTOP-
G08G9KU\MSSQLSERVER01 ; Integrated security=True ; Initial
Catalog=passporttrackingsystem ");

32
private void new_user_Load(object sender, EventArgs e)
{

private void button2_Click(object sender, EventArgs e)


{
conn.Open();

String dob = Wikitechy.UserDetails.GetDate(dateTimePicker1.Value);

SqlCommand cmd = new SqlCommand("insert into statusTable Values('" +


txt_Name.Text + "', '" + txt_Username.Text + "','" + txt_pwd.Text + "','" + dob +
"' , '" + cmb_SecurityQuestion.SelectedItem.ToString() + "','" +
txt_SecAnswer.Text + "')",conn);
int status = cmd.ExecuteNonQuery(); // this live will return whether the
above code returns success 1 or fails
if (status > 0)
{

MessageBox.Show("User Added Successfully");


}
else
{

MessageBox.Show("Problem In Data Insertion");


}
conn.Close();
}

private void button1_Click(object sender, EventArgs e)


{
Form1 loginpg = new Form1();
loginpg.Show();
this.Hide();
}
}
}
33
Option page
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace status_tracking_app
{
public partial class Optionpage : Form
{
public Optionpage()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)


{
Applypassport apply = new Applypassport();
apply.Show();
this.Hide();
}

private void Optionpage_Load(object sender, EventArgs e)


{

private void button2_Click(object sender, EventArgs e)


{
Changestatuspage CSP = new Changestatuspage();
CSP.Show();
this.Hide();
}
34
}
}
Change status
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using System.Data.SqlClient;
using Wikitechy;

namespace status_tracking_app
{
public partial class Changestatuspage : Form
{
public Changestatuspage()
{
InitializeComponent();
}
SqlConnection conn = new SqlConnection(@"Data Source=DESKTOP-
G08G9KU\MSSQLSERVER01 ; Integrated security=True ; Initial
Catalog=passporttrackingsystem ");
private void Changestatuspage_Load(object sender, EventArgs e)
{
conn.Open();

SqlCommand cmd1 = new SqlCommand("select [PassportRefNumber]


from [dbo].[PP_details] where [PPStatus] = 'Pending'", conn);
cmd1.CommandType = CommandType.Text;
SqlDataAdapter da = new SqlDataAdapter(cmd1);
DataSet ds = new DataSet();
da.Fill(ds);

foreach (DataRow dr in ds.Tables[0].Rows)


35
{
cmb_RefNumber.Items.Add(dr[0].ToString());

conn.Close();

private void button1_Click(object sender, EventArgs e)


{
Optionpage op = new Optionpage();
op.Show();
this.Hide();
}

private void button2_Click(object sender, EventArgs e)


{
conn.Open();
String qurey = "update [dbo].[PP_details]set [PPStatus]='" +
cmb_Status.SelectedItem.ToString() + "' where [PassportRefNumber]=" +
cmb_RefNumber.SelectedItem.ToString();

SqlCommand cmd2 = new SqlCommand(qurey, conn);


int Status = cmd2.ExecuteNonQuery();

if (Status > 0)
{
MessageBox.Show("Passport Details Updated Successfully");

}
else
{

MessageBox.Show("Updation Failed");
}
conn.Close();

}
36
}
}

Apply passport page


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
using Wikitechy;

namespace status_tracking_app
{
public partial class Applypassport : Form
{
public Applypassport()
{
InitializeComponent();
}

private void label3_Click(object sender, EventArgs e)


{

private void PassportRegistrationForm_Load(object sender, EventArgs e)


{

private void panel2_Paint(object sender, PaintEventArgs e)


{

37
}

private void label14_Click(object sender, EventArgs e)


{

private void label13_Click(object sender, EventArgs e)


{

}
SqlConnection conn = new SqlConnection(@"Data Source=DESKTOP-
G08G9KU\MSSQLSERVER01 ; Integrated security=True ; Initial
Catalog=passporttrackingsystem ");
private void button2_Click(object sender, EventArgs e)
{
Random r = new Random();
int passportRefNumber = r.Next(1, 2000);
string ppstatus = "pending";
string dob = Wikitechy.UserDetails.GetDate(dateTimePicker1.Value);

conn.Open();

SqlCommand cmd = new SqlCommand("insert into PP_details(firstName,


SurName, Email, DOB, [Address], District, [State], Gender,
Photo,PassportRefNumber, PPStatus) Values('" + txt_Firstname.Text + "', '" +
txt_surname.Text + "', '" + txt_Email.Text + "', '" + dob + "', '" + txt_Address.Text
+ "', '" + txt_District.Text + "', '" + txt_State.Text + "', '" + cmb_Gender.Text + "',
'" + txt_PhotoName.Text + "', '" + passportRefNumber.ToString() + "', '" +
ppstatus + "')", conn);
int status = cmd.ExecuteNonQuery();

if (status ==1)
{

MessageBox.Show("Passport Details Updated Successfully");


}
else
38
{

MessageBox.Show("Issue In Updating");
}

// passport user login details

SqlCommand cmd1 = new SqlCommand("select id from PP_details order


by id desc", conn);
cmd1.CommandType = CommandType.Text;
SqlDataAdapter da = new SqlDataAdapter(cmd1);
DataSet ds = new DataSet();
da.Fill(ds);

int id = Convert.ToInt32(ds.Tables[0].Rows[0][0].ToString());
MessageBox.Show(id.ToString());

String query3 = "insert into


status_newlogin_details(Id,username,password,Security_Question,Security_Passw
ord) values(" + id.ToString() + ",'" + txt_UserName.Text + "','" +
txt_password.Text +"','" + cmb_secQuestion.SelectedItem.ToString() + "','" +
txt_secAnswer.Text + "')";
SqlCommand cmd2 = new SqlCommand(query3,conn);

int val2 = cmd2.ExecuteNonQuery();

if(val2>0)
{
MessageBox.Show("Passport User Login Details Added Successfully");

else
{

MessageBox.Show("Data Insertion Failed");

39
conn.Close();
}

private void textBox6_TextChanged(object sender, EventArgs e)


{

private void button1_Click(object sender, EventArgs e)


{
openFileDialog1.Filter = "Image Files(*.jpg; *.jpeg; *.gif; *.bmp)|*.jpg;
*.jpeg; *.gif; *.bmp";
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
// display image in picture box
pictureBox1.Image = new Bitmap(openFileDialog1.FileName);
// image file path
txt_PhotoName.Text = openFileDialog1.FileName;
Image img = pictureBox1.Image;
img.Save(txt_Firstname.Text + "-" + txt_surname.Text + ".jpg");
}
}

private void panel1_Paint(object sender, PaintEventArgs e)


{

private void pictureBox1_Click(object sender, EventArgs e)


{

private void button3_Click(object sender, EventArgs e)


{
Optionpage opt = new Optionpage();
opt.Show();
this.Hide();
40
}
}
}

APPENDIX 2

41
SCREENSHOTS

A2.1 LOG IN PAGE

42
A2.2 NEW USER PAGE

43
A2.3 APPLY PASSPORT PAGE

44
A2.4 OPTION PAGE

45
A2.5 CHANGE STATUS PAGE

46
REFFERENCE
Bibliography

1. STEVE HARRIS AND ROBMACDONALD,


“WEB DEVELOPMENT WITH C#.NET”

-APRES

2. MATTHEW MACDONALD,
“MICROSOFT C#ET PROGRAMMER’S COOKBOOK”

-TATA McGraw HILL EDITION

3. CHRIS GOODE, JOHN KAUFFMAN


“BEGINNING ASP.NET 1.0 WITH VISUAL BASIC.NET”

-WROX PROGRAMMER TO PROGRAMMER

4. Douglas O.Reilly,
“DESIGNING MICROSOFT ASP.NET APPLICATIONS”

47
-TATA McGraw HILL EDITION

48

You might also like