Protocol template generation method, device, electronic device and storage medium

By obtaining and inserting matching placeholder controls in the ESOP system, adjusting their position and inserting character information, the problem of insufficient scalability of protocol generation in the existing technology is solved, efficient and flexible protocol template generation is achieved, and users are enhanced Experience.

CN114861623BActive Publication Date: 2024-11-26SHENZHEN FUTU NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210500394.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-09
Publication Date
2024-11-26
Estimated Expiration
2042-05-09

AI Technical Summary

Technical Problem

The existing protocol generation method is insufficiently scalable in the ESOP system, resulting in low generation efficiency and poor user experience, making it difficult to flexibly modify character information in the protocol template.

Method used

By obtaining the character information to be added, determine the matching target placeholder control, insert the preview page of the initial protocol template from the preset placeholder control library, adjust the control position to avoid overlap, and insert the character information into In the corresponding location, a protocol template based on PDF format is generated.

Benefits of technology

It improves the efficiency and flexibility of protocol template generation, enhances user experience, and supports the efficiency of online generation of signature agreements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114861623B_ABST
    Figure CN114861623B_ABST
Patent Text Reader

Abstract

The embodiments of the present application disclose a method for generating an agreement template, an apparatus for generating an agreement template, an electronic device, and a computer-readable storage medium, which are applied to an ESOP system. The method for generating an agreement template includes: obtaining character information to be added; determining a target placeholder control that matches the character information from a preset placeholder control library; inserting the target placeholder control into the preview page that triggers the initial agreement template, wherein the initial agreement template includes a document in PDF format; inserting the character information into the location of the target placeholder control to generate an agreement template based on the preview page containing the character information. The embodiments provided by the present application can improve the extensibility and flexibility of character information in the agreement template and improve the efficiency of generating signature agreements online.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for generating a protocol template. Background Art

[0002] ESOP (Employee Stock Ownership Plans), also known as the employee stock ownership system, is a form of employee ownership and an institutional arrangement for business owners and employees to share business ownership and future earnings rights. Employees own part of the company's property rights by purchasing part of the company's stock and obtain corresponding management rights. The purpose of implementing the employee stock ownership plan is to enable employees to become shareholders of the company. The ESOP system is a system that operates as a corporate entity and centrally manages part or all of the equity obtained through the employee stock ownership plan. With the development of the business and the increasing number of companies served, the ESOP system needs to access more and more scenarios. Therefore, the ESOP system usually needs to pre-generate multiple agreement templates to cope with scenarios that require access to agreements, but the existing agreement generation method is not scalable enough, resulting in low generation efficiency. Summary of the invention

[0003] To solve the above technical problems, the embodiments of the present application provide a method for generating a protocol template, a device for generating a protocol template, an electronic device, and a computer-readable storage medium. The embodiments provided in the present application can improve the extensibility and flexibility of character information in the protocol template and improve the generation efficiency of the protocol template.

[0004] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0005] According to one aspect of an embodiment of the present application, a method for generating an agreement template is provided, which is applied to an ESOP system, and includes: obtaining character information to be added; determining a target placeholder control that matches the character information from a preset placeholder control library; in a preview page that triggers an initial agreement template, inserting a target placeholder control that matches the character information into the preview page, wherein the initial agreement template includes a document in PDF format; inserting the character information into the preview page at the location of the target placeholder control, so as to generate an agreement template based on the preview page containing the character information.

[0006] In an exemplary embodiment, in a preview page that triggers an initial protocol template, before inserting a target placeholder control that matches the character information into the preview page, determining a target placeholder control that matches the character information from a placeholder control library includes: determining the type of the character information, the type of character information includes text, picture, and number; matching the type of the character information with a control in a preset placeholder control library to obtain a target placeholder control, the placeholder control library including multiple placeholder controls and a type corresponding to each placeholder control.

[0007] In an exemplary embodiment, inserting the character information into the location where the placeholder control is located in the preview page includes: inserting the character information into the location where the target placeholder control is located according to the format information corresponding to the target placeholder control.

[0008] In an exemplary embodiment, in a preview page that triggers the initial agreement template, after inserting a target placeholder control that matches the character information into the preview page, the method also includes: identifying whether there is a first placeholder control of the same type as that corresponding to the target placeholder control in the preview page; if the recognition result obtained indicates that there is a first placeholder control, adjusting the position of the target placeholder control in the preview page so that the target placeholder control is adjacent to the first placeholder control.

