You are on page 1of 82

ONLINE GAS BOOKING

Dissertation submitted to

BHARATHIDASAN UNIVERSITY

In partial fulfillment of the requirement for the award of the


Degree of
BACHELOR OF COMPUTER SCIENCE

Submitted by
NAME REG NO
S.ABINAYA CB13S 162581
C.SARANYA CB13S 162618
R.ELAVADHANI CB13S 162591

Guided by
Mr. G. MAGESH M.Sc., M.Phil., PGDCA., DEEE

DEPARTMENT OF COMPUTER SCIENCE

SWAMI DAYANANDA COLLEGE OF ARTS AND SCIENCE

MANJAKKUDI-612610

MARCH 2016
BONOFIED CERTIFICATE

This is certify that the project work entitled ONLINE GAS


BOOKING Submitted to Bharathidasan University Trichirapalli by

NAME REG NO

S.ABINAYA CB13S 162581

C.SARANYA CB13S 162618

R.ELAVADHANI CB13S 162591

In partial fulfillment of the requirements for the award of degree of


Bachelor of Science in computer science was the original work of the
candidates during the academic year 2015-2016

INTERNAL GUIDE HEAD OF THE DEPARTMENT

Viva-Voce Examination held on

EXTERNAL EXAMINER INTERNAL EXAMINER


ACKNOWLEDGEMENT

I would like to express deepest sense of gratitude to our POOJYA SRI


SWAMI DAYANANDA SARASWATI for his blessings.

With a deep sense of gratitude, we express our profound thanks to our Secretary
Mrs. SHEELA BALAJI. We Express our sincere sense of gratitude to our respected
Correspondent Mr. K. BASKAR and our Principal Prof. V. KAVITHA., M.Sc., M. Phil.,
Ph.D, and the academic director Dr. N. KANAKASEBESAN M.A., M. Phil ., Ph.D. Our
head of the department Prof T. VENKATESAN M.Sc., M. Phil., B.ED [SET] who gave the
permission to do the project .

We acknowledged our sincere thanks to Project Guide MRS.S.KASRTHURI


M.Sc., M. Phil, B.ED ., guided us nicely to finish this project.

We express our sincere thanks to our .NET in charge Prof. G.NADIMUTHU


M.Sc., M. Phil., for his special efforts, and his efficient coaching made us to bring out this
project timely and with all efficiency and satisfaction.

We acknowledgement our sincere thanks to our programmers R. ELAKKIYA,


MCA., and R. SHARMILA, MCA., M. Phil., her eminent guidelines made us to bring out
this project timely and satisfaction.
Our final gratitude to our PARENTS for their extraordinary support to our
project Externally.
Prostrations to Poojya Guru Dev

Reversed Swamiji,
This project work is submitted at your golden feet. May Swamiji”s Grace
and Blessings flow through us for fruitful future.
S.NO INDEX PAGE NO
1. INTRODUCTION
1.1 Abstract
1.2 Existing system
1.3 Proposed system
1.4 Scope of the system
SYSTEM ANALYSIS
2. 2.1 Feasibility Study
2.2 System requirement
2.3 System specification
SYSTEM DESIGN
3.1 Data flow diagram
3. 3.2 Table Design
3.3 Module description
4. SCREEN SHOT
5. CODING

6. SYSTEM TEST

7. CONCLUSION

8. REFERENCES
INTRODUCTION
Computerizing a gas booking system. The operations are

supplying of Gas to various Customers, Maintaining reorder level of Gas Cylinders and

to standardize the price of the Gas cylinders.

To get a Cylinder connection the customer must registered with the

Gas agency. So the details of the customers are maintained. The details are Customer

number, Customer name, address, phone number, booking date, number of cylinders and

the cylinder type. Cylinder type could be domestic or commercial.

Stock available is also recorded. Details like the current stock level, the

stock received, and the defects found in both commercial and domestic are all recorded.

Booking details are also recorded. It includes date, book number, Payment.

A master price list is maintained. This shows the different price for the

commercial and domestic cylinders. A report in the form of bill is generated.

1.1 ABSTRACT
The project ONLINE GAS BOOKING is used to book cylinder

through online. It reduces the time and effort of customer who wants to book cylinder. In

current days, accessing the internet is often a playful task. So customer feels a comfort to

book cylinders.

Our project includes the registration for the new customers. The customer

whether they are existing or new they can book the cylinder on the booking module by

entering the customer number. The project also consist of stock details.

Our project’s front end is ASP.NET and back end is MS-ACCESS.

1.2 EXISTING SYSTEM


The existing system is the manual system. The manual system is prone to error. It is

time consuming. It is very difficult for a person to produce the report. There are chances for

changing the scheme report and do malpractice. This system involves a lot of manual entries

with the applications to perform the desired task.

 Usage of papers in the payment process leads to less efficiency, less accuracy

and less productivity.

 Increasing expenditure for papers shuffling and storage.

 Increasing labors and hence errors.

 Less control of funds

 Time delay between the payment and its receipt.

 Persons who are present in different part of the world cannot transact

efficiently.

1.2 PROPOSED SYSTEM


The proposed system is designed to eliminate the drawbacks of the existing

system. It is designed by keeping to eliminate the drawbacks of the present system in order to

provide a permanent solution to the problems. The primary aim of the new system is to

speedup transactions. The report is prepared for the schemes and implemented by the

concerned officials.

Computerized save time in the entry process as well as producing reports.

The calculated result is accurate and retrieval of information is done easily and quickly. Many

of the actions are performed through a single click.


1.4 SCOPE OF THE SYSTEM

 To reduce the paper work

 To reduce complexity error

 Maintain security

 Avoid redundancy

 Giving accurate information

 User friendly

 Enables to view large volume of data in short time.


SYSTEM ANALYSIS

Steps in System analysis:


The first step is concerned with the identification of Customer’ need.

The second step is concerned with Software requirements analysis i.e., the

software on which, the new system will be developed, the resources which are needed to

develop the system and the risk which are incurred, while developing the system.

The third step is concerned with feasibility studies of the system, which

involves economic and technical analysis.

The final step deals with creating a system definition that forms the foundation

for all subsequent engineering works.

2.1 FEASIBILITY STUDY


Online Gas Booking is used to book gas cylinder through Online. It reduces the
time and effort of customer who wants to book cylinder The customer feels a comfort to
book a cylinder through online. It will be a multi-user system.

