Anda di halaman 1dari 103

T.Y.Bsc.I.T.

LUNCH BOX PORTAL SYSTEM

CHAPTER 1

INTRODUCTION

Developing a Lunch Box Portal System to promote a greater count of food lovers to
Splurge into the field of Restaurant. It integrates the benefits of an ordering food with the
convenience of an online excitement and going with the technology, minus the commuting
hazards and expenses. It will usher in the immense flexibility and sophistication in the
existing manual platform structures, with the perfect blend of synchronous and
asynchronous interaction. It provides a means of collaborative E -ordering for the
customers.
This online application enables the end users to register online, select the food from
the e-menu card, read the E-menu card and order food online. By just selecting the food that
the user wants to have. The results after selecting the food from the E-menu card will directly
appear in the screen near the chef who is going to cook the food for you. by using this
application, the work of the waiter is reduced and we can also say that the work is nullified.
The benefit of this is that if there is rush in the Restaurant then there will be chances that the
waiters will be unavailable and the users can directly order the food to the chef online by
using this application. The user will be given a username and a password, by sing that every
time a user logs in he/she gets 2% discount in the total bill. This implies that the customer is
the regular user of the restaurant.
Manual system involves paper work in the form of maintain ing various files and
manuals. maintaining critical information in the files and manuals is full of risk
and a tedious process. Including a framework showing how to apply internet technology
progressively as skills and confidence grow, the project demonstrates the route from adapting
materials to developing an online environment.
Nowadays people don’t have much time to spend in restaurant by just there and
waiting for the waiter to take their order. Many customer visits the restaurant in their lunch
break and recess so they have limited time to eat and return to their respective office and
colleges. So this software helps them to save time and order food whenever they want
without calling the waiter again and again. as well as if the customer is a regular customer of
the restaurant then the customer gets 2% discount on every product they order.

ROLL NO.:100 1
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

The only role in this process is of hotel manager. As customers are not much involved
in it. The manger has to manage everything.
As any restaurant manager who has ever been out of work knows, finding a job is no
easy task. In general management of a restaurant, the restaurant manager plays a vital role.
The restaurant managers undertake the responsibilities of the whole restaurant business. They
manage with all departments for the smooth running of business. They handle a huge number
of information at the same time during their work hours. They have to be watchful about
minimum details like the cleanliness of the spoons and buying rate of local milk to bigger
issues like introducing a new dish in the menu. It might be the most difficult job for
restaurant managers is to manage human resource.
Restaurants are known to be a very high-income yielding business in terms of human
resource, therefore restaurant managers everywhere struggle on a daily basis to maintain a
group of experienced and competent people in the staff. because if an employee fails to
appear any day, the manager will have to do his duty himself. with all these qualities in hand,
a person can look for job as a restaurant manager in several variety of restaurants like fine
dining restaurants, hotels, resorts, fast-food joints or chains etc.

1.1 BACKGROUND
Lunch Box Portal System is a process of ordering any products like Food, Cuisines and from
local vendors through a webpage or even by an application many of these allow customers to
keep accounts with them in order to make a frequent ordering.

ROLL NO.:100 2
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

1.2 OBJECTIVES OF THE PROJECT

The system will provide an experience of convenience to the working employees


while they are on duty as well as the consumer who done-in at the center. Whenever the
customers place an order for lunch boxes, the cuisine order details information will be stored
in the database for further analyzing to perform forecasting. The workers can check previous
lunch order details to solve any misleading and misunderstanding incident while it occurs.
Prevention of food serves not in sequence this objective will be achieved because
customers place an order into the system, the system will schedule the food order details in
queue then the chef will prepare the food according to the food ordering queue. In paper-
based system, the employees will deliver the food order slip into the kitchen and the chef
cook whatever foods that are recorded on the paper.

• To order food rapidly

• To make it convenient for people who have limited time

• Cost reduction

• Reduced paper work

• Computerized Order and billing system

ROLL NO.:100 3
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

1.3 PURPOSE, SCOPE, APPLICABILITY

PURPOSE

This online application enables the end users to register online, select the food from the e-
menu card, read the E-menu card and order food online. By just selecting the food that the
user wants to have. The results after selecting the food from the E-menu card will directly
appear in the screen near the Chef who is going to cook the food for you.
By using this application, the work of the Waiter is reduced and we can also say that the work
is nullified. The benefit of this is that if there is rush in the Restaurant then there will be
chances that the waiters will be unavailable and the users can directly order the food to the
chef online by using this application. The user will be given a username and a password, by
sing that every time a user logs in he/she gets 2% discount in the total bill. This implies that
the customer is the regular user of the Restaurant.
Manual system involves paper work in the form of maintaining various files and
manuals. Maintaining critical information in the files and manuals is full of risk
and a tedious process. Including a framework showing how to apply Internet technology
progressively as skills and confidence grow, the project demonstrates the route from adapting
materials to developing an online environment.
Nowadays people don’t have much time to spend in restaurant by just there and waiting for
the waiter to take their order. Many customers visit the restaurant in their lunch break and
recess so they have limited time to eat and return to their respective office and colleges. So,
this software helps them to save time and order food whenever they want without calling the
waiter again and again. As well as if the customer is a regular customer of the Restaurant
then the customer gets 2% discount on every product they order.

ROLL NO.:100 4
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

Why the new system?

Nowadays, people are more dine-in at restaurant for their meals. the online food
ordering system provides convenience for the customers that are nothing special but the
general busy people of the society.

It overcomes the demerits of the manual hotel or mess system and the old-fashioned
queuing system. this system enhances the readymade of foods than people.

SCOPE

The current System of a company is very ancient and need to be replacing as


company’s business is expanding. One of the biggest disadvantages of the current system is
that lacking of computerized food orders each time a customer need to order food he has to
wait for the wait to take their order and then give to the chef who will be preparing our food.
So, this process is very time consuming and very ancient. This is very difficult to manage.
And there also situations where the customers mix the order and gives food of one customer
to another and there are also situations where customer forgets to take the order and even
after taking the order, he forgets to supply food on time.
All the existing system is traditional and lack of use of technology, therefore the
process is very time consuming and lengthy as paper work is there. This was creating
problem in maintain data record at the end like employee attendance, bill, pay slip, salary slip
etc. this document will propose all features and procedures to develop the system.
This document specially containing details about objectives, scope limitation, process
model, primary requirements, team development, possible project risks, project schedule, and
finally monitoring and reporting mechanisms.
Fast Lane Food Ordering System is very useful and important software for the
Restaurant based Applications. It provides features like online ordering, directly connecting
to the chef, employee attendance, payroll system, salary slip, generating bill, etc.
This software can also be used as reducing the man power used in the process.
Depending on the computers which rarely goes wrong and always provides us with the
appropriate output. It is also reliable. As the world is going with the technology it is
important for us to also go with it. Using technology in the hotel makes the user attractive
towards the restaurant.

ROLL NO.:100 5
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

Advantages
• Makes the ordering process easier

• Orders are 'right' all the time

• Keeping the costs transparent

• Reduce human error

• Monitor your expenses incurred in real time

• Customers and loyalty

• Stay ahead of the competition

APPLICABILITY

Ordering Lunch Box and delivery is not a new online business idea; however, it has
evolved with technology coming into the forefront. So far, we have seen startups, whose
business models were based on grocery delivery, meal-kit delivery, anytime food delivery,
and more.
Getting handmade food as per our desire during work week can often become a
hassle. the online office lunch box ordering and delivery business surely fills the void
between busy professionals and delicious handmade food from nearby center.
Many follow online lunch box ordering & delivering business model but only a few
startups adhere to the office lunch box delivery business. same boring meals may upset any
office worker. to bring deliciousness back into the lives of working professionals and
removing the hassle of food delivery, this business model clicks the perfect chord.
The user will create a profile on the website or get registered with the platform. every
day at a given specific time, users receive a message of the available meal options. Interested
users place the order and make payment. the order will then get forwarded to the associated
center. after the order has been processed, the platform will collect all the order and deliver
the same to the respective offices at a given time.

ROLL NO.:100 6
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

CHAPTER 2

SURVEY OF TECHNOLOGIES
FRONT END:

ASP.NET:
Microsoft Visual Studio .NET includes supports for all the Microsoft languages such
as C#, with extensive wizard support. MS Visual Studio .NET constitutes the core of .NET
development. It provides a complete development platform to design, develop, debug and
deploy .NET applications and Web Services. It comprises tools for building Web and
Windows applications as well as Web Services and also has a full set of data access tools.
There are also complete error-handling features available for local debugging, remote
debugging and tracing. Visual Studio .NET is available in Standard, Professional, Enterprise
Developer and Enterprise Architect versions.

The above diagram illustrates the compile-time and run-time relationships of C#


source code files, the .NET Framework class libraries, assemblies, and the CLR.

