IDC checkout Function Analysis

Source: Internet
Author: User

1. Understanding of three user levels:

Generally, the user is the teacher on duty in the IDC room. The operator is mainly responsible for the normal loading and downloading of students; the operator is mainly responsible for student registration cards, returning cards, and managing student information; the Administrator checks the operators and checks the income. It can be similar to the guy, accountant, and boss in a restaurant.

 

2. Checkout

2.1 The interface is as follows:


2.2 During the checkout, we should first understand the origins of each amount and then know the calculation method. Figure:


The terms are explained as follows: (the query conditions for each table are ischeck = "not checked" and userid = "cmbuserid. Text ")

Total revenue: add the registration and recharge amount information to the recharge table {recharge_table}, and sum the "addcash" column to get the total recharge amount.

Return: sum the "cancelcash" column in the cancelcard_table to obtain the total return amount.

Actual revenue: total income-return

Net income: the amount consumed on the machine. net income for the sum of the consumecash column in The lined_table

Waiting for income: the balance in the student card (why is it called waiting for income, because the money has not been consumed, and it is also possible to return the money to the student, so it is called waiting for income)

2.3 procedure:

Enter the user name and check whether the user name exists.

Click buy card to display the purchase card information for this user. Recharge your account.

Click "summary" to display the basic checkout information, click "checkout" to modify the status of each table to "checked", and add the checkout information to the check_table table to provide data for future reports.


3. Conclusion: The bill is generated only after the bill is settled. The bill is a summary of the data center income and provides data for future reports. After analyzing the checkout function, you can understand the code.

IDC checkout Function Analysis

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.