To get a Cylinder connection the Customer must registered with the Gas Agency.
so, the customer details are maintained.

This customer registration is for registering the new Customer who wants the new
gas cylinder connection. This customer registration includes the complete details of
customer like name, age. This is the main module of our Project. This module is for
Customer booking through online. This stock maintains the record of Cylinder available
in our agency.

The models are

Customer Registration

Booking

Stock Entry

Employee

Report

2.2 SYSTEM REQUIREMENTS


HARDWARE REQUIREMENTS

Processor : Intel Pentium i4

RAM : 2 GB

Hard Disk : 500 GB

Monitor : 19.5 Dell

Keyboard : Logitech

Mouse : Optical Mouse

SOFTWARE REQUIREMENTS

Front End : ASP.NET

Back End : MS ACCESS

Coding Language : C#

Operating System : Windows 7 ultimate

Web Server : IIS (Internet Information Services)

LANGUAGE SPECIFICATION
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 J Script .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.
Using Web services, businesses can expose programmatic interfaces to their data or business
logic, which in turn can be obtained and manipulated by client and server applications. XML
Web services enable the exchange of data in client-server or server-server scenarios, using
standards like HTTP and XML messaging to move data across firewalls. XML Web services
are not tied to a particular component technology or object-calling convention. As a result,
programs written in any language, using any component model, and running on any operating
system can access XML Web services

Each of these models can take full advantage of all ASP.NET features, as well as the
power of the .NET Framework and .NET Framework common language runtime. Accessing
databases from ASP.NET applications is an often-used technique for displaying data to Web
site visitors.

ASP.NET provides a simple model that enables Web developers to write logic that
runs at the application level. Developers can write this code in the global.aspx text file or in a
compiled class deployed as an assembly. This logic can include application-level events, but
developers can easily extend this model to suit the needs of their Web application.

ASP.NET provides easy-to-use application and session-state facilities that are familiar
to ASP developers and are readily compatible with all other .NET Framework APIs.

ASP.NET offers the IHttpHandler and IHttpModule interfaces. Implementing the


IHttpHandler interface gives you a means of interacting with the low-level request and
response services of the IIS Web server and provides functionality much like ISAPI
extensions, but with a simpler programming model. Implementing the IHttpModule interface
allows you to include custom events that participate in every request made to your
application. ASP.NET takes advantage of performance enhancements found in the .NET
Framework and common language runtime.

Additionally, it has been designed to offer significant performance improvements over


ASP and other Web development platforms. All ASP.NET code is compiled, rather than
interpreted, which allows early binding, strong typing, and just-in-time (JIT) compilation to
native code, to name only a few of its benefits. ASP.NET is also easily factorable, meaning
that developers can remove modules (a session module, for instance) that are not relevant to
the application they are developing.
ASP.NET provides extensive caching services (both built-in services and caching
APIs). ASP.NET also ships with performance counters that developers and system
administrators can monitor to test new applications and gather metrics on existing
applications. Writing custom debug statements to your Web page can help immensely in
troubleshooting your application's code. However, it can cause embarrassment if it is not
removed. The problem is that removing the debug statements from your pages when your
application is ready to be ported to a production server can require significant effort.

ASP.NET offers the Trace Context class, which allows us to write custom debug
statements to our pages as we develop them. They appear only when you have enabled tracing
for a page or entire application. Enabling tracing also appends details about a request to the
page, or, if you so specify, to a custom trace viewer that is stored in the root directory of your
application.

The .NET Framework and ASP.NET provide default authorization and authentication
schemes for Web applications. we can easily remove, add to, or replace these schemes,
depending upon the needs of our application . ASP.NET configuration settings are stored in
XML-based files, which are human readable and writable. Each of our applications can have a
distinct configuration file and we can extend the configuration scheme to suit our
requirements.

DATA ACCESS WITH ADO.NET

As you develop applications using ADO.NET, you will have different


requirements for working with data. You might never need to directly edit an XML file
containing data - but it is very useful to understand the data architecture in ADO.NET.

ADO.NET offers several advantages over previous versions of ADO:

 INTEROPERABILITY
 MAINTAINABILITY
 PROGRAMMABILITY
 PERFORMANCE SCALABILITY
INTEROPERABILITY

ADO.NET applications can take advantage of the flexibility and broad acceptance of
XML. Because XML is the format for transmitting datasets across the network, any
component that can read the XML format can process data. The receiving component need
not be an ADO.NET component.

The transmitting component can simply transmit the dataset to its destination without
regard to how the receiving component is implemented. The destination component might be
a Visual Studio application or any other application implemented with any tool whatsoever.
The only requirement is that the receiving component be able to read XML. SO, XML was
designed with exactly this kind of interoperability in mind.

MAINTAINABILITY

In the life of a deployed system, modest changes are possible, but substantial,
Architectural changes are rarely attempted because they are so difficult. As the performance
load on a deployed application server grows, system resources can become scarce and
response time or throughput can suffer. Faced with this problem, software architects can
choose to divide the server's business-logic processing and user-interface processing onto
separate tiers on separate machines.

In effect, the application server tier is replaced with two tiers, alleviating the
shortage of system resources. If the original application is implemented in ADO.NET using
datasets, this transformation is made easier.ADO.NET data components in Visual Studio
encapsulate data access functionality in various ways that help you program more quickly and
with fewer mistakes.

PERFORMANCE

ADO.NET datasets offer performance advantages over ADO disconnected record sets.
In ADO.NET data-type conversion is not necessary
SCALABILITY

ADO.NET accommodates scalability by encouraging programmers to conserve limited


resources. Any ADO.NET application employs disconnected access to data; it does not retain
database locks or active database connections for long durations.

VISUAL STUDIO .NET
Visual Studio .NET is a complete set of development tools for building ASP Web
applications, XML Web services, desktop applications, and mobile applications In addition to
building high-performing desktop applications, you can use Visual Studio's powerful
component-based development tools and other technologies to simplify team-based design,
development, and deployment of Enterprise solutions.

Visual Basic .NET, Visual C++ .NET, and Visual C# .NET all use the same integrated
development environment (IDE), which allows them to share tools and facilitates in the
creation of mixed-language solutions. In addition, these languages leverage the functionality
of the .NET Framework and simplify the development of ASP Web applications and XML
Web services.

