Overview Design Manual

Source: Internet
Author: User

Based on the Andriod campus online ordering system

Overview Design Manual

Report name Campus Online ordering system Summary Design Manual

Professional Computer Science and technology

Class letter 1201-1 class

Group leader name Xueqing

Crew list Luyuchao zhangwendong Xu Tian

Date 2015.6.13

Tutor Wang Wang

Directory

1 Introduction ... 3

1.1 Writing purposes ... 3

1.2 Background ... 3

1.3 Definition ... 4

1.4 References ... 4

2 overall design ... 4

2.1 Requirements ... 4

2.2 Operating Environment ... 4

2.3 Basic design concepts and process flow ... 5

2.5 The relationship between functional requirements and procedures ... 8

2.6 Manual process ... 8

2.7 Questions yet to be asked ... 8

3 Interface Design ... 9

3.1 User Interface ... 9

3.2 External interface ... 9

3.3 Internal interface ... 9

4 Running the design ... 9

4.1 Running the module combination ... 9

4.2 Operation Control ... 9

4.3 Run time ... 9

5 system data Structure design ... 10

5.1 Logical Structure Design essentials ... 10

5.2 Physical Structure Design essentials ... 10

5.3 The relationship between data structure and program ... 13

6 system error Handling design ... 13

6.1 Error message ... 13

6.2 Remedial measures ... 13

6.3 System Maintenance Design ... 14


Overview Design Manual

1 Introduction 1.1 Purpose of writing

As some of the existing ordering software, such as the United States, hungry, and so on, they are targeted at some of the store stores, and as many large stalls of food stalls are rejected, although their hygienic quality standards are not like physical stores and other guaranteed, But their existence as a form of feeding has its meaning, and it will not be banned easily, with its own consumer groups.

With the development and popularization of network technology, catering services and personalized, diversified services of e-commerce combined to form a convenient, fast, personalized online ordering system, through online ordering, customers do not need to visit the scene, you can for themselves, family, friends gathering and so on to buy a nutritious and affordable food. Its biggest advantage lies in: illustrations, information can be updated and online viewing, and effectively solve the traditional meal in the queue, congestion, information can not be updated in a timely manner. This saves time, but also provides more choices for the general user.

1.2 Background

Students are accustomed to the school type of a single meal, and snacks affordable delicious, so many students choose to eat outside, especially in the peak period, and can stop the students to eat food stall reason is the food stall people too much, need to row a long team, to provide students with the software can be ordered in advance, students save time Food stalls can also add a sales channel to sell more food and get more sales.

Development trend:

People through the Internet, the meal to make a reservation, so that not only saves time, but also for the small shop to provide convenient management of the meal, the most important is that the order of the meal the effect is very good, the information of each order is properly maintained and processed in a timely manner, to achieve a high degree of intelligent management. Therefore, the future online ordering service is expected to develop into a very popular way of ordering, will become the restaurant sales of new models and new growth.

1.3 Definitions

b/S (browser/server): The structure is the browser and server structure. It is a change or an improved structure of C/s structure with the rise of internet technology.

Android system Architecture : Android is a Linux-based open-source operating system that is primarily used in portable devices. With the rapid development of Android, developers are now allowed to develop Android applications in a variety of programming languages, rather than a single situation where they used to develop Android applications only in Java, and thus are welcomed by many developers as a truly open operating system.

e-commerce: usually refers to a wide range of business activities around the world, in the Internet Open Network environment, based on browser/server applications, buyers and sellers do not meet the various business activities, to achieve consumer online shopping, A new business model for online transactions between merchants and online electronic payments, as well as a variety of business activities, trading activities, financial activities and related integrated service activities.

1.4 References

[1] Liu Yubao, Li Nianfeng database principles and applications [M]. Science Press

[2] Zichichang, Tanqingping, Ning Hong software engineering [M]. Higher Education Publishing

