Synopsis (1)
Synopsis (1)
PART :1.
PROJECT DESCRIPTION
➢ Title
➢ Introduction to the project
➢ GOAL
➢ Purpose
➢ Project objectives
➢ Scope
➢ Proposed system and its benefits
➢ Project features
➢ Tools/platform used
PART :2.
PROJECT MODULES
➢ Consolidated view of the system
➢ Project module
➢ Forms and Tab forms
PART :3.
SYSTEM DEVELOPMENT LIFE CYCLE
➢ Introduction
PART :4.
PART :5.
SYSTEM DESIGN
➢ Concepts
➢ Objectives
➢ Modules
➢ System design
➢ ER diagram
➢ Data flow diagram
➢
PART :6.
SYSTEM PROGRAMMING
➢ Introduction
➢ Visual interfaces
➢ Database design
➢ Snap shots
➢ Crystal reports
PART :7.
PART :8.
SYSTEM TESTING
➢ Introduction
➢ Testing procedure
➢ Unit testing
➢ Module testing
➢ Integration testing
➢ System testing
➢ User acceptance testing
➢ Stress testing
➢ Output testing
PART :9.
TECHNOLOGY USED
➢ Selection of technology used
➢ Introduction to .net framework
➢ Introduction to VB.Net
➢ Introduction to ADO.Net
➢ Introduction to SQL Server
PART :10.
BIBLIOGRAPHY
become a pervasive force today. Computers have completely revolutionized the way business
is being done. Everything is being routed through the Internet. Web has become an ocean of
We intent to develop a Hotel Guest Registration System App for Jammu & Kashmir Police
which will have allow Realtime registration of guests on a centralized system along with
Information has to be place in the form of web pages, so the category of the project has to be
information based and every part of the information has to be drafted in the form of web pages.
Category of the project has to be Internet/WAN. One of the module of the system is connected
with the database. The database has to be loaded on the server. So it is basically concept of
The project will be developed in two phases i.e. the development phase and
deployment phase.
Development phase
It consists of following phases:
1. Database design
2. Template design
3. Dynamic web pages
Deployment phase
The system will be uploaded and configured on the space bought on the server.
The space may be subject to increase as more and more information and data are
loaded online.
1. Webapps are often delivered incrementally. That is, frame work activities
will occur repeatedly as each increment is engineered and delivered.
Guest Registration and Verification System 10
2. Changes will occur frequently. These changes may occur as a result of the
evaluation of a delivered increment or as a consequence of changing
business conditions.
3. Timelines are short. This militates against the creation and review of
voluminous engineering documentation, but it does not preclude the simple
reality that critical analysis, design, and testing must be recorded in some
manner.
Planning. The project plan for the web application increments is created. The
plan consists of a task definition and a time line schedule for a time period
projected for a development of the web applications increments.
We have already noted that the web engineering process model must be
adaptable. That is, a definition of the engineering tasks required to refine each
framework activity is left to the discretion of the web engineering team. In some
cases, a framework activity is conducted informally. In others, a series of distinct
tasks will be defined and conducted by team members. In every case, the team
has responsibility for producing a high-quality web application increment within
the time period allocated.
It is important to emphasize that associated with web engineering
framework activities may be modified, eliminated, or extended based on the
characteristics of the problem by the people on the web engineering team.
Acceptance Test
Customer use
Customer
Software evalvation Coding
increment Delivery & Component
Feedback test
Refactoring
Construct-
Customer Business ion
Communica Analysis
tion Formulation
Planning Modeling
Design model
Iteration Content
plan Architecture
Analysis Navigation
model Interface
Content
Iteration
Function
Configuratio
n
Incremental model combines elements of the linear sequential model with the
iterative philosophy of prototyping. The incremental model applies linear
sequences in a staggered fashion as time progresses. Each linear sequence
produces a deliverable increment of the software. For example, word
processing software may deliver basic file management, editing and
document production functions in the first increment. More sophisticated
editing and document production in the second increment, spelling and
grammar checking in the third increment, advanced page layout in the fourth
increment and so on. The process flow for any increment can incorporate the
prototyping model.
Advantages
Calendar
time
Guest Registration and Verification System 15
The incremental model
1.7 Scope of the Project
A request to receive assistance from Skill Evaluation systems can be made for many
request. And in my case the decision was from college and they planned the system
When request is made, the first system activity, the preliminary investigation, begins. I
had gone through various schools, software companies and other I.T Journals and
had collected the concept of online doctor. The response from these professionals
were very good. I had talked to various people like my H.O.D, Coordinator, project
guide and they really supported me and encouraged for this project.
Methodology is basically the procedure, which shows the route towards the objective.
It depends upon the type of project and field related to that project. And to meet the
necessary. It is necessary that the final prototype should meet the objectives set by
necessary.
The project involves development of a Data base driven web application. The
project aims at implementing all the modules of a client requirement
successfully. The website will be developed using latest technology from
Microsoft called .net. The website will be developed in ASP.NET with
VB.NET as code behind i.e. the code will be written in vb.net.
The process of establishing services, that the developed system must provide
and the constraints under which it must operate is called requirement capturing
and analysis. The result of this analysis is a specification, which often
constitutes the first formal document produced in the software process. The
specifications are produced at different levels of abstraction with a careful
correlation made between these levels. .
Requirement definition
This is a statement in natural language of what the user expects from the system
to be developed and the constraints under which the system should operate. The
client, the developer and the management should write this so that it is
understandable.
Requirement specification
This is a structured document which sets out the system services in a more
detailed manner for the understanding of the technical staff, both at the user and
developer ends. Functional requirements – These are the system services
expected by the user. Non-functional requirements – These set out the
constraints under which the system must operate and the standards which must
be met by the delivered system.
Software specification
This is an abstract description of the software, which is the basis for its design
and implementation. The readers here are the software engineers, not the users
or the management.
Before deciding the system design and the outputs desired, I had met with the
professional people like my project guide and various people who are involved in
making of this system. Every time I went with new concepts in mind and new
designs in mind, the model that is designed finally was after 10-15 meetings on
Before starting on the development of new system I had to look for the manual
examination system and books. I had also gone through various websites, who are
providing with these kind of information, which had enabled me to build a platform
As such there was not any source who were providing information of the
website. The only source for the information about this system was by giving
online exam or by the manual exam system. So the existing system is somehow
1. Existing system doesn’t provide information about user’s weak area of the various
subjects.
2. Existing system takes a lot of time giving results to the user.
3. Existing system does not provide exam for programming subjects.
4. Existing systems only provide exams with limited features but not the study
materials and the information about the related books, previous papers,etc.
PERFORMANCE REQUIREMENTS
The following performance characteristics were taken care of in developing the systems:
• User Friendliness
The system is easy to learn and understand. A naïve user can also use the system
effectively, without any difficulty.
• User Satisfaction
• Response Time
The response time of all the operations is very low. This has been made possible
by careful programming.
Response to User Errors and undesired situations have been taken care of to
ensure that the system operates without halting in case of such situation and
proper error messages are given to user.
• Safety
• Robustness
• Security
• Accuracy
• Portability
The system can be moved to a new hardware / operating system after making
minor modification to it.
Proposed system activity is an important aspect of the system development life cycle.
It is only this activity which enables to enable the developers to built new system
effectively and as per the objectives set during the development of the system. In this
case proposed system came into the form of a web-based system, which will provide
• Easy to Use
• No special hardware required, even can be used from a Ordinary Smart Phone
• No extra manpower required. Can be operated by any Person having basic knowledge
on Smart Phone
• Data Security: No Other Hotel can access Data of any Other Hotel
• No Need to send separate Report to Police Station hence cost effective.(Saving Cost of
Customer data can be easily searched and retrieved since day of inception.
The proposed system will be build by using ASP.NET at the front end and MS SQL
Server as Backend.
The following acceptance criteria were established for the evaluation of the new
system
1. The system developed should be accurate and hence reliable i.e. the error rate
should be minimized and the outputs should be consistent and correct.
2. The developed software should provide all the required functions. Further, both
the execution time and the response time should negligibly low. It should also
satisfy the criteria specified in functional and performance requirements.
3. The system should be efficient i.e. the resource utilization should be optional.
4. The system should have scope to for see modifications and enhancements i.e.
it should be able to cope with business changes.
5.1 User Friendliness : The system should meet user needs and should be
easy to use.
5.2 Modularity : The system should have relative independent and single-
function parts that can be put together to make the complete system.
. Software
Computer programs and related documentation that serve to affect the logical method;
. Hardware
Electronic devices (CPU etc.) that provide computing capability and scanners etc., that
. People
Users and operators of the Hardware and Software.
. Database
A large, organizes collection of information that is accessed by the software
Before going to design a system one should know what system means. Basically system is an
integrated collection of components, which satisfy functions necessary to achieve the system’s
goals and which have relationships to one another that give cohesion to the system and define
▪ Input
▪ Processing
▪ Output
All these processes are done by programmer, where I had collected the input requirements
from the user, I had designed the input structure, and for obtaining output, user don’t know the
type of process which had gone through in the software. Conversion of input into output is
called as processing.
A system concept is obtained as per the need of the user. The system concept comes
engineering is necessary.
With the advent of software with such a force it has, become necessary for me to become
acquainted with the rules and regulations laid down during the making of a project. In other
words it has become essential for me to know the concepts of software engineering.
The steps of software engineering will be dealt with as per the following categories:
▪ Characteristics of software
▪ Estimation
▪ Risk analysis
Software Importance
During the time when computer was introduced the main point of focus was the
hardware. There was a need to develop computers with fast processing speed.
But reduced cost as the advancements kept taking place in the field of hardware;
there was a need to develop better.
Software characteristics
2. Software doesn’t wear out i.e. it always exists but might deteriorate.
3. Most software is custom built, rather then being assembled from existing
components.
The design of an information system produces the details that state our system will
System design is the process of planning a new business system or one to replace or
The design of an information system produces the details that state how a system will
meet the requirements identified during system analysis. System specialists often
refer to this state as logical design, in contrast to the process of developing program
System analysis begin process by identifying reports and other output that the system
will produce. Then the specific data on each are pinpointed. Usually, designers sketch
the form or display as they expect it to appear when the system is complete. This may
be done on paper or on a computer display, using one of the automated system tools
available.
The system design also describes the data to be input, calculated, or stored. Individual data
items and calculation procedures are written in detail. The procedure tell how to process the
Designers are responsible for providing programmers with complete and clearly
answer questions, clarify fuzzy areas, and handle problems that confront the
is must for quality designing. It will include designing of the database, designing of
1) DESIGN OF OUTPUT
The output generally refers to the result and information that are generated by the system. One
of the most important features of an information system from the users point of view is the
output it produces. If the output is of poor quality, the whole system is in peril because the
users will then avoid using it. Hence, the design of output assumes greater importance. In any
system the output is largely dependent on input. However, no system can be designed properly
Output as we generally know refers to the results and information that are provided or
generated by the system. Design of the output is the different from the input; the
difference will be output mostly comes in the form of information or the reports.
However some information are done systematically one after another. Output of the
website can be save the data, can create new entry; can be used in other calculations.
2) DESIGN OF INPUT
Inputs are basically the web-based forms where the user enters the data. Forms are
very important means of communication. In any websites the forms are used for both
input and output purposes. The user read from forms, write on forms and spent
sufficient amount of time in handling and filing forms. As the time taken for filing up
these forms are large, I must design it carefully. In this website there are different
types of forms in the form of web pages. Normally the data is transformed through
various forms and information is obtained through these forms. Hence I can say that
document having constant printed information which are having a space to add
variable information (Data). Hence form design is an important aspect of improving the
2. Com Technology
Microsoft introduced component-based model for developing soft
wares programs. In the components –based approaching a program is broken
into a number of independent components where each one offers a particular
service. It reduces the overall complexity of software. Enables distributed
developments across multiple organization or departments and Enhances
software maintainability
There are around 27 different languages, which can be the probable inputs to the
.NET framework at the common language specification layer. Once the
specifications are complied, the process of further delegation comes to light.
The object built and written, pass through the stage of the services
layer. This enables the same language to arm their objects with the
services.
The next step is to move further to collect the data and request the class
libraries for execution from the dependency layer.
Guest Registration and Verification System 36
The final launch of the program is done with the help of base layer
comprising common language runtime.
This the output is Visual Studio.NET
1. The common language runtime, which is the execution engine for .net
framework-based applications. Its functions include code management
(loading and executing code). Managing memory for applications and
objects, enforcing security rules regarding what resources may be accessed
by the code, and interoperation between .net framework-based code and
pre-existing com objects.
WEB SERVICES
This interactive animation explains how Web services can help companies
connect standalone system and share information between various applications. It
also looks at how Microsoft .NET-connected software can be the foundation of
Web service solutions.
Microsoft .NET, through Visual Studio and the .NET Framework, will
enable more rapid development of software applications and services.
The .NET framework and Visual Studio .NET will provide greater
reliability for applications and Web services.
The use of Web services will allow applications and services created
with Microsoft .NET-connected software to integrate more easily and
efficiently.
Faster Development
Through the use of the common language runtime, a part of the .NET
Framework, developers can create Web services using any modern programming
language, greatly increasing the pool of available developer resources as well as
allowing developers the freedom to use the programming language most suited to
solve the problem at hand.
Guest Registration and Verification System 39
Visual studio .NET largely automates the transformation of an
application in to a Web service, decreasing the time and effort
necessary to quickly create and deploy solutions.
.NET building block services, provides core capabilities needed by
many applications—without requiring additional coding.
Greater Reliability
Rapid development
Microsoft Visual Studio .NET and the .NET Framework empower
developers to quickly and easily create cutting-edge Web services and
Guest Registration and Verification System 40
applications, building on their existing skills sets. Through Multilanguage
support, developers are freed to use the appropriate language in building Web
services.
• Collect information from the user and store that information on the
server
• Perform tasks for the user such as placing an order for a product,
performing complex calculations, or retrieving information from a
database
• Identify a specific user and present an interface that is customized for
that user
• Present content that is highly volatile, such as inventory, pending
order, and shipment information
ASP.NET is the platform that we use to create Web applications and Web
services that run under IIS. ASP.NET is not the only way to create a Web
application. Other technologies, notably the CGI, also enable you to create
Web applications. What makes ASP.NET special is how tightly it is
integrated with the Microsoft server, programming, data access, and security
tools.ASP.NET provides a high level of consistency across Web application
development.
These include visual tools for designing Web pages and application
templates, project management, and deployment tools for Web applications.
These are part of the .NET Framework and include the programming classes
that deal with Web-specific items such as HTTP requests and responses,
browsers, and e-mail.
These are the user-interface components that you use to gather information
from and provide responses to users.
• The Microsoft Visual Basic .NET, Microsoft Visual C#, and Microsoft
Visual J# programming languages.
Features of an Asp.net
1. Compiled code- code written in asp.net is compiled and not interpreted .this
makes asp.net applications faster to execute than other server side scripts that are
interpreted, such as scripts written in a previous version of asp.
2. Enriched tool support: the ASP dot net framework is provided with a rich
toolbox and designer inVS.NET IDE.
3. Power and flexibility: asp.net applications are based on common language
runtime therefore the power and flexibility of the .net platform is available to
ASP .net application developers. Asp.net applications enable you to ensure that
the class library, messaging and data access solutions are seamlessly accessible
over the web. Asp. Net is also language independent therefore, you can choose
any. Net language to develop your application.
4. Simplicity-ASP. Net enables you to build user interfaces that
Separate application logic from presentation content in addition, CLR simplifies
application development by using managed code services such as automatic
reference counting and garbage collection therefore ASP dot net makes it easy to
perform common tasks ranging from form submission and client authentication
to site configuration and deployment.
5. Manageability- ASP dot net enables you to manage web application by
storing the configuration information in an xml file. You can open the xml file in
the visual studio .net.
6. Scalability- ASP dot net has been designed with scalability in mind. It has
features that help improve performance in multiprocessor environment.
Guest Registration and Verification System 46
7. Security- ASP dot net provides a number of options for implementing security
and restricting user access to a web application. All these options are configured
within the configuration file.
1. Web forms enable you to create user interface for web applications, you. You
use server controls to design the user interfaces of web applications and then
write code, which will be executed at the server-side, to handle events triggered
by these controls.
Risk projection, also called risk estimation, attempts to rate each risk in two
ways - the likelihood or probability that the risk is real and the consequences of
the problem associated with the risk. The project planner, along with other
managers and technical staff, performs risk projection activities:
1. Performance risk - The degree of uncertainty that the product will meet its
requirement and be fit for its intended use.
2. Cost risk - The degree of uncertainty that the project budget will be
maintained
3. Support risk - The degree of uncertainty that the resultant software will be
easy to correct, adapt and enhance.
4. Schedule risk - The degree of uncertainty that the project schedule will be
maintained and the product will be delivered on time.
The impact of each risk driver on the risk component is divided into one of four
impact categories – negligible, marginal, critical or catastrophic.
One method to identify risks is to create a risk item checklist. The checklist can
be used for risk identification and focuses on some subset of known and
predictable risks in the following general categories:
The risk item checklist can be organized in different ways. Questions relevant to
each of the topics can be answered for each software project. The answers to
these questions allow the planner to estimate the impact of risk. A different risk
item checklist format simply lists characteristics that are relevant to each general
subcategory. Finally, a set of risk components and drivers are listed along with
their probability of occurrence. Impact values:
1 – Catastrophic
2 – Critical
3 – marginal
4 – Negligible
Guest Registration and Verification System 51
Risks Category Probability Impact
All the risk analysis activities presented to this point have a single goal - to assist
the project team in developing a strategy for dealing with the risk. An effective
strategy must consider three issues:
• Risk avoidance
• Risk monitoring
• Risk management and contingency planning
If a software team adopts a proactive approach to risk, avoidance is always the
best strategy. This is achieved by developing a plan for risk mitigation. For
example, assume that high staff turnover is noted as a project risk.
Based on past history and management intuition, the likelihood, i i, of high
turnover is estimated to be 0.7 (70%, rather high) and the impact, x i, is projected
at level 2. That is, high turnover will have a critical impact on project cost and
schedule.
To mitigate this risk, project management must develop a strategy for reducing
turnover. Among the possible steps to be taken are:
i) Meet with current staff to determine causes for turnover. (E.g.
poor working conditions, low pay, competitive job market,
etc.)
ii) Mitigate those causes that are under our control before the
project starts.
iii) Once the project commences, assume turnover will occur and
develop techniques to ensure continuity when people leave.
iv) Organize project teams so that information about each
development activity is widely dispersed.
v) Define documentation standards and establish mechanisms to
be sure that documents are developed in a timely manner.
Feasibility considerations
Technical feasibility
Behavioral feasibility
The next task is the estimation of resources required to accomplish the software
development effort. At the beginning, software and hardware tools must exist to
support the development effort. At a higher level, the primary resource i.e.
manpower, must exist. Each resource is specified with four characteristics:
i) Description of the resource
ii) Statement of availability
iii) Time at which the resource will be required
iv) Duration of time the resource will be applied
Before an estimate can be made, the project planner must estimate the general
size of the software. Size refers to the quantifiable outcome of the software
project and can be measured in LOC or is represented as FP.
Effort estimation
This is the most common technique for costing any engineering project. A
number of person-days, months or years is applied to the solution of each project
task. A dollar cost is associated with each unit of effort and an estimated cost is
derived. Like the LOC or FP techniques, effort estimation begins with a
definition of software functions obtained from the project scope. A series of tasks
- requirements analysis, design, code and test - must be performed for each
function.
Design issues
A set of fundamental design concepts is discussed in the following sub-sections
Abstraction
Each step in the software process is a refinement in the level of abstraction of the
software solution. The lowest level of abstraction is achieved when the source
code is generated. There are several different types of abstraction:
• Procedural abstraction – This is a named sequence of
instructions that have a specific and limited function.
• Data abstraction – This is a named collection of data that
describes a data object.
• Control abstraction – This implies a program control
mechanism without specifying internal details.
Refinement
Step-wise refinement is an early top-down design strategy. In each step of
refinement, one or several instructions of the program are decomposed into more
detailed instructions. This successive decomposition or refinement of
specifications terminates when all instructions are expressed in terms of any
underlying computer or programming language.
Modularity
Software architecture embodies modularity; i.e. software is divided into
separately named and addressable components called modules that are integrated
to satisfy problem requirements. Modularity is the single attribute of the software
Information hiding
Modules should be specified and designed so that information contained within a
module is inaccessible to other modules that have no need for this information.
Hiding implies that effective modularity can be achieved by defining a set of
independent modules that communicate with one another using only that
formation which is necessary to achieve the software function. Hiding defines
and enforces access constraints to both procedural detail within a module and any
local data structure used by the module.
The database for the application has been designed in Microsoft Access. The
Access file is name as amway1.mdb and it is kept in parent folder of the
website.
We choose MS Access because for a Web Based Application MS Access is
the best database as it works best on web server with ASP.NET, plus being a
file based Database, the whole database structure and its data can be easily
transferred from our machine where the development was done to the Actual
Web Server. Also it is very easy to take the back up of an Access File than a
database in MS SQL Server. Also if we don’t have MS Access installed on
our Web server, still our project will work only with the Access File. But we
need MS SQL Server or Oracle installed on the Server to run our Project,
which adds to the cost, as the license fee for MS SQL Server and Oracle is
very high.
The database is so designed as to minimize redundancy and is designed after
• Identifying the entities : All the entities related to the module were identified,
• Attributes definition : The pertaining to the entities were identified and their field
normalisation, third normalisation was achieved for all the entities of system.
• Interface : Interfacing with other systems was done and attributes related to
the entities and attributes into tables. The name of the entity is taken as the table name.
This utility creates column and constraint definitions from the entity model and the table/entity
mapping entered in CASE* Dictionary. This database design can be refined according to your
application regarding using the tables, columns and key constraint definition screens to make
amendments.
• Check constraints.
• Primary keys
• Unique keys
• Foreign keys
• Program Specifications
The program specifications were written for the masters, transactions, reports and queries. The
logic for each field, block and form were written so that anyone who doesn’t know the system
will be able to code the logic. Field Validations and user-friendly error messages were written
ER-Diagram of Project
Data design is one of the first design activities conducted during software
engineering. The impact of data structure on program structure and procedural
complexity causes data design to have a profound influence on software quality.
The primary objective of architectural design is to
develop a modular program structure and represent the control relationship
between modules. In addition, architectural design melds program structure and
data structure, defining interfaces that enable data to flow throughout the
program. The software that is built for computer-based systems exhibits one of
many architectural styles.
Each style describes a system category that includes:
1. A set of components (database, computational models, etc.)
2. A set of connectors among components
3. Constraints that define how components can be integrated to form the system.
4. Semantic models that enable the designer to understand the overall properties
of a system by analyzing the known properties of its constituent parts.
Data-flow architecture
Client Client
software software
Data store
Client (Repository or
Client
software blackboard) software
Client Client
software software
Data-centered architecture
Guest Registration and Verification System 72
Software Model of the Project
increments or parts and these parts were tested individually. For ex.
developed first and tested thoroughly, then other part the registration
the software. For example, word processing software may deliver basic
The process flow for any increment can incorporate the prototyping
model.
result of his evaluation, a plan is developed for the next increment. The
Advantages:
little modification.
critical path method (CPM) are two project scheduling methods that
accomplished.
Both PERT and CPM provide quantitative tools that allow the
a particular task.
duration
The planner must recognize that effort expended on software does not
easy to schedule at this stage, will ultimately become the largest cost
cost.
GUI Coding
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible"
content="IE=edge">
<meta name="viewport" content="width=device-width,
initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Guest Registration</title>
</head>
<body class="bg-gradient-primary">
<asp:ListItem>Select</asp:ListItem>
<asp:ListItem>Admin</asp:ListItem>
Guest Registration and Verification System 81
<asp:ListItem>SubAdmin</asp:ListItem>
<asp:ListItem>Viewer</asp:ListItem>
</asp:DropDownList>
</div>
<div class="form-group">
<label>Username
<asp:RequiredFieldValidator
ID="RequiredFieldValidator1" runat="server"
ControlToValidate="TextBox1"
ErrorMessage="Username
Required"
CssClass="msg">*</asp:RequiredFieldValidator></label>
<asp:TextBox ID="TextBox1" runat="server"
CssClass="form-control form-control-user"
required></asp:TextBox>
</div>
<div class="form-group">
<label>
Password<asp:RequiredFieldValidator
ID="RequiredFieldValidator2" runat="server"
ControlToValidate="TextBox2" ErrorMessage="Password
Required">*</asp:RequiredFieldValidator></label>
<asp:TextBox ID="TextBox2"
runat="server" TextMode="Password" CssClass="form-
control form-control-user" required></asp:TextBox>
</div>
<asp:Button ID="Button1" runat="server"
Text="Login" cssclass="btn btn-primary btn-user btn-block"
/>
<hr>
</form>
</div>
</div>
</div>
</body>
</html>
<asp:Content ID="Content2"
ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<div class="d-sm-flex align-items-center justify-content-
between mb-4">
<h1 class="h3 mb-0 text-gray-800">Hotels' Guest
Summary</h1>
</div>
<div class="row">
<div class="col-lg-12">
<div class="col-md-3">
Guest Registration and Verification System 84
<label>Date From </label>
<script>
$(function () {
$("#<%= f_date1.ClientID
%>").datepicker({
changeMonth: true,
changeYear: true
});
});
</script>
<center><h4>Hotelwise Report</h4></center>
<asp:Literal ID="Label1" runat="server"
Visible="false"></asp:Literal>
<asp:GridView ID="GridView1"
runat="server"
AllowSorting="True"
AutoGenerateColumns="False" AllowPaging="false"
CellPadding="4"
Font-Size="14px"
Font-Names="Arial"
OnSorting="sortgrid" PageSize="20"
Width="98%"
ForeColor="#333333"
GridLines="None">
</Columns>
<EditRowStyle BackColor="#2461BF"
/>
<FooterStyle BackColor="#507CD1"
ForeColor="White"
Font-Bold="True" />
<PagerStyle BackColor="#2461BF"
ForeColor="White"
HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#D1DDF1"
Font-Bold="True"
ForeColor="#333333" />
<HeaderStyle BackColor="#08133f"
Font-Bold="True"
ForeColor="White"
Font-Names="Arial Narrow" />
<SortedAscendingCellStyle
BackColor="#F5F7FB" />
CellPadding="4"
Font-Size="14px"
Font-Names="Arial"
OnSorting="sortgrid" PageSize="20"
Width="98%"
ForeColor="#333333"
GridLines="None">
</Columns>
<EditRowStyle BackColor="#2461BF"
/>
<FooterStyle BackColor="#507CD1"
ForeColor="White"
Font-Bold="True" />
<PagerStyle BackColor="#2461BF"
ForeColor="White"
HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#D1DDF1"
Font-Bold="True"
ForeColor="#333333" />
<HeaderStyle BackColor="#08133f"
Font-Bold="True"
ForeColor="White"
Font-Names="Arial Narrow" />
<SortedAscendingCellStyle
BackColor="#F5F7FB" />
<SortedAscendingHeaderStyle
BackColor="#6D95E1" />
<SortedDescendingCellStyle
BackColor="#E9EBEF" />
<SortedDescendingHeaderStyle
BackColor="#4870BE" />
</asp:GridView>
</div>
Guest Registration and Verification System 89
</div>
</div>
</div>
</div>
</asp:Content>
Imports System.Data.SqlClient
Partial Class login
Inherits System.Web.UI.Page
Function constr() As String
Dim y As New
IO.StreamReader(Server.MapPath("adminpanel/dataconfig/
dataval.config"))
Dim x As String = y.ReadToEnd
y.Close()
Return x
End Function
Protected Sub Page_Load(ByVal sender As Object, ByVal
e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
End If
End Sub
ScriptManager.RegisterClientScriptBlock(Page,
Page.[GetType](), Guid.NewGuid().ToString(),
"alert('Invalid User.');", True)
End If
End If
con.Close()
End Using
Catch ex As Exception
End Try
End Sub
End Class
Imports System.Data.SqlClient
Partial Class adminpanel_Default
Inherits System.Web.UI.Page
Guest Registration and Verification System 92
Public uss, pass As String
Function constr() As String
Dim y As New
IO.StreamReader(Server.MapPath("dataconfig/dataval.confi
g"))
Dim x As String = y.ReadToEnd
y.Close()
Return x
End Function
Protected Sub Page_Load(ByVal sender As Object, ByVal
e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
TextBox1.Focus()
End If
End Sub
Protected Sub Button1_Click(ByVal sender As Object,
ByVal e As System.EventArgs) Handles Button1.Click
Try
lblmsg.Text = ""
If DropDownList1.SelectedIndex = 0 Then
lblmsg.Text = "Select Login Type."
ElseIf DropDownList1.SelectedIndex = 1 Then
adminlog()
Else
userlog()
End If
Catch ex As Exception
End Try
End Sub
Sub adminlog()
Try
End Try
End Sub
Sub userlog()
Try
Dim uss As String = TextBox1.Text.Trim
Dim tp As String = ""
Using con As New SqlConnection(constr())
con.Open()
Dim cmd As New SqlCommand("Select * from
sublogins where username= @a1 and logintype='" &
DropDownList1.SelectedItem.Text & "'", con)
cmd.Parameters.AddWithValue("@a1", uss)
cmd.Parameters.AddWithValue("@a2",
DropDownList1.SelectedItem.Value)
Guest Registration and Verification System 94
Dim dr As SqlDataReader
dr = cmd.ExecuteReader
If dr.HasRows Then
While dr.Read
uss = dr("username").ToString
pass = dr("password").ToString
End While
If uss = TextBox1.Text And pass =
TextBox2.Text Then
Session("log") = "Ok"
Session("logtype") =
DropDownList1.SelectedItem.Text
Session("user") = uss
Response.Redirect("hotelsreport.aspx")
Else
lblmsg.Text = "Invalid User"
End If
End If
con.Close()
End Using
Catch ex As Exception
End Try
End Sub
End Class
Imports System.Data.SqlClient
Imports System.Data
Partial Class newhotel
Inherits System.Web.UI.Page
Function constr() As String
Dim y As New
IO.StreamReader(Server.MapPath("dataconfig/dataval.confi
g"))
Dim x As String = y.ReadToEnd
y.Close()
Return x
End Function
Protected Sub Page_Load(ByVal sender As Object, ByVal
e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
If Session("logtype") = "" Then
Response.Redirect("default.aspx", False)
Exit Sub
End If
Session("user") = Session("user")
Session("logtype") = Session("logtype")
lbluser.Text = Session("user")
lbllogtype.Text = Session("logtype")
Dim cls As New Class1
cls.filldistricts(dddistrict)
cls.fillps(ddps, dddistrict.SelectedItem.Text)
fillps()
bindgridcontrol()
End If
End Sub
Sub fillps()
Try
End Try
End Sub
Protected Sub Button1_Click(ByVal sender As Object,
ByVal e As System.EventArgs) Handles Button1.Click
lblmsg.Text = ""
lblmsg0.Text = ""
If ddps.SelectedItem.Text = "Select" Then
Response.Write("<script>alert('Select Police
Station');</script>")
Exit Sub
End If
If chk() = 1 Then
lblmsg.Text = "Entered Username Alreadu Exists."
Exit Sub
Else
save()
End If
End Sub
Function chk() As Integer
Try
Using cn As New SqlConnection(constr())
Guest Registration and Verification System 97
Dim cmd As New SqlCommand("Select * from
hotels where username=@username", cn)
cmd.Parameters.AddWithValue("@username",
txtmobile.Text.Trim)
cn.Open()
Dim dr As SqlDataReader
dr = cmd.ExecuteReader
If dr.HasRows Then
Return 1
Else
Return 0
End If
cn.Close()
End Using
Catch ex As Exception
End Try
End Function
Function save() As Integer
Try
Dim uploadby = lbluser.Text
Dim uploaddate = Now.Date.ToString()
Dim uploaddt = DateTime.Now()
Using cn As New SqlConnection(constr())
Dim cmd As New SqlCommand("Insert into
hotels(district,psid,ps,title,addr,owner,phone,ownerphone,e
mail,lat1,long1,username,password,uploadby,uploaddate,up
loaddt,updateby,updatedate,updatedt,st)
values(@district,@psid,@ps,@title,@addr,@owner,@phone,
@ownerphone,@email,@lat1,@long1,@username,@passwor
d,@uploadby,@uploaddate,@uploaddt,@updateby,@update
date,@updatedt,@st)", cn)
cmd.Parameters.AddWithValue("@district",
dddistrict.SelectedItem.Text)
cmd.Parameters.AddWithValue("@psid",
ddps.SelectedItem.Value)
End Try
End Function
Sub clear()
txtname.Text = ""
txtaddr.Text = ""
txtmobile.Text = ""
txtusername.Text = ""
txtowner.Text = ""
txtmobile.Text = ""
txtownmobile.Text = ""
txtemailid.Text = ""
txtlong1.Text = ""
txtlat1.Text = ""
End Sub
Sub SortGrid(ByVal sender As Object, ByVal e As
GridViewSortEventArgs)
Try
ViewState("sortexpression") = e.SortExpression
If ViewState("sortdirection") Is Nothing Then
ViewState("sortdirection") = "asc"
Else
If ViewState("sortdirection").ToString = "asc"
Then
ViewState("sortdirection") = "desc"
Else
ViewState("sortdirection") = "asc"
End If
End If
bindgridcontrol()
Guest Registration and Verification System 100
Catch ex As Exception
End Try
End Sub
Sub bindgridcontrol()
Try
Dim qr As String = ""
qr = "select * from hotels where st='Active'"
If dddistrict.SelectedItem.Text <> "Select" Then
qr = qr & " and district='" &
dddistrict.SelectedItem.Text & "'"
End If
If ddps.SelectedItem.Text <> "Select" Then
qr = qr & " and ps='" & ddps.SelectedItem.Text
& "'"
End If
qr = qr & " order by id desc"
Using con As New SqlConnection(constr())
con.Open()
Dim cmd As New SqlCommand(qr, con)
Dim da As New SqlDataAdapter
Dim dset As New DataSet
da.SelectCommand = cmd
da.Fill(dset, "users")
Session("dset") = dset
If Not (ViewState("sortexpression") Is Nothing)
Then
dset.Tables(0).DefaultView.Sort =
ViewState("sortexpression").ToString + " " +
ViewState("sortdirection").ToString
End If
GridView1.DataSource =
dset.Tables(0).DefaultView
GridView1.DataBind()
con.Close()
End Using
End Try
End Sub
End Try
End Sub
End Try
End Sub
Sub clearmsg()
lblmsg.Text = ""
lblmsg0.Text = ""
End Sub
Imports System.Data.SqlClient
Imports System.Data
Partial Class psmaster
Inherits System.Web.UI.Page
Function constr() As String
Dim y As New
IO.StreamReader(Server.MapPath("dataconfig/dataval.confi
g"))
Dim x As String = y.ReadToEnd
Guest Registration and Verification System 103
y.Close()
Return x
End Function
Protected Sub Page_Load(ByVal sender As Object, ByVal
e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
If Session("logtype") = "" Then
Response.Redirect("default.aspx", False)
Exit Sub
End If
Session("user") = Session("user")
Session("logtype") = Session("logtype")
lbluser.Text = Session("user")
lbllogtype.Text = Session("logtype")
Dim cls As New Class1
cls.filldistricts(dddistrict)
bindgridcontrol()
End If
End Sub
End Try
End Function
Protected Sub Button1_Click(ByVal sender As Object,
ByVal e As System.EventArgs) Handles Button1.Click
lblmsg.Text = ""
If TextBox1.Text = "" Then
lblmsg.Text = "Enter Police Station."
ElseIf dddistrict.SelectedItem.Text = "Select" Then
lblmsg.Text = "Enter District."
Else
save()
End If
End Sub
Function save() As Integer
Try
Dim uploadby = lbluser.Text
Dim uploaddate = Now.Date.ToString()
Dim uploaddt = DateTime.Now()
Using cn As New SqlConnection(constr())
Dim cmd As New SqlCommand("Insert into
policestations(district,ps,uploadby,uploaddate,uploaddt,upd
ateby,updatedate,updatedt)
values(@district,@title,@uploadby,@uploaddate,@uploaddt,
@updateby,@updatedate,@updatedt)", cn)
cmd.Parameters.AddWithValue("@district",
dddistrict.SelectedItem.Value)
cmd.Parameters.AddWithValue("@title",
TextBox1.Text.Trim)
cmd.Parameters.AddWithValue("@uploadby",
uploadby)
cmd.Parameters.AddWithValue("@uploaddate",
uploaddate)
cmd.Parameters.AddWithValue("@uploaddt",
uploaddt)
Guest Registration and Verification System 105
cmd.Parameters.AddWithValue("@updateby",
uploadby)
cmd.Parameters.AddWithValue("@updatedate",
uploaddate)
cmd.Parameters.AddWithValue("@updatedt",
uploaddt)
cn.Open()
cmd.ExecuteNonQuery()
cn.Close()
End Using
bindgridcontrol()
TextBox1.Text = ""
Catch ex As Exception
End Try
End Function
End Try
End Sub
End Try
End Sub
End Try
Guest Registration and Verification System 108
End Sub
Protected Sub GridView1_RowCancelingEdit(ByVal sender
As Object, ByVal e As
System.Web.UI.WebControls.GridViewCancelEditEventArgs)
Handles GridView1.RowCancelingEdit
clearmsg()
GridView1.EditIndex = -1
bindgridcontrol()
GridView1.Focus()
End Sub
cmdupdate.Parameters.AddWithValue("@updateby",
uploadby)
cmdupdate.Parameters.AddWithValue("@updatedate",
uploaddate)
cmdupdate.Parameters.AddWithValue("@updatedt",
uploaddt)
con.Open()
cmdupdate.ExecuteNonQuery()
con.Close()
End Using
GridView1.EditIndex = -1
bindgridcontrol()
GridView1.Focus()
lblmsg.Text = "Record Updated!"
Catch ex As Exception
End Try
End Sub
Sub clearmsg()
lblmsg.Text = ""
lblmsg0.Text = ""
End Sub
Imports System.Data.SqlClient
Imports System.Data
Imports System.Drawing
Imports System.IO
Imports System.Drawing.Imaging
Partial Class newguest
Inherits System.Web.UI.Page
Function constr() As String
Dim y As New
IO.StreamReader(Server.MapPath("adminpanel/dataconfig/
dataval.config"))
Dim x As String = y.ReadToEnd
y.Close()
Return x
End Function
Protected Sub Page_Load(ByVal sender As Object, ByVal
e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
Session("user") = Session("user")
Session("logtype") = Session("logtype")
''Sub filltime()
'' Dim i As Integer = 1
'' DropDownList6.Items.Clear()
'' DropDownList6.Items.Add("Select")
'' For i = 0 To 60
'' DropDownList6.Items.Add(i)
'' Next
''End Sub
Sub fillnos()
Try
ddchild.Items.Clear()
ddadult.Items.Clear()
Dim n As Integer = 0
For n = 0 To 15
ddchild.Items.Add(n)
ddadult.Items.Add(n)
Guest Registration and Verification System 113
Next
Catch ex As Exception
End Try
End Sub
Sub fillcountry()
Try
Using cn As New SqlConnection(constr())
Dim cmd As New SqlCommand("Select * from
countries", cn)
cn.Open()
Dim dr As SqlDataReader
dr = cmd.ExecuteReader
ddcountry.Items.Clear()
ddcountry.Items.Add("Select")
If dr.HasRows Then
While dr.Read
ddcountry.Items.Add(dr("country"))
End While
End If
cn.Close()
End Using
Catch ex As Exception
End Try
End Sub
Sub fillstate()
Try
Using cn As New SqlConnection(constr())
Dim cmd As New SqlCommand("Select * from
states", cn)
cn.Open()
Dim dr As SqlDataReader
dr = cmd.ExecuteReader
ddstate.Items.Clear()
ddstate.Items.Add("Select")
If dr.HasRows Then
While dr.Read
ddstate.Items.Add(dr("state"))
Guest Registration and Verification System 114
End While
End If
cn.Close()
End Using
Catch ex As Exception
End Try
End Sub
Sub filldistrict()
Try
Using cn As New SqlConnection(constr())
Dim cmd As New SqlCommand("Select * from
districts where state=@a1", cn)
cmd.Parameters.AddWithValue("@a1",
ddstate.SelectedItem.Text)
cn.Open()
Dim dr As SqlDataReader
dr = cmd.ExecuteReader
dddistrict.Items.Clear()
dddistrict.Items.Add("Select")
If dr.HasRows Then
While dr.Read
dddistrict.Items.Add(dr("district"))
End While
End If
cn.Close()
End Using
Catch ex As Exception
End Try
End Sub
End Try
End Function
End Try
End Sub
Sub clear()
ddadult.SelectedIndex = 0
ddchild.SelectedIndex = 0
DropDownList3.SelectedIndex = 0
''DropDownList5.SelectedIndex = 0
''DropDownList6.SelectedIndex = 0
''DropDownList7.SelectedIndex = 0
txtchkintime.Text = ""
txtaddr.Text = ""
txtchkin.Text = ""
txtemailid.Text = ""
txtfrom.Text = ""
txtguestdet.Text = ""
txtidno.Text = ""
txtmobile.Text = ""
txtname.Text = ""
txtparent.Text = ""
txtocc.Text = ""
txttown.Text = ""
fillcountry()
Guest Registration and Verification System 123
fillstate()
filldistrict()
End Sub
Imports System.Data.SqlClient
End Try
End Sub
Function cntguest(st As String) As Integer
Try
Dim qr As String = "Select count(*) from guests "
If st <> "" Then
qr = "Select count(*) from guests where
st=@st"
End If
Dim n As Integer = 0
Using cn As New SqlConnection(constr())
Dim cmd As New SqlCommand(qr, cn)
Guest Registration and Verification System 127
cmd.Parameters.AddWithValue("@st", st)
cn.Open()
Dim dr As SqlDataReader
dr = cmd.ExecuteReader
If dr.HasRows Then
While dr.Read
If Not IsDBNull(dr(0)) Then
n = dr(0)
End If
End While
End If
cn.Close()
End Using
Return n
Catch ex As Exception
End Try
End Function
End Class
Imports System.Data.SqlClient
Imports System.Data
Partial Class GuestDetail
Inherits System.Web.UI.Page
Function constr() As String
Dim y As New
IO.StreamReader(Server.MapPath("adminpanel/dataconfig/
dataval.config"))
Dim x As String = y.ReadToEnd
y.Close()
Return x
End Function
Protected Sub Page_Load(ByVal sender As Object, ByVal
e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
Session("user") = Session("user")
Session("logtype") = Session("logtype")
i=i+1
End While
End If
cn.Close()
End Using
lbldocs.Text = str
Catch ex As Exception
End Try
End Sub
End Class
Imports System.Data.SqlClient
Imports System.Data
Partial Class viewsummary
Inherits System.Web.UI.Page
Function constr() As String
Dim y As New
IO.StreamReader(Server.MapPath("dataconfig/dataval.confi
g"))
Dim x As String = y.ReadToEnd
y.Close()
Return x
End Function
Protected Sub Page_Load(ByVal sender As Object, ByVal
e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
If Session("logtype") = "" Then
Response.Redirect("default.aspx", False)
Exit Sub
End If
'f_date1.Text = Now.Date.ToString("MM/dd/yyyy")
'f_date2.Text = Now.Date.ToString("MM/dd/yyyy")
bindgridcontrol()
'' bindgridcontrol2()
End If
End Sub
End Try
End Sub
Sub bindgridcontrol()
Try
Dim qr As String = "", filter As String = "", i As
Integer = 1, cls As New Class1
End Try
End Sub
Protected Sub GridView1_PageIndexChanging(ByVal
sender As Object, ByVal e As
System.Web.UI.WebControls.GridViewPageEventArgs)
Handles GridView1.PageIndexChanging
Try
GridView1.PageIndex = e.NewPageIndex
bindgridcontrol()
GridView1.Focus()
Catch ex As Exception
End Try
End Sub
Sub clearmsg()
lblmsg.Text = ""
lblmsg0.Text = ""
End Sub
End Try
End Sub
End Class
Imports System.Data.SqlClient
Imports System.Data
Imports System.IO
Imports System.Drawing
Imports ClosedXML.Excel
Partial Class viewguests
Inherits System.Web.UI.Page
Function constr() As String
Dim y As New
IO.StreamReader(Server.MapPath("dataconfig/dataval.confi
g"))
Dim x As String = y.ReadToEnd
y.Close()
Return x
End Function
Protected Sub Page_Load(ByVal sender As Object, ByVal
e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
If Session("logtype") = "" Then
Response.Redirect("default.aspx", False)
Exit Sub
End If
Session("user") = Session("user")
Session("logtype") = Session("logtype")
lbluser.Text = Session("user")
lbllogtype.Text = Session("logtype")
Dim cls As New Class1
cls.fillstates(ddstate)
cls.filldistricts(dddistrict)
cls.fillps(ddps, dddistrict.SelectedItem.Text)
bindgridcontrol()
End If
End Sub
End Try
End Sub
Sub bindgridcontrol()
Try
Dim qr As String = "", filter As String = "", i As
Integer = 1, n As Integer = 0, cls As New Class1
If CheckBox1.Checked = True Then
If dddistrict.SelectedItem.Text <> "Select" Then
If i > 0 Then
filter = filter & " and "
End If
filter = filter & " guests.district='" &
dddistrict.SelectedItem.Text & "'"
Guest Registration and Verification System 142
i=i+1
End If
End If
If CheckBox2.Checked = True Then
If ddps.SelectedItem.Text <> "Select" Then
If i > 0 Then
filter = filter & " and "
End If
filter = filter & " hotels.psid='" &
ddps.SelectedItem.Value & "'"
i=i+1
End If
End If
If CheckBox3.Checked = True Then
If TextBox1.Text.Trim <> "" Then
If i > 0 Then
filter = filter & " and "
End If
filter = filter & " hotel.name like '%" &
cls.SafeSqlLiteral(TextBox1.Text.Trim, 2) & "%'"
i=i+1
End If
End If
If CheckBox8.Checked = True Then
If TextBox2.Text.Trim <> "" Then
If i > 0 Then
filter = filter & " and "
End If
filter = filter & " guests.name like '%" &
cls.SafeSqlLiteral(TextBox2.Text.Trim, 2) & "%'"
i=i+1
End If
End If
If CheckBox4.Checked = True Then
If ddcountry.SelectedItem.Text <> "Select" Then
If i > 0 Then
filter = filter & " and "
Guest Registration and Verification System 143
End If
filter = filter & " guests.country='" &
ddcountry.SelectedItem.Text & "'"
i=i+1
End If
End If
If CheckBox5.Checked = True Then
If ddstate.SelectedItem.Text <> "Select" Then
If i > 0 Then
filter = filter & " and "
End If
filter = filter & " guests.state='" &
ddstate.SelectedItem.Text & "'"
i=i+1
End If
End If
If CheckBox6.Checked = True Then
If ddhotel.SelectedItem.Text <> "Select" Then
If i > 0 Then
filter = filter & " and "
End If
filter = filter & " guests.hid=" &
ddhotel.SelectedItem.Value & ""
i=i+1
End If
ElseIf Val(Request.QueryString("hid")) <> 0 Then
If i > 0 Then
filter = filter & " and "
End If
filter = filter & " guests.hid=" &
cls.SafeSqlLiteral(Request.QueryString("hid"), 2) & ""
i=i+1
End If
If CheckBox7.Checked = True Then
If ddforeign.SelectedItem.Text <> "Select" Then
If i > 0 Then
filter = filter & " and "
Guest Registration and Verification System 144
End If
filter = filter & " guests.foreigner=" &
ddforeign.SelectedItem.Value & ""
i=i+1
End If
End If
If CheckBox9.Checked = True And
f_date1.Text.Trim <> "" Then
If i > 0 Then
filter = filter & " and "
End If
Dim dt As Date =
cls.SafeSqlLiteral(f_date1.Text.Trim, 2)
Dim dt1 As Date = dt
If f_date2.Text.Trim <> "" Then
dt1 = cls.SafeSqlLiteral(f_date2.Text.Trim, 2)
End If
filter = filter & " (checkin>='" & dt & "' and
checkin<='" & dt1 & "')"
i=i+1
End If
qr = "Select guests.*,hotels.title as
hotel,policestations.ps from guests,hotels,policestations
where guests.hid=hotels.id and
hotels.psid=policestations.id " & filter & " order by id desc"
Using con As New SqlConnection(constr())
con.Open()
Dim cmd As New SqlCommand(qr, con)
Dim da As New SqlDataAdapter
Dim dset As New DataSet
da.SelectCommand = cmd
da.Fill(dset, "users")
Session("dset") = dset
End Sub
Protected Sub ddcountry_SelectedIndexChanged(sender
As Object, e As System.EventArgs) Handles
ddcountry.SelectedIndexChanged
Dim cls As New Class1
cls.fillstates(ddstate)
cls.filldistricts(dddistrict, ddstate.SelectedItem.Text)
End Sub
Protected Sub ddstate_SelectedIndexChanged(sender As
Object, e As System.EventArgs) Handles
ddstate.SelectedIndexChanged
Dim cls As New Class1
cls.filldistricts(dddistrict, ddstate.SelectedItem.Text)
End Sub
Next
n=n+1
Next
Using wb As New XLWorkbook()
Guest Registration and Verification System 148
wb.Worksheets.Add(dt)
Response.Clear()
Response.Buffer = True
Response.Charset = ""
Response.ContentType =
"application/vnd.openxmlformats-
officedocument.spreadsheetml.sheet"
Response.AddHeader("content-disposition",
"attachment;filename=" & fn)
Using MyMemoryStream As New
MemoryStream()
wb.SaveAs(MyMemoryStream)
MyMemoryStream.WriteTo(Response.OutputStream)
Response.Flush()
Response.[End]()
End Using
End Using
Catch ex As Exception
End Try
End Sub
End Class
Firstly open the admin page in the system, then put the user name and the password for the
admin. Then the main tab will open showing as under :-
The guest registration and police station registration panel will open . after this we can open
the police station registration workspace which is as under:-
The police station master panel will open then, select the district of the nearby area police
station. After the selection enter the name of the police station of that area.
By pressing the save button the given details will be saved . as per head we can save the nearby
area police stations of that district which we select, the resulting output panel will be:-
As we can see the Rajbagh police in the station has been registered in the saved details.
After police station registration we have hotel registrations,
In this we can give usernames with password to various hostels of the districts
Now install the app from the open source network, then the app will be installed after that add
username and password created in the admin panel .
From this panel, we can easily checkout the guests from the registered hotels.
All software intended for public consumption should receive some level of
testing. The more complex or widely distributed a piece of software is, the more
essential testing is to its success. Without testing, you have no assurance that
software will behave as expected. The results in a public environment can be
truly embarrassing.
For software, testing almost always means automated testing. Automated tests use a
programming language to replay recorded user actions or to simulate the internal
use of a component. Automated tests are reproducible (the same test can be run
again and again) and measurable (the test either succeeds or fails). These two
advantages are key to ensuring that software meets product requirements.
The first step in testing is developing a test plan based on the product
requirements. The test plan is usually a formal document that ensures that the
product meets the following standards:
• How are tests written? Describe the languages and tools used for testing.
• Who is responsible for the testing? List the teams or individuals who write
and perform the tests.
• When are the tests performed? The testing schedule closely follows the
development schedule.
• Where are the tests and how are test results shared? Tests should be
organized so that they can be rerun on a regular basis.
• What is being tested? Measurable goals with concrete targets let you know
when you have achieved success.
Types of Tests
The test plan specifies the different types of tests that will be performed to ensure
that product meets customer requirements and does not contain defects.
Types of Tests
Test type Ensures that
Unit test Each independent piece of code works correctly.
Integration test All units work together without errors.
Newly added features do not introduce errors to
Regression test
other features that are already working.
Load test (also called The product continues to work under extreme
stress test) usage.
The product works on all of the target hardware
Platform test
and software platforms.
These test types build on each other, and the tests are usually performed in
the order shown
Unit tests are commonly written by the developer who programmed the
unit and are either written in the same programming language as the product unit
being tested or in a similar scripting language, such as VBScript. The unit test
Guest Registration and Verification System 159
itself can be as simple as getting and setting a property value, or it can be more
complicated. For instance, a unit test might take sample data and calculate a
result and then compare that result against the expected result to check for
accuracy.
The first integration test always answers the question, “Does the
application compile?” At this point, a compilation error in any of the components
can keep the integration testing from moving forward. Some projects use nightly
builds to ensure that the product will always compile. If the build fails, the
problem can be quickly resolved the next morning.
The most common build problem occurs when one component tries to use
another component that has not yet been written. This occurs with modular
design because the components are often created out of sequence. You solve this
problem by creating stubs. Stubs are nonfunctional components that provide the
class, property, or method definition used by the other component. Stubs are a
kind of outline of the code you will create later.
When all of the build problems are resolved, integration testing really
becomes just an extension of unit testing, although the focus is now whether the
units work together. At this point, it is possible to wind up with two components
that need to work together through a third component that has not been written
yet. To test these two components, you create a driver. Drivers are simply test
components that make sure two or more components work together. Later in the
project, testing performed by the driver can be performed by the actual
component.
Bottom-up testing
Bottom-up integration testing, as the name implies, begins construction and
testing with atomic modules (i.e. components at the lowest levels in the
program structure). Because components are integrated form the bottom-up,
processing required for components subordinate to a given level is always
available and the need for stubs is eliminated.
A bottom-up integration strategy may be implemented using the following
steps:
1. Low-level components are combined into clusters that perform a specific
sub-function.
2. .The cluster is tested. Drivers are removed and clusters are combined moving
upward in the program.
Guest Registration and Verification System 161
An overall plan for integration of the software and a description of specific
tests are documented in a test specification. This document contains a test plan
and a test procedure. It is a work product of the software process, and becomes
a part of the software configuration.
When you deploy a Web application, it might be used by one or two clients
at a time or it might get deluged by thousands of requests. To find out how well a
Web application will work in these varying conditions, you need to perform load
tests. Use the Microsoft ACT to create and run load tests on a Web application.
To use ACT, follow these steps:
1. Create a test by recording a user session with the Web application using
ACT.
2. Set the load level and duration properties for the test.
3. Run the test.
In general, load tests are not created as early in the development process or run as
frequently as unit, integration, or regression tests. The following sections
describe how to create and run load tests in more detail.
1. From the ACT Actions menu, choose New Test. ACT displays the New
Test Wizard.
2. Click Next. The wizard displays the Test Source page, as shown in Figure
3. Select Record a New Test, and click next. The wizard displays the Test
Type page, as shown in Figure
Selecting a language
6. Perform the actions you want to record. For instance, you might walk
through all the pages in your Web application, performing tasks on each
page.
Enter a name for the test, and click Next. The wizard displays the Completing the
New Test Wizard page. Click Finish to close the wizard.
8. After you record a test, it is displayed in the Tests list in ACT, as shown
ACT tests can be written in the VBScript or JScript languages, but ACT
records tests using VBScript only. After you record a test, set the load and
duration of the test by following these steps:
1. Right-click your test, and choose Properties on the shortcut menu. ACT
displays
2. Set the Test load level to increase the number of users accessing the Web
application at the same time. Set the Test duration to run the test for a
certain amount of time or for a certain number of requests. Click OK when
you’ve finished.
To run a load test in ACT, select the test, and then choose Start Test from the
Actions menu. ACT displays the Test Status dialog box, as shown
Platform Testing
To run platform tests, you need to set up a platform lab that contains
Verifying that each Web form is displayed correctly requires some human
intervention. ASP.NET renders server controls differently on different browsers,
so you should visually inspect your Web application as part of the final testing
cycle.
PLATFORM TESTING
3. Beta tests are conducted at one or more customer sites by the end-users
of the software. Unlike alpha testing, the developer is generally not
present. The beta test is thus a live application of the software in an
environment that cannot be controlled by the developer. The customer
Guest Registration and Verification System 170
records all the errors and reports these to the developer at regular
intervals.
4.
5.5 system testing
System testing is actually a series of tests whose purpose is to fully exercise the
computer-based system. Although each test has a different purpose, all work to
verify that system elements have been properly integrated and perform
allocated functions.
Some types of common system tests are:
Recovery testing
Many computer-based systems must recover from faults and resume processing
within a pre-specified time. In some cases, a system must be fault-tolerant, i.e.
processing faults must not cause overall system function to cease. In other
cases, a system failure must be corrected within a specified period of time or
severe economic damage will occur. Recovery testing is a system test that
forces the software to fail in a variety of ways and verifies that recovery is
properly performed. If recovery is automatic, re-initialization, check-pointing
mechanisms, data recovery and restart are evaluated for correctness. If recovery
requires human intervention, the mean-time-to-repair (MTTR) is evaluated to
determine whether it is within acceptable limits.
Security testing
Any computer-based system that manages sensitive information or causes
actions that can harm individuals is a target for improper or illegal penetration.
Security testing attempts to verify that protection mechanisms built into a
system will, in fact, protect it from improper penetration. During security
Stress testing
During earlier testing steps, white box and black box techniques result in a
thorough evaluation of normal program functions and performance. Stress tests
are designed to confront programs with abnormal situations. Stress testing
executes a system in a manner that demands resources in abnormal quantity,
frequency or volume. Essentially, the tester attempts to break the program.
A variation of stress testing is a technique called sensitivity testing. In some
situations, a very small range of data contained within the bounds of valid data
for a program may cause extreme and even erroneous processing or
performance degradation. Sensitivity testing attempts to uncover data
combinations within valid input classes that may cause instability or improper
processing.
Performance testing
Software that performs the required functions but does not conform to
performance requirements is unacceptable. Performance testing is designed to
test run-time performance of software within the context of an integrated
system. Performance testing occurs through all the steps in the testing process.
However, it is not until all system elements are fully integrated that the true
performance of a system can be ascertained.
Corrective maintenance
It means repairing processing or performance failures, or making changes
because of previously uncorrected problems or false assumptions. It involves
changing the software to correct defects.
1. Debugging and correcting errors or failures and emergency fixes.
2. Fixing errors due to incomplete specifications, which may result in erroneous
assumptions, such as assuming an employee code is 5 numeric digits instead of 5
characters.
Adaptive maintenance
Over time the environment for which the software was developed is likely to
change. Adaptive maintenance results in modifications to the software to
accommodate changes in the external environment.
For example:
1. Report formats may have been changed.
Guest Registration and Verification System 174
2. New hardware may have been installed (changing from 16-bit to 32-
bit environment)
We referred some books which had provides us with much of guidance to develop the
code for the website. There are few good books and websites that we referred to
develop vb codes, database connectivity etc.
Apart from codes these books and websites had provides us with few good
techniques and methodologies to develop the website. There are a list of few books
and websites that we referred are:
BOOKS:
• ADO.Net By Wrox Publication