CN114462374A - Cross-system report generation method and device, computer equipment and storage medium - Google Patents

Cross-system report generation method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN114462374A
CN114462374A CN202210136108.8A CN202210136108A CN114462374A CN 114462374 A CN114462374 A CN 114462374A CN 202210136108 A CN202210136108 A CN 202210136108A CN 114462374 A CN114462374 A CN 114462374A
Authority
CN
China
Prior art keywords
data
chart
document
preset
operating system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210136108.8A
Other languages
Chinese (zh)
Inventor
冯伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kelai Network Technology Co ltd
Original Assignee
Kelai Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kelai Network Technology Co ltd filed Critical Kelai Network Technology Co ltd
Priority to CN202210136108.8A priority Critical patent/CN114462374A/en
Publication of CN114462374A publication Critical patent/CN114462374A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/109Font handling; Temporal or kinetic typography
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/117Tagging; Marking up; Designating a block; Setting of attributes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/174Form filling; Merging

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The application provides a cross-system report generation method and device, computer equipment and a storage medium, and relates to the technical field of computers. The method comprises the following steps: acquiring a document template created under a second operating system, wherein the document template comprises: and template characters and identifier embedding points of preset fonts are obtained from a preset data source corresponding to the identifier embedding points according to the identifier embedding points, the preset fonts are obtained from a font library of a pre-migrated second operating system, the embedding points to be filled are embedded into the document template, a document report is generated, and the template characters in the document report are the first fonts. By the method and the device, the report can be automatically generated across systems, and the consistency of fonts, contents and formats is guaranteed when the report is opened across systems.

Description