[0009] In an exemplary embodiment, adjusting the position of the target placeholder control in the preview page includes: if it is identified that there is a second placeholder control adjacent to the first placeholder control, swapping the position of the second placeholder control and the target placeholder control, and the type corresponding to the second placeholder control is different from the type corresponding to the first placeholder control.

[0010] In an exemplary embodiment, after inserting a target placeholder control matching the character information into the preview page that triggers the initial agreement template, the method further includes: adjusting the position of the target placeholder control in the preview page in response to an operation instruction triggered in the preview page, the operation instruction being generated based on a position adjustment operation input triggered by the user.

[0011] In an exemplary embodiment, the character information includes a character name and character detailed information; inserting the character information into the location of a target placeholder control in a preview page includes: inserting the character name into the location of the placeholder control, and hiding the character detailed information in the form of a pop-up window on the preview page, wherein, in response to a user triggering the target placeholder control displayed in the preview page, the character detailed information is displayed in the form of a pop-up window on the preview interface.

[0012] According to one aspect of an embodiment of the present application, a device for generating a protocol template is provided, including: an acquisition module for acquiring character information to be added; a determination module for determining a target placeholder control that matches the character information from a preset placeholder control library; a first insertion module for inserting a target placeholder control that matches the character information into a preview page that triggers an initial protocol template, wherein the initial protocol template includes a document in PDF format; and a second insertion module for inserting the character information into the preview page at the location of the target placeholder control, so as to generate a protocol template based on the preview page containing the character information.

[0013] According to one aspect of an embodiment of the present application, an electronic device is provided, including a processor and a memory, wherein computer-readable instructions are stored in the memory, and when the computer-readable instructions are executed by the processor, the above-mentioned abnormality testing method of the ESOP system is implemented.

[0014] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the method for generating a protocol template as provided above.

[0015] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method for generating a protocol template provided in the above-mentioned various optional embodiments.

[0016] In the technical solution provided in the embodiment of the present application, a target placeholder control matching the character information is first inserted into a preview page of an initial agreement template of a document in PDF format, and then the character information is inserted into the position of the target placeholder control in the preview page to generate an agreement template based on the preview page containing the character information. The above method generates an agreement template that finally contains the character information to be added based on the initial agreement template in PDF format, decoupling the configuration process of the character information and the generation process of the initial agreement template in PDF format. After the initial agreement template is generated, character information can also be added to the initial agreement template or the character information in the agreement template can be changed, which can improve the extensibility and flexibility of the character information in the agreement template and improve the efficiency of online generation of signature agreements.

[0017] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0019] Figure 1 is a flow chart of a method for generating a protocol template shown in an exemplary embodiment of the present application;

[0020] Figure 2 is a schematic diagram of a system field library shown in an exemplary embodiment of the present application;

[0021] Figure 3 is a schematic diagram of a protocol template list provided in this embodiment;

[0022] Figure 4 is a block diagram of an abnormality testing device of an ESOP system shown in an exemplary embodiment of the present application;

[0023] Figure 5 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION

[0024] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0025] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0026] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0027] It should also be noted that the "multiple" mentioned in this application refers to two or more than two. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship.

[0028] At present, the existing method of generating an agreement template is to insert multiple fixed placeholders into a document in docx format, and then associate specific data information with the placeholders when filling in the agreement template. When filling in the agreement template, each data information is inserted into the position of the corresponding placeholder to obtain the agreement.

[0029] The above-mentioned method of generating the agreement template has at least the following three disadvantages:

[0030] 1. High cost of use: Because the placeholders of docx format files are fixed, when configuring the template, you need to systematically learn the meaning of each fixed placeholder to ensure the correctness of parsing the template.

[0031] 2. Poor scalability and flexibility: If you need to add a new field to a template or modify the filling position of a field, you need to modify the source file to add a placeholder identifier and then go through the parsing and configuration process again; if there is a new placeholder identifier, a lot of existing code needs to be modified to adapt to a new placeholder.

[0032] 3. Poor user experience: The position of the field is heavily dependent on the configuration of the placeholder in the docx source file. If the field position does not achieve the expected effect, it is necessary to re-edit the source file and go through the process again. At the same time, the field configuration does not support the modification of its style and lacks flexibility, resulting in a poor user experience.

[0033] To solve at least the above problems existing in the prior art, the embodiments of the present application respectively propose a method for generating a protocol template, a device for generating a protocol template, an electronic device, and a computer-readable storage medium. These embodiments will be described in detail below.

