Summary of the first computer room

It took me a month to complete my first computer room. This time I study in the computer room. I feel that I am more mature than the students. When students were students, they still wrote the code after analyzing the source code. In the computer room, it is the code written by oneself according to the function. This time, in the computer room, except for the export of the report, all other functions are written by myself.

I think there are three main points in the first computer room: getting on and off the computer, checking out, and exporting reports.

First time on the machine in the machine room:

The computer involves multiple tables, and you need to be clear about the fields to be changed in each table. I drew a flowchart to clarify the logic of my computer.

It is still simpler to get on the machine than to get off the machine. As long as you understand the relationship between each table and insert the correct data into the right place, there will be no major problems.

First time off the machine room

The off-machine mainly involves four tables. First, you need to check whether the card number has been on-boarded in the Online table. If the on-machine is performed, get the basic data set in the BasicData table, calculate the on-board time, and then change it to the student table. , And then insert this offline record into the online record table, modify the online field inside to become the offline field, and delete the data in the online table to get it done.

Dynamic disembarkation:

My method of dynamically logging off is to use the timer control to update the cash field in the student table every minute, that is, the balance. When the balance is less than 0, I will log off. So as to realize the function of dynamic deactivation and real-time deduction.

Bill, please:

The functional area of ​​checkout also involves querying multiple tables.

The first four functional areas in the above figure correspond to the tables in the database, respectively query their unchecked data, then use variables to record, and finally calculate and assign the value to the summary box to realize the function of display and checkout button In fact, the unsettled field of all the queried data is changed to checkout, which will not be checked next time, thus realizing a checkout function.

Daily checkout and weekly checkout:

The idea of ​​daily checkout and weekly checkout is to write the data that needs to be queried into the corresponding table of the database when the form is loaded, then get it from the table, and pass it to the software we use. The specific method of using the software is OK if you search for it yourself, I will repeat it here too much.

This is my first computer room. Through this computer room, I feel that my logic ability has been greatly improved, my familiarity with the code has also been greatly improved, I understand how to learn better and more efficiently, and continue to work hard. Come on!

 

 

Guess you like

Origin blog.csdn.net/hlzdbk/article/details/114176541