Work ticket generation method, device, computer equipment and storage medium
By automatically obtaining and processing work ticket information in the substation and generating accurate work tickets, the problem of manual filling errors is solved, the accuracy and efficiency of work ticket generation is improved, and the on-site safety is ensured.
Patent Information
- Application Number
- CN202111334906.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-11
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2041-11-11
AI Technical Summary
In substations, when manually filling out work tickets, the accuracy of screen cabinet safety measures is greatly affected by human factors, and it is easy to fill out errors, resulting in refunds during maintenance work.
By obtaining the working screen cabinet selected in the visual interface, determining its name and target position, traversing the computer room screen cabinet plane area to determine the adjacent position, obtaining the name of the running screen cabinet, and generating work tickets in accordance with the preset ticket format to improve the generation accuracy.
It improves the accuracy of work ticket generation, reduces the filling errors caused by human factors, reduces the potential risk of on-site personnel going through wrong intervals and operating equipment incorrectly, and improves the efficiency of work ticket filling and screen cabinet maintenance.
Smart Images

Figure CN114021751B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electric power technology, and in particular to a work ticket generation method, device, computer equipment, storage medium and computer program product. Background Art
[0002] At present, the work management process in the substation is becoming more and more perfect, and the work must be strictly carried out in accordance with the content of the "two tickets and three systems". As the central system for enterprise safety protection, the "two tickets and three systems" on the one hand ensures the safety of grassroots employees in the production operation process, and on the other hand, it also helps the enterprise to continuously build a healthy corporate safety culture.
[0003] Before carrying out maintenance work in the substation, a work ticket must be filled out and submitted for review. Currently, in the process of filling out the work ticket, the panel cabinet location and the panel cabinet location of the adjacent operating equipment need to be manually entered for panel cabinet safety measures.
[0004] However, the accuracy of the manually filled-in safety measures for the cabinets is greatly affected by human factors, and there is a certain probability of error when there are many cabinets to be filled in. At present, it is found that there are many cases of ticket refunds due to incorrect cabinet names, incorrect sign positions, incorrect punctuation marks, etc. in the maintenance work, and there is a problem of inaccurate work ticket generation. Summary of the invention
[0005] Based on this, it is necessary to provide a work ticket generation method, device, computer equipment, computer-readable storage medium and computer program product that can improve the accuracy of work ticket generation in response to the above technical problems.
[0006] In a first aspect, the present application provides a method for generating a work ticket. The method comprises:
[0007] Obtain the working screen cabinet selected in the visualization interface, and determine the working screen cabinet name of the working screen cabinet;
[0008] Based on the name of the working cabinet, determine the target position of the working cabinet in the cabinet plane area of the computer room;
[0009] Traversing each position in the plane area of the cabinet in the computer room to determine an adjacent position adjacent to the target position;
[0010] Determine the name of the operating screen cabinet corresponding to the adjacent position;
[0011] According to the preset ticket format and based on the working screen cabinet name of the working screen cabinet and the running screen cabinet name of the running screen cabinet, a corresponding work ticket is generated.
[0012] In one of the embodiments, determining the target position of the working screen cabinet in the plane area of the screen cabinet in the computer room based on the name of the working screen cabinet includes:
[0013] Obtain a two-dimensional matrix corresponding to the plane area of the computer room cabinet; the two-dimensional matrix is obtained by converting the data type of the name of each cabinet in the plane area of the computer room cabinet from an array type to a matrix type, and segmenting based on a matrix segmentation parameter, wherein the matrix segmentation parameter corresponds to the plane area of the computer room cabinet;
[0014] Based on the name of the working screen cabinet, traverse the two-dimensional matrix to obtain the index of the working screen cabinet in the two-dimensional matrix;
[0015] The target position of the working cabinet in the plane area of the cabinet in the computer room is determined based on the index.
[0016] In one embodiment, traversing various positions in the plane area of the computer room cabinet to determine an adjacent position adjacent to the target position includes:
[0017] According to the target position of the working screen cabinet, the two-dimensional matrix is traversed column by column, and at least one of the previous position and the next position of the column where the target position of the working screen cabinet is located is extracted to obtain an adjacent position adjacent to the target position.
[0018] In one embodiment, determining the working screen cabinet name of the working screen cabinet includes:
[0019] Determine a target array corresponding to the plane area of the cabinet in the computer room, wherein the cabinet name and cabinet status are stored in order in the target array;
[0020] The target array is traversed, and the screen cabinet name corresponding to the screen cabinet state being the selected state is used as the working screen cabinet name.
[0021] In one embodiment, generating a corresponding work ticket according to a preset ticket format and based on the working screen cabinet name of the working screen cabinet and the running screen cabinet name of the running screen cabinet includes:
[0022] Based on the first bill format, the work screen cabinet name is subjected to a first text formatting process to obtain a first signboard safety measure text, and the first signboard safety measure text is output to the work screen cabinet signboard position of the visualization interface to obtain a first work ticket;
[0023] Based on the second bill format, the name of the operating cabinet is subjected to a second text formatting process to obtain a second signboard safety measures text, and the second signboard safety measures text is output to the operating cabinet signboard position of the visualization interface to obtain a second work ticket.
[0024] In one embodiment, there are multiple working screen cabinets, and based on the second bill format, the name of the operating screen cabinet is subjected to a second text formatting process to obtain a second signboard safety measure text, including:
[0025] According to the second bill format, and based on the names of the operation cabinets corresponding to the respective working cabinets, a combination text is obtained;
[0026] Deleting the running screen cabinet names that appear repeatedly in the multiple running screen cabinet names in the combined text;
[0027] Delete the running panel cabinet name that is the same as the working panel cabinet name among the multiple running panel cabinet names in the combined text;
[0028] The redundant symbols in the combined text are deleted to obtain a second signboard safety measures text.
[0029] In a second aspect, the present application also provides a work ticket generating device. The device comprises:
[0030] An acquisition module, used to acquire the working screen cabinet selected in the visualization interface, and determine the working screen cabinet name of the working screen cabinet;
[0031] A determination module, used to determine the target position of the working screen cabinet in the plane area of the computer room screen cabinet based on the name of the working screen cabinet;
[0032] The determination module is further used to traverse various positions in the plane area of the computer room cabinet to determine an adjacent position adjacent to the target position;
[0033] The determination module is further used to determine the name of the running screen cabinet corresponding to the adjacent position;
[0034] A generation module is used to generate a corresponding work ticket according to a preset ticket format and based on the working screen cabinet name of the working screen cabinet and the running screen cabinet name of the running screen cabinet.
[0035] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0036] Obtain the working screen cabinet selected in the visualization interface, and determine the working screen cabinet name of the working screen cabinet;
[0037] Based on the name of the working cabinet, determine the target position of the working cabinet in the cabinet plane area of the computer room;
[0038] Traversing each position in the plane area of the cabinet in the computer room to determine an adjacent position adjacent to the target position;
[0039] Determine the name of the operating screen cabinet corresponding to the adjacent position;
[0040] According to the preset ticket format and based on the working screen cabinet name of the working screen cabinet and the running screen cabinet name of the running screen cabinet, a corresponding work ticket is generated.
[0041] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0042] Obtain the working screen cabinet selected in the visualization interface, and determine the working screen cabinet name of the working screen cabinet;
[0043] Based on the name of the working cabinet, determine the target position of the working cabinet in the cabinet plane area of the computer room;
[0044] Traversing each position in the plane area of the cabinet in the computer room to determine an adjacent position adjacent to the target position;
[0045] Determine the name of the operating screen cabinet corresponding to the adjacent position;
[0046] According to the preset ticket format and based on the working screen cabinet name of the working screen cabinet and the running screen cabinet name of the running screen cabinet, a corresponding work ticket is generated.
[0047] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0048] Obtain the working screen cabinet selected in the visualization interface, and determine the working screen cabinet name of the working screen cabinet;
[0049] Based on the name of the working cabinet, determine the target position of the working cabinet in the cabinet plane area of the computer room;
[0050] Traversing each position in the plane area of the cabinet in the computer room to determine an adjacent position adjacent to the target position;
[0051] Determine the name of the operating screen cabinet corresponding to the adjacent position;
[0052] According to the preset ticket format and based on the working screen cabinet name of the working screen cabinet and the running screen cabinet name of the running screen cabinet, a corresponding work ticket is generated.
[0053] The above-mentioned work ticket generation method, device, computer equipment, storage medium and computer program product pre-establish a two-dimensional matrix corresponding to the plane area of the computer room cabinet, first select the work cabinet to be inspected, and obtain the work cabinet name of the work cabinet; then traverse the two-dimensional matrix, and determine the target position of the work cabinet in the plane area of the computer room cabinet according to the work cabinet name of the work cabinet; according to the target position of the work cabinet, traverse the two-dimensional matrix by column to determine the adjacent position adjacent to the target position, that is, the position of the running cabinet; according to the position of the running cabinet, determine the running cabinet name of the running cabinet; finally, according to the preset ticket format, the working cabinet name and the running cabinet name are output after text formatting processing, and the signboard safety measures text of the working cabinet and the signboard safety measures text of the running cabinet are obtained, and the corresponding work ticket is generated in the visual interface.
[0054] Compared with the method of manually filling in the work ticket, the present invention can improve the accuracy of the work ticket generation, avoid filling errors caused by human factors, and avoid the error of the sign due to the wrong filling of the work sheet safety measures, thereby reducing the potential risks of the on-site personnel walking into the wrong interval and malfunctioning the running equipment, which helps to ensure the safety of the on-site personnel. In addition, the present invention can also save the time of the on-site personnel filling in the work ticket safety measures, improve the efficiency of filling in the work ticket and the efficiency of the panel cabinet maintenance. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 An application environment diagram of a work ticket generation method in an embodiment;
[0056] Figure 2 A schematic diagram of a flow chart of a method for generating a work ticket in one embodiment;
[0057] Figure 3 A schematic diagram of a flow chart of a step of determining a target position of a working screen cabinet in an embodiment;
[0058] Figure 4 A schematic flow chart of a method for generating a work ticket in another embodiment;
[0059] Figure 5 A schematic diagram of the effect of a work ticket generation method in one embodiment;
[0060] Figure 6 It is a structural block diagram of a work ticket generating device in one embodiment;
[0061] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0062] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0063] The work ticket generation method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. The terminal 102 and the server 104 can execute the work ticket generation method provided in the embodiment of the present application separately, or they can execute the work ticket generation method provided in the embodiment of the present application in collaboration.
[0064] When the terminal 102 and the server 104 execute the work ticket generation method separately, the terminal 102 obtains the work cabinet selected in the visualization interface and determines the work cabinet name of the work cabinet; based on the work cabinet name, determines the target position of the work cabinet in the cabinet plane area of the computer room; traverses each position in the cabinet plane area of the computer room to determine the adjacent position adjacent to the target position; determines the running cabinet name of the running cabinet corresponding to the adjacent position; generates the corresponding work ticket according to the preset ticket format and based on the work cabinet name of the work cabinet and the running cabinet name of the running cabinet.
[0065] When the terminal 102 and the server 104 cooperate to execute the work ticket generation method, the terminal 102 obtains the work cabinet selected in the visualization interface, and sends the selected work cabinet to the server 104. The server 104 determines the work cabinet name of the work cabinet according to the selected work cabinet; determines the target position of the work cabinet in the cabinet plane area of the computer room based on the work cabinet name; traverses each position in the cabinet plane area of the computer room to determine the adjacent position adjacent to the target position; determines the running cabinet name of the running cabinet corresponding to the adjacent position; generates the corresponding work ticket according to the preset ticket format and based on the work cabinet name of the work cabinet and the running cabinet name of the running cabinet.
[0066] The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, and portable wearable devices, and the portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.
[0067] In one embodiment, Figure 2 As shown, a work ticket generation method is provided, and the method is applied to a computer device (the computer device can be specifically Figure 1The terminal or server in the example is used to illustrate, including the following steps:
[0068] Step 202, obtaining the work screen cabinet selected in the visualization interface, and determining the work screen cabinet name of the work screen cabinet.
[0069] Among them, the working cabinet refers to the cabinet that needs to be repaired in the computer room.
[0070] Specifically, the computer device obtains the screen cabinet selected by the user in the visual interface, takes the selected screen cabinet as the working screen cabinet, and then determines the working screen cabinet name of the working screen cabinet.
[0071] In one embodiment, the computer device may pre-set and store a target array corresponding to the plane area of the cabinet in the computer room, in which the cabinet name and cabinet status are stored in order. When the user selects a working cabinet, the cabinet status of the selected working cabinet in the target array will become selected. The computer device may traverse the target array and use the cabinet name corresponding to the cabinet status being selected as the working cabinet name.
[0072] Step 204: Based on the name of the work cabinet, determine the target position of the work cabinet in the cabinet plane area of the computer room.
[0073] The target position refers to the position of the working cabinet in the cabinet plane area of the computer room. The cabinet plane area of the computer room refers to the plane layout area of the cabinet in the computer room, which is used to describe the specific position of each cabinet in the computer room.
[0074] Specifically, the computer device performs data type conversion on the storage variables storing the target array to obtain storage variables of the matrix type, and performs matrix segmentation on the storage variables of the matrix type according to the actual layout of the cabinets in the computer room to obtain a two-dimensional matrix. Then, the computer device traverses the two-dimensional matrix, extracts the value of each matrix element, compares the value of each matrix element obtained by traversing the two-dimensional matrix with the name of the working cabinet, determines the index of the working cabinet in the two-dimensional matrix, and determines the target position of the working cabinet in the plane area of the cabinet in the computer room based on the index.
[0075] Step 206, traverse each position in the plane area of the cabinet in the computer room to determine an adjacent position adjacent to the target position.
[0076] The adjacent position adjacent to the target position refers to the position of the operating cabinet in the cabinet plane area of the machine room. The operating cabinet refers to the cabinet adjacent to the working cabinet to be repaired in the machine room.
[0077] Specifically, the computer device traverses the two-dimensional matrix column by column according to the target position, extracts the adjacent positions of the column where the target position is located, and obtains the adjacent positions adjacent to the target position.
[0078] Step 208, determining the name of the running screen cabinet corresponding to the adjacent position.
[0079] The running panel cabinet name refers to the name of the running panel cabinet.
[0080] Specifically, the two-dimensional matrix stores the cabinet names of each cabinet in the cabinet plane area of the computer room, and the computer device extracts the running cabinet name of the running cabinet corresponding to the adjacent position according to the adjacent position.
[0081] Step 210: Generate a corresponding work ticket according to a preset ticket format and based on the working cabinet name of the working cabinet and the running cabinet name of the running cabinet.
[0082] The preset ticket format refers to the text format of the work ticket stored in the computer device, including the first ticket format and the second ticket format. The first ticket format is used to fill in the work ticket safety measures corresponding to the work screen cabinet, and the second ticket format is used to fill in the work ticket safety measures corresponding to the operation screen cabinet. The work ticket refers to the text displayed on the visual interface that contains the safety measures of the screen cabinet that needs to be listed, including the first work ticket and the second work ticket. The first work ticket is the text containing the listing safety measures of the work screen cabinet, and the second work ticket is the text containing the listing safety measures of the operation screen cabinet.
[0083] Specifically, the computer device obtains the signboard security measures of the working cabinet based on the first ticket format and the working cabinet name, and generates a first working ticket; and obtains the signboard security measures of the operating cabinet based on the second ticket format and the operating cabinet name, and generates a second working ticket.
[0084] In the above work ticket generation method, by pre-establishing a two-dimensional matrix corresponding to the plane area of the cabinet in the computer room, first obtain the name of the working cabinet of the working cabinet, then traverse the two-dimensional matrix to determine the target position of the working cabinet; traverse the two-dimensional matrix by column to determine the position of the running cabinet; according to the position of the running cabinet, determine the running cabinet name of the running cabinet; finally, according to the preset ticket format, the working cabinet name and the running cabinet name are output after text formatting, and the safety measures text of the working cabinet and the safety measures text of the running cabinet are obtained, and the corresponding work ticket is generated in the visual interface. The present application can improve the accuracy of filling in the safety measures of the work ticket, avoid filling in errors caused by manually filling in the work ticket, and avoid listing errors caused by filling in the work sheet safety measures incorrectly.
[0085] In one embodiment, Figure 3 As shown, based on the name of the work cabinet, determine the target position of the work cabinet in the cabinet plane area of the computer room, including:
[0086] Step 302, obtain a two-dimensional matrix corresponding to the plane area of the computer room cabinet; the two-dimensional matrix is obtained by converting the data type of the name of each cabinet in the plane area of the computer room cabinet from an array type to a matrix type, and segmenting it based on matrix segmentation parameters, and the matrix segmentation parameters correspond to the plane area of the computer room cabinet.
[0087] The matrix segmentation parameters refer to the number of rows and columns of the two-dimensional matrix. The matrix segmentation parameters correspond to the plane area of the cabinet in the computer room, which means that the number of rows and columns of the matrix is the same as the number of rows and columns of the cabinet in the plane area of the cabinet in the computer room. For example, if the cabinets in the plane area of the cabinet in the computer room are arranged in n rows and m columns (where n and m are positive integers, and n and m can be the same or different), then the matrix is an n*m matrix, and the corresponding matrix segmentation parameters are: the number of rows of the matrix is n, and the number of columns of the matrix is m.
[0088] Step 304: based on the name of the working screen cabinet, traverse the two-dimensional matrix to obtain the index of the working screen cabinet in the two-dimensional matrix.
[0089] Specifically, the computer device traverses the two-dimensional matrix based on the working cabinet name, determines whether the value of each matrix element is the same as the working cabinet name, and extracts the elements whose values are the same as the working cabinet name. The number of rows and columns of the element in the two-dimensional matrix is the index of the working cabinet in the two-dimensional matrix.
[0090] Step 306: Determine the target position of the working cabinet in the cabinet plane area of the computer room based on the index.
[0091] Specifically, since the two-dimensional matrix corresponds to the plane area of the cabinet in the computer room, the computer device can determine the target position of the working cabinet in the plane area of the cabinet in the computer room based on the index.
[0092] In this embodiment, by converting the storage variable storing the screen cabinet name into a two-dimensional matrix, it can intuitively correspond to the position of each screen cabinet in the plane area of the computer room screen cabinet, which is equivalent to constructing a two-dimensional plane diagram of the screen cabinet in the computer room, providing a basis for the subsequent determination of the position of the working screen cabinet and the position of the adjacent running screen cabinet. Based on the working screen cabinet name, by traversing the two-dimensional matrix, the target position of the working screen cabinet in the plane area of the computer room screen cabinet can be determined.
[0093] In one embodiment, traversing each position in the plane area of the computer room cabinet to determine the adjacent position adjacent to the target position includes: traversing the two-dimensional matrix by column according to the target position of the working cabinet, extracting at least one position between the previous position and the next position of the column where the target position of the working cabinet is located, and obtaining the adjacent position adjacent to the target position.
[0094] In one embodiment, the adjacent position is the previous position of the column where the target position is located. For example, if the selected working screen cabinet is located at the last position of the column where it is located, then the adjacent position of the target position is the previous position of the column where the target position is located.
[0095] In one embodiment, the adjacent position is the next position in the column where the target position is located. For example, if the selected working screen cabinet is located at the first position in the column where it is located, then the adjacent position of the target position is the next position in the column where the target position is located.
[0096] In one embodiment, the adjacent positions are the previous and next positions of the column where the target position is located. For example, if the selected working cabinet is located in the middle of the column where it is located, the adjacent positions of the target position are the previous and next positions of the column where the target position is located.
[0097] In this embodiment, the position of the operating screen cabinet can be determined by traversing the two-dimensional matrix and extracting the adjacent position of the column where the target position of the working screen cabinet is located based on the target position of the working screen cabinet.
[0098] In one embodiment, determining the name of the working screen cabinet of the working screen cabinet includes:
[0099] Step 402, determining a target array corresponding to the plane area of the cabinet in the computer room, wherein the cabinet name and cabinet status are stored in order in the target array.
[0100] Specifically, before starting maintenance work at the substation, the computer device may construct a target array, the number of array elements in the target array corresponds to the number of cabinets in the cabinet plane area of the computer room, and the target array is used to store the cabinet name and cabinet status.
[0101] The cabinet name is the name of the cabinet, and the cabinet state is the state of the cabinet, including a selected state and an unselected state, which is used to indicate whether the cabinet is selected by the user. Before the user generates a work ticket, the computer device sets the initial state of each cabinet to an unselected state.
[0102] Step 404, traverse the target array, and use the screen cabinet name corresponding to the screen cabinet state being the selected state as the working screen cabinet name.
[0103] Specifically, after the user selects a screen cabinet in the visual interface, the screen cabinet state of the selected working screen cabinet is selected. The computer device traverses the target array, determines whether the screen cabinet state corresponding to the array element is selected, extracts the array element in which the screen cabinet state is selected, and determines the screen cabinet name corresponding to the array element, which is the working screen cabinet name.
[0104] In one embodiment, the target array may be a two-dimensional array, wherein the position of each element of the target array in the target array corresponds to the position of each cabinet in the cabinet plane area of the computer room. For example, in a computer room where the cabinets are arranged in 2 rows and 3 columns, the computer equipment may construct a two-dimensional array a[2][3], and define a[2][3] = {"first set of equipment", "second set of equipment", "third set of equipment", "fourth set of equipment", "fifth set of equipment", "sixth set of equipment"}, and define each element a[i][j] (where 0≤i≤1, 0≤j≤2, and i and j are both integers) to contain a status bit, the value of the status bit is False or True, where False indicates that the cabinet state is unselected, and True indicates that the cabinet state is selected.
[0105] The user selects the cabinet named the sixth set of equipment as the working cabinet in the visualization interface. At this time, the cabinet status of the cabinet changes from "unselected" to "selected". Correspondingly, according to the definition of the two-dimensional array, that is, element a[1][2] = {"sixth set of equipment"}, the value of the status bit of element a[1][2] changes from False to True.
[0106] The computer device obtains the element whose status bit value is True in the two-dimensional array a[2][3], and obtains the element a[1][2], then determines that the screen cabinet represented by the element a[1][2] is the selected working screen cabinet. According to the definition of the two-dimensional array, that is, the element a[1][2] = {"the sixth set of equipment"}, the name of the working screen cabinet is determined to be the sixth set of equipment.
[0107] In this embodiment, a target array is constructed to store the screen cabinet name and screen cabinet status, and the screen cabinet name corresponding to the screen cabinet status is determined according to the screen cabinet status, so that the computer device can determine the working screen cabinet name of the working screen cabinet according to the screen cabinet selected by the user in the visual interface.
[0108] In one embodiment, according to a preset ticket format and based on the working screen cabinet name of the working screen cabinet and the running screen cabinet name of the running screen cabinet, a corresponding work ticket is generated, including:
[0109] Step 502, based on the first ticket format, the work cabinet name is subjected to a first text formatting process to obtain a first signboard safety measure text, and the first signboard safety measure text is output to the work cabinet signboard position of the visualization interface to obtain a first work ticket.
[0110] Among them, the first text formatting processing refers to the formatting processing of the safety measures of the working cabinet based on the first bill format and the name of the working cabinet, and the first hanging safety measures text refers to the formatted hanging safety measures text corresponding to the working cabinet.
[0111] Step 504, based on the second ticket format, the operating cabinet name is subjected to a second text formatting process to obtain a second signboard safety measure text, and the second signboard safety measure text is output to the operating cabinet signboard position of the visualization interface to obtain a second work ticket.
[0112] The second text formatting process refers to the formatting of the safety measures of the operating cabinet based on the second bill format and the name of the operating cabinet, and the second signboard safety measures text refers to the formatted signboard safety measures text corresponding to the operating cabinet. Generate the corresponding work ticket according to the preset bill format.
[0113] In this embodiment, by presetting the ticket format and based on the work screen cabinet name and the operation screen cabinet name, the safety measures of the work screen cabinet and the operation screen cabinet are formatted and output, so as to achieve the purpose of automatically generating work tickets in the visual interface and displaying the posted safety measures.
[0114] In one embodiment, there are multiple working screen cabinets. Based on the second bill format, the names of the working screen cabinets are subjected to second text formatting to obtain a second hanging safety measure text, including:
[0115] Step 702: Combining the operation screen cabinet names corresponding to the operation screen cabinets respectively according to the second bill format to obtain a combined text.
[0116] Specifically, the safety measures of the operating cabinet are formatted based on the second bill format and the name of the operating cabinet, so as to obtain the initial safety measures text of the operating cabinet, that is, the combined text.
[0117] Step 704, deleting the running screen cabinet names that appear repeatedly in the multiple running screen cabinet names in the combined text.
[0118] Specifically, when there are multiple working screen cabinets, there is a situation where the adjacent positions of two working screen cabinets are the same position, and at this time, two identical operating screen cabinet names will appear in the combined text. Therefore, in order to improve the accuracy of semantic expression, it is necessary to delete the repeated operating screen cabinet names in the combined text, so that the operating screen cabinet names in the final second hanging safety measures text are all unique.
[0119] Step 706, deleting the running screen cabinet name that is the same as the working screen cabinet name among the multiple running screen cabinet names in the combined text.
[0120] Specifically, when there are multiple working screen cabinets, there are two working screen cabinets located adjacent to each other. At this time, the two working screen cabinets serve as both the working screen cabinets themselves and the operating screen cabinets adjacent to them. Therefore, the names of the two working screen cabinets will appear in both the first signboard safety measures text and the combined text. Therefore, in order to avoid semantic contradictions, the names of the operating screen cabinets that are the same as the working screen cabinet names in the combined text need to be deleted, so that the names of the operating screen cabinets in the final second signboard safety measures text are different from the names of the working screen cabinets in the first signboard safety measures text.
[0121] Step 708, delete the redundant symbols in the combined text after deletion to obtain the second signboard safety measures text.
[0122] Specifically, after deleting the operating cabinet names that are repeated in the combined text and the operating cabinet names that are the same as the working cabinet names, redundant punctuation marks, such as commas, may remain. Therefore, in order to improve the accuracy and conciseness of the semantic expression, it is necessary to delete the redundant symbols so that the semantic expression of the final second signboard safety measures text is accurate, complete and non-redundant.
[0123] In this embodiment, by formatting the initial operating panel cabinet's signboard safety measures text, the final operating panel cabinet's signboard safety measures text is formatted and output, thereby achieving the purpose of improving the accuracy, completeness and conciseness of semantic expression.
[0124] refer to Figure 4 In one embodiment, a method for generating a work ticket is provided, the method comprising the following steps:
[0125] Step 1: Edit the name and quantity of the equipment in the computer room;
[0126] Step 2: Obtain the screen cabinet information and perform matrix segmentation processing;
[0127] Step 3: Perform calculation and analysis based on the screen cabinet selected by the user;
[0128] Step 4: Output the security measures formatted text information.
[0129] The method is implemented by a computer software program. The backend code of the computer software program is designed and implemented by Python language, and the front-end interface design is designed and implemented by Qt5 language.
[0130] For step one, the background manually imports the cabinet information to the computer device. The computer device constructs a corresponding number of checkboxes according to the cabinet situation in the computer room and stores them in the get_L_chk array, and enters the cabinet names in the computer room into the checkboxes according to the order of the cabinets in the computer room. The checkboxes are used as the text characters of the checkboxes and stored in the get_L_text array, which are used as the original arrays for judging whether the cabinet is checked and storing the cabinet names.
[0131] For step 2, the computer device creates a temporary variable temp of array type to store the information of get_L_text, uses the numpy.array function in the numpy module to convert the data type of temp to numpy.ndarray, and then uses the reshape function to split temp into an n*n matrix L_msg_mtx according to the actual situation of the cabinet in the computer room.
[0132] For step three, the computer equipment performs calculation and analysis based on the screen cabinets checked by the user, and obtains the information of the "working here" screen cabinet and the name of the "running equipment" screen cabinet.
[0133] The processing of the "Work Here" screen cabinet is as follows: the computer device determines whether the screen cabinet is checked according to the status bit of the checkbox. Specifically, the initial state of the status bit of the checkbox is False, and the checked state is True. The computer device uses a for loop nested if statement to determine the status bits of all checkboxes in the get_L_chk array, selects the checkbox with a status bit of True, and extracts its text as a string and stores it in the selected array to obtain the information of the "Work Here" screen cabinet.
[0134] The processing of the "operating equipment" cabinet is as follows: the computer equipment uses the for loop to traverse the matrix L_msg_mtx according to the matrix L_msg_mtx obtained by segmentation and the above selected array, compares the values in the selected array, and uses the where function to obtain the index of the corresponding value in the matrix as the variable idx; then the matrix is traversed again by column, and the nested if-elif-else statement is used to judge the three situations of the selected cabinet position being the first, the last, and the middle of the column: in the case of the first cabinet, only the information of the next cabinet is extracted; in the case of the last cabinet, the information of the previous cabinet is extracted; in the case of the middle cabinet, the information of the previous and next cabinets is extracted, and then the information is stored in the selected_2 array, and the initial data of the "operating equipment" cabinet is obtained. Then, the remove, set, and replace functions are used to eliminate redundant symbols and duplicate cabinets, and the formatting of the safety measures text is completed, that is, the final name of the "operating equipment" cabinet is obtained.
[0135] Among them, the remove function is used to delete the possible "Work Here" cabinets. For example, if two adjacent cabinets are selected, according to the algorithm logic, they will become the "operating equipment" cabinets of another cabinet. Selected is the selected cabinet. By comparing the information of the "operating equipment" cabinet stored in the selected_2 array obtained after algorithm processing with the selected string, the characters existing in the selected_2 array are deleted to avoid the above situation. The set function is used to remove the possible repeated "operating equipment" cabinets. For example, if there are three cabinets ABC and two AC are selected, then cabinet B will be repeatedly entered into the selected_2 array once because it is also an adjacent cabinet of AC. Use the set function to clear the duplicate items in the selected_2 array to obtain a unique string. The replace function is used to eliminate redundant punctuation marks such as commas in the text. For example, if there are two adjacent commas in the text, use the replace function to eliminate one of the commas and keep only one comma.
[0136] Step 4: Output the formatted text information of the safety measures to the visual interface.
[0137] The front-end visual interface includes a "Generate" button and a "Clear" button. The processing of the visual interface button binding event is as follows: the computer device binds the "Generate" button to output the formatted text of the above-mentioned cabinet information to the text box, and sets the text box attribute to read-only to ensure that the text information will not be wrong due to user misoperation; bind the "Clear" button to clear the text information in the text box, and set the status bits of all checkboxes to False.
[0138] The front-end visual interface design is as follows Figure 5 As shown, after obtaining the text information of the cabinet names of the "Work Here" cabinet and the "Run Equipment" cabinet, the computer equipment automatically fills in the cabinet names in the corresponding positions, constructs a two-dimensional plane view of the cabinet names and corresponding positions in the computer room, and provides users with an intuitive visual check page through the front-end page. The user clicks the "Generate" button to generate the safety measures text information of "Work Here" and "Run Equipment" that needs to be filled in the text box below, and clicks the "Clear" button to clear the text in the text box and the checked cabinet.
[0139] In the above embodiment, the computer software program needs to manually input the screen cabinet information such as the screen cabinet name in the back-end code, and different matrix segmentation parameters need to be set for the screen cabinet layout of different computer rooms.
[0140] In another embodiment, the computer software program can input the screen cabinet name through a table, and the screen cabinet name is filled in the table according to the position of the screen cabinet in the computer room. After the table is imported into the computer software program, the computer device reads the data in the table, automatically obtains the text information and segmentation matrix parameters of the screen cabinet, and reduces the workload of inputting new computer rooms. Different teams can fill in the table and import it into the software according to the actual situation of their own management of computer rooms and equipment, which can greatly improve the convenience and versatility of software use and facilitate later maintenance and management.
[0141] The worksheet generation method provided in this embodiment has the following beneficial effects: users no longer need to manually input the information of the screen cabinets to be listed and the types of corresponding warning signs, thus saving time in filling out work tickets; and the formatted text generated by the software eliminates the problem of manual errors in filling out text and punctuation.
[0142] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0143] Based on the same inventive concept, the embodiment of the present application also provides a work ticket generation device for implementing the work ticket generation method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more work ticket generation device embodiments provided below can refer to the limitations on the work ticket generation method above, and will not be repeated here.
[0144] In one embodiment, Figure 6 As shown, a work ticket generating device 600 is provided, comprising: an acquisition module 602, a determination module 604 and a generation module 606, wherein:
[0145] An acquisition module 602 is used to acquire the work screen cabinet selected in the visualization interface and determine the work screen cabinet name of the work screen cabinet;
[0146] A determination module 604 is used to determine a target position of the working cabinet in the cabinet plane area of the computer room based on the name of the working cabinet;
[0147] The determination module 604 is further used to traverse various positions in the plane area of the cabinet in the computer room to determine an adjacent position adjacent to the target position;
[0148] The determination module 604 is further used to determine the name of the running screen cabinet corresponding to the adjacent position;
[0149] The generating module 606 is used to generate a corresponding work ticket according to a preset ticket format and based on the working cabinet name of the working cabinet and the running cabinet name of the running cabinet.
[0150] In one of the embodiments, the determination module 604 is also used to obtain a two-dimensional matrix corresponding to the plane area of the computer room cabinet; the two-dimensional matrix is obtained by converting the data type of the name of each cabinet in the plane area of the computer room cabinet from an array type to a matrix type, and segmenting based on a matrix segmentation parameter, and the matrix segmentation parameter corresponds to the plane area of the computer room cabinet; based on the name of the working cabinet, traverse the two-dimensional matrix to obtain the index of the working cabinet in the two-dimensional matrix; based on the index, determine the target position of the working cabinet in the plane area of the computer room cabinet.
[0151] In one embodiment, the determination module 604 is further used to traverse the two-dimensional matrix by column according to the target position of the working screen cabinet, extract at least one position of the previous position and the next position of the column where the target position of the working screen cabinet is located, and obtain an adjacent position adjacent to the target position.
[0152] In one of the embodiments, the determination module 604 is also used to determine a target array corresponding to the plane area of the computer room cabinet, in which the cabinet name and cabinet status are stored in order; the target array is traversed, and the cabinet name corresponding to the cabinet status being selected is used as the working cabinet name.
[0153] In one embodiment, the generating module 606 further includes a first generating module and a second generating module, wherein the first generating module is used to perform a first text formatting process on the working cabinet name based on the first ticket format to obtain a first signboard safety measure text, and output the first signboard safety measure text to the working cabinet signboard position of the visual interface to obtain a first working ticket; and
[0154] The second generation module is used to perform a second text formatting process on the operating cabinet name based on the second ticket format to obtain a second signboard safety measures text, and output the second signboard safety measures text to the operating cabinet signboard position of the visualization interface to obtain a second work ticket.
[0155] In one of the embodiments, there are multiple working screen cabinets, and the second generating module is further used to combine the operating screen cabinet names according to the second bill format and based on the operating screen cabinet names corresponding to the respective working screen cabinets to obtain a combined text; delete the operating screen cabinet names that appear repeatedly in the multiple operating screen cabinet names in the combined text; delete the operating screen cabinet names that are the same as the working screen cabinet names in the multiple operating screen cabinet names in the combined text; and delete the redundant symbols after deletion in the combined text to obtain a second hanging safety measures text.
[0156] The above-mentioned work ticket generating device, by pre-establishing a two-dimensional matrix corresponding to the plane area of the cabinet in the machine room, first obtains the name of the work cabinet, then traverses the two-dimensional matrix to determine the target position of the work cabinet; traverses the two-dimensional matrix by column to determine the position of the running cabinet; according to the position of the running cabinet, determines the running cabinet name of the running cabinet; finally, according to the preset ticket format, the work cabinet name and the running cabinet name are output after text formatting, and the safety measures text of the work cabinet and the safety measures text of the running cabinet are obtained, and the corresponding work ticket is generated in the visual interface. The present application can improve the accuracy of filling in the safety measures of the work ticket, avoid filling in errors caused by manually filling in the work ticket, and avoid listing errors caused by filling in the work sheet safety measures incorrectly.
[0157] Each module in the above-mentioned work ticket generating device can be implemented in whole or in part by software, hardware and their combination. Each module can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.
[0158] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a work ticket generation method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0159] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0160] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: obtaining a working screen cabinet selected in a visual interface, and determining a working screen cabinet name of the working screen cabinet; based on the working screen cabinet name, determining a target position of the working screen cabinet in a plane area of a computer room screen cabinet; traversing various positions in the plane area of a computer room screen cabinet, and determining an adjacent position adjacent to the target position; determining an operating screen cabinet name of an operating screen cabinet corresponding to the adjacent position; and generating a corresponding work ticket according to a preset ticket format and based on the working screen cabinet name of the working screen cabinet and the operating screen cabinet name of the operating screen cabinet.
[0161] In one embodiment, the processor also implements the following steps when executing the computer program: obtaining a two-dimensional matrix corresponding to the plane area of the computer room cabinet; the two-dimensional matrix is obtained by converting the data type of the name of each cabinet in the plane area of the computer room cabinet from an array type to a matrix type, and segmenting based on matrix segmentation parameters, and the matrix segmentation parameters correspond to the plane area of the computer room cabinet; based on the name of the working cabinet, traversing the two-dimensional matrix to obtain the index of the working cabinet in the two-dimensional matrix; determining the target position of the working cabinet in the plane area of the computer room cabinet based on the index.
[0162] In one embodiment, the processor also implements the following steps when executing the computer program: according to the target position of the working screen cabinet, traverse the two-dimensional matrix by column, extract at least one of the previous position and the next position of the column where the target position of the working screen cabinet is located, and obtain an adjacent position adjacent to the target position.
[0163] In one embodiment, the processor also implements the following steps when executing the computer program: determining a target array corresponding to the plane area of the computer room cabinet, the target array storing the cabinet name and the cabinet status in order; traversing the target array, and taking the cabinet name corresponding to the selected cabinet status as the working cabinet name.
[0164] In one embodiment, the processor also implements the following steps when executing the computer program: based on the first ticket format, the working screen cabinet name is subjected to a first text formatting process to obtain a first signboard safety measures text, and the first signboard safety measures text is output to the working screen cabinet signboard position of the visual interface to obtain a first work ticket; based on the second ticket format, the running screen cabinet name is subjected to a second text formatting process to obtain a second signboard safety measures text, and the second signboard safety measures text is output to the running screen cabinet signboard position of the visual interface to obtain a second work ticket.
[0165] In one embodiment, the processor also implements the following steps when executing the computer program: combining according to the second ticket format and based on the operating cabinet names of the operating cabinets corresponding to each working cabinet, to obtain a combined text; deleting the operating cabinet names that appear repeatedly in multiple operating cabinet names in the combined text; deleting the operating cabinet names that are the same as the working cabinet names in multiple operating cabinet names in the combined text; deleting the redundant symbols after deletion in the combined text to obtain a second signboard safety measures text.
[0166] The above-mentioned computer equipment, by pre-establishing a two-dimensional matrix corresponding to the plane area of the computer room cabinet, first obtains the name of the working cabinet of the working cabinet, then traverses the two-dimensional matrix to determine the target position of the working cabinet; traverses the two-dimensional matrix by column to determine the position of the running cabinet; according to the position of the running cabinet, determines the running cabinet name of the running cabinet; finally, according to the preset ticket format, the working cabinet name and the running cabinet name are output after text formatting, and the safety measures text of the working cabinet and the safety measures text of the running cabinet are obtained, and the corresponding work ticket is generated in the visual interface. The present application can improve the accuracy of filling in the safety measures of the work ticket, avoid filling in errors caused by manually filling in the work ticket, and avoid listing errors caused by incorrect filling in of the work sheet safety measures.
[0167] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: obtaining a working screen cabinet selected in a visual interface, and determining the working screen cabinet name of the working screen cabinet; based on the working screen cabinet name, determining the target position of the working screen cabinet in the plane area of the computer room screen cabinet; traversing each position in the plane area of the computer room screen cabinet, and determining an adjacent position adjacent to the target position; determining an operating screen cabinet name of an operating screen cabinet corresponding to the adjacent position; and generating a corresponding work ticket according to a preset ticket format and based on the working screen cabinet name of the working screen cabinet and the operating screen cabinet name of the operating screen cabinet.
[0168] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining a two-dimensional matrix corresponding to the plane area of the computer room cabinet; the two-dimensional matrix is obtained by converting the data type of the name of each cabinet in the plane area of the computer room cabinet from an array type to a matrix type, and segmenting based on matrix segmentation parameters, and the matrix segmentation parameters correspond to the plane area of the computer room cabinet; based on the name of the working cabinet, traversing the two-dimensional matrix to obtain the index of the working cabinet in the two-dimensional matrix; determining the target position of the working cabinet in the plane area of the computer room cabinet based on the index.
[0169] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: according to the target position of the working screen cabinet, the two-dimensional matrix is traversed by column, and at least one of the previous position and the next position of the column where the target position of the working screen cabinet is located is extracted to obtain an adjacent position adjacent to the target position.
[0170] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: determining a target array corresponding to the plane area of the computer room cabinet, in which the cabinet names and cabinet states are stored in order; traversing the target array, and taking the cabinet name corresponding to the selected cabinet state as the working cabinet name.
[0171] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: based on the first ticket format, the working screen cabinet name is subjected to a first text formatting process to obtain a first signboard safety measure text, and the first signboard safety measure text is output to the working screen cabinet signboard position of the visual interface to obtain a first work ticket; based on the second ticket format, the running screen cabinet name is subjected to a second text formatting process to obtain a second signboard safety measure text, and the second signboard safety measure text is output to the running screen cabinet signboard position of the visual interface to obtain a second work ticket.
[0172] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: according to the second ticket format, and based on the operating cabinet names of the operating cabinets corresponding to each working cabinet, a combined text is obtained; in the combined text, repeated operating cabinet names in multiple operating cabinet names are deleted; in the combined text, the operating cabinet names that are the same as the working cabinet names in multiple operating cabinet names are deleted; in the combined text, redundant symbols are deleted to obtain a second signboard safety measures text.
[0173] The above-mentioned computer-readable storage medium, by pre-establishing a two-dimensional matrix corresponding to the plane area of the cabinet in the computer room, first obtains the name of the working cabinet of the working cabinet, then traverses the two-dimensional matrix to determine the target position of the working cabinet; traverses the two-dimensional matrix by column to determine the position of the running cabinet; according to the position of the running cabinet, determines the running cabinet name of the running cabinet; finally, according to the preset ticket format, the working cabinet name and the running cabinet name are output after text formatting, and the safety measures text of the working cabinet and the safety measures text of the running cabinet are obtained, and the corresponding work ticket is generated in the visual interface. The present application can improve the accuracy of filling in the safety measures of the work ticket, avoid filling in errors caused by manually filling in the work ticket, and avoid listing errors caused by incorrect filling in of the work sheet safety measures.
[0174] In one embodiment, a computer program product is provided, including a computer program, which implements the following steps when executed by a processor: obtaining a working screen cabinet selected in a visual interface, and determining the working screen cabinet name of the working screen cabinet; based on the working screen cabinet name, determining the target position of the working screen cabinet in the plane area of the computer room screen cabinet; traversing each position in the plane area of the computer room screen cabinet to determine an adjacent position adjacent to the target position; determining an operating screen cabinet name of an operating screen cabinet corresponding to the adjacent position; and generating a corresponding work ticket according to a preset ticket format and based on the working screen cabinet name of the working screen cabinet and the operating screen cabinet name of the operating screen cabinet.
[0175] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining a two-dimensional matrix corresponding to the plane area of the computer room cabinet; the two-dimensional matrix is obtained by converting the data type of the name of each cabinet in the plane area of the computer room cabinet from an array type to a matrix type, and segmenting based on matrix segmentation parameters, and the matrix segmentation parameters correspond to the plane area of the computer room cabinet; based on the name of the working cabinet, traversing the two-dimensional matrix to obtain the index of the working cabinet in the two-dimensional matrix; determining the target position of the working cabinet in the plane area of the computer room cabinet based on the index.
[0176] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: according to the target position of the working screen cabinet, the two-dimensional matrix is traversed by column, and at least one of the previous position and the next position of the column where the target position of the working screen cabinet is located is extracted to obtain an adjacent position adjacent to the target position.
[0177] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: determining a target array corresponding to the plane area of the computer room cabinet, in which the cabinet names and cabinet states are stored in order; traversing the target array, and taking the cabinet name corresponding to the selected cabinet state as the working cabinet name.
[0178] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: based on the first ticket format, the working screen cabinet name is subjected to a first text formatting process to obtain a first signboard safety measure text, and the first signboard safety measure text is output to the working screen cabinet signboard position of the visual interface to obtain a first work ticket; based on the second ticket format, the running screen cabinet name is subjected to a second text formatting process to obtain a second signboard safety measure text, and the second signboard safety measure text is output to the running screen cabinet signboard position of the visual interface to obtain a second work ticket.
[0179] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: according to the second ticket format, and based on the operating cabinet names of the operating cabinets corresponding to each working cabinet, a combined text is obtained; in the combined text, repeated operating cabinet names in multiple operating cabinet names are deleted; in the combined text, the operating cabinet names that are the same as the working cabinet names in multiple operating cabinet names are deleted; in the combined text, redundant symbols are deleted to obtain a second signboard safety measures text.
[0180] The above-mentioned computer program product, by pre-establishing a two-dimensional matrix corresponding to the plane area of the cabinet in the computer room, first obtains the name of the working cabinet of the working cabinet, then traverses the two-dimensional matrix to determine the target position of the working cabinet; traverses the two-dimensional matrix by column to determine the position of the running cabinet; according to the position of the running cabinet, determines the running cabinet name of the running cabinet; finally, according to the preset ticket format, the working cabinet name and the running cabinet name are output after text formatting, and the safety measures text of the working cabinet and the safety measures text of the running cabinet are obtained, and the corresponding work ticket is generated in the visual interface. The present application can improve the accuracy of filling in the safety measures of the work ticket, avoid filling in errors caused by manually filling in the work ticket, and avoid listing errors caused by filling in the work sheet safety measures incorrectly.
[0181] The above-mentioned computer program product, by pre-establishing a two-dimensional matrix corresponding to the plane area of the cabinet in the computer room, first obtains the name of the working cabinet of the working cabinet, then traverses the two-dimensional matrix to determine the target position of the working cabinet; traverses the two-dimensional matrix by column to determine the position of the running cabinet; according to the position of the running cabinet, determines the running cabinet name of the running cabinet; finally, according to the preset ticket format, the working cabinet name and the running cabinet name are output after text formatting, and the safety measures text of the working cabinet and the safety measures text of the running cabinet are obtained, and the corresponding work ticket is generated in the visual interface. The present application can improve the accuracy of filling in the safety measures of the work ticket, avoid filling in errors caused by manually filling in the work ticket, and avoid listing errors caused by filling in the work sheet safety measures incorrectly.
[0182] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0183] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0184] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0185] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for generating a work ticket, characterized in that: The method comprises: Obtain the working screen cabinet selected in the visualization interface, and determine the working screen cabinet name of the working screen cabinet; Based on the name of the working cabinet, determine the target position of the working cabinet in the cabinet plane area of the computer room; Traversing each position in the plane area of the cabinet in the computer room to determine an adjacent position adjacent to the target position; Determine the name of the operating screen cabinet corresponding to the adjacent position; Generate a corresponding work ticket according to a preset ticket format and based on the working screen cabinet name of the working screen cabinet and the running screen cabinet name of the running screen cabinet; Wherein, determining the target position of the working screen cabinet in the plane area of the screen cabinet in the computer room based on the name of the working screen cabinet includes: Obtain a two-dimensional matrix corresponding to the plane area of the computer room cabinet; the two-dimensional matrix is obtained by converting the data type of the name of each cabinet in the plane area of the computer room cabinet from an array type to a matrix type, and segmenting based on a matrix segmentation parameter, wherein the matrix segmentation parameter corresponds to the plane area of the computer room cabinet; Based on the name of the working screen cabinet, traverse the two-dimensional matrix to obtain the index of the working screen cabinet in the two-dimensional matrix; Determine the target position of the working cabinet in the plane area of the cabinet in the computer room based on the index; The generating of the corresponding work ticket according to the preset ticket format and based on the working screen cabinet name of the working screen cabinet and the running screen cabinet name of the running screen cabinet includes: Based on the first bill format, the work screen cabinet name is subjected to a first text formatting process to obtain a first signboard safety measure text, and the first signboard safety measure text is output to the work screen cabinet signboard position of the visualization interface to obtain a first work ticket; Based on the second bill format, the name of the operating cabinet is subjected to a second text formatting process to obtain a second signboard safety measures text, and the second signboard safety measures text is output to the operating cabinet signboard position of the visualization interface to obtain a second work ticket.
2. The method according to claim 1, characterized in that The traversing various positions in the plane area of the cabinet in the computer room to determine an adjacent position adjacent to the target position includes: According to the target position of the working screen cabinet, the two-dimensional matrix is traversed column by column, and at least one of the previous position and the next position of the column where the target position of the working screen cabinet is located is extracted to obtain an adjacent position adjacent to the target position.
3. The method according to claim 1, characterized in that The step of determining the working screen cabinet name of the working screen cabinet comprises: Determine a target array corresponding to the plane area of the cabinet in the computer room, wherein the cabinet name and cabinet status are stored in order in the target array; The target array is traversed, and the screen cabinet name corresponding to the screen cabinet state being the selected state is used as the working screen cabinet name.
4. The method according to claim 1, characterized in that: There are multiple working screen cabinets. Based on the second bill format, the names of the operating screen cabinets are subjected to second text formatting to obtain the second hanging safety measures text, including: According to the second bill format, and based on the names of the operation cabinets corresponding to the respective working cabinets, a combination text is obtained; Deleting the running screen cabinet names that appear repeatedly in the multiple running screen cabinet names in the combined text; Delete the running panel cabinet name that is the same as the working panel cabinet name among the multiple running panel cabinet names in the combined text; The redundant symbols in the combined text are deleted to obtain a second signboard safety measures text.
5. A work ticket generating device, characterized in that: The device comprises: An acquisition module, used to acquire the working screen cabinet selected in the visualization interface, and determine the working screen cabinet name of the working screen cabinet; A determination module, used to determine the target position of the working screen cabinet in the plane area of the computer room screen cabinet based on the name of the working screen cabinet; The determination module is further used to traverse various positions in the plane area of the computer room cabinet to determine an adjacent position adjacent to the target position; The determination module is further used to determine the name of the running screen cabinet corresponding to the adjacent position; A generation module, used for generating a corresponding work ticket according to a preset ticket format and based on the working screen cabinet name of the working screen cabinet and the running screen cabinet name of the running screen cabinet; Wherein, the determination module is also used to obtain a two-dimensional matrix corresponding to the plane area of the computer room cabinet; the two-dimensional matrix is obtained by converting the data type of the name of each cabinet in the plane area of the computer room cabinet from an array type to a matrix type, and segmenting based on a matrix segmentation parameter, and the matrix segmentation parameter corresponds to the plane area of the computer room cabinet; based on the name of the working cabinet, traverse the two-dimensional matrix to obtain the index of the working cabinet in the two-dimensional matrix; based on the index, determine the target position of the working cabinet in the plane area of the computer room cabinet; The generation module also includes a first generation module and a second generation module. The first generation module is used to perform a first text formatting process on the working screen cabinet name based on the first ticket format to obtain a first signboard safety measures text, and output the first signboard safety measures text to the working screen cabinet signboard position of the visual interface to obtain a first work ticket; the second generation module is used to perform a second text formatting process on the operating screen cabinet name based on the second ticket format to obtain a second signboard safety measures text, and output the second signboard safety measures text to the operating screen cabinet signboard position of the visual interface to obtain a second work ticket.
6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Secondary equipment screen cabinet operation method and device, computer equipment and storage medium
CN111583453A
Stock prediction method fusing generative adversarial network and two-dimensional attention mechanism
CN113129148A