[0034] See also Figure 1 , Figure 1 is a flowchart of a method for generating a protocol template shown in an exemplary embodiment of the present application, which is applied to an ESOP system, such as Figure 1 As shown, the method for generating a protocol template provided in this embodiment includes steps S101 to S104, and the detailed description is as follows:

[0035] Step S101: Acquire character information to be added.

[0036] In this embodiment, the character information to be added is a set of information to be added to the initial agreement template. The character information includes but is not limited to employee information, enterprise information, grant information, attribution information, attribution process, signing information and date, etc., and is not specifically limited here.

[0037] Usually, each row in a table is called a "record", and each record contains all the information in that row, just like all the information about a person in an address book database. However, records in the database do not have specific record names, and the row number is often used to indicate which record it is. A field is a smaller unit than a record, and a collection of fields makes up a record. Each field describes a certain feature of the data, that is, a data item, and has a unique field identifier for the computer to recognize.

[0038] Exemplarily, the character information includes system fields and supplementary fields, wherein the system fields are pre-generated character information applicable to a variety of agreement templates, and the system field library composed of the generated multiple system fields is saved in the ESOP system for use when creating agreement templates. Exemplarily, the supplementary fields are unique character information applicable to certain agreement templates. This type of character information does not need to be pre-generated. Before creating the corresponding agreement template, it is generated based on the user's trigger operation. Due to the non-universal characteristics of the supplementary fields, the supplementary fields are distinguished from the system fields and are not saved in advance in the ESOP system, thereby reducing the storage pressure of the server where the ESOP system is located.

[0039] Exemplarily, the supplementary field is character information that has not been saved in the ESOP system in advance. When generating the agreement template, the system field library is first queried whether it includes the character information to be added. If the character information to be added cannot be found, the supplementary field is obtained from outside the ESOP system.

[0040] For example, see Figure 2 , Figure 2 is a schematic diagram of a system field library shown in an exemplary embodiment of the present application, such as Figure 2As shown, the system field library includes four categories of system fields, namely employee information, grant information, vesting information and vesting process, wherein the system fields of the employee information category include system fields named incentive type, grant date and grant quantity; the system fields of the vesting information category include system fields named vesting rule name, vesting rule details and vesting start date; the system fields of the vesting process category include system fields named vesting date and vesting quantity; the system fields of the grant information category include system fields named incentive type, grant date and grant quantity. When generating an agreement template, the system fields are obtained from the system field database and inserted into the initial agreement template to obtain the agreement template.

[0041] Optionally, in this embodiment, the association relationship between the protocol name and the character information of the initial protocol template can also be pre-set. After the initial protocol template is triggered, the protocol name of the initial protocol template is identified, and the protocol name and the character information are matched according to the association relationship to determine the character information corresponding to the protocol name. The character information is then directly loaded into the blank space of the page in the initial protocol template, and the position corresponding to each character information is automatically identified and automatically adjusted. After that, it only needs to be confirmed manually. The above method improves the efficiency of generating the prior protocol.

[0042] Exemplarily, before acquiring the character information to be added, the method for generating a protocol template provided in this embodiment further includes the following steps:

[0043] Step S201: Generate a document in docx format based on the immutable protocol information.

[0044] In this embodiment, the immutable agreement information is information that is essential for generating an agreement template, and the location and content will not change in subsequent processes. For example, in an agreement template document, the content that indicates that the document is an agreement document is usually written at the beginning of the document page. For example, the characters "Resignation Agreement" are inserted in the center of the first line of the document to indicate that the document is a resignation agreement, which is an agreement document that needs to be signed before an employee leaves. Usually, the type of an agreement template will not change easily, so the "Resignation Agreement" is an immutable agreement information.

[0045] Exemplarily, a placeholder corresponding to the immutable protocol information is inserted into a blank docx format document, and then the immutable protocol information is inserted into the position corresponding to the placeholder in the blank docx format document to obtain a docx format document.

[0046] Step S202: Convert the document in docx format into a document in PDF format to obtain an initial agreement template.

[0047] Since the docx format document needs to edit the content, format and position of each character information in the docx format document, it is completely dependent on fixed placeholders, and the docx format agreement template does not support adding or changing character information after it is created. If you want to add or change character information, you need to re-edit the docx format document and re-upload it. Compared with the docx format document, the PDF format document can decouple the character information configuration process from the agreement template document. After creating the initial agreement template, you can directly add or modify character information based on the initial agreement template without relying on fixed placeholders, and you can add or modify character information after the agreement template is created.