Visual Studio supports the .NET Framework, which provides a common language
runtime and unified programming classes; ASP.NET uses these components to create ASP
Web applications and XML Web services. Also it includes MSDN Library, which contains all
the documentation for these development tools.

XML WEB SERVICES


XML Web services are applications that can receive the requested data using XML over
HTTP. XML Web services are not tied to a particular component technology or object-calling
convention but it can be accessed by any language, component model, or operating system.

In Visual Studio .NET, you can quickly create and include XML Web services using
Visual Basic, Visual C#, J Script, Managed Extensions for C++, or ATL Server.
XML SUPPORT

Extensible Markup Language (XML) provides a method for describing structured


data. XML is a subset of SGML that is optimized for delivery over the Web. The World Wide
Web Consortium (W3C) defines XML standards so that structured data will be uniform and
independent of applications. Visual Studio .NET fully supports XML, providing the XML
Designer to make it easier to edit XML and create XML schemas.

INTRODUCTION TO C#

C# is designed to be a simple, modern, general-purpose, object-oriented programming


language, borrowing key concepts from several other languages, most notably Java. C# could
theoretically be compiled to machine code, but in real life, it's always used in combination
with the .NET framework. Therefore, applications written in C#, requires the .NET
framework to be installed on the computer running the application. While the .NET
framework makes it possible to use a wide range of languages, C# is sometimes referred to as
THE .NET language, perhaps because it was designed together framework C# is an Object
Oriented language and does not offer global variables or functions Everything is wrapped in
classes, even simple types like int and string.

FEATURES OF C#

By design, C# is the programming language that most directly reflects the underlying
Common Language Infrastructure (CLI). Most of its intrinsic types correspond to value-types
implemented by the CLI framework.

However, the language specification does not state the code generation requirements
of the compiler: that is, it does not state that a C# compiler must target a Common Language
Runtime, or generate Common Intermediate Language (CIL), or generate any other specific
format. Theoretically, a C# compiler could generate machine code like traditional compilers
of C++ or FORTRAN. Some notable distinguishing features of C# are: here are no global
variables or functions. All methods and members must be declared within classes. Static
members of public classes can substitute for global variables and functions. Local variables
cannot shadow variables of the enclosing block, unlike C and C++.
Statements that take conditions, such as while and if, require an expression of a type
that implements the true operator, such as the Boolean type. While C++ also has a Boolean
type, it can be freely converted to and from integers, and expressions such as if (a) require
only that a is convertible to bool, allowing a to be an int, or a pointer. C# disallows this
"integer meaning true or false" approach on the grounds that forcing programmers to use
expressions that return exactly bool can prevent certain types of common programming
mistakes in C or C++ such as if (a = b) (use of assignment = instead of equality ==). In C#,
memory address pointers can only be used within blocks specifically marked as unsafe, and
programs with unsafe code need appropriate permissions to run. Most object access is done
through safe object references, which always either point to a "live" object or have the well-
defined null value; it is impossible to obtain a reference to a "dead" object (one which has
been garbage collected), or to a random block of memory.

An unsafe pointer can point to an instance of a value-type, array, string, or a block of


memory allocated on a stack. Code that is not marked as unsafe can still store and manipulate
pointers through the System. Int Ptr type, but it cannot dereference them. Managed memory
cannot be explicitly freed; instead, it is automatically garbage collected. Garbage collection
addresses the problem of memory leaks by freeing the programmer of responsibility for
releasing memory which is no longer needed. In addition to the try...catch construct to handle
exceptions, C# has a try...finally construct to guarantee execution of the code in the finally
block Multiple inheritance is not supported, although a class can implement any number of
interfaces. This was a design decision by the language's lead architect to avoid complication
and simplify architectural requirements throughout CLIC# is more type safe than C++. The
only implicit conversions by default are those which are considered safe, such as widening of
integers. This is enforced at compile-time, during JIT, and, in some cases, at runtime

MS ACCESS:

There are several fundamental tasks in access that you will use frequently. In
this section, you can quickly references essential access operations for bettering text, number,
and times; as well as special features that speed data entry, such as autocorrect. You’ll
discover how to quickly obtain the help you need while using access. For example, you can
explore tasks for using the new office assent to provide detailed assistance as you complete
task. This section also explains how to find data, navigate in the access objects and in dialog
boxes, and select data. In addition, you’ll find tasks that explain how to use undo and spell
check, and start and exit access.

CORRECT MISTAKES:

Auto correct:

Access has a feature called autocorrect that can automatically correct your
mistakes and reduce your typing time. Use auto correct typing errors, correct two capital
letters in a row, correct the capitalize accidental use to caps lock, capitalize the first letters
following a period and a space character, and correct text you type. If you have used word97
products, auto correct might be familiars to you. Auto correct only works when you are
adding data to a table, query, or form. It does not work in does not work in design view of the
object, nor while you are programming.

DATABASE OPEN:

Access enables you to open one database at time. If you have a database open in
view and you open another database. Access close the first to opens a new one. (In other
words, you do not have to one database to pen another).

EXIT ACCESS:

Unlike other program such as word or excel, you do not need to save changes
after you edit a record. You save changes automatically by moving to a different record on a
datasheet or a form. However, when you are editing or creating a design of an object, you will
be promoted to save changes when you close access.

HYPER LINKS:

You can enter hyperlinks to websites or documents on your computer or


your networks. Your table contains the hyperlinks description as underlined text. When you
click the link, you open your brow a record. You save changes automatically by moving to a
different record on a datasheet or a form. However, when you are editing or creating a design
of an object, you will be promoted to save changes when you close access.
NAVIGATE WITH THE INTEL MOUSE:

The Microsoft Intel mouse pointing device includes a small wheel between
the left and right mouse button. The wheel rolls forward and backward and depresses. The
Intel mouse makes navigates I access 97 easier. You can check the spelling of your data in
datasheet or form view; and check data in table, query, or form in the database window.

DATA FORMAT:

In addition places, you can change the format of number so that all number
looks consistent in your table. Numeric formats includes spellings the months or using
numbers for the month, and how many digits to use for the day and year. Text format includes
capitalization. Queries, forms and reports also enable you change the format places.

DATABASE: create new with wizard:

You can create a new database that is blank or let the database wizard create one
for you that contains the object you specify for it. The task, “database: create blank” describe
the former process. The task describes the use of the database wizard. Both procedures begin
the same way. When you use a wizard, access enable you to choose form sample field and
then create the tables, queries, forms, reports, and switchboard for you a switchboard is a form
with button that help a user navigate through the database. You can even have access populate
your database with sample data to help you learn how different features work in the sample
database.
PRIMARY KEY:

