Everyone should be idle when the Chinese New Year is approaching. At the request of a certain annual meeting, such a lucky draw software is required to implement the following functions:
1. You can set awards, first prize, second prize, and third prize ...... .
2. When you click a lucky draw, you can play a picture at random. The lottery is conducted in sequence.
3. the lottery is divided into multiple groups. Each group has different people and different awards. The winners cannot join the lottery.
4. For each group, if there are three in group A and three in group B, if Michael wins in group A, no one can win in group B.
5. Some personalized settings, such as personnel import, award hiding, background image, music configuration, full screen switching, etc.
Bytes -------------------------------------------------------------------------------------------------
So I downloaded a lucky draw software from the Internet and changed it into a software.
Due to the rush of time, there were not too many fancy interfaces and too many designs. There are three tables:
User: stores user information, including the ID, name, image, and GID fields.
Prize table (prize): stores award information, main fields such as ID, key, value, sort, count, and GID.
The prize group table (prizegroup) stores the information of the award group, the main field ID, name
The software idea is to use a timer to generate random numbers to generate names and images.
Ask me if you don't know. Software is another software decompiled, soCodeIf it is messy, it will not be uploaded.
Interface
Bytes --------------------------------------------------------------------------------------------------
The format of imported data is Excel. The first column is ID number, 1, 2, 3, 4, 5 .... The second column is name, Zhang San, Li Si .....
Imported images can be a single import or batch import, in the format of zhangsan.jpg and lisi.jpg ....
Software