[0048] Exemplarily, the ESOP system directly obtains the initial agreement template in PDF format from an external device to improve the efficiency of generating the agreement template.

[0049] Exemplarily, the following checks are performed when the initial agreement template is uploaded:

[0050] Verify the file size of the initial agreement template, for example, the file size <= 8MB. If it does not meet the requirements, a red error message will be displayed: Upload failed, the file size limit is 8MB.

[0051] Verify the file format of the initial agreement template, for example, determine whether the initial agreement template is a document in PDF format. If not, a red error message will be displayed: Upload failed. Only documents in PDF format are uploaded.

[0052] Step S102: determining a target placeholder control that matches the character information from a preset placeholder control library.

[0053] As the name implies, a placeholder is a symbol that first occupies a fixed position in a document and then adds content to the placeholder. It is widely used in the editing of various documents in computers. Usually, there is a one-to-one correspondence between character information and placeholder controls. Before inserting character information into the initial agreement template, a placeholder control that matches the character information must be used to "occupy" a position in the initial agreement template, and then the corresponding character information can be inserted into the initial agreement template.

[0054] A control is an encapsulation of data and methods. A control can have its own properties and methods. Properties are simple accessors to control data, and methods are some simple and visible functions of a control. A placeholder control is a control that includes a placeholder.

[0055] In this embodiment, the target placeholder control includes at least one.

[0056] Optionally, in this embodiment, each placeholder control has its corresponding control name, and the correspondence between the character information and the control name of the placeholder control is pre-set in the placeholder control library. Then, the control name in the placeholder control library can be matched by the character information to find the target placeholder control corresponding to the control name matching the character information. The specific matching method can be to match the character information Ino_cha with the control name Nam_con in the placeholder control library by character matching, A i Indicates the individual characters in the character information Ino_cha, B j Indicates the various constituent characters in the control name Nam_con; i and j represent the character information and the number of characters in the control name respectively. When i≤j, the correlation between the two Deg_cor is calculated as:

[0057]

[0058] When i>j, the correlation between the two is calculated as:

[0059]

[0060] The above method matches the character information and the control name by calculating the character association degree, determines the control name related to the character information, and thereby determines the target placeholder control, thereby improving the efficiency and accuracy of control processing.

[0061] Step S103: In the preview page that triggers the initial agreement template, insert a target placeholder control into the preview page.

[0062] In this embodiment, the initial agreement template includes a document in PDF format. The preview page of the initial agreement template can clearly view the layout of the information in the initial agreement template whose position and content are fixed, so as to avoid the phenomenon of content overlap when the target placeholder control is inserted into the preview page, which affects the appearance of the agreement template. Exemplarily, the preview page of the initial agreement template is opened in response to the ESOP system's operation instruction on the initial agreement template.

[0063] In this embodiment, multiple placeholder controls are created and saved in advance, and a target placeholder control matching the character information is determined from the multiple placeholder controls, and then the target placeholder control is inserted into the preview page. Exemplarily, a data table of the correspondence between the character information and the placeholder controls is pre-built, and then the target placeholder control matching the character information to be added is obtained according to the data table.

[0064] In some application scenarios, after the target placeholder control is inserted into the preview page, the position of the target placeholder control on the preview page needs to be adjusted. For example, after the character information is inserted into the current position of the target placeholder control, it is found that the character information overlaps with other information in the initial agreement template. In this case, the position of the template placeholder control needs to be adjusted so that the character information does not overlap with other information.

[0065] Exemplarily, in response to an operation instruction triggered in the preview page, the position of the target placeholder control in the preview page is adjusted, and the operation instruction is generated based on the position adjustment operation triggered by the user. Exemplarily, in response to the user dragging or clicking the target placeholder control, the position of the target placeholder control in the preview page is adjusted. In the above manner, the position of the target placeholder control in the preview page can be adjusted arbitrarily, and it can also be explained that the protocol template generation method provided in this embodiment does not rely on fixed placeholders compared to the prior art, and can adjust the position of character information in the protocol template at any time, thereby improving the user experience.

[0066] Step S104: inserting the character information into the location of the target placeholder control to generate a protocol template based on the preview page containing the character information.

[0067] This embodiment does not limit the location of the target placeholder control in the preview page, as long as it is ensured that the target placeholder control does not overlap with the information originally included in the initial agreement template after being inserted into the preview page.

