d10+mati5 gr18 maithanhhung quyenvietsanganh 030510

Upload: thuyhongluu

Post on 30-May-2018

216 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    1/122

    Basic Knowledgement

    HANOI UNIVERSITY OF TECHNOLOGY,VIETNAM

    HUT-GENETIC SINGAPORE JOINT PROGRAM

    ---oOo---

    HIGHER DIPLOMA IN COMPUTER STUDIES

    PROJECT 2010

    (TEAM PROJECT)

    Basic Knowledgement

    ONLINE PC PRODUCT ORDER SYSTEM

    Project supervisor: Prof.Dr. NGUYEN VIET HUONG

    GROUP 18

    Participants:

    MAI THANH HUNG Reg.No: 0701 023 0281

    TRAN VAN MANH Reg.No: 0701 023 0289

    NGUYEN THI THOA Reg.No: 0701 023 0304

    LUU THI HONG THUY Reg.No: 0701 023 0307

    1

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    2/122

    Basic Knowledgement

    TABLE OF CONTENT

    CHAPTER I: INTRODUCTION TO THE SYSTEM ................................................3

    1.2. Project feasibility ...........................................................................................61.3. Project scope ..................................................................................................8

    CHAPTER II: INTRODUCTION TO TECHNOLOGY ..........................................11

    2.1. Database Management System Assessment .................................................11

    2.2. Other technologies assessment ......................................................................12

    CHAPTER III: SYSTEM ANALYSIS ....................................................................15

    3.1. System Requirement Analysis .......................................................................15

    3.2. Processing Requirement Analysis of existing system....................................17

    3.3. Data requirement analysis .............................................................................33

    3.4. Function requirement analysis .......................................................................62

    3.4.1. Function Diagram ................................................................................623.4.2. Data flow diagrams ...................................................................................64

    3.4.2.1. Context Diagram ................................................................................64

    3.4.2.2. Other level data flow diagram ............................................................64

    CHAPTER IV: SYSTEM DESIGN .........................................................................81

    4.1. Database design .............................................................................................81

    4.1.1. Normalization table tblOrder: ............................................................81

    4.1.2. Normalization table tblMenu.............................................................. 98

    4.1.3. Entity Relationship Diagram ................................................................102

    4.2 Interface Design ...........................................................................................103

    4.3. Input design: ...............................................................................................1034.4 Output Design ..............................................................................................105

    4.5. Program design ............................................................................................106

    CONCLUSION ......................................................................................................110

    GLOSSARY ..........................................................................................................111

    2

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    3/122

    Basic Knowledgement

    CHAPTER I: INTRODUCTION TO THE SYSTEM

    1.1. Scenario

    Thien Hoang Limitted Company is a trading company specializing in the field

    of computer and computer components. Every day the company offer many

    products so demand about management and advertising products is really important.

    Because of the above problems, the Genetic group of students has built an online

    website of computer business to meet the demand of the ompany. This website

    includes two main parts: the webmasters and the users.

    - Firstly, webmasters page: This part allows administrator to control and perform

    system. It includes the following main functions:

    1.Login/Logout: only allows the administrator login or logout.

    2. In accounts management: administror can create new, edit, delete, search and

    view accounts.

    3. Product categories management: Administrator can add the new, edit, delete,

    search and view product categories.

    4. Product types management: Administrator can also add the new, edit, delete,

    search and view product types.

    5. Product management: Administrator can view, add the new, edit, delete, show

    and search products.

    6. News categories management: Administrator can view, add the new, edit,

    delete and search news types.

    7. News management: Administrator can view, add the new, edit, delete andsearch news.

    8. Banner management: Administrator can add the new, edit, delete, search and

    view banner.

    9. Order management: Administrator can view, search, show and delete orders.

    10. File download management: Administrator can create, edit, delete, search

    and view file download.

    11. Contact management: Admimistrator can view, search and delete contact.

    3

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    4/122

    Basic Knowledgement

    12. Menu Management: Admimistrator can view,insert and delete menu.

    - Secondly, users page: In this part, customers can interact with website via

    easilly using interface. It includes the following main modules:

    1. Search module: This module enable customers to search products easily by

    product name, product type.

    2. Order module: Customer will register account to website by typing

    customers personal informations as fullname, address, phone number, email

    and ordered products.

    3. Download module: in this module customers can download list file that

    is showned in download module.

    4. Contact module: this module allows customers to contact company

    Organization chart of Thien Hoang company:

    Board of Directors: Executive entire operations of the company.

    - Sales department: To be responsible for implementing marketing activities,

    saling to customers and aiming at profit targets.

    - Technology department: To be responsible for direct administration of the

    website. Collectting news articles, quotes, product for management of website. Also

    being responsible for installation, repair and warranty of products that customers

    demand.

    - Human resources department: Advising the executive board to develop and

    implement a recruitment, training, retraining and manage ment of human resources

    system.

    4

    Board of Directors

    Sales department Human resources department

    Online Sales Website Management System

    Technology department

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    5/122

    Basic Knowledgement

    Performing the administrative management for professional activities of the

    company.

    The reason for chosing of project:

    Today, information technology (IT) is one of the most important driving

    force of social - economic development. Using IT aiming at contribution on

    liberating labor forces and of any intellectual field in general and online sale

    businesses. Recognizing the role of IT, businesses soon reach it in order to meet the

    demands of people.

    Standardization of business management processes, application of

    information technology in business management to standardize the business

    processes, bringing the process into production - business. Increasing the

    competitiveness of enterprises in parallel with the above factors, the supply and use

    of information timely and accurately is one of the most important factors in the

    competitive economy today,creating the ability to integrate into world economy,

    especially during periods of globalization economy today; enhancing business

    image in the eyes of its counterparts and investors. IT application, providing clear

    information on finance will create confidence for partners at home and abroad ,

    facilitate the cooperation business, create the basis and improve the ability to

    provide value-added services. The use of achievements of IT in management helps

    businesses to increase adaptation to the market, to be ready to expand the types of

    services to customers, to increase its access to markets and customers.

    IT is one of the new breakthrough of the world to provide quickly the latest

    information at home and to help man to reach any kind of information. For

    example, online sales have contributed indispensable for Vietnam market todayproviding essential items to consumers and reducing travel costs for customers.

    It has the benefits as follows:

    - Providing quickly full information to customers .

    - Providing services to customers in select, order at anytime and at any place.

    - Easily monitoring and receiving feedback from customers.

    - Online payment to reduce transaction time for customers found.

    - Meetiing any questions and requirements of customers quickly soon and the most

    5

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    6/122

    Basic Knowledgement

    effectively.

    - Accessing to the market in the world.

    Based on the characteristics of each sales online website, encyclopedias

    Genetic group of students has established a website to

    provide online sales of computers that have been being on the market today in order

    to renew the motto shopping customers.

    This site focuses on program management, providing customers with

    information about the products that customers want to choose. Thus website has

    been founded for management and making up new items.

    1.2. Project feasibility

    Feasibility

    Generally, buiding a website system we must have main purpose as follows:

    - Benefits in terms of transaction: Increasing fast, convenient, accurate and

    secure transaction capability.

    - Economic benefits: Reducing the number of employees, reducing cost,

    increasing revenue of company

    - Overcoming many shortcomings of the system being implemented, to

    support long-term development strategies; to support former system.

    Economic Feasibility

    Economic feasibility is a very important element that needs to be considered in

    planning and building an information system. So, this is one of parts we much

    concentrate on when developing the system too.

    Economic feasibility is the cost that you must estimate for hardware,

    software or something relating to software development (for example: software

    copyrights). Sometimes, economic feasibility is the cost that the customers, who use

    the system, must overshadow for short-time/ long-time in operating system until

    that system can be run and applied. This is one of the elements that must be

    pondered carefully and will decide should the program proceed any further?

    Technical Feasibility

    6

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    7/122

    Basic Knowledgement

    A large part of determining resources has to be done with assessing technical

    feasibility. The analysis must find out whether current technical resources can be

    upgraded or added to in a manner that fulfills the request under consideration.

    However, sometimes add on to existing system are costly not worth while, simply

    because they must meet needs inefficiently. If the existing systems can not be added

    onto, then the next question becomes whether there is technology in existence that

    meets the specification.

    Plan work:

    No Task Day Website team

    Online PC Product Order

    System

    180 days Hung,Manh,Thoa,Thuy

    1 Analysis of preliminary

    studies

    10 days Hung,Manh,Thoa,Thuy

    1.1 Interview, document obtail 7 days Hung,Manh,Thoa,Thuy

    1.2 Determine the scope

    of project

    3 days Hung,Manh,Thoa,Thuy

    2 Analysis system 10 days Hung,Manh,Thoa,Thuy

    2.1 Selected programminglanguage

    1 day Hung,Manh,Thoa,Thuy

    2.2 Determine the function of the

    website

    9 days Hung,Manh,Thoa,Thuy

    3 System design 30 days Hung,Manh,Thoa,Thuy

    3.1 Interface design 15 days Hung,Manh,Thoa,Thuy

    3.2 Design database 15 days Hung,Manh,Thoa,Thuy

    4 System devolopment 100 days Hung,Manh,Thoa,Thuy

    4.1 Coding 90 days Hung,Manh,Thoa,Thuy

    4.1.1 Coding the management 50 days Hung,Manh,Thoa,Thuy4.1.1.1 Coding to manage product

    categories

    5 days Hung, Manh

    4.1.1.2 Coding to manage types

    product

    5 days Hung, Manh

    4.1.1.3 Coding to manage products 5 days Hung, Manh

    4.1.1.4 Coding to manage type news 5 days Hung, Manh

    4.1.1.5 Coding to manage news 5 days Thoa,Thuy

    4.1.1.6 Coding to manage banner 5 days Thoa,Thuy

    4.1.1.7 Coding to manage ordering 5 days Hung, Manh4.1.1.8 Coding login/logout 2 days Hung, Manh

    7

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    8/122

    Basic Knowledgement

    4.1.1.9 Coding to manage contact 5 days Thoa,Thuy

    4.1.1.10 Coding to manage download 2 days Hung, Manh

    4.1.1.11 Coding to manage member 3 days Thoa,Thuy

    4.1.1.12 Coding to manage user 3 days Hung, Manh

    4.1.2 Coding the user 40 days Hung, Manh, Thoa, Thuy

    4.1.2.1 Coding search products 5 days Hung, Manh4.1.2.2 Coding order 5 days Hung, Manh

    4.1.2.3 Coding contact 5 days Thoa,Thuy

    4.1.2.4 Coding to show products 20 days Hung, Manh

    4.1.2.5 Coding other part 5 days Hung, Manh, Thoa, Thuy

    4.2 Testing 10 days Hung, Manh, Thoa, Thuy

    5. Implementation and

    evaluation

    30 days Hung, Manh, Thoa, Thuy

    5.1 Trial run website and customer

    opinions

    25 days Hung, Manh, Thoa, Thuy

    5.2 Evaluate 5 days Hung, Manh, Thoa, Thuy

    6 Website maintenance and

    customer support

    Hung, Manh, Thoa, Thuy

    1.3. Project scope

    1.3.1 Project scope and Functional requirements.

    Computer online selling website provides detail informations fully of productsabout computer components for customers. Since, customers can choose and order

    products of company. This website includes two main parts as: Webmaster and

    User.

    - Firstly, webmasters page: This part allows administrator to control and perform

    with system. It includes these following main functions:

    1.Login/Logout: Only allows the administrator login or logout.

    2. In accounts management: administror can create the new, edit, delete, search and

    view accounts.

    3. Product categories management: Administrator can add the new, edit, delete,

    search and view product categories.

    4. Product types management: Administrator can also add the new, edit, delete,

    search and view product types.

    5. Product management: Administrator can view, adds the new, edits, deletes,

    shows, and searches products.

    8

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    9/122

    Basic Knowledgement

    6. News categories management: Administrator can view, add the new, edit,

    delete and search news categories.

    7. News management: Administrator can view, add the new, edit, delete and

    search news.

    8. Banner management: Administrator can add the new, edit, delete, search

    and view banner.

    9. Order management: Administrator can view, search, show and delete orders.

    10. File download management: Administrator can create, edit, delete,

    search and view file download.

    11. Contact management: Admimistrator can view, search and delete contact.

    12. Menu Management: Admimistrator can view,insert and delete menu.

    - Secondly, users page: In this part, customers can interact with website via easily

    used interface. It includes following main modules:

    1. Search module: This module enable customers to search products easily by

    product name, product type.

    2. Order module: Customer will register account to website by typing

    customers personal informations as fullname, address, phone number, email and

    orderedproducts.

    3. Download module: In this module customers can download list file that

    is showed in download module.

    4. Contact module: This module allows customers to contact company.

    1.3.2 Hardware requirements.

    In oder to install and use the system effectively,we offer to some following

    minimum configuration for hardware:

    - Web Hosting server:

    + Chip Intel Pentium IV, processing speed 2.66GHz.

    + RAM 1Gb, hard disk capacity >=40GB.

    - Client computers (update and administrate website):

    + Chip Intel Pentium III, processing speed 1GHz.

    9

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    10/122

    Basic Knowledgement

    + RAM 502Mb, hard drivers minimum size: 20Gb.

    + Peripheral devices: Keyboard, mouse, monitor, CD-ROM.

    1.3.3 Software requirements.

    - Web Hosting server:

    + Window 2000 server SP3 or Window 2003 server operating system.

    + Email service: CDONTS, CDOSYS or PERSIST mail component.

    + Windows Script Engine 5.6.

    + Microsoft SQL 2005 server.

    + Microsoft Active Data Object 2.6 or higher version.

    - Client computer(update and administrate website):

    + Window XP operating system or last version.

    + Microsoft SQL Server 2005.

    + Microsoft Visual Studio 2005.

    + .NET Framework 2.0.

    + Microsoft Internet Explorer 6.0 or higher version.

    1.3.4 Human resources.

    Administrators: They have full permissions to system.

    Users: Users interact with website via user page.

    10

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    11/122

    Basic Knowledgement

    CHAPTER II: INTRODUCTION TO TECHNOLOGY

    2.1. Database Management System Assessment

    The Database Management System (DBMS) is used to organize the data in a

    database, it can store arrange and search information, sometimes it can access

    concurrently into many database through a public field.

    2.1.1. Definition about Database

    Database: A stock about a subject which is organized logically in order

    manage and search easily. Any data stock satisfies

    this requirement can be considered as a database. Normally the information indatabase is divided into the same organized pieces of records.

    Table is a basic component in relational database management system. Table

    is built up when ralative information is arranged in rows and columns.

    Rows are correlative with records and columns are correlative with fields.

    Record: In database management system, record is the most fully unit of

    data,

    which is stored when data is given a name. In a database table, a data record

    means row. Record stored all the information which in is concerned which

    DBMS. Record is displayed in 2 ways: Input data form and data table. Data record

    is available in horizontal and each data is a column.

    Field: In DBMS, this space is for a piece of data of record. Field is

    correlative with column.

    2.1.2. The Database Management System

    The database management system (DBMS) is software that enable

    users to define, create and maintain the database and which provides controlled

    access to this database.

    The DBMS is the software that interacts with the users application programs and

    11

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    12/122

    Basic Knowledgement

    the database Typically, a DBMS provides the following facilities:

    It allows users to define the database, usually though a Data Definition

    Language (DLL). The DLL allows users to specify the data types and

    structures and the constraints on the data to be stored in the database.

    It allows user to insert, update, delete anh retrieve data from the database,

    usually through a Data Manipulation Language (DML). Having a central

    repository for all data and data descriptions allows the DML to provide a general

    enquiry facility to the data, being called a query language.

    It provides controlled access to the database.

    For example, it may provide:

    A security system, which prevent unauthorized user form accessing the database.

    An integrity system, which maintains the consistency of stored data.

    A concurrency control system, which allows shared access of the database.

    A recovery control system, which restores the database to a previous consistent state

    following a hardware or software failure.

    With these functionalities, the DBMS is an extremely useful tool. That is why

    DBMS is widely used in programming.

    2.2. Other technologies assessment

    Today, with the development of information technology, computer plays an

    important role in the technological science revolution. Computer brings to people

    interesting programs, which can apply for education, entertainment and many other

    areas. Moreover, people can ask computer to execute something for then by creating

    programs. Certainly, our ability could not solve billions of comples digits and sort

    them in the particular orders. So to make programs more easily, more efficiently,

    programming language were invented. There are so many programming language

    like.

    C #

    12

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    13/122

    Basic Knowledgement

    C# is a high level language. It is the fastest and easiest way to

    create applications for windows. C# provides you with a complete set of tools to

    simplify rapid application development. It is used to create Graphical User Interface

    (GUI). It contains several hundred statements, functions, and keywords, many of

    which ralate directly to the Windows Graphical User Interface rather than writing

    numerous lines of code to describe the appearance and location of interface

    elements, you simple drag and drop rebuilt objects into place on the screen.

    ASP.net

    Active Server Page is Microsofts server- side technology for dynamically

    generated web pages. Page can be generated by mixing server-side scripting code

    with HTML and client-side code. Programming ASP website is made easier by

    various built-in objects, such as cookie based session object that maintains

    variables from page to page. ASP has some advantages like.

    Script Language-independent: ASP allows using VBScript, Jscript or Perl

    (Perlscript) and have it executed on the server without having to learn another

    scripting language.

    Utilize COM components from your web server-reuse any functionality built using

    COM components for your companys software product can on your website

    though ASP pages. ASP is the connection between the conventional software anh

    the website.

    ODBC links to any data source

    You can use server-side Active component (DLLS)

    ASP also several restrictions such as only run on Windows NT/IIS

    Microsoft SQL Server 2005

    Microsoft Structured Query Language (SQL) 2005 is the latest generation

    of the popular SQL Server product line and the second ralease since core

    reengineering that produced server 7.0, released in 1999. This latest ralease of

    SQL Servers add the native Extensible Markup Language (XML) support,

    enhanced Online Analytical Process (OLAP), data-mining capabilities, platform

    support for Windows XP, integration with Windows XP Active Directory, and

    numerous performance, usability anh programming enhancements, SQL Server are

    13

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    14/122

    Basic Knowledgement

    available on 6 different editions to meet all level of application development and

    delivery.

    SQL Server 2005 Enterprise Edition

    SQL Server 2005 Standard Edition

    SQL Server 2005 personal Edition

    SQL Server 2005 Developer Edition

    SQL Server 2005 for Windows CE Edition

    SQL Server 2005 Destop Engine (MSDE)

    SQL Server is the first release designed and built to take advantage of Windows

    XP with support for up to 32 processors and 64GB of memory running on

    Windows XP Datacenter Server Windows XP Active Directory integration added

    enhanced servers and security management features to SQL Server. SQL Server

    2005 support the latest release of OLAP, now called the analysis services. This

    provides numerous wizards for ease of use anh the setup of OLAP and new data

    mining solutions.

    One of the more publicized additions to SQL Server is its native support for

    XML document an important requirement because XML becomes the language of

    choice for many business systems anh a fundamental architecture component of

    Microsoft.net.

    SQL Server is the first released member of the .NET Enterprise Server

    family and offers numerous advantages to organizations considering migration to

    this new platform. Enhancement in reliability, scalability, performance and

    administration, along with strong compatibility with previous versions, make this

    release a strong candicate for early adoption into SQL Server 7.0 environmentsand an immediate migration from organizations running on SQL Server 6.5 native

    XML support on SQL Server 2005 will help many organization begin

    implementing this technology, which is quickly becoming a standard to both

    external anh internal systems including E-commerce, Web application services

    and line-of-business applications.

    For all these reasons above, we have chosen SQL Server 2005 for our

    projects.

    14

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    15/122

    Basic Knowledgement

    CHAPTER III: SYSTEM ANALYSIS

    3.1. System Requirement Analysis

    Function Diagram

    15

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    16/122

    Basic Knowledgement

    OnlinePCProduct OrderSystem

    1

    SystemAdministration

    2

    Customer Function

    2.1

    Order

    2.2

    Contact

    2.1.1

    Registering

    2.1.2

    Login

    2.1.3

    Ordering

    2.3

    Products

    Searching 2.3.1

    ByProductType

    ID

    2.4

    Download

    1.2.1

    MembersShowing

    1.2.2

    Members Adding

    1.2.3

    MembersEditing

    1.2.4

    Members Searching

    1.2.5

    MembersDeleting

    1.4

    Product

    Categories

    Management1.4.2

    ProductCategories

    Adding

    1.4.4

    ProductCategories

    Searching

    1.4.5

    ProductCategories

    Deleting

    1.5

    ProductTypes

    Management

    1.5.1

    ProductTypes

    Categories

    1.5.2

    ProductTypes

    Adding

    1.5.3

    Product Types

    Editing

    1.5.4

    ProductTypes

    Searching

    1.5.5

    ProductTypes

    Deleting

    1.6

    Products

    Management 1.6.1

    Products Showing

    1.6.2

    Products Adding

    1.6.3

    Products Editing

    1.6.4

    Products

    Searching

    1.6.5

    Products Deleting

    1.8

    NewsCategories

    Management1.8.1

    News Categories

    Showing

    1.8.2

    News Categories

    Adding

    1.8.3

    NewsCategories

    Editing

    1.8.4

    NewsCategories

    Searching

    1.8.5

    News Categories

    Deleting

    1.9

    News

    Management1.9.1

    News Showing

    1.9.2

    News Adding

    1.9.3

    News Editing

    1.9.4

    NewsSearching

    1.9.5

    NewsDeleting

    1.10

    Contacts

    Management 1.10 .1

    ContactsShowing

    1.10.2

    Contacts Searching

    1.10.3

    Contacts Deleting

    1.12

    Banners

    Management 1.12.1

    BannersShowing

    1.12.2

    Banners Adding

    1.12.3

    BannersEditing

    1.12.4

    Banners

    Searching

    1.12.5

    Banners Deleting

    1.2

    Members

    Management

    1.4.1

    ProductCategories

    Showing

    1.4.3

    ProductCategories

    Editing

    1.1

    Login /Logout

    1.7

    Menu

    Management 1.7.1

    MenuShowing

    1.7.2

    MenuAdding

    1.7.3

    MenuEditing

    1.7.4

    MenuDeleting

    1.3

    Orders

    Management 1.3.1

    OrdersShowing

    1.3.2

    Orders Searching

    1.3.3

    OrdersDeleting

    1.11

    Download

    Management1.11.1

    Download

    Showing

    1.11.2

    DownloadAdding1.11.3

    DownloadEditing

    1.11.4

    Download

    Searching

    1.11.5

    Download

    Deleting

    2.3.2

    ByProductID

    16

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    17/122

    Basic Knowledgement

    3.2. Processing Requirement Analysis of existing system.

    General Analysis Homepage

    Figure 3.1. HomePage

    1. Banner: Show Banner logo of company.

    Figure 3.2.Banner

    17

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    18/122

    Basic Knowledgement

    2. Main menu: Include links as: Homepage, Introduce, Computerconstact,Warranty time, Contact, Recruit, Download, News-Event.

    Figure 3.3. Main menu

    3. Menu list of products: Includes:Computer components, Laptop, Computerbrand, Network devices, player, Office device, Device other, Projector, Image

    KTS, Camera, Computer software, Server.

    Figure 3.4 List of products

    4. Online Support: Helps customers to interact with online sales part business,

    Technical department, Part warranty.

    Figure 3.5. Online Support

    18

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    19/122

    Basic Knowledgement

    5. Selling products: Show the products are sold in more recent times.

    Figure 3.6. Selling products6. Visitors: Show the number of visitor to the website as time present.

    Figure 3.7. Visitor

    7. Banner advertise: Show all advertise

    Figure 3.8. Banner advertise

    8. Highlight of products: Show the highlights of products company.

    Figure 3.9. Product highlights

    19

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    20/122

    Basic Knowledgement

    9. Promotion of product: Show the product promotion of company in this time.

    Figure 3.10. Promotion of product

    10. Search of products: Help visitors the search of products by name product andproduct categories.

    Figure 3.11. Search of products

    11. Members: Help visitors register for a member of the website and sign theaccount.

    Figure 3.12. Member

    12. Cart: Provide ordering to customers

    Figure 3.13. Cart

    20

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    21/122

    Basic Knowledgement

    13. New product: Show the new product company.

    Figure 3.14. new of products

    14. Footer: Show information related to the company such as name, Address ,Phone number, Website and Email the company.

    Figure 3.15. Footer

    Analysis of processing forms:

    1. Process main menu- Illustration:

    Figure 3.16

    21

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    22/122

    Basic Knowledgement

    - Process main menu:

    2.Download Process

    - Illustration:

    Figure 3.17

    - Download Process:

    Customers want to access any link on the main menu then click on

    that link (Figure 3.3). For example if customers want to access to

    the new-event, just click the link.

    2

    Content ot the new-event will be show (Fugure 3.16)

    1

    Customers want download resources website, click on the link

    Download on the main menu (Figure 3.3)

    3

    Want download the list, click on the download list that

    2

    Download list will appear (Figure 3.17)

    22

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    23/122

    Basic Knowledgement

    3. process product categories

    - Illustrations:

    Figure 3.18 Figure 3.19

    Figure 3.20

    - Process product categories:

    1

    Customers want to see the list of product to click on the list of the

    product that (Figure 3.18)

    2

    Content product list, and detail, and detail the product will be show

    (Figure 3.19 and 3.20)

    23

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    24/122

    Basic Knowledgement

    4. Process search of products

    - Illustrations:

    Figure 3.21

    - Process search of products:

    1

    Customers want to search the product must enter the product

    information to the search textbox or select to search types product

    (Figure 3.21)

    2

    Click on Search Fi ure 3.21

    3

    Products customers need to be show Fi ure 3.19

    24

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    25/122

    Basic Knowledgement

    5. Process menu members

    5.1 process register- illustrations:

    Figure 3.22 Figure 3.23

    Figure 3.24

    25

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    26/122

    Basic Knowledgement

    - Process of registration:

    Click on link Register on the menu members ( Figure 3.22)

    2

    Form register will be show ( Figure 3.23)

    3

    Enter personal information into the form register ( Figure 3.23)

    4

    Click on Register on the form register ( figure 3.23)

    5

    Website system will check personal information

    6

    Inform successful and return to

    homepage

    7

    Inform error and return registration

    form to enter information ( FIgure 3.24)

    Valid Invalid

    26

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    27/122

    Basic Knowledgement

    5.2 Process register analysis

    - Illustrator

    Figure 3.25 Figure 3.26

    Figure 3.27

    27

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    28/122

    Basic Knowledgement

    - Process members:

    6. Process menu order

    1

    Members enter your account information and two passwords

    into the textbox (Figure 3.25)

    2

    Click on login on the menu members ( Figure 3.25)

    3Website system to check information login of members

    4

    Inform login successful willbe show ( Figure 3.26)

    5

    Inform login failure will beshow ( Figure 3.27)

    6

    Click on OK to return to

    login

    Valid Invalid

    28

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    29/122

    Basic Knowledgement

    - Illustrator:

    Figure 3.28

    Figure 3.29

    Figure 3.30 Figure 3.31

    29

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    30/122

    Basic Knowledgement

    - Process Order

    1

    Customers want to buy products , must execute the process in section

    five

    2

    Click on Order of product that customers want to buy ( Figure 3.28)

    3

    Click on Cart (Figure 3.29) to see information cart (Figure3.30)

    4

    Click on the Payment (Figure 3.30) to order

    5

    Customer confirmation information ( Figure 3.31)

    6

    Order

    30

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    31/122

    Basic Knowledgement

    7. Process contact:

    - Illustration:

    Figure 3.32 Figure 3.33

    - Process contact:

    1

    Click on the contact link on the main menu ( Figure 3.3 )

    3

    After sendding information to the system will give a

    report ( Figure 3.33)

    Customer want to enter all information in the form

    Feedback online and click on Send ( hnh 3.32)

    31

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    32/122

    Basic Knowledgement

    8.Generation process order:

    7

    Click on Order of product

    custormers want to buy

    ( Figure 3.28)

    8

    Click on the Cart

    ( Figure3.29) to see

    information cart( Figure 3.30)

    9

    Click on Payment

    (Figure 3.30) to order

    10

    Customer confirmation

    information ( Figure 3.31)

    11

    Order

    1

    Member enter your account

    information and two passwords

    into the textbox ( Figure 3.25)

    2

    Click on loginon the menu

    member ( Figure 3.25)

    3

    Website system to checkinformation login of members

    Valid

    4

    Inform login failure will be show

    ( Figure 3.27)

    5

    Click on OK to return to login

    Invalid

    6

    Inform login successful will be

    show ( Figure 3.26)

    32

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    33/122

    Basic Knowledgement

    3.3. Data requirement analysis

    1.Collection:

    After go to interview and data collection, there are form and requirements after:

    for m

    Quotation form computer equipment

    Equipment name/ Description note GTQPrice

    /VN

    Warranty

    Time

    CPU INTEL

    We recommend customers use the CPU for CPU type in this box is packed with the standard Intel fan, CPU usage

    will avoid this type of phenomenon hang the CPU cooling bad (bad cases can to fire). More warranty on new Intel

    CPU and fans throughout the 3 years

    CPU SOCKET 775

    1CELERON- 430

    (1.8Ghz)

    1.8GHz/ 512KB/ Bus 800/ 64bit,

    EDB(XD) - BOX 40,0

    724.

    00036 month

    2CELERON E3200

    (2.4Ghz)

    2.4Ghz/ 1Mb/ Bus 800/ 64bit-Dual Core -

    BOXNEW 52,5

    950.

    00036 month

    3PENTIUM

    DUALCORE E5200

    2.5GHz/ 2Mb/ Bus 800/ 64bit-DualCore/

    EDB(XD)+ EIST - BOX

    71,01.285.

    000

    36 month

    4PENTIUM

    DUALCORE E5300

    2.6GHz/ 2Mb/ Bus 800/ 64bit-DualCore/

    EDB(XD)+ EIST - BOX 72,5

    1.312.

    00036 month

    5PENTIUM DUAL

    CORE E6300

    2.8Ghz/ 2Mb/ Bus 1066/ 64bit-DualCore/

    EDB (XT) + EIST+VT-BOX 82,0

    1.484.

    00036 month

    6CORE 2 DUO

    E7400(2.8Ghz)

    2.8GHz/ 3Mb/ Bus 1066/ 64bit-DualCore/

    EDB(XD)+ EIST - BOX 120,0

    2.172.

    00036 month

    7 CORE 2 DUO 2.93GHz/ 3Mb/ Bus 1066/ 64bit- NEW 122,0 2.208. 36 month

    33

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    34/122

    Basic Knowledgement

    E7500(2.93Ghz) DualCore/ EDB(XD)+ EIST - BOX 000

    8CORE 2 DUO

    E7600(3.06Ghz)

    3.06GHz/ 3Mb/ Bus 1066/ 64bit-DualCore/ EDB(XD)+ EIST - BOX

    147,02.661.

    00036 month

    9CORE 2 QUAD

    Q8200 (2.33)

    2.33GHz/ 4Mb/ Bus 1333/ 64bit-QuadCore/ EDB(XD)+ EIST - BOX

    169,03.059.

    00036 month

    1

    0CORE 2 QUAD

    Q8400 (2.66)

    2.66GHz/ 4Mb/ Bus 1333/ 64bit-

    QuadCore/ EDB(XS) + EIST - BOX 183,0

    3.312.

    00036 month

    1

    1

    CORE 2 QUAD

    Q9400 (2.66)

    2.66GHz/ 6Mb/ Bus 1333/ 64bit-

    QuadCore/ EDB(XD)+ EIST+VT-BOX 205,0

    3.711.

    00036 month

    1

    2

    CORE 2 QUAD

    Q9550 (2.83)

    2.83GHz/ 12Mb/Bus 1333/ 64bit-

    QuadCore/ EDB(XD)+EIST+VT-BOX 244,0

    4.416.

    00036 month

    1

    3

    XEON X3060

    (2.4Ghz)

    2.4GHz/ 4Mb/ Bus 1066/

    DualCore/EDB(XD)+ EIST + VT- BOX 149,0

    2.697.

    00036 month

    14

    XEON E3110

    (3.0Ghz)

    3.0GHz/ 6Mb/ Bus 1333/ DualCore/EDB(XD)+ EIST + VT- BOX

    168,03.041.

    00036 month

    15

    XEON X3210

    (2.13Ghz)

    2.13GHz/ 8Mb/ Bus 1066/ QuadCore/EDB(XD)+ EIST + VT- BOX

    178,03.222.

    00036 month

    1

    6

    XEON x3220

    (2.4Ghz)

    2.4GHz/ 8Mb/ Bus

    1066/QuadCore/EDB(XD)+ EIST + VT-

    BOX

    189,03.421.

    00036 month

    17 XEON X3350(2.66Ghz) 2.66GHz/ 12Mb/ Bus 1333/ QuadCore/EDB(XD)+ EIST + VT- BOX 384,0 6.950.000 36 month

    CPU SOCKET 1156

    1CORE i5-750

    (2.66Ghz)

    2.66Ghz/ L3: 8Mb/ EIST/ VT-X (BOX) -

    64bitNEW 225,0

    4.073.

    00036 month

    2CORE i7-860

    (2.8Ghz)

    2.8Ghz/ L3: 8Mb/ VT-d/ EIST/ VT-X

    (BOX) - 64bit 320,0

    5.792.

    00036 month

    3 CORE i7-870 2.93Ghz/L3: 8Mb/ VT-d/ EIST/ VT-X 655,0 11.856. 36 month

    34

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    35/122

    Basic Knowledgement

    (2.93Ghz) (BOX) - 64bit 000

    CPU SOCKET 1366

    1CORE i7-920

    (2.66Ghz)

    2.66GHz/ 8Mb/ 4.8Gt/s/QuadCORE-

    BOX 308,0

    5.575.

    00036 month

    2CORE i7-940

    (2.93Ghz)

    2.93GHz/ 8Mb/ 4.8Gt/s/QuadCORE-

    BOX 655,0

    11.856.

    00036 month

    CPU AMD

    CPU SOCKET AM2/ AM2+/ AM3

    1 SEMPRON LE-1250 2.2Ghz/ 384Kb/ 1600Mhz - BOX, sk AM2 35,0634.

    00036 month

    2 SEMPRON 140 2.7Ghz/ 1Mb/ 3.6GT/s, sk AM3 41,0742.

    00036 month

    3ATHLON 64 X2-

    5200

    2*2.7Ghz/2x512Kb/ 2000Mhz/DualCORE - BOX, sk AM2

    61,51.113.

    00036 month

    4ATHLON 64 X2-

    7750

    2*2.7Ghz/cache L2: 1Mb, L3: 2Mb/

    3600Mhz/ DualCORE-BOX, sk AM2+ 64,0

    1.158.

    00036 month

    5 ATHLON X2-2402*2.8Ghz/ 2Mb/ 4000Mhz/ Dual Core, sk

    AM3 66,0

    1.195.

    00036 month

    6 ATHLON X2-2452*2.9Ghz/ 2Mb/ 4000Mhz/ Dual Core, sk

    AM3 72,5

    1.312.

    00036 month

    7 ATHLON X2-250 2*3.0Ghz/ 2Mb/ 4000Mhz/ Dual Core, skAM3

    83,0 1.502.000

    36 month

    Requirement:

    Banner: Show logo and images related to the products.News: show news of company and news related to the technology.

    Footer: show information of company (include: Name, Phone Numbers, website and email of company)Relation of customer.

    35

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    36/122

    Basic Knowledgement

    2. Analysis:

    From the forms and requirements collected, we analysis the following table:

    Data input

    Banner Input:

    No Field Name Description Type of Data

    element

    Example for

    Data element

    Value

    Range

    for

    validity

    Check function

    1 Banner_ID ID is primarykey to

    determinefor each

    banner

    int 1,2..

    2 Banner_Position Position of

    banner

    int 1,2 (top, center)

    3 Banner_Name Name of

    Banner

    nvarchar(100) Banner_top If( banner == null

    )

    4 Banner_Image Image of

    banner

    nvarchar(200) C:\\Project\Image CheckValidateIm

    age(string

    fileName)

    5 Banner_Type FileType of

    banner(image or

    flash)

    int 1,2 (nh,flash) CheckFileType(st

    ring fileName)

    Banner_Link Nvarchar(200)

    6 Banner_Width Width of

    banner

    Int 300 pixel if(CheckErr.isNu

    mberic(width)==

    false)

    36

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    37/122

    Basic Knowledgement

    7 Banner_Height Height of

    banner

    Int 100 pixel if(CheckErr.isNu

    mberic(height)==

    false)

    8 Banner_Active Active of

    banner (get

    active or

    not?)

    Bit True

    New s Types Input

    No Field Name Description Type of Data

    element

    Example for

    Data element

    Value

    Range for

    Valitidy

    Check

    function

    1 NewsType_ID ID is primary

    key to

    detetmine for

    each type

    news

    int 1,2..

    2 NewsType_Title Title of News

    Types

    nvarchar(50) introduction If( Name ==

    null )

    3 NewsType_Active Active of

    News Types(get active or

    not?)

    Bit True

    News Input:

    No Field Name Description Type of Data

    element

    Example for

    Data element

    Range

    for

    Check function

    37

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    38/122

    Basic Knowledgement

    Value Validity

    1 News_ID ID is primary

    key to

    determine foreach news

    int 1,2..

    2 News_Title Title of News nvarchar(200) New Laptop If( name == null )

    3 News_Image Image

    Introduction

    Nvarchar(200) C:\\Project\Image

    4 News_Intro IntroductionNews

    ntext Apple justreleased a news

    product to meet

    If(introduction == null)

    5 News_Content Content of

    News

    ntext If (ContentNews ==

    null)

    6 News_Date Active Date Datetime 25/10/2009

    8 News_Active Active of News (get

    active or not )

    Bit True

    38

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    39/122

    Basic Knowledgement

    Product Categories Input:

    No Field Name Description

    Type of

    element Data

    Example for

    Data element

    Value

    Range

    for

    Validity

    Check function

    1 ProCate_ID ID is primary

    key to

    determine for

    each ProductCategory

    int 1,2..

    2 ProCate_Name Name of

    Product

    Category

    Nvarchar(200)

    3 ProCate_Descri

    ption

    Decription of

    Product

    Category

    ntext

    3 ProCate_Image UrlImage of

    Product

    Category

    Nvarchar(200) C:\\Project\Image CheckValidateImage

    (string fileName)

    4 ProCate_Active Active of

    Product

    Category (get

    active or not)

    Bit True

    39

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    40/122

    Basic Knowledgement

    Product Type Input:

    No Field Name Description Type of

    element

    Data

    Example for

    Data element

    Value

    Range

    for

    Validity

    Check function

    1 ProType_ID ID is primary

    key to

    determine for

    each type ofproducts

    int 1,2..

    2 ProType_Name Name of

    Product Type

    If( name == null )

    3 ProType_Descrip

    tion

    Description of

    Product Type

    ntext

    4 ProType_Image UrlImage of

    Product Type

    Nvarchar(20

    0)

    C:\\Project\Im

    age

    CheckValidateImage(stri

    ng fileName)

    5 ProType_Active Active type of

    Product Type

    (get active or

    not)

    Bit True

    40

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    41/122

    Basic Knowledgement

    Product Input:

    No Field Name Description Type for

    element

    Data

    Example for

    Data element

    Value

    Range

    for

    Validity

    Check

    function

    1 Product_ID ID is primary

    key to

    determinefor eachproduct

    int 1,2..

    2 Product_Name Name of

    product

    nvarchar(200

    )

    Apple, Vaio,

    If( name ==

    null )

    3 Product_Image UrlImage of

    product

    Nvarchar(20

    0)

    C:\\Project\Im

    age

    CheckValidate

    Image(string

    fileName)

    4 Product_Description Description

    Products

    ntext All type of

    Laptops

    5 Product_Supplier Supplier Nvarchar(20

    0)

    Intel

    6 Product_Price Price product Float 4,000,000 vn

    7 Product_Warranty WarrantyTime

    Nvarchar(50) 12 month

    8 New_Product New product Bit True

    9 Hot_Procduct Product Hot Bit True

    10 HighLight_Product HighLightProduct

    Bit True

    11 Promotion_product Promotion

    Product

    Bit True

    41

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    42/122

    Basic Knowledgement

    12 Product_PromotionContent Promotion

    Content

    ntext When buying

    Laptop will be

    present any

    one optical

    mouse

    13 Active_Product Active of

    product (get

    active or not)

    Bit True

    14 Check_Product Amount of

    product

    Bit

    42

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    43/122

    Basic Knowledgement

    Member Input:

    No Field Name Description Type for

    element Data

    Example for

    Data element

    Value

    Range for

    Validity

    Check function

    1 Member_ID is primary key

    to determine for

    each member

    int 1,2..

    2 Group_Name Level of Members

    Int 1,2

    3 UserName Account of

    member

    Nvarchar(50) If( name == null )

    4 Password Password of

    Member

    nvarchar(50) 123456

    5 Mem_Email Email of

    Member

    nvarchar(50) Lemontree3011

    @yahoo.com

    if

    (CheckErr.IsValiEma

    il(varEmail) == false)

    6 Mem_FullNa

    me

    FullName of

    Member

    Nvarchar(200) Mai Thanh

    Hung

    7 Mem_Address

    Address ofMember

    nvarchar(200) Ha Noi

    8 Mem_Phone PhoneNumber of Member

    nvarchar(50) 0936405895 if(CheckErr.isNumberic(phone) == false)

    9 Mem_Active Active member

    (get active ornot)

    Bit True

    Download Input:

    43

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    44/122

    Basic Knowledgement

    No Field Name Description Type for

    element Data

    Example for

    Data elemen

    Value

    Range for

    Validity

    Check function

    1 Download_ID is primary key

    to determine

    for each

    download

    int 1,2..

    2 Download_Name Name of

    download

    nvarchar(200) Quote If( name == null )

    4 Download_Active Active of

    download (getactive or not)

    Bit True

    44

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    45/122

    Basic Knowledgement

    Order Input:

    No Field Name Description Type for

    element

    Data

    Example for

    Data element

    Value

    Range for

    Validity

    Check function

    1 Order_ID is primary

    key to

    determine for

    each order

    int 1,2..

    2 ID_Member int

    4 Order_Date Data Time

    Order

    DateTime 09/09/09

    Orderred_Number Number of

    products that

    are orderred

    int

    5 Order_Active Active of

    Order (get

    Active or

    not)

    Nchar(10) True

    45

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    46/122

    Basic Knowledgement

    Contact Input:

    No Field Name Description Type for

    element Data

    Example for

    Data

    element

    Value

    Range for

    Validity

    Check function

    1 Contact_ID ID is primary

    key to

    determine foreach contact

    int 1,2..

    2 Cont_Fullna

    me

    Full Name of

    Contact

    Nvarchar(200) Mai Thanh

    Hung

    3 Cont_Phone Phone Number

    of contact

    Nvarchar(50) 098753585 if(CheckErr.isNu

    mberic(phone) ==

    false

    4 Cont_Email Email of

    Contact

    nvarchar(200) Lemontree30

    [email protected]

    om

    if

    (CheckErr.IsVali

    Email(varEmail)

    == false)

    5 Send To Sent to the

    addmintrator

    int

    6 Cont_Title Title contact Nvarchar(200) Introduction If( title == null )

    7 Cont_Conte

    nt

    Content ntext If (Content ==

    null)

    46

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    47/122

    Basic Knowledgement

    Menu Input:

    No Field Name Description Type for

    element

    Data

    Example

    for Data

    element

    Value

    Range for

    Validity

    Check

    function

    1 Menu_ID ID is primary

    key to determine

    for each menu

    int

    2 Menu_Name Name of menu Nvarchar(200)

    3 Menu_Parent int

    Menu Type Input:

    No Field Name Descripti

    on

    Type for

    element

    Data

    Example for

    Data element

    Value

    Range for

    Validity

    Check

    function

    1 MenuType_ID int

    2 MenuType_Name Nvarchar(5

    0)

    47

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    48/122

    Basic Knowledgement

    Data Output

    Banner Output :

    No Field Name Description Type of Data

    element

    Example for

    Data element

    Value

    Range

    for

    validity

    Check function

    1 Banner_ID ID is primary

    key to

    determinefor eachbanner

    int 1,2..

    2 Banner_Position Position of

    banner

    int 1,2 (top, center)

    3 Banner_Name Name of

    Banner

    nvarchar(100) Banner_top If( banner == null

    )

    4 Banner_Image Image of

    banner

    nvarchar(200) C:\\Project\Image CheckValidateIm

    age(string

    fileName)

    5 Banner_Type FileType of

    banner

    (image or

    flash)

    int 1,2 (nh,flash) CheckFileType(st

    ring fileName)

    Banner_Link Nvarchar(200)

    6 Banner_Width Width of

    banner

    Int 300 pixel if(CheckErr.isNu

    mberic(width)==

    false)

    7 Banner_Height Height of

    banner

    Int 100 pixel if(CheckErr.isNu

    mberic(height)==

    false)

    48

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    49/122

    Basic Knowledgement

    8 Banner_Active Active of

    banner (get

    active or

    not?)

    Bit True

    49

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    50/122

    Basic Knowledgement

    News Types Output:

    No Field Name Description Type of Data

    element

    Example for

    Data element

    Value

    Range for

    Valitidy

    Check

    function

    1 NewsType_ID ID is primary

    key to

    detetmine for

    each typenews

    int 1,2..

    2 NewsType_Title Title of News

    Types

    nvarchar(50) introduction If( Name ==

    null )

    3 NewsType_Active Active of

    News Types

    (get active or

    not?)

    Bit True

    50

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    51/122

    Basic Knowledgement

    News Output:

    No Field Name Description Type of Data

    element

    Example for

    Data element

    Value

    Range

    for

    Validity

    Check function

    1 News_ID ID is primary

    key to

    determine for

    each news

    int 1,2..

    2 News_Title Title of News nvarchar(200) New Laptop If( name == null )

    3 News_Image ImageIntroduction

    Nvarchar(200) C:\\Project\Image

    4 News_Intro Introduction

    News

    ntext Apple just

    released a news

    product to meet

    If(introduction == null)

    5 News_Content Content of

    News

    ntext If (ContentNews ==

    null)

    6 News_Date Active Date Datetime 25/10/2009

    8 News_Active Active of

    News (get

    active or not )

    Bit True

    51

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    52/122

    Basic Knowledgement

    Product Categories Output:

    No Field Name Description

    Type of

    element Data

    Example for

    Data element

    Value

    Range

    for

    Validity

    Check function

    1 ProCate_ID ID is primary

    key to

    determine for

    each Product

    Category

    int 1,2..

    2 ProCate_Name Name of

    Product

    Category

    Nvarchar(200)

    3 ProCate_Descri

    ption

    Decription of

    Product

    Category

    ntext

    3 ProCate_Image UrlImage of

    Product

    Category

    Nvarchar(200) C:\\Project\Image CheckValidateImage

    (string fileName)

    4 ProCate_Active Active of

    Product

    Category (get

    active or not)

    Bit True

    52

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    53/122

    Basic Knowledgement

    Product Type Outp ut:

    No Field Name Description Type of

    element

    Data

    Example for

    Data element

    Value

    Range

    for

    Validity

    Check function

    1 ProType_ID ID is primary

    key to

    determine for

    each type of

    products

    int 1,2..

    2 ProType_Name Name of

    Product Type

    If( name == null )

    3 ProType_Descrip

    tion

    Description of

    Product Type

    ntext

    4 ProType_Image UrlImage of Product Type

    Nvarchar(200)

    C:\\Project\Image

    CheckValidateImage(string fileName)

    5 ProType_Active Active type of

    Product Type

    (get active or

    not)

    Bit True

    53

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    54/122

    Basic Knowledgement

    Product Output:

    No Field Name Description Type for

    element

    Data

    Example for

    Data element

    Value

    Range

    for

    Validity

    Check

    function

    1 Product_ID ID is primary

    key to

    determine

    for each

    product

    int 1,2..

    2 Product_Name Name of

    product

    nvarchar(200

    )

    Apple, Vaio,

    If( name ==

    null )

    3 Product_Image UrlImage of

    product

    Nvarchar(20

    0)

    C:\\Project\Im

    age

    CheckValidate

    Image(string

    fileName)

    4 Product_Description Description

    Products

    ntext All type of

    Laptops

    5 Product_Supplier Supplier Nvarchar(20

    0)

    Intel

    6 Product_Price Price product Float 4,000,000 vn

    7 Product_Warranty Warranty

    Time

    Nvarchar(50) 12 month

    8 New_Product New product Bit True9 Hot_Procduct Product Hot Bit True

    10 HighLight_Product HighLight

    Product

    Bit True

    11 Promotion_product Promotion

    Product

    Bit True

    12 Product_PromotionContent Promotion

    Content

    ntext When buying

    Laptop will be

    54

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    55/122

    Basic Knowledgement

    present any

    one optical

    mouse

    13 Active_Product Active of

    product (get

    active or not)

    Bit True

    14 Check_Product Amount of

    product

    Bit

    55

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    56/122

    Basic Knowledgement

    Member Output:

    No Field Name Description Type for

    element Data

    Example for

    Data element

    Value

    Range

    for

    Validity

    Check

    function

    Informatio

    n the

    source

    Data Items

    1 Member_ID User ID is

    primary key to

    determine for

    each member

    int 1,2.. Member

    input

    ID_Member

    2 Group_Name Decentralization

    Members

    Int 1,2 Member

    Input

    Name_Grou

    p

    3 UserName Nvarchar(50) If( name

    == null )

    Member

    Input

    Acount

    4 Password Password of

    Member

    nvarchar(50) 123456 Password

    5 Mem_Email Email of

    Member

    nvarchar(50) Lemontree301

    [email protected]

    if

    (CheckErr.IsValiEm

    ail(varEm

    ail) ==

    false)

    Member

    Input

    Email

    6 Mem_FullName

    FullName ofMember

    Nvarchar(200) Mai ThanhHung

    MemberInput

    FullName

    7 Mem_Addres

    s

    Address of

    Member

    nvarchar(200) Ha Noi Member

    Input

    Address

    8 Mem_Phone PhoneNumber of

    Member

    nvarchar(50) 0936405895 if(CheckE

    rr.isNumb

    eric(phon

    e) ==

    Member

    Input

    Phone

    56

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    57/122

    Basic Knowledgement

    false)

    9 Mem_Active Active User (get

    active or not)

    Bit True Member

    Input

    Active

    Download Output:

    No Field Name Description Type for

    element Data

    Example

    for Data

    elemen

    Value

    Range

    for

    Validit

    y

    Check

    function

    Information

    the source

    Data Items

    1 Download_ID ID is primary

    key to

    determine

    for each

    download

    int 1,2.. Download

    Input

    ID_Download

    2 Download_Name Name of

    download

    nvarchar(200) Quote If( name

    == null )

    Download

    Input

    Name_Downloa

    d

    4 Download_Active Active of

    download

    (get active ornot)

    Bit True Download

    Input

    Active_Downlo

    ad

    Order Output:

    57

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    58/122

    Basic Knowledgement

    No Field Name Description Type for

    element

    Data

    Example for

    Data element

    Value

    Range

    for

    Validity

    Check

    function

    Informatio

    n the

    source

    Data Items

    1 Order_ID ID is primary

    key to

    determine for

    each order

    int 1,2.. Order Input ID_Order

    2 Member_ID int Order Input ID_Member

    4 Order_Date Data Time

    Order

    DateTime 09/09/09 Order Input DataTime_Order

    Orderred_Number int Order Input Amount_Product

    5 Order_Active Active of

    Order (get

    Active or

    not)

    Nchar(10) True Order Input Active_Product

    58

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    59/122

    Basic Knowledgement

    Contact Output:

    No Field Name Description Type for

    element

    Data

    Example for

    Data element

    Value

    Range

    for

    Validit

    y

    Check

    function

    Informatio

    n the

    source

    Data Items

    1 Contact_ID ID is primary

    key to

    determine

    for eachcontact

    int 1,2.. Contact

    Input

    ID_Contact

    2 Cont_FullNa

    me

    Full Name of

    Contact

    Nvarchar

    (200)

    Mai Thanh

    Hung

    Contact

    Input

    FullName

    3 Cont_Phone Phone

    Number of

    contact

    Nvarchar

    (50)

    098753585 if(Check

    Err.isNu

    mberic(p

    hone) ==

    false

    Contact

    Input

    Phone

    4 Send To Sent to the

    addmintrator

    int Contact

    Input

    Send To

    5

    Cont_Email Email of

    Contact

    nvarchar

    (200)

    Lemontree30

    [email protected]

    m

    if

    (CheckE

    rr.IsValiEmail(va

    rEmail)

    == false)

    Contact

    Input

    Email

    6 Cont_Title Title contact Nvarchar

    (200)

    Introduction If( title

    == null )

    Contact

    Input

    Title

    7 Cont_Conten

    t

    Content ntext If

    (Content

    Contact

    Input

    Content

    59

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    60/122

    Basic Knowledgement

    == null)

    Menu Outpput:

    No Field Name Descript

    ion

    Type for

    element Data

    Example

    for Data

    element

    Value

    Range

    for

    Validity

    Check

    function

    Informa

    tion the

    source

    Data

    Items

    1 Menu_ID int

    2 Menu_Nam

    e

    Nvarchar(200)

    3 Menu_Pare

    nt

    int

    60

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    61/122

    Basic Knowledgement

    MenuType output

    No Field Name Descrip

    tion

    Type for

    element

    Data

    Example

    for Data

    element

    Value

    Range

    for

    Validity

    Check

    function

    Informatio

    n the

    source

    Data

    Items

    1 MenuType_ID int

    2 MenuType_Name Nvarchar

    (50)

    61

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    62/122

    Basic Knowledgement

    3.4. Function requirement analysis

    3.4.1. Function Diagram

    62

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    63/122

    Basic Knowledgement

    OnlinePCProduct OrderSystem

    1

    SystemAdministration

    2

    Customer Function

    2.1

    Order

    2.2

    Contact

    2.1.1

    Registering

    2.1.2

    Login

    2.1.3

    Ordering

    2.3

    Products

    Searching 2.3.1

    ByProductType

    ID

    2.4

    Download

    1.2.1

    MembersShowing

    1.2.2

    Members Adding

    1.2.3

    MembersEditing

    1.2.4

    Members Searching

    1.2.5

    MembersDeleting

    1.4

    Product

    Categories

    Management1.4.2

    ProductCategories

    Adding

    1.4.4

    ProductCategories

    Searching

    1.4.5

    ProductCategories

    Deleting

    1.5ProductTypes

    Management1.5.1

    ProductTypes

    Categories

    1.5.2

    ProductTypes

    Adding

    1.5.3

    Product Types

    Editing

    1.5.4

    ProductTypes

    Searching

    1.5.5

    ProductTypes

    Deleting

    1.6

    Products

    Management 1.6.1

    Products Showing

    1.6.2

    Products Adding

    1.6.3

    Products Editing

    1.6.4

    Products

    Searching

    1.6.5

    Products Deleting

    1.8

    NewsCategories

    Management1.8.1

    News Categories

    Showing

    1.8.2

    News Categories

    Adding

    1.8.3

    NewsCategories

    Editing

    1.8.4

    NewsCategories

    Searching

    1.8.5

    News Categories

    Deleting

    1.9

    News

    Management1.9.1

    News Showing

    1.9.2

    News Adding

    1.9.3

    News Editing

    1.9.4

    NewsSearching

    1.9.5

    NewsDeleting

    1.10

    Contacts

    Management 1.10 .1

    ContactsShowing

    1.10.2

    Contacts Searching

    1.10.3

    Contacts Deleting

    1.12

    Banners

    Management 1.12.1

    BannersShowing

    1.12.2

    Banners Adding

    1.12.3

    BannersEditing

    1.12.4

    Banners

    Searching

    1.12.5

    Banners Deleting

    1.2

    Members

    Management

    1.4.1

    ProductCategories

    Showing

    1.4.3

    ProductCategories

    Editing

    1.1

    Login /Logout

    1.7

    Menu

    Management 1.7.1

    MenuShowing

    1.7.2

    MenuAdding

    1.7.3

    MenuEditing

    1.7.4

    MenuDeleting

    1.3

    Orders

    Management 1.3.1

    OrdersShowing

    1.3.2

    Orders Searching

    1.3.3

    OrdersDeleting

    1.11

    Download

    Management1.11.1

    Download

    Showing

    1.11.2

    DownloadAdding1.11.3

    DownloadEditing

    1.11.4

    Download

    Searching

    1.11.5

    Download

    Deleting

    2.3.2

    ByProductID

    63

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    64/122

    Basic Knowledgement

    3.4.2. Data flow diagrams

    3.4.2.1. Context Diagram

    Online PC Product

    Order System

    Administrator

    Customer

    Information requirement

    Information feedback

    Information requirement

    Information feedback

    0

    3.4.2.2. Other level data flow diagram

    64

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    65/122

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    66/122

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    67/122

    Basic Knowledgement

    2.1

    Order

    Customer

    2.2

    Contact

    2.3

    Search

    2.4

    Download

    Requirement

    Checking R

    eplying

    RequirementFeedback

    Requirement

    Checking

    Replying

    RequirementFeedback

    Requirement

    Checking

    Replying

    Requirement

    FeedbackRequirement

    Feedback

    Requirement

    Checking

    Replying

    D1 tblMemberD2 tblOrder

    D7 tblProducts

    D16 tblContact

    D3 tblProductCategoriesD5 tblProductTypes

    D7 tblProductsD18 tblDownload

    DFD level 1 for Customer Function

    67

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    68/122

    Basic Knowledgement

    1.2.1

    Show Members

    Administrator

    1.2.4

    Search

    Members

    1.2.5

    Delete

    Members

    1.2.3

    Edit Members

    1.2.2

    Add New

    Members

    Requirement

    Checking

    Replying

    RequirementFeedback

    Requirement

    Checking

    Replying

    RequirementFeedback

    Requirement

    Checking

    Replying

    Requirement

    Feedback

    Requirement

    Checking

    Replying

    Requirement

    Requirement

    Feedback

    Checking

    Replying

    Re

    quirementFeedback

    D1 tblMember D1 tblMember

    D1 tblMember

    D1 tblMember

    D1 tblMember

    DFD level 2 for Managing Members

    68

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    69/122

    Basic Knowledgement

    1.3.1Show Orders

    1.3.3

    Delete Orders

    1.3.2Search Orders

    Administrator

    Requirement

    Checking

    Replying

    RequirementFeedback

    Requirement

    Checking

    Replying

    RequirementFeedback

    Requirement

    Checking

    Replying

    R

    equirement

    Feedback

    D1 tblMemer

    D2 tblOrderD7 tblProducts

    D1 tblMemerD2 tblOrderD7 tblProducts

    D1 tblMemerD2 tblOrderD7 tblProducts

    DFD level 2 for Managing Order

    69

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    70/122

    Basic Knowledgement

    1.4.1

    Show Product

    Categories

    Administrator

    1.4.4

    Search Product

    Categories

    1.4.5

    Delete Product

    Categories

    1.4.3

    Edit Product

    Categories

    1.4.2

    Add New

    Product

    Categories

    Requirement

    Checking

    Replying

    RequirementFeedback

    Requirement

    Checking

    Replying

    RequirementFeedback

    Requirement

    Checking

    Replying

    Requirement

    Feedback

    Requirement

    Checking

    Replying

    Requirement

    Requirement

    Feedback

    Checking

    Replying

    R

    equirementFeedback

    D3 tblProductCategories D3 tblProductCategories

    D3 tblProductCategories

    D3 tblProductCategories

    DFD level 2 for Managing Product Category

    70

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    71/122

    Basic Knowledgement

    1.5.1

    Show Product

    Types

    Administrator

    1.5.4

    Search Product

    Types

    1.5.5

    Delete Product

    Types

    1.5.3

    Edit Product

    Types

    1.5.2

    Add New

    Product Types

    Requirement

    Checking

    Replying

    Req

    uirementFeedback

    Requirement

    Checking

    Replying

    RequirementFeedback

    Requirement

    Checking

    Replying

    Requirement

    Feedback

    Requirement

    Checking

    Replying

    Requirement

    RequirementFeedback

    Checking

    Replying

    Re

    quirementFeedback

    D3 tblProductCategoriesD5 tblProductTypes

    D3 tblProductCategoriesD5 tblProductTypes

    D3 tblProductCategories

    D5 tblProductTypes

    D3 tblProductCategories

    D5 tblProductTypes

    D3 tblProductCategories

    D5 tblProductTypes

    DFD level 2 for Managing Product Type

    71

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    72/122

    Basic Knowledgement

    1.6.1

    Show Products

    Administrator

    1.6.4

    Search

    Products

    1.6.5

    Delete Products

    1.6.3

    Edit Products

    1.6.2

    Add New

    Products

    Requirement

    Checking

    Replying

    Require

    mentFeedback

    Requirement

    Checking

    Replying

    Require

    mentFeedback

    Requirement

    Checking

    Replying

    Requirement

    Feedback

    Requirement

    Checking

    Replying

    Requirement

    Requirement

    Feedback

    Checking

    Replying

    RequirementFeedback

    D3 tblProductCategories

    D5 tblProducttypesD7 tblProducts

    D3 tblProductCategories

    D5 tblProducttypesD7 tblProducts

    D3 tblProductCategories

    D5 tblProducttypesD7 tblProducts

    D3 tblProductCategoriesD5 tblProducttypes

    D7 tblProducts

    D3 tblProductCategories

    D5 tblProducttypesD7 tblProducts

    D3 tblProductCategories

    D5 tblProducttypesD7 tblProducts

    DFD level 2 for Managing Product

    72

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    73/122

    Basic Knowledgement

    1.7.1

    Show Menu

    Administrator

    1.7.4

    Delete Menu

    1.7.3

    Edit Menu

    1.7.2

    Add New Menu

    Requirement

    Checking

    Replying

    RequirementFeedback

    Requirement

    Checking

    Replying

    Req

    uirementFeedback

    Checking

    Replying

    Requirement

    Feedback

    Requirement

    Checking

    Replying

    Requirement

    Requirement

    Feedback

    D9 tblMenu

    D11 tblMenuType

    D9 tblMenu

    D11 tblMenuType

    D9 tblMenu

    D11 tblMenuType

    D9 tblMenuD11 tblMenuType

    DFD level 2 for Managing Menu

    73

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    74/122

    Basic Knowledgement

    1.8.1

    Show News

    Categories

    Administrator

    1.8.4

    Search News

    Categories

    1.8.5

    Delete News

    Categories

    1.8.3

    Edit News

    Categories

    1.8.2

    Add New News

    Categories

    Requirement

    Checking

    Replying

    RequirementFeedback

    Requirement

    Checking

    Replying

    RequirementFeedback

    Requirement

    Checking

    Replying

    Requirement

    Feedback

    Requirement

    Checking

    Replying

    Requirement

    Requirement

    Feedback

    Checking

    Replying

    Re

    quirementFeedback

    D12 tbl NewCategories D12 tbl NewCategories

    D12 tbl NewCategoriesD12 tbl NewCategories

    D12 tbl NewCategories

    DFD level 2 for Managing News Category

    74

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    75/122

    Basic Knowledgement

    1.9.1

    Show News

    Administrator

    1.9.4

    Search News

    1.9.5

    Delete News

    1.9.3

    Edit News

    1.9.2

    Add New News

    Requirement

    Checking

    Replying

    RequirementFeedback

    Requirement

    Checking

    Replying

    RequirementFeedback

    Requirement

    Checking

    Replying

    Requirement

    Feedback

    Requirement

    Checking

    Replying

    Requirement

    Requirement

    Feedback

    Checking

    Replying

    RequirementFeedback

    D12 tblNewCategoriesD15 tblNews

    D12 t blNewCategories

    D15 tblNews

    D12 t blNewCategories

    D15 tblNews

    D12 tblNewCategoriesD15 tblNews

    D12 tblNewCategories

    D15 tblNews

    DFD level 2 for Managing News

    75

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    76/122

    Basic Knowledgement

    1.10.1

    Show Contacts

    1.10.3

    Delete C ontacts

    1.10.2

    Search

    Contacts

    Administrator

    1.10.1

    Show Contacts

    1.10.3

    Delete C ontacts

    1.10.2

    Search

    Contacts

    Administrator

    Requirement

    Checkin

    g

    Replying

    RequirementFeedback

    Requirement

    Checking

    Replying

    RequirementFeedback

    Requirement

    Checking

    Replying

    Requirement

    Feedback

    D16 tblContacts D16 tblContacts

    D16 tblContacts

    DFD level 2 for Managing Contacts

    76

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    77/122

    Basic Knowledgement

    1.11.1

    Show

    Download

    Administrator

    1.11.4

    Search

    Download

    1.11.5

    Delete

    Download

    1.11.3

    Edit Download

    1.11.2

    Add New

    Download

    Requirement

    Checking

    Replying

    RequirementFeedback

    Requirement

    Checking

    Replying

    RequirementFeedback

    Requirement

    Checking

    Replying

    Requirement

    Feedback

    Requirement

    Checking

    Replying

    Requirement

    Requirement

    Feedback

    Checking

    Replying

    RequirementFe

    edback

    D18 tblDownload D18 tblDownload

    D18 tblDownloadD18 tblDownload

    D18 tblDownload

    DFD level 2 for Managing Download

    77

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    78/122

    Basic Knowledgement

    1.12.1

    Show Banner

    Administrator

    1.12.4

    Search Banner

    1.12.5

    Delete Banner

    1.12.3

    Edit Banner

    1.12.2

    Add New

    Banner

    Requirement

    Checking

    Replying

    RequirementFeedback

    Requirement

    Checking

    Replying

    RequirementFeedback

    R

    equirement

    Checking

    Replying

    Requirement

    Feedback

    Requirement

    Checking

    Replying

    Requirement

    Requirement

    Feedback

    Checking

    Replying

    Requirem

    entFeedback

    D21 tblBanners D21 tblBanners

    D21 tblBannersD21 tblBanners

    D21 tblBanners

    DFD level 2 for Managing Banner

    78

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    79/122

    Basic Knowledgement

    2.1.1

    Register

    Member

    2.1.3

    Order

    2.1.2

    Login

    Customer

    Requirement

    Checking

    Replying

    RequirementFeedback

    Requirement

    Checking

    Replying

    RequirementFeedback

    Requirement

    Checking

    Replying

    Requirement

    Feedback

    D1 tblMemberD1 tblMember

    D1 tblMemberD2 tblOrder

    D7 tblProducts

    DFD level 2 for Ordering

    79

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    80/122

    Basic Knowledgement

    2.3.1Search By

    Product Type

    ID

    2.3.2

    Search By

    Product ID

    Customer

    Requirement

    Checking

    Replying

    RequirementFeedback

    Requirement

    Checking

    Replying

    RequirementFeedback

    D3 tblProductCategories

    D5 tblProductTypes

    D7 tblProducts

    D3 tblProductCategories

    D5 tblProductTypes

    D7 tblProducts

    DFD level 2 for Searching

    80

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    81/122

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    82/122

    Basic Knowledgement

    Figure 4.1:Table tblOrder (UNF)

    Table tblOrder

    1. Order_ID PK

    2. Order_Code

    3. Order_Date

    4. Order_Active

    5. ProCate_ID PK of RG1

    6. ProCate_Name

    7. ProCate_Image

    8. ProCate_Active

    9. ProCate_Description

    10.

    ProType_ID PK ofRG 1-1

    1

    1.

    ProType_Name

    1

    2.

    ProType_Image

    1

    3.

    ProType_Active

    1

    4.

    ProType_Description

    1

    5.

    Product_ID PK of RG

    1-1-1

    1

    6.

    Product_Code

    17.

    Product_Name

    1

    8.

    Product_Image

    1

    9.

    Product_Description

    2

    0.

    Product_Supplier

    2

    1.

    Product_Price

    RG 1

    RG 1-1

    RG 1-1-1

    82

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    83/122

    Basic Knowledgement

    Remark:

    Table tblOrder (Figure 4.1) is not in 1NF, because it still contains repeating

    group. Normalizing the table tblOrder ,we have two tables: tblOrder (Figure

    4.2) and tblOrder_ProCate (Figure 4.3).

    Figure 4.2: Table tblOrder (2NF)

    Table tblOrder

    1. Order_ID PK

    2. Order_Code

    3. Order_Date

    4. Order_Active

    5. Member_ID

    6. Group_Name

    7. UserName

    8. Password

    9. Mem_Email

    1

    0.

    Mem_FullName

    1

    1.

    Mem_Address

    1

    2.

    Mem_Phone

    13. Mem_Active

    83

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    84/122

    Basic Knowledgement

    84

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    85/122

    Basic Knowledgement

    Table tblOrder_ProCate

    1

    .

    Order_ID

    PK

    FK connects with table

    tblOrder (Figure 4.2)

    2

    .

    ProCate_ID

    3

    .

    ProCate_Name

    4

    .

    ProCate_Image

    5

    .

    ProCate-Active

    6

    .

    ProCate_Description

    7.

    ProType_ID PK of RG1-1

    8

    .

    ProType_Name

    9

    .

    ProType_Image

    1

    0.

    ProType_Active

    1

    1

    .

    ProType-Description

    1

    2

    .

    ID_Product PK of RG

    1-1-1

    1

    3

    .

    Product-Code

    1

    4

    .

    Product_Name

    1

    5

    .

    Product_Image

    16

    .

    Product_Description

    RG 1-1

    RG

    1-1-1

    85

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    86/122

    Basic Knowledgement

    Figure 4.3: Table tblOrder_ProCate (UNF)

    Remark:

    Table tblOrder (Figure 4.2) is not in 3NF, because its non-key attributes are

    functionally denpendent on its another non-key attribute. Normalizing this table,

    we have two tables: tblOrder (figure 4.4) and tblMember (Figure 4.5).

    86

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    87/122

    Basic Knowledgement

    Figure 4.4: Table tblOrder (3NF)

    Figure 4.5: Table tblMember (3NF)

    Table tblOrder

    1

    .

    Order_ID PK

    2

    .

    Order_Code

    3

    .

    Order_Date

    4

    .

    Order_Active

    5

    .

    Member_ID FK connects with table

    tblMember (Figure 4.5)

    Table tblMember

    1

    .

    Member_ID PK

    2

    .

    Group_Name

    3

    .

    UserName

    4

    .

    Password

    5

    .

    Mem_Email

    6.

    Mem_FullName

    7

    .

    Mem_Address

    8

    .

    Mem_Phone

    9

    .

    Mem_Active

    87

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    88/122

    Basic Knowledgement

    Remark:

    Both table tblOrder (figure 4.4 ) and table tblMember (figure 4.5 ) are in 3NF. So

    we have following component ERD:

    Figure 4.6

    Remark:

    Table tblOrder _ProCate (Figure 4.3) is not in 1NF because it still contains

    repeating group. Normalizing this table, we have two tables:tblOrder_ProCate

    (Figure 4.7) and tblOrder_ProCate_ProType (figure 4.8).

    88

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    89/122

    Basic Knowledgement

    Figure 4.7: Table tblOrder_ProCate (1NF)

    Table tblOrder_ProCate

    1 Order_ID FK connects with table

    tblOrder (Figure 4.4) PK

    2 ProCate_ID

    3 ProCate_Name

    4 ProCate_Image

    5 ProCate_Active

    6 ProCate_Description

    89

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    90/122

    Basic Knowledgement

    Table tblOrder_ProCate_ProType

    1 Order_ID FK connects with

    tblOrder_ProCate(Figure 4.7)PK2 ProCate_ID

    3 ProType_ID

    4 ProType_Name

    5 ProType_Image

    6 ProType_Active

    7 ProType-Description

    8 Product_ID PK of RG 1-1-1

    9 Product_Code

    10

    Product_Name

    1

    1

    Product_Image

    1

    2

    Product_Description

    1

    3

    Product_Supplier

    1

    4

    Product_Price

    1

    5

    Product_WarrantyTime

    1

    6

    New_Product

    17

    Hot_product

    1

    8

    HighLight_Product

    1

    9

    Promotion_Product

    2

    0

    Product_PromotionContent

    2

    1

    Product_Active

    RG1-1-1

    90

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    91/122

    Basic Knowledgement

    Figure 4.8: Table tblOrder_ProCate_ProType (UNF)

    Remark:

    Table tblOrder_ProCate (Figure 4.7) is not in 2NF because its non-key

    attributes are functionally dependent on subset of the primary key combination.

    Normalizing table tblOrder_ProCate, we have two tables: Table

    tblOrder_ProCate (Figure 4.9) and table tblProCate (Figure 4.10):

    Figure 4.9: Table tblOrder_ProCate (3NF)

    Table tblOrder_ProCate

    1 Order_ID FK connects with tabletblOrder(Figure 4.4) PK

    2 ProCate_ID FK connects with table

    tblProCate (Figure 4.10)

    91

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    92/122

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    93/122

    Basic Knowledgement

    Table tblOrder_ProCate_ProType_Product

    1 Order_ID FK connects to table

    tblOrder_ProCate_ProType

    (Figure 4.12) PK2 ProCate_ID

    3 ProType_ID

    4 Product_ID

    5 Product_Code

    6 Product_Name

    7 Product_Image

    8 Product_Description

    9 Product_Supplier

    1

    0

    Product_Price

    1

    1

    Product_WarrantyTime

    1

    2

    New_Product

    1

    3

    Hot_Product

    1

    4

    HighLight_Product

    15

    Promotion_Product

    1

    6

    Product_PromotionContent

    1

    7

    Product_Active

    1

    8

    Orderred_Number

    93

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    94/122

    Basic Knowledgement

    Figure 4.13: Table tblOrder_ProCate_ProType_Product (1NF)

    Remark:

    Table tblOrder_ProCate_ProType (Figure 4.12) is not in 2NF because its

    non- key attributes are functionlly dependent on the subset of primary key

    combinaton. Normalizing this table, we have two tables:

    tblOrder_ProCate_ProType (figure 4.14 ) and table tblProType (Figure4.15).

    Figure 4.14: Table tblOrder_ProCate_ProType (3NF)

    Table tblOrder_ProCate_ProType

    1

    .

    Order_ID FK connects with table

    tblOrder_ProCate(Figure 4.9)

    PK

    2

    .

    ProCate_ID

    3

    .

    ProType_ID FK connects with table

    tblProType (Figure 4.15)

    94

  • 8/9/2019 D10+MATI5 Gr18 MaiThanhHung QuyenVietSangAnh 030510

    95/122

    Basic Knowledgement

    Figure 4.15: Table tblProType (3NF)

    Remark:

    Both table tblOrder_ProCate_ProType (Figure 4.14) and table tblProType

    (Figure 4.15) are in 3NF. So we have following component ERD (Figure 4.16):

    Figure 4.16

    Remark:

    Table tblOrder_ProCate_ProType_Product (Figure 4.13 ) is not in 2NF. Because, itsnon key attributes are functionally dependent on the subset of primary key combination.

    Normalizing this table we have two tables:tblOrder_ProCate_ProType_Product (Figure4.17) and