[3] Li Fei, the latest Practical network technology tutorial [M]. Xi ' an: Xidian University Press. 69~70,124~126. [4] Guo Lin first line of code ANDRIOD development

2 overall Design 2.1 requirements

Simple operation, friendly interface: Full control of the layout of the page, so that food, information and other information into the work more convenient, many options including restaurant information, cuisine information, such as only the need to swipe the finger to complete; In addition, tracking the presence of information also allows users to clear their operation at any time. For common similar site management of all aspects: basic information Entry, browsing, deletion, modification, search and other aspects of the general realization of the customer on the dishes of the booking and payment method;

Instant Visibility: The processing of the customer's reservation and catering information (including entry, deletion) will be immediately displayed in the corresponding column of the relevant page, to achieve "immediate release, immediate effect" function;

System operation should be fast, stable, efficient and reliable;

The structure should be well extensible, so that future functions can be extended and maintained.

2.2 Operating Environment

Database: Mysql 5.0

Development tools: Eclipse, Android SDK

Picture optimization tool: Mei 美图秀秀

Development language: Java

Operating Environment: Android Platform

Test environment: Android Platform

2.3 Basic design concepts and process flow

Seller:

1, browse and choose food and beverage information: need identification to be able to browse the site at will, can add, delete, modify the type of their own in-store catering, the site provides a list of food and beverage information, the first to add food and beverage information priority list to customers as a reference to purchase;

2, Judgment: When the user logs in, the system will determine whether the customer registration, if it is, you can directly enter the main page, otherwise, prompt customers to register;

3, registration: Customers can register on the company's website to submit applications;

4, confirm: The background management will be real-time customer registration information, by telephone and other means to confirm, when confirmed, the system administrator can submit the customer's booking information to review.

5, delivery and payment: Every order on the Internet will be deposited in the background database in real-time, the background operators through the telephone and other means of confirmation, confirmation will be implemented in a timely manner to review the order: delivery to customers, cash on delivery, complete online transactions.

Buyers:

1, browsing and selection of food and beverage information: Customers Enter the site, do not need to identify the site can be viewed at random, but can not add, delete, modify the software to provide the type of food and beverage information, the site provides a list of food and beverage, The priority list of food and beverage information which is first added in the background or has preferential information is given to the customer as a reference for purchase;

2, submit orders: the purchase of food and beverage information needs to fill in the order details.

3, take goods and payment: Every order on the Internet will be deposited into the background database in real-time, the background operators through the telephone and other means of confirmation, the confirmation will be implemented in a timely manner to review the order: to the appropriate place to take goods, cash on delivery, complete online transactions.

Figure 1 Business Process Analysis

Figure 2 System streaming diagram

Figure 3 Buyer's customer ordering streaming chart

Figure 4 The Seller administrator manages the streaming chart

2.5 The relationship between functional requirements and procedures

Figure 5 Function and demand relationship

2.6 Manual Process

No

2.7 Questions not yet to be asked

No

3 Interface Design 3.1 user interface

Use windowing, indexed design (i.e. all indexes are displayed on the window), and respond to hotkeys during operation.

3.2 External interface

Hardware interface: None

Software interface: Andriod is connected to the MySQL database via WebService.

3.3 Internal Interface

Through the object-oriented language design class, using the SDK-installed Enclips, the Java programming language, using the MVC pattern, in the mobile Phone client page to implement the class properties and methods of invocation.

4 Running the design 4.1 running the module combination

This program is mainly a window for the module, generally a window to complete a specific function, through each window the topmost index is to achieve the different functions of the module connection and combination. The modules are relatively independent and the program portability is good. Each module is mainly to transfer parameters to achieve the cooperation between the modules and data sharing.

4.2 Operation Control

As long as meet the requirements of software design, users can freely control, do not limit user input, the exception is handled internally by the program, give the corresponding information.

4.3 Run time

Determined by the user and the speed of the network, but the maximum response time per operation should be controlled within 3S.

5 system data Structure Design 5.1 logical Structure Design essentials

