Disclosure of Invention
The invention aims to provide a method, a system, a storage medium and electronic equipment for calibrating and distributing a metering device, which can enable the equipment to complete a calibration task completely, accurately and reasonably, reduce the working difficulty, lighten the complicated flow in operation and improve the working efficiency.
In order to achieve the above object, in a first aspect, the present invention provides a method, a system, a storage medium, and an electronic device for calibrating and allocating a metering device, which promote the allocation of calibration resources of the metering device based on an intelligent shift. The method for calibrating dispensing of a metering device comprises the following steps: step S1, the service end obtains the reservation sheet transmitted by the foreground and extracts the submission device list according to the content of the reservation sheet, finds the corresponding verification item information through the submission device, and forms a submission device _ verification item list (m) list corresponding to the reservation sheet. Step S2, traverse the verification item list, and obtain a verification item _ submission equipment list (n) list under a certain verification item for each verification item in the list that needs to carry out a verification task. Step S3, obtain the length of list (n) in the list (n) of each verification item _ submission device list. Step S4, obtaining a holiday calendar list (holiday calendar) of the time list of the current year of the current date +1 of the corresponding verification item, finding a timelist tester list (worktime) of the current year of the current date +1, which is responsible for the test group leader of the corresponding item, setting the time set of the current year of the perpetual calendar +1 as S, the calendar list (harday) as a set a, the tester list (worktime) as B, taking the time axis corresponding to the absolute complement cu (ab) as an item list (freetime), and the item list (freetime) as a free time list. Step S5, when all devices are new: and arranging the data in the free time list from the current date +1 to the spare time list from front to back.
In an embodiment of the present invention, the certification reservation sheet is formed by data entry performed by a system customer service, and the censorship equipment _ certification item list (m) list is obtained by a service end through logical operation, and the data is stored in a database table.
In an embodiment of the present invention, step S5 further includes: the inspection equipment is half new equipment and half old equipment: from the current date +1, the old devices with small validity periods are arranged first, the old devices with large validity periods are arranged again, and the new devices are arranged finally.
In an embodiment of the present invention, step S5 further includes: the inspection equipment is all old equipment: from the current date +1, old devices with small validity periods are arranged first, and then old devices with large validity periods are arranged.
In a second aspect, an embodiment of the present invention further provides a system for calibrating and allocating a metering device, which promotes calibration resource allocation of the metering device based on intelligent scheduling. A system for metering device certification dispensing comprising: the system comprises a server module, a classification module, an acquisition module, an absolute complement module and a sorting module. The server-side module is used for acquiring the submission equipment list according to the verification reservation sheet, traversing the submission equipment list to find the inspection item information from the submission equipment list, and forming a submission equipment _ verification item list (m) list. The classification module is used for classifying each verification equipment needing to carry out verification tasks in the inspection equipment _ verification item list (m) list to form a verification item _ inspection equipment list (n) list after classification. The obtaining module is configured to obtain the length of list (n) in the list (n) of each verification item _ submission device list. The absolute complement module is used for obtaining a holiday calendar list (holiday calendar) of a time list of the current date +1 of a corresponding verification item, finding a timelist tester list (worktime) of the current date +1 of the time list responsible for the test group leader of the corresponding item, setting the timeset of the current date +1 of the perpetual calendar in the next year as S, setting the calendar list (harday) as a set A, setting the tester list (worktime) as B, and taking a time axis corresponding to the absolute complement Cu (AB) as an item list (freetime) and the item list (freetime) as a free time list. And the sorting module is used for sequentially sorting the devices into the spare time list from front to back from the current date +1 when all the devices are new devices.
In an embodiment of the present invention, the content of the server module is formed by data entry performed by a system customer service, and the censorship equipment _ certification item list (m) is obtained by logical operation performed by the server and the data is stored in a database table.
In an embodiment of the present invention, the sorting module is further configured to, when the submission device is a half new device and a half old device, from the current date +1, arrange the old device with a small validity period first, then arrange the old device with a large validity period, and finally arrange the new device.
In an embodiment of the present invention, the sorting module is further configured to, when all the submission devices are old devices, from the current date +1, arrange the old devices with the short validity period first, and then arrange the old devices with the large validity period.
Compared with the prior art, the method, the system, the storage medium and the electronic equipment for calibrating and distributing the metering device can formulate a reasonable, rapid and effective calibration scheme according to the new and old states and the effective calibration period of the inspection equipment, so that the equipment can complete a calibration task completely, accurately and reasonably, the work difficulty brought to the calibration work due to the difference of the new and old states and the effective calibration period of the inspection equipment is reduced, the complicated operation flow in operation is reduced, and the work efficiency is improved.
Detailed Description
The following detailed description of the present invention is provided in conjunction with the accompanying drawings, but it should be understood that the scope of the present invention is not limited to the specific embodiments.
Throughout the specification and claims, unless explicitly stated otherwise, the word "comprise", or variations such as "comprises" or "comprising", will be understood to imply the inclusion of a stated element or component but not the exclusion of any other element or component.
FIG. 1 is a schematic flow diagram of a method of calibrating dispense of a metering device according to one embodiment of the present invention. FIG. 2 is a logical architecture diagram of a method of calibrating dispense by a metering device, according to an embodiment of the present invention.
As shown in fig. 1 to 2, in a first aspect, a method, a system, a storage medium, and an electronic device for calibrating and allocating a metering device according to a preferred embodiment of the present invention promote the allocation of calibration resources of the metering device based on an intelligent shift. A metering device verification and distribution method, a system, a storage medium and electronic equipment promote the verification resource distribution of the metering device based on intelligent scheduling. The method for calibrating dispensing of a metering device comprises the following steps: step S1, the service end obtains the reservation sheet transmitted by the foreground and extracts the submission device list according to the content of the reservation sheet, finds the corresponding verification item information through the submission device, and forms a submission device _ verification item list (m) list corresponding to the reservation sheet. Step S2, traverse the verification item list, and obtain a verification item _ submission equipment list (n) list under a certain verification item for each verification item in the list that needs to carry out a verification task. Step S3, obtain the length of list (n) in the list (n) of each verification item _ submission device list. Step S4, obtaining a holiday calendar list (holiday calendar) of a time list of the last year of the current date +1 of the corresponding verification item, finding a time list (tester list (worktime)) of the last year of (current date +1) of the corresponding item responsible for the test group leader, setting a time set of the last year of the current date +1 of the perpetual calendar as S, the calendar list (holiday) as a set a, and the tester list (worktime) as B, then taking a time axis corresponding to an absolute complement cu (ab) as an item list (freetime), and the item list (freetime) as a free time list. Step S5, when all devices are new: and arranging the data in the free time list from the current date +1 to the spare time list from front to back.
In an embodiment of the present invention, the certification reservation sheet is formed by data entry performed by a system customer service, and the censorship equipment _ certification item list (m) list is obtained by a service end through logical operation, and the data is stored in a database table.
In an embodiment of the present invention, step S5 further includes: the inspection equipment is half new equipment and half old equipment: from the current date +1, the old devices with small validity periods are arranged first, the old devices with large validity periods are arranged again, and the new devices are arranged finally.
In an embodiment of the present invention, step S5 further includes: the inspection equipment is all old equipment: from the current date +1, old devices with small validity periods are arranged first, and then old devices with large validity periods are arranged.
In a second aspect, an embodiment of the present invention further provides a system for calibrating and allocating a metering device, which promotes calibration resource allocation of the metering device based on intelligent scheduling. A system for metering device certification dispensing comprising: the system comprises a server module, a classification module, an acquisition module, an absolute complement module and a sorting module. The server-side module is used for acquiring the submission equipment list according to the verification reservation sheet, traversing the submission equipment list to find the inspection item information from the submission equipment list, and forming a submission equipment _ verification item list (m) list. The classification module is used for classifying each verification equipment needing to carry out verification tasks in the inspection equipment _ verification item list (m) list to form a verification item _ inspection equipment list (n) list after classification. The obtaining module is configured to obtain the length of list (n) in the list (n) of each verification item _ submission device list. The absolute complement module is used for obtaining a holiday calendar list (holiday) of a time list of the current year of the current date +1 of the corresponding verification item, finding a time list (tester list (worktime)) of the current year of (current date +1) of the corresponding verification item in charge of the test group leader, setting the time set of the current year of the perpetual calendar +1 as S, the calendar list (holiday) as a set A, the tester list (worktime) as B, and taking a time axis corresponding to the absolute complement Cu (AB) as an item list (freetime) and the item list (freetime) as a vacant time list. And the sorting module is used for sequentially sorting the devices into the spare time list from front to back from the current date +1 when all the devices are new devices.
In an embodiment of the present invention, the content of the server module is formed by data entry performed by a system customer service, and the censorship equipment _ certification item list (m) is obtained by logical operation performed by the server and the data is stored in a database table.
In an embodiment of the present invention, the sorting module is further configured to, when the submission device is a half new device and a half old device, from the current date +1, arrange the old device with a small validity period first, then arrange the old device with a large validity period, and finally arrange the new device.
In an embodiment of the present invention, the sorting module is further configured to, when all the submission devices are old devices, from the current date +1, arrange the old devices with the short validity period first, and then arrange the old devices with the large validity period.
In a third aspect, an embodiment of the present invention further provides a storage medium, where the storage medium stores computer-executable instructions for executing the method for calibrating and distributing a metering device.
The storage medium may be any available medium or data storage device that can be accessed by a computer, including but not limited to magnetic memory (e.g., floppy disks, hard disks, magnetic tape, magneto-optical disks (MOs), etc.), optical memory (e.g., CDs, DVDs, BDs, HVDs, etc.), and semiconductor memory (e.g., ROMs, EPROMs, EEPROMs, nonvolatile memory (NAND FLASH), Solid State Disks (SSDs)), etc.
In a fourth aspect, fig. 3 shows a block diagram of an electronic device according to another embodiment of the invention. The electronic device 1100 may be a host server with computing capabilities, a personal computer PC, or a portable computer or terminal that is portable, or the like. The specific embodiment of the present invention does not limit the specific implementation of the electronic device.
The electronic device 1100 includes at least one processor (processor)1110, a Communications Interface 1120, a memory 1130, and a bus 1140. The processor 1110, the communication interface 1120, and the memory 1130 communicate with each other via the bus 1140.
The communication interface 1120 is used for communicating with network elements including, for example, virtual machine management centers, shared storage, etc.
Processor 1110 is configured to execute programs. Processor 1110 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present invention.
The memory 1130 is used for executable instructions. The memory 1130 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 1130 may also be a memory array. The storage 1130 may also be partitioned and the blocks may be combined into virtual volumes according to certain rules. The instructions stored by the memory 1130 are executable by the processor 1110 to enable the processor 1110 to perform a method of meter verification dispensing in any of the method embodiments described above.
The method for calibrating and distributing the metering device not only considers the problem of the workload of each calibration project to a task, but also reasonably makes a calibration scheme according to the new and old states and the calibration validity period of the inspection equipment, thereby effectively finishing the detection work of the inspection equipment. The design of the intelligent shift scheduling function mainly depends on the check-in equipment in the check-out reservation list, business backstepping is carried out according to the check-in equipment, corresponding check-out items are searched, and the check-out items are associated with the check-in equipment. Technically, a calculation mode that a holiday calendar list of the next year and a verification time list corresponding to a tester assigned to a corresponding verification project of the next year are in absolute complement is adopted, logical judgment is carried out according to the relation of the validity period, the quantity and the like of the inspection equipment in service, and then verification work is assigned. The specific implementation steps are as follows:
1. the server side obtains the reservation list transmitted by the foreground and extracts the submission device list according to the content of the reservation list, finds corresponding verification item information through submission devices, and forms a submission device _ verification item list (m) list corresponding to the reservation list.
2. And traversing the verification item list, and aiming at each verification item needing to carry out the verification task in the list, obtaining a verification item _ submission equipment list (n) list under a certain verification item.
3. The length of list (n) in the list (n) of each verification item _ submission device is obtained.
4. Acquiring a holiday calendar list (holiday calendar) of a time list of the last year of the current date +1 of a corresponding verification item, finding a time list (tester list (worktime)) of the last year of the last date +1 of a corresponding item responsible for a test group leader, and setting a time set of the last year of the current date +1 of the perpetual calendar as S, the calendar list (hardtime) as a set A, and the tester list (worktime) as B, taking a time axis corresponding to an absolute complement Cu (AB) as an item list (freetime), and the item list (freetime) as a free time list.
5. When all are new devices: and arranging the data in the free time list from the current date +1 to the spare time list from front to back. The inspection equipment is half new equipment and half old equipment: from the current date +1, the old devices with small validity periods are arranged first, the old devices with large validity periods are arranged again, and the new devices are arranged finally. The inspection equipment is all old equipment: from the current date +1, old devices with small validity periods are arranged first, and then old devices with large validity periods are arranged.
In practical applications, the method of performing the metering device verification dispensing of the present invention comprises the steps of:
1. sequencing from long to short according to conditions such as time-consuming fields of verification projects;
2. acquiring a perpetual calendar one year after the current time and acquiring a holiday date one year after the current time;
3. taking the working day time of the next three days as a locking period of the three days, adding the locking period of the three days into a holiday date set, and removing the holiday set from the perpetual calendar set to obtain a working day set;
4. setting two temporary sets, wherein one temporary set stores the whole day date of the reservation list which is occupied, and the other temporary set stores the small day date of the reservation list which is occupied;
5. traversing the equipment sets with the priority order, and taking out the personnel sets of project time consumption and group leader members;
6. and traversing the personnel set, and taking out the date set of the existing arrangement work of the personnel. Storing the working day set into a temporary set, and removing the date set and the integer day date set of the existing scheduled work by using the temporary set;
7. inquiring the investment coefficient of the employee, and removing the investment coefficient by using the item time consumption to obtain the actual time-consuming days;
8. judging whether the actual time consumption is more than 1 day, if so, taking an upward choice, then removing the actual completion date from the temporary employee working day set, and storing the actual completion date in a date comparison set;
9. and if the actual time consumption is less than one day, collecting the days from the day, searching whether the employee is collected for days from the day, if not, taking up or rejecting the employee, taking out the actual completion date from the employee working day temporary collection, and storing the actual completion date in the date comparison collection. If the employee decimal set exists, the employee decimal set is taken out for traversal, if the employee decimal set does not have a small date and a few days which are properly inserted, the employee decimal set is selected upwards, the actual completion date is taken out from the employee working day temporary set, and the actual completion date is stored in the date comparison set. If the date is suitable for insertion, storing the date into a date comparison set;
10. sequencing the date comparison set front and back in order to find out the earliest staff who completes the project;
11. if the actual time consumption of the employee is more than 1 day, storing the whole day into an integral day date set, and storing the decimal part into a decimal day date set for the next equipment to be scheduled for use;
12. if the actual time of the employee is less than 1 day, and if the sum of the actual time and other decimal days is less than 1, the sum is continuously stored in a decimal day date set for the purpose of scheduling the use of the like equipment. If the sum equals 1 day, the date is stored in an integer day date set for use by the next equipment schedule. If the date is more than 1 day, storing the newly arranged date into a decimal day date set for the next equipment to be used in a scheduled period;
13. and storing the scheduling date, the employee unique identifier and the employee name into an equipment set, and returning to the page for display.
In a word, the metering device verification distribution method, the metering device verification distribution system, the storage medium and the electronic equipment can make a reasonable, rapid and effective verification scheme according to the new and old states and the verification validity period of the submission equipment, so that the equipment can complete verification tasks completely, accurately and reasonably, the work difficulty brought to verification work due to the difference of the new and old states and the verification validity period of the submission equipment is reduced, the complicated flow in operation is reduced, and the work efficiency is improved.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing descriptions of specific exemplary embodiments of the present invention have been presented for purposes of illustration and description. It is not intended to limit the invention to the precise form disclosed, and obviously many modifications and variations are possible in light of the above teaching. The exemplary embodiments were chosen and described in order to explain certain principles of the invention and its practical application to enable one skilled in the art to make and use various exemplary embodiments of the invention and various alternatives and modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the claims and their equivalents.