A primary key is the index used to uniquely in a table. Every table should table
one primary index, although other unique indexes can be defined. Often the primary index is
use to establish a relational ship with child table. The field that the primary key is related to in
the other table is called a foreign key. A primary key can contain one or more fields.
RELATIONSHIP BETWEEN TABLES:

When you define a relationship between two tables, you match the values in
one table to values in another table. In order to create a relationship, one or both of the table
of the tables requires that the values used in the match be unique. Normally an index in the
controlling or parent table is used, and a field in the child table is matched. In addition to
defining a relationship, you set referential integrity rules in the relationship dialog box. When
you enforce reverential integrity, you say that you do not want any orphan record sin child
table.

VALIDATE DATA FIELD VALIDATION:

You can create rules for a field where the values you enter must fail in a
specified range. Otherwise the data is not acceptable. Most likely, the user made a typically
error. If you change the table validation rules property. Example of validation rules includes
>100 and between 0 and 50 for number fields, or >date () (greater than today’s date).

BACKUP DATE:

It is very important to back up database in order to protect your data. Access


automatically saves results to disk, and will overwrites database on queries another actions
you perform. Often, your backup is the only protection you have form data lost. You can also
copy the database file using any of the following methods: Windows NT explorer, Microsoft
backup, MS_DOS COPY commands or the other backup software that words with
Windows95.

EXPORT DATA:

Access can export to different database file types or to other data files format.
Single records, multiple records, tables, queries, forms and reports can all be exported
depending on the file type.

Access creates a file in the format you specify. If a file doesn’t support long table
names, as is the case for foxpro2.5 for example, access truncates the fields appropriately in
the conversion. In some cases, you may need to install the file driver for the external program.
IMPORT DATA:

When you import data, you store the data in access table. When you import a text
or spreadsheet, you can append the directly to a table. When you import from a database table
the data goes into a new table. Then you can use an append query to add the data to another
table in your database. You begin importing the same way, regardless of the data type. If the
data type is your files of type list, you may need to install a driver.

SECURITY: DATA BASE ENCRYPTION/DECRYPTION:

When you encrypt a database, you scramble its data and definitions, marking the
file unreadable to anyone trying to decipher the data from another program. You use
encryption in congestion with user-level security. Encryption also compact the database file.
When you decrypt a database, an available for use in order to encrypt a database, you must
have exclusive or single-user use of the database file.

SECURITY: DATABASE PASSWORD:

You can secure a database by creating a password that allows the user full access to
the database file. When password access is on, a user supplies a password to open the file.
The password is encrypted and secured.
3.1 DATA FLOW DIAGRAM
Start

Main page

Customer Reg Booking Stock Entry Employee Reg Report

Database

Stop

3.2 TABLE DESIGN


Table 1: Customer Registration

Field Name Data Type


ID AutoNumber
Cus name Text
F name Text
Age Number
Gender Text
City Text
Address Text
Phone no Number
Mail Id Text

Table 2: Booking

Field Name Data Type


Cust name Text
B no Number
Weight Number
C rate Number
Date Text
Pay Text
Table 3: Stock

Field Name Data Type


Arrival date Text
S commercial Number
S domestic Number
C commercial Number
C domestic Number

Table 4: Employee

Field Name Data Type


Name Text
Father Husband name Text
Age Number
Gender Text
Address Text
Qualification Text
Phone no Number
E mail Text

MODULE DESCRIPTION
Customer registration
This registration module is for registering the new customer who wants the new
gas cylinder connection. This module include the compute the details of customer like
name, age, phone number, mail id .

Booking
This is the main module of our project. This module is for customer booking the
cylinder through online .

Stock Entry
This module maintains the record of cylinder available in our agency.

Employee Registration
This module includes the full details of employee who is working our agency.
HOME PAGE
CUSTOMER REGISTERATION
BOOKING
STOCK ENTRY
EMPLOYEE REGISTERATION
REPORT

LOGIN FORM
SAMPLE REPORT

CUSTOMER DETAILS

STOCK DETAILS
MASTER PAGE

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs"


Inherits="MasterPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>

<style type="text/css">
.style1
{
width: 1031px;
}
.style2
{
width: 1031px;
height: 21px;
}
</style>

</head>
<body bgcolor="#ccff99">
<p>
&nbsp;</p>
<form id="form1" runat="server">
<div>
&nbsp;<table style="width: 100%;">
<tr>
<td class="style1"
style="font-family: 'Times New Roman', Times, serif; font-size: 60px; color:
#008000; background-image: url('file:///C:/Users/Dell/Documents/Visual Studio
2008/online_gas_booking/domestic.jpg'); background-attachment: fixed;">

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

ONLINE GAS BOOKING&nbsp;&nbsp;&nbsp;

</td>
<td>
<img alt=""src="18970594-propane-gas-cylinder.jpg"
style="height: 276px; width: 224px" /></td>
<td>

</td> </tr>
<tr>
<td class="style2">
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl
="~/CUSTOMER_REG.aspx" >CUSTOMER_REG</asp:HyperLink>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl="~/book.aspx"
>BOOKING</asp:HyperLink>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
<asp:HyperLink ID="HyperLink6" runat="server" NavigateUrl="~/stock
details.aspx" >STOCK_ENTRY</asp:HyperLink>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
<asp:HyperLink ID="HyperLink7" runat="server"
NavigateUrl="~/Employee.aspx" >EMPLOYEE_REG</asp:HyperLink>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
<asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl ="~/admin log
in.aspx" >REPORT</asp:HyperLink>
</td>

</tr>
<tr>
<td class="style1">
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">

</asp:ContentPlaceHolder>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>

CUSTOMER REGISTERATION

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"


AutoEventWireup="true" CodeFile="CUSTOMER_REG.aspx.cs" Inherits="Default2"
Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">

s<asp:Label ID="Label1" runat="server" Text="Customer_name"></asp:Label>


<asp:TextBox ID="cus_name" runat="server" BorderColor="#333300"
style="margin-left: 87px" Width="244px"></asp:TextBox>

<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"


ControlToValidate="cus_name" ErrorMessage="customer name not
empty"></asp:RequiredFieldValidator>

<br />
<br />

<asp:Label ID="Label3" runat="server" Text="Father/Husband_name"></asp:Label>


<asp:TextBox ID="fa_name" runat="server" BorderColor="#333300"
style="margin-left: 48px" Width="245px"></asp:TextBox>

<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"


ControlToValidate="fa_name" ErrorMessage="father name or husband name must
"></asp:RequiredFieldValidator>

<br />
<br />
<asp:Label ID="Label4" runat="server" Text="Age"></asp:Label>
<asp:TextBox ID="age" runat="server" BorderColor="#333300"
style="margin-left: 158px" Width="110px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
ControlToValidate="age" ErrorMessage="Age not given
here"></asp:RequiredFieldValidator>
<br />
<br />
<asp:Label ID="Label5" runat="server" Text="Gender"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:RadioButton ID="RadioButton1" runat="server" BorderColor="#3399FF"
Text="Male" />
&nbsp;&nbsp;&nbsp;
<asp:RadioButton ID="RadioButton2" runat="server" Text="Female" />
<br />
<br />
<asp:Label ID="Label6" runat="server" Text="City"></asp:Label>
<asp:TextBox ID="city" runat="server" BorderColor="#333300"
style="margin-left: 160px" Width="242px"></asp:TextBox>
<br />
<br />
<asp:Label ID="Label7" runat="server" Text="Address"></asp:Label>
<asp:TextBox ID="addr" runat="server" BorderColor="#333300"
BorderStyle="Solid" style="margin-left: 137px" TextMode="MultiLine"
Width="238px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server"
ControlToValidate="addr" ErrorMessage="provide your
address"></asp:RequiredFieldValidator>
<br />
<br />
<asp:Label ID="Label8" runat="server" Text="Phone_number"></asp:Label>
<asp:TextBox ID="phno" runat="server" BorderColor="#333300"
BorderStyle="Solid" style="margin-left: 98px" Width="235px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"
ControlToValidate="phno" ErrorMessage="phone number not
given"></asp:RequiredFieldValidator>
<br />
<br />
<asp:Label ID="Label9" runat="server" Text="Mail_ID"></asp:Label>
<asp:TextBox ID="mail" runat="server" BorderColor="#333300"
BorderStyle="Solid" style="margin-left: 137px" Width="337px"></asp:TextBox>
<br />
<br />
<asp:Button ID="OK" runat="server"
style="margin-left: 191px" Text="Submit" Width="87px" onclick="OK_Click"
BackColor="#99CC00" />
<asp:Button ID="btncancel" runat="server" style="margin-left: 49px" Text="Cancel"
Width="94px" BackColor="#99CC00" onclick="btncancel_Click" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="btnupdate" runat="server" onclick="btnupdate_Click"
Text="update" BackColor="#99CC00" Width="80px" />
<br />

</asp:Content>
SUBMIT , UPDATE AND CANCEL

public partial class Default2 : System.Web.UI.Page