1. User table

User table ( user ID, user name, password)

2. Order Form Orders

Order form ( order ID, ordering person, reservation phone, order-to-hotel, number of meals ordered)

3. Menu Table Food

Menu table ( cuisine ID, type of cuisine, dish name, unit price, quantity, cuisine)

5.2 Physical Structure Design essentials

Figure 6 Database E-r diagram

The System Key data table is as follows: its relation see E-R diagram

2. User table (userInfo): User login is required user name and password, so the user data table must contain user name (UserName), password (userpwd) Two information, there are some other user information, such as user rights (administrator or non-administrator). From the functional database table design as shown in table 1.

Table 1 User tables

column name

data type

length

primary key

user_id

int

4

 

user_name

varchar

50

 

user_pwd

varchar

50

 

2. Menu Information Table (foodinfo): The menu Information table mainly describes the food information, such as: The dish ID number (FOOD_ID), this ID number is automatically generated by the system, the type of dish (Food_k), the name of the dish (food_name), the price of the dish (Food_price) ; The food belongs to the hotel (Food_res). Product Information table detailed description as shown in table 2

Table 2 Menu Information table

Column Name

Data type

Length

Primary key

food_id

Int

4

Yes

Food_k

varchar

50

Food_name

varchar

50

Food_price

Int

50

Food_res

varchar

50

3. Order Form (Foodorderinfo): The order form has a description of the information. Order ID (order_id), order person's name (order_name), subscriber Phone (Order_phone), the restaurant (order_res), order number of meals (order_num), and so on, as shown in table 3:

Table 3 Order Form

Column Name

Data type

Length

Primary key

order_id

Int

4

Yes

Order_name

varchar

50

Order_phone

varchar

50

Order_res

varchar

20

Order_num

varchar

20

5.3 The relationship between data structure and program

Data structure is a relational database, so, in the program can be through the standard SQL statements and data structures to interact with the interaction process using a common database access interface. The software connects to the database through WebService, so as long as the WebService Service program on the host can connect with the MySQL database, and access to the database is realized.

6 system error Handling design 6.1 error message

Table 5 Error Information table

Error message

The form, meaning and processing method of the system output information when the error occurs

Garbled

System output information in the form of garbled, the solution: the submitted Chinese character information from the new code.

Registered

Output information, registration is unsuccessful, workaround: Enter the membership name and password that are compliant with the software.

Login

Output information login is not established, solution: Enter the registered file name and password

Menu items Added

Output information, no added success, Workaround: Double-check the INSERT statement for errors, or if there is a database connection code

6.2 Remedial measures

The above error message is analyzed, and the main errors may be:

(1) Database connection error: This type of error is mainly caused by incorrect database settings, we just cancel this operation, remind the maintenance personnel to check the database problems.

(2) Input error: Mainly because the user input is not standardized, we try to minimize the user error conditions in the case of the user to remind, and then operate again.

(3) Garbled: The main occurrence in the case of the submission of Chinese characters, this is we only need to submit the Chinese characters from the new code can be.

(4) Other operational errors: for improper operation of the user, it is possible that the program has an error. We mainly plant operations, and remind users of the reasons for planting and operating norms.

(5) Other unpredictable errors: The program will have some we can not predict or not consider the complete error, we can not make a complete exception processing, in order to ensure the security of the data, the database should be regularly backed up. Then foul the error message to gradually refine the program.

6.3 System Maintenance Design

The maintenance of the software mainly includes the maintenance of the database and the maintenance of the software function.

For database maintenance, it is mainly to back up the contents of database to prevent the loss of database contents.

For the maintenance of the software function because of the modular design method, each module is more independent of each other, so that the maintenance of the software has brought great convenience, for the modification of the individual function only need to modify the corresponding module. And for the addition of functions, as long as the corresponding module can be added. We also regularly maintain and modify the software to make it more secure, more convenient and faster.

Overview Design Manual

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.