You are on page 1of 83

P age |1

A PROJECT REPORT ON

E-SHOPPING
For the partial fulfillment of requirements for the degree of BACHELOR OF COMPUTER APPLICATIONS(BCA) SUBMITTED TO: BANGALORE UNIVERSITY

PROJECT DEVELOPED BY: ALKHRBI MSHARI MOHSEEN J ALAJMI NASSER MOHSEN M ALHARTHI. ABDULRHMAN SAQER M (5th Sem BCA, Batch; 2008-2011)

P age |2

This is to certify that ALKHRBI MSHARI MOHSEEN J has satisfactory completed the course of the project work in partial fulfillment of practical JAVA PROGRAMMING prescribed by Bangalore University 5th semester in Bachelor of Computer -Application course in the laboratory of this college in the year 2010.

Date: -_______________

Signature of the Teacher in-charge

Valued by : Examiner 1:Examiner 2:-

Signature of the Principal

Name:- ALKHRBI MSHARI MOHSEEN J

Center:-___________________

Date of Exam:-_______________

P age |3

GUIDANCE CERTIFICATE

This is to certify that the dissertation/project report entitled E-SHOPPING done by us is an authentic work carried out for the partial fulfillment of the requirements for award of the degree of (BACHELOR OF COMPUTER APLLICATION)under the guidance of Mr. NAGAMANI HS.(Department of Comp.Sc,smt. VHD home science college) . The Matter embodied in this project work has not been summated earlier for award of any degree of diploma to the best of my knowledge and belief.

Signature

P age |4

DECLARATION
The project titled E-Shopping developed by us as a partial fulfillment of V semester BCA Course, Bangalore University is a authentic work carried out by us under of Mr Nagamani hs Department of Comp.Sc, VHD home sceince college, Bangalore.

We declared that the project has not been submitted to any degree or diploma to the above said University or any other University.

Students Name& RegNo:

Date: We certify that all above statements given by the candidates is true to the best of our knowledge and belief. Date: Faculty In-charge

P age |5

Project Development Scheduling


PERT (Program Evaluation & Review Technique) Chart

Day 1 10 START 10 Days

Problem Analysis

Day 11 25

15 Days

Analysi s of the existing

Day 26 46

20 Days
Selection & Learning the s/w to be used

Day 47 64 15 Days
Under standing Database

Day 64 110 35 Days

Coding

P age |6

Day 110 130 20 Days


Page

5 Days

20 Days
Evaluation

15 Days
Testing

Implementation

Day 168 175Day 147 167 Day 131 146

P age |7

TABLE OF CONTENTS TABLE OF CONTENTS


SL NO CONTENTS PAGE NO 9

INTRODUCTION

FRONT END AS C-SHARP LANGUAGE ( DOT NET) BACK END AS SQL SERVER 2000

12

18

SYSTEM TABLE DETAILS

33

HARDWARE AND SOFTWARE

37

SOURCE CODE

39

SNAPSHOTS FROM THE PROJECT

76

CONCLUSION

83

P age |8

ACKNOWLEDGEMENT
Acknowledging the efforts of everyone involved in the projects is a difficult job, though an interesting one. Words cannot completely convey our sincere gratitude to all involved in helping us. We gratefully acknowledge our Nagamani hs, for giving us permission for project on E-SHOPPING. we also thank him for his encouragement and guidance. We also express our sincere gratitude to Mr. Nagamani hs who lead us in the right path as our internal guide. We gratefully acknowledge our sir for the encouragement that we received to perceive our project at E-SHOPPING. He has been a source of inspiration that gave us confidence completion of this project. for successful

We express our heartfull and sincere thanks to our guide Mr. Nagamani hs, for his intense involvement and for being the main stay of our project.

Last but not the least we thank our BCA faculty members for their kind cooperation.

P age |9

P a g e | 10

INTRODUCATION TO E-SHOPPING

It is a software that helps shopping convenient and easy to perform through the Internet.It helps in easy maintenance of goods stored in a marketplace or a mall. It can be used to manage any shopping premises to maintain and update , save the existing and newly bought products. The main features of this system are. 1) It is easy to use and secure. 2) Less time consuming method for both employers and customers. 3) Most of the processes are automatic, so users need not do too much hard work. 4) Maintains a database of the customers having account , also produce account details after any payments by updating the account. 5) Provides easy and safe online operations. Such as online shopping,bill Payments.

The administrator is the sole controller of the software. He has the rights to add new users, edit existing products, add new products etc. He can add new users and employees.

P a g e | 11

P a g e | 12

Introduction:

At the Professional Developers' Conference in Orlando last July, Microsoft unveiled its latest architecture, .NET. Its various features and components were explained to the large audience by a number of speakers. So what is .NET? The term is, essentially, a new marketing label which Microsoft is sticking on existing and future products. The .NET label now features on server products such as BizTalk Server 2000 and Application Center 2000, which are based on Windows DNA 2000 technology. The most interesting feature of .NET, however, lies in the development platform, languages and protocols which it emphasizes. By bringing us .NET, Microsoft is presenting us with a new platform designed to facilitate development of interoperable Web applications, based on a totally new architecture. For Microsoft, .NET will be a way of "programming the Web," no less. Today, the first versions of Visual Studio .NET are available, and they enable us to sketch out a relatively accurate profile of how the .NET platform is likely to look in the long run.

.NET Framework:
The .NET Framework is the infrastructure for the new Microsoft .NET Platform. The .NET Framework is a common environment for building, deploying, and running Web Services and Web Applications. The .NET Framework contains common class libraries - like ADO.NET, ASP.NET and Windows Forms - to provide advanced standard services that can be integrated into a variety of computer systems. The .NET Framework is language neutral. Currently it supports C++, C#, Visual Basic, JScript (The Microsoft version of JavaScript) and COBOL. Third-party languages - like Eiffel, Perl, Python, Smalltalk, and others - will also be available for building future .NET Framework applications. The new Visual Studio.NET is a common development environment for the new .NET Framework. It provides a feature-rich application execution environment, simplified development and easy integration between a number of different development languages.

P a g e | 13

Additional Information:
y

The .NET plan includes a new version of the Windows operating system, a new version of Office, and a variety of new development software for programmers to build Web-based applications. The background for .NET is part of Microsoft's new strategy to keep Windows the dominant operating system in the market, as computing begins to move away from desktop computers toward Internet enabled devices, such as hand-held computers and cell phones. The most visual components of the new .NET framework are the new Internet Information Server 6.0, with ASP.NET and ADO.NET support, Visual Studio.NET software tools to build Web-based software, and new XML support in the SQL Server 2000 database. Bill Gates is supervising the .NET project.

Aims and objectives:


The goal that Microsoft has set itself is ambitious, to say the least, both in technical and strategic terms. The new .NET platform has not evolved from the DNA 2000 technology currently available; rather, it is a totally new technology which is likely to shake up more than a few deep-rooted ideas. .NET is an entirely new platform and technology which introduces a host of new products, whose compatibility with existing technology is not always guaranteed. It offers support for 27 programming languages, which share a hierarchy of classes providing basic services. .NET applications no longer run in native machine code, having abandoned Intel x86 code in favor of an intermediate language called MSIL which runs in a sort of virtual machine called the Common Language Runtime (CLR). In addition, .NET makes intensive use of XML, and places a lot of emphasis on the SOAP protocol. Thanks to SOAP, Microsoft is hoping to bring us into a new era of programming which, rather than relying on the assembly of components or objects, is based on the reuse of services. SOAP and Web Services are the cornerstones of the .NET platform. However, there is no need to start worrying yet about the future of DNA applications currently in production; as Microsoft they have admitted, the final version of .NET will not be available until early 2002, and .NET is able to run existing applications in native mode, without giving them all the .NET benefits.