Cross-system report generation method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for generating a cross-system report, a computer device, and a storage medium.
Background
With the development of computer technology, the technical application range of the system for automatically generating the analysis report is wider and wider.
When an analysis report is automatically generated, a report template for generating the analysis report needs to be provided in advance, the existing report template is mainly generated in two ways, one is to edit the report template in a form of what you see is not what you get by using a Markup Language such as HTML (HyperText Markup Language), XML (Extensible Markup Language), and the like, and the other is to generate the report template by using a word document, wherein the way of using the Markup Language needs to be tested and verified continuously, the efficiency is low, and the way of using the word document has the problem of font messy codes when the report is generated across systems.
Disclosure of Invention
The present invention provides a method, an apparatus, a computer device and a storage medium for generating a cross-system report, so as to achieve the cross-system rapid generation of a document report and avoid font scrambling.
In order to achieve the above purpose, the technical solutions adopted in the embodiments of the present application are as follows:
in a first aspect, an embodiment of the present application provides a cross-system report generation method, which is applied to a server having a first operating system, and the method includes:
acquiring a document template created under a second operating system, wherein the document template comprises: embedding points of template characters and identifiers of preset fonts;
according to the identifier burying point, acquiring data of the burying point to be filled from a preset data source corresponding to the identifier burying point;
acquiring the preset font from a font library of the second operating system which is migrated in advance;
and filling the to-be-filled buried point data into the document template to generate a document report, wherein the template characters in the document report are the first fonts.
Optionally, the identifier burying point includes: the method for acquiring the buried point data to be filled from the preset data source corresponding to the identifier buried point according to the identifier buried point comprises the following steps:
according to the first identifier buried point, obtaining a visual chart from a chart library corresponding to the first identifier buried point, wherein the to-be-filled buried point data comprises: the visualization chart.
Optionally, before obtaining the visual chart from the chart library corresponding to the first identifier buried point according to the first identifier buried point, the method further includes:
acquiring chart data and type information of a visual chart to be generated;
generating data in a binary stream format according to the chart data and the type information;
identifying and packaging the data in the binary stream format to generate the visual chart;
and storing the visual chart into the chart library.
Optionally, the generating data in a binary stream format according to the chart data and the type information includes:
converting the chart data and the type information into information of a preset data structure;
and rendering the data in the binary stream format according to the information of the preset data structure.
Optionally, the obtaining of the chart data and the type information of the visual chart to be generated includes:
and acquiring the chart data and the type information at fixed time.
Optionally, the obtaining the preset font from the font library of the second operating system migrated in advance includes:
adding a font library of the second operating system to a font directory from the first operating system;
and acquiring the preset font from the font directory of the first operating system.
Optionally, the step of filling the to-be-filled embedding point data into the document template to generate the document report with the text content in the first font includes:
filling the data of the buried points to be filled into the document template;
and converting the document template filled with the buried point data into a document report in a format corresponding to the preset process manager according to the unique identifier of the preset process manager.
In a second aspect, an embodiment of the present application further provides a cross-system report generation apparatus, applied to a server having a first operating system, where the apparatus includes:
a document template obtaining module, configured to obtain a document template created under a second operating system, where the document template includes: embedding points of template characters and identifiers of preset fonts;
the buried point data acquisition module is used for acquiring buried point data to be filled from a preset data source corresponding to the identifier buried point according to the identifier buried point;
the font obtaining module is used for obtaining the preset font from a font library of the second operating system which is migrated in advance;
and the document report generating module is used for filling the data of the buried points to be filled into the document template to generate a document report, wherein the template characters in the document report are the first fonts.
Optionally, the identifier burying point includes: the buried point data acquisition module is specifically configured to acquire a visual chart from a chart library corresponding to the first identifier buried point according to the first identifier buried point, and the buried point data to be filled includes: the visualization chart.
Optionally, the apparatus further comprises:
the information acquisition module is used for acquiring the chart data and the type information of the visual chart to be generated;
the data generation module is used for generating data in a binary stream format according to the chart data and the type information;
the chart packaging module is used for identifying and packaging the data in the binary stream format to generate the visual chart;
and the chart storage module is used for storing the visual chart into the chart library.
Optionally, the data generating module includes:
the information format conversion unit is used for converting the chart data and the type information into information of a preset data structure;
and the information rendering unit is used for rendering the data in the binary stream format according to the information of the preset data structure.
Optionally, the information obtaining module is specifically configured to obtain the chart data and the type information at regular time.
Optionally, the font obtaining module includes:
a font directory adding unit for adding the font library of the second operating system to the font directory of the first operating system;
and the font obtaining unit is used for obtaining the preset font from the font catalog of the first operating system.
Optionally, the document report generating module includes:
the data filling unit is used for filling the data of the buried points to be filled into the document template;
and the document report generating unit is used for converting the document template filled with the buried point data into a document report in a format corresponding to the preset process manager according to the unique identifier of the preset process manager.
In a third aspect, an embodiment of the present application further provides a computer device, including: a processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor, when the computer device runs, the processor communicates with the storage medium through the bus, and the processor executes the program instructions to execute the steps of the cross-system report generation method according to any one of the above embodiments.
In a fourth aspect, embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored on the storage medium, and the computer program is executed by a processor to perform the steps of the cross-system report generation method according to any one of the above embodiments.
The beneficial effect of this application is:
the application provides a cross-system report generation method, a device, computer equipment and a storage medium, wherein the method is applied to a server with a first operating system and used for acquiring a document template established under a second operating system, and the document template comprises the following steps: and template characters and identifier embedding points of preset fonts are obtained from a preset data source corresponding to the identifier embedding points according to the identifier embedding points, the preset fonts are obtained from a font library of a pre-migrated second operating system, the embedding points to be filled are embedded into the document template, a document report is generated, and the template characters in the document report are the first fonts. According to the method and the device, the font library of the second operating system is migrated to the first operating system, so that the consistency of the fonts when the document report is generated according to the document template established under the second operating system is ensured, the problem of messy codes of the fonts is avoided, and the cross-system rapid generation of the document report is realized.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic flowchart of a cross-system report generation method according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of another cross-system report generation method provided in the embodiment of the present application;
fig. 3 is a schematic flowchart of another cross-system report generation method according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of another cross-system report generation method according to an embodiment of the present application;
FIG. 5 is a schematic flow chart diagram illustrating yet another cross-system report generation method provided by an embodiment of the present application;
fig. 6 is a schematic structural diagram of a cross-system report generation apparatus according to an embodiment of the present application;
fig. 7 is a schematic diagram of a computer device provided in an embodiment of the present application.
Detailed Description
The drawings in the embodiments clearly and completely describe the technical solutions in the embodiments of the present invention, and obviously, the described embodiments are a part of the embodiments of the present invention, but not all of the embodiments.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that the terms "first", "second", and the like in the description and in the claims, and in the drawings described above, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the features of the embodiments of the present invention may be combined with each other without conflict.
Before explaining the scheme provided by the present application in detail, the scenario applied by the present application is explained.
When an analysis report is automatically generated, a report template for generating the analysis report needs to be provided in advance, and the existing report template is mainly generated in two ways, one way is to edit the report template in a what you see is not what you get form by using a Markup Language such as HTML (HyperText Markup Language), XML (Extensible Markup Language), and the like, and the other way is to generate the report template by using a word document.
The method adopts a markup language mode, because the report template has the characteristics of unobtainable characters, the adjustment difficulty of the report template is high, the report template needs to be tested and verified continuously, and the efficiency is low.
Based on this, the application provides a cross-system report generation method, device, computer equipment and storage medium, so as to avoid the problem of font scrambling codes when generating a document report across systems.
It should be noted that the cross-system report generation method provided by the present application is applied to a server having a first operating system, and a data management system or a data production system is installed in the server in advance, and the data management system or the data production system usually needs to generate a document report according to data for a user to analyze. The cross-system related to the present application is divided into generating a document template in a second operating system, and generating a document report according to the document template in a first operating system, or installing a data management system or a data production system developed based on the first operating system in the second operating system, wherein although the data management system or the data production system runs in the second operating system, the running kernel of the data management system or the data production system is still the first operating system.
Referring to fig. 1, a schematic flow chart of a cross-system report generation method according to an embodiment of the present application is shown in fig. 1, where the method includes:
s10: acquiring a document template created under a second operating system, wherein the document template comprises: and embedding points of template characters and identifiers of preset fonts.
In this embodiment, according to the requirement of writing a report in the actual working process, the method is used to create a plurality of document templates in the second operating system, and upload the document templates to the template management module in the first operating system for storage, where each document template has a unique type. When a document report of a preset type needs to be generated, a document template of the preset type is obtained from the template management module, wherein the document template comprises: template characters of a preset font and identifier embedding points are used for indicating data types and data identifications which need to be filled at positions where the identifier embedding points are located.
For example, the first operating system in this embodiment may be a Linux system, and the second operating system may be a windows system.
S20: and acquiring data of the buried points to be filled from a preset data source corresponding to the identifier buried points according to the identifier buried points.
In this embodiment, the identifier burying point includes: the data type is used for indicating data attribute information, such as production quantity, sales amount and the like, the data range is used for indicating a range for selecting the data to be filled in, such as date of data generation, size of data and the like, and the data to be filled in can be data in a format of characters, numbers, tables, pictures and the like.
The data management system or the data generation system generally stores the data in different preset data sources according to the data type, so that when a document report is generated, the data to be filled in the data range corresponding to the identifier burying point is acquired from the preset data source corresponding to the data type according to the data type corresponding to the identifier burying point.
In an alternative embodiment, the identifier burial point comprises: the first identifier burial point, S20, includes:
according to the first identifier buried point, obtaining a visual chart from a chart library corresponding to the first identifier buried point, wherein the data to be filled buried point comprises: a chart is visualized.
In this embodiment, the first identifier burying point includes: the data type and the data identification are used for indicating a data range corresponding to the visual chart, visualizing data which need to be displayed in a chart form in a document report in advance to generate the visual chart, the visual chart is stored in a corresponding chart library, the first identifier buried point is a chart identifier buried point, and when the document report is generated, the visual chart is acquired as buried point data to be filled by adopting the data identification corresponding to the identifier buried point from the chart library corresponding to the data type according to the data type of the first identifier buried point.
S30: and acquiring a preset font from the font library of the pre-migrated second operating system.
Generally, if the font library of the first operating system does not include the preset font of the document template, the text of the preset font may generate a messy code when the document report is generated, so that the generated report cannot be read normally. In this embodiment, by migrating the font library of the second operating system to the first operating system, when a document report is generated, a preset font is obtained from the font library of the second operating system that is migrated in advance.
S40: and filling the data of the buried points to be filled into the document template to generate a document report, wherein the template characters in the document report are in a first font.
In this embodiment, the to-be-filled embedded point data is filled in the position of the identifier embedded point in the document template, a document converter pre-developed in the second operating system is used to generate a document report in a preset format, the template characters in the document report are the first fonts, and if the to-be-filled embedded point data in the document report is the characters, the first fonts are also used.
The cross-system report generation method provided by the embodiment of the application is applied to a server with a first operating system, and a document template created under a second operating system is obtained, and the document template comprises: and embedding the template characters and the identifier points of the preset fonts, acquiring data to be filled from a preset data source corresponding to the identifier points according to the identifier points, acquiring the preset fonts from a font library of a pre-migrated second operating system, filling the data to be filled into the document template, and generating a document report, wherein the template characters in the document report are the first fonts. According to the method and the device, the font library of the second operating system is migrated to the first operating system, so that the consistency of the fonts when the document report is generated according to the document template established under the second operating system is ensured, the problem of messy codes of the fonts is avoided, and the cross-system rapid generation of the document report is realized.
In the foregoing embodiment, the present application further provides a method for generating a visualization chart in a cross-system report generation method. Referring to fig. 2, a schematic flow chart of another cross-system report generation method provided in the embodiment of the present application is shown, and as shown in fig. 2, the method further includes:
s51: and obtaining chart data and type information of a visual chart to be generated.
In this embodiment, a server-side application program is developed in advance in a server, the application program serves as a business system for generating a visual chart, and a data source for generating the visual chart and a type of the generated visual chart are defined in advance in the application program. The application program is provided with a scheduler, and the scheduler acquires data needing to generate the chart from a data source and determines the type information of the corresponding visual chart. By way of example, the type of visualization chart may be a bar chart, a pie chart, a broken line chart, and the like.
In an alternative embodiment, the step S51 includes: and obtaining chart data and type information at regular time.
In this embodiment, the application program further has a timer SpringSchedule, and the scheduler is triggered to acquire the chart data and the type information periodically or periodically by the timer.
S52: and generating data in a binary stream format according to the chart data and the type information.
In this embodiment, the scheduler sends the chart data and the type information to a graph processing module integrated in the server, where the graph processing module may be, for example, an echarts visual chart processing module, and the graph processing module generates data in a binary stream format corresponding to a visual chart according to the chart data and the type information, where the data in the binary stream format represents the visual chart in a two-level streaming manner, and the data in the binary stream format corresponding to each visual chart may exist in a JSON-formatted file. By way of example, the style, color, layout, etc. of the visualization chart may be set in the graph processing module.
S53: and identifying and packaging the data in the binary stream format to generate a visual chart.
In this embodiment, the graph processing module may generate the visual graph corresponding to the graph data and the type information by identifying and encapsulating the data in the binary stream format.
S54: and storing the visual chart into a chart library.
In this embodiment, the visualization charts are stored in the chart library of the corresponding type, and the corresponding directory is generated in the server, where each visualization chart has a unique data identifier for indicating data content included in the visualization chart.
In an alternative implementation manner, please refer to fig. 3, which is a flowchart illustrating a further cross-system report generating method according to an embodiment of the present application, as shown in fig. 3, the step S52 includes:
s521: and converting the chart data and the type information into information of a preset data structure.
In this embodiment, the graph processing module needs to call a Webkit kernel program to convert the graph data and the type information into data in a binary stream format, and therefore the graph processing module needs to convert the graph data and the type information into information of a preset data structure that can be recognized by the Webkit kernel program.
In an alternative embodiment, the Webkit kernel is generally bound in a component with a Headless browser, which is a browser without an interface, and generally has functions of a Headless browser, namely no visual interface. And the image processing module calls the headless browser through the API interface so as to call the functions of the Webkit kernel program through the headless browser. And a headless browser is adopted, so that automatic calling without manual intervention can be realized.
S522: and rendering the data in the binary stream format according to the information of the preset data structure.
In this embodiment, the Webkit kernel program may render information of the preset data structure into a corresponding visualization chart, and convert the visualization chart into data in a binary stream format that may be sent to the graph processing module.
The cross-system report generation method provided by the embodiment of the application obtains the chart data and the type information of the visual chart to be generated, generates the data in the binary stream format according to the chart data and the type information, identifies and encapsulates the data in the binary stream format to generate the visual chart, and stores the visual chart into the chart library. According to the method and the device, the visual chart can be automatically generated according to the chart data and the type information, so that the visual chart can be filled in the document template, and the form of a document report is enriched.
On the basis of the above embodiment, an embodiment of the present application further provides a cross-system report generation method, so as to implement migration of a font library of a second operating system to a first operating system. Referring to fig. 4, a schematic flow chart of another cross-system report generation method according to an embodiment of the present application is shown in fig. 4, where the step S30 includes:
s31: adding the font library of the second operating system to the font directory of the slave first operating system.
In this embodiment, the font library of the second operating system is transplanted to the path of the font library directory of the first operating system, the authority of the font library of the second operating system is modified, a file in a preset format corresponding to the font library of the second operating system is generated, a file corresponding to the font library directory of the first operating system is modified, the file in the preset format is stored in the file corresponding to the font library directory of the first operating system, and the font of the second operating system is newly added to the font directory of the first operating system by updating the font directory of the first operating system.
S32: and acquiring a preset font from a font directory of the first operating system.
In this embodiment, after all fonts in the font library of the second operation are migrated to the second operating system, the preset fonts are acquired from the font directory of the first operating system according to the preset fonts of the template characters in the document template.
In the cross-system report generating method provided by the foregoing embodiment, the font library of the second operating system is added to the font directory of the first operating system, and the preset font is obtained from the font directory of the first operating system. According to the method and the device, the font library of the second operating system is added to the font directory of the first operating system, so that the second operating system can obtain the preset font from the font directory, and messy characters and codes during generation of the document report are avoided.
On the basis of the above embodiments, the embodiments of the present application further provide a cross-system report generation method. Referring to fig. 5, a schematic flow chart of yet another cross-system report generation method provided in the embodiment of the present application is shown in fig. 5, where the step S40 includes:
s41: and filling the data to be filled into the document template.
In this embodiment, the buried point data to be filled is filled in the position of the identifier buried point in the document template.
S42: and converting the document template filled with the buried point data into a document report in a format corresponding to the preset process manager according to the unique identifier of the preset process manager.
In this embodiment, the document converter needs to perform document format conversion by relying on a LibreOffice service component integrated in the first operating system, the LibreOffice provides multiple import and export formats for the document, and each format corresponds to one process manager. The LibreOffice acquires a preset font from the font directory and sends the preset font to the document converter, so that the document converter generates a document report by using the preset font.
When the document converter starts to convert the document, a library process is established, a process manager with the best first operating system is selected according to the PID (process Identity document) of the library process, and the document template filled with the buried point data is converted into a document report with a format corresponding to the preset process manager based on the process manager. For example, the document converter may be a Java OpenDocument converter (JODConverter), OpenDocument is a document format, the optimal process manager of the first operating system may convert the document template filled with the buried point data into a document report in the OpenDocument format, and the OpenDocument format is a default format.
When document reports in other formats need to be generated, the document converter sends a shell command to the LibreOffice to establish a Libre process corresponding to the PID, and a corresponding process manager is selected according to the PID to generate the document report in the corresponding format. Other process managers may use ProcessManager interface calls.
According to the cross-system report generation method provided by the embodiment of the application, the data of the buried point to be filled is filled into the document template, and the document template filled with the data of the buried point is converted into the document report in the format corresponding to the preset process manager according to the unique identifier of the preset process manager. The document reports in different formats can be generated through the embodiment of the application, and the format types of the document reports are enriched.
On the basis of the foregoing embodiments, an embodiment of the present application further provides a cross-system report generating device, which is applied to a server having a first operating system, please refer to fig. 6, which is a schematic structural diagram of the cross-system report generating device provided in the embodiment of the present application, and as shown in fig. 6, the device includes:
a document template obtaining module 10, configured to obtain a document template created under a second operating system, where the document template includes: embedding points of template characters and identifiers of preset fonts;
the buried point data acquisition module 20 is configured to acquire buried point data to be filled from a preset data source corresponding to the identifier buried point according to the identifier buried point;
a font obtaining module 30, configured to obtain a preset font from a font library of the second operating system that is migrated in advance;
and the document report generating module 40 is configured to fill the data of the buried point to be filled into the document template to generate a document report, where template characters in the document report are in a first font.
Optionally, the identifier burial point includes: the first identifier buried point and buried point data obtaining module 20 is specifically configured to obtain a visual chart from a chart library corresponding to the first identifier buried point according to the first identifier buried point, where the to-be-filled buried point data includes: a chart is visualized.
Optionally, the apparatus further comprises:
the information acquisition module is used for acquiring the chart data and the type information of the visual chart to be generated;
the data generation module is used for generating data in a binary stream format according to the chart data and the type information;
the chart packaging module is used for identifying and packaging the data in the binary stream format to generate a visual chart;
and the chart storage module is used for storing the visual chart into a chart library.
Optionally, the data generating module includes:
the information format conversion unit is used for converting the chart data and the type information into information of a preset data structure;
and the information rendering unit is used for rendering the data in the binary stream format according to the information of the preset data structure.
Optionally, the information obtaining module is specifically configured to obtain the chart data and the type information at regular time.
Optionally, the font obtaining module 30 includes:
a font directory adding unit for adding the font library of the second operating system to the font directory of the slave first operating system;
and the font acquiring unit is used for acquiring the preset font from the font directory of the first operating system.
Optionally, the document report generating module 40 includes:
the data filling unit is used for filling the data to be filled into the document template;
and the document report generating unit is used for converting the document template filled with the buried point data into a document report in a format corresponding to the preset process manager according to the unique identifier of the preset process manager.
The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Referring to fig. 7, a schematic diagram of a computer device provided in an embodiment of the present application is shown, where the computer device 100 includes: a processor 101, a storage medium 102 and a bus, the storage medium 102 storing program instructions executable by the processor 101, the processor 101 communicating with the storage medium 102 via the bus when the computer device 100 is running, the processor 101 executing the program instructions to perform the above-mentioned method embodiments. The specific implementation and technical effects are similar, and are not described herein again.
Optionally, the present invention further provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, is adapted to perform the above-mentioned method embodiments.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one type of logical functional division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and shall be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A cross-system report generation method applied to a server having a first operating system, the method comprising:
acquiring a document template created under a second operating system, wherein the document template comprises: embedding points of template characters and identifiers of preset fonts;
acquiring data to be filled from a preset data source corresponding to the identifier buried point according to the identifier buried point;
acquiring the preset font from a font library of the second operating system which is migrated in advance;
and filling the to-be-filled buried point data into the document template to generate a document report, wherein the template characters in the document report are the first fonts.
2. The method of claim 1, wherein the identifier burial point comprises: the method for acquiring the buried point data to be filled from the preset data source corresponding to the identifier buried point according to the identifier buried point comprises the following steps:
according to the first identifier buried point, obtaining a visual chart from a chart library corresponding to the first identifier buried point, wherein the to-be-filled buried point data comprises: the visualization chart.
3. The method of claim 2, wherein prior to obtaining a visual chart from the first identifier-buried point mapping chart library based on the first identifier-buried point, the method further comprises:
acquiring chart data and type information of a visual chart to be generated;
generating data in a binary stream format according to the chart data and the type information;
identifying and packaging the data in the binary stream format to generate the visual chart;
and storing the visual chart into the chart library.
4. The method of claim 2, wherein generating data in a binary stream format based on the chart data and the type information comprises:
converting the chart data and the type information into information of a preset data structure;
and rendering the data in the binary stream format according to the information of the preset data structure.
5. The method of claim 2, wherein obtaining chart data and type information of a visual chart to be generated comprises:
and acquiring the chart data and the type information at fixed time.
6. The method of claim 1, wherein the obtaining the pre-set font from the pre-migrated font library of the second operating system comprises:
adding a font library of the second operating system to a font directory from the first operating system;
and acquiring the preset font from the font directory of the first operating system.
7. The method of any one of claims 1-6, wherein said populating said document template with said to-be-populated buried point data to generate a document report having said textual content in said first font comprises:
filling the data of the buried points to be filled into the document template;
and converting the document template filled with the buried point data into a document report in a format corresponding to the preset process manager according to the unique identifier of the preset process manager.
8. A cross-system report generating apparatus, applied to a server having a first operating system, the apparatus comprising:
a document template obtaining module, configured to obtain a document template created under a second operating system, where the document template includes: embedding points of template characters and identifiers of preset fonts;
the buried point data acquisition module is used for acquiring buried point data to be filled from a preset data source corresponding to the identifier buried point according to the identifier buried point;
the font obtaining module is used for obtaining the preset font from a font library of the second operating system which is migrated in advance;
and the document report generating module is used for filling the data of the buried points to be filled into the document template to generate a document report, wherein the template characters in the document report are the first fonts.
9. A computer device, comprising: a processor, a storage medium and a bus, the storage medium storing program instructions executable by the processor, the processor and the storage medium communicating via the bus when the computer device is running, the processor executing the program instructions to perform the steps of the cross-system report generating method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the cross-system report generating method according to any one of claims 1 to 7.
CN202210136108.8A 2022-02-15 2022-02-15 Cross-system report generation method and device, computer equipment and storage medium Pending CN114462374A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210136108.8A CN114462374A (en) 2022-02-15 2022-02-15 Cross-system report generation method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210136108.8A CN114462374A (en) 2022-02-15 2022-02-15 Cross-system report generation method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114462374A true CN114462374A (en) 2022-05-10