[0068] Exemplarily, a corresponding placeholder watermark is set for each placeholder control to identify the position of the corresponding placeholder control in the preview page, so as to facilitate inserting character information into the position of the target placeholder control in the preview page, wherein the placeholder watermark may include a text watermark, a graphic watermark or a picture watermark, which is not specifically limited here. After the character information is inserted into the watermark position corresponding to the target placeholder control, the content in the watermark is automatically deleted.

[0069] Exemplarily, each placeholder control includes corresponding format information, and the format corresponding to the placeholder control includes the font, font size, insertion method, boldness, character color, etc. of the character information, which is not specifically limited here, and the character information is inserted into the position where the target placeholder control is located according to the format information corresponding to the target placeholder control. For example, the format information corresponding to the target placeholder control is: the format applicable to the character information is Kaiti, size 14, bold, and no color, then after the character information is inserted into the position where the target placeholder control is located, the format of the characters in the character information is adjusted to Kaiti, size 14, bold, and no color.

[0070] In this embodiment, after the character information is inserted into the location of the target placeholder control in the preview page, the protocol template is generated based on the preview page containing the character information. Exemplarily, the preview page containing the character information is directly saved and closed, thereby generating the protocol template.

[0071] Exemplarily, the character information includes a character name and character detailed information. The character name is inserted into the location of the placeholder control, and the character detailed information is hidden on the preview page in the form of a pop-up window.

[0072] Since the space for accommodating character information in the protocol template is limited, if all the data included in the character information is directly displayed on the protocol template, it may not only waste space, but also make the protocol template only able to accommodate too little character information, and it is more likely that the character information that the protocol template must contain cannot be accommodated. Based on this, this embodiment can greatly save the space of the protocol template and improve space utilization by displaying the character name in the preview page and hiding the character detailed information in the form of a pop-up window.

[0073] In response to the user triggering the target placeholder control displayed in the preview page, the character detailed information is displayed in the preview interface in the form of a pop-up window. Exemplarily, the character name is displayed in real time on the watermark corresponding to the target placeholder control, and the character name is displayed according to the format information corresponding to the target placeholder control. In response to the user triggering the watermark corresponding to the target placeholder control, the character detailed information is displayed in a pop-up window outside the watermark, so that the character detailed information and the character name do not block each other, so as to avoid affecting the user's perception.

[0074] The method for generating an agreement template provided in this embodiment is applied to the ESOP system, and includes: obtaining character information to be added; in the preview page that triggers the initial agreement template, inserting a target placeholder control that matches the character information into the preview page, wherein the initial agreement template includes a document in PDF format; inserting the character information into the preview page at the location of the target placeholder control, so as to generate an agreement template based on the preview page containing the character information. The above method generates an agreement template that ultimately contains the character information to be added based on the initial agreement template in PDF format, decoupling the configuration process of the character information and the generation process of the initial agreement template in PDF format. After the initial agreement template is generated, character information can also be added to the initial agreement template or the character information in the agreement template can be changed, which can improve the extensibility and flexibility of the character information in the agreement template and improve the efficiency of generating signature agreements online.

[0075] Exemplarily, after the agreement template is generated, viewing parameters and notification parameters are configured for the agreement template, wherein the viewing parameters include "view & download", "viewable but not downloadable", and "not viewable or not downloadable", and "view & download" is selected by default.

[0076] The notification parameters include "Message Notification", "Prompt Pop-up", and "Forced Pop-up". "Message Notification" is selected by default. Among them, "Message Notification" means notifying employees via email and system messages; "Prompt Pop-up" means notifying employees via email, system messages, and system pop-up windows, and employees can skip the agreement signing process; "Forced Pop-up" means notifying employees via email, system messages, and system pop-up windows, and employees must complete the signing task of the agreement template before they can continue to use the ESOP system.

[0077] In an exemplary embodiment, step S102 includes steps S301 to S302, which are described in detail as follows:

[0078] Step S301: Determine the type of character information.

[0079] In this embodiment, the types of character information include text, picture, and numerical value.

[0080] In this embodiment, the character information includes the type of character information. The type of character information is text, which indicates that the character detailed information is text information. For example, the character information named "employee name" includes the character detailed information "Zhang San", and the type of the character information is text; similarly, the type of character information is picture, which indicates that the character detailed information is picture information. For example, the character information named "seal" includes the character detailed information as a picture representing the seal of a certain enterprise, and the type of the character information is picture; the type of character information is number, which indicates that the character detailed information is number information. For example, the character information named "signing date" includes the character detailed information as a certain year, month and day, and the type of the character information is number.