P a g e | 14

Contrary to what Microsoft would have us believe (apparently in an aim to reassure current customers), changes run very deep and affect almost every component in the Microsoft DNA architecture:
y y

y y

The IIS Web Server has dropped its effective but fragile multi-threaded model in favor of a multi-process model reminiscent of the Apache model. ASP technology gives way to ASP.NET (initially called ASP+), where interpreted scripts are replaced by codes compiled when they are first invoked, as for JSPs. Win32 APIs such as ATL and MFC are replaced by a coherent set of Base Framework classes. VB.NET no longer ensures ascending compatibility from VB6, as this language receives a lot of contributions (inheritance, .) in order to comply with the Common Language Specification (CLS) agreement. COM+ 2.0 is a totally original distributed components model which does not retain any inherited element from the COM/DCOM/COM+ lineup. To this end, COM+ 2.0 no longer uses the Windows Registry to register local or remote components: deployment of components in .NET will take you back to the good old days when installing a program meant copying files into a directory and uninstalling involved nothing more complicated than deleting the files. A new programming language called C# ("C sharp") is born: this is a modern object-oriented language, something of a cross between C++ and Java . C# was created by Anders Hejlsberg, architect of a number of languages and tools at Borland, including the famous Delphi. The new programming model, based on SOAP and Web Services, fundamentally changes the way in which applications are designed, and opens the way for a new profession: online provision of Web services.