BACK END:

My SQL:

1: MYSQL is free open source database that facilitates the effective management of the
databases by connecting them to the software.

2: It is stable, reliable and the powerful solution.

3: MYSQL is a freely available open source Relational database management system that
uses structured query language.

4: SQL is the popular language for adding, accessing and managing content in a database.

5: It is most noted for its quick processing, proven reliability, ease and flexibility of use.

ROLL NO.:100 7
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

6: You can run software on a variety of platform and operating systems including Windows,
Linux and Unix.

CHAPTER 3

REQUIREMENT AND ANALYSIS


The task bridging the gap between system requirements engineering and software design.
model can be translated to data, architectural, and component-level designs.
Expect to do a little bit of design during analysis and a little bit of analysis during design. the
user requirements are collected by interviewing cafeteria owners. The requirement analysis of
the system will be documented and the description will be briefly explained.
The complete description and explanation of requirement analysis including functional and
non-functional requirement, performance requirement and so on.
During system requirements analysis, the framework for the application is developed,
providing the foundation for all future design and development efforts.

ROLL NO.:100 8
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

3.1 PROBLEM DEFINATION

1) Managing and keeping records of all students, papers, books and the entire granule manually.

2) As it is not online the customer have to wait for the waiter to take their order and has to wait
for the food as well

3) Waiters have to manually keep a record of all the food ordered by the customer and that work
is very complicated.

4) Waiters have to manually calculate the amount of money to be paid by the customer after
having food.

5) Records are maintained manually so there are chances of damage and loss of data.

6) Less exposure for people in the world of technology.

ROLL NO.:100 9
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

3.2 REQUIREMENT AND SPECIFICATION

Software requirements are expressed in a software requirement document. The software


requirement specification (SRS) is the official statement of what is required of the system
developers.
This requirement document includes the requirements definition and the requirement
specification. the software requirement document is not a design document.
It should set out what the system should do without specifying how it should be done. the
requirement set out in this document is complete and consistent.

The software specification document satisfies the following

1. It specifies the external system behavior.

2. It specifies constraints on the implementation.

3. It is easy to change.

4. It serves as reference tool for system maintainers.

5. Its records forethought about the life cycle of the system.

6. It characterizes acceptable response to undesired events.

ROLL NO.:100 10
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

3.3 PLANNING AND SCHEDULE

3.3.1 GANNT CHART

ROLL NO.:100 11
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

3.3.2 PERT CHART

ROLL NO.:100 12
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

3.4 SOFTWARE AND HARDWARE REQUIREMENTS

1. Environment:
• Servers:
• Operating System Server: - Microsoft Windows 7 /XP 3 or
Higher
• Data Base Server: Microsoft SQL Server 2008R2

• Tools : Microsoft Visual Studio .Net 2010

• Code Behind : C#.NET

2. Requirements:

• Hardware requirements:
Number Description

1 PC with 2 GB hard disk and

256 MB RAM.

• Software requirements:
Number Description

1. Windows 7/ XP3/ or Higher

with MS-office

2. MS-SQL server2008

3. MS-Visual Studio .Net 2010

ROLL NO.:100 13
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

3.5 PRELIMINARY PROJECT DESCRIPTION

In future this project can be treated as product according to specification and needs of any
organization.
Since Lunch Box order plays key role in any restaurant or any food supplying institute, thus success
over long period of time and reliance of organization over recruitment is going to be one of the most
considered topics for any organization. Therefore, online food ordering will be will be of great help in
carrying out food delivering smoothly and effectively.
At present days every organization is using manual methodology for their proper functioning, so
this online based project important and useful in all Restaurant aspects.
Furthermore, if this project will be uploaded, it can be used as a place where customers can directly
send messages to the chef comment on the taste and giving feedback directly to the chef.

Feasibility Study
Preliminary investigation examines project feasibility, the likelihood the system will be useful to the
organization. The main objective of the feasibility study is to test the Technical, Operational and
Economical feasibility for adding new modules. All system is feasible if they are unlimited resources and
infinite time.

Types of Feasibility Study

I. Technical Feasibility:

Technical Feasibility centers on the existing computer system hardware, software, etc. and to some
extent how it can support the proposed addition. This involves financial considerations to accommodate
technical enhancements. Technical support is also a reason for the success of the project. The techniques
needed for the system should be available and it must be reasonable to use. Technical Feasibility is mainly
concerned with the study of function, performance, and constraints that may affect the ability to achieve the
system. By conducting an efficient technical feasibility we need to ensure that the project works to solve
the existing problem area.
Since the project is designed with ASP.NET with C# as Front end and SQL Server 2008 R2 as Back
end, it is easy to install in all the systems wherever needed. It is more efficient, easy and user-friendly to

ROLL NO.:100 14
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

understand by almost everyone. Huge amount of data can be handled efficiently using SQL Server as back
end. Hence this project has good technical feasibility.

II. Operational Feasibility:

People are inherently instant to change and computers have been known to facilitate change.
An estimate should be made to how strong a reaction the user staff is likely to have towards the
development of the computerized system. the staff is accustomed to computerized systems.
These kinds of systems are becoming more common day by day for evaluation of the software
engineers. Hence, this system is operationally feasible.
As this system is technically, economically and operationally feasible, this system is judged
feasible.

III. Economic Feasibility:


Economic Feasibility is mainly concerned with the cost incurred in the implementation of the
software. Since this project is developed using ASP.NET with C# and SQL Server which is more
commonly available and even the cost involved in the installation process is not high.
Similarly, it is easy to recruit persons for operating the software since almost all the people are
aware of ASP.NET with C# and SQL Server. Even if we want to train the persons in these areas the cost
involved in training is also very less. Hence this project has good economic feasibility.
Economic Feasibility is mainly concerned with the cost incurred in the implementation of the
software. Since this project is developed using ASP.NET with C# and SQL Server which is more
commonly available and even the cost involved in the installation process is not high.
Similarly, it is easy to recruit persons for operating the software since almost all the people are
aware of ASP.NET with C# and SQL Server. Even if we want to train the persons in these areas the cost
involved in training is also very less. Hence this project has good economic feasibility.
The system once developed must be used efficiently. Otherwise there is no meaning for developing
the system. for this a careful study of the existing system and its drawbacks are needed.
The user should be able to distinguish the existing one and proposed one, so that one must be able
to appreciate the characteristics of the proposed system, the manual one is not highly reliable and also is
considerably fast. The proposed system is efficient, reliable and also quickly responding.

ROLL NO.:100 15
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

3.6 CONCEPTUAL MODELS

3.6.1 EVENT TABLE

Event Trigger Source Activity Response Destination

Admin Login Login Admin Login to Admin Admin


system Logged in

Product Product Employee Providing Details Customer


Master Categories details Provided

Table Table Customer Select Product Employee


specification Details product selected

Customer Customer Customer Make order Order Employee


details Order selected

Order Order Customer Order details Order Employee


details Placing Provided

Employee Manage Employee Storing Stored Admin


details employee Salary Details
details Details
Employee attendance Employee Mark Attendance Admin
attendance Details attendance marked

Payment Payment Customer Make Payment Employee


Master Details payment details

Payment Generate slip Admin Generation Slip Customer


Slip of slip generated
Feedback Feedback Customer Generation Feedback Admin
details of feedback generated

ROLL NO.:100 16
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

3.6.2 USE CASE DIAGRAM

ROLL NO.:100 17
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

3.6.3 SEQUENCE DIAGRAM

ROLL NO.:100 18
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

3.6.4 CLASS DIAGRAM

ROLL NO.:100 19
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

3.6.5 STATE CHART DIAGRAM

ROLL NO.:100 20
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

CHAPTER 4

4.1 BASIC MODULE

Lunch Box Ordering module:


This module will be developed in module platform that let staff pass over the online servers such as
tablet or smart phones to the user-friendly web domain system. User can also place an order through
the mobile devices after they make their decision and also some extra remarks that customer wish to
request.

Order Queue Module:


This module can help queue the cuisine order that had been placed and display to the kitchen staff
accordingly.

Reporting Module:
User can view the overall performance of the center in chart report. The report can generate
according to the time period and the time period customize by user.

Menu Management Module:


In this module, user can update the latest and update cuisines information to the system such as
name, code, price and cuisine availability. After the information changes, the module devices will
retrieve the latest food menu information and display to user.

Payment Module:
This module will gather the order information and print the billing statement for user to make
payment and keep for their reference.

ROLL NO.:100 21
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

4.2 DATA DESIGN

Admin Login:

Charges Master:

ROLL NO.:100 22
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

Employee Details:

Employee Salary:

ROLL NO.:100 23
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

Feedback:

Order Master:

ROLL NO.:100 24
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

Product Category:

Product Sub-Category:

ROLL NO.:100 25
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