Family

ID=81412735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210136108.8A Pending CN114462374A (en) 2022-02-15 2022-02-15 Cross-system report generation method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114462374A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116306556A (en) * 2023-05-24 2023-06-23 中国船舶集团有限公司第七〇七研究所 Document generation method, device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116306556A (en) * 2023-05-24 2023-06-23 中国船舶集团有限公司第七〇七研究所 Document generation method, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106708480B (en) Management platform implementation method and device
CN108491199B (en) Method and terminal for automatically generating interface
CN110705237B (en) Automatic document generation method, data processing device and storage medium
CN102945287A (en) Java server page (JSP) data automatic paging java standard tag library (JSTL) label technology and application
CN113094042B (en) Browser-based realization and analysis method for custom component of power automation system
CN110069737B (en) Content generation method and device, computer equipment and storage medium
CN113095995A (en) Webpage watermark adding method and device, electronic equipment and storage medium
CN103530338A (en) Frame for carrying out page rendering on calculation equipment and page generation method
CN113158101A (en) Visual page rendering method, device, equipment and storage medium
CN103309849B (en) A kind of docx document creation based on OpenXML and amending method
US8704852B2 (en) Methods for generating one or more composite image maps and systems thereof
CN113419729A (en) Front-end page building method, device, equipment and storage medium based on modularization
CN114462374A (en) Cross-system report generation method and device, computer equipment and storage medium
US20180246857A1 (en) Markup code generator
CN107070679A (en) A kind of method uniformly released news in different platform
CN112905944A (en) Page online dynamic generation method and device, electronic equipment and readable storage medium
CN114756228A (en) Page processing method, device, equipment and storage medium
CN112783494A (en) Automatic skeleton screen generation method and device and application page updating method and device
CN115357239A (en) Method and device for quickly building operation activity page and electronic equipment
US9372844B2 (en) Automatically generating a business process flow GUI using a symbolic annotation language
CN111913703B (en) Object editing method, device, electronic equipment and readable storage medium
CN110704154B (en) Multi-language template release method and system
CN110019968B (en) XML file processing method and device
CN110119502A (en) A method of dynamic table single domain is realized based on OFD document
CN113935301B (en) Report generation method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination