The document outlines the requirements for an online gas booking system, including functional requirements for customers to book refills and register for new connections online, and performance requirements for the system to track orders, deliveries, and customer complaints. It also provides details on the database design, including entity relationship diagrams and table descriptions, to support the online booking functionality.
Gas Service Excellence Presentation 20 May 2010 Ms Final
project
1. Online Gas Booking
~ 1 ~
Online gas booking system using C#.NET
Project Coordinators:-
Name College Name Form No.
Debojit Banerjee Guru Nanak Institute Of
Technology(GNIT)
14525
Rupai Bhadra Guru Nanak Institute Of
Technology(GNIT)
14530
Saurabh Paul Guru Nanak Institute Of
Technology(GNIT)
14529
Debjani Gupta Guru Nanak Institute Of
Technology(GNIT)
14527
Soumasri Banerjee Guru Nanak Institute Of
Technology(GNIT)
14523
Document sign date :Aug 27, 2013
2. Online Gas Booking
~ 2 ~
Acknowledgement
I would express my special thanks of my gratitude to my
teacher Mr. B.K Yogeshwaran as well as Globsyn Finishing School to give
the opportunity to do this wonderful project on the topic “Online Gas
Booking”, which also helped me in doing a lot of research and I came to
know about so many new things. I am really thankful to them.
Secondly I would also like to thank my coordinator who helped me a
lot in finalizing this project within the limited time frame and with perfect
manner of efficiency apt and appropriately.
We are once to above mention people again grateful who deserve due credit
for enabling us to take on this project and for being with us till the end.
Document sign date :Aug 27, 2013
3. Online Gas Booking
~ 3 ~
INDEX
Item Page No
Acknowledgement 2
Feasibility
Study
4-6
Technology & System 4
Economic 5
Legal 5
Operation 5
Schedule 6
Software
Requirement
Specification
7-15
Domain Description 8
Scope & Purpose 9
Functional
Requirements
11
Performance
Requirements
12
Software &
Specification
15
Tools Platform &
language used
16
Database Design 17-27
ER Diagram 18
Table Description 21
Case Diagram 22-23
Page Flow 24-27
Screen Shots 28-47
Coding 48-71
HTML CODES 72-122
Future Improvement 123
Certificate 124-128
Document sign date :Aug 27, 2013
4. Online Gas Booking
~ 4 ~
Feasibility Study:
Feasibility studies aim to objectively and rationally uncover the strengths and
weaknesses of an existing business or proposed venture, opportunities and
threats as presented by the environment, the resources required to carry
through, and ultimately the prospects for success In its simplest terms, the two
criteria to judge feasibility are cost required and value to be attained. As such,
a well-designed feasibility study should provide a historical background of the
business or project, description of the product or service, accounting
statements, details of the operations and management, marketing research and
policies, financial data, legal requirements and tax obligations. Generally,
feasibility studies precede technical development and project implementation.
Five common factors in this feasibility:-
Technology and system feasibility:
The assessment is based on an outline design of system requirements in terms of
Input, Processes, Output, Fields, Programs, and Procedures. This can be
quantified in terms of volumes of data, trends, frequency of updating, etc. in
order to estimate whether the new system will perform adequately or not.
Technological feasibility is carried out to determine whether the company has the
capability, in terms of software, hardware, personnel and expertise, to handle the
completion of the project. When writing a feasibility report the following should
be taken to consideration:
A brief description of the business to assess more possible factor/s which
could affect the study
The part of the business being examined
The human and economic factor
The possible solutions to the problems
Document sign date :Aug 27, 2013
5. Online Gas Booking
~ 5 ~
Economic feasibility:
Economic analysis is the most frequently used method for evaluating the
effectiveness of a new system. More commonly known as the procedure is to
determine the benefits and savings that are expected from a candidate system
and compare them with costs. If benefits outweigh costs, then the decision is
made to design and implement the system. An entrepreneur must accurately
weigh the cost versus benefits before taking an action. Cost-based study: It is
important to identify cost and benefit factors, which can be categorized as
follows: 1. Development costs; and 2. Operating costs. This is an analysis of
the costs to be incurred in the system and the benefits derivable out of the
system. Time-based study: This is an analysis of the time required to achieve a
return on investments. The future value of a project is also a factor.
Legal feasibility:
Determines whether the proposed system conflicts with legal requirements,
e.g. a data processing system must comply with the local Data Protection Acts.
Operational feasibility:
Operational feasibility is a measure of how well a proposed system solves the
problems, and takes advantage of the opportunities identified during scope
definition and how it satisfies the requirements identified in the requirements
analysis phase of system development.
Document sign date :Aug 27, 2013
6. Online Gas Booking
~ 6 ~
Schedule feasibility:
A project will fail if it takes too long to be completed before it is useful.
Typically this means estimating how long the system will take to develop, and
if it can be completed in a given time period using some methods like payback
period. Schedule feasibility is a measure of how reasonable the project
timetable is. Given our technical expertise, are the project deadlines
reasonable? Some projects are initiated with specific deadlines. You need to
determine whether the deadlines are mandatory or desirable.
Document sign date :Aug 27, 2013
7. Online Gas Booking
~ 7 ~
SOFTWARE REQUIREMENT
SPECIFICATION
Document sign date :Aug 27, 2013
8. Online Gas Booking
~ 8 ~
Domain Description
Purpose:
Online gas booking is a method or process that helps to serve the customers to book for
either the cylinder refilling or to gain a new connection through online or web without any
inconvenience. The Customers has to avail to the consumer portal site for booking online for
a new or extra refill. So this project helps to reduce the problem of discrepancies of data
using electronic media.It is web based so it gives the customer an easy access of the product
from home.
The main players of this system are three.
They are:- i)The customer
ii)The distributor
iii) The Company.
Apart from this the followings are also included in the system:
The following modules are involved in this project:-
Customer Details
Transaction Details
Stock Details
Booking
Document sign date :Aug 27, 2013
9. Online Gas Booking
~ 9 ~
Scope:
Security : Security is ensured by protecting the system with passwords
24*7 Access: The website is accessible 24*7, that is at any time. So the booking and
registering operation can be done as and when required and also as per the server’s
requirement.
Availability: Indane gas is available anywhere and everywhere in the country and if
not then the availability constraint can be shown through the website easily without any
harassment.
Home Delivery: All LPG cylinders are home delivered, if required as per the day and
time of the customers
No Inconvenience: No inconvenience occurs here as it is not a manual process and all
the records are kept securely, so the ultimate customer satisfaction can be achieved.
Real-time response and user-friendliness.
Time saving.
Validation Checking: The validation for proper customer as well as the distributer
can be done through online in a more concise manner.
Document sign date :Aug 27, 2013
10. Online Gas Booking
~ 10 ~
Developers Responsibilities Overview :
The developer is responsible for:
1) Developing the system, this meets the SRS and solving all the requirements of the system.
2) Demonstrating the system and installing the system at client's location after the acceptance
testing is successful.
3) Submitting the required user manual describing the system interfaces to work on it and
also the documents of the system.
4) Conducting any user training that might be needed for using the system.
5) Maintaining the system for a period of one year after installation.
Document sign date :Aug 27, 2013
11. Online Gas Booking
~ 11 ~
Functional Requirements:
Input:
The system should take the customer’s consumer number, the address, the name, the email
id, and the nearest distributor’s location to book the refill. Apart from this the registration
purpose will take the customer details i.e. name, address, phone number, already taken
connection details, email id, nearest distributor location as the input.
Output:
In case of refill booking the system will give a token number along with the delivery date of
the cylinder as the output. In case of registration it will just show that the member is
successfully registered as the output.
Document sign date :Aug 27, 2013
12. Online Gas Booking
~ 12 ~
Performance requirements:
1) The System Should have two different slots for
New Connection Booking &
Online Refill booking.
2) For new Connection Booking the customer should register in himself in the site.
3) For Refill Booking only the registered customers can apply.
4) There should be a checking after the login of registered customers for their refill
booking about the following:
a) Valid Email Id.
b) Valid Telephone Number.
c) Valid Identification of the nearest distributor.
d) Password changing facility should be provided to the customers after they login
for the first time.
e) One customer can register only once and also can book for refilling at most
once.
Online Refill Booking Constraints:-
1) Only registered customers can book refill online.
2) The customer can book a single cylinder at a time.
3) The customer should give his/her consumer number while booking for refill and the
current date should be shown by default in the ‘booking date’ slot.
4) After the customer booked the gas online he/she should be given a token number
along with the delivery date of the cylinder.
5) All the booking information should be stored in a separate place so that in requirement
those can be accessed by the distributor as well as by the company only but not by the
other customers.
6) The customer’s information should be accessible by the distributors.
Document sign date :Aug 27, 2013
13. Online Gas Booking
~ 13 ~
7) The information about the distributers should be accessible by the company.
8) The distributor should be a licensed dealer of the company and only the licensed
distributors are shown in the options while the customer is booking his/her refiil.
9) The dealer should be able to see the pending order of the customers according to the
days and weeks.
Transparency portal:
There should be a transparency portal which should be accessible by the admin/ company to
notice the performance of the distributors, i.e. if the distributor is able to serve the customers
as per their requirements.
If the distributor is delivering the product according to the delivery date given to customer
while booking the refill.
If the distributor’s performance is not up to the mark according to the company then the
admin can cancel its dealership.
This portal is not accessible by the customers or by the distributors.
Complaint Launching:
The customer should be able to launch a complaint through online while he/she is
unsatisfied about the service and he/she should gain a complaint number which is again
stored and visible by the distributor a well as the company and accessible also.
Document sign date :Aug 27, 2013
14. Online Gas Booking
~ 14 ~
Feedback: The customer should be able to give his/her feedback through online
Contact Information:
The customer should be able to see the contact information of the company which includes
a) Phone No.
b) Website Address
The customer should be able to see the list of area offices and also able to see the
distributor list in those areas.
Document sign date :Aug 27, 2013
15. Online Gas Booking
~ 15 ~
SOFTWARE AND HARDWARE
SPECIFICATIONS
Hardware:
Processor : Intel Pentium or more
Ram : 256 MB or more
Cache : 512 KB
Hard disk : 16 GB hard disk recommended for primary partition.
Software:
Operating system : All editions: Windows NT 4.0/ 2000 or later or windows
Front End Software: Visual Basic.NET
Backend Software : Oracle 9i
Document sign date :Aug 27, 2013
16. Online Gas Booking
~ 16 ~
TOOLS, PLATFORM
LANGUAGES USED
The platform or software used to develop the project is Visual
Basic.Net.
Document sign date :Aug 27, 2013
17. Online Gas Booking
~ 17 ~
Database Design
E-R Diagram:
Entity Relationship Diagram (ERD):- Depicts relationships between
data objects.
Data objects:-any person, organization, device or software product
that produces or consumes information.
Attributes:-name a data object instance, describes its
characteristics, or make reference to another data object.
Relationship:-indicate the manner in which data objects are
connected to one another.
Cardinality:-in data modeling, cardinality specifies how the
number of occurrences of one object is related to number of
occurrences of anther object (1:1, 1: M, M: M).
Modality:-zero for an optional object relationship and one for a
mandatory relationship.
Document sign date :Aug 27, 2013
18. Online Gas Booking
~ 18 ~
Administrator
Admin ID
Admin Password
Manages
Dealer
License
Number
Name
Dealer Id
Accepts
Customer
Name
Customer Id
Place
Order
Has
Complaint
Has
Delivery Note Associate
Confirmation
Location
Complaint No
Delivery Id
Delivery Date
Order Id
Customer
Id
1
1
1
1
1
1
1
1
1
M
M
M
Order Date
Delivery Date
Address
Email ID
Password
Contact
Number
Pan card
no
Consumer
Number
Email ID
Customer
NameConsumer
no
Complaint
Details
Need
Document sign date :Aug 27, 2013
20. Online Gas Booking
~ 20 ~
TableDescription
Table Name: Customer Info
Field Name Data type Size
Customer_ID varchar 25
Customer Name Varchar 50
Consumer No varchar 25
PanCard_No varchar 25
Address varchar 80
Nearest Dealer Location varchar 50
Contact No numeric 15
Email_ID varchar 50
Password varchar 50
Table
Name:Distributor_Info
Field Name Data Type Size
Distributor Name varchar 30
Distributor_ID varchar 25
Area varchar 80
District varchar 30
State varchar 30
License_No varchar 50
Email_ID varchar 50
Password varchar 50
CylindersInHand numeric 20
Table Name:Booking_Info
Field Name Data Type Size
Booking_No varchar 50
Consumer_No varchar 50
Customer_Name varchar 50
Order_Date datetime 20
Token_No Varchar 25
Delivary_Date datetime 20
Status NotDespatched
Despatched
Received
Document sign date :Aug 27, 2013
21. Online Gas Booking
~ 21 ~
Table Name:Complaint_Info/ Grievances Management
Field Name Data Type Size
Complaint No varchar 20
Customer_Name varchar 50
Consumer_No varchar 30
Complaint_Details varchar 80
Status Open
Closed
UnderProgress
Table Name: New Connection
Field Name Data Type Size
customer_name varchar 50
customer_address varchar 80
city varchar 50
state varchar 50
Pan_card_no varchar 50
email_id varchar 50
Phone_no varchar 50
Nearest_ Dealer_Location varchar 50
Table Name:
DistOrderInfo
Field Name Data Type Size
OrderId varchar 50
OrderDate datetime 20
CylinderCount numeric 20
Distributor_ID varchar 50
DestpatchDetails varchar 80
Status NotDespatched
Despatched
Received
Table Name: Terminate Connection
Field Name Data Type Size
Customer_Name varchar 50
Consumer_Number varchar 50
Document sign date :Aug 27, 2013
22. Online Gas Booking
~ 22 ~
Case Diagram
Use case diagram describe the functionality of a system and users of the system
and is used to indicate the existence of use cases, actors and their relationships
and the courses of actions that can be performed. It is used to indicate the
existence of use cases ,actors and their relationships and the courses of actions
that can be performed. It is used to illustrate the static use case view of a system.
A use case model can be helpful in project development, planning and
documentation of system requirements.
Document sign date :Aug 27, 2013
23. Online Gas Booking
~ 23 ~
Administrator
Able to Access
Dealer Information
Able to Access
Customer
Information
Able to Access All the
Complaint
Information
Able to access Order
Information
i.e Rifill Booking,New
Connection,Terminate
Connection
Dealer
Able to Access
Customer
Information
Able to Access All
Dealer Information
Able to Access All the
Information about Rifill
Booking,New
Connection and
Terminate Connection
Able to Access All the
Complaint
Information
Customer
Able to Rifill Booking
Able to Get New
Connection
Able to Terminate
existing Connection
Able to Complaint
Document sign date :Aug 27, 2013
48. Online Gas Booking
~ 48 ~
CODING
Coading for Library
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Data;
namespace onlinegasbookinglib
{
public class customer
{
public void NewCustomer(string cust_id, string cust_name, string
consumerno, string address, string pan_no, string email_id, string password,
string nearest_dealer_loc, string phno)
{
SqlConnection con = new SqlConnection("Data
Source=.sqlexpress;Initial Catalog=Onlinegasbookingdb;Integrated
Security=True;Pooling=False");
con.Open();
SqlCommand cmd = new SqlCommand("insert into customer_info values(
@cust_id,@cust_name, @consumerno, @address, @pan_no, @email_id, @password,
@nearest_dealer_loc, @phno) ", con);
cmd.Parameters.AddWithValue("@cust_id", cust_id);
cmd.Parameters.AddWithValue("@cust_name", cust_name);
cmd.Parameters.AddWithValue("@consumerno", consumerno);
cmd.Parameters.AddWithValue("@address", address);
cmd.Parameters.AddWithValue("@pan_no", pan_no);
cmd.Parameters.AddWithValue("@email_id", email_id);
cmd.Parameters.AddWithValue("@password", password);
cmd.Parameters.AddWithValue("@nearest_dealer_loc",
nearest_dealer_loc);
cmd.Parameters.AddWithValue("@phno", phno);
cmd.ExecuteNonQuery();
con.Close();
}
public void dealer_info(string dealer_id, string dealer_name, string area,
string district, string state, string license_no, string email_id, string
password, string cylinderinhand)
Document sign date :Aug 27, 2013
49. Online Gas Booking
~ 49 ~
{
SqlConnection con = new SqlConnection("Data
Source=.sqlexpress;Initial Catalog=Onlinegasbookingdb;Integrated
Security=True;Pooling=False");
con.Open();
SqlCommand cmd = new SqlCommand("insert into dealer_info
values(@dealer_id, @dealer_name, @area, @district, @state,
@license_no,@email_id, @password, @cylinderinhand) ", con);
cmd.Parameters.AddWithValue("@dealer_id", dealer_id);
cmd.Parameters.AddWithValue("@dealer_name", dealer_name);
cmd.Parameters.AddWithValue("@area", area);
cmd.Parameters.AddWithValue("@district", district);
cmd.Parameters.AddWithValue("@state", state);
cmd.Parameters.AddWithValue("@license_no", license_no);
cmd.Parameters.AddWithValue("@email_id", email_id);
cmd.Parameters.AddWithValue("@password", password);
cmd.Parameters.AddWithValue("@cylinderinhand", cylinderinhand);
cmd.ExecuteNonQuery();
con.Close();
}
public void c_update_pwd(string email_id, string password)
{
try
{
SqlConnection con;
SqlCommand cmd;
con = new SqlConnection("Data Source=.sqlexpress;Initial
Catalog=Onlinegasbookingdb;Integrated Security=True;Pooling=False");
con.Open();
cmd = new SqlCommand("update customer_info set
password=@password where email_id= @email_id", con);
cmd.Parameters.AddWithValue("@password", password);
cmd.Parameters.AddWithValue("@email_id", email_id);
cmd.ExecuteNonQuery();
con.Close();
}
catch (Exception ex)
{
throw ex;
}
}
public void CustomerBooking(string booking_no, string cust_no, string
cust_name, DateTime order_date , DateTime delivery_date, string status)
{
try
{
int token_no;
SqlConnection con = new SqlConnection("Data
Source=.sqlexpress;Initial Catalog=Onlinegasbookingdb;Integrated
Security=True;Pooling=False");
con.Open();
Document sign date :Aug 27, 2013
50. Online Gas Booking
~ 50 ~
SqlDataAdapter adpr= new SqlDataAdapter("select max(token_no)+1
from booking_info", con);
DataTable dtab= new DataTable();
adpr.Fill(dtab);
token_no= Convert.ToInt32(dtab.Rows[0][0].ToString());
SqlCommand cmd = new SqlCommand("insert into booking_info
values(@booking_no, @cust_no, @cust_name, @order_date, @token_no,
@delivery_date, @status) ", con);
cmd.Parameters.AddWithValue("@booking_no", booking_no);
cmd.Parameters.AddWithValue("@cust_no", cust_no);
cmd.Parameters.AddWithValue("@cust_name", cust_name);
cmd.Parameters.AddWithValue("@order_date", order_date);
cmd.Parameters.AddWithValue("@token_no", token_no);
cmd.Parameters.AddWithValue("@delivery_date", delivery_date);
cmd.Parameters.AddWithValue("@status", status);
cmd.ExecuteNonQuery();
con.Close();
}
catch (Exception ex)
{
throw ex;
}
}
public void c_signin(string email_id, string password)
{
try
{
SqlConnection con = new SqlConnection("Data
Source=.sqlexpress;Initial Catalog=Onlinegasbookingdb;Integrated
Security=True;Pooling=False");
con.Open();
SqlDataAdapter adpr;
DataTable dtab = new DataTable();
adpr = new SqlDataAdapter("select * from customer_info where
email_id=@email_id and password=@password", con);
adpr.SelectCommand.Parameters.AddWithValue("@email_id",
email_id);
adpr.SelectCommand.Parameters.AddWithValue("@password",
password);
adpr.Fill(dtab);
if (dtab.Rows.Count > 0)
{
Console.WriteLine("Logged in Successfully");
}
else
{
Console.WriteLine("Incorrect password/emailid");
}
Document sign date :Aug 27, 2013
51. Online Gas Booking
~ 51 ~
}
catch (Exception ex)
{
throw ex;
}
}
}
public class dealer
{
public void d_signin(string email_id, string password)
{
try
{
SqlConnection con= new SqlConnection("Data Source=.sqlexpress;Initial
Catalog=Onlinegasbookingdb;Integrated Security=True;Pooling=False");
con.Open();
SqlDataAdapter adpr;
DataTable dtab= new DataTable();
adpr= new SqlDataAdapter("select * from customer_info where email_id=@email_id
and password=@password",con);
adpr.SelectCommand.Parameters.AddWithValue("@email_id", email_id);
adpr.SelectCommand.Parameters.AddWithValue("@password", password);
adpr.Fill(dtab);
if(dtab.Rows.Count>0)
{
Console.WriteLine("Logged in Successfully");
}
else
{
Console.WriteLine("Incorrect password/emailid");
}
}
catch(Exception ex)
{
throw ex;
}
}
public void DealerBooking(string order_id, DateTime order_date,
string cylindercount, string dealer_id, string despatch_details, string status)
{
try
{
Document sign date :Aug 27, 2013
52. Online Gas Booking
~ 52 ~
SqlConnection con = new SqlConnection("Data
Source=.sqlexpress;Initial Catalog=Onlinegasbookingdb;Integrated
Security=True;Pooling=False");
con.Open();
SqlCommand cmd = new SqlCommand("insert into
dealer_order_info values(@order_id, @order_date, @cylindercount, @dealer_id,
@despatch_details, @status) ", con);
cmd.Parameters.AddWithValue("@order_id", order_id);
cmd.Parameters.AddWithValue("@order_date", order_date);
cmd.Parameters.AddWithValue("@cylindercount",cylindercount);
cmd.Parameters.AddWithValue("@dealer_id", dealer_id);
cmd.Parameters.AddWithValue("@despatch_details",despatch_detai
ls);
cmd.Parameters.AddWithValue("@status",status);
cmd.ExecuteNonQuery();
con.Close();
}
catch (Exception ex)
{
throw ex;
}
}
}
public class admin
{
public void a_signin(string email_id, string password)
{
try
{
SqlConnection con= new SqlConnection("Data Source=.sqlexpress;Initial
Catalog=Onlinegasbookingdb;Integrated Security=True;Pooling=False");
con.Open();
SqlDataAdapter adpr;
DataTable dtab= new DataTable();
adpr= new SqlDataAdapter("select * from customer_info where email_id=@email_id
and password=@password",con);
adpr.SelectCommand.Parameters.AddWithValue("@email_id", email_id);
adpr.SelectCommand.Parameters.AddWithValue("@password", password);
adpr.Fill(dtab);
if(dtab.Rows.Count>0)
{
if (email_id == "administrator" && password == "administrator")
{
Console.WriteLine("logged in successfully");
}
else
{
Document sign date :Aug 27, 2013
53. Online Gas Booking
~ 53 ~
Console.WriteLine("Incorrect password/emailid");
}
}
}
catch(Exception ex)
{
throw ex;
}
}
}
}
HOME PAGE
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using onlinegasbookinglib;
using System.Data.SqlClient;
namespace OnlineGasBooking1
{
public partial class _Default : System.Web.UI.Page
{
protected void BtnSignUpHome_Click(object sender, EventArgs e)
{
Response.Redirect("CustomerSignUp.aspx");
}
protected void BtnNextCustomerLogIn_Click(object sender, EventArgs e)
{
try
{
Document sign date :Aug 27, 2013
54. Online Gas Booking
~ 54 ~
SqlConnection con = new SqlConnection("Data
Source=.sqlexpress;Initial Catalog=Onlinegasbookingdb;Integrated
Security=True;Pooling=False");
con.Open();
SqlDataAdapter adpr;
DataTable dtab = new DataTable();
adpr = new SqlDataAdapter("select * from customer_info where
email_id=@email_id and password=@password", con);
adpr.SelectCommand.Parameters.AddWithValue("@email_id",
txtemailid.Text);
adpr.SelectCommand.Parameters.AddWithValue("@password",
txtpassword.Text);
adpr.Fill(dtab);
if (dtab.Rows.Count > 0)
{
Response.Write(" Logged in Successfully");
Session["emailid"] = txtemailid.Text;
Response.Redirect("customersignin.aspx");
}
else
{
Response.Write("Incorrect password/emailid");
}
txtpassword.Text="";
txtemailid.Text="";
}
catch (Exception ex)
{
throw ex;
}
}
protected void btndsignin_Click(object sender, EventArgs e)
{
Response.Redirect("DealerSignIn.aspx");
}
protected void btnadminlogin_Click(object sender, EventArgs e)
{
onlinegasbookinglib.admin obj= new admin();
obj.a_signin(txtemailid.Text, txtpassword.Text);
Response.Write("Logged in Successfully");
txtaemailid.Text = "";
txtapassword.Text = "";
Response.Redirect("AdminSignIn.aspx");
Session["aemailid"] = txtaemailid.Text;
}
Document sign date :Aug 27, 2013
55. Online Gas Booking
~ 55 ~
protected void BtnComplainHome_Click(object sender, EventArgs e)
{
Response.Redirect("complain.aspx");
}
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("DealerSignUp.aspx");
}
protected void BtnNextCustomerLogIn_Click1(object sender, EventArgs e)
{
try
{
SqlConnection con = new SqlConnection("Data
Source=.sqlexpress;Initial Catalog=Onlinegasbookingdb;Integrated
Security=True;Pooling=False");
con.Open();
SqlDataAdapter adpr;
DataTable dtab = new DataTable();
adpr = new SqlDataAdapter("select * from customer_info where
email_id=@email_id and password=@password", con);
adpr.SelectCommand.Parameters.AddWithValue("@email_id",
txtemailid.Text);
adpr.SelectCommand.Parameters.AddWithValue("@password",
txtpassword.Text);
adpr.Fill(dtab);
if (dtab.Rows.Count > 0)
{
Session["emailid"] = txtemailid.Text;
Response.Write("logged in successfully");
}
else
{
Response.Write("Incorrect password/emailid");
}
Response.Redirect("customersignin.aspx");
}
catch (Exception ex)
{
throw ex;
}
}
}
}
Document sign date :Aug 27, 2013
56. Online Gas Booking
~ 56 ~
ADMIN SIGN UP
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
namespace OnlineGasBooking1
{
public partial class DealerSignUp : System.Web.UI.Page
{
protected void Button1_Click(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection("Data
Source=.sqlexpress;Initial Catalog=Onlinegasbookingdb;Integrated
Security=True;Pooling=False");
con.Open();
SqlCommand cmd = new SqlCommand("insert into dealer_signUp_Info
values(@dealer_id, @dealer_name, @area, @district, @state,
@license_no,@email_id, @password) ", con);
cmd.Parameters.AddWithValue("@dealer_id", txtdealerid.Text);
cmd.Parameters.AddWithValue("@dealer_name", txtdealername.Text);
cmd.Parameters.AddWithValue("@area",txtarea.Text);
cmd.Parameters.AddWithValue("@district",txtdistrict.Text);
cmd.Parameters.AddWithValue("@state", txtstate.Text);
cmd.Parameters.AddWithValue("@license_no",txtlicenseno.Text);
cmd.Parameters.AddWithValue("@email_id", txtemailid.Text);
cmd.Parameters.AddWithValue("@password",txtpassword.Text);
cmd.ExecuteNonQuery();
Response.Write("account created sucessfully");
txtdealerid.Text = "";
txtdealername.Text = "";
txtarea.Text = "";
txtdistrict.Text = "";
txtstate.Text = "";
txtlicenseno.Text = "";
txtemailid.Text = "";
txtpassword.Text = "";
con.Close();
Document sign date :Aug 27, 2013
57. Online Gas Booking
~ 57 ~
}
protected void txtarea_TextChanged(object sender, EventArgs e)
{
}
protected void TextBox1_TextChanged(object sender, EventArgs e)
{
}
}
}
ADMIN SIGN IN PAGE
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
namespace OnlineGasBooking1
{
public partial class AdminSignIn : System.Web.UI.Page
{
protected void Button4_Click(object sender, EventArgs e)
{
Response.Redirect("Admin_dealerorderinfo.aspx");
}
protected void btncustomerinfo_Click(object sender, EventArgs e)
{
Response.Redirect("Admin_customerinfo.aspx");
}
protected void btndealerinfo_Click(object sender, EventArgs e)
{
Response.Redirect("Admin_dealerinfo.aspx");
}
Document sign date :Aug 27, 2013
58. Online Gas Booking
~ 58 ~
protected void btncomplaintinfo_Click(object sender, EventArgs e)
{
Response.Redirect("Admin_complaintinfo.aspx");
}
protected void btnrefillbookinginfo_Click(object sender, EventArgs e)
{
Response.Redirect("Admin_Refillbookinginfo.aspx");
}
protected void btntermconinfo_Click(object sender, EventArgs e)
{
Response.Redirect("Admin_terminatedconnection.aspx");
}
protected void btnnewconnectioninfo_Click(object sender, EventArgs e)
{
Response.Redirect("Admin_newconnectioninfo.aspx");
}
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("Home.aspx");
}
}
}
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
namespace OnlineGasBooking1
{
public partial class Admin_Dealerinfo : System.Web.UI.Page
{
SqlConnection con;
SqlCommand cmd;
SqlDataAdapter adpr;
DataTable dtab;
Document sign date :Aug 27, 2013
59. Online Gas Booking
~ 59 ~
protected void Page_Load(object sender, EventArgs e)
{
con = new SqlConnection("Data Source=.sqlexpress;Initial
Catalog=Onlinegasbookingdb;Integrated Security=True;Pooling=False");
con.Open();
adpr = new SqlDataAdapter("select * from dealer_info", con);
dtab = new DataTable();
adpr.Fill(dtab);
griddealerinfo.DataSource = dtab;
griddealerinfo.DataBind();
}
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("AdminSignIn.aspx");
}
}
}
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
namespace OnlineGasBooking1
{
public partial class Admin_Dealerorderinfo : System.Web.UI.Page
{
SqlConnection con;
SqlCommand cmd;
SqlDataAdapter adpr;
DataTable dtab;
protected void Page_Load(object sender, EventArgs e)
{
con = new SqlConnection("Data Source=.sqlexpress;Initial
Catalog=Onlinegasbookingdb;Integrated Security=True;Pooling=False");
con.Open();
adpr = new SqlDataAdapter("select * from dealer_order_info", con);
dtab = new DataTable();
Document sign date :Aug 27, 2013
60. Online Gas Booking
~ 60 ~
adpr.Fill(dtab);
griddealerorder.DataSource = dtab;
griddealerorder.DataBind();
}
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("AdminSignIn.aspx");
}
}
}
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
namespace OnlineGasBooking1
{
public partial class Admin_customerinfo : System.Web.UI.Page
{
SqlConnection con;
SqlCommand cmd;
SqlDataAdapter adpr;
DataTable dtab;
protected void Page_Load(object sender, EventArgs e)
{
con = new SqlConnection("Data Source=.sqlexpress;Initial
Catalog=Onlinegasbookingdb;Integrated Security=True;Pooling=False");
con.Open();
adpr = new SqlDataAdapter("select * from customer_info", con);
dtab = new DataTable();
adpr.Fill(dtab);
gridcustomerinfo.DataSource = dtab;
gridcustomerinfo.DataBind();
}
protected void gridcustomerinfo_SelectedIndexChanged(object sender,
EventArgs e)
Document sign date :Aug 27, 2013
61. Online Gas Booking
~ 61 ~
{
}
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("AdminSignIn.aspx");
}
}
}
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
namespace OnlineGasBooking1
{
public partial class Admin_complaintinfo : System.Web.UI.Page
{
SqlConnection con;
SqlCommand cmd;
SqlDataAdapter adpr;
DataTable dtab;
protected void Page_Load(object sender, EventArgs e)
{
con= new SqlConnection("Data Source=.sqlexpress;Initial
Catalog=Onlinegasbookingdb;Integrated Security=True;Pooling=False");
con.Open();
adpr = new SqlDataAdapter("select * from complaint_info",con);
dtab = new DataTable();
adpr.Fill(dtab);
gridcomplaint.DataSource = dtab;
gridcomplaint.DataBind();
}
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("AdminSignIn.aspx");
}
Document sign date :Aug 27, 2013
62. Online Gas Booking
~ 62 ~
}
}
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
namespace OnlineGasBooking1
{
public partial class Admin_newconnectioninfo : System.Web.UI.Page
{
SqlConnection con;
SqlCommand cmd;
SqlDataAdapter adpr;
DataTable dtab;
protected void Page_Load(object sender, EventArgs e)
{
con = new SqlConnection("Data Source=.sqlexpress;Initial
Catalog=Onlinegasbookingdb;Integrated Security=True;Pooling=False");
con.Open();
adpr = new SqlDataAdapter("select * from dealer_order_info", con);
dtab = new DataTable();
adpr.Fill(dtab);
gridnewconnection.DataSource = dtab;
gridnewconnection.DataBind();
}
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("AdminSignIn.aspx");
}
}
}
using System;
using System.Collections;
Document sign date :Aug 27, 2013
63. Online Gas Booking
~ 63 ~
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
namespace OnlineGasBooking1
{
public partial class Admin_Refillbokkinginfo : System.Web.UI.Page
{
SqlConnection con;
SqlDataAdapter adpr;
DataTable dtab;
protected void Page_Load(object sender, EventArgs e)
{
con = new SqlConnection("Data Source=.sqlexpress;Initial
Catalog=Onlinegasbookingdb;Integrated Security=True;Pooling=False");
con.Open();
adpr = new SqlDataAdapter("select * from booking_info", con);
dtab = new DataTable();
adpr.Fill(dtab);
gridrifillbooking.DataSource = dtab;
gridrifillbooking.DataBind();
}
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("AdminSignIn.aspx");
}
}
}
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
Document sign date :Aug 27, 2013
64. Online Gas Booking
~ 64 ~
using System.Data.SqlClient;
namespace OnlineGasBooking1
{
public partial class Admin_terminatedconnection : System.Web.UI.Page
{
SqlConnection con;
SqlCommand cmd;
SqlDataAdapter adpr;
DataTable dtab;
protected void Page_Load(object sender, EventArgs e)
{
con = new SqlConnection("Data Source=.sqlexpress;Initial
Catalog=Onlinegasbookingdb;Integrated Security=True;Pooling=False");
con.Open();
adpr = new SqlDataAdapter("select * from terminate_connection",
con);
dtab = new DataTable();
adpr.Fill(dtab);
gridterminatedconnection.DataSource = dtab;
gridterminatedconnection.DataBind();
}
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("AdminSignIn.aspx");
}
}
}
CUSTOMER SIGN UP
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
namespace OnlineGasBooking1
{
Document sign date :Aug 27, 2013
65. Online Gas Booking
~ 65 ~
public partial class Customer_Sign_Up : System.Web.UI.Page
{
protected void BtnSubmitSignUp_Click(object sender, EventArgs e)
{
onlinegasbookinglib.customer obj = new
onlinegasbookinglib.customer();
obj.NewCustomer(txtcustid.Text, txtcustname.Text,
txtconsumerno.Text, txtaddress.Text, txtpanno.Text, txtemailid.Text,
txtpassword.Text, txtnearestdealerloc.Text, txtphno.Text);
Response.Write("inserted successfully");
}
}
}
CUSTOMER SIGN IN
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
namespace OnlineGasBooking1
{
public partial class customersignin : System.Web.UI.Page
{
protected void btnconnection_Click(object sender, EventArgs e)
{
Response.Redirect("Termination.aspx");
}
protected void btnnewconnection_Click(object sender, EventArgs e)
{
Response.Redirect("NewConnection.aspx");
}
Document sign date :Aug 27, 2013
66. Online Gas Booking
~ 66 ~
protected void btnrefillbooking_Click(object sender, EventArgs e)
{
Response.Redirect("Rifill.aspx");
}
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("Home.aspx");
}
}
}
UPDATE
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using onlinegasbookinglib;
namespace OnlineGasBooking1
{
public partial class CustomerUpdate : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
//LinkButton1.Text = Session["demailid"].ToString();
}
protected void btnsubmit_Click(object sender, EventArgs e)
{
onlinegasbookinglib.customer obj = new
onlinegasbookinglib.customer();
obj.c_update_pwd(txtemailid.Text, txtnewpwd.Text);
Response.Write("Password Changed Successfully");
txtemailid.Text = "";
txtnewpwd.Text = "";
}
Document sign date :Aug 27, 2013
67. Online Gas Booking
~ 67 ~
protected void LinkButton2_Click(object sender, EventArgs e)
{
// Session.Abandon();
}
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("Home.aspx");
}
}
}
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
namespace OnlineGasBooking1
{
public partial class NewConnection : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
LinkButton1.Text = Session["emailid"].ToString();
}
protected void Button1_Click(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection("Data
Source=.sqlexpress;Initial Catalog=Onlinegasbookingdb;Integrated
Security=True;Pooling=False");
con.Open();
SqlCommand cmd = new SqlCommand("insert into newconnection_info
values(@customer_name, @customer_address, @city, @state, @pancard_no,
@email_id, @phone_no, @nearest_dealer_location)", con);
cmd.Parameters.AddWithValue("@customer_name",txtcustomername.Text);
cmd.Parameters.AddWithValue("@customer_address",txtcustomeraddress.T
ext);
cmd.Parameters.AddWithValue("@city",txtcity.Text);
Document sign date :Aug 27, 2013
68. Online Gas Booking
~ 68 ~
cmd.Parameters.AddWithValue("@state",txtstate.Text);
cmd.Parameters.AddWithValue("@pancard_no",txtpancardno.Text);
cmd.Parameters.AddWithValue("@email_id",txtemailid.Text);
cmd.Parameters.AddWithValue("@phone_no",txtphoneno.Text);
cmd.Parameters.AddWithValue("@nearest_dealer_location",
txtnearestlocation.Text);
cmd.ExecuteNonQuery();
Response.Write("Inserted Successfully");
con.Close();
Console.ReadLine();
}
protected void btnsignout_Click(object sender, EventArgs e)
{
Session.Abandon();
}
protected void Button1_Click1(object sender, EventArgs e)
{
Response.Redirect("Home.aspx");
}
}
}
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
namespace OnlineGasBooking1
{
public partial class RIFLL : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
txtstatus.Text = "open";
}
Document sign date :Aug 27, 2013
69. Online Gas Booking
~ 69 ~
protected void Button1_Click(object sender, EventArgs e)
{
onlinegasbookinglib.customer obj = new
onlinegasbookinglib.customer();
obj.CustomerBooking(txtbookingno.Text, txtcustno.Text,
txtcustname.Text, clncorder.SelectedDate,clndeliver.SelectedDate,
txtstatus.Text);
Response.Write("inserted successfully");
}
protected void Button1_Click1(object sender, EventArgs e)
{
Response.Redirect("Home.aspx");
}
}
}
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
namespace OnlineGasBooking1
{
public partial class TERMINATION : System.Web.UI.Page
{
protected void btnterminate_Click(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection("Data
Source=.sqlexpress;Initial Catalog=Onlinegasbookingdb;Integrated
Security=True;Pooling=False");
con.Open();
SqlCommand cmd = new SqlCommand("Insert into terminate_connection
values(@customer_name, @consumer_no)",con);
cmd.Parameters.AddWithValue("@customer_name",txtcustomername.Text);
cmd.Parameters.AddWithValue("@consumer_no",txtconsumerno.Text);
cmd.ExecuteNonQuery();
Response.Write("Connection Terminated successfully");
Console.ReadLine();
}
Document sign date :Aug 27, 2013
70. Online Gas Booking
~ 70 ~
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("Home.aspx");
}
}
}
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
using onlinegasbookinglib;
namespace OnlineGasBooking1
{
public partial class DealerSignIn : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void BtnSubmitDealer_Click(object sender, EventArgs e)
{
Response.Redirect("dealerorderinfo.aspx");
}
protected void TxtDealerId_TextChanged(object sender, EventArgs e)
{
}
protected void TxtState_TextChanged(object sender, EventArgs e)
{
}
protected void Button4_Click(object sender, EventArgs e)
{
Response.Redirect("Admin_Refillbookinginfo.aspx");
}
protected void btncustomerinfo_Click(object sender, EventArgs e)
{
Document sign date :Aug 27, 2013