Product Details:

User Details:

ROLL NO.:100 26
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

4.2.1 SCHEMA DESIGN WITH DATA INTIGRITY AND


CONSTRAINTS

ROLL NO.:100 27
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

4.2.2 DATABASE RELATIONSHIP DESIGN

ROLL NO.:100 28
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

4.2.3 SECURITY ISSUES

• In this system, anyone can Register by not everyone gets login access until admin approval.
This step is taken in order to provide a security measure to our website.

• Confidential data like passwords are given a special password filed which hides the visibility of
the password being typed.

• This website is designed by taking consideration of HTTPS (Hyper Text Transfer Protocol
Secure) so, data is sent securely.

• Currently it is running on local host so the scope so limited but if it goes on WWW (World
Wide Web) it is ensured that it is well secured.

• Payment gateway is protected by locally, not by a third-party organization.

ROLL NO.:100 29
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

CHAPTER 5

IMPLEMENTATION & TESTING

5.1 IMPLEMENTATION APPROACHES

1. Home Page

Description:

This is the home page of my Lunch Box Portal here you will get the detailed information about the
service we provide you. For any further queries you can directly contact us on the details or the link
we have provided in the above description.

ROLL NO.:100 30
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

2. Admin

Description:

This is the Login page for Admin. Admin is the only person who has the authority of handling
overall activities in this system.

ROLL NO.:100 31
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

3. Main Category

Description:

This is the Admin panel. Over here admin will add Main Category of the product. This is done
because it will be helpful for the customer to identify the particular product they are searching for.
When you submit the category name you will get the notification above.

ROLL NO.:100 32
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

4. Sub-Category

Description:

This page will help you to add the Sub-Category of the product. For adding the sub-category you
first have to select the Main-Category name from the dropdown list. After submitting the name you
will get notification above.

ROLL NO.:100 33
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

5. Product Details

Description:

This page helps you to add the description of the sub-category product. Here you have to select the
sub-category and along with that you have to fill-ups the further formal details accordingly.

ROLL NO.:100 34
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

6. User Login

ROLL NO.:100 35
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

Description:
This is the User panel. Here the user gets login to the website and if the user has not registered himself then he needs
to get register first. After registration he can directly login to the portal and if login get successfully the above portal
of user home page gets displayed.

ROLL NO.:100 36
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

7. Menu Selection

Description:

When you click on “Menu” option you will get the multiple sub options in the menu list. So, you can
choose the appropriate option according to your choice.

ROLL NO.:100 37
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

9. Sub-Menu Selection

Description:
In this portal you will get the Sub-Categories of the Main-Category you have chosen before. So, in this you
can select any item you want to place an order for.

ROLL NO.:100 38
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

10. Ordering Food

ROLL NO.:100 39
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

Description:

When you select the particular item, you will get the option for placing an order just by clicking on “Order
Now” the order will get placed. Also, it will ask for how much quantity of selected item you want. After
adding the quantity, you will get the notification above. Then you can add the product to the cart by
clicking on Add to Cart option.

ROLL NO.:100 40
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

11. Payment

Description:

When you add the product in cart you will get the pop-up screen of payment mode. So as per your
convenience you can pay the charges for the product in different mode such as Cash, Debit, Credit and Net-
Banking.

ROLL NO.:100 41
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

12. Feedback

Description:

Here the user can give the feedback to the service provided them. As per the user convenience the admin
panel will get updated.

ROLL NO.:100 42
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

5.2 CODING DETAILS AND EFFICIENCY

Home.aspx

Code :
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

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


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

}
}

Login.aspx.cs

Component Table:

Sr No. Component Component Name Code Value


1 Text Box - txtmail
2 Text Box - txtpass
3 Button Login btnlogin

Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;

ROLL NO.:100 43
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;

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


