Document output method and device, equipment, storage medium and program product
By obtaining user permissions and configuration tables to obtain target data, the problem of excessive computing resource consumption caused by data level configuration in the document output device is solved, efficient and accurate document output is achieved, cost and workload are reduced, and user experience is improved.
Patent Information
- Application Number
- CN202411301268.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-18
- Publication Date
- 2024-12-27
AI Technical Summary
Existing document output devices need to configure data levels when outputting documents, resulting in excessive consumption of computing resources and excessive cost.
By obtaining user permissions, determining the configuration table that the view matches, obtaining the target data type according to the configuration table, and obtaining the target data through functions, adding it to the document template, outputting the final document, avoiding data level configuration and saving computing resources.
It reduces the cost of document output, improves the accuracy and user experience of data acquisition, and reduces the workload of document output devices.
Smart Images

Figure CN119201845A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of big data processing technology, and in particular relates to a document output method, device, equipment, storage medium and program product. Background Art
[0002] A document is a medium for recording data, and users can view the data through documents.
[0003] When a user needs to export a document for data viewing, the device must first determine the user's permissions, then determine the data level that matches the permissions, use the data corresponding to the data level as data that the user can view, and then integrate the viewable data into a document for output.
[0004] From the above, it can be seen that the data in the device needs to be configured with data levels, and the data generated in the device is continuous. The device needs to consume more computing resources to continuously configure the data level for the data, which means that the cost of the device outputting documents is too high. Summary of the invention
[0005] Embodiments of the present application provide a document output method, device, equipment, storage medium, and program product, which are used to solve the problem of excessively high cost of outputting documents by a device.
[0006] In a first aspect, an embodiment of the present application provides a document output method.
[0007] Applied to the document output device, the document output method comprises:
[0008] Obtaining the authority of the user associated with the document generation request in the document output device, determining a view that matches the authority, and obtaining a configuration table that matches the view according to a view identifier corresponding to the view;
[0009] Determine the data type of the target data required to be acquired for the to-be-generated document according to the configuration table, and set the value of the first block pair parameter in the configuration table to a true value to obtain the second block pair parameter;
[0010] In response to the data type being not a picture, determining a class according to the configuration table, determining a function according to the class, and acquiring the target data according to the function;
[0011] The target data is added to a document template, and according to the second block pair parameter, a first block pair tag is configured in the document template to obtain a first document, and the first document is output, wherein the first block pair tag is used to indicate that the first document displays part of the target data, and part of the target data is the sub-data matched by the permission in each sub-data of the target data.
[0012] In some possible implementations, the step of acquiring the target data according to the function includes:
[0013] Determining a first display form of the data acquired by the function;
[0014] In response to the second presentation form of the data in the document template matching the first presentation form, data corresponding to the function is acquired from the document output device as the target data.
[0015] In some possible implementations, after the step of determining the first display form of the data acquired by the function, the method further includes:
[0016] In response to the second presentation form of the data in the document template not matching the first presentation form, data corresponding to the class is acquired from the document output device as target data.
[0017] In some possible implementations, after the step of setting the value of the first block pair parameter in the configuration table to a true value to obtain the second block pair parameter, the method further includes:
[0018] In response to the data type being a picture, acquiring a target picture based on the configuration table;
[0019] The target image is added to the document template, and a second block pair tag is configured in the document template according to the second block pair parameter to obtain a second document, wherein the second block pair tag is used to indicate that the second document displays part of the target image, where the part of the target image is a sub-image matched by the permission in each sub-image of the target image;
[0020] The second document is output.
[0021] In some possible implementations, the step of determining a class according to the configuration table includes:
[0022] Obtain the interface class name and function in the configuration table;
[0023] The class is determined according to the interface class name and the function.
[0024] In some possible implementations, the step of determining a function according to the class includes:
[0025] Get the function name from the configuration table;
[0026] The function matching the class is determined according to the function name and the parameters in the configuration table.
[0027] In some possible implementations, the step of adding the target data to the document template includes:
[0028] The target data is added to the document template, and the label in the document template is replaced with a data label corresponding to the data type, wherein the data label is used to instruct the first document to display the target data in a display form corresponding to the data type.
[0029] In a second aspect, an embodiment of the present application provides a document output device, including:
[0030] An acquisition module, used to acquire the authority of the user associated with the document generation request in the document output device, determine the view that matches the authority, and acquire the configuration table that matches the view according to the view identifier corresponding to the view;
[0031] A first determination module is used to determine the data type of the target data required to be acquired for the to-be-generated document according to the configuration table, and to set the value of the first block pair parameter in the configuration table to a true value to obtain a second block pair parameter;
[0032] a second determination module, configured to, in response to the data type being not a picture, determine a class according to the configuration table, determine a function according to the class, and obtain the target data according to the function;
[0033] An adding module is used to add the target data to a document template, and configure a first block pair tag in the document template according to the second block pair parameter to obtain a first document, and output the first document, wherein the first block pair tag is used to indicate that the first document displays part of the target data, and part of the target data is the sub-data matched by the permission in each sub-data of the target data.
[0034] In a third aspect, an embodiment of the present application provides a document output device, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the document output method as described above is implemented.
[0035] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, characterized in that computer program instructions are stored on the computer-readable storage medium, and when the computer program instructions are executed by a processor, the document output method as described above is implemented.
[0036] In a fifth aspect, an embodiment of the present application provides a computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device is enabled to execute the document output method as described above.
[0037] The document output method, device, equipment, storage medium and program product of the embodiment of the present application obtain the authority of the user associated with the document generation request in the document output device, determine the view matched by the authority, obtain the configuration table matching the view based on the view identifier corresponding to the view, and determine the data type of the target data required to be obtained for the generated document through the configuration table, and set the value of the first block pair parameter in the configuration table to a true value to obtain the second block pair parameter. If the data type is not a picture, determine the function based on the configuration table to obtain the target data through the function, add the target data to the document template, and set the block pair label in the document template based on the second block pair parameter to obtain the first document, and finally output the first document. In the present application, the data that the user can view can be determined through the configuration table, and the document output device does not need to configure the data level for the generated data, which saves the computing resources of the document output device and reduces the cost of the document output device to output the document. Furthermore, by obtaining the view identifier corresponding to the view representing the function through the user authority, the configuration table can be accurately obtained, and the data in the final output document can be accurately obtained, which improves the accuracy of the document output device in obtaining the data in the output document. In addition, by configuring block pair tags in the final document, the output document can flexibly display the data that the user can view within the scope of his or her authority. There is no need for the document output device to separate the data that the user can view from the target data, which reduces the workload of the document output device and improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0039] Figure 1 It is a schematic diagram of the scenario involved in the document output method of this application;
[0040] Figure 2 It is a flowchart of the first embodiment of the document output method of the present application;
[0041] Figure 3 It is a flowchart of the second embodiment of the document output method of the present application;
[0042] Figure 4 It is a flowchart of the third embodiment of the document output method of the present application;
[0043] Figure 5 It is a functional module schematic diagram of the document output device of the present application;
[0044] Figure 6 It is a structural diagram of the document output device of this application. DETAILED DESCRIPTION
[0045] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0046] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0047] It should be noted that the acquisition, storage, use and processing of data in the embodiments of the present application are in compliance with the relevant provisions of national laws and regulations.
[0048] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0049] A document is a medium for recording data, and users can view the data through documents.
[0050] When a user needs to export a document for data viewing, the device must first determine the user's permissions, then determine the data level that matches the permissions, use the data corresponding to the data level as data that the user can view, and then integrate the viewable data into a document for output.
[0051] The inventors of the present application discovered that the data in the device needs to be configured with data levels, and the data generated in the device is continuous. The device needs to consume a lot of computing resources to continuously configure the data levels for the data, which means that the cost of outputting documents from the device is too high.
[0052] The inventor of the present application therefore conceived that the data that a user can view can be determined through a configuration table, and there is no need for the document output device to configure the data level for the generated data, thereby saving the computing resources of the document output device and reducing the cost of the document output device to output documents. Furthermore, by obtaining the view identifier corresponding to the view that represents the function through user authority, the configuration table can be accurately obtained, and the data in the final output document can be accurately obtained, thereby improving the accuracy of the document output device in obtaining the data in the output document. In addition, by configuring block pair tags in the final document, the output document can flexibly display the data that the user can view within the scope of authority, and there is no need for the document output device to segment the data that the user can view from the target data, thereby reducing the workload of the document output device and improving the user experience.
[0053] Reference Figure 1 , Figure 1 This is a schematic diagram of the scenario of the document output method of this application. Figure 1 , the document output device 100 obtains a document generation request, which may be sent by the user 200 based on the terminal device 300. The document output device 100 determines the authority of the user 200 in the document output device 100, and determines the view identifier corresponding to the view that matches the authority, and then determines the configuration table through the view identifier. The document output device 100 determines the data type of the target data required to generate the document through the configuration table, and sets the value of the first block pair parameter in the configuration table to a true value to obtain the second block pair parameter. When the data type is not a picture, the document output device 100 determines the class based on the configuration table, generates a function based on the class, and then obtains the target data through the function. The document output device 100 adds the target data to the document template, and configures the block pair label in the document template based on the second block pair parameter to obtain the first document, and then the document output device 100 outputs the first document, that is, the document output device 100 sends the first document to the terminal device 300.
[0054] The following combination Figure 1 , the document output method of this application is described in detail.
[0055] Reference Figure 2 , Figure 2 FIG. 2 is a flow chart of a first embodiment of a document output method of the present application, wherein the document output method comprises:
[0056] Step S201 : obtaining the authority of the user associated with the document generation request in the document output device, determining a view that matches the authority, and obtaining a configuration table that matches the view according to a view identifier corresponding to the view.
[0057] In this embodiment, the execution subject is a document output device. For the convenience of description, the document output device is referred to as a device below. The device can be a backend server or any terminal device that has the function of generating data and outputting documents.
[0058] When a user needs to obtain a document generation request, the terminal device can send the document generation request to the apparatus. After the apparatus obtains the document generation request, it parses the document generation request to obtain the device identification of the terminal device. The device identification is associated with the user identification, which represents the user. The user identification can be an identification representing the unique identity of the user.
[0059] After obtaining the user identification, the device can determine the user's authority in the device through the user identification. For example, the device stores the user's role, such as the level of the user's account logged in to the device, and the role can also be the user's position, such as a data manager or a data browser. Each role is associated with a user identification and authority, and the user can determine the user's authority in the device through the user identification.
[0060] The device is provided with multiple functions, and each function can be reflected in a page, that is, the page can display each function. Each function has a corresponding view in the page, so each function can be represented by a view. Each view has a corresponding view identifier, such as a view ID.
[0061] After determining the user's authority, the device determines a view that matches the authority. For example, if the user's authority indicates that the user can use function A and function B, the view that matches the authority is view A that indicates function A and view B that indicates function B.
[0062] The device is provided with multiple configuration tables, which include multiple parameters, each of which includes at least an interface number, an interface type, a class name and method corresponding to the interface, an image size, a block pair parameter, a view identifier, a class name and method to be processed. The method in the configuration table is a function.
[0063] After determining the view identifier, the device determines the configuration table matching the view through the view identifier. For example, if the device obtains view identifiers ID1 and ID2, the configuration table containing ID1 and ID2 is used as the configuration table matching the view identifier.
[0064] Step S202, determining the data type of the target data required to generate the document according to the configuration table, and setting the value of the first block pair parameter in the configuration table to a true value to obtain the second block pair parameter.
[0065] After obtaining the configuration table, the device determines the data type of the target data to be acquired based on the configuration table. Exemplarily, the configuration table includes an interface type, and the type of data acquired by the interface can be determined by the interface type. For example, the interface type is 1, indicating that the interface can only acquire text, the interface type is 2, indicating that the interface can only acquire pictures, the interface type is 3, indicating that the interface can only acquire tables, the interface type is 4, indicating that the interface can acquire lists, and the interface type is 5, indicating that the interface can acquire text, lists, and tables.
[0066] In addition, the configuration table includes a block pair parameter, which is defined as a first block pair parameter. The device sets the value of the first block pair parameter to a true value, that is, sets the value of the first block pair to true to obtain a second block pair parameter. The second block pair parameter can be used for flexible display functions and paragraphs. Specifically, the first block pair parameter indicates that the user can view part of the data. For example, the user can view the first chapter or the first paragraph of all the data. The first chapter or the first paragraph is compiled into the first block pair parameter. When the value of the first block pair parameter is set to a true value, it indicates that the final document can display the first chapter or the first paragraph of the data.
[0067] Step S203, in response to the data type not being a picture, determining a class according to the configuration table, determining a function according to the class, and acquiring target data according to the function.
[0068] When the data type is not a picture, the device needs to obtain dynamic data. Dynamic data represents non-static data, and static data is a picture.
[0069] In this regard, the device determines the class based on the configuration table, determines the function according to the type, and obtains the target data through the function, and the target data is the data required for the document to be generated.
[0070] In one example, the device obtains the interface class name from the configuration table, and then obtains the class through the interface class name.
[0071] In another example, the device obtains the interface class name and method from the configuration table, the method is defined as a function, and the class is obtained using ApplicationContext (application context) through the interface class name and function.
[0072] After determining the class, the device determines the function through the class. In one example, the device obtains the function name from the configuration table, and determines the function that matches the class based on the function name and the parameters in the configuration table. Specifically, the device calls getMethods and getParmeterTypes through the class, matches the function name with the parameters in the configuration table, and obtains the function that matches the function name.
[0073] In another example, a class is associated with a corresponding function, that is, the class and the function have an association relationship, and the device can determine the function based on the class and the association relationship between the classes.
[0074] After the device obtains the function, it obtains dynamic data through the function and can execute the function so that the interface in the configuration table obtains the target data. By obtaining data on the device through the function, there is no need to obtain data from the server, that is, the data does not need to be transmitted between servers, which reduces network transmission and largely avoids the problem of too long data acquisition time caused by too large request data.
[0075] Step S204, adding the target data to the document template, and configuring the first block pair tag in the document template according to the second block pair parameter, obtaining the first document, and outputting the first document, the first block pair tag, used to indicate that the first document displays part of the target data, and the part of the target data is the sub-data whose permissions match in each sub-data of the target data.
[0076] A document template is stored in the device. The device adds the target data to the document template, and then sets the block pair tag in the document template to which the target data is added to obtain the first file, that is, the second block pair parameter is set to the first block pair tag. The device outputs the first document. It should be noted that the first block pair tag is used to indicate that the first document displays part of the target data, and part of the target data is the sub-data whose permissions match in each sub-data of the target data. In addition, the target data has corresponding attributes, and the attributes connecting the target data can be added to the document template. The attributes are, for example, the name of the target data. In addition, the target data, the data tag of the target data, and the attributes can also be added to the document template. The data tag is at least one of a text tag, an image tag, a table tag, and a list tag. The text tag, the image tag, the table tag, and the list tag are specifically described as follows; when the target data is text, the data tag is a text tag.
[0077] Furthermore, the target data has a corresponding data type. The device first adds the target data to the document template, and then replaces the label in the document template with a data label corresponding to the data type. The data label is used to instruct the first document to display the target data in a display form corresponding to the data type.
[0078] In one example, data tags include text tags, image tags, table tags, and list tags. For example, text tags are {{var}}, image tags are {{@var}}, table tags are {{#var}}, and list tags are {{*var}}. When the target data is a table and the tag in the document template is text, {{var}} in the document template is replaced with {{#var}}, that is, "#" is added to {{var}} in the original tag. If the tag in the document template is {{#var}}, the target data will be displayed in the form of a table.
[0079] In another example, the interface number in the device and configuration table is the key, and the target data is the value. If the data structure is a map and the document is displayed as text, the label in the document is replaced with {{interface number.field name}}, for example: {{A001.name}}; if the document is displayed as a table list, the label in the document is replaced with {{interface number.dataList.field name}}, for example: {{B001.dataList.name}}; if the document is displayed as a picture, the label in the document is replaced with {{@interface number.interface number_pic}}, for example: {{@C001.C001_pic}}. In addition, the block configures the label {{? info}}{{ / info}}.
[0080] In this embodiment, the authority of the user associated with the document generation request in the document output device is obtained, the view matched by the authority is determined, and the configuration table matching the view is obtained based on the view identifier corresponding to the view, and the data type of the target data required to be obtained for the generated document is determined through the configuration table, and the value of the first block pair parameter in the configuration table is set to a true value to obtain the second block pair parameter. If the data type is not a picture, a function is determined based on the configuration table to obtain the target data through the function, and the target data is added to the document template, and a block pair label is set in the document template based on the second block pair parameter to obtain the first document, and finally the first document is output. In this embodiment, the data that the user can view can be determined through the configuration table, and the document output device does not need to configure the data level for the generated data, which saves the computing resources of the document output device and reduces the cost of the document output device to output the document. Further, by obtaining the view identifier corresponding to the view representing the function through the user authority, the configuration table can be accurately obtained, and the data in the final output document can be accurately obtained, which improves the accuracy of the document output device in obtaining the data in the output document. In addition, by configuring block pair tags in the final document, the output document can flexibly display the data that the user can view within the scope of his or her authority. There is no need for the document output device to separate the data that the user can view from the target data, which reduces the workload of the document output device and improves the user experience.
[0081] Reference Figure 3 , Figure 3 This is a flow chart of the second embodiment of the document output method of the present application. Based on the first embodiment, step S203 includes:
[0082] Step S301, determining a first display form of data acquired by a function.
[0083] Step S302, in response to the second display form of the data in the document template matching the first display form, obtaining data corresponding to the function from the document output device as target data.
[0084] In this embodiment, after determining the function, the device determines the display form of the data obtained by the function. Exemplarily, the function is associated with the display form of the data obtained by the function, and the device obtains the display form associated with the function as the first display form, and the first display form is, for example, displayed as text, picture, table, list, etc.
[0085] The device obtains the display form of data in the document template. Specifically, the device stores multiple document templates, and uses the display form of data in the document template with matching data types as the second display form. The device determines whether the first display form matches the second display form. When the first display form is the same as the second display form, it can be determined that the function can meet the display requirements of the document, that is, the first display form matches the second display form, and the data corresponding to the function is obtained from the device as the target data.
[0086] When the second display form is different from the first display form, it can be determined that the function cannot meet the display requirements of the document, and the data corresponding to the class is obtained from the device as the target data. The data corresponding to the class can be obtained through the class name and method to be processed by the result in the configuration table.
[0087] In this embodiment, the device determines the first display form of the data obtained by the function. When the second display form of the data in the document template matches the first display form, the data corresponding to the function is centrally obtained from the device to avoid the document being unable to display the data.
[0088] Reference Figure 4 , Figure 4 This is a flowchart of the third embodiment of the document output method of the present application. Based on the second embodiment, after step S202, it also includes:
[0089] Step S401, in response to the data type being a picture, obtaining a target picture based on a configuration table.
[0090] In this embodiment, when the data type is a picture, the device obtains the target picture based on the configuration table. Specifically, the configuration table includes the picture size and the storage location where the picture is located. The device obtains the storage location and the picture size from the configuration table, obtains the stored picture from the storage location, and then adjusts the size of the obtained picture to the picture size to obtain the target picture.
[0091] Step S402, add the target image to the document template, and configure the second block pair tag in the document template according to the second block pair parameter to obtain a second document, wherein the second block pair tag is used to indicate that the second document displays part of the target image, and the part of the target image is a sub-image whose permissions are matched in each sub-image of the target image.
[0092] Step S403: output the second document.
[0093] After obtaining the target image, the target image is added to the document template, and a second block pair tag is set in the document template to which the target image is added based on the second block pair parameter to obtain a second document, wherein the second block pair tag is used to indicate that the second document displays part of the target image, and the part of the target image is a sub-image whose rights are matched in each sub-image of the target image. The device then outputs the second document.
[0094] It should be noted that the device may include a front end and a back end. After the front end obtains the target image, it encodes the target image and then transmits the encoded target image stream to the back end. The back end then decodes the encoded target image to obtain the target image, and then generates a second document based on the target image, the second block pair parameters and the document template.
[0095] In this embodiment, if the data required for the document to be generated is a picture, the target picture is obtained through the configuration table, so that the second document is generated based on the target picture, so that the user can view the picture based on the second document.
[0096] See also Figure 5 , the document output device 500 provided in the embodiment of the present application, the document output device 500 includes:
[0097] The acquisition module 510 is used to acquire the authority of the user associated with the document generation request in the document output device, determine the view that matches the authority, and acquire the configuration table that matches the view according to the view identifier corresponding to the view;
[0098] A first determination module 520 is used to determine the data type of the target data required to generate the document according to the configuration table, and set the value of the first block pair parameter in the configuration table to a true value to obtain the second block pair parameter;
[0099] A second determination module 530 is configured to, in response to the data type not being a picture, determine a class according to the configuration table, determine a function according to the class, and obtain target data according to the function;
[0100] Adding module 540 is used to add the target data to the document template, and configure the first block pair tag in the document template according to the second block pair parameter to obtain the first document and output the first document. The first block pair tag is used to indicate that the first document displays part of the target data. The part of the target data is the sub-data whose permissions match in each sub-data of the target data.
[0101] In one embodiment, the document output device 500 is specifically used for:
[0102] Determine the first display form of the data obtained by the function;
[0103] In response to the second presentation form of the data in the document template matching the first presentation form, data corresponding to the function is acquired from the document output device as target data.
[0104] In one embodiment, the document output device 500 is specifically used for:
[0105] In response to the second presentation form of the data in the document template not matching the first presentation form, data corresponding to the class is acquired from the document output device as target data.
[0106] In one embodiment, the document output device 500 is specifically used for:
[0107] In response to the data type being a picture, acquiring a target picture based on the configuration table;
[0108] Add the target data to the document template, and configure the first block pair tag in the document template according to the second block pair parameter to obtain a first document, and output the first document, wherein the first block pair tag is used to indicate that the first document displays part of the target data, and the part of the target data is the sub-data whose permissions match in each sub-data of the target data;
[0109] Output the second document.
[0110] In one embodiment, the document output device 500 is specifically used for:
[0111] Get the interface class name and function in the configuration table;
[0112] Determine the class based on the interface class name and function.
[0113] In one embodiment, the document output device 500 is specifically used for:
[0114] Get the function name from the configuration table;
[0115] Determine the function that matches the class based on the function name and the parameters in the configuration table.
[0116] In one embodiment, the document output device 500 is specifically used for:
[0117] The target data is added to the document template, and the label in the document template is replaced with a data label corresponding to the data type, wherein the data label is used to instruct the first document to display the target data in a display form corresponding to the data type.
[0118] Each module of the document output device provided in the embodiment of the present application can realize Figures 2 to 4 Any embodiment provides the functions of each step of the document output method and can achieve its corresponding technical effects. For the sake of concise description, they will not be repeated here.
[0119] Figure 6 A schematic diagram of the hardware structure of a document output device provided in an embodiment of the present application is shown.
[0120] The document output device may include a processor 601 and a memory 602 storing computer program instructions.
[0121] Specifically, the processor 601 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0122] The memory 602 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 602 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 602 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 602 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 602 is a non-volatile solid-state memory.
[0123] In certain embodiments, the memory 602 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.
[0124] The processor 601 implements any one of the authentication methods in the above embodiments by reading and executing computer program instructions stored in the memory 602 .
[0125] In one example, the document output device may further include a communication interface 603 and a bus 610. Figure 6 As shown, the processor 601, the memory 602, and the communication interface 603 are connected via a bus 610 and communicate with each other.
[0126] The communication interface 603 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0127] Bus 610 includes hardware, software or both, and the parts of online data flow billing equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 610 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection.
[0128] The data processing method in the above embodiment can be implemented by providing a computer storage medium in the present application embodiment. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the data processing methods in the above embodiment is implemented.
[0129] An embodiment of the present application also provides a computer program product, including a computer program, which implements any one of the data processing methods in the above embodiments when the computer program is processed and executed.
[0130] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0131] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable document output device to produce a machine so that these instructions executed by the processor of the computer or other programmable document output device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0132] The above are only specific implementation methods of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A document output method, characterized in that: Applied to the document output device, the document output method comprises: Obtaining the authority of the user associated with the document generation request in the document output device, determining a view that matches the authority, and obtaining a configuration table that matches the view according to a view identifier corresponding to the view; Determine the data type of the target data required to be acquired for the to-be-generated document according to the configuration table, and set the value of the first block pair parameter in the configuration table to a true value to obtain the second block pair parameter; In response to the data type being not a picture, determining a class according to the configuration table, determining a function according to the class, and acquiring the target data according to the function; The target data is added to a document template, and according to the second block pair parameter, a first block pair tag is configured in the document template to obtain a first document, and the first document is output, wherein the first block pair tag is used to indicate that the first document displays part of the target data, and part of the target data is the sub-data matched by the permission in each sub-data of the target data.
2. The document output method according to claim 1, characterized in that: The step of obtaining the target data according to the function comprises: Determining a first display form of the data acquired by the function; In response to the second presentation form of the data in the document template matching the first presentation form, data corresponding to the function is acquired from the document output device as the target data.
3. The document output method according to claim 2, characterized in that: After the step of determining the first display form of the data acquired by the function, the method further includes: In response to the second presentation form of the data in the document template not matching the first presentation form, data corresponding to the class is acquired from the document output device as target data.
4. The document output method according to claim 1, characterized in that: After the step of setting the value of the first block pair parameter in the configuration table to a true value to obtain the second block pair parameter, the method further includes: In response to the data type being a picture, acquiring a target picture based on the configuration table; The target image is added to the document template, and a second block pair tag is configured in the document template according to the second block pair parameter to obtain a second document, wherein the second block pair tag is used to indicate that the second document displays part of the target image, where the part of the target image is a sub-image matched by the permission in each sub-image of the target image; The second document is output.
5. The document output method according to any one of claims 1 to 4, characterized in that: The step of determining the class according to the configuration table comprises: Obtain the interface class name and function in the configuration table; The class is determined according to the interface class name and the function.
6. The document output method according to claim 5, characterized in that: The step of determining a function according to the class comprises: Get the function name from the configuration table; The function matching the class is determined according to the function name and the parameters in the configuration table.
7. The document output method according to any one of claims 1 to 6, characterized in that: The step of adding the target data to the document template comprises: The target data is added to the document template, and the label in the document template is replaced with a data label corresponding to the data type, wherein the data label is used to instruct the first document to display the target data in a display form corresponding to the data type.
8. A document output device, characterized in that: include: An acquisition module, used to acquire the authority of the user associated with the document generation request in the document output device, determine the view that matches the authority, and acquire the configuration table that matches the view according to the view identifier corresponding to the view; A first determination module is used to determine the data type of the target data required to be acquired for the to-be-generated document according to the configuration table, and to set the value of the first block pair parameter in the configuration table to a true value to obtain a second block pair parameter; a second determination module, configured to, in response to the data type being not a picture, determine a class according to the configuration table, determine a function according to the class, and obtain the target data according to the function; An adding module is used to add the target data to a document template, and configure a first block pair tag in the document template according to the second block pair parameter to obtain a first document, and output the first document, wherein the first block pair tag is used to indicate that the first document displays part of the target data, and part of the target data is the sub-data matched by the permission in each sub-data of the target data.
9. A document output device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the document output method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the document output method according to any one of claims 1 to 7 is implemented.
11. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device is enabled to execute the document output method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Document generation method and device, computer readable medium and electronic equipment
CN111581937A
Configurable report export design method and system
CN114218904A
Document display method and device and computer readable storage medium
CN114741667A
Document auditing method and device, equipment, storage medium and computer program product
CN115935387A
Report generation method and system
CN117473969A