+ All Categories
Home > Documents > e Shopping Management

e Shopping Management

Date post: 06-Apr-2018
Category:
Upload: rajib-singh
View: 215 times
Download: 0 times
Share this document with a friend

of 83

Transcript
  • 8/3/2019 e Shopping Management

    1/83

    P a g e | 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

    (5thSem BCA, Batch; 2008-2011)

  • 8/3/2019 e Shopping Management

    2/83

    P a g e | 2

    This is to certify thatALKHRBI MSHARI MOHSEEN J has satisfactory completed the course of the project

    work in partial fulfillment of practicalJAVA PROGRAMMINGprescribed byBangalore University 5th

    semester in Bachelor of Computer -Application course in the laboratory of this college in the year2010.

    Date: -_______________ Signature of the Teacher in-charge

    Valued by : Signature of the Principal

    Examiner 1:-

    Examiner 2:-

    Name:-ALKHRBI MSHARI MOHSEEN J

    Center:-___________________

    Date of Exam:-_______________

  • 8/3/2019 e Shopping Management

    3/83

    P a g e | 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

  • 8/3/2019 e Shopping Management

    4/83

    P a g e | 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 hsDepartment 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

  • 8/3/2019 e Shopping Management

    5/83

    P a g e | 5

    Project Development Scheduling

    PERT (Program Evaluation & Review Technique) Chart

    Day 1 10 Day 11 25 Day 26 46

    START

    10 Days 15 Days 20 Days

    Day 47 64

    15 Days

    Day 64 110

    35 Days

    Problem

    Analysis

    Analysi

    s of the

    Selection &Learning the

    s/w to be used

    Under -standing

    Database

    Coding

  • 8/3/2019 e Shopping Management

    6/83

    P a g e | 6

    Day 110 130

    20

    Days

    5 Days 20 Days 15 Days

    Day 168 175Day 147 167 Day 131 146

    Page

    Implementation

    Evaluation Testing

  • 8/3/2019 e Shopping Management

    7/83

    P a g e | 7

    TABLE OF CONTENTS

    TABLE OF CONTENTS

    SL NO CONTENTS PAGE

    NO

    1

    2

    3

    4

    5

    6

    7

    8

    INTRODUCTION

    FRONT END AS C-SHARP LANGUAGE ( DOT

    NET)

    BACK END AS SQL SERVER 2000

    SYSTEM TABLE DETAILS

    HARDWARE AND SOFTWARE

    SOURCE CODE

    SNAPSHOTS FROM THE PROJECT

    CONCLUSION

    9

    12

    18

    33

    37

    39

    76

    83

  • 8/3/2019 e Shopping Management

    8/83

    P a g e | 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 gratitudeto 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 for successful

    completion of this project.

    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 co-operation.

  • 8/3/2019 e Shopping Management

    9/83

    P a g e | 9

  • 8/3/2019 e Shopping Management

    10/83

    P a g e | 10

    INTRODUCATION TO E-SHOPPING

    It is a software that helps shopping convenient and easy to perform through theInternet.It helps in easy maintenance of goods stored in a marketplace or a mall. Itcan be used to manage any shopping premises to maintain and update , save theexisting 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 toadd new users, edit existing products, add new products etc. He can add new users

    and employees.

  • 8/3/2019 e Shopping Management

    11/83

    P a g e | 11

  • 8/3/2019 e Shopping Management

    12/83

    P a g e | 12

    Introduction:

    At the Professional Developers' Conference in Orlando last July, Microsoftunveiled its latest architecture, .NET. Its various features and components wereexplained to the large audience by a number of speakers.So what is .NET? The term is, essentially, a new marketing label which Microsoftis sticking on existing and future products. The .NET label now features on server

    products such as BizTalk Server 2000 and Application Center 2000, which arebased on Windows DNA 2000 technology. The most interesting feature of .NET,however, lies in the development platform, languages and protocols which itemphasizes.By bringing us .NET, Microsoft is presenting us with a new platform designed tofacilitate development of interoperable Web applications, based on a totally newarchitecture. For Microsoft, .NET will be a way of "programming the Web," noless. 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 tolook 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, andrunning Web Services and Web Applications.The .NET Framework contains common class libraries - like ADO.NET, ASP.NETand 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#, VisualBasic, JScript (The Microsoft version of JavaScript) and COBOL. Third-partylanguages - like Eiffel, Perl, Python, Smalltalk, and others - will also be availablefor 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 differentdevelopment languages.

  • 8/3/2019 e Shopping Management

    13/83

    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 developmentsoftware for programmers to build Web-based applications.

    y The background for .NET is part of Microsoft's newstrategy to keepWindows the dominant operating system in themarket, as computing

    begins to move away from desktop computers toward Internetenabled devices,such ashand-held computers and cell phones.

    y Themost visual components of the new .NET framework are the new

    Internet Information Server 6.0,with ASP.NET and ADO.NETsupport,Visual Studio.NETsoftware tools to build Web-based software, and

    new XML support in the SQL Server 2000 database.y Bill Gates issupervising the .NET project.

    Aims and objectives:

    The goal that Microsoft has set itself is ambitious, to say the least, both in technicaland strategic terms. The new .NET platform has not evolved from the DNA 2000technology 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 newproducts, 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 MSILwhich 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 theSOAP 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 ofthe .NET platform.

    However, there is no need to start worrying yet about the future of DNAapplications currently in production; as Microsoft they have admitted, the finalversion of .NET will not be available until early 2002, and .NET is able to runexisting applications in native mode, without giving them all the .NET benefits.

  • 8/3/2019 e Shopping Management

    14/83

    P a g e | 14

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

    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.y ASP technology gives way to ASP.NET (initially called ASP+), where

    interpreted scripts are replaced by codes compiled when they are firstinvoked, as for JSPs.

    y Win32 APIs such as ATL and MFC are replaced by a coherent set of BaseFramework classes.

    y VB.NET no longer ensures ascending compatibility from VB6, as thislanguage receives a lot of contributions (inheritance, .) in order to complywith the Common Language Specification (CLS) agreement.

    y COM+ 2.0 is a totally original distributed components model which does notretain any inherited element from the COM/DCOM/COM+ lineup. To thisend, COM+ 2.0 no longer uses the Windows Registry to register local or

    remote components: deployment of components in .NET will take you backto the good old days when installing a program meant copying files into adirectory and uninstalling involved nothing more complicated than deletingthe files.

    y A new programming language called C# ("C sharp") is born: this is amodern object-oriented language, something of a cross between C++ andJava . C# was created by Anders Hejlsberg, architect of a number oflanguages and tools at Borland, including the famous Delphi.

    y The new programming model, based on SOAP and Web Services,fundamentally changes the way in which applications are designed, andopens the way for a new profession: online provision of Web services.

    These changes are moving towards a looser coupling between the Windows 2000operating system and upper layers offering application server services. We look atthese changes in more detail below, so as to give you an insight into thetransformations that are taking place.

    What is more, these technical changes, linked to the fact that the .NET platformwill be a massive user of standards from independent bodies such as the W3C, theIETF and the ECMA, are leading a lot of analysts (including the Gartner Group) tosurmise 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

  • 8/3/2019 e Shopping Management

    15/83

    P a g e | 15

    episode in which Internet Explorer was provided free of charge, ready-installed onevery PC equipped with Windows; Internet Explorer's many proprietaryfunctionalities were extremely detrimental to rival Netscape.)Today, with .NET, Microsoft is sending us a vision of an Internet made up of aninfinite number of interoperable Web applications which together form a globalservice exchange network. These Web Services are based on the Simple ObjectAccess 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 mayalso change the way we plan information systems in enterprises, by making SOAPsystematically used as application integration middleware, playing the role of asimple but efficient, standard EAI. An enterprise information system could thenalso 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 hasacquired in multimedia content publishers, will soon become a provider itself, byhiring out or offering subscription to numerous Web services.In the meantime, however, other vendors are not sitting back: IBM and, morerecently, Oracle have announced offerings which enable the creation of Web

    Services. IBM, which has long been a supporter of SOAP, offers its "Web ServicesDevelopment Environment" on its Alpha works site, while Oracle has also justadopted SOAP, within 9i. Oracle has dubbed its offering "Dynamic Services", butit does not seem to be clearly defined as yet.Therefore, Web Services will help Microsoft move from a model in which themajority of its revenues come from sales of boxed products and licenses designedfor individual micro-computers, to a model revolving around subscription and hireof services carried by software infrastructures, parts of which, we can assume, will

    be provided free of charge. A few coinciding rumors suggest that Microsoft mayeventually distribute its SDK and command line compilers free of charge, andwould only market Visual Studio .NET. This is the sort of strategy that was behindthe 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 positionat the top. The example of IBM, which never managed to regain the position itoccupied 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 ofchange which lies ahead, under pressure from users who want to use IT resources

  • 8/3/2019 e Shopping Management

    16/83

    P a g e | 16

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

    .NET is multi-language:

    With the .NET platform, Microsoft will provide several languages and theassociated 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 currentlydeveloping compilers for a broad range of other languages, including Cobol, Eiffel,CAML, Lisp, Python and Smalltalk. Rational, vendor of the famous UML toolRose, 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: MicrosoftIntermediate 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 Windowsversions, microcontroller-based PDAs with PocketPC (e.g. Windows CE), andother operating systems too, no doubt.

  • 8/3/2019 e Shopping Management

    17/83

    P a g e | 17

  • 8/3/2019 e Shopping Management

    18/83

    P a g e | 18

    Introduction:

    The innumerable data challenges faced by modern day organizations haveleveraged the need for faster and more data taravent decisions. The drive is toincrease productivity ,flexibility of human resources to reduce overall investmentsin technology while scaling the infrastructure to meet the growing demand forinformation that enable informed mission critical decision.

    The release of Sql server 2000 was one of the corner stones of Microsoftsstrategy of the back office. Its integration with the dot net family of serverapplication has gone a long way in establishing SQL server as one of the mostrobust 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. Theincreasing ease with which database application can be built has reduced thecomplexity of deploying and managing the database application. Data can now beshared across platforms, application and devices making it possible to networkinternal and external system seamlessly. Performance, availability, scalability andsecurity 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 anddeveloper. The relation database engine has been improver to give better

    performance and support for both structured and unstructured (XML) data. Therepublication service includes services for distributed or mobile data processingapplications. It improves for high systems availability scalable concurrency withsecondary 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 andextend 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 useas a backend to a small ,multiuser application that requires more advancedfeatures such as web reporting or full text search. discover which version of

  • 8/3/2019 e Shopping Management

    19/83

    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 touse ,lightweight and embeddable version of sql server 2000.continue reading tolearn more about the benefits of sql server express edition and to download sqlserver management studio.Easy to useEasy to learnPowerfulEasy 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 servermanagement 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.

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

    Seamless integration with visual studio express edition:

  • 8/3/2019 e Shopping Management

    20/83

    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

  • 8/3/2019 e Shopping Management

    21/83

    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 asyour 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

    y Use debugging that is seamless across the application of databaseIndustry-Leading Data Security:

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

    y 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) towrite 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.

  • 8/3/2019 e Shopping Management

    22/83

    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 optimizeenterprise 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

  • 8/3/2019 e Shopping Management

    23/83

    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 nddatabase 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:

  • 8/3/2019 e Shopping Management

    24/83

    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 personaldatabase 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 foran 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 futurearticles.

    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.

  • 8/3/2019 e Shopping Management

    25/83

    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 commands:

    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 employee SET salary= salary *1.03 where employee_id=005;

    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;

  • 8/3/2019 e Shopping Management

    26/83

    P a g e | 26

  • 8/3/2019 e Shopping Management

    27/83

    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, object-oriented 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.

  • 8/3/2019 e Shopping Management

    28/83

    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 flawsin 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 withreliability, 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.

  • 8/3/2019 e Shopping Management

    29/83

    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 December 2001 January 2002

    C# 2.0 December 2002 November 2005

    C# 3.0 June 2005 November 2006

    C# 4.0 June 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.

  • 8/3/2019 e Shopping Management

    30/83

    P a g e | 30

    SOME NOTABLE DISTINGUISHING FEATURES OFC# ARE:

    1. 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.2. Local variables cannot shadow variables of the enclosing block, unlike C

    and C++. Variable shadowing is often considered confusing by C++ texts.

    3. 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 ==).

    4. 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 well-

    defined 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.

    5. 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.

    6. 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.

    7. Multiple inheritances is not supported, although a class can implement any

    number of interfaces. This was a design decision by the language's lead

  • 8/3/2019 e Shopping Management

    31/83

    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. Thereare 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) encapsulateoperations 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.

  • 8/3/2019 e Shopping Management

    32/83

    P a g e | 32

  • 8/3/2019 e Shopping Management

    33/83

    P a g e | 33

    Table Adminastration login

    Table Customer login

    Company Details:

  • 8/3/2019 e Shopping Management

    34/83

    P a g e | 34

    Product Payment

    Customer Payment

    Customer Information

  • 8/3/2019 e Shopping Management

    35/83

    P a g e | 35

    New Product

    Sales Information

  • 8/3/2019 e Shopping Management

    36/83

    P a g e | 36

  • 8/3/2019 e Shopping Management

    37/83

    P a g e | 37

    Hardware Required

    Processor : Pentium Dual Core and above.

    RAM : 512 MB

    Hard Disk : 40 GB and above

    Software Required

    Operating System : Windows xp, Windows Vista, Windows 7

    Used Software during Development:

    1)Visual Studio 2008

    2) paint 4.0

    3) Sqlsarver 2000

    4)Photoshop cs2

  • 8/3/2019 e Shopping Management

    38/83

    P a g e | 38

  • 8/3/2019 e Shopping Management

    39/83

    P a g e | 39

    ADMINISTRATOR LOGIN

  • 8/3/2019 e Shopping Management

    40/83

    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();

    }

  • 8/3/2019 e Shopping Management

    41/83

    P a g e | 41

    }

    private void bttnCncl_Click(object sender, EventArgs e){

    Application.Exit();}

    private void txtusername_TextChanged(object sender, EventArgs e){

    }}

    }

  • 8/3/2019 e Shopping Management

    42/83

    P a g e | 42

    MAIN HOME

  • 8/3/2019 e Shopping Management

    43/83

    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();

  • 8/3/2019 e Shopping Management

    44/83

    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();

    }

    }}

  • 8/3/2019 e Shopping Management

    45/83

    P a g e | 45

    CREATE NEW ADMINISTRATOR

  • 8/3/2019 e Shopping Management

    46/83

    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)

  • 8/3/2019 e Shopping Management

    47/83

    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();

    }}

    }

  • 8/3/2019 e Shopping Management

    48/83

    P a g e | 48

    CHANGE PASSWORD

  • 8/3/2019 e Shopping Management

    49/83

    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();

    }

    }}

  • 8/3/2019 e Shopping Management

    50/83

    P a g e | 50

    EMPLOYEER LOGIN

  • 8/3/2019 e Shopping Management

    51/83

    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 fromEmployerregistration", 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();}

    }}

  • 8/3/2019 e Shopping Management

    52/83

    P a g e | 52

    NEW USER REGISTRATION

  • 8/3/2019 e Shopping Management

    53/83

    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();

  • 8/3/2019 e Shopping Management

    54/83

    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 + "' whereEmpId='" + txtEmpID.Text + "'", con);

    con.Open();cmd.ExecuteNonQuery();

    con.Close();

    MessageBox.Show("Record updated successfully");}

    }}

  • 8/3/2019 e Shopping Management

    55/83

    P a g e | 55

    NEW PRODUCT ENTRY

  • 8/3/2019 e Shopping Management

    56/83

    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)

  • 8/3/2019 e Shopping Management

    57/83

    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();

  • 8/3/2019 e Shopping Management

    58/83

    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){

    }

    }}

  • 8/3/2019 e Shopping Management

    59/83

    P a g e | 59

    COMPANY DETAILS

  • 8/3/2019 e Shopping Management

    60/83

    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();

  • 8/3/2019 e Shopping Management

    61/83

    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 + "' whereCompanyID='" + 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){

  • 8/3/2019 e Shopping Management

    62/83

    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();}

    }}

  • 8/3/2019 e Shopping Management

    63/83

    P a g e | 63

    CUSTOMER PAYMENT

  • 8/3/2019 e Shopping Management

    64/83

    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{

    publicpartialclassCustomerPayment : Form{

    public CustomerPayment()

    {InitializeComponent();

    }SqlConnection con = newSqlConnection("Data Source=raj-85072e10e85;Initial

    Catalog=eshopping;Integrated Security=true");

    privatevoid customerpayment_Load(object sender, EventArgs e){

    loadlistProdct();loadlistCustId();

    }privatevoid loadlistProdct(){

    SqlDataAdapterda = newSqlDataAdapter("select ProdId from newproduct", con);DataSet ds = newDataSet();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());}privatevoid loadlistCustId(){

    SqlDataAdapterda = newSqlDataAdapter("select custID from Customerinformation", con);

    DataSet ds = newDataSet();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());}

    privatevoid listCustId_SelectedIndexChanged(object sender, EventArgs e){

    SqlDataAdapterda = newSqlDataAdapter("select * from Customerinformation where custId='" +listCustId.SelectedItem + "'", con);

  • 8/3/2019 e Shopping Management

    65/83

    P a g e | 65

    DataSet ds = newDataSet();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();

    }

    privatevoid bttnclose_Click(object sender, EventArgs e){

    SqlCommand cmd = newSqlCommand("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 = newMainhome();

    cs.Show();this.Close();

    }

    }}

  • 8/3/2019 e Shopping Management

    66/83

    P a g e | 66

    SALES INFORMATION

  • 8/3/2019 e Shopping Management

    67/83

    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();}

  • 8/3/2019 e Shopping Management

    68/83

    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());

    }

    }}

  • 8/3/2019 e Shopping Management

    69/83

    P a g e | 69

    PRODUCT PAYMENT

  • 8/3/2019 e Shopping Management

    70/83

    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();

  • 8/3/2019 e Shopping Management

    71/83

    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();}

    }}

  • 8/3/2019 e Shopping Management

    72/83

    P a g e | 72

    CUSTOMER INFORMATION

  • 8/3/2019 e Shopping Management

    73/83

    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();

  • 8/3/2019 e Shopping Management

    74/83

    P a g e | 74

    txtpermaaddress.Clear();}

    private void bttnClose_Click(object sender, EventArgs e){

    this.Close();

    }}

    }

  • 8/3/2019 e Shopping Management

    75/83

    P a g e | 75

  • 8/3/2019 e Shopping Management

    76/83

    P a g e | 76

  • 8/3/2019 e Shopping Management

    77/83

    P a g e | 77

  • 8/3/2019 e Shopping Management

    78/83

    P a g e | 78

  • 8/3/2019 e Shopping Management

    79/83

    P a g e | 79

  • 8/3/2019 e Shopping Management

    80/83

    P a g e | 80

  • 8/3/2019 e Shopping Management

    81/83

    P a g e | 81

  • 8/3/2019 e Shopping Management

    82/83

    P a g e | 82

  • 8/3/2019 e Shopping Management

    83/83

    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 shorttime, 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 requirementspecification.


Recommended