Method for automatically generating and printing spot inspection work order

By using VBA code and modular design in the spreadsheet, the automatic generation and printing of inspection work orders is realized, which solves the problem of low efficiency of manual writing, search and printing in the existing technology, and improves the efficiency and automation level of substation management.

CN118732964APending Publication Date: 2024-10-01国网天津市电力公司高压分公司 +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410814501.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In the existing technology, the preparation of inspection work orders relies on manual modification, which is inefficient and has a high error rate. Operation and maintenance personnel need to spend a lot of time searching and printing various inspection forms, resulting in a waste of human resources.

Method used

By adding VBA code to the spreadsheet and using template batch generation, matching, search and printing modules, automatic generation and automatic printing of work orders can be realized. Combining inspection plans and work order arrangements, the work order generation and printing process can be optimized to automatically search and print. Various types of inspection sheets.

Benefits of technology

It realizes the automatic generation and scheduled printing of work orders and inspection sheets, improves management efficiency, saves human resources, reduces repetitive work, improves the level of office automation, and is suitable for operation and maintenance management of substations and power plants.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118732964A_ABST
    Figure CN118732964A_ABST
Patent Text Reader

Abstract

The invention relates to a spot inspection work order automatic generation and printing method, which optimizes work order generation and printing processes and compiles a work order automatic generation system, namely, VBA codes are added in a traditional work order spreadsheet, and a template batch generation module, a matching module, a searching module and a printing module are adopted. By calling the modules in a main program, automatic generation of work orders, regular search of the work orders and automatic printing of the work orders and various types of point inspection table modes are realized. According to the invention, the automatic generation of the point inspection work order and the timed automatic self-adaptive printing function of the work order and the point inspection table are realized through the VBA code, the operation can be satisfied in the existing office condition environment, commercial software or other plug-ins do not need to be additionally arranged, the copyright of autonomous knowledge is provided, the human resource cost is saved, and the automatic management level of office is improved; codes are written in a main program and subprogram function modularization structure mode, space is reserved for subsequent function expansion, the system operation error probability is reduced, and the system robustness is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of transformer operation and maintenance inspection, and particularly relates to a method for automatically generating and printing an inspection work order. Background Art

[0002] At present, inspection sheets play an important role in the company's substation operation and maintenance inspections. They are the basis for operation and maintenance personnel to discover equipment defects and hidden dangers. Work orders arrange various types of inspection sheets and power outage maintenance work in an orderly manner according to the plan, and guide operation and maintenance personnel to carry out their daily work in the form of a daily list.

[0003] Currently, the work order is written by the person in charge of the substation, who manually modifies the time and work content based on the work order spreadsheet template one week in advance to form the work order plan for the next week. This manual modification method is not only inefficient, but also has a high error rate. It is often the case that the work content of this week is not deleted and is brought into the work order plan for the next week.

[0004] During their daily inspections, maintenance personnel need to carry paper versions of daily work orders and the inspection forms listed in the work orders. Since there are more than 50 types of inspection forms for each station, maintenance personnel need to spend 10 minutes every day to find the corresponding inspection forms for the corresponding power stations according to the work order plan, and finally print the search results. Spending 10 minutes every day to repeat the work of printing work orders is undoubtedly a huge waste of manpower in the current situation of human resource shortage. Summary of the invention

[0005] The purpose of the present invention is to overcome the deficiencies of the prior art and provide a method for automatically generating and printing an inspection work order.

[0006] The present invention solves the technical problem by the following technical solutions:

[0007] A method for automatically generating and printing inspection work orders, characterized in that: the method combines inspection plans and work order arrangements, optimizes the work order generation and printing process, and writes an automatic work order generation system, that is, adding VBA code to a traditional work order spreadsheet, using template batch generation modules, matching modules, search modules and printing modules, and automatically generating work orders, regularly searching for work orders, and automatically printing work orders and various types of inspection form modes by calling the above modules in the main program.

[0008] Furthermore, the steps of the method are:

[0009] The template batch generation module automatically generates blank templates for the work order weekly plan for the whole year, which are fully synchronized with the production plan week. The generated blank templates are used for matching the next operation and maintenance and inspection plan;

[0010] The matching module automatically compares the annual work order weekly plan date with the annual operation and maintenance plan table to find tasks with the same corresponding date, and copies the task to the work order operation and maintenance plan and inspection plan part to realize the automatic generation of annual work orders;

[0011] The search module automatically searches for the inspection sheet of the corresponding substation in all substation inspection sheet libraries according to the substation name, and automatically opens the sheet after finding the corresponding inspection sheet for the next step of the printing module operation;

[0012] The printing module automatically removes content separators based on the work order operation and maintenance plan and inspection plan content, accurately identifies the plan content to implement traversal search of the plan content, and adaptively prints out the search results based on the page content to form paper work orders and inspection sheets.