These changes are moving towards a looser coupling between the Windows 2000 operating system and upper layers offering application server services. We look at these changes in more detail below, so as to give you an insight into the transformations that are taking place. What is more, these technical changes, linked to the fact that the .NET platform will be a massive user of standards from independent bodies such as the W3C, the IETF and the ECMA, are leading a lot of analysts (including the Gartner Group) to surmise that "Microsoft is opening up." From a strategic point of view, Microsoft has found a way to occupy a position of predominance on the Internet; the company has been out to achieve this for a long time, but until now, it had not found the means to do so. (We remember the

P a g e | 15

episode in which Internet Explorer was provided free of charge, ready-installed on every PC equipped with Windows; Internet Explorer's many proprietary functionalities were extremely detrimental to rival Netscape.) Today, with .NET, Microsoft is sending us a vision of an Internet made up of an infinite number of interoperable Web applications which together form a global service exchange network. These Web Services are based on the Simple Object Access Protocol (SOAP) and XML. SOAP was initially submitted to the IETF by Developmentor, Microsoft and Userland Software. Today, a number of vendors, including IBM, are greatly involved in SOAP. Not only are these Web Services likely to develop on the Internet, but they may also change the way we plan information systems in enterprises, by making SOAP systematically used as application integration middleware, playing the role of a simple but efficient, standard EAI. An enterprise information system could then also become a network of front and back-office applications which interoperate through SOAP, and reciprocally use the Web Services that they implement. It is not rash to suppose that Microsoft, through the numerous stakes it has acquired in multimedia content publishers, will soon become a provider itself, by hiring out or offering subscription to numerous Web services. In the meantime, however, other vendors are not sitting back: IBM and, more recently, Oracle have announced offerings which enable the creation of Web Services. IBM, which has long been a supporter of SOAP, offers its "Web Services Development Environment" on its Alpha works site, while Oracle has also just adopted SOAP, within 9i. Oracle has dubbed its offering "Dynamic Services", but it does not seem to be clearly defined as yet. Therefore, Web Services will help Microsoft move from a model in which the majority of its revenues come from sales of boxed products and licenses designed for individual micro-computers, to a model revolving around subscription and hire of services carried by software infrastructures, parts of which, we can assume, will be provided free of charge. A few coinciding rumors suggest that Microsoft may eventually distribute its SDK and command line compilers free of charge, and would only market Visual Studio .NET. This is the sort of strategy that was behind the success of Java, where JDKs have been provided free by Sun since the outset. This is a rather daring change in business strategy. Financial analysts agree that such changes of direction only rarely enable market leaders to keep their position at the top. The example of IBM, which never managed to regain the position it occupied when central computers reigned supreme, speaks volumes. Some believe that this change in strategy is a clever move in more ways than one, as it will enable a number of lawsuits brought by the US Department of Justice to be nipped in the bud, and may allow Microsoft to smoothly ride the wave of change which lies ahead, under pressure from users who want to use IT resources

P a g e | 16

and, above all, Internet from different mobile devices, not just from their home or office PCs.

.NET is multi-language:
With the .NET platform, Microsoft will provide several languages and the associated compilers, such as C++, JScript, VB.NET (alias VB 7) and C#, a new language which emerged with .NET. Third party vendors working in partnership with Microsoft are currently developing compilers for a broad range of other languages, including Cobol, Eiffel, CAML, Lisp, Python and Smalltalk. Rational, vendor of the famous UML tool Rose, is also understood to be finalizing a Java compiler for .NET.

Applications are hardware-independent:


All these languages are compiled via an intermediate binary code, which is independent of hardware and operating systems. This language is MSIL: Microsoft Intermediate Language. MSIL is then executed in the Common Language Runtime (CLR), which basically fulfills the same role as the JVM in the Java platform. MSIL is then translated into machine code by a Just in Time (JIT) compiler.

Applications are portable:


Applications compiled as intermediate code are presented as Portable Executables (PEs). Microsoft will thereby be able to offer full or partial implementations of the .NET platform over a vast range of hardware and software architectures: Intel PCs with Windows 9x, Windows NT4, Windows 2000 or future 64 bit Windows versions, microcontroller-based PDAs with PocketPC (e.g. Windows CE), and other operating systems too, no doubt.

P a g e | 17

P a g e | 18

Introduction:
The innumerable data challenges faced by modern day organizations have leveraged the need for faster and more data taravent decisions. The drive is to increase productivity ,flexibility of human resources to reduce overall investments in technology while scaling the infrastructure to meet the growing demand for information that enable informed mission critical decision. The release of Sql server 2000 was one of the corner stones of Microsofts strategy of the back office. Its integration with the dot net family of server application has gone a long way in establishing SQL server as one of the most robust servers for enterprise database management. MSSQL Server 2000 is truly the next generation data management and analysis solution that is built for scalability, availability, analysis and security of data. The increasing ease with which database application can be built has reduced the complexity of deploying and managing the database application. Data can now be shared across platforms, application and devices making it possible to network internal and external system seamlessly. Performance, availability, scalability and security are now available for lower costs. It is now a secure, reliable and productive platform for enterprise data and business intelligence tools. SQL Server 2000 has a number of tools to help the database administrator and developer. The relation database engine has been improver to give better performance and support for both structured and unstructured (XML) data. The republication service includes services for distributed or mobile data processing applications. It improves for high systems availability scalable concurrency with secondary data storage enterprise reporting solution and integration.

Highlights:
Ten starter database schemas now available .Use this starter database schemas and the included tutorial to help you learn the basics of designing a database and extend them to suit your individual needs. What is sql server express edition and advanced services? The new sql server express edition with advanced services is perfect for use as a backend to a small ,multiuser application that requires more advanced features such as web reporting or full text search. discover which version of

P a g e | 19

sql server express is right for you.

Power full and easy:


Sql server 2000 express edition is the next version of MSDE and is a free ,easy to use ,lightweight and embeddable version of sql server 2000.continue reading to learn more about the benefits of sql server express edition and to download sql server management studio. Easy to use Easy to learn Powerful

Easy to use:
Free to download, free to redistribute, free to embed, and easy for new developers to use immediately, sql server express includes powerful features such as sql server management studio express, and is managing a database.

Fast to download:
y Compact download. y Get up and running in as little as 20 minutes y Register sql server express edition

Simplified administration:
y Automatically tune your database for optimal performance. y Use Microsoft update to automatically received the patches and updates, enabling a high level of security and the latest features Free management tool: Sql Server Management Studio: y You can download the sql server management studio express (separate download below), and easy and efficient management tool for sql server express.

With sql server management studio you enjoy a consistent management experience across all sql server 2000 edition

Seamless integration with visual studio express edition:

P a g e | 20

y Seamlessly integrate data experience for building windows application and web sites

Easy to Deploy:
y Easily move or copy your express server database to another computer or hosted server using X-COPY and CLICK once Deployment. y Top of page

Get Started Fast


y Starter kits provide fully functional sample application designed to help you learn y Starter database schemas covering a wide range of scenarios.

Get help Fast:


y Take advantage of rich documentation, including samples and walk thoughts. y Access a vast community of experts via the online sql server forums or visual express studio edition forums.

Learning Express means you are learning Sql Server:


y Learn skills that are entirely transferable to all other editions of Sql server 2000 y Top of page

P a g e | 21

Powerful and Full compatibility:


y Transfer any database created in Sql express to other editions of Sql server 2000. y Take comfort knowing that the full power of Sql server is available as your needs grow. y Create database up to 4GB in size.

Tight integration with visual studio:


y Create an deploy database code such as stored procedures, functions, user defined types ,and user defined aggregates fro directly with in the visual studio development environment

Use debugging that is seamless across the application of database

Industry-Leading Data Security:


y Maintain high level of security by encrypting data directly in the database.

Use advanced editing authentication and authorization capabilities.

Innovative Features typically found in higher end products:


y In edition to traditional T-SQL use the common language run time (CLT) to write stored procedures and other database coding languages such as C#, VISUAL BASIC or MANAGED C++. y Utilize native XML capabilities to help seamlessly connect internal and external systems. y Get data in and out of others systems quickly with integration services. y Maintain copies of data at multiple sites with Sql Server express support for merging subscriptions, snap shots, and transactional publications. y Useful text search of powerful query capabilities over textual data.

P a g e | 22

ADVANTAGES OF HAVING SQL 2000:


1. SQL Server 2000 has reduced application down time increase scalability and performance, and tight yet flexible security controls. 2. SQL Server 2000 makes it simpler and easy to deploy, manage and optimize enterprise data and analytical application. 3. It enables you to monitor, manage and tune all the databases in the effective way. 4. The failure of primary system, application cans immediate reconnection of database on the secondary server using database mirror. 5. SQL Server2000 provides a new capability for the portioning of the table across file group in database. 6. Has feature of XML multi dimensional expression MDX, XML for analysis XMLA. Integration with visual studio development environment provides more efficient development and debugging of line-of-business. SQL Server 2000 and 2005 exclusively designed for Dot Net developers whatever functions or produced that we write in Dot Net environment those function and producer that we directly execute in SQL Server environment.

SQL AND ITS SUB LANGUAGES:


Structure query language (SQL) compares one of the fundamental building blocks of modern database architecture. SQL define the method use to create and manipulate relational database on all major platform. By the way, the correct pronunciation of SQL is a contentious issue within the database community. In the SQL standard, the America National Standards Institute declares that the official pronunciation is es queue el. SQL comes in many flavors. Oracle databases utilized their properties PL/SQL. Microsoft SQL server makes use of Transact-SQL. SQL commands can be divided into two main sublanguages. The Data Definition language DDL contents the commands use to create and destroy the database and database object after the database structure is defined with DDL, database

P a g e | 23

administrator and users can utilize the data manipulation language to insert, modify, and retrieve the data content within it.

DML:
DML is abbreviation of DATA MANIPULATION LANGUAGE. It is used to retrieve, store, modify, delete, insert and update data in databases. Example: SELECT, INSERT, DELETE.

DDL:
DDL is abbreviation of DATA DEFINITION LANGUAGE. It is used to create and modify the structure of database objects in database. Example: CREATE, ALTER, And DROP.

DCL:
DCL is abbreviation of DATA CONTROL LANGUAGE. It is used to create roles, permission and referential integrity as well as it is use to control access to database by securing it. Example: GRANT, REVOKE statements.

TCL:
TCL is abbreviation of TRANSACTION CONTROL LANGUAGE. It is used to manage different transaction occurring within a database. Example: COMMIT ROLLBACK statements.

DDL:
The Data Definition Language (DDL) is used to create and destroy databases nd database objects. These commands will primarily be used by database administrator during the setup and removal phases of a database project. Lets take a look at the structure and usage of two basic DDL commands:

P a g e | 24

CREATE:
Installing a database management system (DBMS) on a computer allows you to create and manage many independent databases. For example you may want to maintain a database of customer contacts for your sales department and a personal database for your HR department. The create can be used to establish each of these database on your platform. For example, the command: CREATE DATABASE employees

Creates an empty database named employees on your DBMS. After creating the database , your next step is to create tables that will content data.(if this does not make sense, you might want to read the article Microsoft access fundamentals for an overview of tables and database. Another variant of create command can be used for the purpose. The command: CREATE TABLE tablename (first_name char(20) not null, last_name char(20) not null, employe_id int not null) Establish a table personal_info in the current database. In our example, the table contents three attributes: first_name, last_name, employee_id. Dont worry about the other information included in the command we will cover that in the future articles.

USE:
The use command allows you to specify the database you wish to work within your DBMS. For example, if we were currently working in the sales database and want to issue some commands that will affect the employees database, we would preface then will to following SQL command: USE employees

It is important to always be continues of the database you are working in before issuing SQL command that manipulate data.

P a g e | 25

DML:
The data manipulation language (DML) I used to retrieve, insert and modify database inf ormation. This commands will be used by all database user during the routine operaion of the database. Lets take a brief look t the basic DML INSERT The insert command in SQL is used to add records to an existing table. Returning to the personal info example for the previous section, lets imagine that our H.R department needs to add new employee to their database. They could use a command similar to the one shown below: INSERT INTO employee Values(bart,simpson,12345,$45000); UPDATE The update command cab be used to modify information content within a table, either in bulk or individually. Each year , our company gives all employees a three percent cost of living increase in their salary. The following SQL command could be used to quickly apply this to all of the employees stored in the database: UPDATE DELETE The delete command cab be used to delete information content within a table , either in bulk or individually. The following SQL command could be used to quickly apply this to the entire employees delete from the database: DELETE from employee where employee_id=005; employee SET salary= salary *1.03 where employee_id=005; commands:

P a g e | 26

P a g e | 27

Design goals
The ECMA standard lists these design goals for C#:[6]


 

C# language is intended to be a simple, modern, general-purpose, objectoriented programming language. The language, and implementations thereof, should provide support for software engineering principles such as strong type checking, array bounds checking, detection of attempts to use uninitialized variables, and automatic garbage collection. Software robustness, durability, and programmer productivity are important. The language is intended for use in developing software components suitable for deployment in distributed environments. Source code portability is very important, as is programmer portability, especially for those programmers already familiar with C and C++. Support for internationalization is very important. C# is intended to be suitable for writing applications for both hosted and embedded systems, ranging from the very large that use sophisticated operating systems, down to the very small having dedicated functions. Although C# applications are intended to be economical with regard to memory and processing power requirements, the language was not intended to compete directly on performance and size with C or assembly language.

P a g e | 28

History
During the development of the .NET Framework, the class libraries were originally written using a managed code compiler system called Simple Managed C (SMC).In January 1999, Anders Hejlsberg formed a team to build a new language at the time called Cool, which stood for "C-like Object Oriented Language. Microsoft had considered keeping the name "Cool" as the final name of the language, but chose not to do so for trademark reasons. By the time the .NET project was publicly announced at the July 2000 Professional Developers Conference, the language had been renamed C#, and the class libraries and ASP.NET runtime had been ported to C#. C#'s principal designer and lead architect at Microsoft is Anders Hejlsberg, who was previously involved with the design of Turbo Pascal, Embarcadero Delphi (formerly Code Gear Delphi and Borland Delphi), and Visual J++. In interviews and technical papers he has stated that flaws in most major programming languages (e.g. C++, Java, Delphi, and Smalltalk) drove the fundamentals of the Common Language Runtime (CLR), which, in turn, drove the design of the C# programming language itself. James Gosling, who created the Java programming language in 1994, and Bill Joy, a co-founder of Sun Microsystems, the proprietor of Java, called C# an "imitation" of Java; Gosling further claimed that "[C# is] sort of Java with reliability, productivity and security deleted." Klaus Kraft and Angelika Langer (authors of a C++ streams book) stated in a blog post that "Java and C# are almost identical programming languages. Boring repetition that lacks innovation," "Hardly anybody will claim that Java or C# are revolutionary programming languages that changed the way we write programs," and "C# borrowed a lot from Java - and vice versa. Now that C# supports boxing and unboxing, we'll have a very similar feature in Java." Anders Hejlsberg has argued that C# is "not a Java clone" and is "much closer to C++" in its design.

P a g e | 29

Versions
In the course of its development, the C# language has gone through several versions: Version Language specification Microsoft compiler C# 1.0 C# 2.0 C# 3.0 C# 4.0 December 2001 December 2002 June 2005 June 2006 January 2002 November 2005 November 2006 April 2010

Features
By design, C# is the programming language that most directly reflects the underlying Common Language Infrastructure (CLI). Most of its intrinsic types correspond to value-types implemented by the CLI framework. However, the language specification does not state the code generation requirements of the compiler: that is, it does not state that a C# compiler must target a Common Language Runtime, or generate Common Intermediate Language (CIL), or generate any other specific format. Theoretically, a C# compiler could generate machine code like traditional compilers of C++ or FORTRAN.

P a g e | 30

SOME NOTABLE DISTINGUISHING FEATURES OF C# ARE:


1.

2.

3.

4.

5.

6.

7.

There are no global variables or functions. All methods and members must be declared within classes. Static members of public classes can substitute for global variables and functions. Local variables cannot shadow variables of the enclosing block, unlike C and C++. Variable shadowing is often considered confusing by C++ texts. C# supports a strict Boolean data type, boolean. Statements that take conditions, such as while and if, require an expression of a type that implements the true operator, such as the boolean type. While C++ also has a Boolean type, it can be freely converted to and from integers, and expressions such as if(a) require only that a is convertible to bool, allowing ato be an int, or a pointer. C# disallows this "integer meaning true or false" approach on the grounds that forcing programmers to use expressions that return exactly bool can prevent certain types of common programming mistakes in C or C++ such as if (a = b) (use of assignment = instead of equality ==). In C#, memory address pointers can only be used within blocks specifically marked as unsafe, and programs with unsafe code need appropriate permissions to run. Most object access is done through safe object references, which always either point to a "live" object or have the welldefined null value; it is impossible to obtain a reference to a "dead" object (one which has been garbage collected), or to a random block of memory. An unsafe pointer can point to an instance of a value-type, array, string, or a block of memory allocated on a stack. Code that is not marked as unsafe can still store and manipulate pointers through the System. IntPtr type, but it cannot dereference them. Managed memory cannot be explicitly freed; instead, it is automatically garbage collected. Garbage collection addresses the problem of memory leaks by freeing the programmer of responsibility for releasing memory which is no longer needed. In addition to the try...catch construct to handle exceptions, C# has a try...finally construct to guarantee execution of the code in the finally block. Multiple inheritances is not supported, although a class can implement any number of interfaces. This was a design decision by the language's lead

P a g e | 31

architect to avoid complication and simplify architectural requirements throughout CLI. 8. C# is more type safe than C++. The only implicit conversions by default are those which are considered safe, such as widening of integers. This is enforced at compile-time, during JIT, and, in some cases, at runtime. There are no implicit conversions between booleans and integers, nor between enumeration members and integers (except for literal 0, which can be implicitly converted to any enumerated type). Any user-defined conversion must be explicitly marked as explicit or implicit, unlike C++ copy constructors and conversion operators, which are both implicit by default. 9. Enumeration members are placed in their own scope. 10. C# provides properties as syntactic sugar for a common pattern in which a pair of methods, accessor (getter) and mutator (setter) encapsulate operations on a single attribute of a class. 11. Full type reflection and discovery is available. 12. C# currently (as of 3 June 2008) has 77 reserved words. 13. Checked exceptions are not present in C# (in contrast to Java). This has been a conscious decision based on the issues of scalability and version ability

References
  

Archer, Tom (2001). Inside C#. Microsoft Press. ISBN 0-7356-1288-9. C# Language Pocket Reference. O' Reilly. 2002. ISBN 0-596-00429-X. Petzold, Charles (2002). Programming Microsoft Windows with C#. Microsoft Press. ISBN 0-7356-1370-2.

P a g e | 32

P a g e | 33 Table Adminastration login

Table Customer login

Company Details:

P a g e | 34

Product Payment

Customer Payment

Customer Information

P a g e | 35 New Product

Sales Information

P a g e | 36

P a g e | 37

Hardware Required
Processor RAM Hard Disk : Pentium Dual Core and above. : 512 MB : 40 GB and above

Software Required
Operating System : Windows xp, Windows Vista, Windows 7

Used Software during Development:


1) 2) 3) 4) Visual Studio 2008 paint 4.0 Sqlsarver 2000 Photoshop cs2

