Date post: | 10-Jul-2016 |
Category: |
Documents |
Upload: | rajiv-gupta |
View: | 217 times |
Download: | 3 times |
ONLINE SHOPPING
ONLINE SHOPPING
INTRODUCTION:
Online shopping is a website for an online shopping store which provide different
items to the people according to their needs. This web site will provide the user to
shop online whether they are anywhere in the world. The web site will have many
products, which help the user to choose the product of their own choice with
controlled prices excluding the shipment charges. There are the member and non-
member who buy the product under current scheme and discount rates. It provides
facility to the customers to give the order for the particular thing which user wants
to buy. The web site contains many products.
The main purpose of this website is to eliminate middlemen between the customer
and publisher and to provide all profits to the customers. As this system is online to
the customers, they home delivery of the required products at the effective prices
under one roof. The web site will have the facility to provide the membership by
signing in as a new user and will provide extra benefits such as giving discounts or
gifts to the users if they are member of the site by playing a little registration fee.
The project will have a login from, which will help the existing customer to log on
to the site and get benefits. This project is paid site project. With this website
efficiency is improved up tot large extent because it is easy for the user or the
buyer to purchase the product at reasonable cost without roaming here and there.
Further it will also contain the information that how many persons have visited the
site that will help to analyses the number of customer each day visiting our site.
Listing of the bank through which the payment can be made will also be given.
Jasleen Kaur
ONLINE SHOPPING
Payment mode will also be guided to the user so that shopping can be done easily.
On this web site customers can also send suggestions and complaints.
OBJECTIVES OF THE PROJECTThe project serves the following objectives:
The product are available online. One does not have to move from one store
to another in search of particular product.
After ordering the product the payment can be made easily through any
online payment method.
The cost of the item is less compared to when the item is purchased from
any shopping store because there is no middlemen between the publisher and
customer.
Transport cost is reduced to zero as one gets the item delivered at home
only.
Jasleen Kaur
ONLINE SHOPPING
SCOPE OF FUTURE APPLICATION
Today is the world of Information Technology. Neither any organization nor any
person can work efficiently without the use of Computers. We need computers in
almost all the fields today. Our Project “Online Shopping” is not only a project
which covers today’s inventory related aspects but it can be used effectively in
future as well. Nowadays, no. of shopping malls and other inventory dealing firms
are coming up in India many other projects are also in the pipeline. So this project
can help these firms and organizations work better
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
ASP.NET Introduction
ASP.NET is the latest version of Microsoft's Active Server Pages technology
(ASP). ASP.NET is a server side scripting technology that enables scripts
(embedded in web pages) to be executed by an Internet server.ASP.NET is a
Microsoft Technology ASP stands for Active Server Pages. ASP.NET is a program
that runs inside IIS.IIS (Internet Information Services) is Microsoft's Internet
server. IIS comes as a free component with Windows servers. IIS is also a part of
Windows 2000 and XP Professional.
ASP.NET is Not ASP:-ASP.NET is the next generation ASP, but it's not an
upgraded version of ASP. ASP.NET is an entirely new technology for server-side
scripting. It was written from the ground up and is not backward compatible with
classic ASP.You can read more about the differences between ASP and
ASP.NET,ASP.NET is the major part of the Microsoft's .NET Framework.
ASP.NET Work:-When a browser requests an HTML file, the server returns the
file. When a browser requests an ASP.NET file, IIS passes the request to the
ASP.NET engine on the server. The ASP.NET engine reads the file, line by line,
and executes the scripts in the file Finally, the ASP.NET file is returned to the
browser as plain HTML.
ASP+:-ASP+ is the same as ASP.NET.ASP+ is just an early name used by
Microsoft when they developed ASP.NET.
The Microsoft .NET Framework:-The .NET Framework is the infrastructure for
the Microsoft .NET platform. The .NET Framework is an environment for
building, deploying, and running Web applications and Web Services.Microsoft's
first server technology ASP (Active Server Pages), was a powerful and flexible
"programming language". But it was too code oriented. It was not an application
Jasleen Kaur
ONLINE SHOPPING
framework and not an enterprise development tool.The Microsoft .NET
Framework was developed to solve this problem. .NET Frameworks keywords:
Easier and quicker programming.
Reduced amount of code.
Declarative programming model.
Richer server control hierarchy with events.
Larger class library.
Better support for development tools.
The .NET Framework consists of 3 main parts:
Programming languages:
C#
Visual Basic (VB .NET)
J#
Server technologies and client technologies:
ASP .NET (Active Server Pages)
Windows Forms (Windows desktop solutions)
Compact Framework (PDA / Mobile solutions)
Development environments:
Visual Studio .NET (VS .NET)
Visual Web Developer
Master Pages:- ASP.NET didn't have a method for applying a consistent look and
feel for a whole web site.Master pages in ASP.NET 2.0 solves this problem.A
master page is a template for other pages, with shared layout and functionality. The
master page defines placeholders for content pages. The result page is a
combination (merge) of the master page and the content page.
Jasleen Kaur
ONLINE SHOPPING
Themes:- Themes is another feature of ASP.NET. Themes, or skins, allow
developers to create a customized look for web applications. Design goals for
ASP.NET themes:
Make it simple to customize the appearance of a site.
Allow themes to be applied to controls, pages, and entire sites.
Allow all visual elements to be customized.
Web Parts:- ASP.NET Web Parts can provide a consistent look for a site, while
still allowing user customization of style and content. New controls:
Zone controls - areas on a page where the content is consistent
Web part controls - content areas for each zone
Navigation:-ASP.NET has built-in navigation controls like
Site Maps
Dynamic HTML menus
Tree Views
Security:-Security is very important for protecting confidential and personal
information. In ASP.NET the following controls has been added:
A Login control, which provides login functionality.
A Login Status control, to control the login status.
A Login Name control to display the current user name.
A Login View control, to provide different views depending on login status.
A Create User wizard, to allow creation of user accounts.
A Password Recovery control, to provide the "I forgot my password"
functionality.
Roles and Personalization:- Internet communities are growing very
popular.ASP.NET has personalization features for storing user details. This
provides an easy way to customize user (and user group) properties.
Jasleen Kaur
ONLINE SHOPPING
Internationalization:- Reaching people with different languages is important if
you want to reach a larger audience.ASP.NET has improved support for multiple
languages.
Data Access:- Many web sites are data driven, using databases or XML files as
data sources. With ASP.NET this involved code, and often the same code had to be
used over and over in different web pages. A key goal of ASP.NET was to ease the
use of data sources.ASP.NET has new data controls, removing much of the need
for programming and in-depth knowledge of data connections.
Mobility Support:-The problem with Mobile devices is screen size and display
capabilities. In ASP.NET, the Microsoft Mobile Internet Toolkit (MMIT) provided
this support. In ASP.NET, MMIT is no longer needed because mobile support is
built into all controls.
Images:- ASP.NET has new controls for handling images:
The Image Map control - image map support.
The Dynamic image control - image support for different browsers.
These controls are important for better image display on mobile devices, like
hand-held computers and cell phones.
Automatic Compilation;-ASP.NET provides automatic compilation. All files
within a directory will be compiled on the first run, including support for WSDL,
and XSD files.
Compiled Deployment (Installation) and Source Protection:- ASP.NET also
provides pre-compilation. An entire web site can be pre-compiled. This provides
an easy way to deploy (upload to a server) compiled applications, and because only
compiled files are deployed, the source code is protected.
Jasleen Kaur
ONLINE SHOPPING
Site Management:- ASP.NET has three new features for web site configuration
and management:
New local management console.
New programmable management functions (API).
New web-based management tool.
Jasleen Kaur
ONLINE SHOPPING
History
After the release of Internet Information Services 4.0 in 1997, Microsoft began
researching possibilities for a new web application model that would solve
common complaints about Active Server Pages, especially with regard to
separation of presentation and content and being able to write "clean" code. Mark
Anders, a manager on the IIS team, and Scott Guthrie, who had joined Microsoft in
1997 after graduating from Duke University, were tasked with determining what
that model would look like. The initial design was developed over the course of
two months by Anders and Guthrie, and Guthrie coded the initial prototypes during
the Christmas holidays in 1997.
The initial prototype was called "XSP"; Guthrie explained in a 2007 interview that,
"People would always ask what the X stood for. At the time it really didn't stand
for anything. XML started with that; XSLT started with that. Everything cool
seemed to start with an X, so that's what we originally named it." The initial
prototype of XSP was done using Java, but it was soon decided to build the new
platform on top of the Common Language Runtime (CLR), as it offered an object-
oriented programming environment, garbage collection and other features that
were seen as desirable features that Microsoft's Component Object Model platform
didn't support. Guthrie described this decision as a "huge risk", as the success of
their new web development platform would be tied to the success of the CLR,
which, like XSP, was still in the early stages of development, so much so that the
XSP team was the first team at Microsoft to target the CLR.With the move to the
Common Language Runtime, XSP was re-implemented in C# (known internally as
"Project Cool" but kept secret from the public), and renamed to ASP+, as by this
point the new platform was seen as being the successor to Active Server Pages, and
Jasleen Kaur
ONLINE SHOPPING
the intention was to provide an easy migration path for ASP developers.Mark
Anders first demonstrated ASP+ at the ASP Connections conference in Phoenix,
Arizona on May 2, 2000. Demonstrations to the wide public and initial beta release
of ASP+ (and the rest of the .NET Framework) came at the 2000 Professional
Developers Conference on July 11, 2000 in Orlando, Florida. During Bill Gates's
keynote presentation, Fujitsu demonstrated ASP+ being used in conjunction with
COBOL and support for a variety of other languages was announced, including
Microsoft's new Visual Basic .NET and C# languages, as well as Python and Perl
support by way of interoperability tools created by ActiveState.
Once the ".NET" branding was decided on in the second half of 2000, it was
decided to rename ASP+ to ASP.NET. Mark Anders explained on an appearance
on The MSDN Show that year that, "The .NET initiative is really about a number
of factors, it’s about delivering software as a service, it's about XML and web
services and really enhancing the Internet in terms of what it can do .... we really
wanted to bring its name more in line with the rest of the platform pieces that make
up the .NET framework."
After four years of development, and a series of beta releases in 2000 and 2001,
ASP.NET 1.0 was released on January 5, 2002 as part of version 1.0 of the .NET
Framework. Even prior to the release, dozens of books had been written about
ASP.NET, and Microsoft promoted it heavily as part of their platform for web
services. Guthrie became the product unit manager for ASP.NET, and development
continued apace, with version 1.1 being released on April 24, 2003 as a part of
Windows Server 2003. This release focused on improving ASP.NET's support for
mobile devices.
Jasleen Kaur
ONLINE SHOPPING
Performance
ASP.NET aims for performance benefits over other script-based technologies
(including Classic ASP) by compiling the server-side code to one or more DLL
files on the web server. This compilation happens automatically the first time a
page is requested (which means the developer need not perform a separate
compilation step for pages). This feature provides the ease of development offered
by scripting languages with the performance benefits of a compiled binary.
However, the compilation might cause a noticeable delay to the web user when the
newly-edited page is first requested from the web server.
The ASPX and other resource files are placed in a virtual host on an Internet
Information Services server (or other compatible ASP.NET servers; see Other
Implementations, below). The first time a client requests a page, the .NET
framework parses and compiles the file(s) into a .NET assembly and sends the
response; subsequent requests are served from the DLL files. By default ASP.NET
will compile the entire site in batches of 1000 files upon first request. If the
compilation delay is causing problems, the batch size or the compilation strategy
may be tweaked.Developers can also choose to pre-compile their code before
deployment, eliminating the need for just-in-time compilation in a production
environment.
ASP.NET compared to ASP classic
ASP.NET attempts to simplify developers' transition from Windows application
development to web development by offering the ability to build pages composed
of controls similar to a Windows user interface. A web control, such as a button or
label, functions in very much the same way as its Windows counterpart: code can
Jasleen Kaur
ONLINE SHOPPING
assign its properties and respond to its events. Controls know how to render
themselves: whereas Windows controls draw themselves to the screen, web
controls produce segments of HTML and JavaScript which form part of the
resulting page sent to the end-user's browser.ASP.NET encourages the programmer
to develop applications using an event-driven GUI model, rather than in
conventional web-scripting environments like ASP and PHP. The framework
attempts to combine existing technologies such as JavaScript with internal
components like "ViewState" to bring persistent (inter-request) state to the
inherently stateless web environment.
Other differences compared to ASP classic are:
1. Compiled code means applications run faster with more design-time errors
trapped at the development stage.
2. Significantly improved run-time error handling, making use of exception
handling using try-catch blocks.
3. Similar metaphors to Microsoft Windows applications such as controls and
events.
4. An extensive set of controls and class libraries allows the rapid building of
applications, plus user-defined controls allow commonly-used web
template, such as menus. Layout of these controls on a page is easier
because most of it can be done visually in most editors.
5. ASP.NET leverages the multi-language capabilities of the .NET Common
Language Runtime, allowing web pages to be coded in VB.NET, C#, J#,
Delphi.NET, Chrome etc.
6. Ability to cache the whole page or just parts of it to improve performance.
Jasleen Kaur
ONLINE SHOPPING
7. Ability to use the code-behind development model to separate business
logic from presentation.
8. If an ASP.NET application leaks memory, the ASP.NET runtime unloads
the AppDomain hosting the erring application and reloads the application
in a new AppDomain.
9. Session state in ASP.NET can be saved in a Microsoft SQL Server
database or in a separate process running on the same machine as the web
server or on a different machine. That way session values are not lost when
the web server is reset or the ASP.NET worker process is recycled.
10. Versions of ASP.NET prior to 2.0 were criticized for their lack of
standards compliance. The generated HTML and JavaScript sent to the
client browser would not always validate against W3C/ECMA standards.
In addition, the framework's browser detection feature sometimes
incorrectly identified web browsers other than Microsoft's own Internet
Explorer as "downlevel" and returned HTML/JavaScript to these clients
with some of the features removed, or sometimes crippled or broken.
However, in version 2.0, all controls generate valid HTML 4.0, XHTML
1.0 (the default) or XHTML 1.1 output, depending on the site
configuration. Detection of standards-compliant web browsers is more
robust and support for Cascading Style Sheets is more extensive.
11. Web Server Controls: these are controls introduced by ASP.NET for
providing the UI for the web form. These controls are state managed
controls and are WYSIWYG controls.
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
INTRODUCTION TO SQL SERVER 2005 SQL SERVER 2005 is a Microsoft Product that is a software used to
provide service that deals with the database.
SQL is a query language that is used to interact with the database.
It can be accessed by most programming languages.
Information stored in a SQL Server 2005 database hosted on a web server
can be accessed from anywhere in the world with a computer.
This makes it a good way to store information that needs the ability to
change over time, but also needs to be accessed over the net. Some examples
that can utilize SQL Server 2005 are a web message board or a customer's
shipping status.
SQL Server has some differences from Oracle 9i such as the Unique key
can have at most one null values here. It uses various stored procedures as a
compiled object.
SQL Server 2005 Express is the free version of the Microsoft SQL Server
2005 database.
It replaces MSDE (Microsoft SQL Server 2000 Desktop Engine), which was
based on Microsoft SQL Server 2000.
Organizations that have developed MSDE applications will find it easy to
move to SQL Server 2005 Express.
SQL Server 2005 Express includes the new SQL Server 2005 database
engine enhancements and a new graphical user interface (GUI) tool called
SQL Server 2005 Management Studio Express Edition.
SQL Server 2005 Express is integrated with Microsoft Visual Studio, which
facilitates the design and development of database applications.
Jasleen Kaur
ONLINE SHOPPING
Like MSDE, SQL Server 2005 Express is designed to provide an easy-to-use
database platform that can be freely distributed with your applications.
SQL Server 2005 Express has a number of important advantages over
MSDE, such as visual configuration tools, XML data support, and simplified
deployment of applications. These changes have resulted in a number of
important differences between SQL Server 2005 Express and MSDE.Some of these advantages are:
• Increased maximum database size
• No workload governor
• SQL Server 2005 Management Studio Express Edition
• CLR integration
• New data types
• User instance support
• Reporting Services
• SQL Service Broker
• Full text search
Why Visual Studio 2008 and SQL Server 2005?
Microsoft Visual Studio 2008 and SQL Server 2005 combine to be an easily
acceptable combination and are supported by all Operating Systems.
Microsoft Visual Studio 2008 is the Microsoft Software that can be easily
bounded with SQL Server 2005 as it is accompanied within the Visual
Studio2008 package.
In Visual Studio 2008, I am using Visual Basic, ASP.NET in my web
application.
Jasleen Kaur
ONLINE SHOPPING
Visual Studio 2008 works at the Front End and SQL Server 2005 at the
Back End .
Web Designing in ASP.NET, and coding through C# or VB and Connection
establishment with SQL Server 2005 for database access is much easier.
Both provide GUI environment.
Easily transported and stored.
.NET Framework has enabled us to develop a platform independent
application.
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
SYSTEM STUDY
INVENTORY: all commercial organization such as factories, warehouses and
traders keep in a stock, either for their own serving machines. Material stocked for
future sale or consumption is called inventory.
The kind of inventory held by different organizations usually consist of:-
1. Raw materials and supplies inventory.
2. Production inventories.
3. Maintenance repair and operation inventories.
4. In process inventories.
5. Finished products inventories.
INVENTORY CONTROL:- the advent of modern industrialization has in its
wake highlighted a number of management problem an imported one of which is
cost reduction and cost control. Inventories are the assets of organizations and
represent investment. Since inventories are of indispensable use of the industry
there has to be some controls on them. Effective controlled inventories can
contribute sustention to a concerns profits.
Inventory control may be defined the planning, ordering and scheduling of
materialized in manufacturing process. It is possible to exercise control over three
types of inventories recognized by the accountant as the raw materials, work in
progress and finished goods.
It emerges from the definition given above that the inventory control is the system
devised and adopted for controlling investment in the inventory. It involves
inventory planning and decision making with regard to quantity time of purchase,
Jasleen Kaur
ONLINE SHOPPING
fixation of stock levels, maintenance of store records and controls exits neither the
material wait unduly long for men and machine and nor do they have to wait for
the material.
The game of inventory management aims to attain a healthy balance between cost
of inventory and cost of not having it. On one hand it might lead to our stocking as
is in the case of Govt. institution but on the other hand it could help to maintain
such least amount of stock level so that the demand is met just in time to meet
schedules.
IDENTIFICATION OF NEED:- the success of a largely depends upon hoe
accurately the problem is defined and investigated. Not until the problem is defined
and evaluated, should we think about the solutions.
LIMITATIONS:- though the existing system is working efficiently, still
introduction of computers will enhance the overall performance. before
computerization, the companies have to face many problems describe below:-
When the work is done manually, a number of registers need to be
maintained to keep records of the suppliers/customers, their reports etc. thus
a lot of paperwork is involved.
The data and information is redundant and scattered in various registers,
which results in non-synchronized procedure of collection, transmission and
processing of data.
Some accidental error in data entry may cost a lot of confusion and wastage
of time, since this data may be required later for computation and
assessment.
Inconsistency problems.
Security problems.
Jasleen Kaur
ONLINE SHOPPING
This project will rectify all such problems. The basic inventory control problem
therefore become of determine the following two:-
a) How much an order for material be placed?
b) How much should be produced at beginning of each time interval or what
quantity of item should be ordered at each time?
SALES AND SELLING
Both in purchasing and non-manufacturing concerns, selling function is involves,
beside manufacturing of purchasing goods, in order to perform this function
efficiently selling and distribution expense are incurred in all the concerns. Most of
these are included in direct costs.
The role aim if the business is to maximize profits but this is only possible by
reducing the cost of production or increasing the sales in the existing markets or by
entering new markets. No doubt the cost of production is reduce by increasing the
production but increase in sales is a must to meat the increase in output. In order to
increase the sales most of the firms are undertaking sales promotion activities but
they have to face stiff competition: under such circumstances, it become necessary
for a firm to incur selling and distribution expenses and some times they are so
heavy that they are even more than the manufacturing expenses. In some concerns
after sale service is provided for special products like radios, television,
refrigerators, washing machine and some special facilities and discounts are given
to wholesalers and retailers. Accounting and controls of selling and distribution
expense which are generally incurred after the production of goods has assumed an
Jasleen Kaur
ONLINE SHOPPING
increase importance in order to determine the cost of sales and profitability of each
job and product, control the selling and distribution cost, to fix price and formulae
sales price policy, to fix optimum sale levels and to make decision regarding sales
i.e. sales under different conditions markets regions and by different methods.
The accounting of selling distribution overhead requires three stage analysis:
1) Accounting to nature of objects of expenditure.
2) By function or cost center.
3) By products of cost units.
The control selling and distribution overhead is comparatively difficult
because of certain special features of such cost which requires a more
detailed and exacting analysis cost of the expenses s most of the expense are
incurred after the production is completed. The incidence of such overhead is
dependent upon various such as distance of market terms of sales an extent of
competition due to which it is not possible to fix standards. The main
problems which are in control of selling and distribution overhead costs are
as under:-
1) No controls over customer of competition is possible.
2) Sales capacity of the organization can’t be described properly.
3) There is no supervision of staff working outside and this requires
incentives schemes remunerating such as staff.
4) Original business may establish market price without reference to the cost
of production.
5) It is difficult to obtain market operation data.
Jasleen Kaur
ONLINE SHOPPING
6) It is difficult to as certain the capacity of the market.
7) the difference of making or not making is not clear.
Most of the items of the selling and distribution are in nature of policy costs and
are controllable at the lower levels of management.
Although price are more controlled by market management. This function is to
performed under normal circumstances, in times of competition, in times of
competition, in times of trade depression, in accepting additional orders of utilizing
idle capacity and finally, in exporting and exploring new markets.
In normal circumstances, the price fixed must cover total cost as otherwise profits
can’t be earned. It can also be fixed on the basis of marginal cost by adding a high
margin to marginal cost which may be sufficient to contribute towards fixed
expenses and profits. But under other circumstances products may have to be sold
price below total cost. If such a steps is necessary to meet the situation arising due
to competition, depression additional orders by utilizing spare capacity, exploring
new markets etc. thus in special circumstances, price may be the total and it should
be equal to the marginal cost plus a certain amount. The analysis of various matters
will be complete only when the actual profit and standard profit is fully analysis. It
is necessary to make an analysis of the sales variance to complete analysis of profit
variance because profit is the difference sales and costs. Thus in addition to the
analysis of cost variance and overhead cost variance i.e. material cost variance,
labor cost variance and overhead cost variance, an analysis the sales variance
should be made. Sales variance may be calculated in two different ways. These
may be computed so as to show the effect on profit or these made calculated to
show the effect on sales value.
Jasleen Kaur
ONLINE SHOPPING
PURCHASING
Purchasing is the most important function of the materials management. At the
moment an order is placed for the purchase of the material, a substantial part of the
company’s finance is committed which cash flow position of the company. Thus if
size of the business concern permits there should be a separate purchasing all types
of materials should be entrusted to this department.
Purchasing is not an end in itself: materials and suppliers are brought because they
are needed to be used. It is some time regarded merely as a service function
because the activities of purchasing have the primary function of implementing the
work of other departments by producing these products.
With changing conditions, the purchasing policy of today could be disastrous for
tomorrow. Continuous attention and a maximum flexibility are essential. These
changes must be recognized they should be anticipated and purchasing methods to
be develop to cope with them successfully.
Purchasing has required a state of dynamic management activity which includes:-
1) able administration.
2) Accurate forecasting.
3) Effective planning.
4) Developed capacity to organized.
5) Effective co-ordination.
6) Better controlling machinery.
7) Judicious timely decision.
Jasleen Kaur
ONLINE SHOPPING
Purchasing may be defined as a process of buying, learning a need, selecting a
supplier, negotiating a price, fixing terms for delivery and payment. Procurement is
a generic term, much broader than purchasing which includes purchasing and all
additional function connected with the classes of resources(people, material,
facilities and salvage operation. All the term procurement originates in the
governmental organization. It has been used in the segments of American industry
for many years procurement includes extraction from owned minus of forests,
cultivation of agricultural lands, manufactured in on plants and purchase.
Today’s purchasing agent is no longer the order placer of yeastier year. He is
instead a seeker one looking for the best value the market can offer to meet
company’s needs of the materials. Failures of purchasing policy adds to the cost of
production of ineffective selling techniques.
The ultimate object of purchasing function is the maximization of profits of
minimizing the cost of production. Purchasing objectives vary according to the
type of business and manufacturing activities.
What, when, how , how much, from whom and what price to buy are decision that
must to be made in purchasing department rightness of the decision determines
how well the responsibility is fulfilled. Strictly speaking they are not steps in
purchasing for the factors are so completely simultaneously. The purchasing policy
followed by an organization are based on the following principle of the
purchasing:-
1) Right quantity.
2) Right price.
3) Right source.
4) Right quality.
Jasleen Kaur
ONLINE SHOPPING
5) Right time.
6) Right place.
It is quite clear that purchasing is integral and essential part of business must mesh
into a unified whole if management is to fulfill its basic responsibility to optimize
enterprise profits. Each function of business must share in this responsibility.
INVENTORY TURNOVER RATIO
STORES:- There are many small items required in a manufacturing house for
proper maintenance of machines like cotton, blankets, thick cotton sheets, bed
sheets, towels etc. separate accounts are not opened for these instead one account
i.e. ‘STORES’ is opened and total stores consumed during a period are debited to
trading account. For calculating the value of stores consumed, following formula
may be used:-
Stores Consumed= Opening stock of stores + Purchasing stock of stores – Closing
stock of stores
STOCK OR INVENTORY TURNOVER RATIO:- This ratio measures how
many times the average stock is during the year. Promptness of the sale indicates
better performance of the business. It also shows efficiency of the concern.
Immediate sales of goods produced require further production which consequently
activates the production process and is responsible for rapid development of the
business. Higher inventory turnover ratio is always beneficial to the concern.
Lower inventory turnover ratio shows that the stock is blocked and not
immediately sol. It shows the poor performance of the business and inefficiency of
the management. The ratio measures the effectiveness of the stock policy of the
Jasleen Kaur
ONLINE SHOPPING
management. It should be the constant effort of the management to dispose of the
stock at the earliest.
The ratio establishes relationship between cost of goods sold and average stock.
Every business has to keep optimum quality of stock, so that production work may
be carried on smoothly. If the average inventory kept during the year is more
than ordinary requirement, the amount spent in its purchase will be
unnecessarily blocked and there will also be the problem of storing it. In
case, the average stock is lesser than the ordinary requirement, the
production work will suffer. It is always advisable to keep the required
quantity of the stock. This ratio is calculated as under:-
Stock turnover ratio= cost of goods sold/ average stock
Cost of goods sold is also known as the cost of sales and is calculated as
under:-
Cost of goods sold= opening stock + purchase + direct expenses – closing stock
Or
Cost of goods sold= net sales – gross profit.
Average stock= opening stock + closing stock/2
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
SYSTEM ANALYSIS
Analysis is a detailed study of various operations performed by a system and their
relationships within and outside the system. One should know, what should be
done to solve the problem? During analysis data are collected on available files,
decision points and transactions handled by the present system. The analysis
conducted resulted in the formation of the database relations and the different
attributes to be used by the back end tools. Data flow diagrams, interviews, on site
observations, and questionnaires are examples. The interview is a commonly used
tool in analysis. It requires special skills and sensitivity to the subjects being
interviewed. Bias in data collection and interpretation can be a problem.
Training, experience, and common sense are required for collection of the
information needed to do the analysis.
Once analysis is complete, the analyst has a firm understanding of what
is to be done. The next step is to decide how the problem might be solved. Thus in
systems design, we move from the logical to the physical aspects of the life cycle.
Jasleen Kaur
ONLINE SHOPPING
REQUIREMENTS ANALYSIS
REQUIREMENTS TO THE PROJECT
Software requirements:In the software requirement we discuss about software that are required to install
this system.
The minimum software requirements are as
Follows:
Front End: - ASP.NET
Back End: - SQL SERVER
Operating System: - Windows XP
Hardware Requirements:In Hardware Requirements, we need lot of hardware components to install this
system. The minimum hardware requirements are as follows:
Memory: - Minimum 512 MB RAM, 10 GB hard disk
Storage Media: - DVD-ROM
Processor: - Pentium 4
VGA Color Monitor
Printer
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
SYSTEM DEVELOPMENT LIFE CYCLE
Software development cannot happen in a single stage. For making a project we
need various stages of the system development life cycle. In this cycle, each stage
has its definite role, which is useful in the development of the system. Many
people may their part in the development of the system like system analyst,
programmer, designer and the user. The combination of all these people makes the
system successful.
The system analyst gives a development project meaning and direction. Analysis
means breaking a problem into successively manageable parts for individual study.
A candidate system approached after the analyst has a through understanding of
user’s need and problems. A candidate system means the newly developed system
designed to replace the existing system. It needs to recognize that a candidate
system has a life cycle.
The system development life cycle involve the following stages:
1. RECOGNIZATION OF NEED
2. FEASIBILITY STUDY
3. ANALYSIS
4. DESIGN
5. IMPLEMENTATION
6. POST IMPLEMENTATION
Following are the key questions that are needed to be taken in
consideration while developing a system:
Jasleen Kaur
ONLINE SHOPPING
STAGE KEY QUESTION RESULT
1.RECOGNITION OF
NEED
Preliminary survey.
Initial investigation.
What is the problem or
opportunity?
Statement of scope and
objective.
2.ANALYSIS
Detailed execution of existing
system and
procedure.
Analysis of alternative
candidate system.
Data collection.
Cost estimation.
What are the user
demonstrable needs?
Is the problem worth
solving?
What are the facts?
How can the problem be
redefined?
System scope and objective,
tech., behavioral feasibility, cost/
benefit analysis.
Data dictionary, data flow
diagram, Pertinent data.
Statement of new scope and
objective.
3.DESIGN
General design
specification
In general, how must the
problem be solved?
Specifically, how must the
Design of alternative solutions.
Final cost/benefit analysis
Jasleen Kaur
ONLINE SHOPPING
Detailed design
specification
Output
Input
Files
Procedures
Program construction
Testing
problem be solved?
What is the system flow?
Does the user approve the
system?
How well do individual
programs/ modules test
out?
How ready are programs
for acceptance test?
Hardware specifications
Cost estimation
Implementations specifications
Implementation schedule
Approval of system by users sys
Programs
Test plans security, audit
and operating procedure.
Actual hardware use.
Formal system test.
Jasleen Kaur
ONLINE SHOPPING
Unit testing
Combine module
Testing
User acceptance
4. IMPLEMENTATION
User’s training
File system conversion.
What is actual operation?
Are user manual ready?
Are there delays in
loading files?
Training program
User-friendly
documentation.
5. POST
IMPLEMENTATION AND
MAINTENANCE
Evaluation
Maintenance
Enhancement
Is the key system running?
Should the system be
modified?
Users requirement met.
Users standards met
specified user.
Jasleen Kaur
ONLINE SHOPPING
RECOGNITION OF NEED - What is the problem?
One must know what the problem is before it can be solved. The basis for a
candidate system is the recognition of a need for improving an information system
or procedure. e.g. a supervisor may want to investigate the system flow in
purchasing or a bank president has been obtaining complaints about the long lines
in the drive-in. The need leads to preliminary survey or Initial Investigation to
determine whether an alternative system can solve the problem. It entails looking
into the duplication of efforts, bottlenecks, inefficient existing procedures, or
whether parts of the existing system would be candidate for computerization.
If the problem is serious enough, management may want to have
an analyst look at it. Such an assignment implies a commitment, especially if the
analyst is hired from the outside. In larger environment the analyst's first task is to
prepare a statement specifying the scope & objective of the problem. He/she then
reviews it with the user for accuracy. At this stage, only a rough estimate of the
development cost of the project may be reached. However an accurate cost of the
next phase-feasibility study can be produced.
Impetus for System ChangeThe idea for change originates in the environment or from within the firm.
Environment-based ideas originate from customers, vendors, government sources,
and the like. For example, new employment compensation regulations may make
it necessary to change the reporting procedure, format and contents of various
reports, as well as file structures. Customer complaints about the delivery schedule,
the experience of truck drivers, or the volume of orders to be delivered. When
Jasleen Kaur
ONLINE SHOPPING
investigated, each of these ideas may lead to a problem definition as a first step in
the software development life cycle process.
Ideas for change may also come from within the organization-top management, the
user, and the analyst. As an organization changes its operations or faces advances
in computer technology, someone within the organization may feel to update
existing applications or improve procedures.
Here are some examples:
An organization acquires another organization.
A local bank branches into the suburbs,
A department spends 80 percent of its budget in one month.
Two departments are doing essentially the same work, and each department
head insists the other department should be eliminated.
A request for a new form discloses the use if bootleg (unauthorized) forms.
User- originated ideas also prompt initial investigations. For example, a bank's
head teller has been noticing long customer lines in the lobby. He wants to know
whether they are due to computer's slow response to inquiries, the new teller's
limited training, or just a sudden increase in bank business. To what extent and
how quickly a user - originated idea is converted to a feasibility study depend on
several factors.
The risks and potential returns.
Management's bias toward the user.
Financial costs and the funds available for system work.
Priorities of other projects in the firm.
The persuasive ability of the user.
All these factors are crucial for a prompt response to a user request for change. A
system analyst is in a unique position to detect and even recommend change.
Jasleen Kaur
ONLINE SHOPPING
Experience and previous involvement in the user's area of operations make him /
her convenient resource for ideas. The role and status of the analyst as a
professional add credibility to the suggestions made.
FEASIBILITY STUDY
The objective of Initial Investigation is to determine whether the request is valid
and feasible before a recommendation is reached to do nothing, improve, or
modify the existing system, or build a new one.
Depending on the results of the initial investigation, the survey is expanded to a
more detailed feasibility study. A feasibility study is a test of a system proposal
according to its workability, impact on the organization, ability to meet user needs,
and effective use of resources. It focuses on three major things:
1. What are the user's demonstrable needs and how does a candidate system
meet them?
2. What resources are available for given candidate systems?
3. What are the likely impacts of the candidate system on the organization?
THERE ARE MAJOR CHARACTERSTICS TO BE TAKEN INTO
ACCOUNT
Economic feasibility
Technical feasibility
Behavioral feasibility
Economic FeasibilityEconomic analysis is the most frequently used method for evaluating the
effectiveness of a candidate system. A procedure of cost/benefit analysis is applied
to determine the savings and benefits that are expected from the candidate system
Jasleen Kaur
ONLINE SHOPPING
and then compare them with the costs. If benefits outweigh the costs, then the
decision is made to design and implement the system. Otherwise, further
justification or alterations in the propose system will have to be made if it is to
have a chance of being approved. This is an ongoing effort that improves in
accuracy at each phase of the system life cycle.
Social Feasibility
It is important to study the social implications when a new product or system is
introduced. People are inherently resistant to change and computers have been
known to facilitate change. An estimate should be made of how strong a reaction
user staff is likely to have towards the development of a computerized system. It is
common that computer installation results in turnover, transfers, retraining and
changes in the employee’s job status. Therefore, it is undesirable that the
introduction of the candidate system requires special effect to educate, sell, and
train the staff on new ways of conducting business. When we explained our system
to users, they gave a good response.
Behavioral Feasibility
People are inherently resistant to change, and computers have be known to
facilitate change .it is common knowledge that the computer installation has
something to with turnover, transfer, retraining and changes in the employee job
status therefore it is understandable that the introduction of the candidate system
requires special effort to educate and train the staff on new ways of conducting
business
Points that the user staff rose against the new system.
Jasleen Kaur
ONLINE SHOPPING
1) Difficult training would have to be undertaken at personal costs.
2) Change in job status, and may be demotion if found not qualified for the job.
3) Difficulties in change the old record.
4) Transfer of employees to less relevant job station.
5) Difficult and time consuming requires if system failure occurs during the working
hours.
6) Loss of time and working hours if the system is not repaired on the time.
The user staff that had to directly work on the new system gave all the limitation.
or the apprehensions that are listed above. They feared that the new system would
result in the demotions or they will be out of their jobs.
Technical FeasibilityIt involves determining whether or not a system can actually be constructed to
solve the problem at hand. Technical feasibility centers on the existing computer
system (hardware, software) etc. and to what extent it can support the proposed
system. System developed by us is technically feasible because no system was
previously running on their system as he has purchased a new system. Our system
would be easy to use as it is user friendly to a person who knows simple English
can easily use it effectively and it is capable of fulfilling their requirements about
the production, sales, purchase, stock control of products and employee
information.
The various issues considered for the technical feasibility are:
Technical guaranties of accuracy, reliability, ease of access and data
security.
Usefulness in panning purposes.
Proposed system and component provide adequate responses to inquiries.
Comprehensive and full proof interdependence.
Jasleen Kaur
ONLINE SHOPPING
Can be easily enhanced in the future.
Jasleen Kaur
ONLINE SHOPPING
Data flow diagram
Data flow diagram example
Data flow diagram Yourdon and Coad notation
Data flow diagram (DFD) is a graphical representation of the "flow" of data
through an information system. A data flow diagram can also be used for the
visualization of data processing (structured design).
Overview
It is common practice for a designer to draw a context-level DFD first which
shows the interaction between the system and outside entities. The DFD is
designed to show how a system is divided into smaller portions and to highlight the
flow of data between those parts. This context-level DFD is then "exploded" to
Jasleen Kaur
ONLINE SHOPPING
show more detail of the system being modeled. Data flow diagrams were invented
by Larry Constantine, the original developer of structured design, based on Martin
and Estrin's "data flow graph" model of computation.
Data flow diagrams (DFDs) are one of the three essential perspectives of
Structured Systems Analysis and Design Method SSADM. The sponsor of a
project and the end users will need to be briefed and consulted throughout all
stages of a system's evolution. With a dataflow diagram, users are able to visualize
how the system will operate, what the system will accomplish, and how the system
will be implemented. The old system's dataflow diagrams can be drawn up and
compared with the new system's dataflow diagrams to draw comparisons to
implement a more efficient system. Dataflow diagrams can be used to provide the
end user with a physical idea of where the data they input ultimately has an effect
upon the structure of the whole system from order to dispatch to restock. How any
system is developed can be determined through a dataflow diagram.
Developing a DFD helps in identifying the transaction data in the data model.
There are different notations to draw data flow diagrams, defining different visual
representations for processes, data stores, dataflow, and external entities.
Developing a DFDElements of a DFD
There are 4 key elements in a Data Flow diagram; Processes, Data Flows, Data
Stores & External entities and each element is drawn differently. Another
important element which is typically marked with dashed lines is Feedback and
Control Data.
Process entity
Jasleen Kaur
ONLINE SHOPPING
The "Process entity" identifies a process taking place, it must have at least one
input and output. A process with no input is known as a "miracle process" and one
with no output is a "black hole process".
Both "miracle" and "black hole" processes are strong indicators that the DFD is
missing a connection between processes and should be re-evaluated. Each process
has the following :
1. A Number
2. A Name (verb phrase)
3. A Description
4. At least one input
5. At least one output
Data flow entity
The "Data Flow entity" identifies the flow of data between processes, data stores &
external entities. A data flow cannot connect an external entity to a data source; at
least one connection must be with a process. There are also "physical" flows, i.e.
those that use a physical medium, like a membership card. Each data flow has the
following:
1. A Name (Noun)
2. A Description
3. One or more connections to a process.
4. Data Store entity
The "Data Store entity" identifies stores of data, both manual and electronic.
Electronic or "digital" stores are identified by the letter D, and manual filing
systems by the letter M, e.g. D1 could be a MySQL database, and M4 could be a
filing cabinet. Each data store has the following:
Jasleen Kaur
ONLINE SHOPPING
1. A Number
2. A Name
3. A Description
4. One or more output data flows.
External entity
The "External Entity" identifies external entities which interacts with the system,
usually clients but can be within the same organization. Examples of an external
entity include customers, suppliers, management, certification agencies and
competitors. Multiple existences of the same entity, e.g. the same doctor shown
twice on the same diagram, can be identified by a horizontal line in the top left
corner of the symbol. Each external entity has the following:
1. A Name (Noun)
2. A Description
3. The Feedback and Control data
The "Feedback and Control data" identifies a special purpose. Only the first four
elements are needed to create a data flow diagram (DFD).
Jasleen Kaur
ONLINE SHOPPING
DFD
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
CATEGORY TABLE
Sr. no. Fields Data type Constraints0 CATID int Primary Key
1 CAT_NAME Varchar(250)
CITY TABLESr. no. Fields Data type Constraints
0 CID int Primary Key
1 CNAME Varchar(50)
2 CCODE Varchar(50)
Jasleen Kaur
ONLINE SHOPPING
ITEM DETAIL TABLE
Sr. no. Fields Data type Constraints0 ID int
1 ICODE Varchar(50) Primary Key
2 INAME Varchar(MAX)
3 SUB_CAT_ID Varchar(50)
4 MRP Numeric(18,0)
5 OURPRICE Numeric(18,0)
6 DISCOUNTRS Numeric(18,0)
7 DISCOUNTP Numeric(18,0)
8 GIFTS Varchar(MAX)
9 WARRANTY Varchar(MAX)
10 DELIVERYTIME Varchar(MAX)
11 DETAIL Varchar(MAX)
12 IMAGE Varchar(MAX)
13 HOTDEALS Varchar(50)
14 C_STOCK int
Jasleen Kaur
ONLINE SHOPPING
ORDER TABLE
Sr. no. Fields Data type Constraints0 ORDER_NO int Primary Key
1 UID Varchar(150)
2 AMT Decimal(18,2)
3 CARD_TYPE Varchar(50)
4 EXP_MONTH Varchar(50)
5 EXP_YEAR Varchar(50)
6 CARD_NO Varchar(50)
7 CVV Varchar(50)
8 ODATE Date time
Jasleen Kaur
ONLINE SHOPPING
PERSONAL INFO TABLE
Sr. no. Fields Data type Constraints0 ID int Primary Key
1 TITLE Varchar(50)
2 FIRST_NAME Varchar(50)
3 LAST_NAME Varchar(50)
4 EMAIL_ADDRESS Varchar(50)
5 MOBILE_NUMBER NVarchar(50)
6 ADDRESS Varchar(50)
7 CITY Varchar(50)
8 PIN_CODE int
9 STATE Varchar(50)
10 PASSWORD Varchar(50)
11 QUES Varchar(100)
12 ANS Varchar(100)
Jasleen Kaur
ONLINE SHOPPING
QUESTIONS TABLE
Sr. no. Fields Data type Constraints0 ID int Primary Key
1 QUESTIONS Varchar(200)
SCART TABLE
Sr. no. Fields Data type Constraints0 ID int Primary Key
1 USERID Varchar(50)
2 ICODE Varchar(MAX)
3 ADATE datetime
4 QTY int
5 STATUS Varchar(50)
Jasleen Kaur
ONLINE SHOPPING
STATE TABLE
Sr. no. Fields Data type Constraints0 SID int Primary Key
1 SNAME Varchar(50)
2 SCODE Varchar(50)
SUB_CATEGORY TABLE
Sr. no. Fields Data type Constraints0 SUB_CAT_ID int Primary Key
1 CAT_ID Varchar(250)
2 SUB_CAT Varchar(250)
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
Home page
Jasleen Kaur
ONLINE SHOPPING
Electronic accessories
Jasleen Kaur
ONLINE SHOPPING
Computer Accessories
Jasleen Kaur
ONLINE SHOPPING
Footwear’s
Jasleen Kaur
ONLINE SHOPPING
Cookware Accessories
Jasleen Kaur
ONLINE SHOPPING
Digital cameras page
Jasleen Kaur
ONLINE SHOPPING
Purchase items page
Jasleen Kaur
ONLINE SHOPPING
Login form
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
New user create account
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
Shopping details
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
Payment mode
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
Message page
Jasleen Kaur
ONLINE SHOPPING
Administrator page
Jasleen Kaur
ONLINE SHOPPING
Add new items
Jasleen Kaur
ONLINE SHOPPING
Add new city
Jasleen Kaur
ONLINE SHOPPING
Add new category
Jasleen Kaur
ONLINE SHOPPING
Add new state
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
Home PageImports System.Data.SqlClientPartial Class home Inherits System.Web.UI.Page Dim con As New SqlConnection(ConfigurationSettings.AppSettings("sqlconn")) Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Page.IsPostBack = False Then datalist_fill()
End If End Sub
Private Sub datalist_fill() con.Open()
Dim cmd As New SqlCommand cmd = New SqlCommand("select * from item_detail where hotdeals='Yes'", con)
'cmd.Parameters.AddWithValue("@sub_cat_id", Session("subcatid"))
Dim da As New SqlDataAdapter Dim ds As New Data.DataSet da.SelectCommand = cmd da.Fill(ds, "item_detail") DataList2.DataSource = ds.Tables("item_detail") DataList2.DataBind() cmd.ExecuteNonQuery()
End Sub
Protected Sub DataList2_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DataList2.SelectedIndexChanged Dim l3 As New Label l3 = CType(DataList2.SelectedItem.FindControl("Label13"), Label) Session("item_id") = l3.Text Response.Redirect("item_detail.aspx") End SubEnd Class
Jasleen Kaur
ONLINE SHOPPING
Item Detail PageImports System.Data.SqlClientImports System.ConfigurationPartial Class item_detail Inherits System.Web.UI.Page Dim con As New SqlConnection(ConfigurationSettings.AppSettings("sqlconn")) Private Sub datalist_fill() con.Open() Dim cmd As New SqlCommand cmd = New SqlCommand("select * from item_detail where id=@id", con) cmd.Parameters.AddWithValue("@id", Session("item_id")) Dim dr As SqlDataReader dr = cmd.ExecuteReader
If dr.Read Then Session("stock") = dr("c_stock") End If dr.Close()
cmd = New SqlCommand("select * from item_detail where id=@id", con)
cmd.Parameters.AddWithValue("@id", Session("item_id"))
Dim da As New SqlDataAdapter Dim ds As New Data.DataSet da.SelectCommand = cmd da.Fill(ds, "item_detail") DataList1.DataSource = ds.Tables("item_detail") DataList1.DataBind() cmd.ExecuteNonQuery()
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Page.IsPostBack = False Then datalist_fill() End If
Jasleen Kaur
ONLINE SHOPPING
End Sub
Protected Sub DataList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DataList1.SelectedIndexChanged
End Sub
Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click If Session("uid") = "" Then
If Convert.ToInt32(Session("stock")) <= 0 Then
Label21.Text = "Current Item is Out of Stock" Else
Response.Redirect("user_login.aspx") End If
Else
If Convert.ToInt32(Session("stock")) <= 0 Then
Label21.Text = "Current Item is Out of Stock"
Else
Response.Redirect("shopping_cart.aspx") End If
End If End SubEnd Class
Jasleen Kaur
ONLINE SHOPPING
USER LOGINImports System.Data.SqlClientImports System.ConfigurationPartial Class user_login Inherits System.Web.UI.Page Dim con As New SqlConnection(ConfigurationSettings.AppSettings("sqlconn")) Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Btn_login.Click If con.State = Data.ConnectionState.Closed Then
con.Open()
End If
Dim cmd As New SqlCommand cmd = New SqlCommand("select * from personal_info where email_address=@email and password=@password ", con) cmd.Parameters.AddWithValue("@email", txt_email.Text) cmd.Parameters.AddWithValue("@password", txt_pass.Text) Dim dr As SqlDataReader dr = cmd.ExecuteReader If dr.Read Then dr.Close() Session("uid") = txt_email.Text
Response.Redirect("shopping_cart.aspx") Else Label5.Text = "Invalid Email Id or Password "
End If
End Sub
Protected Sub rb_yes_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles rb_yes.CheckedChanged If rb_yes.Checked = True Then Label6.Visible = False Label7.Visible = False txt_newpass.Visible = False txt_repass.Visible = False btn_signup.Visible = False Label5.Visible = True
Jasleen Kaur
ONLINE SHOPPING
Label8.Visible = True link_click.Visible = True Btn_login.Visible = True txt_pass.Visible = True
End If End Sub
Protected Sub rb_no_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles rb_no.CheckedChanged If rb_no.Checked = True Then Label6.Visible = True Label7.Visible = True txt_newpass.Visible = True txt_repass.Visible = True btn_signup.Visible = True Label5.Visible = False Label8.Visible = False link_click.Visible = False txt_pass.Visible = False Btn_login.Visible = False End If End Sub
Protected Sub btn_signup_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn_signup.Click Session("email") = txt_email.Text Session("password") = txt_newpass.Text
Response.Redirect("sign_up.aspx")
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
End Sub
Protected Sub link_click_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles link_click.Click Response.Redirect("forget_password.aspx") End SubEnd Class
Jasleen Kaur
ONLINE SHOPPING
SIGN UP FORMImports System.Data.SqlClientImports System.Configuration
Partial Class sign_up Inherits System.Web.UI.Page Dim con As New SqlConnection(ConfigurationSettings.AppSettings("sqlconn")) Protected Sub btn_sc_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn_sc.Click con.Open() Dim cmd As New SqlCommand cmd = New SqlCommand(" insert into personal_info(title,first_name,last_name,Email_address,mobile_number,address,city,pin_code,state,password,ques,ans)values(@title,@first_name,@last_name,@email_address,@mobile_number,@address,@city,@pin_code,@state,@password,@ques,@ans)", con) cmd.Parameters.AddWithValue("@title", ddl_title.Text) cmd.Parameters.AddWithValue("@first_name", txt_fname.Text) cmd.Parameters.AddWithValue("@last_name", txt_lname.Text) cmd.Parameters.AddWithValue("@email_address", txt_email.Text) cmd.Parameters.AddWithValue("@mobile_number", txt_mble.Text) cmd.Parameters.AddWithValue("@address", txt_address.Text) cmd.Parameters.AddWithValue("@city", ddl_city.SelectedValue) cmd.Parameters.AddWithValue("@pin_code", txt_pin.Text) cmd.Parameters.AddWithValue("@state", txt_state.Text) cmd.Parameters.AddWithValue("@password", Session("password")) cmd.Parameters.AddWithValue("@ques", ddl_ques.SelectedValue) cmd.Parameters.AddWithValue("@ans", txt_ans.Text) cmd.ExecuteNonQuery() txt_fname.Text = "" txt_lname.Text = ""
txt_mble.Text = "" txt_address.Text = ""
txt_pin.Text = "" txt_state.Text = "" Session("uid") = txt_email.Text
Jasleen Kaur
ONLINE SHOPPING
Response.Redirect("shopping_cart.aspx") End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Page.IsPostBack = False Then ddl_title.Items.Add("mr.") ddl_title.Items.Add("mrs.") ddl_title.Items.Add("miss") ddl_city_fill() ddl_ques_fill() txt_email.Text = Session("email") End If
End Sub Private Sub ddl_city_fill()
If con.State = Data.ConnectionState.Closed Then con.Open() End If
Dim cmd As New SqlCommand cmd = New SqlCommand("select cid,cname from city", con) Dim da As New SqlDataAdapter Dim ds As New Data.DataSet da.SelectCommand = cmd da.Fill(ds, "city") ddl_city.DataSource = ds.Tables("city") ddl_city.DataTextField = "cname" ddl_city.DataValueField = "cid" ddl_city.DataBind()
End Sub
Private Sub ddl_ques_fill()
If con.State = Data.ConnectionState.Closed Then con.Open() End If
Dim cmd As New SqlCommand cmd = New SqlCommand("select id,questions from questions", con) Dim da As New SqlDataAdapter Dim ds As New Data.DataSet
Jasleen Kaur
ONLINE SHOPPING
da.SelectCommand = cmd da.Fill(ds, "questions") ddl_ques.DataSource = ds.Tables("questions") ddl_ques.DataTextField = "questions" ddl_ques.DataValueField = "questions" ddl_ques.DataBind()
End Sub
Protected Sub ddl_city_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddl_city.SelectedIndexChanged If con.State = Data.ConnectionState.Closed Then con.Open() End If
Dim cmd As New SqlCommand("select s.sname from states s,city c where c.scode=s.scode and c.cid=@cid", con)
cmd.Parameters.AddWithValue("@cid", ddl_city.SelectedValue)
Dim dr As SqlDataReader dr = cmd.ExecuteReader If dr.Read Then txt_state.Text = dr("sname")
End If
dr.Close()
End SubEnd Class
Jasleen Kaur
ONLINE SHOPPING
SHOPPING CARTImports System.Data.SqlClientPartial Class shopping_cart Inherits System.Web.UI.Page Dim con As New SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename=D:\online_shopping\database_online.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True") Dim cmd As New SqlCommand
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Page.IsPostBack = False Then Dim d As Date If con.State = Data.ConnectionState.Closed Then con.Open() End If
If Session("item_id") <> "" Then d = Now.Date cmd = New SqlCommand("insert into scart (adate,userid,icode,qty,status)values(@d,@uid,@icodevar,1,-1)", con) cmd.Parameters.AddWithValue("@d", d.Date) cmd.Parameters.AddWithValue("@uid", Session("uid")) cmd.Parameters.AddWithValue("@icodevar", Session("item_id")) cmd.Parameters.AddWithValue("@qty", 1) cmd.ExecuteNonQuery() End If
grid_fill()
gtotal()
End If End Sub Private Sub grid_fill() If con.State = Data.ConnectionState.Closed Then con.Open() End If Dim dt As New Data.DataTable
dt = New Data.DataTable ' MsgBox(Session("iidvar"))
Jasleen Kaur
ONLINE SHOPPING
Dim da As New SqlDataAdapter
cmd = New SqlCommand("select i.iname,s.adate,s.qty,i.ourprice,s.id from item_detail i,scart s where i.id=s.icode and s.userid=@uid and s.status=-1 order by s.id", con) cmd.Parameters.AddWithValue("@uid", Session("uid")) da = New SqlDataAdapter(cmd) da.Fill(dt) If dt.Rows.Count > 0 Then
GridView2.DataSource = dt GridView2.DataBind() End If
End Sub Private Sub gtotal() Dim i As Integer Dim q As Integer Dim p, t As Double
t = 0 'MsgBox(GridView2.Rows.Count) Dim r As Integer r = GridView2.Rows.Count i = 0 While i < r ' MsgBox("loop") Dim t1 As New TextBox Dim l1 As New Label t1 = CType(GridView2.Rows(i).FindControl("textbox2"), TextBox) l1 = CType(GridView2.Rows(i).FindControl("Label13"), Label)
q = Convert.ToInt32(t1.Text) p = Convert.ToDouble(l1.Text) t = t + (p * q) i = i + 1
End While 'MsgBox(t) GridView2.FooterRow.Cells(3).Text = t
Jasleen Kaur
ONLINE SHOPPING
Session("gtotal") = t
End Sub
Protected Sub ImageButton3_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton3.Click Response.Redirect("payment_details.aspx")
End Sub
Protected Sub LinkButton3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LinkButton3.Click Dim i As Integer
If con.State = Data.ConnectionState.Closed Then con.Open() End If
'MsgBox(GridView2.Rows.Count) Dim r As Integer r = GridView2.Rows.Count i = 0 While i < r ' MsgBox("loop") Dim t1 As New TextBox Dim l1 As New Label t1 = CType(GridView2.Rows(i).FindControl("textbox2"), TextBox) l1 = CType(GridView2.Rows(i).FindControl("Label15"), Label) cmd = New SqlCommand("update scart set qty=@qty where id=@id", con) cmd.Parameters.AddWithValue("@qty", t1.Text) cmd.Parameters.AddWithValue("@id", l1.Text) cmd.ExecuteNonQuery() i = i + 1
End While grid_fill()
gtotal() End Sub
Jasleen Kaur
ONLINE SHOPPING
Protected Sub GridView2_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView2.SelectedIndexChanged Dim l2 As Label If con.State = Data.ConnectionState.Closed Then con.Open() End If
l2 = CType(GridView2.SelectedRow.FindControl("label15"), Label) cmd = New SqlCommand("delete from scart where id=@id", con) cmd.Parameters.AddWithValue("@id", l2.Text) cmd.ExecuteNonQuery()
grid_fill()
gtotal()
End Sub
Protected Sub ImageButton2_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton2.Click Response.Redirect("home.aspx")
End SubEnd Class
Jasleen Kaur
ONLINE SHOPPING
PAYMENT DETAILImports System.Data.SqlClientPartial Class payment_details Inherits System.Web.UI.Page Dim con As New SqlConnection(ConfigurationSettings.AppSettings("sqlconn"))
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim i As Integer For i = 1 To 12 ddl_month.Items.Add(i) Next For i = Year(Now.Date) To Year(Now.Date) + 20
ddl_year.Items.Add(i)
Next
End Sub
Protected Sub ImageButton1_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton1.Click
Dim g As String con.Open()
Dim cmd As New SqlCommand cmd = New SqlCommand(" insert into orders(uid,amt,card_type,exp_month,exp_year,card_no,cvv,odate)values(@uid,@amt,@card_type,@exp_month,@exp_year,@card_no,@cvv,@odate)", con)
cmd.Parameters.AddWithValue("@uid", Session("uid")) cmd.Parameters.AddWithValue("@amt", Session("gtotal")) If rd_master_card.Checked = True Then g = rd_master_card.Text Else
Jasleen Kaur
ONLINE SHOPPING
g = rd_visa.Text
End If cmd.Parameters.AddWithValue("@card_type", g) cmd.Parameters.AddWithValue("@exp_month", ddl_month.SelectedItem.Text) cmd.Parameters.AddWithValue("@exp_year", ddl_year.SelectedItem.Text) cmd.Parameters.AddWithValue("@card_no", txt_card_number.Text) cmd.Parameters.AddWithValue("@cvv", txt_cvv.Text) cmd.Parameters.AddWithValue("@odate", Now.Date) cmd.ExecuteNonQuery()
Dim ono As Integer cmd = New SqlCommand("Select max(order_no) from orders", con) Dim dr As SqlDataReader dr = cmd.ExecuteReader If dr.Read = True Then
ono = dr(0)
End If dr.Close()
Session("order_no") = ono
cmd = New SqlCommand("update scart set status=@status where userid=@uid and status=-1", con) cmd.Parameters.AddWithValue("@status", ono) cmd.Parameters.AddWithValue("@uid", Session("uid")) cmd.ExecuteNonQuery()
Dim icode(100) As String Dim qty(100) As String
Dim ii As Integer cmd = New SqlCommand("select icode,qty from scart where status=@status and userid=@uid", con) cmd.Parameters.AddWithValue("@uid", Session("uid")) cmd.Parameters.AddWithValue("@status", ono) dr = cmd.ExecuteReader While dr.Read
Jasleen Kaur
ONLINE SHOPPING
icode(ii) = dr(0) qty(ii) = dr(1) ii = ii + 1
End While dr.Close() Dim jj As Integer For jj = 0 To ii - 1 cmd = New SqlCommand("update item_detail set c_stock=c_stock-@c where id=@icode", con) cmd.Parameters.AddWithValue("@c", qty(jj)) cmd.Parameters.AddWithValue("@icode", icode(jj)) cmd.ExecuteNonQuery() ' MsgBox(icode(jj))
'MsgBox(qty(jj)) Next Dim mob As String
cmd = New SqlCommand("select mobile_number from personal_info where email_address=@email", con) cmd.Parameters.AddWithValue("@email", Session("uid")) dr = cmd.ExecuteReader mob = ""
If dr.Read Then mob = dr(0)
End If
dr.Close()
'Dim sid, rid, msg1 As String 'sid = "Galaxy" ' rid = mob
' msg1 = "Your Order for Rs. " & Session("gtotal") & " has been successfully Booked on E-Tech.com" ' Dim url As String = "sms.aspx?sid=" + sid + "&rid=" + rid + "&msg=" + msg1 ' Response.Write("<script language='javascript' type='text/javascript'>OptionsWindow=open('" + url + "',
Jasleen Kaur
ONLINE SHOPPING
'OptionsWindow', 'width=330, height=230, top=50, left=50, resizable=yes, toolbar=no, scrollbars=yes')</script>") Response.Redirect("order_confirm.aspx")
End SubEnd Class
Jasleen Kaur
ONLINE SHOPPING
ORDER CONFIRMImports System.Data.SqlClientPartial Class order_confirm Inherits System.Web.UI.Page Dim con As New SqlConnection(ConfigurationSettings.AppSettings("sqlconn")) Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load con.Open() Dim cmd As New SqlCommand("select max(order_no) from orders", con) Dim dr As SqlDataReader dr = cmd.ExecuteReader Dim ono As Integer
If dr.Read Then ono = dr(0)
End If dr.Close() cmd = New SqlCommand("select * from orders where order_no=@order_no", con) cmd.Parameters.AddWithValue("@order_no", ono)
dr = cmd.ExecuteReader
If dr.Read Then lbl_orderno.Text = ono lbl_amt.Text = dr("amt")
End If dr.Close()
Dim AMT, DISP, DISRS, NETBILL As Double
AMT = lbl_amt.Text If AMT >= 20000 Then DISP = 15 Label5.Text = "YOUR BILL AMOUNT IS ABOVE RS.20000, SO YOU GOT 15% DISCOUNT" DISRS = AMT * DISP / 100 NETBILL = AMT - DISRS
Jasleen Kaur
ONLINE SHOPPING
Label6.Text = "NET BILL = RS." & Math.Round(NETBILL, 0)
ElseIf AMT >= 15000 Then DISP = 10 Label5.Text = "YOUR BILL AMOUNT IS ABOVE RS.15000, SO YOU GOT 10% DISCOUNT" DISRS = AMT * DISP / 100 NETBILL = AMT - DISRS Label6.Text = "NET BILL = RS." & Math.Round(NETBILL, 0) ElseIf AMT >= 10000 Then DISP = 5 Label5.Text = "YOUR BILL AMOUNT IS ABOVE RS.10000, SO YOU GOT 5% DISCOUNT" DISRS = AMT * DISP / 100 NETBILL = AMT - DISRS Label6.Text = "NET BILL = RS." & Math.Round(NETBILL, 0) Else DISP = 0 Label5.Text = "" Label6.Text = ""
End If
End SubEnd Class
Jasleen Kaur
ONLINE SHOPPING
ADMINISTRATOR PAGEImports System.Data.SqlClient
Partial Class admin_login Inherits System.Web.UI.Page Dim con As New SqlConnection(ConfigurationSettings.AppSettings("sqlconn")) Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click con.Open() Dim cmd As New SqlCommand cmd = New SqlCommand("Select * from admin_login where user_name =@user_name and password =@password", con) cmd.Parameters.AddWithValue("@user_name", txt_uname.Text) cmd.Parameters.AddWithValue("@password", Txt_pass.Text)
Dim dr As SqlDataReader dr = cmd.ExecuteReader If dr.Read = True Then dr.Close() Session("adminlogin") = "logged in"
Response.Redirect("admin_home.aspx") Else Label4.Text = "Either UserNameID or Password is incorrect" End If dr.Close()
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
End SubEnd Class
Jasleen Kaur
ONLINE SHOPPING
ADD NEW ITEMImports System.Data.SqlClientImports System.Configuration
Partial Class add_item Inherits System.Web.UI.Page Dim con As New SqlConnection(ConfigurationSettings.AppSettings("sqlconn"))
Private Sub mcategory_fill() If con.State = Data.ConnectionState.Closed Then con.Open()
End If Dim cmd As New SqlCommand("select * from category", con) Dim da As New SqlDataAdapter da.SelectCommand = cmd Dim ds As New Data.DataSet da.Fill(ds, "category") ddl_mcategory.DataSource = ds.Tables("category") ddl_mcategory.DataTextField = "cat_name" ddl_mcategory.DataValueField = "cat_id" ddl_mcategory.DataBind() ddl_mcategory_up.DataSource = ds.Tables("category") ddl_mcategory_up.DataTextField = "cat_name" ddl_mcategory_up.DataValueField = "cat_id" ddl_mcategory_up.DataBind()
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Page.IsPostBack = False Then mcategory_fill() grid_fill() icode_fill() End If End Sub Private Sub scategory_fill() If con.State = Data.ConnectionState.Closed Then con.Open() End If Dim cmd As New SqlCommand("select * from sub_category where cat_id=@cat_id", con)
Jasleen Kaur
ONLINE SHOPPING
cmd.Parameters.AddWithValue("@cat_id", ddl_mcategory.SelectedValue) Dim da As New SqlDataAdapter da.SelectCommand = cmd Dim ds As New Data.DataSet da.Fill(ds, "subcategory") ddl_scategory.DataSource = ds.Tables("subcategory") ddl_scategory.DataTextField = "sub_cat" ddl_scategory.DataValueField = "sub_cat_id" ddl_scategory.DataBind() End Sub
Private Sub scategory_up_fill() If con.State = Data.ConnectionState.Closed Then con.Open() End If Dim cmd As New SqlCommand("select * from sub_category where cat_id=@cat_id", con) cmd.Parameters.AddWithValue("@cat_id", ddl_mcategory_up.SelectedValue) Dim da As New SqlDataAdapter da.SelectCommand = cmd Dim ds As New Data.DataSet da.Fill(ds, "subcategory") ddl_scategory_up.DataSource = ds.Tables("subcategory") ddl_scategory_up.DataTextField = "sub_cat" ddl_scategory_up.DataValueField = "sub_cat_id" ddl_scategory_up.DataBind() End Sub
Protected Sub ddl_mcategory_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddl_mcategory.SelectedIndexChanged scategory_fill() End Sub Private Sub grid_fill() Dim cmd As New SqlCommand("select * from item_detail", con) Dim da As New SqlDataAdapter da.SelectCommand = cmd Dim ds As New Data.DataSet da.Fill(ds, "item_detail") GridView1.DataSource = ds.Tables("item_detail") GridView1.DataBind() End Sub
Jasleen Kaur
ONLINE SHOPPING
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click FileUpload1.SaveAs(Server.MapPath("~/images/" & FileUpload1.FileName)) Image1.ImageUrl = "~/images/" & FileUpload1.FileName End Sub
Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.SelectedIndexChanged con.Open() Dim l1 As New Label l1 = CType(GridView1.SelectedRow.FindControl("Label15"), Label) Dim cmd As New SqlCommand("select i.icode,i.iname,i.mrp,i.ourprice,i.gifts,i.detail,i.discountp,i.discountrs,i.warranty,i.deliverytime,i.image,i.sub_cat_id,s.cat_id from item_detail i,sub_category s where i.sub_cat_id=s.sub_cat_id and i.icode=@icode", con) cmd.Parameters.AddWithValue("@icode", l1.Text) Dim dr As SqlDataReader dr = cmd.ExecuteReader Dim s, m As String s = "" m = "" If dr.Read = True Then txt_icode_up.Text = dr("icode") txt_iname_up.Text = dr("iname") txt_mrp_up.Text = dr("mrp") txt_oprice_up.Text = dr("ourprice") txt_gifts_up.Text = dr("gifts") Txt_pd_up.Text = dr("detail") txt_dp_up.Text = dr("discountp") txt_drs_up.Text = dr("discountrs") txt_w_up.Text = dr("warranty") txt_time_up.Text = dr("deliverytime")
s = dr("sub_cat_id") m = dr("cat_id")
Image3.ImageUrl = dr("image")
End If dr.Close()
Jasleen Kaur
ONLINE SHOPPING
cmd = New SqlCommand ddl_mcategory_up.SelectedValue = m
scategory_up_fill() ddl_scategory_up.SelectedValue = s
MultiView1.ActiveViewIndex = 1 End Sub
Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click If con.State = Data.ConnectionState.Closed Then con.Open() End If
Dim cmd As New SqlCommand("select*from item_detail where iname=@iname Or icode=@icode", con) cmd.Parameters.AddWithValue("@iname", txt_iname.Text) cmd.Parameters.AddWithValue("@icode", txt_icode.Text) Dim dr As SqlDataReader dr = cmd.ExecuteReader If dr.Read = True Then Label13.Text = "this item already exists" dr.Close() Exit Sub End If dr.Close() Label13.Text = "" cmd = New SqlCommand("insert into item_detail(icode,iname,sub_cat_id,mrp,ourprice,discountrs,discountp,gifts,warranty,deliverytime,detail,image)values(@icode,@iname,@sub_cat_id,@mrp,@ourprice,@discountrs,@discountp,@gifts,@warranty,@deliverytime,@detail,@image)", con) cmd.Parameters.AddWithValue("@icode", txt_icode.Text) cmd.Parameters.AddWithValue("@iname", txt_iname.Text) cmd.Parameters.AddWithValue("@sub_cat_id", ddl_scategory.SelectedValue) cmd.Parameters.AddWithValue("@mrp", txt_mrp.Text) cmd.Parameters.AddWithValue("@ourprice", txt_oprice.Text) cmd.Parameters.AddWithValue("@discountrs", txt_drs.Text) cmd.Parameters.AddWithValue("@discountp", txt_dp.Text) cmd.Parameters.AddWithValue("@gifts", txt_gifts.Text) cmd.Parameters.AddWithValue("@warranty", txt_w.Text) cmd.Parameters.AddWithValue("@deliverytime", txt_time.Text) cmd.Parameters.AddWithValue("@detail", Txt_pd.Text)
Jasleen Kaur
ONLINE SHOPPING
cmd.Parameters.AddWithValue("@image", Image1.ImageUrl) cmd.ExecuteNonQuery()
grid_fill() icode_fill()
End Sub
Protected Sub Button4_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button4.Click If con.State = Data.ConnectionState.Closed Then con.Open() End If
Dim cmd As New SqlCommand("update item_detail set iname=@iname,sub_cat_id=@sub_cat_id,mrp=@mrp,ourprice=@ourprice,discountrs=@discountrs,discountp=@discountp,gifts=@gifts,warranty=@warranty,deliverytime=@deliverytime,detail=@detail,image=@image where icode=@icode", con) cmd.Parameters.AddWithValue("@icode", txt_icode_up.Text) cmd.Parameters.AddWithValue("@iname", txt_iname_up.Text) cmd.Parameters.AddWithValue("@sub_cat_id", ddl_scategory_up.SelectedValue) cmd.Parameters.AddWithValue("@mrp", txt_mrp_up.Text) cmd.Parameters.AddWithValue("@ourprice", txt_oprice_up.Text) cmd.Parameters.AddWithValue("@discountrs", txt_drs_up.Text) cmd.Parameters.AddWithValue("@discountp", txt_dp_up.Text) cmd.Parameters.AddWithValue("@gifts", txt_gifts_up.Text) cmd.Parameters.AddWithValue("@warranty", txt_w_up.Text) cmd.Parameters.AddWithValue("@deliverytime", txt_time_up.Text) cmd.Parameters.AddWithValue("@detail", Txt_pd_up.Text) cmd.Parameters.AddWithValue("@image", Image3.ImageUrl) cmd.ExecuteNonQuery() grid_fill() icode_fill()
txt_dp_up.Text = "" txt_drs_up.Text = "" txt_gifts_up.Text = "" txt_icode_up.Text = "" txt_iname_up.Text = "" txt_mrp_up.Text = "" txt_oprice_up.Text = "" Txt_pd_up.Text = ""
Jasleen Kaur
ONLINE SHOPPING
txt_time.Text = "" txt_w_up.Text = "" Image3.ImageUrl = "" MultiView1.ActiveViewIndex = 1 End Sub
Private Sub icode_fill() If con.State = Data.ConnectionState.Closed Then con.Open() End If
Dim cmd As New SqlCommand cmd = New SqlCommand("select max(convert(int,substring(icode,2,len(icode)-1))) from item_detail", con) Dim i As Integer Dim dr As SqlDataReader dr = cmd.ExecuteReader If dr.Read Then If IsDBNull(dr(0)) Then i = 1 Else i = dr(0) + 1 End If End If txt_icode.Text = "I" & Format(i, "0000")
End Sub
Protected Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button3.Click FileUpload2.SaveAs(Server.MapPath("~/images/" & FileUpload2.FileName)) Image3.ImageUrl = "~/images/" & FileUpload2.FileName End Sub
Protected Sub ddl_mcategory_up_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddl_mcategory_up.SelectedIndexChanged scategory_up_fill()
End Sub
Jasleen Kaur
ONLINE SHOPPING
Protected Sub Menu2_MenuItemClick(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.MenuEventArgs) Handles Menu2.MenuItemClick MultiView1.ActiveViewIndex = Menu2.SelectedValue End Sub
Protected Sub Button5_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button5.Click If con.State = Data.ConnectionState.Closed Then con.Open() End If
Dim cmd As New SqlCommand("delete from item_detail where icode=@icode", con)
cmd.Parameters.AddWithValue("@icode", txt_icode_up.Text) cmd.ExecuteNonQuery() grid_fill() icode_fill() txt_dp_up.Text = "" txt_drs_up.Text = "" txt_gifts_up.Text = "" txt_icode_up.Text = "" txt_iname_up.Text = "" txt_mrp_up.Text = "" txt_oprice_up.Text = "" Txt_pd_up.Text = "" txt_time.Text = "" txt_w_up.Text = "" Image3.ImageUrl = ""
MultiView1.ActiveViewIndex = 2
End SubEnd Class
Jasleen Kaur
ONLINE SHOPPING
ADD NEW CITYImports System.Data.SqlClientImports System.ConfigurationPartial Class city Inherits System.Web.UI.Page Dim con As New SqlConnection(ConfigurationSettings.AppSettings("sqlconn")) Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load ddl_fill() grid_fill() ddl_fill_up() End Sub
Private Sub ddl_fill() Dim cmd As New SqlCommand("select * from states", con) Dim da As New SqlDataAdapter da.SelectCommand = cmd Dim ds As New Data.DataSet da.Fill(ds, "states") ddl_statesnew.DataSource = ds.Tables("states") ddl_statesnew.DataTextField = "sname" ddl_statesnew.DataValueField = "scode" ddl_statesnew.DataBind() End Sub
Private Sub ddl_fill_up() Dim cmd As New SqlCommand("select * from states", con) Dim da As New SqlDataAdapter da.SelectCommand = cmd Dim ds As New Data.DataSet da.Fill(ds, "states") ddl_states_up.DataSource = ds.Tables("states") ddl_states_up.DataTextField = "sname" ddl_states_up.DataValueField = "scode" ddl_states_up.DataBind() End Sub
Protected Sub ddl_states_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddl_statesnew.SelectedIndexChanged
End Sub
Jasleen Kaur
ONLINE SHOPPING
Protected Sub Btn_save2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Btn_save2.Click con.Open() Dim cmd As New SqlCommand("select * from city where ccode=@ccode or cname=@cname", con) cmd.Parameters.AddWithValue("@ccode", Txt_citycode.Text) cmd.Parameters.AddWithValue("@cname", txt_cityname.Text) Dim dr As SqlDataReader dr = cmd.ExecuteReader If dr.Read = True Then Label3.Text = "this city already exists" dr.Close() Exit Sub End If dr.Close() Label3.Text = "" cmd = New SqlCommand("insert into city(ccode,cname,scode)values(@ccode,@cname,@scode)", con) cmd.Parameters.AddWithValue("@cname", txt_cityname.Text) cmd.Parameters.AddWithValue("@ccode", Txt_citycode.Text) cmd.Parameters.AddWithValue("@scode", ddl_statesnew.SelectedValue) cmd.ExecuteNonQuery() Label3.Text = "data saved" Txt_citycode.Text = "" txt_cityname.Text = "" End Sub Private Sub grid_fill() Dim cmd As New SqlCommand("select * from city", con) Dim da As New SqlDataAdapter da.SelectCommand = cmd Dim ds As New Data.DataSet da.Fill(ds, "city") GridView1.DataSource = ds.Tables("city") GridView1.DataBind() End Sub Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.SelectedIndexChanged Dim l1, l2, l3 As New Label l1 = CType(GridView1.SelectedRow.FindControl("Label5"), Label) l2 = CType(GridView1.SelectedRow.FindControl("Label7"), Label) l3 = CType(GridView1.SelectedRow.FindControl("Label6"), Label) Session("ccode") = l2.Text
Jasleen Kaur
ONLINE SHOPPING
Txt_citycode_up.Text = l2.Text txt_cityname_up.Text = l1.Text ddl_states_up.SelectedValue = l3.Text MultiView1.ActiveViewIndex = 1 End Sub
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click con.Open() Dim cmd As New SqlCommand("Update city set cname=@cname,ccode=@ccode,scode=@scode where ccode=@ccode1", con) cmd.Parameters.AddWithValue("@cname", txt_cityname_up.Text) cmd.Parameters.AddWithValue("@ccode1", Session("ccode")) cmd.Parameters.AddWithValue("@ccode", Txt_citycode_up.Text) cmd.Parameters.AddWithValue("@scode", ddl_states_up.Text) cmd.ExecuteNonQuery() grid_fill() MultiView1.ActiveViewIndex = 1 End Sub
Protected Sub Txt_citycode_up_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Txt_citycode_up.TextChanged
End Sub
Protected Sub Menu2_MenuItemClick(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.MenuEventArgs) Handles Menu2.MenuItemClick MultiView1.ActiveViewIndex = Menu2.SelectedValue End SubEnd Class
ADD NEW CATEGORY
Jasleen Kaur
ONLINE SHOPPING
Imports System.Data.SqlClientImports System.Configuration
Partial Class add_category Inherits System.Web.UI.Page Dim con As New SqlConnection(ConfigurationSettings.AppSettings("sqlconn")) Protected Sub btn_save1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn_save1.Click con.Open() Dim cmd As New SqlCommand("select*from category where cat_name=@cat_name", con) cmd.Parameters.AddWithValue("@cat_name", txt_category.Text) Dim dr As SqlDataReader dr = cmd.ExecuteReader If dr.read = True Then Label2.Text = "this name already exists" dr.close() Exit Sub End If dr.close() Label2.Text = "" cmd = New SqlCommand("insert into category (cat_name) values(@cat_name)", con) cmd.Parameters.AddWithValue("@cat_name", txt_category.Text) cmd.ExecuteNonQuery() End Sub Private Sub grid_fill() Dim cmd As New SqlCommand("select * from category", con) Dim da As New SqlDataAdapter da.SelectCommand = cmd Dim ds As New Data.DataSet da.Fill(ds, "category") GridView1.DataSource = ds.tables("category") GridView1.DataBind()
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load grid_fill() End Sub
Jasleen Kaur
ONLINE SHOPPING
Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.SelectedIndexChanged Dim l1, l2 As New Label
l1 = CType(GridView1.SelectedRow.FindControl("Label4"), Label) l2 = CType(GridView1.SelectedRow.FindControl("Label5"), Label)
Session("catid") = l1.Text Txt_ucategory.Text = l2.Text
MultiView1.ActiveViewIndex = 1 End Sub
Protected Sub btn_update_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn_update.Click con.Open() Dim cmd As New SqlCommand("Update category set cat_name=@cat_name where cat_id=@cat_id", con) cmd.Parameters.AddWithValue("@cat_name", Txt_ucategory.Text) cmd.Parameters.AddWithValue("@cat_id", Session("catid")) cmd.ExecuteNonQuery() End Sub
Protected Sub Menu2_MenuItemClick(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.MenuEventArgs) Handles Menu2.MenuItemClick MultiView1.ActiveViewIndex = Menu2.SelectedValue End SubEnd Class
Jasleen Kaur
ONLINE SHOPPING
ADD NEW STATEImports System.Data.SqlClientImports System.Configuration
Partial Class add_states Inherits System.Web.UI.Page Dim con As New SqlConnection(ConfigurationSettings.AppSettings("sqlconn")) Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load grid_fill() End Sub
Protected Sub btn_save_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn_save.Click con.Open() Dim cmd As New SqlCommand("select * from states where scode=@scode or sname=@sname", con) cmd.Parameters.AddWithValue("@scode", txt_statecode.Text) cmd.Parameters.AddWithValue("@sname", txt_statename.Text) Dim dr As SqlDataReader dr = cmd.ExecuteReader If dr.Read = True Then Label3.Text = "this code already exists" dr.Close() Exit Sub End If dr.Close() Label3.Text = "" cmd = New SqlCommand("insert into states(scode,sname)values(@scode,@sname)", con) cmd.Parameters.AddWithValue("@sname", txt_statename.Text) cmd.Parameters.AddWithValue("@scode", txt_statecode.Text) cmd.ExecuteNonQuery() Label3.Text = "data saved" txt_statecode.Text = "" txt_statename.Text = "" End Sub Private Sub grid_fill() Dim cmd As New SqlCommand("select * from states", con) Dim da As New SqlDataAdapter da.SelectCommand = cmd Dim ds As New Data.DataSet da.Fill(ds, "states") GridView1.DataSource = ds.Tables("states") GridView1.DataBind()
Jasleen Kaur
ONLINE SHOPPING
End Sub
Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.SelectedIndexChanged Dim l1, l2 As New Label
l1 = CType(GridView1.SelectedRow.FindControl("Label4"), Label) l2 = CType(GridView1.SelectedRow.FindControl("Label5"), Label)
Session("SID") = l1.Text txt_sname.Text = l2.Text
MultiView1.ActiveViewIndex = 1 End Sub
Protected Sub btn_update_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn_update.Click con.Open() Dim cmd As New SqlCommand("Update states set sname=@sname where scode=@scode", con) cmd.Parameters.AddWithValue("@sname", txt_sname.Text) cmd.Parameters.AddWithValue("@scode", Session("scode")) cmd.ExecuteNonQuery() End Sub
Protected Sub Menu2_MenuItemClick(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.MenuEventArgs) Handles Menu2.MenuItemClick MultiView1.ActiveViewIndex = Menu2.SelectedValue End SubEnd Class
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
TESTING
Testing is the major quality control measure used during software development.
Its basic function is to detect errors in the software. During requirements analysis
and design, the output is a document that is usually textual and no executable.
After the coding phase, computer programs are available that can be executed for
testing purposes. This implies that testing not only has to uncover errors introduced
during coding, but also errors introduced during previous phases. Thus, the goal of
testing is to uncover the requirement, design, and coding errors in the programs.
Testing is extremely critical and time-consuming activity. It requires proper
planning of the overall testing process. Frequently the testing process starts with a
test plan that identifies all the testing-related activities that must be performed and
specifies the schedule, allocates the resources and specifies guidelines for testing.
The test plan specifies conditions that should be tested different units to be tested
and the manner in which the modules will be integrated together.
Different types of Testing:
UNIT TESTING : The starting point of testing is Unit Testing. In this, a
module is tested separately and is often performed by the coder himself
simultaneously along with the coding of the module. The purpose of unit testing
is to exercise the different parts of the module code to detect errors.
INTEGRATION TESTING : After Unit testing, the modules are
gradually integrated into subsystems, which are then integrated to eventually
from the entire system. During integration of modules, integration testing is
Jasleen Kaur
ONLINE SHOPPING
performed to detect errors by focusing on testing the interconnection between
modules.
SYSTEM TESTING : After the system is put together, system testing is
performed. Here the system is tested against the system requirements to see if
all the requirements are met and if the system performs as specified by the
requirements. System testing is a critical process that can consume more than
fifty percent of the development time.
ACCEPTANCE TESTING : Acceptance testing is performed to
demonstrate to the client, on real-file data of the client, the operation of the
system. Once the above testing is successful, the system group tests the
developed prototype of the project and their best suggestions are incorporated in
the prototype to form the overall system.
Following two strategies of software testing adopted for the new system that is
as follows:
1. CODE TESTING:- Code Testing has been carried out to see the correctness
of the logic involved and the correctness of the modules. Tests are conducted based
upon sample data and actual data. All the modules are checked separately for
assuring the correctness and accuracy in all calculation.
2. SPECIFICATION TESTING:- It examines that the specification starting
what the program should do and how it should perform under various conditions,
this testing is better strategy since it focuses on the way software is expected to
work. The testing was started from the bottom most modules and carried through
the modules at the upper level, the amount of coupling and cohesion is high in the
project
In this way, the software has been tested to yield appropriate and efficient results.
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
IMPLEMENTATION & MAINTAINANCE
The project having passed through all phases and now is ready for implementation
phase. Information on personal, money, hardware facilities and their estimated
costs have been calculated. The user needs not to be given any special training
about the programming or the system internal work. Even if he wants any change
to the previous records, he has not to interact with an interactive mode with
complex syntax. A screen has been provided for this purpose, which offers all
facilities to deal with software with very simple way. Hence a rather complex
looking task has been simplified. System testing has been carried out to check the
readiness and accuracy of the system to access update and retrieve data from files.
But work is not finished here because when the installation phase is completed and
the user staff has been trained to the change created by the system, evaluation and
maintenance of hardware and software. The important of maintenance is to
continue to bring the new system to standards.
The users are also provided with a report to assist in using the system. As the users
goes through the report he is made aware of what the past system was what is new
system an dhow is going to work. Specifications and details of operation
performed are given in system manual, which is an overview of the whole system.
The detail of how the system is to be performed. View of screen and report helps
the users to understand the system more quickly
and interactively. The system overview helps the user to get acquainted with what
the system is, what is composed of, how it works, what are the program errors
occurrence, how can they be corrected and above all how the system can be
Jasleen Kaur
ONLINE SHOPPING
utilized. The system manual also provides the inner view of the steps, which were
undertaken to construct the system, or the approaches followed to solve the
existing problem and deals with error conditions.
One of the essentials of the system implementation is availability of the user
feedback. The user feedback also helps us to know the system functioning. The
user was also very helpful to me during this phase as he self explained he requires
details about what changes.
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
BIBLOGRAPHY
To bring up the website to verge of completion the following books are
referred:
NAME OF BOOK AUTHOR
Programming of ASP.NET Black Book
ASP.NET Developer’s Guide Greg Buczek
System Analysis & Design E.M. Awad
Software Engineering Pankaj Jalote
Fundamental of Internet
Application
Anurag Gupta
Anshuman Sharma
file:///D:\onlineshopping\add_item.aspx
Jasleen Kaur