Skip to content

After several debugging, the program ultimately come to a more complete version.

Figure 1. Initial friendly interface

In the initial friendly interface, there are four functional options. The first time you run the program, please log on as an administrator and register products for sale. Otherwise there will not be goods in the sale.

Figure 2. Administrator original user name and password

This program acquiescence original administrator user name: admin, six password: TurboC, enter the user name and password to enter the administrator interface.

Figure 3. Administrator interface

Administrators interface has 10 functional options, including search for products on sale, register new products, search the shopping history, sort, check the profitable product, check the stock or sales return judgement, return to the superior interface, change the password, statistic business volume, exit system.

Figure 4. Product shelves interface

It requires the administrator enter the product number, name, purchase price, retail price, wholesale price and purchase quantity manually. Product numbers asked for integer data. Input can be completed by Y (must be capital) to continue adding products. Or press any non-Y key to exit the interface and return to the superior interface.

Figure 5. New user register interface

Users need to register before purchase products. Registration needs to enter the user name, six passwords and confirm the passwords. After registration, users can log in to purchase products, search the shopping history and return products.

Figure 6. User shopping interface

After logging, users can choose to start shopping. The system will list the existing goods with the number, name, retail price, wholesale price and inventory. Users purchase product by entering the item numbers.

Figure 7. User shopping interface (2)

After entering the item number, the system will ask users to enter the purchase quantity. If the number it larger than the current inventory, users will be prompted to enter the wrong numbers and re-enter the purchased product number and quantity.

Figure 8. Uses shopping progress

When the users' shopping is completed, enter any non-Y key for ticket information input, this time requires the users to enter the purchase date manually.

Figure 9. Shopping ticket

After users enter the shopping date, the system will generate the shopping ticket for this purchase, including the bill number, the date, the merchandise name, quantity, retail price, total cost and total price of the products.

Figure 10. Searching shopping history

Users can query their own shopping history in the user management interface. The system will list all the shopping histories. Each item includes the bill number, the date, product name, quantity, retail price and total cost.

Figure 11. Return products interface

Users will need to enter the bill number to be returned, the system will check whether this number exists. If there is a single number, please check the item number and the number use want to return. After user enter the return information, the system will send out the return information and ask users to confirm the return.

Figure 12. Change password interface

This interface will require the users to enter the original password, if the original password is correct the system will prompt the user to enter six new passwords and re-confirm the new password. After that the system will once again hit the new password in order to prompt the user.

Figure 13. Administrator searching for products in sale

The administrator can inquire about all the information currently in sale (including the product number, the name, the purchase price, the retail price, the wholesale price, the number of shipments, the number of sale, the sales and the total profit).

Figure 14. Administrator check the users shopping history

The administrator can check all shopping history of the user by entering the user's user name.

Figure 15. Administrator sorting interface

The administrator can sort all the in sale products by turnover and sales sorting query product information.

Figure 16. Output the highest and lowest profit product interface

The administrator can view the product number, name, purchase price, retail price, wholesale price, ship number, sale number, sales and total profit of the current highest and lowest products.

Figure 17. Purchase and return judgment

The administrator can use this interface to find the product information. The lowest profit product will recommend to be returned. When the inventory is less than 20%, the system will prompt the administrator to purchase.

Figure 18. Statistical turnover interface

This interface will be able to query the total sales of the current products in the store.