P a g e | 38

P a g e | 39

ADMINISTRATOR LOGIN

P a g e | 40

ADMINISTRATOR LOGIN

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; namespace WindowsFormsApplication2 { public partial class AdminLogin : Form { public AdminLogin() { InitializeComponent(); } SqlConnection con = new SqlConnection("Data Source=raj-85072e10e85;Initial Catalog=eshopping;Integrated Security=true");

private void bttnLogin_Click(object sender, EventArgs e) { SqlDataAdapter da = new SqlDataAdapter("select LoginName,Password from Newadminlogin", con); DataSet ds = new DataSet(); da.Fill(ds, "Newadminlogin"); for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { if (txtusrnme.Text == ds.Tables[0].Rows[i][0].ToString() && txtpass.Text == ds.Tables[0].Rows[i][1].ToString()) { Mainhome m = new Mainhome(); m.Show(); MessageBox.Show("Logged in Successfully"); } this.Hide(); }

P a g e | 41 } private void bttnCncl_Click(object sender, EventArgs e) { Application.Exit(); } private void txtusername_TextChanged(object sender, EventArgs e) { } } }

P a g e | 42

MAIN HOME

P a g e | 43

MAIN HOME
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication2 { public partial class Mainhome : Form { private int childFormNumber = 0; public Mainhome() { InitializeComponent(); } private void newToolStripMenuItem_Click(object sender, EventArgs e) { NewAdminLogin xa = new NewAdminLogin(); xa.Show(); this.Close(); } private void openToolStripMenuItem_Click(object sender, EventArgs e) { ChangePassword ch = new ChangePassword(); ch.Show(); this.Close(); } private void saveToolStripMenuItem_Click(object sender, EventArgs e) { Application.Exit(); } private void undoToolStripMenuItem_Click(object sender, EventArgs e) { EmployerLogin em = new EmployerLogin(); em.Show(); } private void redoToolStripMenuItem_Click(object sender, EventArgs e) { NewEmployerRegistration ne = new NewEmployerRegistration(); ne.Show();

P a g e | 44 } private void cutToolStripMenuItem_Click(object sender, EventArgs e) { CompanyDetails cm = new CompanyDetails(); cm.Show(); } private void copyToolStripMenuItem_Click(object sender, EventArgs e) { CustomerInformation cu = new CustomerInformation(); cu.Show(); } private void toolBarToolStripMenuItem_Click(object sender, EventArgs e) { NewProductEntry np = new NewProductEntry(); np.Show(); } private void statusBarToolStripMenuItem_Click(object sender, EventArgs e) { SalesInformation sa = new SalesInformation(); sa.Show(); } private void newWindowToolStripMenuItem_Click(object sender, EventArgs e) { CustomerPayment pa = new CustomerPayment(); pa.Show(); } private void cascadeToolStripMenuItem_Click(object sender, EventArgs e) { ProductPayment pr = new ProductPayment(); pr.Show(); } } }