[0013] Moreover, the template batch generation module uses a pre-customized blank work order template, based on a spreadsheet workbook, and uses VBA code to name the workbook with natural week numbers and name the worksheets in the workbook with × month × day. In this way, 52 workbooks are automatically generated, each workbook contains 7 worksheets, and the work orders for the whole year named with × month × day are automatically generated.

[0014] Moreover, at the end of each year in the matching module, the operation and maintenance specialist will compile the operation and maintenance plan for each station in the next year, including PMS maintenance records, substation inspection records, and inspection plan arrangements. Based on the above-compiled operation and maintenance plan, VBA code is used to traverse and open each work order and then search for the operation and maintenance plan for the corresponding date of the work order. The operation and maintenance plan content is copied to the operation and maintenance plan part of the work order. After copying, the file is closed and the next one is searched. This cycle is repeated until the end, and the operation and maintenance plan parts of all work orders have been matched with the corresponding content.

[0015] Moreover, the search module first extracts the substation name, and then uses the file opening tool to open the inspection list library named after the substation. There are many worksheets in the inspection list library named after the substation, and each worksheet is an inspection list for different purposes. The file operation is to search, open and close the file.

[0016] Moreover, the printing module temporarily stores the planned content, uses a matrix method with indefinite storage space, and then uses a unique traversal function of the matrix to implement search, and uses the search results to write page automatic adjustment code to implement the adaptive printing function.

[0017] The advantages and beneficial effects of the present invention are:

[0018] 1. The present invention realizes the automatic generation of inspection work orders and the timed automatic adaptive printing of work orders and inspection sheets through VBA code. It can run in the existing office conditions and environment without adding commercial software or other plug-ins. It has independent intellectual property rights, saves human resource costs, and improves the level of office automation management.

[0019] 2. The present invention improves the management efficiency of substations, optimizes the allocation of human resources, eliminates repetitive work, helps improve substation business management, and lays a solid foundation for management automation.

[0020] 3. The code of the present invention is written in a modular structure of main program and subroutine functions, leaving room for subsequent function expansion. All loops do not use for statements, but use each traversal function, which reduces the probability of system operation errors and improves the robustness of the system.

[0021] 4. The present invention is widely applicable to the operation, maintenance and management of substations and power plants, realizing the refined and automated management of substations and power plants. This invention patent further reduces the operation and maintenance manpower costs, improves the operation and maintenance business management and control level of substations, and provides important support for the master system of substation equipment. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION

[0023] The present invention is further described in detail below through specific examples. The following examples are only illustrative and not restrictive, and the protection scope of the present invention cannot be limited thereto.

[0024] like Figure 1 As shown, the present invention relates to a method for automatically generating and printing inspection work orders, and its innovation lies in: the method combines inspection plans and work order arrangements, optimizes the work order generation and printing processes, and writes a work order automatic generation system, that is, adding VBA code to a traditional work order spreadsheet, using template batch generation modules, matching modules, search modules and printing modules, and automatically generating work orders, regularly searching for work orders, and automatically printing work orders and various types of inspection form modes by calling the above modules in the main program.

[0025] The steps of the method for automatically generating and printing inspection work orders of the present invention are as follows:

[0026] The template batch generation module automatically generates blank templates for the work order weekly plan for the whole year, which are fully synchronized with the production plan week. The generated blank templates are used for matching the next operation and maintenance and inspection plan;

[0027] The matching module automatically compares the annual work order weekly plan date with the annual operation and maintenance plan table to find tasks with the same corresponding date, and copies the task to the work order operation and maintenance plan and inspection plan part to realize the automatic generation of annual work orders;

[0028] The search module automatically searches for the inspection sheet of the corresponding substation in all substation inspection sheet libraries according to the substation name, and automatically opens the sheet after finding the corresponding inspection sheet for the next step of the printing module operation;

[0029] The printing module automatically removes content separators based on the work order operation and maintenance plan and inspection plan content, accurately identifies the plan content to implement traversal search of the plan content, and adaptively prints out the search results based on the page content to form paper work orders and inspection sheets.

[0030] 1. Template batch generation module: This module automatically generates blank templates for the annual work order weekly plan in batches, which can be fully synchronized with the company's weekly production plan. The generated blank templates are used to match the next step of operation and maintenance and inspection plans.

[0031] Through the pre-customized blank work order template, based on the spreadsheet workbook, use VBA code to name the workbook with the natural week number, and name the worksheets in the workbook with × month × day. In this way, 52 workbooks are automatically generated, and each workbook contains 7 worksheets. In this way, the work orders for the whole year named with × month × day are automatically generated.

[0032] 2. Matching module: This module automatically searches the annual operation and maintenance plan table for tasks with the same corresponding dates based on the weekly work order plans for the whole year, and copies the tasks to the work order operation and maintenance plan and inspection plan sections to achieve automatic generation of work orders throughout the year.

