Advance Object Oriented Programming
Advance Object Oriented Programming
PROJECT REPORT
Submitted by:
Rudaba Naz
2009/comp/BS (CS)/9989
2910091
Urooba Iqbal
2009/comp/BS (CS)/10005
2910107
Saima Ehsan
2009/comp/BS (IT)/10018
2910120
Submitted To:
Ms Saira Begum
May , 2012
ABSTRACT
This project is designed for people comfort. Essentially this project illustrates all the information
of top Brands. The website owner has easily added all the information in this software for the
easiness of customer. Customers has search product is effortlessly.
ii
Acknowledgement
First of all we would like to Thanks to ALLAH. Then we would like to thank to our parents who
pushed us in an Educational life.
We would like to thanks to Ms.Saira Begum, Lecturer in Jinnah University for Women
(Department of Computer Science & I.T). We are very grateful for her teaching us so well that
today we are able to accomplish this task.
We would not be successful in completing this project if we dont acknowledge the support,
suggestions and encouragement by our friends. So we are thankful to all those friends who helped
us in fulfilling this project.
Rudaba Naz , Urooba Iqbal and
Saima Ehsan
iii
TABLE OF CONTENTS
Contents
Abstract..ii
Acknowledgement .............................................................................................................................iii
LIST OF FIGURES ........................................................................................................................... vi
Chapter 1 ............................................................................................................................................ 1
INTRODUCTION .............................................................................................................................. 1
1.1 Background ........................................................................................................................................... 1
1.2 Project overview ................................................................................................................................... 1
1.3 objective ............................................................................................................................................... 1
1.4 purpose ................................................................................................................................................ 1
1.5 goal ...................................................................................................................................................... 2
1.6 Advantages ............................................................................................................................................ 2
Chapter 2 ............................................................................................................................................ 3
FEASIBILITY STUDY ..................................................................................................................... 3
2.1
INTRODUCTION................................................................................................................................... 3
2.2
2.2.3
Chapter 3 ............................................................................................................................................ 7
UML DIAGRAM ............................................................................................................................... 7
3.1
Class Diagram...................................................................................................................................... 7
Chapter 4 ............................................................................................................................................ 9
TOOL AND TECHNOLOGY ........................................................................................................... 9
4.1 TOOLS ................................................................................................................................................... 9
4.1.1
REQUIREMENT .................................................................................................................................. 10
Chapter 5 .......................................................................................................................................... 11
SNAPSHOTS ................................................................................................................................... 11
5.1
HOME ................................................................................................................................................ 11
LOGIN : .......................................................................................................................................... 13
Chapter 6 .......................................................................................................................................... 15
CODING .......................................................................................................................................... 15
6.1 LOGIN BACKEND CODING: ................................................................................................................... 15
6.2 LOGIN FRONT END CODING: .............................................................................................................. 16
6.3 HOME PAGE FRONT END CODING:..................................................................................................... 21
Chapter 7 .......................................................................................................................................... 25
DATA DICTIONARY ..................................................................................................................... 25
7.1 CUSTOMER: ....................................................................................................................................... 25
7.2 REGISTER : .......................................................................................................................................... 25
7.3 PRODUCT : ......................................................................................................................................... 26
7.4 SHIPPING :.......................................................................................................................................... 27
CONCLUSION ................................................................................................................................ 28
REFERENCES ................................................................................................................................. 29
LIST OF FIGURES
vi
Chapter 1: Introduction
Chapter 1
INTRODUCTION
1.1 Background
The objective of this project is to develop a general purpose e-commerce website where any product can
be bought from the comfort of home through the Internet. However, for implementation purposes, this
paper will deal with an online products store. An online store is a virtual store on the Internet where
customers can browse the catalog and select products of interest. The selected items may be collected in a
shopping cart. At checkout time, the items in the shopping cart will be presented as an order. At
that time, more information will be needed to complete the transaction. Usually, the customer will be
asked to fill or select a billing address, a shipping address, a shipping option, and payment information
such as credit card number.
1.3 objective
The main objectives of our project are:
1.4 purpose
The purpose of this project is to develop a general purpose e-commerce website where any product
can be bought from the comfort of home through the Internet. However, for implementation
purposes, this paper will deal with an online products store. An online store is a virtual store on the
Internet where customers can browse the catalog and select products of interest. The selected items
may be collected in a shopping cart. At checkout time, the items in the shopping cart will be
presented as an order. At that time, more information will be needed to complete the transaction.
1
Chapter 1: Introduction
Usually, the customer will be asked to fill or select a billing address, a shipping address, a shipping
option, and payment information such as credit card number.
1.5 goal
The system will allow more than one brands to set up different shops, to sell various products
under one roof.
1.6 Advantages
Online shop style website provides a lot of benefits to the retail outlets on the site such as
administrative, management of the site as well as invoicing of the business. Customer is
benefited too. He has not only the variety but also ease to find whatever he is looking for at
one place. The choices available to customer is many as products available on online
shopping mall can range from within the product category or an entirely different product
type ( homecare, clothing, electronics etc.) from as many retailers possible.
Chapter 2
FEASIBILITY STUDY
2.1
INTRODUCTION
The idea of online shop style originates from e-commerce. E commerce is in practice in
most of the developed countries of the world such as USA, UK, and Europe etc where
shopping concept is changing from physical purchase to virtual buying. This type of
business is very popular among the retail outlets that are looking for a boost in their sale
by offering customers new channels or mediums to make a purchase. This way not only
the customer has more options but companies also enjoy an increase in their sale due to
increased online outlet.
Even after the immense success of e commerce there was a big group of business who
either knew how to do e-commerce or they were unable to manage the administration of
such technical field which required a lot of web knowledge. This generates a need of a
place where these retail outlets can start their online business but without any hassle.
Online shop style is basically the byproduct of e-commerce. The idea is to provide the
easiest platform to these retail outlets that can do online business without any trouble or
risk. Its a site where any retail outlet can get registered and have a space and the rest of
the administration will be done by the host of that online mall. Not only that but also the
host will be the one who will take care of all payment procedures.
Among all the internet activity online shopping is not only generating the maximum
revenues but also is growing at the fastest speed. It can be proved by the fact that almost
30% of all the sites are used for trading rather than attracting the advertisers for the means
of business. By looking at this statistics and knowing that this will grow to another 30%
within next few Years businesses are attracted towards internet to boost their sale with a
relevant low cost, one of the best feature of online shopping.
Moreover online shop style further reduces the cost and hassle for those retailers who have
less technical skills to take the optimum advantage of the online business.
2.2
A study of resource availability that may affect the ability to achieve an acceptable
system. This evaluation determines whether the technology needed for the proposed
system is available or not.
Can the work for the project be done with current equipment existing software
technology & available personal?
Can the system be upgraded if developed?
If new technology is needed then what can be developed?
This is concerned with specifying equipment and software that will successfully satisfy
The user requirement, The technical needs of the system may include:
Front-End Selection:
Front end is what the user will see on the webpage, this user can be a customer or the
Mall administrator or shop owner. The front ends code brings the information back from
the backend and display to the user or take the information from the user and send it to
back end for processing or storage. We require a scripting language that can be used to
develop font end. There are different scripting languages available for writing server side
scripts like ASP, JSP and PHP etc.
We use ASP.net (Active Server pages) ASP is Microsoft developed scripting language
used to create dynamic Web Pages.
Back-End Selection:
Backend is where the Website data will be stored, this data can be of the customer, shop
owner or can be site contents. For an ecommerce application databases are the foundation,
all the information comes from the database and all the information will go to the data base.
There are several databases technologies available like SQL SEERVER, MSSQL and
MYSQL. We use SQL server 2008 R2.
It is important that data base should be build correctly as application will run on top of it
and after launch of website if a serious flaw is found then its hard to fix the problem as
data base structure has to be changes that can shake the foundation of the application. So
its necessary that through time should be spend in designing of database. Few factors were
conceders while choosing the database. These factors involve:
Stability: The database should be stable and should not crash as this can make the site
down which can cause potential loose to business.
4
2.2.2
Scalability: data base should be scalable to handle large amount of data and can be
extended if necessary once build.
Speed: Speed is one of the important factor, the database should be able to retrieve
information on fast rate so that customers or users dont have to wait for the data to be
fetched; the data based should be able to optimize queries.
Referential integrity: This concept involves that data base should be developed in such
way that inconsistent data should not be saved in tables
Economical Feasibility
Economic justification is generally the Bottom Line consideration for most systems.
Economic justification includes a broad range of concerns that includes cost benefit
analysis. In this we weight the cost and the benefits associated with the candidate system
and if it suits the basic purpose of the institution.
The financial and the economic questions during the preliminary investigation are verified
to estimate the following:
The proposed system will give the minute information, as a result the performance is
improved which in turn may be expected to provide increased profits
2.2.3
Operational Feasibility
It is mainly related to human institution and political aspects. The points to be considered are:
Chapter 3
UML DIAGRAM
Unified Modeling Language (UML) is a standardized general-purpose modeling
language in the field of object-oriented software engineering. UML includes a set of graphic
notation techniques to create visual models of object-oriented software-intensive systems.
3.1
Class Diagram
A class diagram in the Unified Modeling Language (UML) is a type of static structure
diagram that describes the structure of a system by showing the system's classes, their
attributes, operations (or methods), and the relationships among the classes.
The class diagram of online shop style is given below:
Register
Customer
Cust_id: string
Cust_name : string
Cust _address: Address
Cust_phone: phone
Cust_email : string
Cust_password:string
Reg_id : string
First name :string
Last name: string
Email: string
Password : string
1
Shipping
Shipping_id :string
Cust_id : string
Item_id :string
Total_cost : double
Order
1
Order_id :string
Cust_id :string
Item_id :string
Order_date : date
Product
* Item_id :string
Item_type :string
Item_name: string
Item_price : integer
Item_description :string
Item_imgirl: string
3.2 ER DIAGRAM :
Chapter 4
TOOL AND TECHNOLOGY
4.1 TOOLS
This application is used by following tool and technology, here by.
4.1.1
Microsoft SQLServer2008
natively supports hierarchical data, and includes T-SQL constructs to directly deal with them,
without using recursive queries.
4.2
REQUIREMENT
4.2.2
Database:
Microsoft SQLServer2008
HARDWARE REQUIREMENT
RAM: 2 Gb
Hard disk: 80 Gb
10
Chapter 5
SNAPSHOTS
5.1
HOME
11
5.2 ABOUT :
5.3 CONTACT US :
12
5.4
LOGIN :
13
5.7 GALLERY:
Figure5. 8 Gallery
14
Chapter6: Coding
Chapter 6
CODING
6.1 LOGIN BACKEND CODING:
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 Login : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
string strcon = (@"Data Source=.\SQLEXPRESS;Initial Catalog=shopstyle;Integrated
Security=True");
SqlConnection con = new SqlConnection(strcon);
SqlCommand com = new SqlCommand("Reg", con);
com.CommandType = CommandType.StoredProcedure;
SqlParameter p_fn = new SqlParameter("FirstName", txtFname.Text);
SqlParameter p_ln = new SqlParameter("LastName", txtLname.Text);
SqlParameter p_email = new SqlParameter("Email",txtEmail.Text );
SqlParameter p_pwd = new SqlParameter("password", txtPasword.Text);
com.Parameters.Add(p_fn);
com.Parameters.Add(p_ln);
com.Parameters.Add(p_email);
com.Parameters.Add(p_pwd);
con.Open();
com.ExecuteNonQuery();
if (txtFname.Text != "" && txtLname.Text != "" && txtEmail.Text != "" &&
txtPasword.Text != "" && txtRepwd.Text == txtPasword.Text)
{
Session["name"] = txtEmail.Text;
Response.Redirect("Gallery.aspx");
15
Chapter6: Coding
}
else
{
lbl1.Text = "Please Fill In All The Fields!";
}
}
protected void btnLog_Click(object sender, EventArgs e)
{
string strcon = (@"Data Source=.\SQLEXPRESS;Initial Catalog=shopstyle;Integrated
Security=True");
SqlConnection con = new SqlConnection(strcon);
SqlCommand com = new SqlCommand("Log", con);
com.CommandType = CommandType.StoredProcedure;
SqlParameter p1_EmailLog = new SqlParameter("Email", txtEmailLog.Text);
SqlParameter p2_logpwd = new SqlParameter("Password", txtPwdLog.Text);
com.Parameters.Add(p1_EmailLog);
com.Parameters.Add(p2_logpwd);
con.Open();
SqlDataReader rd = com.ExecuteReader();
if (rd.HasRows)
{
rd.Read();
Session["name"] = txtEmailLog.Text;
Response.Redirect("Gallery.aspx");
}
else
{
Label1.Text = "Invalid Login Name or Password";
}
}
}
Chapter6: Coding
Chapter6: Coding
</div>
<div class="search grid_4 omega">
<form action="#" method="get">
<input type="text" value="Type your keyword" id="s" name="s" onfocus="if (this.value ==
'Type your keyword') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Type your
keyword';}" />
</form>
</div>
</div>
<div class="checkout grid_16">
<div class="newAccount grid_8 alpha">
<h4>Create New Account</h4>
<form id="form1" runat="server">
<fieldset>
<label for="firstName">First Name: </label>
<asp:TextBox ID="txtFname" runat="server"></asp:TextBox>
<br />
<label for="lastName">Last Name: </label>
<asp:TextBox ID="txtLname" runat="server"></asp:TextBox>
<br />
<label for="email">Email:</label>
<asp:TextBox ID="txtEmail" runat="server" Width="312px"></asp:TextBox>
<br />
<label for="password">Password:</label>
<asp:TextBox ID="txtPasword" runat="server" TextMode="Password"></asp:TextBox>
<br />
<label for="repassword">Retype Password:</label>
<asp:TextBox ID="txtRepwd" runat="server" TextMode="Password"></asp:TextBox>
<br />
<div class="clear"></div>
<asp:Label ID="lbl1" runat="server"></asp:Label>
</fieldset>
<p>
<asp:Button ID="Button1" runat="server" onclick="Button1_Click"
Text="Submit " />
</p>
<input type="hidden" value="30"/>
</div>
18
Chapter6: Coding
Chapter6: Coding
Chapter6: Coding
</html>
Chapter6: Coding
</div>
</div>
<div class="productThumb grid_10 prefix_3 suffix_3">
<ul>
<li class="grid_2 alpha">
<img src="images/s_images/home/slide/hp5.jpg" alt="cakes1" width="100" height="60" /></li>
<li class="grid_2">
<img src="images/s_images/home/slide/hp2.jpg" alt="cakes2" width="100" height="60" /></li>
<li class="grid_2">
<img src="images/s_images/home/slide/hp3.jpg" alt="cakes3" width="100" height="60" /></li>
<li class="grid_2">
<img src="images/s_images/home/slide/hp4.jpg" alt="cakes4" width="100" height="60" /></li>
<li class="grid_2 omega">
<img src="images/s_images/home/slide/hp1.jpg" alt="cakes5" width="100" height="60" /></li>
</ul>
</div>
</div>
<div class="clear">
</div>
</div>
<div id="fresh">
<div class="container_16">
<div id="freshCake" class="grid_16">
<div class="grid_1 alpha">
<a title="Previous" class="prevButton">«</a>
</div>
<div class="headLine grid_14">
<h3>
Our Collection</h3>
</div>
<div class="grid_1 omega">
<a title="Next" class="nextButton">»</a>
</div>
</div>
<div class="newCakes">
<div class="scroller">
<div class="newCake">
<a href="TopsM4.aspx" title="New Cake 1" class="grid_4">
<img src="images/47c78106fc80d96fef01b35e87bb4b8d_58.jpg" alt="fresh cake 1"
width="220" height="120" /></a></div>
<div class="newCake">
<a href="SweatersM4.aspx" title="New Cake 2" class="grid_4">
<img src="images/6747d4569c5e4eceaa3ffaed134fd83b.jpg" alt="fresh cake 2"
width="220" height="120" /></a></div>
<div class="newCake">
<a href="PumpM4.aspx" title="New Cake 3" class="grid_4">
22
Chapter6: Coding
Chapter6: Coding
24
Chapter 7
DATA DICTIONARY
7.1 CUSTOMER:
Figure7.1 Customer
7.2 REGISTER :
Figure7.2 Register
25
7.3 PRODUCT :
Figure7.3 Product1
26
Figure7.4 Product2
7.4 SHIPPING :
Figure7.5 Shipping
27
CONCLUSION
The project SHOP STYLE is for giving the comfort to the people. The software takes care of all
the requirements of an average mall and is Capable to provide easy and effective storage of
information related to product description. It contains all type of top Brands products. The
system also provides the facility of backup as per the requirement.
28
REFERENCES
http://en.wikipedia.org/wiki/Main_Page
http://www.google.com
29