P a g e | 45

CREATE NEW ADMINISTRATOR

P a g e | 46

CREATE NEW ADMINISTRATOR


using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; namespace WindowsFormsApplication2 { public partial class NewAdminLogin : Form { public NewAdminLogin() { InitializeComponent(); } SqlConnection con = new SqlConnection("Data Source=raj-85072e10e85;Initial Catalog=eshopping;Integrated Security=true");

private void bttnCtreUsr_Click(object sender, EventArgs e) { SqlCommand cmd = new SqlCommand("insert into Newadminlogin values('" + txtLogin.Text + "','" + txtPassword.Text + "','" + txtConfirmPass.Text + "')", con); con.Open(); cmd.ExecuteNonQuery(); con.Close(); MessageBox.Show("New Administrator created successfully"); if (txtPassword.Text == txtConfirmPass.Text) { Mainhome cs = new Mainhome(); cs.Show(); } else { MessageBox.Show("Please Enter the Same Password"); } this.Close(); } private void label1_Click(object sender, EventArgs e) { } private void bttnClear_Click(object sender, EventArgs e)

P a g e | 47 { txtConfirmPass.Clear(); txtLogin.Clear(); txtPassword.Clear(); } private void bttnCancel_Click(object sender, EventArgs e) { this.Close(); Mainhome cs = new Mainhome(); cs.Show(); } } }

P a g e | 48

CHANGE PASSWORD

P a g e | 49

CHANGE PASSWORD
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; namespace WindowsFormsApplication2 { public partial class ChangePassword : Form { public ChangePassword() { InitializeComponent(); } SqlConnection con = new SqlConnection("Data Source=raj-85072e10e85;Initial Catalog=eshopping;Integrated Security=true"); private void bttnChngPass_Click(object sender, EventArgs e) { SqlCommand cmd = new SqlCommand("update Newadminlogin set Password='" + txtNewPass.Text + "',confirmPassword='" + txtCnfrmPass.Text + "'", con); con.Open(); cmd.ExecuteNonQuery(); con.Close(); MessageBox.Show("Password changed successfully"); if (txtNewPass.Text == txtCnfrmPass.Text) { Mainhome cs = new Mainhome(); cs.Show(); } else { MessageBox.Show("Please Enter the Same Password"); } this.Close(); } private void bttnClar_Click(object sender, EventArgs e) { txtCnfrmPass.Clear(); txtNewPass.Clear(); txtOldPass.Clear(); }

} }

P a g e | 50

EMPLOYEER LOGIN

P a g e | 51

EMPLOYEER LOGIN
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; namespace WindowsFormsApplication2 { public partial class EmployerLogin : Form { public EmployerLogin() { InitializeComponent(); } SqlConnection con = new SqlConnection("Data Source=raj-85072e10e85;Initial Catalog=eshopping;Integrated Security=true"); private void bttnLogin_Click(object sender, EventArgs e) { SqlDataAdapter da = new SqlDataAdapter("select EmpName,Password from Employerregistration", con); DataSet ds = new DataSet(); da.Fill(ds, "Employerregistration"); for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { if (txtusrnme.Text == ds.Tables[0].Rows[i][0].ToString() && txtpass.Text == ds.Tables[0].Rows[i][1].ToString()) { Mainhome m = new Mainhome(); m.Show(); MessageBox.Show("Logged in Successfully"); this.Close(); } } } private void bttnCncl_Click(object sender, EventArgs e) { this.Close(); } } }

P a g e | 52

NEW USER REGISTRATION

P a g e | 53

NEW USER REGISTRATION


