C #-based supermarket cash register management system,

Source: Internet
Author: User

C #-based supermarket cash register management system,
C #-based supermarket cash register management system Preface

I have been busy learning knowledge about Qt. I am lucky to have learned C # this semester #. I also felt a little gratified, but I was glad that I was able to get started. After learning for a few days, I suddenly understood it! The usage of many controls is similar. Although I have never heard of them carefully in class, I still understand a lot of knowledge. This is a pleasure! At the end of the next semester, all programming language courses will inevitably end with the course design. If you want to use C # To implement the supermarket cash register management system that you have previously done, you don't have to worry about the business logic. You can directly write the code. To tell the truth, I feel that my school can handle all kinds of tasks, including homework. If I really work on enterprise-level projects, it will not be able to be solved in minutes. First of all, let's explain, it took less than three to four days for this course to be set up. I personally feel that it is okay, and the basic invoicing functions have been implemented. Of course, it is enough to set up this course.

Before I start, I have to talk about it. In school, as long as you do something better, the teacher will say that you are from the Internet, and the industry is conscientious! I remember the database course last semester, I was doing the hotel management system details can see this http://download.csdn.net/detail/u013704336/8543019,
At that time, it was quite good. If you don't believe it, you can check it out. Final score ...... I am speechless. It seems to be the lowest, and I have not said anything. After all, I have always been concerned about my achievements. Why do I care about this score. The scores on the university campus cannot be explained. Let's do it. Hey hey ...... The key is that you can make something decent!

Software development requirement analysis is the most important. The preliminary analysis accounts for about 60% of the total, and the code writing and other tasks account for 40% of the total. This is what I personally + learned. Please point out if there is something wrong with it. Next I will summarize and summarize some of my thoughts at that time.

Simple Requirement Analysis
  • Function module division

    The supermarket cash register management system is mainly used to store and store inventory. As a course set, it is possible to implement these three functions. If it is commercial, there will be more functions and more complicated. The following describes the three modules.

    • Purchase Management Module

      The purchase Module simply saves the information of the purchased goods. As for how to save the information, you have to subdivide it. Generally, there will be a sequential number of incoming goods for a unique distinction. What else? There must be some attributes of the product, such as the number of items, unit price, production date, and purchase time. The total purchase price, quantity, and other information. For details, see the design of the data table below.

    • Front-end sales

      In the sales module, enter the product barcode to retrieve the corresponding product information, and display its price, quantity, specification, and other information. If the product is not available, remind us, after purchasing the product, you must update the quantity of the product in stock to avoid data mismatch. This is a key step!

    • Inventory management

      In the warehouse management module, add, delete, modify, and query items in the warehouse. In addition, the inventory reminder function is also used. When the quantity of a product is lower than the set value, you can promptly remind the product to avoid zero inventory.

  • Entity Analysis

    Object analysis mainly involves modeling each object. What do not say, directly on the line (E-R ). I believe anyone who has learned the database knows it!

  • Database Design

    Since the programming language is C # This time, it is best to choose sqlserver. In terms of compatibility, it is better to have your own things together! After reading my computer, I installed sqlserver2000 a long time ago. So let's use 2000 instead of download. It is estimated that many people will say that 2000 is outdated. I think so too, it has been so many years, but the software is generally backward compatible! So there should be no major problems.

    I directly wrote the script, and then added it to it for automatic generation. It was not manually created. It felt so troublesome and inconvenient. Many people thought it was more inconvenient to click it with the mouse, I think this is a good habit when writing code later!

  • Create a data table

    As long as the entity analysis is clear, table creation is only a matter of minutes! Of course, the tables I mentioned here are far more than mentioned above. There are many others that I have not mentioned, just like simple user permission management. I have designed five tables, user information table (this table can also be divided into the natural information table and account information table), permission table, role table, permission role table, and user role table. For permission management analysis, I can find it by referring to other people. This is where I got the relationship diagram from him. Again, this is for your reference. Thank you!

Framework Design
  • Main Framework Design

    Needless to say, you can see it clearly.


* Module Design

-Foreground sales

-Purchase

-Inventory Management

-Member management

-Sales statistics

-Employee information management

Code Writing

Many people think it is difficult to write code! This type of person is a person who does not write code for a long time. Many people around me will die like this because they have not written a few lines of code. Now many college students have become like this. They still learn computer science ...... Let alone Let them write code. In many cases, they won't even install a basic software. I just say, you won't, baidu should, you won't, Baidu? Everyone has the first time. It is basically impossible to install it for the first time. Will it be true for Baidu? Even the basic learning ability is lost! If college students do not have the basic self-learning ability, then ...... I can't say it for sure, but I can't go there! It's a little too far away. You should enter the lowest-layer labor for coding. If it is difficult to write code, do you not know how difficult the requirement analysis stage is? Oh, I forgot. They don't know what requirement analysis is ...... Forgive them.

This code compilation is still very easy for me. Although the contact time is not long, there is a feeling of familiarity, probably because I have learned Qt before, I always feel that a lot of controls are designed to be especially powerful and accessible. This is a pleasure!

The delegation and event mechanism in C # are very important. I think it is essential to work together with the signals and slots in Qt! However, I am in a useful phase for delegation and events and have not yet reached the "Understanding" stage. Continue to cheer up, young man!

The last note is that the source code will be uploaded after I finish it. My intention is to open source. I have learned a lot from other open source codes, so I will stick to it.

A skin plug-in "IrisSkin2.dll" is used in the software compilation process. There are many styles to choose from, eliminating the need for beautification. However, this plug-in has a disadvantage. It seems that it can only be given to. NET FrameWork2.0 and will flash. If you want to implement it on your own or rely on the WPF technology, it seems a little difficult !!

Technology lies in communication, sharing ...... Blog address: workshop!

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.