Final Report
Final Report
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
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.
Further enhancements can be made to the application, so that the web site
functions very attractive and useful manner than the present one.
2
2.2 SYSTEM CONFIGURATION
2.2.1 HARDWARE CONFIGURATION
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.
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.
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.
9
Fig 4: Architecture 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
12
2.4.5 ER DIAGRAM
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:
14
2.4.7 The components and features of an ER diagram
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:
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.
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).
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
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.
24
2.5.4.1 Use cases for sequence diagrams
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.
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 .
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();
}
}
private void label6_Click(object sender, EventArgs e)
{
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);
if (val > 0)
{
MessageBox.Show("Valid Login");
Optionpage optpage = new Optionpage();
optpage.Show();
this.Hide();
else
{
MessageBox.Show("Invalid Login");
}
conn.Close();
}
30
private void linkLabel1_LinkClicked(object sender,
LinkLabelLinkClickedEventArgs e)
{
txt_firstname newlogin = new txt_firstname();
newlogin.Show();
this.Hide();
if (val > 0)
{
MessageBox.Show("Valid Login");
else
{
MessageBox.Show("Invalid Login");
}
conn.Close();
31
}
}
}
}
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)
{
namespace status_tracking_app
{
public partial class Optionpage : Form
{
public Optionpage()
{
InitializeComponent();
}
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();
conn.Close();
if (Status > 0)
{
MessageBox.Show("Passport Details Updated Successfully");
}
else
{
MessageBox.Show("Updation Failed");
}
conn.Close();
}
36
}
}
namespace status_tracking_app
{
public partial class Applypassport : Form
{
public Applypassport()
{
InitializeComponent();
}
37
}
}
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();
if (status ==1)
{
MessageBox.Show("Issue In Updating");
}
int id = Convert.ToInt32(ds.Tables[0].Rows[0][0].ToString());
MessageBox.Show(id.ToString());
if(val2>0)
{
MessageBox.Show("Passport User Login Details Added Successfully");
else
{
39
conn.Close();
}
APPENDIX 2
41
SCREENSHOTS
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
-APRES
2. MATTHEW MACDONALD,
“MICROSOFT C#ET PROGRAMMER’S COOKBOOK”
4. Douglas O.Reilly,
“DESIGNING MICROSOFT ASP.NET APPLICATIONS”
47
-TATA McGraw HILL EDITION
48