using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; namespace WindowsFormsApplication2 { public partial class NewEmployerRegistration : Form { public NewEmployerRegistration() { InitializeComponent(); } SqlConnection con = new SqlConnection("Data Source=raj-85072e10e85;Initial Catalog=eshopping;Integrated Security=true"); private void newemployerregistration_Load(object sender, EventArgs e) { cmbsex.Text = "-select-"; cmbsex.Items.Add("Male"); cmbsex.Items.Add("Female"); loadListEmp(); } private void bttnAddEmp_Click(object sender, EventArgs e) { SqlCommand cmd = new SqlCommand("insert into Employerregistration values('" + txtEmpID.Text + "','" + txtEmpName.Text + "','" + txtPass.Text + "','" + txtConfrmPass.Text + "','" + cmbsex.Text + "','" + txtPhone.Text + "','" + txtAddress.Text + "','" + ListEmp.Text + "')", con); con.Open(); cmd.ExecuteNonQuery(); con.Close(); MessageBox.Show("Employee details added successfully"); loadListEmp(); } private void bttnNew_Click(object sender, EventArgs e) { txtEmpName.Clear(); txtPass.Clear(); txtConfrmPass.Clear(); txtPhone.Clear(); cmbsex.Items.Clear();

P a g e | 54 txtAddress.Clear(); txtEmpID.Clear(); } private void bttnClose_Click(object sender, EventArgs e) { this.Close(); } private void loadListEmp() { SqlDataAdapter da = new SqlDataAdapter("select EmpId from Employerregistration", con); DataSet ds = new DataSet(); da.Fill(ds, "Employerregistration"); for (int i = 0; i < ds.Tables[0].Rows.Count; i++) ListEmp.Items.Add(ds.Tables[0].Rows[i][0].ToString()); } private void ListEmp_SelectedIndexChanged(object sender, EventArgs e) { SqlDataAdapter da = new SqlDataAdapter("select * from Employerregistration where EmpId='" + ListEmp.SelectedItem+ "'", con); DataSet ds = new DataSet(); da.Fill(ds, "Employerregistration"); txtEmpID.Text = ds.Tables[0].Rows[0][0].ToString(); txtEmpName.Text = ds.Tables[0].Rows[0][1].ToString(); txtPass.Text = ds.Tables[0].Rows[0][2].ToString(); txtConfrmPass.Text = ds.Tables[0].Rows[0][3].ToString(); txtPhone.Text = ds.Tables[0].Rows[0][4].ToString(); cmbsex.Text = ds.Tables[0].Rows[0][5].ToString(); txtAddress.Text = ds.Tables[0].Rows[0][6].ToString(); } private void bttnUpdate_Click(object sender, EventArgs e) { SqlCommand cmd = new SqlCommand("update Employerregistration set EmpName='" + txtEmpName.Text + "',Password='" + txtPass.Text + "',ConfirmPassword='" + txtConfrmPass.Text + "',Sex='" + cmbsex.Text + "',Phone='" + txtPhone.Text + "',Address='" + txtAddress.Text + "' where EmpId='" + txtEmpID.Text + "'", con); con.Open(); cmd.ExecuteNonQuery(); con.Close(); MessageBox.Show("Record updated successfully"); }

} }

P a g e | 55

NEW PRODUCT ENTRY

P a g e | 56

NEW PRODUCT ENTRY


using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; namespace WindowsFormsApplication2 { public partial class NewProductEntry : Form { public NewProductEntry() { InitializeComponent(); } SqlConnection con = new SqlConnection("Data Source=raj-85072e10e85;Initial Catalog=eshopping;Integrated Security=true"); private void bttnSave_Click(object sender, EventArgs e) { SqlCommand cmd = new SqlCommand("insert into newproduct values('" + txtprodid.Text + "','" + txtprodtype.Text + "','" + txtprodname.Text + "','" + txtmanufby.Text + "','" + txtplcmfd.Text + "','" + txtdtofmfd.Text + "','" + txtdtofexp.Text + "','" + txtcurrentstock.Text + "','" + txtprice.Text + "','" + txtstorageplace.Text + "')", con); con.Open(); cmd.ExecuteNonQuery(); con.Close(); MessageBox.Show("New Product Added Successfully"); loadlistProdct(); } private void bttnNew_Click(object sender, EventArgs e) { txtprodid.Clear(); txtprodtype.Clear(); txtprodname.Clear(); txtmanufby.Clear(); txtplcmfd.Clear(); txtdtofmfd.Clear(); txtdtofexp.Clear(); txtcurrentstock.Clear(); txtprice.Clear(); txtstorageplace.Clear(); } private void bttnClose_Click(object sender, EventArgs e)

P a g e | 57 { this.Close(); } private void timer1_Tick(object sender, EventArgs e) { if (pictureBox2.Visible == true) { pictureBox2.Visible = false; pictureBox3.Visible = true; } else if (pictureBox3.Visible == true) { pictureBox3.Visible = false; pictureBox4.Visible = true; } else if (pictureBox4.Visible == true) { pictureBox4.Visible = false; pictureBox5.Visible = true; } else if (pictureBox5.Visible == true) { pictureBox5.Visible = false; pictureBox6.Visible = true; } else if (pictureBox6.Visible == true) { pictureBox6.Visible = false; pictureBox2.Visible = true; } } private void loadlistProdct() { SqlDataAdapter da = new SqlDataAdapter("select ProdId from newproduct", con); DataSet ds = new DataSet(); da.Fill(ds, "newproduct"); for (int i = 0; i < ds.Tables[0].Rows.Count; i++) listProdct.Items.Add(ds.Tables[0].Rows[i][0].ToString()); }

private void listProdct_SelectedIndexChanged(object sender, EventArgs e) { SqlDataAdapter da = new SqlDataAdapter("select * from newproduct where ProdId='" + listProdct.SelectedItem + "'", con); DataSet ds = new DataSet(); da.Fill(ds, "newproduct"); txtprodid.Text = ds.Tables[0].Rows[0][0].ToString(); txtprodtype.Text = ds.Tables[0].Rows[0][1].ToString(); txtprodname.Text = ds.Tables[0].Rows[0][2].ToString(); txtmanufby.Text = ds.Tables[0].Rows[0][3].ToString();

P a g e | 58 txtplcmfd.Text = ds.Tables[0].Rows[0][4].ToString(); txtdtofmfd.Text = ds.Tables[0].Rows[0][5].ToString(); txtdtofexp.Text = ds.Tables[0].Rows[0][6].ToString(); txtcurrentstock.Text = ds.Tables[0].Rows[0][7].ToString(); txtprice.Text = ds.Tables[0].Rows[0][8].ToString(); txtstorageplace.Text = ds.Tables[0].Rows[0][9].ToString(); } private void bttnUpdate_Click(object sender, EventArgs e) { SqlCommand cmd = new SqlCommand("update newproduct set Prodtype='" + txtprodtype.Text + "',Prodname='" + txtprodname.Text + "',Mfdby='" + txtmanufby.Text + "',plcofmfd='" + txtplcmfd.Text + "',dateofmfd='" + txtdtofmfd.Text + "',dtofexpiry='" + txtdtofexp.Text + "',currentstock='" + txtcurrentstock.Text + "',priceofprod='" + txtprice.Text + "',storageplace='" + txtstorageplace.Text + "' where ProdId='" + txtprodid.Text + "'", con); con.Open(); cmd.ExecuteNonQuery(); con.Close(); MessageBox.Show("Record updated successfully"); } private void newproduct_Load(object sender, EventArgs e) { loadlistProdct(); } private void groupBox1_Enter(object sender, EventArgs e) { }

} }

P a g e | 59

COMPANY DETAILS

P a g e | 60