[0081] Step S302: Match the type of the character information with a placeholder control in a placeholder control library to obtain a target placeholder control.

[0082] In this embodiment, a placeholder control library including a plurality of placeholder controls and a type corresponding to each placeholder control is generated in advance.

[0083] Exemplarily, the types corresponding to the placeholder control include but are not limited to text, numbers, and pictures. Therefore, when acquiring the target placeholder control corresponding to the character information, this embodiment searches for a placeholder control of the same type as the character information in the placeholder control library based on the type of the character information, and uses it as the target placeholder control.

[0084] Exemplarily, the placeholder control library also includes format information corresponding to the placeholder control. If multiple placeholder controls of the same type as the character information are found from the placeholder control library based on the type of the character information, the target placeholder control is again selected from the multiple placeholder controls of the same type as the character information based on the format information corresponding to the placeholder control. For example, if two placeholder controls of the text type are found from the placeholder control library, they may be set as the third placeholder control and the fourth placeholder control, wherein the text font size specified in the format information of the third placeholder control is smaller than the text font size specified in the format information of the fourth placeholder control, and the type corresponding to the character information is also a text type, then it is determined whether the number of text characters in the character information is greater than a preset threshold, if so, the third placeholder control is selected as the target placeholder control, otherwise the fourth placeholder control is selected as the target placeholder control. In this way, it is possible to flexibly avoid the situation where too much information is included in the character information, which causes information overlap after the character information is inserted into the preview page.

[0085] In an exemplary embodiment, after step S103, the method for generating a protocol template provided in this embodiment further includes steps S401 to S402, which are described in detail as follows:

[0086] Step S401: Identify whether there is a first placeholder control of the same type as the target placeholder control in the preview page.

[0087] In actual application scenarios, inserting character information of the same type into adjacent positions of the preview page is more visually appealing, and the position of the character information is determined by its corresponding placeholder control. Therefore, in this embodiment, placeholder controls of the same type are arranged in adjacent positions.

[0088] Exemplarily, before inserting the character information into the preview page, the type corresponding to the character information is compared with the type of the character information included in the current preview page, so as to identify whether there is a first placeholder control of the same type as that corresponding to the target placeholder control in the preview page.

[0089] Step S402: If the obtained recognition result indicates that the first placeholder control exists, adjust the position of the target placeholder control in the preview page so that the target placeholder control is adjacent to the first placeholder control.

[0090] In this embodiment, the position of the target placeholder control in the preview page is adjusted so that the target placeholder control is adjacent to the first placeholder control, so that after the character information is inserted into the position of the target placeholder control, the character information can be adjacent to the character information at the position of the first placeholder control, thereby improving the visibility of the final protocol template.

[0091] Exemplarily, if at least two first placeholder controls meeting the conditions are identified, the position of the target placeholder control in the preview page is adjusted so that the target placeholder control is adjacent to any one of the first placeholder controls.

[0092] Exemplarily, if it is identified that there is a second placeholder control adjacent to the first placeholder control, the positions of the second placeholder control and the target placeholder control are swapped, wherein the type corresponding to the second placeholder control is different from the type corresponding to the first placeholder control.

[0093] Obviously, if the position of the second placeholder control and the target placeholder control are swapped, the first placeholder control and the template placeholder control will inevitably be adjacent to each other. At the same time, the position of the second placeholder control which is different from the type of the first placeholder control can be adjusted, so that the first placeholder control and the second placeholder control are not adjacent to each other. This embodiment can improve the generation efficiency of the protocol template in one step by swapping the position of the second placeholder control and the target placeholder control.

[0094] By way of example, this embodiment combines the agreement templates corresponding to the same enterprise into an agreement template list and saves it in the ESOP system. For example, the corresponding template name, the business module to which the agreement template belongs, the agreement type, the update time, and the updater are set for each agreement template, and the corresponding display format is set for each parameter. For example, the template name is entered in the form of a text input box, and the maximum number of characters is limited. By way of example, the agreement template list of each enterprise is displayed in reverse order of the update time of the agreement template.