{
DBManager db = new DBManager();
DataSet ds = new DataSet();

protected void Page_Load(object sender, EventArgs e)


{

public void clear()


{
try
{
txtemail.Text = "";
txtpass.Text = "";
}
catch (Exception ex)
{
db.MsgBoxShow(ex.ToString(), this.Page);
}
}

protected void btnlogin_Click(object sender, EventArgs e)


{
try
{
if (txtemail.Text == "" || txtemail.Text == null )
{
db.MsgBoxShow("Enter the name", this.Page);
txtemail.Focus();
}
else if (txtpass.Text == "" || txtpass.Text == null)
{
db.MsgBoxShow("Enter the password", this.Page);
txtpass.Focus();
}
else

ROLL NO.:100 44
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

{
//string stud = "Select * from Admin_login where Email='" + txtemail.Text + "' and
Pass='" + txtpass.Text + "'";
//ds = db.GetData(stud);
//if (ds.Tables["Table"].Rows.Count > 0)
//{
// string str = txtemail.Text;
// Session["admin"] = str.ToString();
// Response.Redirect("~/Admin/Home.aspx");
//}
if (txtemail.Text == "admin@abc.com" && txtpass.Text == "admin")
{
Session["Email"] = txtemail.Text;
string str = "Admin";
Session["admin"] = str.ToString();
Response.Redirect("~/Admin/Home.aspx");
}
else
{
string stud2 = "Select * from UserDetails where Email='" + txtemail.Text + "'
and Pass='" + txtpass.Text + "'";
ds = db.GetData(stud2);
if (ds.Tables["Table"].Rows.Count > 0)
{
Session["SessionId"] = ds.Tables["Table"].Rows[0]["Id"].ToString();
string str2 = ds.Tables["Table"].Rows[0]["Name"].ToString();
Session["Name"] = str2;
Session["Email"] = txtemail.Text;
Response.Redirect("~/User/Home.aspx");
}
else
{
db.MsgBoxShow("Error", this.Page);
clear();
}
}
}
}
catch (Exception ex)
{
db.MsgBoxShow(ex.ToString(), this.Page);
}

ROLL NO.:100 45
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

}
}

Main_Category.aspx.cs

Component Table:

Sr No. Component Component Name Component Value


1 Textbox - txtname
2 Button Submit Btn submit
3 Button Reset Btn clear

Code :

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.Text;
using System.Data.SqlClient;

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


{
static string Catagory_ID;
DataSet ds = new DataSet();
DBManager db = new DBManager();

protected void Page_Load(object sender, EventArgs e)

ROLL NO.:100 46
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

{
if (!IsPostBack)
{
if (Session["admin"] == null)
{
Response.Redirect("~/Login/Login.aspx", false);
}
Bind_dgv();
}
}

protected void Bind_dgv()


{
try
{
string query = "Select * from dbo.Prod_Category Where status=1";
ds = db.GetData(query);
if (ds.Tables["Table"].Rows.Count > 0)
{
dgv.Visible = true;
dgv.DataSource = ds.Tables["Table"];
dgv.DataBind();
}
else
{
ds.Tables["Table"].Rows.Add(ds.Tables["Table"].NewRow());
dgv.DataSource = ds.Tables["Table"];
dgv.DataBind();
int columncount = dgv.Rows[0].Cells.Count;
dgv.Rows[0].Cells.Clear();
dgv.Rows[0].Cells.Add(new TableCell());
dgv.Rows[0].Cells[0].ColumnSpan = columncount;
dgv.Rows[0].Cells[0].Text = "No Records Found";
}
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}

ROLL NO.:100 47
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

private void ClearBox()


{
try
{
txtname.Text = "";
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}

protected void btnsubmit_Click(object sender, EventArgs e)


{
try
{

if (Catagory_ID != "" && Catagory_ID != null)


{
string query = "Select * from Prod_Category where Category_Id = '" + Catagory_ID +
"' and Status=1";
ds = db.GetData(query);
if (ds.Tables["Table"].Rows.Count > 0)
{
string query1 = String.Empty;
query1 = "Update Prod_Category set Name ='" + txtname.Text.Trim() + "' where
Category_Id='" + Catagory_ID + "'";

int result = db.ExecuteQuery(query1);

if (result == 1)
{
db.MsgBoxShow("New Catagory Updated Succesfully", this.Page);
ClearBox();
Bind_dgv();
}

else
{
db.MsgBoxShow("Catagory Not Updated Succesfully",this.Page);
}

ROLL NO.:100 48
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

}
}
else
{
string query = String.Empty;
query = "insert into Prod_Category(Name,Status) values('" + txtname.Text.Trim() +
"','1')";
int result = db.ExecuteQuery(query);

if (result == 1)
{
db.MsgBoxShow("New Catagory Added Succesfully",this.Page);
ClearBox();
Bind_dgv();
}

else
{
db.MsgBoxShow("Catagory Not Added Succesfully",this.Page);
}
}
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}

protected void btnclear_Click(object sender, EventArgs e)


{
try
{
ClearBox();
}
catch (Exception ex)
{
ex.ToString();
}
}

protected void dgv_PageIndexChanging(object sender, GridViewPageEventArgs e)


{

ROLL NO.:100 49
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

try
{
dgv.PageIndex = e.NewPageIndex;
Bind_dgv();

dgv.PageIndex = e.NewPageIndex;
//BindResumeDetails();
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}

protected void dgv_RowDeleting(object sender, GridViewDeleteEventArgs e)


{
string Catagory_ID = dgv.DataKeys[e.RowIndex].Value.ToString();
SqlConnection con = new SqlConnection(db.getConnectiontring());
con.Open();
string locdelete = "Update Prod_Category set Status='0' where Category_Id='" + Catagory_ID
+ "' ";
db.GetData(locdelete);
Bind_dgv();
}

protected void dgv_RowUpdating(object sender, GridViewUpdateEventArgs e)


{
try
{
Catagory_ID = dgv.DataKeys[e.RowIndex].Values["Category_Id"].ToString();

Label name = (Label)dgv.Rows[e.RowIndex].FindControl("lblName");

txtname.Text = name.Text;
}
catch (Exception ex)
{
throw ex;
}
}
}

ROLL NO.:100 50
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

Sub_category.aspx.cs

Component Table:

Sr No. Component Component Name Component Value


1 Dropdown List - Dropdown List
2 Textbox - txtname
3 Button Submit Btnsubmit
4 Button Reset Btnclear

Code :
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.Text;
using System.Data.SqlClient;

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


{
static string Catagory_ID;
DataSet ds = new DataSet();
DBManager db = new DBManager();

protected void Page_Load(object sender, EventArgs e)


{
if (!IsPostBack)
{
if (Session["admin"] == null)
{

ROLL NO.:100 51
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

Response.Redirect("~/Login/Login.aspx", false);
}
Bind_dgv();
filldrop();
}
}

public void filldrop()


{
try
{
ddlsubcat.Items.Clear();
ddlsubcat.Items.Insert(0, new ListItem("-- Select Sub-Category --", "0"));
string query = "Select * from dbo.Prod_Category Where Status=1";
ds = db.GetData(query);

ddlsubcat.DataSource = ds.Tables["Table"];
ddlsubcat.DataValueField = "Category_Id";
ddlsubcat.DataTextField = "Name";
ddlsubcat.DataBind();
ddlsubcat.Items.Insert(0, new ListItem("-- Select Category --", "0"));
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}

protected void Bind_dgv()


{
try
{
string query = "Select * from dbo.Prod_Sub_Category a inner join Prod_Category b on
a.Category_Name=b.Category_Id Where a.Status=1";
ds = db.GetData(query);
if (ds.Tables["Table"].Rows.Count > 0)
{
dgv.Visible = true;
dgv.DataSource = ds.Tables["Table"];
dgv.DataBind();
}
else

ROLL NO.:100 52
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

{
ds.Tables["Table"].Rows.Add(ds.Tables["Table"].NewRow());
dgv.DataSource = ds.Tables["Table"];
dgv.DataBind();
int columncount = dgv.Rows[0].Cells.Count;
dgv.Rows[0].Cells.Clear();
dgv.Rows[0].Cells.Add(new TableCell());
dgv.Rows[0].Cells[0].ColumnSpan = columncount;
dgv.Rows[0].Cells[0].Text = "No Records Found";
}
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}

private void ClearBox()


{
try
{
txtname.Text = "";
ddlsubcat.SelectedIndex = 0;
Catagory_ID = "";
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}

protected void btnclear_Click(object sender, EventArgs e)


{
try
{
txtname.Text = "";
ddlsubcat.SelectedIndex = 0;
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}

ROLL NO.:100 53
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

protected void btnsubmit_Click(object sender, EventArgs e)


{

try
{

if (Catagory_ID != "" && Catagory_ID != null)


{
string query = "Select * from Prod_Sub_Category where Cat_Id = '" + Catagory_ID +
"' and Status=1";
ds = db.GetData(query);
if (ds.Tables["Table"].Rows.Count > 0)
{
string query1 = String.Empty;
query1 = "Update Prod_Sub_Category set Category_Name='" +
ddlsubcat.SelectedIndex + "',Sub_cat_name ='" + txtname.Text.Trim() + "' where Cat_Id='" +
Catagory_ID + "'";
int result = db.ExecuteQuery(query1);
if (result == 1)
{
db.MsgBoxShow("New Catagory Updated Succesfully", this.Page);
ClearBox();
Bind_dgv();
}

else
{
db.MsgBoxShow("Catagory Not Updated Succesfully", this.Page);
}
}
}
else
{
string query = String.Empty;
query = "insert into Prod_Sub_Category(Category_Name,Sub_cat_name,Status) values('"
+ ddlsubcat.SelectedIndex + "','" + txtname.Text.Trim() + "','1')";
int result = db.ExecuteQuery(query);

if (result == 1)

ROLL NO.:100 54
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

{
db.MsgBoxShow("New Catagory Added Succesfully", this.Page);
ClearBox();
Bind_dgv();
}

else
{
db.MsgBoxShow("Catagory Not Added Succesfully", this.Page);
}
}
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}

protected void dgv_PageIndexChanging(object sender, GridViewPageEventArgs e)


{
try
{
dgv.PageIndex = e.NewPageIndex;
Bind_dgv();

dgv.PageIndex = e.NewPageIndex;
//BindResumeDetails();
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}

protected void dgv_RowDeleting(object sender, GridViewDeleteEventArgs e)


{
string Catagory_ID = dgv.DataKeys[e.RowIndex].Value.ToString();
SqlConnection con = new SqlConnection(db.getConnectiontring());
con.Open();
string locdelete = "Update dbo.Prod_Sub_Category set Status='0' where Cat_Id='" +
Catagory_ID + "' ";

ROLL NO.:100 55
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

db.GetData(locdelete);
Bind_dgv();
}

protected void dgv_RowUpdating(object sender, GridViewUpdateEventArgs e)


{
try
{
Catagory_ID = dgv.DataKeys[e.RowIndex].Values["Cat_Id"].ToString();
string str = "Select * from Prod_Sub_Category a inner join dbo.Prod_Category b on
a.Category_Name=b.Category_Id where a.Cat_Id='" + Catagory_ID + "' and a.Status='1'";
ds = db.GetData(str);
if (ds.Tables["Table"].Rows.Count > 0)
{
ddlsubcat.SelectedIndex =
Convert.ToInt32(ds.Tables["Table"].Rows[0]["Category_Id"].ToString());
txtname.Text = ds.Tables["Table"].Rows[0]["Sub_cat_name"].ToString();
}
}
catch (Exception ex)
{
throw ex;
}
}
}

ROLL NO.:100 56
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

Product_details.aspx.cs

Component Table:

Sr No. Component Component Name Component Value


1 DropDownList - DropDownList
2 Textbox - txtname
3 Textbox - txtprice
4 Button Submit Btnsubmit

Code :
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.Text;
using System.Data.SqlClient;

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


{
static string Product_ID;
DataSet ds = new DataSet();
DBManager db = new DBManager();

protected void Page_Load(object sender, EventArgs e)


{
if (!IsPostBack)
{
if (Session["admin"] == null)
{
Response.Redirect("~/Login/Login.aspx", false);

ROLL NO.:100 57
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

}
Bind_dgv();
filldrop();
}
}

public void filldrop()


{
try
{
ddlcatagory_name.Items.Clear();
ddlcatagory_name.Items.Insert(0, new ListItem("-- Select Catagory --", "0"));
string query = "Select * from dbo.Prod_Sub_Category Where Status=1";
ds = db.GetData(query);

ddlcatagory_name.DataSource = ds.Tables["Table"];
ddlcatagory_name.DataValueField = "Cat_Id";
ddlcatagory_name.DataTextField = "Sub_cat_name";
ddlcatagory_name.DataBind();
ddlcatagory_name.Items.Insert(0, new ListItem("-- Select Catagory --", "0"));
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}

protected void Bind_dgv()


{
try
{
string query = "Select * from dbo.Product_details a inner join dbo.Prod_Sub_Category b
on a.Catagory_ID=b.Cat_Id Where a.Status=1";
ds = db.GetData(query);
if (ds.Tables["Table"].Rows.Count > 0)
{
dgv.Visible = true;
dgv.DataSource = ds.Tables["Table"];
dgv.DataBind();
}
else

ROLL NO.:100 58
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

{
ds.Tables["Table"].Rows.Add(ds.Tables["Table"].NewRow());
dgv.DataSource = ds.Tables["Table"];
dgv.DataBind();
int columncount = dgv.Rows[0].Cells.Count;
dgv.Rows[0].Cells.Clear();
dgv.Rows[0].Cells.Add(new TableCell());
dgv.Rows[0].Cells[0].ColumnSpan = columncount;
dgv.Rows[0].Cells[0].Text = "No Records Found";
}
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}

private void ClearBox()


{
try
{
ddlcatagory_name.SelectedIndex = 0;
txtdescription.Text = "";
txtname.Text = "";
txtprice.Text = "";
TextBox1.Text = "";
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}

protected void btnclear_Click(object sender, EventArgs e)


{
try
{
ClearBox();
}
catch (Exception ex)
{

ROLL NO.:100 59
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

ex.ToString();
}
}

protected void btnsubmit_Click(object sender, EventArgs e)


{
try
{
if (Product_ID != "" && Product_ID != null)
{
string query = "Select * from Product_details where Product_ID = '" + Product_ID +
"' and Status=1";
DataSet ds = new DataSet();
ds = db.GetData(query);
if (ds.Tables["Table"].Rows.Count > 0)
{
var fileName = product_image.PostedFile.FileName;
string sp = Server.MapPath("product_images");
String fn = Guid.NewGuid().ToString() +
product_image.FileName.Substring(product_image.FileName.LastIndexOf(".")).ToLower();
if (sp.EndsWith("\\") == false)
sp += "\\";
sp += fn;
product_image.PostedFile.SaveAs(sp);
SqlConnection con = new SqlConnection(db.getConnectiontring());
con.Open();
SqlCommand cmd = new SqlCommand("Update Product_details set Catagory_ID='" +
ddlcatagory_name.SelectedIndex + "',Name='" + txtname.Text + "',Description='" +
txtdescription.Text + "',Qunty='" + TextBox1.Text + "',Remain_qnty='" + TextBox1.Text + "',Price='"
+ txtprice.Text + "',Product_image='" + fileName + "',Image_path='" + sp + "' where Product_ID='" +
Product_ID + "'", con);
int result = cmd.ExecuteNonQuery();
if (result == 1)
{
db.MsgBoxShow("Product Details Updated Succesfully",this.Page);
ClearBox();
Bind_dgv();
}

else
{

ROLL NO.:100 60
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

db.MsgBoxShow("Product Details Not Updated Succesfully",this.Page);


}
}

}
else
{
var fileName = product_image.PostedFile.FileName;
string sp = Server.MapPath("product_images");
String fn = Guid.NewGuid().ToString() +
product_image.FileName.Substring(product_image.FileName.LastIndexOf(".")).ToLower();
if (sp.EndsWith("\\") == false)
sp += "\\";
sp += fn;
product_image.PostedFile.SaveAs(sp);
SqlConnection con = new SqlConnection(db.getConnectiontring());
con.Open();
SqlCommand cmd = new SqlCommand("Insert into
Product_details(Catagory_ID,Name,Description,Qunty,Remain_qnty,Price,Product_image,Image_path,Statu
s) values('" + ddlcatagory_name.SelectedIndex + "','" + txtname.Text + "','" + txtdescription.Text
+ "','" + TextBox1.Text + "','" + TextBox1.Text + "','" + txtprice.Text + "','" + fileName + "','"
+ fn + "','1')", con);
int result = cmd.ExecuteNonQuery();
if (result == 1)
{
db.MsgBoxShow("Product Details Saved Succesfully", this.Page);
ClearBox();
Bind_dgv();
}

else
{
db.MsgBoxShow("Product Details Not Saved Succesfully", this.Page);
}
}
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}

ROLL NO.:100 61
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

protected void dgv_PageIndexChanging(object sender, GridViewPageEventArgs e)


{
try
{
dgv.PageIndex = e.NewPageIndex;
Bind_dgv();
dgv.PageIndex = e.NewPageIndex;
//BindResumeDetails();
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}

protected void dgv_RowDeleting(object sender, GridViewDeleteEventArgs e)


{
string Product_ID = dgv.DataKeys[e.RowIndex].Value.ToString();
SqlConnection con = new SqlConnection(db.getConnectiontring());
con.Open();
string locdelete = "Update Product_details set Status='0' where Product_ID='" + Product_ID
+ "' ";
db.GetData(locdelete);
Bind_dgv();
}

protected void dgv_RowUpdating(object sender, GridViewUpdateEventArgs e)


{
try
{
Product_ID = dgv.DataKeys[e.RowIndex].Values["Product_ID"].ToString();
string str = "Select * from dbo.Product_details a inner join dbo.Prod_Sub_Category b on
a.Catagory_ID=b.Cat_Id Where a.Product_ID='" + Product_ID + "'";
ds = db.GetData(str);
if (ds.Tables["Table"].Rows.Count > 0)
{
ddlcatagory_name.SelectedIndex =
Convert.ToInt32(ds.Tables["Table"].Rows[0]["Catagory_ID"].ToString());
txtname.Text = ds.Tables["Table"].Rows[0]["Name"].ToString();
TextBox1.Text = ds.Tables["Table"].Rows[0]["Qunty"].ToString();
txtprice.Text = ds.Tables["Table"].Rows[0]["Price"].ToString();
txtdescription.Text = ds.Tables["Table"].Rows[0]["Description"].ToString();

ROLL NO.:100 62
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

}
}
catch (Exception ex)
{
throw ex;
}
}
}

Registration.aspx.cs

Component Table:

Sr No. Component Component Name Component Value


1 Textbox - txtname
2 Textbox - ename
3 Textbox - txtpass
4 Textbox - txtadd
5 Button Sign In btnsignIn

Code :
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.Net.Mail;
using System.Text.RegularExpressions;
using System.Text;

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


{
DBManager db = new DBManager();

ROLL NO.:100 63
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

DataSet ds = new DataSet();

protected void Page_Load(object sender, EventArgs e)


{

public void clr()


{
try
{
txtadd.Text = "";
txtmobile.Text = "";
txtname.Text = "";
txtpass.Text = "";
txtusername.Text = "";
}
catch (Exception ex)
{
db.MsgBoxShow(ex.ToString(), this.Page);
}
}

protected void btnsignin_Click(object sender, EventArgs e)


{
try
{
string query1 = "insert into UserDetails (Name,Email,Pass,Address,MobileNo,Status)
values('" + txtname.Text + "','" + txtusername.Text.Trim() + "','" + txtpass.Text.Trim() + "','" +
txtadd.Text.Trim() + "','" + txtmobile.Text + "','1')";
int i = db.ExecuteQuery(query1);
if (i == 1 )
{
db.MsgBoxShow("Registration complete....your login will activeted after admin
approval ", this.Page);
clr();
}
else
{
db.MsgBoxShow("Error", this.Page);
}
}

ROLL NO.:100 64
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

catch (Exception ex)


{
db.MsgBoxShow(ex.ToString(), this.Page);
}
}
}

Menu.aspx

Component Table:

Sr No. Component Component Name Component Value


1 DataList - DataList1

Code :

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.Text;
using System.Data.SqlClient;
using System.Collections.Generic;
using System.Net.Mail;
using System.Text.RegularExpressions;
using System.IO;
using System.Web.Services;
using System.Web.Script.Services;

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

ROLL NO.:100 65
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

{
DBManager db = new DBManager();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
bindDataList();
}
}

public void bindDataList()


{
string connn = db.getConnectiontring();
SqlConnection con = new SqlConnection(connn);
con.Open();
string str = "select Category_Id,Name from dbo.Prod_Category where Status=1";
SqlCommand cmd = new SqlCommand(str, con);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds);
DataList1.DataSource = ds.Tables["Table"];
DataList1.DataBind();
con.Close();
}

protected void DataList1_ItemCommand(object source, DataListCommandEventArgs e)


{
string c_id = e.CommandArgument.ToString();
Session["c_id"] = c_id;
Response.Redirect("~/User/Sub_menu.aspx");
}
}

ROLL NO.:100 66
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

Sub-Menu.aspx

Component Table:

Sr No. Component Component Name Component Value


1 Label - Label 1
2 Label - Label 2
3 DataList - DataList

Code :
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.Text;
using System.Data.SqlClient;
using System.Collections.Generic;
using System.Net.Mail;
using System.Text.RegularExpressions;
using System.IO;
using System.Web.Services;
using System.Web.Script.Services;

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


{
DBManager db = new DBManager();
DataSet ds = new DataSet();
static string id;

protected void Page_Load(object sender, EventArgs e)

ROLL NO.:100 67
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

{
if (!IsPostBack)
{
id = Session["c_id"].ToString();
int no = 0;
string name = "select Name from dbo.Prod_Category where Category_Id='" + id + "'";
ds = db.GetData(name);
if (ds.Tables["Table"].Rows.Count > 0)
{
Label1.Text = ds.Tables["Table"].Rows[0]["Name"].ToString();
}
bindDataList();
}
}

public void bindDataList()


{
string connn = db.getConnectiontring();
SqlConnection con = new SqlConnection(connn);
con.Open();
string str = "select Cat_Id,Sub_cat_name from dbo.Prod_Sub_Category where Category_Name='"
+ id + "' and Status=1";
SqlCommand cmd = new SqlCommand(str, con);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds);

DataTable dt = new DataTable();


dt.Columns.Add("Id");
dt.Columns.Add("product_id");
dt.Columns.Add("name");
int no=1;
for (int i = 0; i < ds.Tables["Table"].Rows.Count; i++)
{
DataRow dr = dt.NewRow();
dr["Id"] = no;
dr["product_id"] = ds.Tables["Table"].Rows[i]["Cat_Id"].ToString();
dr["name"] = ds.Tables["Table"].Rows[i]["Sub_cat_name"].ToString();
dt.Rows.Add(dr);
no++;
}

ROLL NO.:100 68
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

DataList1.DataSource = dt;
DataList1.DataBind();
con.Close();
}

protected void DataList1_ItemCommand(object source, DataListCommandEventArgs e)


{
string c_id = DataList1.DataKeys[e.Item.ItemIndex].ToString();
Session["c_id"] = c_id;
Response.Redirect("~/User/ProductList.aspx");
}

Order_details.aspx

Component Table:

Sr No. Component Component Name Component Value


1 Grid View - gridcustomer

Code :
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;

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


{
DBManager db = new DBManager();
DataSet ds = new DataSet();
static string user_email = "";

protected void Page_Load(object sender, EventArgs e)


{

ROLL NO.:100 69
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

if(!IsPostBack)
{
getdata();
}
}

public void getdata()


{
string str = "select * from Order_master where Order_status='Pending'";
ds = db.GetData(str);
if (ds.Tables["Table"].Rows.Count > 0)
{
grdCustomer.DataSource = ds.Tables["Table"];
grdCustomer.DataBind();
}
else
{
Label1.Visible = true;
}
}

protected void grdCustomer_PageIndexChanging(object sender, GridViewPageEventArgs e)


{
try
{
grdCustomer.PageIndex = e.NewPageIndex;
getdata();

grdCustomer.PageIndex = e.NewPageIndex;
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}

protected void grdCustomer_RowUpdating(object sender, GridViewUpdateEventArgs e)


{
try
{
string getid = grdCustomer.DataKeys[e.RowIndex].Values["Order_ID"].ToString();
Response.Redirect("~/Admin/Approval.aspx?Order_ID=" + getid + "");

ROLL NO.:100 70
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

}
catch (Exception ex)
{
throw ex;
}
}
}

ROLL NO.:100 71
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

Payment.aspx

Component Table:

Sr No. Component Component Name Component Value


1 ScriptManager - scriptmanager1
2 Label - Label 1
3 Tab Container - Tabcontent1

Code :
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.Text;
using System.Data.SqlClient;
using System.Collections.Generic;
using System.Net.Mail;
using System.Text.RegularExpressions;
using System.IO;
using System.Web.Services;
using System.Web.Script.Services;
using System.Net;

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


{
DBManager db = new DBManager();
DataSet ds = new DataSet();
StringBuilder sbh = new StringBuilder();
static double total, gtotal, grand_total;

ROLL NO.:100 72
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

static int qnty;


static int str1;
static string ordertyp,name;
static string user_email;
static int result, maxid,pay;

protected void Page_Load(object sender, EventArgs e)


{
qnty = Convert.ToInt32(Session["qnty"].ToString());
total = Convert.ToDouble(Session["total"].ToString());
gtotal = Convert.ToDouble(Session["grandtotal"].ToString());
name = Session["proname"].ToString();
ordertyp = Session["ordertyp"].ToString();
if (!IsPostBack)
{
if (Session["SessionId"] == null)
{
Response.Redirect("~/Login/Login.aspx", false);
}
else
{
user_email = Session["Email"].ToString();
grand_total = gtotal;
}
}
}

private void SendMail(string pay)


{
try
{
using (MailMessage mm = new MailMessage("noreplay264@gmail.com", user_email)) // go
on this link https://myaccount.google.com/security and Allow less secure apps: ON
{
mm.Subject = "Order Confirmation";
mm.Body = "We here by confirm that we have received your Rs." + grand_total + "
payment by " + pay + " successfully.Thank You...!!!!";
mm.IsBodyHtml = false;
SmtpClient smtp = new SmtpClient();
smtp.Host = "smtp.gmail.com";
smtp.EnableSsl = true;

ROLL NO.:100 73
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

NetworkCredential NetworkCred = new NetworkCredential("noreplay264@gmail.com",


"noreplay456");
smtp.UseDefaultCredentials = true;
smtp.Credentials = NetworkCred;
smtp.Port = 587;
smtp.Send(mm);
ClientScript.RegisterStartupScript(GetType(), "alert", "alert('Email sent.');",
true);
db.MsgBoxShow("Email Sending successfully...!", this.Page);
}

}
catch (Exception ex)
{
db.MsgBoxShow(ex.ToString(), this.Page);
}
}

protected void Cash_Click(object sender, EventArgs e)


{
try
{
string strorder_master = "insert into
Order_master(Order_Type,Order_date,Email,Product_name,Quantity,prod_total,Grand_total,Amt_mode,Orde
r_status) Values('" + ordertyp + "','" + DateTime.Now.ToShortDateString().ToString() + "','" +
user_email + "','" + name + "','" + qnty + "','" + total + "','" + grand_total +
"','Cash','Pending') ";
result = db.ExecuteQuery(strorder_master);
string pay = "cash";
if (result == 1)
{
db.MsgBoxShow("Payment Done Succesfully", this.Page);
Session.Remove("SessionId");
SendMail(pay);
Response.Redirect("~/User/Home.aspx", false);
}
else
{
db.MsgBoxShow("Payment Not Done Succesfully", this.Page);
}
}
catch (Exception ex)

ROLL NO.:100 74
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

{
db.MsgBoxShow(ex.ToString(), this.Page);
}
}

protected void btnsubmit_Click(object sender, EventArgs e)


{
try
{
string strorder_master = "insert into
Order_master(Order_Type,Order_date,Email,Product_name,Quantity,prod_total,Grand_total,Name_of_card,
Card_no,Ex_month,Ex_year,Amt_mode,Order_status) Values('" + ordertyp + "','" +
DateTime.Now.ToShortDateString().ToString() + "','" + user_email + "','" + name + "','" + qnty +
"','" + total + "','" + grand_total + "','" + txtdcname.Text + "','" + txtdbcardno.Text + "','" +
drpdnDebitMonth.SelectedItem.Text + "','" + drpdnDebitYear.SelectedItem.Text +
"','Debit','Pending') ";
result = db.ExecuteQuery(strorder_master);
string pay = "Debit";
if (result == 1)
{
db.MsgBoxShow("Payment Done Succesfully", this.Page);
Session.Remove("SessionId");
SendMail(pay);
Response.Redirect("~/User/Home.aspx", false);
}
else
{
db.MsgBoxShow("Payment Not Done Succesfully", this.Page);
}
}
catch (Exception ex)
{
db.MsgBoxShow(ex.ToString(), this.Page);
}
}

protected void btnclear_Click(object sender, EventArgs e)


{
try
{
txtdebitcvv.Text = "";
drpdnDebitYear.SelectedIndex = 0;

ROLL NO.:100 75
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

drpdnDebitMonth.SelectedIndex = 0;
txtdbcardno.Text = "";
txtdcname.Text = "";
}
catch (Exception ex)
{
db.MsgBoxShow(ex.ToString(), this.Page);
}
}

protected void btncdsubmit_Click(object sender, EventArgs e)


{
try
{
string strorder_master = "insert into
Order_master(Order_Type,Order_date,Email,Product_name,Quantity,prod_total,Grand_total,Name_of_card,
Card_no,Ex_month,Ex_year,Amt_mode,Order_status) Values('" + ordertyp + "','" +
DateTime.Now.ToShortDateString().ToString() + "','" + user_email + "','" + name + "','" + qnty +
"','" + total + "','" + grand_total + "','" + txtcdname.Text + "','" + txtcdno.Text + "','" +
ddlcdmonth.SelectedItem.Text + "','" + ddlyear.SelectedItem.Text + "','Credit','Pending') ";
result = db.ExecuteQuery(strorder_master);
string pay = "Credit";
if (result == 1)
{
db.MsgBoxShow("Payment Done Succesfully", this.Page);
Session.Remove("SessionId");
SendMail(pay);
Response.Redirect("~/User/Home.aspx", false);
}
else
{
db.MsgBoxShow("Payment Not Done Succesfully", this.Page);
}
}
catch (Exception ex)
{
db.MsgBoxShow(ex.ToString(), this.Page);
}
}

protected void dtncdclear_Click(object sender, EventArgs e)


{

ROLL NO.:100 76
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

try
{
txtcdcvv.Text = "";
ddlyear.SelectedIndex = 0;
ddlcdmonth.SelectedIndex = 0;
txtcdno.Text = "";
txtcdname.Text = "";
}
catch (Exception ex)
{
db.MsgBoxShow(ex.ToString(), this.Page);
}
}

protected void btnnetsubmit_Click(object sender, EventArgs e)


{
try
{
string strorder_master = "insert into
Order_master(Order_Type,Order_date,Email,Product_name,Quantity,prod_total,Grand_total,Bank_name,Use
rName,Amt_mode,Order_status) Values('" + ordertyp + "','" +
DateTime.Now.ToShortDateString().ToString() + "','" + user_email + "','" + name + "','" + qnty +
"','" + total + "','" + grand_total + "','" + ddlnetbank.SelectedItem.Text + "','" +
txtnetusername.Text + "','Net','Pending') ";
result = db.ExecuteQuery(strorder_master);
string pay = "Net";
if (result == 1)
{
db.MsgBoxShow("Payment Done Succesfully", this.Page);
Session.Remove("SessionId");
SendMail(pay);
Response.Redirect("~/User/Home.aspx", false);
}
else
{
db.MsgBoxShow("Payment Not Done Succesfully", this.Page);
}
}
catch (Exception ex)
{
db.MsgBoxShow(ex.ToString(), this.Page);
}

ROLL NO.:100 77
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

protected void btnnetclear_Click(object sender, EventArgs e)


{
try
{
txtnetpassword.Text = "";
txtnetusername.Text = "";
ddlnetbank.SelectedIndex = 0;
}
catch (Exception ex)
{
db.MsgBoxShow(ex.ToString(), this.Page);
}
}
}

Feedback.aspx

Component Table:

Sr No. Component Component Name Component Value


1 Textbox - txtname
2 Textbox - txtemail
3 Textbox - txtcontact
4 Textbox - txtmessage
5 Button Submit btnsubmit
6 Button Reset btnreset
7 Gridview - Gridview1

Code :
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;

ROLL NO.:100 78
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

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.Text;
using System.Data.SqlClient;

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


{
static string user_email;
DataSet ds = new DataSet();
DBManager db = new DBManager();

protected void Page_Load(object sender, EventArgs e)


{
if (!IsPostBack)
{
if (Session["Email"] == null)
{
Response.Redirect("~/Login/Login.aspx", false);
}
txtemail.Text = Session["Email"].ToString();
Bind_dgv();
}
}

protected void Bind_dgv()


{
try
{
string query = "Select * from Feedback where Status='1'";
ds = db.GetData(query);
if (ds.Tables["Table"].Rows.Count > 0)

ROLL NO.:100 79
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

{
dgv.Visible = true;
dgv.DataSource = ds.Tables["Table"];
dgv.DataBind();
}
else
{
ds.Tables["Table"].Rows.Add(ds.Tables["Table"].NewRow());
dgv.DataSource = ds.Tables["Table"];
dgv.DataBind();
int columncount = dgv.Rows[0].Cells.Count;
dgv.Rows[0].Cells.Clear();
dgv.Rows[0].Cells.Add(new TableCell());
dgv.Rows[0].Cells[0].ColumnSpan = columncount;
dgv.Rows[0].Cells[0].Text = "No Records Found";
}
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}

private void ClearBox()


{
try
{
txtcontact.Text = "";
txtname.Text = "";
txtmess.Text = "";
}
catch (Exception ex)
{
Response.Write(ex.ToString());

ROLL NO.:100 80
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

}
}

protected void dgv_PageIndexChanging(object sender, GridViewPageEventArgs e)


{
try
{
dgv.PageIndex = e.NewPageIndex;
Bind_dgv();

dgv.PageIndex = e.NewPageIndex;
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}

protected void btnclear_Click(object sender, EventArgs e)


{
ClearBox();
}

protected void btnsubmit_Click(object sender, EventArgs e)


{
string str="Insert into Feedback(Name,Email,Contact,Message,Status) values('" + txtname.Text + "','"
+ txtemail.Text + "','" + txtcontact.Text + "','" + txtmess.Text + "','1')";
int result = db.ExecuteQuery(str);
if (result == 1)
{
db.MsgBoxShow("Product Details Saved Succesfully", this.Page);
ClearBox();
Bind_dgv();
}

ROLL NO.:100 81
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

else
{
db.MsgBoxShow("Product Details Not Saved Succesfully", this.Page);
}
}
}

ROLL NO.:100 82
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

5.3 TESTING APPROACH

For Login:

Test Test Test Test Step Test Test Defect


Case Case Case Case Status t
ID Name Description Status s Sever
(P/F)
Step Expected Actual
Only Enter Data is stored in Successful Pass
1. Username Authorized authorized Field
users are username
Allowed
Enter Error “Check Error Fail
unauthorize the credentials”
d username

Only Enter Data is stored in Successful Pass


2. Password Authorized authorized Field
password are Password
Allowed
Enter Error “Check Error Fail
unauthorize the credentials”
d Password

To verify Click on Successfully Successful Pass


password & Submit Login
3. Submit Username button
should not be
left blank
If password Click on Error ”Check Error Fail
and username submit the credentials”
left blank button

ROLL NO.:100 83
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

For New User:

Test Test Test Test Step Test Test Def


Case Case Case Case Status ect
ID Name Description Status (P/F) Sev
erit
Step Expected Actual y
To verify only Enter Data is Successful Pass
1 User characters are characters stored in
Name allowed and Field
field not left
Blank
Do not enter Error “*” Error Fail
any characters

2. Contact To verify enter Enter invalid Error ”*” Error Fail


numbers are details
allowed and
field not left
Blank

3. Email ID To verify field Field left Error”*” Error Fail


not left blank blank

ROLL NO.:100 84
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

For New Employee:


Test Test Test Test Step Test Test Def
Case Case Case Case Status ect
ID Name Description Status (P/F) Sev
S erit
Step Expected Actual y
To verify only Enter Data is Successful Pass
1 Employee characters are characters stored in
Name allowed and Field
field not left
blank
Do not enter Error “*” Error Fail
any characters

2. Contact To verify enter Enter invalid Error ”*” Error Fail


numbers are details
allowed and
field not left
blank

3. Employee ID To verify field Field left Error”*” Error Fail


not left blank blank

ROLL NO.:100 85
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

5.3.1 UNIT TESTING

• This UNIT TESTING is a level of software testing where individual units/ components
of a software are tested. The purpose is to validate that each unit of the software performs
as designed. A unit is the smallest testable part of any software. It usually has one or a few
inputs and usually a single output. In procedural programming, a unit may be an
individual program, function, procedure, etc. In object-oriented programming, the smallest
unit is a method, which may belong to a base/ super class, abstract class or derived/ child
class. (Some treat a module of an application as a unit. This is to be discouraged as there
will probably be many individual units within that module.) Unit testing frameworks,
drivers, stubs, and mock/ fake objects are used to assist in unit testing.

Unit testing increases confidence in changing/ maintaining code. If good unit tests are
written and if they are run every time any code is changed, we will be able to promptly
catch any defects introduced due to the change. Also, if codes are already made less
interdependent to make unit testing possible, the unintended impact of changes to any
code is less.

• Codes are more reusable. In order to make unit testing possible, codes need to be
modular. This means that codes are easier to reuse.

• Development is faster. How? If you do not have unit testing in place, you write your code and
perform that fuzzy ‘developer test’ (You set some breakpoints, fire up the GUI, provide a few
inputs that hopefully hit your code and hope that you are all set.) But, if you have unit testing in

ROLL NO.:100 86
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM
place, you write the test, write the code and run the test. Writing tests takes time but the time is
compensated by the less amount of time it takes to run the tests; You need

ROLL NO.:100 87
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

not fire up the GUI and provide all those inputs. And, of course, unit tests are more reliable
than developer tests. Development is faster in the long run too. How? The effort required
to find and fix defects found during unit testing is very less in comparison to the effort
required to fix defects found during system testing or acceptance testing.

• The cost of fixing a defect detected during unit testing is lesser in comparison to that of
defects detected at higher levels. Compare the cost (time, effort, destruction, humiliation) of
a defect detected during acceptance testing or when the software is live.

• Debugging is easy.

ROLL NO.:100 88
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

5.3.2 INTEGRATED TESTING:

INTEGREATED TESTING is a level of software testing where individual units are


combined and tested as a group. The purpose of this level of testing is to expose faults in the
interaction between integrated units. Test drivers and test stubs are used to assist in
Integration Testing.

Integration Testing : Testing performed to expose defects in the interfaces and in


the interactions between integrated components or systems. See also component
integration testing, system integration testing.

• Component Integration Testing : Testing performed to expose defects in the


interfaces and interaction between integrated components.

• System Integration Testing : Testing the integration of systems and packages;


testing interfaces to external organizations (e.g. Electronic Data Interchange, Internet).

ROLL NO.:100 89
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

5.3.3 BETA TESTING:

Beta Testing is one of the Acceptance Testing types, which adds value to the
product as the end-user (intended real user) validates the product for functionality,
usability, reliability, and compatibility.
Inputs provided by the end-users helps in enhancing the quality of the product
further and leads to its success. This also helps in decision making to invest further in
the future products or the same product for improvisation.
Since Beta Testing happens at the end user’s side, it cannot be the controlled
activity.
Beta Testing is one of the Customer Validation methodologies to evaluate the
level of customer satisfaction with the product by letting it to be validated by the end
users, who actually use it, for over a period of time.
Product experience gained by the end users are asked for feedback on design,
functionality, and usability and this helps in assessing the quality of the product.
Real People, Real Environment, Real Product are the three R’s of Beta Testing and
the question that arises here in Beta Testing is “Do Customer like the Product?”.

Beta Test Plan Include:

• Objective: Mention the objective of the project so as to why it is undergoing Beta


Testing even after performing rigorous internal tests.

• Scope: Clearly mention what are the areas to be tested and what is not to be tested.
Also mention any specific data to be used for a particular feature (say use test credit
card for payment validations – Card no, CVV, Expiry Date, OTP, etc).

• Test Approach: Clearly mention whether the testing is exploratory, what to focus
on–functionality, UI, response, etc. Mention the procedure to log bugs and also what
all to provide a proof (Screenshots/Videos).

• Schedule: Clearly specify the Start and End Dates with time, number of cycles,
and duration per cycle.

• Tools: Bug logging tool and its usage.

• Budget: Incentives for bugs based on its severity


ROLL NO.:100 90
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

• Feedback: Collecting Feedback and Evaluating methods.

• Identify and review the Entry and Exit criteria.

ROLL NO.:100 91
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

CHAPTER 6

RESULT AND DISCUSSION

6.1 TEST REPORT

Order Details Report:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using CrystalDecisions.CrystalReports.Engine;

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


{

ROLL NO.:100 92
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

DBManager db = new DBManager();


DataSet ds = new DataSet();

protected void Page_Load(object sender, EventArgs e)


{
SqlConnection con = new SqlConnection(db.getConnectiontring());
SqlCommand cmd = new SqlCommand("Select * from dbo.Order_master where
Order_status='Approve'", con);
SqlDataAdapter adp = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
adp.Fill(ds, "Dataset");

ReportDocument BooksReport = new ReportDocument();


BooksReport.Load(Server.MapPath("~/Reports/Order_report.rpt"));
BooksReport.SetDataSource(ds.Tables["Dataset"]);

CrystalReportViewer1.ReportSource = BooksReport;
CrystalReportViewer1.DataBind();
}
protected void CrystalReportViewer1_Init(object sender, EventArgs e)
{

}
}

ROLL NO.:100 93
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

Employee Reports :

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using CrystalDecisions.CrystalReports.Engine;

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


{
DBManager db = new DBManager();
DataSet ds = new DataSet();

protected void Page_Load(object sender, EventArgs e)


{

ROLL NO.:100 94
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

SqlConnection con = new SqlConnection(db.getConnectiontring());


SqlCommand cmd = new SqlCommand("Select * from dbo.Employee_details where
Status='1'", con);
SqlDataAdapter adp = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
adp.Fill(ds, "Dataset");

ReportDocument BooksReport = new ReportDocument();


BooksReport.Load(Server.MapPath("~/Reports/Emp_reports.rpt"));
BooksReport.SetDataSource(ds.Tables["Dataset"]);

CrystalReportViewer1.ReportSource = BooksReport;
CrystalReportViewer1.DataBind();
}
}

ROLL NO.:100 95
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

User Reports :

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using CrystalDecisions.CrystalReports.Engine;

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


{
DBManager db = new DBManager();
DataSet ds = new DataSet();

protected void Page_Load(object sender, EventArgs e)


{

ROLL NO.:100 96
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

SqlConnection con = new SqlConnection(db.getConnectiontring());


SqlCommand cmd = new SqlCommand("Select * from dbo.UserDetails where
Status='1'", con);
SqlDataAdapter adp = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
adp.Fill(ds, "Dataset");

ReportDocument BooksReport = new ReportDocument();


BooksReport.Load(Server.MapPath("~/Reports/User_reports.rpt"));
BooksReport.SetDataSource(ds.Tables["Dataset"]);

CrystalReportViewer1.ReportSource = BooksReport;
CrystalReportViewer1.DataBind();
}
}

ROLL NO.:100 97
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

Stock Reports:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using CrystalDecisions.CrystalReports.Engine;

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


{
DBManager db = new DBManager();
DataSet ds = new DataSet();

protected void Page_Load(object sender, EventArgs e)


{
SqlConnection con = new SqlConnection(db.getConnectiontring());

ROLL NO.:100 98
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

SqlCommand cmd = new SqlCommand("Select * from dbo.Product_details where


Status='1'", con);
SqlDataAdapter adp = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
adp.Fill(ds, "Dataset");

ReportDocument BooksReport = new ReportDocument();


BooksReport.Load(Server.MapPath("~/Reports/Stock_report.rpt"));
BooksReport.SetDataSource(ds.Tables["Dataset"]);

CrystalReportViewer1.ReportSource = BooksReport;
CrystalReportViewer1.DataBind();
}
}

ROLL NO.:100 99
T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

5.5 USER DOCUMENTATION

Steps How to Use Website:

1. Go to LOGIN at Home page click on User Registration and fill up all your details.

2. Once Registered, you can directly Login to the panel.

3. In About Us, you find all the details about our product and services.

4. You can also Contact Us on the social media or the links provided.

5. If you are User:

a) When you click on Menu option you will get the categories of the product and if
you select one of the main categories you will get the sub category list so you can
choose the product accordingly.

b) When you click on “Current Order” option you can view the order details which
have not delivered yet.

c) When you click on “Past Order” option you can view the past orders history
accordingly.

d) When you click on “Feedback” option you can give the feedback of the service
which is provided by the admin to you.

ROLL NO.:100 100


T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

CHAPTER 7

7.1 CONCLUSION
Our project is only a humble venture to satisfy the needs to manage their project work.
several user-friendly coding has also adopted. This package shall prove to be a powerful
package in satisfying all the requirements of the school. The objective of software planning is
to provide a frame work that enables the manager to make reasonable estimates made within
a limited time frame at the beginning of the software project and should be updated regularly
as the project progresses.

7.1.1 SIGNIFICANCE OF SYSTEM


Nowadays, people do think to do extra courses in order to make their resume strong.
But the way of approach is not so well developed in order to attend a course or a workshop.
My project provides a proper path to shape the future of students. Right from registration to
making payment everything is been done on the web so no issues of queues, registering in
register etc. All the details are provided right in front of you. You get to choose courses as
per your ease.

7.2 LIMITATIONS OF THE SYSTEM

Although I have put my best efforts to make the software flexible ,easy to operate but
limitation cannot be ruled out even by me. Though the software presents a broad range of
options to its users some intricate option could not be covered into it; partly because of
logistic and partially due to lack of sophistication. paucity of time was also major constraint;
thus it was not possible to make the software foolproof and dynamic. lack of time also
compelled me to ignore some part such as storing old result of the candidate etc.
Consideration efforts have made the software easy to operate even for the people not related
to the field of computer but it is acknowledged that a layman may find it a bit problematic at
the first instance. the user is providing help at each step for his convenience in working with
the software.

ROLL NO.:100 101


T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

7.3 FUTURE SCOPE OF THE PROJECT

In a nutshell, it can be summarized that the future scope of the project circles around
maintaining information regarding:

1. We can add printer in future.

2. We can give more advance software for courier management system including more
facility.

3. We will host the platform on online servers to make it accessible worldwide.

4. Integrate multiple load balancers to distribute the load of the system.

5. Create the master and slave database structure to reduce the overload of the database
queries.

6. Implement the backup mechanism for taking backup of codebase on regular basis on
different servers

ROLL NO.:100 102


T.Y.Bsc.I.T. LUNCH BOX PORTAL SYSTEM

REFERENCES

• SQL:

The Complete Reference

- Groff, James Weinberg, Paul N

• System Analysis and Design in Design World

- John Sat zinger, Robert Jackson, Stephen Bard

• Beginning Vb. Net 2015

- Thereon Willis

• Internet References

- www. Donets coders. com

- www.wikipedia.com

- www.w3schools.com

- www.youtube.com

- www.stackoverflow.com

• Diagrams:
- dia.exe – the diagramming tool
- Create – the diagramming tool
- Star UML – the diagramming tool

ROLL NO.:100 103

Anda mungkin juga menyukai