COMPANY DETAILS
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; namespace WindowsFormsApplication2 { public partial class CompanyDetails : Form { public CompanyDetails() { InitializeComponent(); } SqlConnection con = new SqlConnection("Data Source=raj-85072e10e85;Initial Catalog=eshopping;Integrated Security=true");

private void bttnSave_Click(object sender, EventArgs e) { SqlCommand cmd = new SqlCommand("insert into CompanyDetails values('" + txtCmpID.Text + "','" + txtcmpName.Text + "','" + txtaddr1.Text + "','" + txtaddr2.Text + "','" + txtcity.Text + "','" + txtstate.Text + "','" + txtcountry.Text + "','" + txtpin.Text + "','" + txtemail.Text + "','" + txtphn1.Text + "','" + txtphn2.Text + "','" + txtfax.Text + "','" + txtwebsite.Text + "','" + txtcmptype.Text + "','" + txtbusinesstype.Text + "','" + txtdeptname.Text + "','" + txtemptotal.Text + "','" + txtcmphistory.Text + "')", con); con.Open(); cmd.ExecuteNonQuery(); con.Close(); MessageBox.Show("Company Details added successfully"); loadListEmp(); Mainhome cs = new Mainhome(); cs.Show(); this.Close(); } private void bttnNew_Click(object sender, EventArgs e) { txtCmpID.Clear(); txtcmpName.Clear(); txtaddr1.Clear(); txtaddr2.Clear(); txtcity.Clear();

P a g e | 61 txtstate.Clear(); txtcountry.Clear(); txtpin.Clear(); txtemail.Clear(); txtphn1.Clear(); txtphn2.Clear(); txtfax.Clear(); txtwebsite.Clear(); txtcmptype.Clear(); txtbusinesstype.Clear(); txtdeptname.Clear(); txtemptotal.Clear(); txtcmphistory.Clear(); } private void bttnClose_Click(object sender, EventArgs e) { this.Close(); } private void bttnUpdate_Click(object sender, EventArgs e) { SqlCommand cmd = new SqlCommand("update CompanyDetails set CompanyName='" + txtcmpName.Text + "',Address1='" + txtaddr1.Text + "',Address2='" + txtaddr2.Text + "',City='" + txtcity.Text + "',State='" + txtstate.Text + "',Country='" + txtcountry.Text + "',PinCode='" + txtpin.Text + "',Email='" + txtemail.Text + "',Phone1='" + txtphn1.Text + "',Phone2='" + txtphn2.Text + "',Fax='" + txtfax.Text + "',Website='" + txtwebsite.Text + "',Companytype='" + txtcmptype.Text + "',BusinessLine='" + txtbusinesstype.Text + "',Departmentname='" + txtdeptname.Text + "',Employeenototal='" + txtemptotal.Text + "',CompanyHistory='" + txtcmphistory.Text + "' where CompanyID='" + txtCmpID.Text + "'", con); con.Open(); cmd.ExecuteNonQuery(); con.Close(); MessageBox.Show("Record updated successfully");

} public void loadListEmp() { SqlDataAdapter da = new SqlDataAdapter("select CompanyID from CompanyDetails", con); DataSet ds = new DataSet(); da.Fill(ds, "CompanyDetails"); for (int i = 0; i < ds.Tables[0].Rows.Count; i++) ListEmp.Items.Add(ds.Tables[0].Rows[i][0].ToString()); }

private void ListEmp_SelectedIndexChanged(object sender, EventArgs e) {

P a g e | 62 SqlDataAdapter da = new SqlDataAdapter("select * from CompanyDetails where CompanyID='" +ListEmp.SelectedItem+ "'", con); DataSet ds = new DataSet(); da.Fill(ds, "CompanyDetails"); txtCmpID.Text = ds.Tables[0].Rows[0][0].ToString(); txtcmpName.Text = ds.Tables[0].Rows[0][1].ToString(); txtaddr1.Text = ds.Tables[0].Rows[0][2].ToString(); txtaddr2.Text = ds.Tables[0].Rows[0][3].ToString(); txtcity.Text = ds.Tables[0].Rows[0][4].ToString(); txtstate.Text = ds.Tables[0].Rows[0][5].ToString(); txtcountry.Text = ds.Tables[0].Rows[0][6].ToString(); txtpin.Text = ds.Tables[0].Rows[0][7].ToString(); txtemail.Text = ds.Tables[0].Rows[0][8].ToString(); txtphn1.Text = ds.Tables[0].Rows[0][9].ToString(); txtphn2.Text = ds.Tables[0].Rows[0][10].ToString(); txtfax.Text = ds.Tables[0].Rows[0][11].ToString(); txtwebsite.Text = ds.Tables[0].Rows[0][12].ToString(); txtcmptype.Text = ds.Tables[0].Rows[0][13].ToString(); txtbusinesstype.Text = ds.Tables[0].Rows[0][14].ToString(); txtdeptname.Text = ds.Tables[0].Rows[0][15].ToString(); txtemptotal.Text = ds.Tables[0].Rows[0][16].ToString(); txtcmphistory.Text = ds.Tables[0].Rows[0][17].ToString(); } private void companydetails_Load(object sender, EventArgs e) { loadListEmp(); }

} }

P a g e | 63

CUSTOMER PAYMENT

P a g e | 64

CUSTOMER PAYMENT
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; namespace WindowsFormsApplication2 { public partial class CustomerPayment : Form { public CustomerPayment() { InitializeComponent(); } SqlConnection con = new SqlConnection("Data Source=raj-85072e10e85;Initial Catalog=eshopping;Integrated Security=true");

private void customerpayment_Load(object sender, EventArgs e) { loadlistProdct(); loadlistCustId(); } private void loadlistProdct() { SqlDataAdapter da = new SqlDataAdapter("select ProdId from newproduct", con); DataSet ds = new DataSet(); da.Fill(ds, "newproduct"); for (int i = 0; i < ds.Tables[0].Rows.Count; i++) listProdct.Items.Add(ds.Tables[0].Rows[i][0].ToString()); } private void loadlistCustId() { SqlDataAdapter da = new SqlDataAdapter("select custID from Customerinformation", con); DataSet ds = new DataSet(); da.Fill(ds, "Customerinformation"); for (int i = 0; i < ds.Tables[0].Rows.Count; i++) listCustId.Items.Add(ds.Tables[0].Rows[i][0].ToString()); } private void listCustId_SelectedIndexChanged(object sender, EventArgs e) { SqlDataAdapter da = new SqlDataAdapter("select * from Customerinformation where custId='" + listCustId.SelectedItem + "'", con);

P a g e | 65 DataSet ds = new DataSet(); da.Fill(ds, "Customerinformation"); txtCustId.Text = ds.Tables[0].Rows[0][0].ToString(); txtCustName.Text = ds.Tables[0].Rows[0][1].ToString(); txtCnctNo.Text = ds.Tables[0].Rows[0][8].ToString(); txtPerAddress.Text = ds.Tables[0].Rows[0][9].ToString(); } private void bttnclose_Click(object sender, EventArgs e) { SqlCommand cmd = new SqlCommand("insert into cstomerpayment values('" + txtCustId.Text + "','" + txtCustName.Text + "','" + txtCnctNo.Text + "','" + txtPerAddress.Text + "')", con); con.Open(); cmd.ExecuteNonQuery(); con.Close(); MessageBox.Show("Customer payment made successfully"); Mainhome cs = new Mainhome(); cs.Show(); this.Close(); }

} }

P a g e | 66

SALES INFORMATION

P a g e | 67