[0095] See also Figure 3 , Figure 3 is a schematic diagram of a protocol template list provided in this embodiment, such as Figure 3 As shown, in this embodiment, the agreement template list includes multiple agreement templates in PDF format, for example, a grant agreement, wherein the template name of the grant agreement is grant agreement-001, the business module is grant management, the protocol type is grant agreement, the update time is 2021-06-22 16:46:18, and the updater is villchen; grant agreement 01, wherein the template name of grant agreement 01 is grant agreement-002, the business module is grant management, the protocol type is grant agreement, the update time is 2021-06-22 16:46:18, and the updater is villchen; resignation agreement 02, wherein the template name of resignation agreement 02 is grant agreement-003, the business module is resignation management or resignation retention, the protocol type is resignation agreement, the update time is 2021-06-2216:46:18, and the updater is villchen.

[0096] like Figure 3As shown, trigger the modification button to enter the preview page of the corresponding protocol template, on which you can add or modify the character information in the protocol template, and then update the protocol template.

[0097] When the delete button is triggered, a secondary confirmation pop-up window will pop up. The secondary confirmation pop-up window includes the title: Delete Confirmation, and the prompt text: Deleting the agreement template will not affect the business module that has configured the agreement template. Are you sure you want to delete this template? Button: Confirm, click the button to delete the agreement template, button: Cancel, close the secondary confirmation pop-up window.

[0098] The business modules to which the agreement template belongs include but are not limited to grant management, resignation management and exercise management.

[0099] participate Figure 4 , Figure 4 FIG. 1 is a block diagram of an abnormality testing device of an ESOP system shown in an exemplary embodiment of the present application. Figure 4 As shown, the protocol template generation device 500 includes an acquisition module 501 , a determination module 502 , a first insertion module 503 , and a second insertion module 504 .

[0100] Among them, the acquisition module 501 is used to obtain the character information to be added; the determination module 502 is used to determine the target placeholder control that matches the character information from the preset placeholder control library; the first insertion module 503 is used to insert the target placeholder control into the preview page in the preview page that triggers the initial agreement template, wherein the initial agreement template includes a document in PDF format; the second insertion module 504 is used to insert the character information into the preview page at the location of the target placeholder control, so as to generate a protocol template based on the preview page containing the character information.

[0101] In another exemplary embodiment, the first inserting module 503 is further configured to insert the character information into the position where the target placeholder control is located according to the format information corresponding to the target placeholder control.

[0102] In another exemplary embodiment, the determination module 502 includes a determination unit and a matching unit, wherein the determination unit is used to determine the type of character information, the type of character information includes text, picture, and number; the matching unit is used to match the type of character information with a placeholder control in a placeholder control library to obtain a target placeholder control, the placeholder control library includes multiple placeholder controls and a type corresponding to each placeholder control.

[0103] In another exemplary embodiment, the protocol template generating device 500 also includes an identification module and a first adjustment module, wherein the identification module is used to identify whether there is a first placeholder control of the same type as the target placeholder control in the preview page; the first adjustment module is used to adjust the position of the target placeholder control in the preview page if the identification result obtained is characterized as the existence of the first placeholder control, so that the target placeholder control is adjacent to the first placeholder control.

[0104] In another exemplary embodiment, the first adjustment module is further used to swap the positions of the second placeholder control and the target placeholder control if it is identified that there is a second placeholder control adjacent to the first placeholder control, and the type corresponding to the second placeholder control is different from the type corresponding to the first placeholder control.

[0105] In another exemplary embodiment, the protocol template generating device 500 also includes a second adjustment module, wherein the second adjustment module is used to adjust the position of the target placeholder control in the preview page in response to an operation instruction triggered in the preview page, and the operation instruction is generated based on the position adjustment operation triggered by the user.

[0106] In another exemplary embodiment, the second insertion module 504 is also used to insert the character name into the location of the placeholder control, and hide the character details in the form of a pop-up window on the preview page, wherein, in response to the user triggering the target placeholder control displayed in the preview page, the character details are displayed in the preview interface in the form of a pop-up window, and the character information includes the character name and character details.

[0107] It should be noted that the device provided in the above embodiment and the method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment and will not be repeated here.

[0108] In another exemplary embodiment, the present application provides an electronic device, including a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the method for generating a protocol template as described above is implemented.

[0109] Figure 5 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.

