The supermarket cashier management system based on C #

Source: Internet
Author: User
the supermarket cashier management system based on C # Pre-order

have been busy learning qt related knowledge, very fortunate to have studied C # this semester. Let me also feel a hint of gratified, gratified is to feel good start ah, learn a few days immediately understand. A lot of control of the use of a good similar, although the usual class did not seriously listen to the class, but a lot of knowledge or understanding of almost, this is very happy. At the end of the semester, the General programming language course, the final sure course design, want to go or use C # to realize the following oneself have done supermarket cashier management system, business logic also don't think about, directly began to write code. To tell you the truth, it feels like homework and all kinds of tasks are good to deal with. If you really do enterprise-level projects, it is not a minute to be able to solve, first of all, that the class is also used for 3-4 days, the personal feeling is OK, the basic invoicing function has been achieved, of course, as a class has been able to.

Before I begin, I must not spit a bit, in school as long as you do something a little better, the teacher will decisively say you are from the Internet, the industry conscience AH. Remember last semester's database class, I was doing the hotel management system details can see this http://download.csdn.net/detail/u013704336/8543019,
At that time the feeling is to do very well, do not believe you can go to see. But the final result ... I have no language, seems to be the lowest, I did not say what, after all, the results of things, has not cared about, why for this a result care. University campus in the results can not explain what, let it go, hehe ... The key is that you can make something decent out of it.

Software development Requirements Analysis is the most important. The previous analysis accounted for about 60%, late code compilation and other accounted for 40%, this is my personal + learned, there are wrong places please point out. I then summed up the summary, to say some of their own ideas at that time. Simple Requirements Analysis

Functional Module Division

Supermarket cashier management system is mainly invoicing function, as a lesson set about the realization of the three functions can also be. If the business of that function can be more, it is more complicated. The following are mainly about the three modules

Incoming Management module

The purchase module is nothing but the purchase of merchandise information to save, as to how to save, this will have to be subdivided. The general purchase time will have a incoming serial number, to make the only distinction, and then what. There must be some attributes of the product, such as what the number of single goods, single product unit price, production date, purchase time. Total purchase price, quantity and so on some information. For more information, see the design of the datasheet below.

Front Sales

In the sales module, the bar code of the input product retrieves the corresponding commodity information, and displays its price, quantity, specification and so on some information, if does not have this commodity to carry on the reminder, buys after also must to the commodity in the inventory quantity carries on the corresponding update operation, lest the data does not correspond. This is a crucial step.

Inventory Management

Warehouse Management module, mainly to the warehouse in the product of the increase, delete, change, check operation. Also use the inventory to remind the function, a quantity of goods below the set value, can be timely reminders to prevent inventory is zero.

Entity analysis

In entity analysis, the process of modeling a single object is mainly done. Do not say anything, directly on the map on the line (e-R diagram). I believe you have learned the database.

The design of the database

Because this programming language is C #, so the choice of SQL Server should be the most appropriate, in the compatibility of their own home things should be better together. Looked at their own computer a long time ago to install a sqlserver2000, so use 2000 bar, free download, it is estimated that a lot of people to say that 2000 has been outdated, I think it is, all the past so many years, but the software is generally backward-compatible. So there shouldn't be much of a problem.

I'm just writing a script. Then automatically generated after pouring, no manual to create, feel so good trouble, also very inconvenient, many students instead think with the mouse click Convenient, in fact, more inconvenient, in the later writing code process will realize this, I think this is a good habit.

The creation of data tables

As long as the individual entities are analyzed clearly, it is only minutes before the table is built. Of course, the table I'm talking about here is much more than the above mentioned, there are a lot of not said, like a simple user rights management, I designed 5 tables, there are user Information table (this table can also be divided into natural information tables and account information table), Permission table, role table, Permissions role table, user Role table. About the Rights management analysis, I refer to others, can be found, this is where I get from his diagram. Again, this is a reference to others, thank you here.

Frame Design

Main frame Design

Do not say anything, directly above the picture, see very clearly.


* Each module design

-Front Sales

-Purchase Stock

-Inventory Management

-Member Management

-Sales statistics

-Employee Information Management

Code Writing

Many people think that writing code is very difficult ah. This kind of person is belongs to the long time does not write the code the person, my side many people die like this, precisely because has not written several lines of code, only then feels difficult. Nowadays, many college students have become such, or learn computer, ah ... Don't say let them write code, many times even install a basic software will not, looking for someone else to pretend, I like to say, you will not, Baidu should ah, you will not Baidu. Everyone has the first time, the first time to install the basic will not, Baidu will be, even basic learning ability has been lost. If college students do not even have basic self-study ability, then ... I can't say for sure, but it's not good to be there. A bit far away, code writing should be entered at the lowest level of labor. Those who say that writing code is difficult, you don't know how difficult the requirements analysis phase is. Oh, I forgot, they don't know what demand analysis is. Forgive them.

This code writing for me is still very easy, although the contact time is not long, but there is a sense of déjà vu, probably because of their previous study of Qt's sake, I always feel a lot of control design special to force, analogy, this is very happy.

The delegate and event mechanism in C # is very important, and I think the signals and slots in Qt have a spell, are the essence ah. But their own for delegates and events belong to the stage, has not been to "understand" stage, continue to refuel it, juvenile.

Finally, the source code I finished will definitely upload, my intention is open source, I also from others open source code to learn a lot of ideas, so I will stick to it.

Software writing process using a skin plug-in "IrisSkin2.dll", there are many styles can be selected, eliminating the landscaping work. But this plugin has a disadvantage, as if it can only give. NET FrameWork2.0, and there will be flicker. It seems a little hard to achieve or rely on WPF technology.

The 
 technology is to communicate, to share ...
Blog address: http://blog.csdn.net/u013704336\ email:creazylq@163.com qq:936563422 Reprint Please specify the source: Thank you. 

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.