SALES INFORMATION
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; namespace WindowsFormsApplication2 { public partial class SalesInformation : Form { public SalesInformation() { InitializeComponent(); } SqlConnection con = new SqlConnection("Data Source=raj-85072e10e85;Initial Catalog=eshopping;Integrated Security=true"); private void bttnSave_Click(object sender, EventArgs e) { DateTime dt1 = new DateTime(); dt1 = Convert.ToDateTime(dtpdlvrydate.Text); DateTime dt2 = new DateTime(); dt2 = Convert.ToDateTime(dtpwarrntyfrom.Text); DateTime dt3 = new DateTime(); dt3 = Convert.ToDateTime(dtpwarrntyto.Text); SqlCommand cmd = new SqlCommand("insert into salesinformation values('" + txtcustid.Text + "','" + txtprodid.Text + "','" + txtprodname.Text + "','" + cmbsalescategloryct.Text + "','" + dt1.ToString("MM/dd/yyyy") + "','" + cmbcustopinion.Text + "','" + cmbagentopinion.Text + "','" + txtitemqty.Text + "','" + txtitemprice.Text + "','" + txtdiscount.Text + "','" + txttax.Text + "','" + txtnetamt.Text + "','" + txtgrossamt.Text + "','" + dt2.ToString("MM/dd/yyyy") + "','" + dt3.ToString("MM/dd/yyyy") + "')", con); con.Open(); cmd.ExecuteNonQuery(); con.Close(); MessageBox.Show("Sales to the Desired Customer will be Delivered Shortly"); Mainhome cs = new Mainhome(); cs.Show(); this.Close(); loadlistCustID(); } private void salesinformation_Load(object sender, EventArgs e) { loadlistCustID(); }

P a g e | 68

private void bttnClose_Click(object sender, EventArgs e) { this.Close(); } private void bttnNew_Click(object sender, EventArgs e) { txtcustid.Clear(); txtprodid.Clear(); txtprodname.Clear(); cmbsalescategloryct.ResetText(); cmbcustopinion.ResetText(); cmbagentopinion.ResetText(); dtpdlvrydate.ResetText(); dtpwarrntyfrom.ResetText(); dtpwarrntyto.ResetText(); txtitemqty.Clear(); txtitemprice.Clear(); txtdiscount.Clear(); txttax.Clear(); txtnetamt.Clear(); txtgrossamt.Clear(); } private void loadlistCustID() { SqlDataAdapter da = new SqlDataAdapter("select custid from salesinformation", con); DataSet ds = new DataSet(); da.Fill(ds, "salesinformation"); for (int i = 0; i < ds.Tables[0].Rows.Count; i++) listCustID.Items.Add(ds.Tables[0].Rows[i][0].ToString()); } } }

P a g e | 69

PRODUCT PAYMENT

P a g e | 70

PRODUCT PAYMENT
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; namespace WindowsFormsApplication2 { public partial class ProductPayment : Form { public ProductPayment() { InitializeComponent(); } SqlConnection con = new SqlConnection("Data Source=raj-85072e10e85;Initial Catalog=eshopping;Integrated Security=true"); private void bttnclose_Click(object sender, EventArgs e) { SqlCommand cmd = new SqlCommand("insert into prodctPayment values('" + txtProdId.Text + "','" + txtProdName.Text + "','" + txtProdType.Text + "','" + txtProdPrice.Text+ "','" + txtMfddt.Text + "','" + txtExprdt.Text + "')", con); con.Open(); cmd.ExecuteNonQuery(); con.Close(); MessageBox.Show("Product payment made successfully"); Mainhome cs = new Mainhome(); cs.Show(); loadlistProdct(); this.Close(); } private void loadlistProdct() { SqlDataAdapter da = new SqlDataAdapter("select ProdId from newproduct", con); DataSet ds = new DataSet(); da.Fill(ds, "newproduct"); for (int i = 0; i < ds.Tables[0].Rows.Count; i++) listProdct.Items.Add(ds.Tables[0].Rows[i][0].ToString()); } private void listProdct_SelectedIndexChanged(object sender, EventArgs e) { SqlDataAdapter da = new SqlDataAdapter("select * from newproduct where ProdId='" + listProdct.SelectedItem + "'", con); DataSet ds = new DataSet();

P a g e | 71 da.Fill(ds, "newproduct"); txtProdId.Text = ds.Tables[0].Rows[0][0].ToString(); txtProdName.Text = ds.Tables[0].Rows[0][2].ToString(); txtProdType.Text = ds.Tables[0].Rows[0][1].ToString(); txtProdPrice.Text = ds.Tables[0].Rows[0][8].ToString(); txtMfddt.Text = ds.Tables[0].Rows[0][5].ToString(); txtExprdt.Text = ds.Tables[0].Rows[0][6].ToString(); } private void Form1_Load(object sender, EventArgs e) { loadlistProdct(); } } }

P a g e | 72

CUSTOMER INFORMATION

P a g e | 73

CUSTOMER INFORMATION
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; namespace WindowsFormsApplication2 { public partial class CustomerInformation : Form { public CustomerInformation() { InitializeComponent(); } SqlConnection con = new SqlConnection("Data Source=raj-85072e10e85;Initial Catalog=eshopping;Integrated Security=true"); private void bttnSave_Click(object sender, EventArgs e) { SqlCommand cmd = new SqlCommand("insert into Customerinformation values('" + txtcustid.Text + "','" + txtcustname.Text + "','" + txtpassword.Text + "','" + txtsex.Text + "','" + txtmaritial.Text + "','" + txtDOB.Text + "','" + txtqualifi.Text + "','" + txtnationality.Text + "','" + txtcontactno.Text + "','" + txtpermaaddress.Text + "')", con); con.Open(); cmd.ExecuteNonQuery(); con.Close(); MessageBox.Show ("Customer Information Added successfullly"); Mainhome cs = new Mainhome(); cs.Show(); this.Close();

} private void bttnNew_Click(object sender, EventArgs e) { txtcustid.Clear(); txtcustname.Clear(); txtpassword.Clear(); txtsex.Clear(); txtmaritial.Clear(); txtDOB.Clear(); txtqualifi.Clear(); txtnationality.Clear(); txtcontactno.Clear();

P a g e | 74 txtpermaaddress.Clear(); } private void bttnClose_Click(object sender, EventArgs e) { this.Close(); } } }

P a g e | 75

P a g e | 76

P a g e | 77

P a g e | 78

P a g e | 79

P a g e | 80

P a g e | 81

P a g e | 82

P a g e | 83

This Application provides us facility to operate on any mode of bank operations. It saves time as it allows number of customes to acess at a time and displays the results at a very short time, so its not required to wait long time for the transactions. It is manually check by the administrative user i,e the employers of the bank.

Administrator has a privilege to create, modify and delete the database and its particular transaction depending on customers aacount. Users or customers can login, create account ,go online shoppings, transactions ,prepairing draft,fund transfer can be done with his Specific account number and can see the transactions as well.

The software on E-SHOPPING is developed using Visual Studio and sqlserver that fully meets the objectives of the system for which it has been developed. The system has reached a steady state where all bugs have been eliminated. The system is operated at a high level of efficiency and all the teachers and user associated with the system understands its advantage. The system solves the problem. It was intended to solve as requirement specification.

You might also like