[0110] It should be noted that Figure 5 The computer system 1000 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0111] like Figure 5As shown, the computer system 1000 includes a central processing unit (CPU) 1001, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1002 or the program loaded from the storage part 1008 to the random access memory (RAM) 1003, such as executing the information recommendation method in the above embodiment. In the RAM 1003, various programs and data required for system operation are also stored. The CPU 1001, the ROM 1002 and the RAM 1003 are connected to each other through the bus 1004. The input / output (I / O) interface 1005 is also connected to the bus 1004.

[0112] The following components are connected to the I / O interface 1005: an input section 1006 including a keyboard, a mouse, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed so that a computer program read therefrom is installed into the storage section 1008 as needed.

[0113] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 1009, and / or installed from a removable medium 1011. When the computer program is executed by a central processing unit (CPU) 1001, various functions defined in the system of the present application are executed.

[0114] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0115] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0116] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0117] Another aspect of the present application provides a computer-readable storage medium having computer-readable instructions stored thereon, which, when executed by a processor, implements the method for generating a protocol template as in any of the previous embodiments.

[0118] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method for generating a protocol template provided in each of the above embodiments.

[0119] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium can include a data signal propagated in a baseband or as a part of a carrier wave, wherein a computer-readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0120] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0121] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0122] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. A person skilled in the art can easily make corresponding changes or modifications based on the main concept and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.

Claims

1. A method for generating a protocol template, applied to an ESOP system, characterized in that: include: Get the character information to be added; Determining a target placeholder control that matches the character information from a preset placeholder control library, wherein the target placeholder control includes corresponding format information; In a preview page that triggers an initial agreement template, inserting the target placeholder control into the preview page, wherein the initial agreement template includes a document in PDF format, the document in PDF format is obtained by converting a document in docx format, and the document in docx format is generated based on immutable agreement information; The character information is inserted into the location of the target placeholder control according to the format information corresponding to the target placeholder control, so as to generate a protocol template based on the preview page containing the character information.

2. The method according to claim 1, characterized in that The step of determining a target placeholder control that matches the character information from a preset placeholder control library includes: Determine the type of the character information, where the type of the character information includes text, picture, and value; The type of the character information is matched with a placeholder control in the placeholder control library to obtain the target placeholder control, wherein the placeholder control library includes a plurality of placeholder controls and a type corresponding to each placeholder control.

3. The method according to claim 2, characterized in that After inserting the target placeholder control into the preview page that triggers the initial agreement template, the method further includes: Identify whether there is a first placeholder control of the same type as that corresponding to the target placeholder control in the preview page; If the obtained recognition result indicates that the first placeholder control exists, the position of the target placeholder control in the preview page is adjusted so that the target placeholder control is adjacent to the first placeholder control.

4. The method according to claim 3, characterized in that The adjusting the position of the target placeholder control in the preview page includes: If it is identified that there is a second placeholder control adjacent to the first placeholder control, the positions of the second placeholder control and the target placeholder control are swapped, and the type corresponding to the second placeholder control is different from the type corresponding to the first placeholder control.

5. The method according to claim 1, characterized in that After inserting the target placeholder control into the preview page that triggers the initial agreement template, the method further includes: In response to an operation instruction triggered in the preview page, the position of the target placeholder control in the preview page is adjusted, wherein the operation instruction is generated based on a position adjustment operation triggered by a user.

6. The method according to claim 1, characterized in that The character information includes a character name and character detailed information; and inserting the character information into the location of the target placeholder control according to the format information corresponding to the target placeholder control includes: According to the format information corresponding to the target placeholder control, the character name is inserted into the position of the placeholder control, and the character detailed information is hidden in the preview page in the form of a pop-up window, wherein, in response to the user triggering the target placeholder control displayed in the preview page, the character detailed information is displayed in the preview page in the form of a pop-up window.

7. A device for generating a protocol template, characterized in that: include: An acquisition module, used to acquire character information to be added; A determination module, configured to determine a target placeholder control that matches the character information from a preset placeholder control library, wherein the target placeholder control includes corresponding format information; A first inserting module is used to insert the target placeholder control into a preview page that triggers an initial agreement template, wherein the initial agreement template includes a document in PDF format, the document in PDF format is obtained by converting a document in docx format, and the document in docx format is generated based on immutable agreement information; The second inserting module is used to insert the character information into the position where the target placeholder control is located in the preview page according to the format information corresponding to the target placeholder control, so as to generate a protocol template based on the preview page containing the character information.

8. An electronic device, characterized in that: include: a memory storing computer-readable instructions; A processor reads the computer-readable instructions stored in the memory to execute the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the method according to any one of claims 1 to 6.