[0033] At the end of each year, the operation and maintenance specialist will compile the operation and maintenance plan for each station in the next year, including PMS maintenance records, substation inspection records, inspection schedules, etc. Based on this compiled operation and maintenance plan, VBA code is used to traverse and open each work order and then search for the operation and maintenance plan for the corresponding date of the work order, copy the operation and maintenance plan content to the operation and maintenance plan part of the work order, close the file after copying, and search for the next one, and repeat this cycle until the operation and maintenance plan parts of all work orders have been matched with the corresponding content.

[0034] 3. Search module: This module identifies the substation name and automatically searches for the inspection sheet of the corresponding substation in the inspection sheet library of all substations. After finding the corresponding inspection sheet, it automatically opens the sheet for the next step of printing module operation.

[0035] The design idea of ​​this module is similar to that of the matching module. The difference is that this module must first extract the substation name, and then use the file opening tool to open the inspection table library named after the substation (there are many worksheets in the inspection table library named after the substation, and each worksheet is an inspection table for different purposes). This module mainly operates on files, finding, opening and closing files.

[0036] 4. Printing module: This module automatically removes content separators based on the work order operation and maintenance plan and inspection plan content, accurately identifies the plan content, implements traversal search of the plan content, and adaptively prints out the search results based on the page content to form paper work orders and inspection sheets.

[0037] The design idea of ​​the first part of this module is similar to that of the matching module. The difference is that this module needs to temporarily store the plan content, uses a matrix method with indefinite storage space, and then uses the matrix's unique traversal function to implement the search, reducing the use of for loops and improving the simplicity and robustness of the code.

[0038] The latter part of this module is designed to be a pure print output function. By using the search results from the former part, the page automatic adjustment code is written to achieve the adaptive printing function.

[0039] Although the embodiments and drawings of the present invention are disclosed for illustrative purposes, those skilled in the art will appreciate that various substitutions, changes and modifications are possible without departing from the spirit and scope of the present invention and the appended claims. Therefore, the scope of the present invention is not limited to the contents disclosed in the embodiments and drawings.

Claims

1. A method for automatically generating and printing an inspection work order, characterized in that: The method combines inspection plan and work order arrangement, optimizes the work order generation and printing process, and writes an automatic work order generation system, that is, adding VBA code to the traditional work order electronic form, using template batch generation module, matching module, search module and printing module, and calling the above modules in the main program to realize automatic work order generation, regular work order search and automatic printing of work orders and various types of inspection form modes.

2. The method for automatically generating and printing inspection work orders according to claim 1 is characterized in that: The steps of the method are: The template batch generation module automatically generates blank templates for the work order weekly plan for the whole year, which are fully synchronized with the production plan week. The generated blank templates are used for matching the next operation and maintenance and inspection plan; The matching module automatically compares the annual work order weekly plan date with the annual operation and maintenance plan table to find tasks with the same corresponding date, and copies the task to the work order operation and maintenance plan and inspection plan part to realize the automatic generation of annual work orders; The search module automatically searches for the inspection sheet of the corresponding substation in all substation inspection sheet libraries according to the substation name, and automatically opens the sheet after finding the corresponding inspection sheet for the next step of the printing module operation; The printing module automatically removes content separators based on the work order operation and maintenance plan and inspection plan content, accurately identifies the plan content to implement traversal search of the plan content, and adaptively prints out the search results based on the page content to form paper work orders and inspection sheets.

3. The method for automatically generating and printing inspection work orders according to claim 1 is characterized in that: The template batch generation module uses a pre-customized blank work order template, based on a spreadsheet workbook, and uses VBA code to name the workbook with natural week numbers and name the worksheets in the workbook with × month × day. In this way, 52 workbooks are automatically generated, each workbook contains 7 worksheets, and the work orders for the whole year named with × month × day are automatically generated.

4. The method for automatically generating and printing inspection work orders according to claim 1 is characterized in that: At the end of each year in the matching module, the operation and maintenance specialist will compile the operation and maintenance plan for each station in the next year, including PMS maintenance records, substation inspection records, and inspection plan arrangements. Based on the above-compiled operation and maintenance plan, VBA code is used to traverse and open each work order and then search for the operation and maintenance plan for the corresponding date of the work order. The operation and maintenance plan content is copied to the operation and maintenance plan part of the work order. After copying, the file is closed and the next one is searched. This cycle is repeated until the end, and the operation and maintenance plan parts of all work orders have been matched with the corresponding content.

5. The method for automatically generating and printing inspection work orders according to claim 1 is characterized in that: The search module first extracts the substation name, and then uses the file opening tool to open the inspection table library named after the substation. There are many worksheets in the inspection table library named after the substation, and each worksheet is an inspection table for different purposes. The file operation is to search, open and close the file.

6. The method for automatically generating and printing inspection work orders according to claim 1 is characterized in that: The printing module temporarily stores the planned content, uses a matrix method with indefinite storage space, and then uses a unique traversal function of the matrix to implement search, and uses the search results to write page automatic adjustment code to implement the adaptive printing function.