Document generation method and device, document display method and device and electronic equipment
By inserting the target object into the electronic document template and configuring the display conditions, controlling the display or hiding of the object according to the data entered by the user, the problems of high resource consumption and low flexibility in the prior art are solved, and flexible document generation and display are achieved.
Patent Information
- Application Number
- CN202411329242.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-23
- Publication Date
- 2024-12-27
AI Technical Summary
The existing electronic document template configuration method requires a lot of resources and is low in flexibility, especially in scenarios with high demand, it is difficult to meet the changes in different personalized needs and business scenarios.
By inserting the target object in the document template to be configured and configuring the display conditions associated with the document element, the user allows the user to determine the display mode of the target object based on the input data, thereby controlling the display or hiding of the object in the document template.
It improves the flexibility of document generation, meets the display needs in different personalized needs and business scenarios, and improves configuration efficiency and flexibility.
Smart Images

Figure CN119203972A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of electronic information technology, and in particular, to a document generation method, a document display method, a device and an electronic device. Background Art
[0002] With the increasing popularity of computers, it is becoming more and more common for people to use computers to do office work. Currently, electronic document templates are widely used in daily office work, such as pre-written electronic contract templates. In electronic document templates, general information of the electronic document template is generally pre-configured, and spaces to be filled in are reserved to meet the personalized needs and business scenarios of different users. However, as personalized needs or business scenarios continue to change, electronic document templates for different personalized needs and business scenarios may have some document elements that are the same, and some document elements that are the same.
[0003] In the related art, electronic document templates are usually configured for each personalized demand and business scenario, but this method usually consumes a lot of configuration resources and has low configuration flexibility, especially in scenarios with high demand for electronic document template configuration. Summary of the invention
[0004] This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.
[0005] In a first aspect, the present disclosure provides a document generation method, applied to a first client, the method comprising: Display the document template configuration interface; In response to a document template configuration operation for a document template to be configured in the document template configuration interface, updating and displaying the document template to be configured; the document template configuration operation at least includes an operation of inserting a first target object into the document template to be configured, the first target object being configured with a display condition associated with a target document element in the document template to be configured; The display condition is used to determine the display mode of the first target object in the target document template based on the input data and the display condition when the second client inputs data based on the target document element in the target document template.
[0006] In a second aspect, the present disclosure provides a document display method, applied to a second client, the method comprising: Displaying a document display interface, wherein the document display interface is used to display a target document template; In response to an input operation on a target document element in the target document template, a display mode of a first target object in the target document template is determined based on input data corresponding to the input operation and a display condition associated with the target document element, the first target object being configured with the display condition.
[0007] In a third aspect, the present disclosure provides a document generation device, applied to a first client, the device comprising: A first display module is configured to display a document template configuration interface; A first configuration module is configured to update and display the document template to be configured in response to a document template configuration operation for the document template to be configured in the document template configuration interface; the document template configuration operation at least includes an operation of inserting a first target object into the document template to be configured, the first target object being configured with a display condition associated with a target document element in the document template to be configured; The display condition is used to determine the display mode of the first target object in the target document template based on the input data and the display condition when the second client inputs data based on the target document element in the target document template.
[0008] In a fourth aspect, the present disclosure provides a document display device, applied to a second client, the device comprising: A second display module is configured to display a document display interface, wherein the document display interface is used to display a target document template; The third display module is configured to respond to an input operation on a target document element in the target document template, determine a display mode of a first target object in the target document template based on input data corresponding to the input operation and a display condition associated with the target document element, and the first target object is configured with the display condition.
[0009] In a fifth aspect, the present disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processing device, implements the steps of the method described in the first aspect, or implements the steps of the method described in the second aspect.
[0010] In a sixth aspect, the present disclosure provides an electronic device, including: a storage device having a computer program stored thereon; A processing device is used to execute the computer program in the storage device to implement the steps of the method described in the first aspect, or to implement the steps of the method described in the second aspect.
[0011] In a seventh aspect, the present disclosure provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of the method described in the first aspect, or implements the steps of the method described in the second aspect.
[0012] Through the above scheme, the first client inserts the first target object configured with display conditions associated with the target document element in the document template to be configured to obtain the target document template. In this way, in the target document template, the second client can determine the display mode of the first target object in the target document template through the user's input data and display conditions for the target document element in the target document template, thereby controlling the display or hiding of the object configured with the display conditions in the electronic document template according to the data input by the user, meeting the needs of displaying different content in different personalized needs or business scenarios, and improving the flexibility of document generation.
[0013] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale. In the drawings: Figure 1 It is a schematic diagram showing an implementation environment according to an exemplary embodiment of the present disclosure.
[0015] Figure 2 The figure is a flowchart of a document generation method according to an exemplary embodiment of the present disclosure.
[0016] Figure 3 The diagram is a schematic diagram showing changes of a document template to be configured before and after configuring a first target object according to an exemplary embodiment of the present disclosure.
[0017] Figure 4 The figure is a schematic diagram showing a process of changing the display content of a target document template based on input data according to an exemplary embodiment of the present disclosure.
[0018] Figure 5 The figure is a schematic diagram of a configuration process of a target object according to an exemplary embodiment of the present disclosure.
[0019] Figure 6 It is a schematic diagram of a document template configuration interface according to an exemplary embodiment of the present disclosure.
[0020] Figure 7It is a schematic diagram of a document template configuration interface according to an exemplary embodiment of the present disclosure.
[0021] Figure 8 It is a schematic diagram showing a document template configuration interface and an object configuration interface according to an exemplary embodiment of the present disclosure.
[0022] Fig. 9 It is a schematic diagram of a document template configuration interface according to an exemplary embodiment of the present disclosure.
[0023] Fig.10 It is a schematic diagram of a document template configuration interface according to an exemplary embodiment of the present disclosure.
[0024] Fig.11 The figure is a flowchart of a document display method according to an exemplary embodiment of the present disclosure.
[0025] Fig.12 The present invention is a block diagram of a document generating device according to an exemplary embodiment of the present invention.
[0026] Fig.13 The present invention is a block diagram of a document display device according to an exemplary embodiment of the present invention.
[0027] Fig.14 It is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0028] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0029] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0030] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0031] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0032] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0033] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0034] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0035] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0036] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0037] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0038] At the same time, it is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0039] In the configuration of electronic document templates, you can quickly insert set content (i.e., document elements), which may include fields marked with special symbols for users to enter data or other supplementary content, but these fields or other supplementary content are not required in every business scenario. In the related art, electronic document templates are usually configured for each business scenario to meet different personalized needs, but this method usually consumes a lot of configuration resources and has low configuration flexibility, especially in scenarios with high demand for electronic document generation.
[0040] In view of this, the embodiments of the present disclosure provide a document generation method, a document display method, an apparatus, a medium, an electronic device and a program product, which can control the display or hiding of objects configured with display conditions in an electronic document template according to the data input by the user, and provide a data foundation for displaying different document contents based on a set of configurations to meet different personalized needs, thereby improving the flexibility of document generation.
[0041] The embodiments of the present disclosure are further explained and illustrated below in conjunction with the accompanying drawings.
[0042] Figure 1 This is a schematic diagram of an implementation environment according to an exemplary embodiment of the present disclosure. The implementation environment includes a first client and a second client that is communicatively connected to the first client, where the communication connection may include a wired connection and a wireless connection.
[0043] The first client may configure the document template to be configured, and obtain a target document template including a first target object configured with display conditions associated with a target document element in the target document template.
[0044] Based on the above communication connection, the first client can send the target document template to the second client based on the request of the second client. As an example, the request sent by the first client can carry the identifier of the requested document template, and the first client sends the target document template corresponding to the identifier to the second client based on the identifier. Among them, the target document template can be a contract template. In the following embodiments, the present disclosure is explained and illustrated by taking the contract template as an example.
[0045] When the second client uses the target document template, the display condition is used to determine the display mode of the first target object in the target document template based on the input data and the display condition when the second client inputs data based on the target document element in the target document template. The display mode here may refer to the mode in which the object is displayed.
[0046] Through the above method, the display or hiding effect of objects configured with display conditions in the electronic document template can be controlled according to the data input by the user, meeting the needs of displaying different contents in different personalized needs or business scenarios, and improving the flexibility of document generation.
[0047] Figure 2 is a flowchart of a document generation method according to an exemplary embodiment of the present disclosure. The document generation method can be applied to Figure 1 The first client shown in the figure may be an electronic device such as a tablet computer and a desktop computer, and the document generation method may be executed by a document generation device, wherein the document generation device may be implemented by software and / or hardware and may be configured in the first client. Figure 2 , the document generation method may include the following steps: Step 210: display the document template configuration interface.
[0048] In this embodiment, the document template configuration interface is used to configure document elements in the document template to be configured. The document template elements may include text, fields to be filled in, lists, tables, pictures, links, videos, and the like.
[0049] Step 220, in response to a document template configuration operation for the document template to be configured in the document template configuration interface, updates and displays the document template to be configured, the document template configuration operation at least including an operation of inserting a first target object into the document template to be configured, the first target object being configured with a display condition associated with a target document element in the document template to be configured; the display condition is used to determine a display mode of the first target object in the target document template based on the input data and the display condition when the second client inputs data based on the target document element in the target document template.
[0050] It should be understood that the first target object in this embodiment is a document element or a container including at least one document element.
[0051] In this embodiment, the document template configuration interface may be an interface provided by an editor that supports document template editing, and the editor supports document template configuration operations of document templates, such as insert operations, formatting operations, and delete operations, etc.
[0052] It should be understood that the above document generation method may further include the following steps: in response to a configuration determination operation on the document template to be configured, generating a corresponding target document template based on the currently configured document template to be configured.
[0053] Figure 3 is a schematic diagram showing changes in a document template to be configured before and after configuring a first target object according to an exemplary embodiment of the present disclosure, with reference to Figure 3 , "Supplementary Clause 1" is inserted into the document template to be configured as the first target object. After the first target object is inserted, the document element in the document template to be configured is added with "Supplementary Clause 1" compared to before the first target object is inserted. It should be understood that Figure 3 In , the menu bar can support the format editing of various document elements, such as font size and color, etc.
[0054] In this embodiment, after each document template configuration operation is performed, the document template configuration interface synchronously updates and displays the document template to be configured. Specifically, the document elements in the document template to be configured are updated to implement a preview of the updated document template to be configured.
[0055] Figure 4 It is a schematic diagram of the process of display content changes of a target document template based on input data according to an exemplary embodiment of the present disclosure. Taking the display condition of "Supplementary Clause 1" as income and expenditure type equals expenditure as an example, income and expenditure type is the target document element corresponding to the display condition of "Supplementary Clause 1". When the user selects expenditure as the value of income and expenditure type, "Supplementary Clause 1" is added to the display content of the target document template. It should be understood that when the user selects other values as the value of income and expenditure type, such as income, the display content of the target document template does not contain "Supplementary Clause 1", and "income" or "expenditure" is the input data.
[0056] Through the above method, the first client inserts the first target object configured with display conditions associated with the target document element in the document template to be configured to obtain the target document template. In this way, in the target document template, the second client can determine the display mode of the first target object in the target document template through the user's input data and display conditions for the target document element in the target document template, thereby controlling the display or hiding of the object configured with the display conditions in the electronic document template according to the data input by the user, meeting the needs of displaying different content in different personalized needs or business scenarios, and improving the flexibility of document generation.
[0057] In some embodiments, the above method may also include the following steps: displaying an object configuration interface; obtaining a target object in response to an object configuration operation for the object to be configured in the object configuration interface, wherein the object configuration operation is used to configure display conditions associated with the target document element for the target object.
[0058] In this embodiment, the object configuration interface is used to configure the object. In other embodiments, the object configuration operation can also be used to configure other properties such as the object name and the object data type.
[0059] It should be understood that the object configuration operation can also be used to trigger the generation of a target object, so that when editing a document element in a document template to be configured, the corresponding target object can be inserted.
[0060] Figure 5 FIG. 1 is a schematic diagram showing a configuration process of a target object according to an exemplary embodiment of the present disclosure. Figure 5 The object configuration interface and the document template configuration interface can be displayed side by side. First, in the object configuration interface, you can trigger the configuration of the target object by clicking "Add custom field", and then display the interface that supports object configuration operations. In this interface, the configuration of attributes such as field name, field type and display conditions is supported.
[0061] Next, you can trigger the configuration of the display conditions by clicking "Enter Settings", and then display the configuration interface that supports the display conditions. In this interface, you can set specific display conditions. It should be understood that for the target object, multiple display conditions can be set, and each display condition corresponds to a target document element. On the basis of setting multiple display conditions, you can also set logical judgments for multiple display conditions. For example, you can set the logic that all display conditions must be met to trigger the display of the corresponding first target object on the second client, or set the logic that any one of all display conditions is met to trigger the display of the corresponding first target object on the second client. Furthermore, on the basis of setting multiple display conditions, you can also set more advanced logical judgments. For example, when setting display condition 1, display condition 2, and display condition 3, you can further set the logic that the simultaneous satisfaction of display condition 1 and display condition 2 is the trigger for the display of the corresponding first target object on the second client, and so on.
[0062] Through the above method, custom configuration of properties such as display conditions of the target object is supported, thereby improving the flexibility of configuration.
[0063] It should be understood that the target object may also refer to an object that is not configured with display conditions. Such an object is generally understood as a default object. The default object may refer to an object that needs to be displayed by default on the second client, for example Figure 5 The default object for the Income and Expenditure Type shown is applicable to document templates that appear in all scenarios.
[0064] In some embodiments, the first target object may include fields to be filled in and / or containers, and the container in the document template to be configured supports editing of multiple types of document elements. It is worth noting that the editing here may be inserting, and the type here may refer to types such as text, fields to be filled in, lists, tables, pictures, links, and videos.
[0065] In the above manner, since the container supports the editing of different types of document elements, by setting the display conditions corresponding to the container, the display conditions of multiple document elements can be configured at one time, thereby improving configuration flexibility and further improving configuration efficiency.
[0066] In some embodiments, the above-mentioned document template to be configured may be a document template organized by serial numbers, a first target object container, and the above-mentioned step of updating and displaying the document template to be configured in response to the document template configuration operation for the document template to be configured in the document template configuration interface may include the following steps: in response to the operation of inserting the first target object for the document template to be configured in the document template configuration interface, according to the insertion position of the first target object, with the continuity of all serial numbers in the document template to be configured after the operation as a constraint, determine the target serial number in the first target object and other serial numbers that need to be updated and displayed outside the first target object; according to the insertion position, display the first target object and the target serial number in the first target object in the document template to be configured, and update and display other serial numbers that need to be updated and displayed outside the first target object.
[0067] From the above content, it can be seen that the document template configuration interface can support the editing of any type of document elements, such as text editing. In text editing, the document template to be configured can be edited into a document template organized by sequence number, for example, Figure 6 The schematic diagram of the document template configuration interface shown in FIG. Figure 6 The document template to be configured shown includes contents organized by sequence number 1 and sequence number 2.
[0068] The object can be inserted at any position in the document template to be configured. Figure 6 In the example shown, the first target object can be inserted after "1.XXXXXX". If the inserted first target object is a container, according to the insertion position, the corresponding target sequence number can be determined to be 2, and the other sequence number that needs to be updated outside the first target object can be determined to be 3. According to the insertion position, and based on the determined target sequence number 2 and the other sequence number 3 that needs to be updated outside the first target object, the update display of the document template to be configured is performed. The updated document template to be configured can refer to Figure 7 The document template configuration interface shown in Figure 7 In the container shown, document elements such as tables, pictures and links can be inserted. After inserting the object into the document template to be configured, the location of the container can be indicated by an auxiliary frame, which is also convenient for the configuring user to locate the container.
[0069] Through the above method, when the document template to be configured is a document template organized by serial numbers, if a container for accommodating all types of document elements is inserted, the linkage with the serial numbers outside the container can be realized according to the insertion position, that is, the continuity of all serial numbers in the document template to be configured after the operation is maintained as a constraint, and the serial numbers are automatically inserted into the document template to be configured and other serial numbers outside the container that need to be updated and displayed are updated, thereby improving the configuration efficiency.
[0070] In some embodiments, the automatically inserted target sequence number may also support the user to delete it.
[0071] In some embodiments, the document template configuration method may further include the following steps: in response to a positioning operation on the second target object in the object configuration interface, highlighting the second target object in the document template to be configured.
[0072] Among them, highlighting is a visual means for attracting attention to specific information or text paragraphs in documents, web pages or other visual media. As an example, this embodiment can achieve highlighting of the second target object in the following manner: 1. Make the text bold; 2. Color change; 3. Use flashing or animation effects to attract attention; 4. Text shadow.
[0073] It should be understood that the above manner does not limit the present disclosure to highlighting the second target object.
[0074] In this embodiment, a positioning control corresponding to each object may be configured in the object configuration interface, and the user may trigger an operation on the positioning control for the second target object, thereby implementing a positioning operation on the second target object in the object configuration interface. Figure 8 The document template configuration interface and object configuration interface shown in the figure can be used to configure the document template and object configuration interfaces. Figure 8 The positioning control for the object "income and expenditure type" in the object configuration interface shown, and the "income and expenditure type" in the document template to be configured in the document template configuration interface are highlighted in a shadowed manner.
[0075] Through the above method, the position of the second target object in the document template to be configured can be quickly located.
[0076] In some embodiments, the object configuration interface displays the number of times each object is used in the document template to be configured.
[0077] Continue to refer to Figure 8 The example shown in Figure 8 In the configuration document template, you can count the number of times each object is used.
[0078] In this way, when the amount of information in the document template to be configured is large, the number of times each object is used in the document template to be configured can be quickly known through the number of times each configured object is used in the document template to be configured, which is counted and displayed in the object configuration interface.
[0079] In some embodiments, the document template configuration operation also includes a selection operation and a deletion operation. The above-mentioned step of updating and displaying the document template to be configured in response to the document template configuration operation for the document template to be configured in the document template configuration interface may also include the following steps: in response to the selection operation for the third target object in the document template to be configured in the document template configuration interface, displaying a deletion control; in response to the deletion operation on the deletion control, deleting the third target object from the document template to be configured.
[0080] In this embodiment, the selection operation may be an operation in which the cursor of the first client stops on the third target object. In this embodiment, the deletion operation may be a click operation on a deletion control.
[0081] For example, refer to Fig. 9 The document template configuration interface shown in Fig. 9 When the cursor is on the third target object "Income and Expenditure Type", Fig. 9 The delete controls are displayed.
[0082] Through the above method, the deletion operation of the third target object in the document template to be configured is realized, thereby improving the flexibility of the configuration of the document template to be configured.
[0083] In some embodiments, when previewing the document template to be configured in the document template configuration interface, all document elements configured for the document template to be configured need to be displayed, including objects configured with display conditions and objects without display conditions. In order to facilitate users to distinguish between objects configured with display conditions and objects without display conditions, different display styles can be used in the document template configuration interface to display objects with display conditions and objects without display conditions.
[0084] In this case, the above-mentioned response to the document template configuration operation for the document template to be configured in the document template configuration interface, updating and displaying the document template to be configured may also include the following steps: when displaying the first target object in the document template to be configured, synchronously displaying a preset identifier associated with the first target object, the preset identifier is used to characterize that the first target object is an object configured with display conditions.
[0085] For example, refer to Fig.10In the schematic diagram of the document template configuration interface shown, the display styles of "Supplementary Clause 1" and "Income and Expenditure Type" are different, and they can be distinguished by whether there are preset marks in "Supplementary Clause 1" and "Income and Expenditure Type".
[0086] In this way, the user of the first client can intuitively distinguish between objects with display conditions and objects without display conditions configured by the document template to be configured.
[0087] Fig.11 is a flowchart of a document display method according to an exemplary embodiment of the present disclosure. The document display method can be applied to Figure 1 The second client shown in the figure may be an electronic device such as a tablet computer and a desktop computer, and the document display method may be executed by a document display device, wherein the document display device may be implemented by software and / or hardware and may be configured in the second client. Fig.11 , the document display method may include the following steps: Step 1001, displaying a document display interface, wherein the document display interface is used to display a target document template; Step 1002, in response to an input operation on a target document element in a target document template, based on input data corresponding to the input operation and a display condition associated with the target document element, a display mode of a first target object in the target document template is determined, the first target object being configured with a display condition.
[0088] The document display interface is also used for users to perform input operations on target document elements in the target document template.
[0089] Among them, the target document template in this embodiment is configured through the above-mentioned document generation method.
[0090] It is worth noting that when the input data corresponding to the input operation meets the display conditions associated with the first target object, the display mode of the first target object in the target document template is determined to be display; when the data corresponding to the data input operation does not meet the display conditions associated with the first target object, the display mode of the first target object in the target document template is determined to be hidden.
[0091] Through the above method, the display or hiding effect of objects configured with display conditions in the electronic document template is controlled according to the data input by the user, providing a data foundation for displaying different document contents based on a set of configurations to meet different personalized needs, thereby improving the flexibility of document template configuration.
[0092] It should be understood that on the second client, the prompt information used by the first client to assist the first client user in configuring on the first client does not need to be displayed, such as the above-mentioned preset logo and auxiliary box, etc., so that the second client user is unaware of the prompt information of the first client, thereby improving the user experience of the second client.
[0093] Fig.12 1 is a block diagram of a document generation device according to an exemplary embodiment of the present disclosure. The document generation device 1200 is applied to a first client, and the document generation device 1200 includes: The first display module 1201 is configured to display a document template configuration interface; The first configuration module 1202 is configured to update and display the document template to be configured in response to a document template configuration operation for the document template to be configured in the document template configuration interface; the document template configuration operation at least includes an operation of inserting a first target object into the document template to be configured, the first target object being configured with a display condition associated with a target document element in the document template to be configured; The display condition is used to determine the display mode of the first target object in the target document template based on the input data and the display condition when the second client inputs data based on the target document element in the target document template.
[0094] Optionally, the document generating device 1200 further includes: An object configuration interface display module is configured to display an object configuration interface; The second configuration module is configured to obtain a target object in response to an object configuration operation for the object to be configured in the object configuration interface, wherein the object configuration operation is used to configure a display condition associated with a target document element for the target object.
[0095] Optionally, the first target object includes fields to be filled in and / or containers, and the container in the document template to be configured supports editing of multiple types of document elements.
[0096] Optionally, the document template to be configured is a document template organized by sequence number, the first target object includes the container, and the first configuration module 1202 includes: A first configuration submodule is configured to, in response to an operation of inserting the first target object into the document template to be configured in the document template configuration interface, determine, according to an insertion position of the first target object, a target sequence number in the first target object and other sequence numbers outside the first target object that need to be updated and displayed, with the continuity of all sequence numbers in the document template to be configured after the operation being maintained as a constraint; The second configuration submodule is configured to display the first target object and the target serial number located in the first target object in the document template to be configured according to the insertion position, and to update and display other serial numbers located outside the first target object that need to be updated.
[0097] Optionally, the document generating device 1200 further includes: The positioning module is configured to highlight the second target object in the document template to be configured in response to a positioning operation on the second target object in the object configuration interface.
[0098] Optionally, the object configuration interface displays the number of times the object is used in the document template to be configured.
[0099] Optionally, the document template configuration operation further includes a selection operation and a deletion operation, and the first configuration module 1202 further includes: A third configuration submodule is configured to display a deletion control in response to a selection operation on a third target object in the document template to be configured in the document template configuration interface; The fourth configuration submodule is configured to delete the third target object from the document template to be configured in response to a deletion operation on the deletion control.
[0100] Optionally, the first configuration module 1202 further includes: The synchronization submodule is configured to synchronously display a preset identifier associated with the first target object when displaying the first target object in the document template to be configured, wherein the preset identifier is used to indicate that the first target object is an object configured with the display condition.
[0101] Among them, the implementation methods of each module in the above-mentioned document generation 1200 can refer to the above-mentioned method embodiment, and this embodiment will not be described in detail here.
[0102] Fig.13 1 is a block diagram of a document display device according to an exemplary embodiment of the present disclosure. The document display device is applied to a second client, and the document display device 1300 includes: The second display module 1301 is configured to display a document display interface, wherein the document display interface is used to display a target document template; The third display module 1302 is configured to respond to an input operation on a target document element in the target document template, determine a display mode of a first target object in the target document template based on input data corresponding to the input operation and a display condition associated with the target document element, and the first target object is configured with the display condition.
[0103] The implementation of each module in the document display configuration 1300 may refer to the method embodiment described above, and will not be described in detail in this embodiment.
[0104] Based on the same inventive concept, an embodiment of the present disclosure further provides a computer-readable medium on which a computer program is stored. When the computer program is executed by a processing device, the steps of the above-mentioned document generation method or the above-mentioned document display method are implemented.
[0105] Based on the same inventive concept, an embodiment of the present disclosure further provides a computer program product, including a computer program, which implements the steps of the above-mentioned document generation method or the above-mentioned document display method when executed by a processor.
[0106] Based on the same inventive concept, the present disclosure also provides an electronic device, including: a storage device having a computer program stored thereon; A processing device is used to execute the computer program in the storage device to implement the steps of the above-mentioned document generation method or the above-mentioned document display method.
[0107] Reference below Fig.14 , which shows an electronic device (eg, Figure 1 The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.14 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 disclosure.
[0108] like Fig.14 As shown, the electronic device 1400 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1402 or a program loaded from a storage device 1408 to a random access memory (RAM) 1403. In the RAM 1403, various programs and data required for the operation of the electronic device 1400 are also stored. The processing device 1401, the ROM 1402, and the RAM 1403 are connected to each other via a bus 1404. An input / output (I / O) interface 1405 is also connected to the bus 1404.
[0109] Typically, the following devices may be connected to the I / O interface 1405: an input device 1406 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 1407 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1408 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1409. The communication device 1409 may allow the electronic device 1400 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.14 The electronic device 1400 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0110] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 1409, or installed from the storage device 1408, or installed from the ROM 1402. When the computer program is executed by the processing device 1401, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0111] It should be noted that the computer-readable medium mentioned above in the present disclosure 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, 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 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 or 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 disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, 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 a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0112] In some embodiments, the first client and the second client can communicate using any currently known or future developed network protocol such as HTTP (HyperTextTransfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0113] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0114] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: displays a document template configuration interface; in response to a document template configuration operation for a document template to be configured in the document template configuration interface, updates and displays the document template to be configured; the document template configuration operation at least includes an operation of inserting a first target object into the document template to be configured, and the first target object is configured with a display condition associated with a target document element in the document template to be configured; wherein the display condition is used to determine a display mode of the first target object in the target document template based on the input data and the display condition when a second client inputs data based on a target document element in the target document template.
[0115] Alternatively, the computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device: displays a document display interface, wherein the document display interface is used to display a target document template; in response to an input operation on a target document element in the target document template, determines a display mode of a first target object in the target document template based on input data corresponding to the input operation and a display condition associated with the target document element, wherein the first target object is configured with the display condition.
[0116] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0117] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the 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 implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart 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.
[0118] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a module does not, in some cases, limit the module itself.
[0119] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0120] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or 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 foregoing.
[0121] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0122] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0123] Although the subject matter has been described in language specific to structural features and / or method logic actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims. Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Claims
1. A document generation method, characterized in that: Applied to a first client, the method includes: Display the document template configuration interface; In response to a document template configuration operation for a document template to be configured in the document template configuration interface, updating and displaying the document template to be configured; the document template configuration operation at least includes an operation of inserting a first target object into the document template to be configured, the first target object being configured with a display condition associated with a target document element in the document template to be configured; The display condition is used to determine the display mode of the first target object in the target document template based on the input data and the display condition when the second client inputs data based on the target document element in the target document template.
2. The method according to claim 1, characterized in that The method further comprises: Display object configuration interface; In response to an object configuration operation for an object to be configured in the object configuration interface, a target object is obtained, wherein the object configuration operation is used to configure a display condition associated with a target document element for the target object.
3. The method according to claim 1 or 2, characterized in that: The first target object includes fields to be filled in and / or containers, and the container in the document template to be configured supports editing of multiple types of document elements.
4. The method according to claim 3, characterized in that The document template to be configured is a document template organized by serial number, the first target object includes the container, and in response to a document template configuration operation for the document template to be configured in the document template configuration interface, updating and displaying the document template to be configured includes: In response to an operation of inserting the first target object into the document template to be configured in the document template configuration interface, according to the insertion position of the first target object, with the constraint of maintaining the continuity of all serial numbers in the document template to be configured after the operation, determining the target serial number in the first target object and other serial numbers outside the first target object that need to be updated and displayed; According to the insertion position, the first target object and the target serial number in the first target object are displayed in the document template to be configured, and other serial numbers outside the first target object that need to be updated are updated and displayed.
5. The method according to claim 2, characterized in that: The method further comprises: In response to a positioning operation on a second target object in the object configuration interface, the second target object is highlighted in the document template to be configured.
6. The method according to claim 2, characterized in that The object configuration interface displays the number of times the object is used in the document template to be configured.
7. The method according to claim 1, characterized in that The document template configuration operation further includes a selection operation and a deletion operation, and in response to the document template configuration operation for the document template to be configured in the document template configuration interface, updating and displaying the document template to be configured further includes: In response to a selection operation on a third target object in the document template to be configured in the document template configuration interface, displaying a deletion control; In response to a deletion operation on the deletion control, the third target object is deleted from the document template to be configured.
8. The method according to claim 1, characterized in that The updating and displaying of the document template to be configured in response to the document template configuration operation on the document template to be configured in the document template configuration interface also includes: When the first target object is displayed in the document template to be configured, a preset identifier associated with the first target object is displayed synchronously, and the preset identifier is used to indicate that the first target object is an object configured with the display condition.
9. A document display method, characterized in that: Applied to the second client, the method includes: Displaying a document display interface, wherein the document display interface is used to display a target document template; In response to an input operation on a target document element in the target document template, a display mode of a first target object in the target document template is determined based on input data corresponding to the input operation and a display condition associated with the target document element, the first target object being configured with the display condition.
10. A document generation device, characterized in that: Applied to a first client, the device comprises: A first display module is configured to display a document template configuration interface; A first configuration module is configured to update and display the document template to be configured in response to a document template configuration operation for the document template to be configured in the document template configuration interface; the document template configuration operation at least includes an operation of inserting a first target object into the document template to be configured, the first target object being configured with a display condition associated with a target document element in the document template to be configured; The display condition is used to determine the display mode of the first target object in the target document template based on the input data and the display condition when the second client inputs data based on the target document element in the target document template.
11. A document display device, characterized in that: Applied to a second client, the device comprises: A second display module is configured to display a document display interface, wherein the document display interface is used to display a target document template; The third display module is configured to respond to an input operation on a target document element in the target document template, determine a display mode of a first target object in the target document template based on input data corresponding to the input operation and a display condition associated with the target document element, and the first target object is configured with the display condition.
12. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processing device, the computer program implements the steps of the method described in any one of claims 1 to 8, or implements the steps of the method described in claim 9.
13. An electronic device, characterized in that: include: a storage device having a computer program stored thereon; A processing device, used to execute the computer program in the storage device to implement the steps of the method in any one of claims 1 to 8, or to implement the steps of the method in claim 9.
14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the steps of the method described in any one of claims 1 to 8, or implements the steps of the method described in claim 9.
