Documente Academic
Documente Profesional
Documente Cultură
We are thankful to God Almighty for his blessings, our beloved parents and
friends in helping us to complete our project successfully.
We hereby avail this opportunity to express our deep sense of gratitude and
indebtedness to institution “KRUPANIDHI INSTITUTION OF
MANAGEMENT “ which provide us an opportunity to fulfill the most
cherished desire of our ambition.
We kindly express our sincere thanks to our beloved Dean Prof.Rizwan Ali
Baig and Principal Dr.Haneefa Rizwan for enabling us to undertake this
project .
We also express our thanks to Mr. Pasha for his valuable guidance, co-
operation and support to complete the project successfully.
We kindly express our sincere thanks to Mrs.Rabi for his support, guidance
and co-operation to complete our project successfully.
We also express our sincere gratitude for the tremendous support given by
one and all in the department of Computer science.
We also once again convey our heart full thanks for our beloved parents who
are always behind our success.
CONTENTS
1. INTRODUCTION
2. SYNOPSIS
3. SYSTEM SPECIFICATION
HARDWARE SPECIFICATION
SOFTWARE SPECIFICATION
4. SYSTEM ANALYSIS
EXISTING SYSTEM
PROPOSED SYSTEM
5. SYSTEM DESIGN
DATA FLOW DIAGRAM
6. IMPLEMENTATION
ABOUT VISUAL BASICS 6.0
ABOUT MICROSOFT ACCESS 2003
7. CODING
8. TESTING
9. SCREEN SHOTS
10. CONCLUSION
11. BIBILOGRAPHY
1. INTRODUCTION
The project titled “StockWare” has been developed in Visual basic 6.0
as the front end and MicroSoft access 2003 as the backend. The prime
objective of this venture is to develop full-fledged software, which fulfills
the requirements of the Stocks maintenance for super markets &
shoping malls .
The main task is to provide the user easy facilities to Transfer Stocks
from warehouse to store. The project keenly concentrated on the
product details , stocks avilable in tha warehouse , product needed for
tha store , billing and bank transction details.
This project also contains the details about the vender, product
information purchase details and account all tha payments, finally
reports of all tha products avilable in the warehouse and stores and
report of sales .
2. SYNOPSIS
Vendor registration
Product Registration
WareHouse activities
Store activities
3. SYSTEM SPECIFICATION
HARDWARE ENVIRONMENT:
RAM Size : 1 GB
SOFTWARE ENVIRONMENT:
REQUIREMENT ANALYSIS
EXISTING SYSTEM
The store perform the stock taking on a daily basis and provides a
list of items required by the store to the warehouse .
The end customers are provided with an electronic bill which is
generated by an electronic machine which is fed with the MRPs of the
products.
The existing system use the following resources .
Ledgers.
Human Resources.
Note books.
Stationery items.
PROBLEM DEFINATION
The proposed system was build keeping in mind all the pros and
cons of the existing system and give a centralised control over the entire
system
The controlled flow of goods into the warehouse ,avoiding the dumping
of goods by vendors
The information about the goods running out of stock both in the
warehouse and store
The modal that was applied for this project is evolution development
model throw away
Prototype.
The following are the reasons that convinced us to choose this model as
the apt model for the development of our system
*limited spefications or requirements were laid down for the
development of the system
*reduce lifecycle cost
*to get better understanding about the requirments
*the limited time frame
PROTOTYPING
The process of throw away prototyping was used to develop the system
incrementally while obtaining feed back along the way. This approach
was chosen since the system specification was very abstract to the users
and they were not accustomed to articulating their requirements for the
system.
Preliminary sketch was prepared to give and idea of the actual system to
be developed with the design of the menus and the various tables
required in the process with the respective key fields , field names.
LEVEL 1:
Vendor Warehouse
Store Bill
LEVEL 2:
Bank
Warehouse Store
Vendor Product
registration registratio Issue
cheque purchase Bill
n
LEVEL 3:
Registration
Vendor Product
Warehouse
Cheque issue
Store
Bank
TABLENAME : BUSES
PRIMARY KEY : TRIP CODE
TABLENAME : CREDICTCARDINFO
PRIMARY KEY : CREDICTCARDNO
TABLENAME : ENQUIRY
PRIMARY KEY : USERNAME
The latest version of ASP is ASP 3.0. ASP.NET is the next generation of
ASP but not an upgraded version.
.NET Framework
C# Language
The goal of C# is to provide simple, safe, modern, object-oriented,
Internet-Centric, high performance language for .NET development. C#
is now a fully mature language and it draws on the lessons learned over
the past three decades. In much the way you can easily see in C# the
influence of Java, C++, Visual Basic and other languages. The focus of
C# is its use as a tool for programming on .NET platform, specifically
and especially with Visual Studio .NET 2005.
SQL SERVER
The database which has been used in this project is SQL Server 2005.
It provides a easy way to write the commands and execute it. SQL
Server provides a framework to .NET.
CODING
Code Efficiency
Efficiency is the key to production-quality code. Efficient code
means that a minimum of execution time, RAM resources, ROM
resources and stack size is required to run the code on an embedded
processor. Target link meets these high standards for production-quality
code generation through a variety of technological innovations. Target
link code optimization capabilities generally fall into 3 groups:
• Standard optimizations
• Interblock optimization
• Code pattern libraries
Validation checks
Some of the validations that are applied in this Reservation
System are that unauthorized access is denied and also makes the
system to close its application.
1. No field be empty
2. White spaces are not accepted as values
3. No text characters can be entered in Numeric Fields.
4. No record is modified with an empty slot
5. The users entered will get their menus activated depending on
their designation.
SOURCE CODE
MEMBERSHIP FORM
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
con.Close();
}
}
LOGIN FORM
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
static string a, b;
protected void Page_Load(object sender,
EventArgs e)
{
con.Open();
con.Close();
}
protected void bttreset_Click(object sender,
EventArgs e)
{
txtuser.Text = "";
txtpassword.Text = "";
}
}
WELCOME FORM
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
public partial class welcome : System.Web.UI.Page
{
if ((Session["KSRTC"] == "") ||
(Session["KSRTC"] == null))
{
Response.Redirect("login.aspx");
}
lblmsg.Text = Session["KSRTC"].ToString();
}
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
//Response.Write(dt.Length + "<br>");
if (dt.Length == 10)
{
for (int i = 0; i < dt.Length; i++)
{
if (dt.Substring(i, 1) != "/")
{
//Response.Write(dt.Substring(i
,1) + "<br>");
if ((dt.Substring(i, 1) != "0")
&&
(dt.Substring(i, 1) != "1")
&&
(dt.Substring(i, 1) != "2")
&&
(dt.Substring(i, 1) != "3")
&&
(dt.Substring(i, 1) != "4")
&&
(dt.Substring(i, 1) != "5")
&&
(dt.Substring(i, 1) != "6")
&&
(dt.Substring(i, 1) != "7")
&&
(dt.Substring(i, 1) != "8")
&&
(dt.Substring(i, 1) != "9")
)
{
return false;
}
}
}
else
{
return false;
}
return true;
}
String[] jr = dt.Split('/');
try
{
int intyear =
Int32.Parse(jr[2].ToString());
if (DateTime.Now.Year < intyear)
{
return "Year is greater than
current year.";
}
if (DateTime.Now.Year > intyear)
{
return "Year is less than current
year.";
}
int intmonth =
Int32.Parse(jr[1].ToString());
if (intmonth < DateTime.Now.Month)
{
return "Month is less than current
Month.";
}
if (intmonth > DateTime.Now.Month + 3)
{
return "Month is greater than valid
advance booking date.";
}
int intday =
Int32.Parse(jr[0].ToString());
if (intmonth == DateTime.Now.Month)
{
if (intday < DateTime.Now.Day)
{
return "Day is less than
Current Month's booking date.";
}
}
}
catch(IndexOutOfRangeException e)
{
return "Date Should be in dd/mm/yyyy
format....";
}
return "success";
}
//SqlConnection con = new
SqlConnection("Server=SQLOLEDB.1;Persist Security
Info=False;User ID=sa;password=sql2005;Initial
Catalog=asp;Data Source=USER");
if (Session["ksrtc"] == null) {
Page.ClientScript.RegisterStartupScript
(this.GetType(), "me", "alert('Please Login before
making a booking')", true);
Response.Redirect("login.aspx");
}
Session.Timeout = 140;
con.Close();
if(rbreturn.Checked==true &&
rbreturn.AutoPostBack==true )
{
lblrtdate.Visible = true;
txtrtdate.Visible = true;
//lblrttime.Visible = true;
//drdrttime.Visible = true;
}
else if(rbreturn.Checked == false &&
rboneway.AutoPostBack==true)
{
lblrtdate.Visible = false;
txtrtdate.Visible = false;
//lblrttime.Visible = false;
//drdrttime.Visible = false;
}
con.Close();
}
protected void bttsignout_Click(object sender,
EventArgs e)
{
Response.Redirect("signout.aspx");
}
protected void bttclose_Click(object sender,
EventArgs e)
{
Response.Redirect("welcome.aspx");
}
String valid_dt =
isValidEntry(txtjrdate.Text);
if (valid_dt != "success")
{
cont = false;
errmsg = valid_dt;
}
if ((rbreturn.Checked == true)){
//cont = false;
if (isDate(txtrtdate.Text)){
cont = true;
}else{
cont = false;
errmsg = "Return date should be in
dd/mm/yyyy format";
}
String valid_dtrt =
isValidEntry(txtrtdate.Text);
if (valid_dtrt != "success")
{
cont = false;
errmsg = "Return Journey- " +
valid_dtrt;
}
}
if (drdorigin.SelectedItem.Value == "0")
{
cont = false;
errmsg = "Select Journey Start Point";
}
if (drdestination.SelectedItem.Value ==
"0")
{
cont = false;
errmsg = "Select Destination
Point";
}
if (cont)
{
if (isDate(txtjrdate.Text))
{
cont = true;
}
else
{
cont = false;
errmsg = "Journey Date should
be in dd/mm/yyyy format";
}
}
Response.Write("errrrrr:" + errmsg);
if(cont) {
SqlConnection con = new SqlConnection("Data
source=.\\SQLEXPRESS;initial catalog=Transport;
Integrated Security=true");
con.Open();
int males = 0;
if (txtmale.Text != "")
{
males = Int32.Parse(txtmale.Text);
}
int females = 0;
if (txtfemale.Text != "")
{
females = Int32.Parse(txtfemale.Text);
}
int mal = 0;
if (txtmal.Text != "")
{
mal = Int32.Parse(txtmal.Text);
}
int fem = 0;
if (txtfem.Text != "")
{
fem = Int32.Parse(txtfem.Text);
}
if (rbreturn.Checked == true)
{
con.Close();
Response.Redirect("available.aspx?rdate=" +
txtrtdate.Text + "&jdate=" + txtjrdate.Text +
"&origin=" + drdorigin.SelectedItem + "&dest=" +
drdestination.SelectedItem);
}
else{
lblerror.Text = errmsg;
}
AVAILABLE FORM1
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
if (Session["ksrtc"] == null)
{
Page.ClientScript.RegisterStartupScript
(this.GetType(), "me", "alert('Please Login before
making a booking')", true);
Response.Redirect("login.aspx");
lblerror.Text = "";
lblmsg.Text = Session["ksrtc"].ToString();
}else
{
lbljr.Text = Request.QueryString["jdate"];
lbljr.Visible = true;
lblstpoint.Text =
Request.QueryString["origin"];
lblepoint.Text =
Request.QueryString["dest"];
con.Close();
}
protected void bttsignout_Click(object sender,
EventArgs e)
{
Response.Redirect("signout.aspx");
}
protected void bttsubmit_Click(object sender,
EventArgs e)
{
Response.Redirect("seat.aspx");
}
protected void bttgoback_Click(object sender,
EventArgs e)
{
Response.Redirect("search.aspx");
}
protected void bttclose_Click(object sender,
EventArgs e)
{
Response.Redirect("welcome.aspx");
}
}
AVAILABLE FORM2
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
Page.ClientScript.RegisterStartupScript
(this.GetType(), "me", "alert('Please Login before
making a booking')", true);
Response.Redirect("login.aspx");
}
lblmsg.Text = Session["ksrtc"].ToString();
SqlConnection con = new SqlConnection("Data
source=.\\SQLEXPRESS;initial catalog=Transport;
Integrated Security=true");
con.Open();
if (dr.HasRows)
{
gdreturntrip.DataSource = dr;
gdreturntrip.DataBind();
}
else
{
lbljr.Text = Request.QueryString["jdate"];
lbljr.Visible = true;
lblstpoint.Text =
Request.QueryString["origin"];
lblepoint.Text =
Request.QueryString["dest"];
con.Close();
}
protected void bttsignout_Click(object sender,
EventArgs e)
{
Response.Redirect("signout.aspx");
}
protected void bttsubmit_Click(object sender,
EventArgs e)
{
Response.Redirect("seat.aspx");
}
protected void bttgoback_Click(object sender,
EventArgs e)
{
Response.Redirect("search.aspx");
}
protected void bttclose_Click(object sender,
EventArgs e)
{
Response.Redirect("welcome.aspx");
}
}
SEAT FORM1
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
public partial class seat : System.Web.UI.Page
{
int seatcount = 0;
String returndate = null;
String destination = null;
String origin = null;
Page.ClientScript.RegisterStartupScript
(this.GetType(), "me", "alert('Please Login before
making a booking')", true);
Response.Redirect("login.aspx");
SqlDataReader dr;
sqlonward = "select
males,females,childmales,childfemales,journeydate,r
eturndate,destination,origin from tempjourney where
username='" + Session["ksrtc"] + "'";
SqlCommand cmd = new SqlCommand(sqlonward,
con);
dr = cmd.ExecuteReader();
if (dr.Read())
{
jdate = dr[4].ToString();
returndate = dr[5].ToString();
destination = dr[6].ToString();
origin = dr[7].ToString();
seatcount =
Int32.Parse(dr[0].ToString()) +
Int32.Parse(dr[1].ToString()) +
Int32.Parse(dr[2].ToString()) +
Int32.Parse(dr[3].ToString());
dr.Close();
SqlDataReader dr1;
while (dr1.Read())
{
seats = dr1[0].ToString();
seatarr = seats.Split(',');
{
case 1: CheckBox1.Visible =
false;
TextBox1.BackColor =
System.Drawing.Color.DarkBlue;
break;
case 2: CheckBox2.Visible =
false;
TextBox2.BackColor =
System.Drawing.Color.DarkBlue;
break;
case 3: CheckBox3.Visible =
false;
TextBox3.BackColor =
System.Drawing.Color.DarkBlue;
break;
case 4: CheckBox4.Visible =
false;
TextBox4.BackColor =
System.Drawing.Color.DarkBlue;
break;
case 5: CheckBox5.Visible =
false;
TextBox5.BackColor =
System.Drawing.Color.DarkBlue;
break;
case 6: CheckBox6.Visible =
false;
TextBox6.BackColor =
System.Drawing.Color.DarkBlue;
break;
case 7: CheckBox7.Visible =
false;
TextBox7.BackColor =
System.Drawing.Color.DarkBlue;
break;
case 8: CheckBox8.Visible =
false;
TextBox8.BackColor =
System.Drawing.Color.DarkBlue;
break;
case 9: CheckBox9.Visible =
false;
TextBox9.BackColor =
System.Drawing.Color.DarkBlue;
break;
}
count++;
}
con.Close();
}
protected void bttsignout_Click(object sender,
EventArgs e)
{
Response.Redirect("signout.aspx");
}
protected void bttclose_Click(object sender,
EventArgs e)
{
Response.Redirect("welcome.aspx");
}
protected void bttgoback_Click(object sender,
EventArgs e)
{
Response.Redirect("search.aspx");
}
protected void bttsubmit_Click(object sender,
EventArgs e)
{
Response.Redirect("passenger.aspx");
}
protected void CheckBox29_CheckedChanged(object
sender, EventArgs e)
{
}
protected void CheckBox19_CheckedChanged(object
sender, EventArgs e)
{
}
protected void Button1_Click(object sender,
EventArgs e)
{
lblerror1.Text = "";
int count = 0;
String seatsbooked = null;
if (CheckBox1.Checked) {
if(seatsbooked == null){
seatsbooked = CheckBox1.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox1.Text;
}
count++;
}
if (CheckBox2.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox2.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox2.Text;
}
count++;
}
if (CheckBox3.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox3.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox3.Text;
}
count++;
}
if (CheckBox4.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox4.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox4.Text;
}
count++;
}
if (CheckBox5.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox5.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox5.Text;
}
count++;
}
if (CheckBox6.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox6.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox6.Text;
}
count++;
}
if (CheckBox7.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox7.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox7.Text;
}
count++;
}
if (CheckBox8.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox8.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox8.Text;
}
count++;
}
if (CheckBox9.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox9.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox9.Text;
}
count++;
}
if (CheckBox10.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox10.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox10.Text;
}
count++;
}
if (CheckBox11.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox11.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox11.Text;
}
count++;
}
if (CheckBox12.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox12.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox12.Text;
}
count++;
}
if (CheckBox13.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox13.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox13.Text;
}
count++;
}
if (CheckBox14.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox14.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox14.Text;
}
count++;
}
if (CheckBox15.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox15.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox15.Text;
}
count++;
}
if (CheckBox16.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox16.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox16.Text;
}
count++;
}
if (CheckBox17.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox17.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox17.Text;
}
count++;
}
if (CheckBox18.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox18.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox18.Text;
}
count++;
}
if (CheckBox19.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox19.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox19.Text;
}
count++;
}
if (CheckBox20.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox20.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox20.Text;
}
count++;
}
if (CheckBox21.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox21.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox21.Text;
}
count++;
}
if (CheckBox22.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox22.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox22.Text;
}
count++;
}
if (CheckBox23.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox23.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox23.Text;
}
count++;
}
if (CheckBox24.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox24.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox24.Text;
}
count++;
}
if (CheckBox25.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox25.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox25.Text;
}
count++;
}
if (CheckBox26.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox26.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox26.Text;
}
count++;
}
if (CheckBox27.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox27.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox27.Text;
}
count++;
}
if (CheckBox28.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox28.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox28.Text;
}
count++;
}
if (CheckBox29.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox29.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox29.Text;
}
count++;
}
if (CheckBox30.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox30.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox30.Text;
}
count++;
}
if (CheckBox31.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox31.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox31.Text;
}
count++;
}
if (CheckBox32.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox32.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox32.Text;
}
count++;
}
if (CheckBox33.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox33.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox33.Text;
}
count++;
}
String sqlupdate;
con.Close();
if (returndate.Equals(""))
{
Response.Redirect("payment.aspx");
}
else
{
Response.Redirect("available1.aspx?
dest=" + origin + "&jdate=" + returndate +
"&origin=" + destination);
}
}
}
SEAT FORM2
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
Page.ClientScript.RegisterStartupScript
(this.GetType(), "me", "alert('Please Login before
making a booking')", true);
Response.Redirect("login.aspx");
SqlDataReader dr;
sqlonward = "select
males,females,childmales,childfemales,returndate
from tempjourney where username='" +
Session["ksrtc"] + "'";
SqlCommand cmd = new SqlCommand(sqlonward,
con);
dr = cmd.ExecuteReader();
if (dr.Read())
{
jdate = dr[4].ToString();
seatcount =
Int32.Parse(dr[0].ToString()) +
Int32.Parse(dr[1].ToString()) +
Int32.Parse(dr[2].ToString()) +
Int32.Parse(dr[3].ToString());
dr.Close();
SqlDataReader dr1;
while (dr1.Read())
{
seats = dr1[0].ToString();
seatarr = seats.Split(',');
case 1: CheckBox1.Visible =
false;
TextBox1.BackColor =
System.Drawing.Color.DarkBlue;
break;
case 2: CheckBox2.Visible =
false;
TextBox2.BackColor =
System.Drawing.Color.DarkBlue;
break;
case 3: CheckBox3.Visible =
false;
TextBox3.BackColor =
System.Drawing.Color.DarkBlue;
break;
case 4: CheckBox4.Visible =
false;
TextBox4.BackColor =
System.Drawing.Color.DarkBlue;
break;
case 5: CheckBox5.Visible =
false;
TextBox5.BackColor =
System.Drawing.Color.DarkBlue;
break;
case 6: CheckBox6.Visible =
false;
TextBox6.BackColor =
System.Drawing.Color.DarkBlue;
break;
case 7: CheckBox7.Visible =
false;
TextBox7.BackColor =
System.Drawing.Color.DarkBlue;
break;
case 8: CheckBox8.Visible =
false;
TextBox8.BackColor =
System.Drawing.Color.DarkBlue;
break;
case 9: CheckBox9.Visible =
false;
TextBox9.BackColor =
System.Drawing.Color.DarkBlue;
break;
count++;
}
con.Close();
}
protected void bttsignout_Click(object sender,
EventArgs e)
{
Response.Redirect("signout.aspx");
}
protected void bttclose_Click(object sender,
EventArgs e)
{
Response.Redirect("welcome.aspx");
}
protected void bttgoback_Click(object sender,
EventArgs e)
{
Response.Redirect("search.aspx");
}
protected void bttsubmit_Click(object sender,
EventArgs e)
{
Response.Redirect("passenger.aspx");
}
protected void CheckBox29_CheckedChanged(object
sender, EventArgs e)
{
}
protected void CheckBox19_CheckedChanged(object
sender, EventArgs e)
{
}
protected void Button1_Click(object sender,
EventArgs e)
{
lblerror1.Text = "";
int count = 0;
String seatsbooked = null;
if (CheckBox1.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox1.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox1.Text;
}
count++;
}
if (CheckBox2.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox2.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox2.Text;
}
count++;
}
if (CheckBox3.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox3.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox3.Text;
}
count++;
}
if (CheckBox4.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox4.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox4.Text;
}
count++;
}
if (CheckBox5.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox5.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox5.Text;
}
count++;
}
if (CheckBox6.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox6.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox6.Text;
}
count++;
}
if (CheckBox7.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox7.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox7.Text;
}
count++;
}
if (CheckBox8.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox8.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox8.Text;
}
count++;
}
if (CheckBox9.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox9.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox9.Text;
}
count++;
}
if (CheckBox10.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox10.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox10.Text;
}
count++;
}
if (CheckBox11.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox11.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox11.Text;
}
count++;
}
if (CheckBox12.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox12.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox12.Text;
}
count++;
}
if (CheckBox13.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox13.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox13.Text;
}
count++;
}
if (CheckBox14.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox14.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox14.Text;
}
count++;
}
if (CheckBox15.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox15.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox15.Text;
}
count++;
}
if (CheckBox16.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox16.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox16.Text;
}
count++;
}
if (CheckBox17.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox17.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox17.Text;
}
count++;
}
if (CheckBox18.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox18.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox18.Text;
}
count++;
}
if (CheckBox19.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox19.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox19.Text;
}
count++;
}
if (CheckBox20.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox20.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox20.Text;
}
count++;
}
if (CheckBox21.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox21.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox21.Text;
}
count++;
}
if (CheckBox22.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox22.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox22.Text;
}
count++;
}
if (CheckBox23.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox23.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox23.Text;
}
count++;
}
if (CheckBox24.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox24.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox24.Text;
}
count++;
}
if (CheckBox25.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox25.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox25.Text;
}
count++;
}
if (CheckBox26.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox26.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox26.Text;
}
count++;
}
if (CheckBox27.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox27.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox27.Text;
}
count++;
}
if (CheckBox28.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox28.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox28.Text;
}
count++;
}
if (CheckBox29.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox29.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox29.Text;
}
count++;
}
if (CheckBox30.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox30.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox30.Text;
}
count++;
}
if (CheckBox31.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox31.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox31.Text;
}
count++;
}
if (CheckBox32.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox32.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox32.Text;
}
count++;
}
if (CheckBox33.Checked)
{
if (seatsbooked == null)
{
seatsbooked = CheckBox33.Text;
}
else
{
seatsbooked = seatsbooked + "," +
CheckBox33.Text;
}
count++;
}
String sqlupdate;
con.Close();
Response.Redirect("payment.aspx");
}
}
PAYMENT FORM
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;
String sql;
sql = "select
t.origin,t.destination,t.journeydate,t.males,t.fema
les,t.childmales,t.childfemales,t.returndate,b.adul
tcharge,b.childcharge from tempjourney t,buses b
where t.username='" + Session["KSRTC"] + "' and
t.tripcodeone = b.tripcode";
dr = cmd.ExecuteReader();
if (dr.Read())
{
if (!(dr[7].ToString().Equals("")))
{
lblOriginval.Text = lblOriginval.Text +
" (Return Journey) ";
lblDOJ.Text = dr[2].ToString() + "
( Return - " + dr[7].ToString() + " )";
int totaladultseats =
Int32.Parse(dr[3].ToString()) +
Int32.Parse(dr[4].ToString());
int totalchildseats =
Int32.Parse(dr[5].ToString()) +
Int32.Parse(dr[6].ToString());
totalamount = ((adultcharge *
totaladultseats) + (childcharge *
totalchildseats));
amount = totalamount;
if (!(dr[7].ToString().Equals("")))
{
totalamount = totalamount * 2;
}
}
dr.Close();
conn.Close();
}
protected void Btnpay_Click(object sender,
EventArgs e)
{
if (Int32.Parse(txtamount.Text) >=
totalamount)
{
SqlConnection conn = new
SqlConnection("Data source=.\\SQLEXPRESS;initial
catalog=Transport; Integrated Security=true");
conn.Open();
String sql;
dr = cmd.ExecuteReader();
String val =
DateTime.UtcNow.ToString();
val = val.Replace("/", "");
val = val.Replace(" ", "");
val = val.Replace(":", "");
val = val.Replace("PM", "");
val = val.Replace("AM", "");
if (dr.Read())
{
if (!(dr[4].ToString().Equals("")))
{
dr.Close();
sql = "Delete from tempjourney where
username='" + Session["KSRTC"] + "'";
SqlCommand cmddelete = new
SqlCommand(sql, conn);
cmddelete.ExecuteNonQuery();
cmdcredit.ExecuteNonQuery();
conn.Close();
Response.Redirect("Thankyou.aspx?
ticket=" + val);
}
else
{
lblerror.Text = "Amount is less than
total amount";
}
}
}
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;
SqlDataReader dr;
sql = "select
males,females,childmales,childfemales,seat_no,total
,dateofjourney,origin,destination from
bookings,buses where
bookings.tripcode=buses.tripcode and ticketno='" +
Request.QueryString["ticket"] + "'";
SqlCommand cmd = new SqlCommand(sql, con);
dr = cmd.ExecuteReader();
lblticketno.Text =
Request.QueryString["ticket"];
while (dr.Read())
{
count = count + 1;
if (count == 1)
{
seatcount =
Int32.Parse(dr[0].ToString()) +
Int32.Parse(dr[1].ToString()) +
Int32.Parse(dr[2].ToString()) +
Int32.Parse(dr[3].ToString());
lblseats.Text =
seatcount.ToString();
lblseatno.Text = dr[4].ToString();
lbltotal.Text = dr[5].ToString();
lbldate.Text = dr[6].ToString();
lblorigin.Text = dr[7].ToString();
lbldest.Text = dr[8].ToString();
}
if (count == 2)
{
seatcount =
Int32.Parse(dr[0].ToString()) +
Int32.Parse(dr[1].ToString()) +
Int32.Parse(dr[2].ToString()) +
Int32.Parse(dr[3].ToString());
dr.Close();
con.Close();
}
}
DELETEBOOKING FORM
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;
}
protected void Button1_Click(object sender,
EventArgs e)
{
SqlConnection con = new SqlConnection("Data
Source=.\\SQLEXPRESS;initial
catalog=transport;integrated security=true");
con.Open();
String sql;
sql = "delete from bookings where
ticketno='" + TextBox1.Text + "'";
con.Close();
if (rt == 1)
{
Page.ClientScript.RegisterStartupScript
(this.GetType(), "me", "alert('Your ticket has been
cancelled!!!!');", true);
Response.Redirect("welcome.aspx");
}
else
{
Page.ClientScript.RegisterStartupScript
(this.GetType(), "me", "alert('Incorrect Ticket No.
Check the no. again!!!!')", true);
}
}
}
POSTPONMENT FORM
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using System.Numeric;
}
public Boolean isDate(String dt)
{
//Response.Write(dt.Length + "<br>");
if (dt.Length == 10)
{
for (int i = 0; i < dt.Length; i++)
{
if (dt.Substring(i, 1) != "/")
{
//Response.Write(dt.Substring(i
,1) + "<br>");
if ((dt.Substring(i, 1) != "0")
&&
(dt.Substring(i, 1) != "1")
&&
(dt.Substring(i, 1) != "2")
&&
(dt.Substring(i, 1) != "3")
&&
(dt.Substring(i, 1) != "4")
&&
(dt.Substring(i, 1) != "5")
&&
(dt.Substring(i, 1) != "6")
&&
(dt.Substring(i, 1) != "7")
&&
(dt.Substring(i, 1) != "8")
&&
(dt.Substring(i, 1) != "9")
)
{
return false;
}
}
}
else
{
return false;
}
return true;
}
try
{
int intyear =
Int32.Parse(jr[2].ToString());
int intyearreturn =
Int32.Parse(rt[2].ToString());
if (intyearreturn < intyear)
{
return "Return date is prior to
journey date.";
}
int intmonth =
Int32.Parse(jr[1].ToString());
int intmonthreturn =
Int32.Parse(rt[1].ToString());
if (intmonthreturn < intmonth)
{
return "Return date is prior to
journey date.";
}
int intday =
Int32.Parse(jr[0].ToString());
int intdayreturn =
Int32.Parse(rt[0].ToString());
if (intmonth == intmonthreturn)
{
if (intdayreturn < intday)
{
return "Return date is prior to
journey date.";
}
}
}
catch (IndexOutOfRangeException e)
{
return "Date Should be in dd/mm/yyyy
format....";
}
return "success";
}
String[] jr = dt.Split('/');
try
{
int intyear =
Int32.Parse(jr[2].ToString());
if (DateTime.Now.Year < intyear)
{
return "Year is greater than
current year.";
}
if (DateTime.Now.Year > intyear)
{
return "Year is less than current
year.";
}
int intmonth =
Int32.Parse(jr[1].ToString());
if (intmonth < DateTime.Now.Month)
{
return "Month is less than current
Month.";
}
if (intmonth > DateTime.Now.Month + 3)
{
return "Month is greater than valid
advance booking date.";
}
int intday =
Int32.Parse(jr[0].ToString());
if (intmonth == DateTime.Now.Month)
{
if (intday < DateTime.Now.Day)
{
return "Day is less than
Current Month's booking date.";
}
}
}
catch (IndexOutOfRangeException e)
{
return "Date Should be in dd/mm/yyyy
format....";
}
return "success";
}
String valid_dt =
isValidEntry(txtonwardpre.Text);
String validorg_dt =
isValidEntry(txtonwardorg.Text);
if ((valid_dt == "success") && (validorg_dt
== "success"))
{
if((txtreturnpre.Text != "") &&
(txtreturnorg.Text != ""))
{
String validret_dt =
isValidEntry(txtreturnpre.Text);
String validretorg_dt =
isValidEntry(txtreturnorg.Text);
String validonwardreturn =
isReturnValid(txtonwardorg.Text,
txtreturnorg.Text);
String validreturn =
isReturnValid(txtreturnorg.Text,
txtreturnpre.Text);
if ((validret_dt == "success") &&
(validretorg_dt == "success"))
{
if ((validonwardreturn ==
"success") && (validreturn == "success")){
SqlConnection con = new
SqlConnection("Data Source=.\\SQLEXPRESS;initial
catalog=transport;integrated security=true");
con.Open();
String sql;
sql = "update bookings set
dateofjourney='" + txtonwardpre.Text + "' where
ticketno='" + txtticket.Text + "' and
dateofjourney='" + txtonwardorg.Text + "'";
Page.ClientScript.RegisterStartupSc
ript(this.GetType(), "me", "alert('Your ticket has
been updated.')", true);
Response.Redirect("welcome.aspx");
}
else
{
lblerror.Text = "Postponed
Return Date is prior to Original Journey Date...";
}
}
else
{
lblerror.Text = "Invalid Return
Date...";
}
}// end if return date null check
}
else
{
lblerror.Text = "Invalid Journey
date...";
}
ENQUIRY FORM
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;
}
protected void Button1_Click(object sender,
EventArgs e)
{
if ((txtsubject.Text != "") &&
(txtdesc.Text != ""))
{
SqlConnection conn = new
SqlConnection("Data source=.\\SQLEXPRESS;initial
catalog=Transport; Integrated Security=true");
conn.Open();
String sql;
sql = "insert into
enquiry(username,subject,description) values('" +
Session["KSRTC"] + "','" + txtsubject.Text + "','"
+ txtdesc.Text + "')";
Page.ClientScript.RegisterStartupScript
(this.GetType(), "me", "alert('Your Enquiry has
been sent... Our customer executive will get back
to you shortly.')", true);
Response.Redirect("thanks.aspx");
}
else
{
lblerror.Text = " Please fill the
subject and description fields...";
}
}
}
EDITMEMBERSHIP FORM
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
if (dr.Read())
{
txtuserfullname.Text =
dr[0].ToString();
txtusername.Text = dr[1].ToString();
txtpassword.Text = dr[2].ToString();
drdgender.SelectedValue =
dr[3].ToString();
drdstatus.SelectedValue =
dr[4].ToString();
txtdateofbirth.Text = dr[5].ToString();
txtemailaddress.Text =
dr[6].ToString();
txtstreetaddress.Text =
dr[7].ToString();
txtcity.Text = dr[8].ToString();
txtstate.Text = dr[9].ToString();
drdcountry.SelectedValue =
dr[10].ToString();
txtpostalno.Text = dr[11].ToString();
txtphoneno.Text = dr[12].ToString();
txtfaxno.Text = dr[13].ToString();
txtmobileno.Text = dr[14].ToString();
}
dr.Close();
con.Close();
Page.ClientScript.RegisterStartupScript
(this.GetType(), "me", "alert('Record Updated!!!!
')", true);
Response.Redirect("login.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;
}
protected void Button1_Click(object sender,
EventArgs e)
{
if ((txtold.Text == "") || (txtnew.Text ==
"") || (txtconfirm.Text == ""))
{
lblerror.Text = "Enter all the
fields.";
}
else if (txtnew.Text != txtconfirm.Text)
{ lblerror.Text = "Passwords
Mismatch.";
}
else
{
Boolean recordexists = false;
SqlConnection con = new
SqlConnection("Data source=.\\SQLEXPRESS;initial
catalog=Transport; Integrated Security=true");
con.Open();
if (dr.Read())
{
recordexists = true;
}
dr.Close();
if (recordexists)
{
String sql1 = "update registration
set password='" + txtnew.Text + "' where
password='" + txtold.Text + "'";
SqlCommand cmd1 = new
SqlCommand(sql1, con);
cmd1.ExecuteNonQuery();
con.Close(); } } }
SYSTEM TESTING
In software development project, errors can be injected at any stage
during the development. Testing performs a very critical role for quality
and for ensuring the reliability of software. During testing, the program
to be tested is executed with the set of test cases and the output of the
program for the test cases is evaluated to determine if the program is
performing as it is expected to. Due to its approach, dynamic testing can
only ascertain the presence of error in the program, the exact nature of
error is not usually decided by testing. Testing forms the first step in
determining the errors in the program. Clearly the success of testing in
revealing errors in programs depends critically on test cases.
Testing is usually relied upon to detect the faults taat occur during any
phase of the software development cycle, in addition to the errors that
occur during the coding phase itself. For this, different levels of testing
are used which perform different tasks and aim to test different aspects
of the system. The basic levels of testing are unit testing, integration
testing, system testing and acceptance testing. The different levels of
testing attempt to detect different types of faults.
Test Plan
A Test Plan is a general document for the entire project, which defines
the scope approach to be taken, and the schedule of testing, as well as
identifying the test items for the entire testing process and the personnel
responsible for the different activities of testing commemces and can be
done in parallel with the coding and design phases. The inputs for the
test plan are:
• Project plan
• Requirements document
• System design document
The project plan is needed to make sure that the test is consistent with
overall plan for the project and testing schedule matches that of the
project plan, the requirements document and the design document. A
test plan should contain the following:
Test unit
Testing delierables should be specified in the test plan, before the actual
testing begins. Deliverables could be a list of test cases that were used
such as detailed result of testing, test summary report, test log and data
about the code coverage.
The goal of unit testing is to test modules or “units” and not the entire
software system. The programmer himself most oftem does unit testing.
After finishing the coding of a module, testing is performed. The tested
module is then delivered for further testing process.
SCREEN SHOTS
LOGIN FORM
MEMBERSHIP FORM
WELCOME FORM
ADVANCE TICKET BOOKING FORMS
TICKET CANCELLATION FORM
POSTPONMENT FORM
ENQUIRY FORM
EDIT REGISTERATION FORM
CHANGE PASSWORD FORM
SIGNOUT FORM
CONCLUSION
The project is full fledged and user friendly. End users will be lightened
in using this software because it is easy to reserve the tickets and most of
the entries are been selected from the database.
BIBLIOGRAPHY
1. URL:
• http://www.msdn.com
• http://www.dotnetspider.com
• http://www. msdn.microsoft.com.com
• http://www.google.com
• http://www.w3schools.com
• http://www.careerride.com/VB.NET-Framework-Interview.aspx
• http://en.wikipedia.org/wiki/ASP.NET
2. BOOKS
• Begning ASP.NET 3.5: in C#, by Imar Spaanjaars.
• Pro ASP.NET 3.5 in C# 2008, 2nd edition, By Mathew
MacDonald,Mario Szpuezta.
• Professional ASP.NET 3.5: in C#, By Bill Evjen, Scott
Hartselman.