{

OleDbConnection con;
OleDbCommand cmd;
String str;

string gen;
OleDbDataAdapter da;

protected void Page_Load(object sender, EventArgs e)


{
con = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data
Source=C:/Users/Dell/Documents/ONLINEGASBOOKING.accdb");

protected void OK_Click(object sender, EventArgs e)


{
if (RadioButton1.Checked == true && RadioButton2.Checked == false)
gen = RadioButton1.Text;
else
gen = RadioButton2.Text;
con.Open();
str = "insert into
CUS_REG(cusname,fname,Age,gender,city,address,phoneno,mailid)values('" +
cus_name.Text + "','" + fa_name.Text + "'," + age.Text + ",'" + gen + "','" + city.Text + "','" +
addr.Text + "'," + phno.Text + ",'" + mail.Text + "')";
cmd = new OleDbCommand(str, con);
if (cmd.ExecuteNonQuery() == 1)
{
Response.Write("inserted");
}
else
{
Response.Write("not insert");
}
con.Close();
}

protected void btnupdate_Click(object sender, EventArgs e)


{
if (RadioButton1.Checked == true && RadioButton2.Checked == false)
gen = RadioButton1.Text;
else
gen = RadioButton2.Text;
con.Open();
String str1 = "update CUS_REG set fname='" + fa_name.Text + "',Age='" + age.Text +
"',gender='" + gen + "' ,city= '" + city.Text + "',address='" + addr.Text + "',phoneno='" +
phno.Text + "',mailid='" + mail.Text + "' where cusname='" + cus_name.Text + "' and
phoneno='" + phno.Text + "'";
cmd = new OleDbCommand(str1, con);
cmd.ExecuteNonQuery();
con.Close();
}
protected void btncancel_Click(object sender, EventArgs e)
{
cus_name.Text = "";
fa_name.Text = "";
age.Text = "";
city.Text = "";
addr.Text = "";
phno.Text = "";
mail.Text = "";

}
}

BOOKING

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"


AutoEventWireup="true" CodeFile="book.aspx.cs" Inherits="book" Title="Untitled Page"
%>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">

<p>
<asp:Label ID="Label1" runat="server" Text="Customer_name"
style="text-align: right"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;
<asp:TextBox ID="cust_name" runat="server" BorderColor="#003300"
BorderStyle="Solid" Width="214px"></asp:TextBox>
</p>
<p style="height: 3px">
<asp:Label ID="Label2" runat="server" Text="Book_no "></asp:Label>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;
<asp:TextBox ID="b_no" runat="server" BorderColor="#003300"
BorderStyle="Solid" Width="215px"></asp:TextBox>
</p>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;<p
style="height: 25px; margin-top: 0px; width: 792px;">

<asp:Label ID="Label3" runat="server" Text="cylinder_weight"></asp:Label>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:TextBox ID="weight" runat="server" BorderColor="#003300"
BorderStyle="Solid" Width="215px"></asp:TextBox>
</p>
<p
style="height: 25px; margin-top: 0px; width: 792px;">

<asp:Label ID="Label4" runat="server" Text="cylinder rate"></asp:Label>


<asp:TextBox ID="c_rate" runat="server" BorderColor="#003300"
BorderStyle="Solid" style="margin-left: 43px" Width="214px"></asp:TextBox>
</p>
<p
style="height: 25px; margin-top: 0px; width: 792px;">
<asp:Label ID="Label5" runat="server" Text="booking date"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:TextBox ID="date" runat="server" BorderColor="#003300" BorderStyle="Solid"
style="margin-left: 16px" Width="123px"></asp:TextBox>
</p>
<p
style="height: 25px; margin-top: 0px; width: 807px; margin-left: 0px;">

&nbsp;<asp:Label ID="Label6" runat="server" Text="Payment"></asp:Label>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:RadioButton
ID="RadioButton1" runat="server" Text="cash_on_delivery" />
&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:RadioButton ID="RadioButton2" runat="server" Text="online_credit" />
</p>
<p
style="height: 25px; margin-top: 0px; width: 792px;">

<asp:Button ID="Button1" runat="server" BackColor="#CCFF66"


style="margin-left: 163px; height: 26px;"
Text="Ok " Width="85px" onclick="Button1_Click" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="Button2" runat="server" BackColor="#CCFF66" Text="cancel "
Width="69px" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="Button3" runat="server" onclick="Button3_Click"
Text="View" BackColor="#CCFF66" style="height: 26px" Width="63px" />
</p>
<p style="height: 21px; width: 790px">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</p>

</asp:Content>
OK AND CANCEL

public partial class book : System.Web.UI.Page


{
OleDbConnection con = new OleDbConnection();
OleDbCommand cmd;
String str;

string pay;
OleDbDataAdapter da;

protected void Page_Load(object sender, EventArgs e)


{
con=new OleDbConnection("provider=Microsoft.ACE.OLEDB.12.0;Data
Source=C:/Users/Dell/Documents/ONLINEGASBOOKING.accdb");
}
protected void Button1_Click(object sender, EventArgs e)
{
if (RadioButton1.Checked == true & RadioButton2.Checked == false)
pay = RadioButton1.Text;
else
pay = RadioButton2.Text;

con.Open();
str = "insert into booking values('" +cust_name.Text + "'," + b_no.Text + "," +
weight.Text + "," +c_rate.Text+ ",'" + date.Text + "','" + pay + "')";
cmd = new OleDbCommand(str, con);
if (cmd.ExecuteNonQuery() == 1)
Response.Write("inserted");
else
Response.Write("not insert");
con.Close();
}

STOCK

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"


AutoEventWireup="true" CodeFile="stock details.aspx.cs" Inherits="stock_details"
Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">

<asp:Label runat="server" Text="arrival date"></asp:Label>


<asp:TextBox ID="arrival_dt" runat="server" BorderColor="#003300"
style="margin-left: 75px" Width="111px"></asp:TextBox>
<br />
<br />
<asp:Label ID="Label1" runat="server" Font-Bold="True" Text="stock
received"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Label ID="Label4" runat="server" Font-Bold="True" Text="Current
stock"></asp:Label>
<br />
<br />
<asp:Label ID="Label2" runat="server" Text="Commercial"></asp:Label>
<asp:TextBox ID="s_com" runat="server" BorderColor="#003300"
style="margin-left: 77px" Width="106px"
ontextchanged="s_com_TextChanged"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Label ID="Label5" runat="server" Text="Commercial "></asp:Label>
<asp:Label ID="Label7" runat="server"></asp:Label>
<br />
<br />
<asp:Label ID="Label3" runat="server" Text="Domestic"></asp:Label>
<asp:TextBox ID="s_dom" runat="server" BorderColor="#003300"
style="margin-left: 94px" Width="108px"
ontextchanged="s_dom_TextChanged"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Label ID="Label6" runat="server" Text="Domestic"></asp:Label>
<asp:Label ID="Label8" runat="server"></asp:Label>
<br />
<br />
<br />
<br />
<asp:Button ID="Button1" runat="server" BackColor="#FF99FF"
style="margin-left: 279px" Text="Save" Width="69px" onclick="Button1_Click" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="Button2" runat="server" BackColor="#FF99FF" Text="Close"
Width="67px" />
<br />
<br />

</asp:Content>

SAVE AND CLOSE

public partial class stock_details : System.Web.UI.Page


{
OleDbConnection con;
OleDbCommand cmd;
String str,str1;
OleDbDataReader dr;
string cc, cd;

protected void Page_Load(object sender, EventArgs e)


{

con = new OleDbConnection("provider=Microsoft.ACE.OLEDB.12.0;Data


Source=C:/Users/Dell/Documents/ONLINEGASBOOKING.accdb");
con.Open();
cmd = new OleDbCommand("select c_commercial,c_domestic from stock", con);
dr = cmd.ExecuteReader();
if (dr.HasRows)
{
while (dr.Read())
{
cc = dr[0].ToString();
cd = dr[0].ToString();
}

}
dr.Close();
con.Close();
if (cc != null && cd != null)
{
Label7.Text = cc;
Label8.Text = cd;
}

else
{
Label7.Text = "0";
Label8.Text = "0";
}
}
protected void Button1_Click(object sender, EventArgs e)
{
//int src, csc;
//src = Convert.ToInt32(s_com.Text);
//Label7.Text = s_com.Text;
//Label8.Text = s_dom.Text;
con.Open();
str = "insert into stock values('" + arrival_dt.Text + "'," + s_com.Text + "," + s_dom.Text
+ "," + Label7.Text + "," + Label8.Text + ")";
cmd = new OleDbCommand(str, con);
if (cmd.ExecuteNonQuery() == 1)
Response.Write("inserted");
else
Response.Write("not insert");
cmd = new OleDbCommand("select c_commercial,c_domestic from stock",con);
dr = cmd.ExecuteReader();
if (dr.HasRows)
{
while (dr.Read())
{
Label7.Text = dr[0].ToString();
Label8.Text = dr[0].ToString();
}
}
con.Close();
s_com.Text = "";
s_dom.Text = "";
arrival_dt.Text = "";
}
protected void s_dom_TextChanged(object sender, EventArgs e)
{

int rd = 0, cd = 0;
cd = Convert.ToInt32(Label8.Text);
rd = Convert.ToInt32(s_dom.Text);
cd = cd + rd;
Label8.Text = Convert.ToString(cd);
}
protected void s_com_TextChanged(object sender, EventArgs e)
{
int rd1, cd1 = 0,tot;
cd1 = Convert.ToInt32(Label7.Text);

rd1 = Convert.ToInt32(s_com.Text);
tot = cd1 + rd1;
Label7.Text = Convert.ToString(tot);
// calc1();
}
private void calc()
{
int rd = 0,cd=0,tot1;
cd = Convert.ToInt32(Label8.Text);
rd = Convert.ToInt32(s_dom.Text);
tot1 = cd + rd;
Label8.Text = Convert.ToString(tot1);
}
private void calc1()
{
int rd1, cd1 = 0;
cd1 = Convert.ToInt32(Label7.Text);

rd1 = Convert.ToInt32(s_com.Text);
cd1 = cd1 + rd1;
Label7.Text = Convert.ToString(cd1);
}
}
EMPLOYEE REGISTERATION

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"


AutoEventWireup="true" CodeFile="Employee.aspx.cs" Inherits="Employee"
Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">

<asp:Label ID="Label1" runat="server" Text="Name"></asp:Label>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:TextBox ID="name" runat="server" BorderColor="#003300"
Width="256px"></asp:TextBox>
<br />
<br />
<asp:Label ID="Label2" runat="server" Text="Father/Husband Name"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:TextBox ID="Fa_name" runat="server" BorderColor="#003300"
style="margin-left: 0px" Width="246px"></asp:TextBox>
<br />
<br />
<asp:Label ID="Label3" runat="server" Text="Age"></asp:Label>
<asp:TextBox ID="Age" runat="server" BorderColor="#003300"
style="margin-left: 212px"></asp:TextBox>
<br />
<br />
<asp:Label ID="Label4" runat="server" Text="Gender"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:RadioButton ID="RadioButton1" runat="server" Text="Male"
oncheckedchanged="Male_CheckedChanged" />

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;
<asp:RadioButton ID="RadioButton2" runat="server" Text="Female" />
<br />
<br />
<asp:Label ID="Label5" runat="server" Text="Address"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;
<asp:TextBox ID="Address" runat="server" BorderColor="#003300"
TextMode="MultiLine" Width="215px"></asp:TextBox>
<br />
<br />
<asp:Label ID="Label6" runat="server" Text="Qualification"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:TextBox ID="Quali" runat="server" BorderColor="#003300"
Width="217px"></asp:TextBox>
<br />
<br />
<asp:Label ID="Label7" runat="server" Text="Phone_Number"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:TextBox ID="phn_no" runat="server" BorderColor="#003300"
Width="216px"></asp:TextBox>
<br />
<br />
<asp:Label ID="Label8" runat="server" Text="E-mail"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:TextBox ID="E_mail" runat="server" BorderColor="#003300"
Width="363px"></asp:TextBox>
<br />
<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="Button1" runat="server" BackColor="#FF99CC" Text="Ok"
Width="86px" onclick="Button1_Click" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="Button2" runat="server" BackColor="#FF99CC" Text="Cancel"
Width="71px" />
<br />
<br />
<br />
<br />

</asp:Content>

OK AND CANCEL

public partial class Employee : System.Web.UI.Page


{

OleDbConnection con;
OleDbCommand cmd;
String str;
string gen;
OleDbDataAdapter da;
protected void Page_Load(object sender, EventArgs e)
{
con = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data
Source=C:/Users/Dell/Documents/ONLINEGASBOOKING.accdb");
}
protected void Button1_Click(object sender, EventArgs e)
{

if (RadioButton1.Checked == true & RadioButton2.Checked == false)


gen = RadioButton1.Text;
else
gen = RadioButton2.Text;
con.Open();
str = "insert into Employee values('" + name.Text + "','" + Fa_name.Text + "'," +
Age.Text + ",'" + gen + "','" + Address.Text + "','" + Quali.Text + "'," + phn_no.Text + ",'" +
E_mail.Text+ "')";
cmd = new OleDbCommand(str, con);
if (cmd.ExecuteNonQuery() == 1)
Response.Write("inserted");
else
Response.Write("not insert");
con.Close();
}
protected void Male_CheckedChanged(object sender, EventArgs e)
{

protected void Button2_Click(object sender, EventArgs e)


{
name = "";
Fa_name = "";
Age = "";
Address = "";
Quali = "";
phn_no = "";
E_mail = "";

}
}
REPORT
LOGIN

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"


AutoEventWireup="true" CodeFile="admin log in.aspx.cs" Inherits="admin_log_in"
Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<p>
<br />
<asp:Label ID="Label1" runat="server" Text="Username"></asp:Label>
<asp:TextBox ID="Uname" runat="server" BorderColor="Black" BorderStyle="Solid"
style="margin-left: 75px" Width="213px"></asp:TextBox>
</p>
<p>
<asp:Label ID="Label2" runat="server" Text="Password"></asp:Label>
<asp:TextBox ID="pwd1" runat="server" BorderColor="Black" BorderStyle="Solid"
style="margin-left: 74px" TextMode="Password" Width="214px"></asp:TextBox>
&nbsp;&nbsp;&nbsp;
</p>
<p>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;
<asp:Button ID="Button1" runat="server" BackColor="#FF66CC"
style="margin-left: 0px" Text="Login" Width="58px"
onclick="Button1_Click1" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="Button2" runat="server" BackColor="#FF66CC" Text="Cancel"
onclick="Button2_Click" />

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;
</p>
</asp:Content>

LOGIN AND CANCEL

public partial class admin_log_in : System.Web.UI.Page


{
protected void Page_Load(object sender, EventArgs e)
{

protected void Button1_Click1(object sender, EventArgs e)


{
if (Uname.Text == "elavadhani" && pwd1.Text == "password")
{
Response.Redirect("report.aspx");
}
}
protected void Button2_Click(object sender, EventArgs e)
{
Uname.Text = "";
pwd1.Text = "";
}
}

REPORT

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"


AutoEventWireup="true" CodeFile="report.aspx.cs" Inherits="report" Title="Untitled Page"
%>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server"><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl ="cus_details.aspx"
>CUSTOMER_DETAILS</asp:HyperLink><br /><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:HyperLink ID="HyperLink5" runat="server" NavigateUrl="~/book_details.aspx"
>BOOKING _DETAILS</asp:HyperLink> <br /><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl ="stock_details.aspx"
>STOCK DETAILS</asp:HyperLink><br /><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl ="~/EMPDET.aspx"
>EMPLOYEE DETAILS</asp:HyperLink><br /><br />
</asp:Content>

CUSTOMER DETAILS

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"


AutoEventWireup="true" CodeFile="cus_details.aspx.cs" Inherits="cus_details"
Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<asp:GridView ID="GridView1" runat="server"
onselectedindexchanged="GridView1_SelectedIndexChanged">
</asp:GridView>
</asp:Content>

GRIDVIEW

public partial class cus_details : System.Web.UI.Page


{
OleDbConnection con;
OleDbCommand cmd;
protected void Page_Load(object sender, EventArgs e)
{
con = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data
Source=C:/Users/Dell/Documents/ONLINEGASBOOKING.accdb");
con.Open();

OleDbDataAdapter da = new OleDbDataAdapter("select * from CUS_REG", con);


DataTable dt = new DataTable();
da.Fill(dt);
GridView1.DataSource = dt;
GridView1.DataBind();
con.Close();
}
protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
{

}
}

BOOKING DETAILS

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"


AutoEventWireup="true" CodeFile="book_details.aspx.cs" Inherits="book_details"
Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<asp:GridView ID="GridView1" runat="server"
onselectedindexchanged="GridView1_SelectedIndexChanged">
</asp:GridView>
</asp:Content>

GRIDVIEW

public partial class book_details : System.Web.UI.Page


{
OleDbConnection con;
OleDbCommand cmd;
protected void Page_Load(object sender, EventArgs e)
{
con = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data
Source=C:/Users/Dell/Documents/ONLINEGASBOOKING.accdb");
con.Open();

OleDbDataAdapter da = new OleDbDataAdapter("select * from booking", con);


DataTable dt = new DataTable();
da.Fill(dt);
GridView1.DataSource = dt;
GridView1.DataBind();
con.Close();

}
protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
{

}
}
STOCK DETAILS

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"


AutoEventWireup="true" CodeFile="stock_details.aspx.cs" Inherits="stock_details"
Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<asp:GridView ID="GridView1" runat="server"
onselectedindexchanged="GridView1_SelectedIndexChanged">
</asp:GridView>
</asp:Content>
GRIDVIEW

public partial class stock_details : System.Web.UI.Page


{
OleDbConnection con;
OleDbCommand cmd;
protected void Page_Load(object sender, EventArgs e)
{
con = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data
Source=C:/Users/Dell/Documents/ONLINEGASBOOKING.accdb");
con.Open();

OleDbDataAdapter da = new OleDbDataAdapter("select * from stock", con);


DataTable dt = new DataTable();
da.Fill(dt);
GridView1.DataSource = dt;
GridView1.DataBind();
con.Close();
}
protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
{

}
}
EMPLOYEE DETAILS
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"
AutoEventWireup="true" CodeFile="EMPDET.aspx.cs" Inherits="EMPDET"
Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<asp:GridView ID="GridView1" runat="server">
</asp:GridView>
</asp:Content>
GRIDVIEW

public partial class EMPDET : System.Web.UI.Page


{
OleDbConnection con;
OleDbCommand cmd;
protected void Page_Load(object sender, EventArgs e)
{
con = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data
Source=C:/Users/Dell/Documents/ONLINEGASBOOKING.accdb");
con.Open();

OleDbDataAdapter da = new OleDbDataAdapter("select * from Employee", con);


DataTable dt = new DataTable();
da.Fill(dt);
GridView1.DataSource = dt;
GridView1.DataBind();
con.Close();

}
protected void GridView1_SelectedIndexChanged1(object sender, EventArgs e)
{

}
SYSTEM TEST

System Testing

Testing is an important element of project quality assurance and represents the

ultimate view of specification, design and coding. In testing a series of test cases are created

that are intended to demolish the project that has been developed. Testing requires that a

developer discard preconceived notation of the correctness of the project that has been

developed and overcome a conflict of interest that occurs when errors are uncovered.

 Testing is a process of executing a program with the intent of finding.

 A good test case is one that has high probability of finding an undiscovered error.

 A Successful test is one that covers an undiscovered error.

If the testing is conducted successfully according to the objectives stated above,

uncovered errors are found. Then the errors are corrected and then the testing process

continues until there are no more errors. This testing demonstrates that the project appears to

be working according to the specification, that performance requirements appear to have been

met.

Unit Testing

Unit testing is concerned with dynamic testing. Unit testing is performed prior to

integration of the unit into a larger system. It is like


Coding & debugging Unit testing Integration testing

A program unit must be tested for the following tests.

Functional Test : Functional tests refer to executing the code with standard inputs, for

which occur within the expected boundaries.

Performance Test : Performance test determines the execution time spent in various parts of

the unit, response time, device utilization and throughput. Performance testing will help the

tuning of the system.

Stress Test : Stress tests drive the system to its limits. They are designed to intentionally

break the unit.

Structure Test : Structure tests verify logical execution along different execution paths.

Functional, performance and stress tests are collectively known as “Block box

testing”. Structure testing is referred to as “White box” or “Glass box” testing.

System Testing

System testing involves two activities : Integration testing and Acceptance testing.

Integration strategy stresses on the order in which modules are written, debugged and unit

tested. Acceptance test involves functional tests, performance tests and stress tests to verify

requirements fulfillment. System checking checks the interfaces, decision logic, control flow,

recovery procedures, throughput, capacity and tuning characteristics of the entire system.
Integration Testing

Integration testing strategies include bottom-up (traditional), top-down and sandwich

strategies. Bottom-up integration consists of unit testing, followed by sub system testing,

followed by testing entire system. Unit testing tries to discover errors in modules. Modules

are tested independently in an artificial environment known as a “test harness”. Test harness

provide data environments and calling sequences for the routines and subsystems that are

being tested in isolation.

Acceptance Testing

Acceptance testing involves planning and execution of functional tests, performance

tests and stress tests in order to check whether the system implemented satisfies the

requirements specifications. Quality assurance tests and run them. In addition to functional

and performance tests, stress tests are performed to determine the limits/limitations of the

system developed.
CONCLUSION

This system has been designed keeping in mind the user requirements as the

primary objective. Moreover the system is designed in a structure manner. Therefore, the

maintenance of the system is also quite easy.

Practical comparisons have shown that the booking system has proved to the

faster and efficient when compared to the existing system. Necessary reports are also

generated. The system can also be enhanced in the future.

Hence I conclude that the system fulfill the requirements of the user.
REFERENCES

1. PROFESSIONAL ASP.NET 2.0 – Bill Even and Devin Reader.


2. MICROSOFT ASP.NET PROFESSIONAL PROGRAMMING
-Hersh Bhasin.

3. ASP.NET 2.0 BLACK BOOK - Dream Tech Press.

4. ASP.NET PROGRAMMING – Malt J.Crouch

You might also like