+

CN117540713A - A method to generate reports with charts based on template configuration - Google Patents

A method to generate reports with charts based on template configuration Download PDF

Info

Publication number
CN117540713A
CN117540713A CN202311629163.1A CN202311629163A CN117540713A CN 117540713 A CN117540713 A CN 117540713A CN 202311629163 A CN202311629163 A CN 202311629163A CN 117540713 A CN117540713 A CN 117540713A
Authority
CN
China
Prior art keywords
report
data
business
indicator
template
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
CN202311629163.1A
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.)
Beijing North Star Technology Development Co ltd
Huanggang Power Supply Co of State Grid Hubei Electric Power Co Ltd
Xiangyang Power Supply Co of State Grid Hubei Electric Power Co Ltd
Original Assignee
Beijing North Star Technology Development Co ltd
Huanggang Power Supply Co of State Grid Hubei Electric Power Co Ltd
Xiangyang Power Supply Co of State Grid Hubei Electric Power 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 Beijing North Star Technology Development Co ltd, Huanggang Power Supply Co of State Grid Hubei Electric Power Co Ltd, Xiangyang Power Supply Co of State Grid Hubei Electric Power Co Ltd filed Critical Beijing North Star Technology Development Co ltd
Priority to CN202311629163.1A priority Critical patent/CN117540713A/en
Publication of CN117540713A publication Critical patent/CN117540713A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates

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)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to the technical field of data processing, and provides a method and a system for generating a report with a chart based on template configuration, wherein the method comprises the following steps: configuring service indexes in a report template; arranging a plurality of types of placeholders in the report template; correlating the acquired data for reporting with the business indexes in the reporting template, and assigning values to the business indexes according to the data for reporting; and filling the assigned business index data into the corresponding placeholder positions according to the assigned business index type to generate a report. The invention can dynamically generate the required data according to the business index in the report template without artificial change, thereby effectively improving the production efficiency. The present invention can extract report data from various databases, generate types such as graphics and charts from the report data, and fill the types into the placeholder positions designated by the templates to generate a report of the union of the graphics and charts. The invention solves the problem of inefficiency of manually filling the report in the traditional scheme, and can form a data report of the graph, the text and the combination.

Description

一种基于模板配置生成带图表报告的方法A method to generate reports with charts based on template configuration

技术领域Technical field

本发明涉及数据处理技术领域,尤其涉及一种基于模板配置生成带图表报告的方法。The present invention relates to the field of data processing technology, and in particular, to a method for generating a report with charts based on template configuration.

背景技术Background technique

随着信息技术的发展,目前企业信息化已经深入人心,很多大型企业不同的部门都会基于业务发展的需要建设多个信息化系统。企业综合管理的需要,日常也会需要从不同的部门收集日常生产运营报表或者建设企业级管理驾驶舱的需要从各个部门或各个业务渠道的不同数据源获取各类业务数据,并生成报告作直观化展示,以帮助企业管理者更直观的了解各业务板块的运转情况,帮助企业防范风险。也就是说绝大多数企业需要一个指标数据中心,从各个板块汇集采集指标数据后生成报告辅助行政管理。With the development of information technology, enterprise informatization has been deeply rooted in the hearts of the people. Different departments of many large enterprises will build multiple informatization systems based on the needs of business development. To meet the needs of comprehensive enterprise management, it is also necessary to collect daily production and operation reports from different departments or to build an enterprise-level management cockpit. It is necessary to obtain various business data from different data sources in various departments or business channels and generate reports for intuitive viewing. It provides a comprehensive display to help corporate managers understand the operation of each business sector more intuitively and help companies prevent risks. In other words, most enterprises need an indicator data center to collect indicator data from various sectors and generate reports to assist administrative management.

传统方案中,通常采用人为从数据库中查询相关数据,然后手动将数据填入相关报告中,而且人为手动填写的报告通常只有文字和数据信息,无法形成图标报告。In traditional solutions, people usually query relevant data from the database and then manually fill in the data into relevant reports. Moreover, manually filled reports usually only have text and data information, and cannot form icon reports.

不仅如此,传统方案中,通常业务指标和指标参数固定,这样生成的报告只适合单一固定的场景使用,适用性差,无法匹配不同需求的使用场景。Not only that, in traditional solutions, business indicators and indicator parameters are usually fixed, so the reports generated are only suitable for a single fixed scenario, have poor applicability, and cannot match usage scenarios with different needs.

发明内容Contents of the invention

本发明的目的在于解决背景技术中的至少一个技术问题,提供一种基于模板配置生成带图表报告的方法。The purpose of the present invention is to solve at least one technical problem in the background art and provide a method for generating a report with charts based on template configuration.

为实现上述目的,本发明提供一种基于模板配置生成带图表报告的方法,包括:In order to achieve the above objectives, the present invention provides a method for generating a report with charts based on template configuration, including:

在报告模板中配置业务指标;Configure business indicators in report templates;

在报告模板中布设多种类型的占位符;Arrange various types of placeholders in report templates;

将获取的报告用数据与报告模板中的业务指标关联,根据报告用数据对业务指标赋值;Associate the obtained report data with the business indicators in the report template, and assign values to the business indicators based on the report data;

根据赋值后的业务指标的类型,将赋值后的业务指标数据填入对应的占位符位置,生成报告。According to the type of the assigned business indicator, fill in the assigned business indicator data into the corresponding placeholder position and generate a report.

根据本发明的一个方面,所述在报告模板中配置业务指标,包括:According to one aspect of the present invention, configuring business indicators in the report template includes:

配置报告模板,在报告模板中创建业务指标;Configure the report template and create business indicators in the report template;

创建和管理与业务指标关联的指标参数;Create and manage indicator parameters associated with business indicators;

根据指标参数生成指标数据,通过指标数据对业务指标赋值。Generate indicator data based on indicator parameters, and assign values to business indicators through the indicator data.

根据本发明的一个方面,管理所述指标参数包括新增、修改和/或删除所述指标参数。According to one aspect of the present invention, managing the indicator parameters includes adding, modifying and/or deleting the indicator parameters.

根据本发明的一个方面,所述占位符包括:数据类占位符、文本类占位符、图形类占位符、表格类占位符。According to one aspect of the present invention, the placeholders include: data placeholders, text placeholders, graphic placeholders, and table placeholders.

根据本发明的一个方面,所述将获取的报告用数据与报告模板中的业务指标关联,根据报告用数据对业务指标赋值,包括:According to one aspect of the present invention, associating the obtained reporting data with the business indicators in the report template, and assigning values to the business indicators based on the reporting data includes:

将报告用数据与报告模板中的不同指标参数进行匹配;Match report data with different indicator parameters in the report template;

将报告用数据转换为对应不同指标参数的指标数据;Convert reporting data into indicator data corresponding to different indicator parameters;

通过转换后的指标数据对业务指标进行赋值。Business indicators are assigned values through the converted indicator data.

根据本发明的一个方面,所述根据赋值后的业务指标的类型,将赋值后的业务指标数据填入对应的占位符位置,生成报告,包括:According to one aspect of the present invention, according to the type of the assigned business indicator, filling the assigned business indicator data into the corresponding placeholder position and generating a report include:

识别赋值后的业务指标的类型,所述类型包括数据、文本、图形和表格;Identify the type of assigned business indicators, including data, text, graphics and tables;

根据赋值后的业务指标的类型,将各赋值后的业务指标填入对应类型的占位符位置,生成报告。According to the type of the assigned business indicator, fill in each assigned business indicator into the placeholder position of the corresponding type to generate a report.

为实现上述目的,本发明还提供一种基于模板配置生成带图表报告的系统,包括:In order to achieve the above object, the present invention also provides a system for generating reports with charts based on template configuration, including:

业务指标配置模块,在报告模板中配置业务指标;Business indicator configuration module, configure business indicators in the report template;

占位符布设模块,在报告模板中布设多种类型的占位符;Placeholder placement module, lays out various types of placeholders in report templates;

业务指标赋值模块,将获取的报告用数据与报告模板中的业务指标关联,根据报告用数据对业务指标赋值;The business indicator assignment module associates the obtained report data with the business indicators in the report template, and assigns values to the business indicators based on the report data;

报告生成模块,根据赋值后的业务指标的类型,将赋值后的业务指标数据填入对应的占位符位置,生成报告。The report generation module fills in the assigned business indicator data into the corresponding placeholder positions according to the type of the assigned business indicator, and generates a report.

为实现上述目的,本发明还提供一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如上所述的基于模板配置生成带图表报告的方法。In order to achieve the above object, the present invention also provides an electronic device, including a processor, a memory and a computer program stored on the memory and executable on the processor. When the computer program is executed by the processor Implement the method described above to generate a report with charts based on template configuration.

为实现上述目的,本发明还提供一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如上所述的基于模板配置生成带图表报告的方法。In order to achieve the above object, the present invention also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the computer program can generate a report with a chart based on the template configuration as described above. Methods.

根据本发明的一个方案,基于模板配置生成带图表报告的方法,包括:在报告模板中配置业务指标;在报告模板中布设多种类型的占位符;将获取的报告用数据与报告模板中的业务指标关联,根据报告用数据对业务指标赋值;根据赋值后的业务指标的类型,将赋值后的业务指标数据填入对应的占位符位置,生成报告。根据本发明的方案,本发明能够根据报告模板中的业务指标来动态生成所需数据,无需人为更改,有效提高生产效率。而且,本发明能够从各种数据库中提取报告用数据,将报告用数据生成图形、图表等类型,然后填入到模板指定的占位符位置,生成图文并茂的报告。According to one solution of the present invention, a method for generating a report with a chart based on template configuration includes: configuring business indicators in the report template; arranging multiple types of placeholders in the report template; and combining the obtained report data with the report template Association of business indicators, assign values to business indicators based on report data; according to the type of the assigned business indicators, fill in the assigned business indicator data into the corresponding placeholder positions to generate a report. According to the solution of the present invention, the present invention can dynamically generate required data according to the business indicators in the report template without manual changes, effectively improving production efficiency. Moreover, the present invention can extract reporting data from various databases, generate graphics, charts and other types from the reporting data, and then fill in the placeholder positions specified in the template to generate a report with pictures and text.

根据本发明的方案,本发明解决了传统方案中人工填写报告的低效问题,能够形成图文并茂的数据报告。而且,本发明生成的报告可以适用于不同的使用场景,可以根据需求定制图标报告,使得适用性更佳,能够匹配不同需求的使用场景。According to the solution of the present invention, the present invention solves the inefficiency problem of manually filling in the report in the traditional solution and can form a data report with pictures and texts. Moreover, the reports generated by the present invention can be applied to different usage scenarios, and the icon reports can be customized according to needs, making the applicability better and matching usage scenarios with different needs.

附图说明Description of drawings

图1示意性表示根据本发明的一种实施方式的基于模板配置生成带图表报告的方法的流程图。FIG. 1 schematically represents a flow chart of a method for generating a report with charts based on template configuration according to an embodiment of the present invention.

具体实施方式Detailed ways

现在将参照示例性实施例来论述本发明的内容。应当理解,论述的实施例仅是为了使得本领域普通技术人员能够更好地理解且因此实现本发明的内容,而不是暗示对本发明的范围的任何限制。The present invention will now be discussed with reference to exemplary embodiments. It should be understood that the embodiments discussed are merely to enable those of ordinary skill in the art to better understand and thereby implement the contents of the invention, and do not imply any limitation on the scope of the invention.

如本文中所使用的,术语“包括”及其变体要被解读为意味着“包括但不限于”的开放式术语。术语“基于”要被解读为“至少部分地基于”。术语“一个实施例”和“一种实施例”要被解读为“至少一个实施例”。As used herein, the term "includes" and variations thereof are to be read as an open-ended term meaning "including, but not limited to." The term "based on" is to be read as "based at least in part on." The terms "one embodiment" and "an embodiment" are to be read as "at least one embodiment."

图1示意性表示根据本发明的一种实施方式的基于模板配置生成带图表报告的方法的流程图。如图1所示,在本实施方式中,基于模板配置生成带图表报告的方法,包括:FIG. 1 schematically represents a flow chart of a method for generating a report with charts based on template configuration according to an embodiment of the present invention. As shown in Figure 1, in this implementation, a method for generating a report with charts based on template configuration includes:

a.在报告模板中配置业务指标;a. Configure business indicators in the report template;

b.在报告模板中布设多种类型的占位符;b. Arrange multiple types of placeholders in the report template;

c.将获取的报告用数据与报告模板中的业务指标关联,根据报告用数据对业务指标赋值;c. Associate the obtained report data with the business indicators in the report template, and assign values to the business indicators based on the report data;

d.根据赋值后的业务指标的类型,将赋值后的业务指标数据填入对应的占位符位置,生成报告。d. According to the type of the assigned business indicator, fill in the assigned business indicator data into the corresponding placeholder position and generate a report.

根据本发明的上述方案,本发明能够根据报告模板中的业务指标来动态生成所需数据,无需人为更改,有效提高生产效率。而且,本发明能够从各种数据库中提取报告用数据,将报告用数据生成图形、图表等类型,然后填入到模板指定的占位符位置,生成图文并茂的报告。According to the above solution of the present invention, the present invention can dynamically generate required data according to the business indicators in the report template without manual changes, effectively improving production efficiency. Moreover, the present invention can extract reporting data from various databases, generate graphics, charts and other types from the reporting data, and then fill in the placeholder positions specified in the template to generate a report with pictures and text.

根据本发明的一种实施方式,在上述a步骤中,在报告模板中配置业务指标,包括:According to an implementation manner of the present invention, in the above step a, business indicators are configured in the report template, including:

配置报告模板,在报告模板中创建业务指标;Configure the report template and create business indicators in the report template;

创建和管理与业务指标关联的指标参数;Create and manage indicator parameters associated with business indicators;

根据指标参数生成指标数据,通过指标数据对业务指标赋值。Generate indicator data based on indicator parameters, and assign values to business indicators through the indicator data.

在本实施方式中,管理指标参数包括新增、修改和/或删除指标参数。In this embodiment, managing indicator parameters includes adding, modifying, and/or deleting indicator parameters.

在本实施方式中,占位符包括:数据类占位符、文本类占位符、图形类占位符、表格类占位符。In this implementation, placeholders include: data placeholders, text placeholders, graphics placeholders, and table placeholders.

进一步地,根据本发明的一种实施方式,在上述c步骤中,将获取的报告用数据与报告模板中的业务指标关联,根据报告用数据对业务指标赋值,包括:Further, according to an embodiment of the present invention, in the above-mentioned step c, the obtained reporting data is associated with the business indicators in the report template, and the business indicators are assigned values based on the reporting data, including:

将报告用数据与报告模板中的不同指标参数进行匹配;Match report data with different indicator parameters in the report template;

将报告用数据转换为对应不同指标参数的指标数据;Convert reporting data into indicator data corresponding to different indicator parameters;

通过转换后的指标数据对业务指标进行赋值。Business indicators are assigned values through the converted indicator data.

进一步地,根据本发明的一种实施方式,在上述d步骤中,根据赋值后的业务指标的类型,将赋值后的业务指标数据填入对应的占位符位置,生成报告,包括:Further, according to an embodiment of the present invention, in the above step d, according to the type of the assigned business indicator, the assigned business indicator data is filled in the corresponding placeholder position, and a report is generated, including:

识别赋值后的业务指标的类型,所述类型包括数据、文本、图形和表格;Identify the type of assigned business indicators, including data, text, graphics and tables;

根据赋值后的业务指标的类型,将各赋值后的业务指标填入对应类型的占位符位置,生成报告。According to the type of the assigned business indicator, fill in each assigned business indicator into the placeholder position of the corresponding type to generate a report.

根据本发明的上述方案,本发明解决了传统方案中人工填写报告的低效问题,能够形成图文并茂的数据报告。而且,本发明生成的报告可以适用于不同的使用场景,可以根据需求定制图标报告,使得适用性更佳,能够匹配不同需求的使用场景。According to the above solution of the present invention, the present invention solves the inefficiency problem of manually filling in the report in the traditional solution and can form a data report with pictures and texts. Moreover, the reports generated by the present invention can be applied to different usage scenarios, and the icon reports can be customized according to needs, making the applicability better and matching usage scenarios with different needs.

进一步地,为实现上述目的,本发明还提供一种基于模板配置生成带图表报告的系统,包括:Further, in order to achieve the above object, the present invention also provides a system for generating a report with charts based on template configuration, including:

业务指标配置模块,在报告模板中配置业务指标;Business indicator configuration module, configure business indicators in the report template;

占位符布设模块,在报告模板中布设多种类型的占位符;Placeholder placement module, lays out various types of placeholders in report templates;

业务指标赋值模块,将获取的报告用数据与报告模板中的业务指标关联,根据报告用数据对业务指标赋值;The business indicator assignment module associates the obtained report data with the business indicators in the report template, and assigns values to the business indicators based on the report data;

报告生成模块,根据赋值后的业务指标的类型,将赋值后的业务指标数据填入对应的占位符位置,生成报告。The report generation module fills in the assigned business indicator data into the corresponding placeholder positions according to the type of the assigned business indicator, and generates a report.

根据本发明的上述方案,本发明能够根据报告模板中的业务指标来动态生成所需数据,无需人为更改,有效提高生产效率。而且,本发明能够从各种数据库中提取报告用数据,将报告用数据生成图形、图表等类型,然后填入到模板指定的占位符位置,生成图文并茂的报告。According to the above solution of the present invention, the present invention can dynamically generate required data according to the business indicators in the report template without manual changes, effectively improving production efficiency. Moreover, the present invention can extract reporting data from various databases, generate graphics, charts and other types from the reporting data, and then fill in the placeholder positions specified in the template to generate a report with pictures and text.

根据本发明的一种实施方式,在上述业务指标配置模块中,在报告模板中配置业务指标,包括:According to an implementation manner of the present invention, in the above-mentioned business indicator configuration module, business indicators are configured in the report template, including:

配置报告模板,在报告模板中创建业务指标;Configure the report template and create business indicators in the report template;

创建和管理与业务指标关联的指标参数;Create and manage indicator parameters associated with business indicators;

根据指标参数生成指标数据,通过指标数据对业务指标赋值。Generate indicator data based on indicator parameters, and assign values to business indicators through the indicator data.

在本实施方式中,管理指标参数包括新增、修改和/或删除指标参数。In this embodiment, managing indicator parameters includes adding, modifying, and/or deleting indicator parameters.

在本实施方式中,占位符包括:数据类占位符、文本类占位符、图形类占位符、表格类占位符。In this implementation, placeholders include: data placeholders, text placeholders, graphics placeholders, and table placeholders.

进一步地,根据本发明的一种实施方式,在上述业务指标赋值模块中,将获取的报告用数据与报告模板中的业务指标关联,根据报告用数据对业务指标赋值,包括:Further, according to an embodiment of the present invention, in the above-mentioned business indicator assignment module, the acquired reporting data is associated with the business indicators in the report template, and the business indicators are assigned values based on the reporting data, including:

将报告用数据与报告模板中的不同指标参数进行匹配;Match report data with different indicator parameters in the report template;

将报告用数据转换为对应不同指标参数的指标数据;Convert reporting data into indicator data corresponding to different indicator parameters;

通过转换后的指标数据对业务指标进行赋值。Business indicators are assigned values through the converted indicator data.

进一步地,根据本发明的一种实施方式,在上述报告生成模块中,根据赋值后的业务指标的类型,将赋值后的业务指标数据填入对应的占位符位置,生成报告,包括:Further, according to an embodiment of the present invention, in the above-mentioned report generation module, according to the type of the assigned business indicator, the assigned business indicator data is filled in the corresponding placeholder position, and the report is generated, including:

识别赋值后的业务指标的类型,所述类型包括数据、文本、图形和表格;Identify the type of assigned business indicators, including data, text, graphics and tables;

根据赋值后的业务指标的类型,将各赋值后的业务指标填入对应类型的占位符位置,生成报告。According to the type of the assigned business indicator, fill in each assigned business indicator into the placeholder position of the corresponding type to generate a report.

根据本发明的上述方案,本发明解决了传统方案中人工填写报告的低效问题,能够形成图文并茂的数据报告。而且,本发明生成的报告可以适用于不同的使用场景,可以根据需求定制图标报告,使得适用性更佳,能够匹配不同需求的使用场景。According to the above solution of the present invention, the present invention solves the inefficiency problem of manually filling in the report in the traditional solution and can form a data report with pictures and texts. Moreover, the reports generated by the present invention can be applied to different usage scenarios, and the icon reports can be customized according to needs, making the applicability better and matching usage scenarios with different needs.

进一步地,为实现上述目的,本发明还提供一种电子设备,包括处理器、存储器及存储在存储器上并可在处理器上运行的计算机程序,计算机程序被处理器执行时实现上述基于模板配置生成带图表报告的方法。Further, in order to achieve the above object, the present invention also provides an electronic device, including a processor, a memory and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the above template-based configuration is realized. Methods for generating reports with charts.

进一步地,为实现上述目的,本发明还提供一种计算机可读存储介质,计算机可读存储介质上存储计算机程序,计算机程序被处理器执行时实现上述基于模板配置生成带图表报告的方法。Further, in order to achieve the above object, the present invention also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is executed by the processor, the above-mentioned method of generating a report with a chart based on template configuration is implemented.

进一步地,以下以一种具体实施例详细说明本发明的上述方案。Further, the above solution of the present invention is described in detail below with a specific embodiment.

实施例1Example 1

数据、文本类占位符转换:Data and text placeholder conversion:

数据、文本从平台数据库中提取,然后按照与报告模板中的业务指标关联,对业务指标赋值后,在模板中占位符位置进行替换,生成正式的报告数据。例如:Data and text are extracted from the platform database, and then associated with the business indicators in the report template. After assigning values to the business indicators, the placeholder positions in the template are replaced to generate formal report data. For example:

平台用户活跃率(业务指标):Platform user activity rate (business indicators):

上周,基建平台累计登录人数{total}人(指标参数),{activeunit}(指标参数)等{activenum}(指标参数)家单位总体应用情况较好,整体登录率为100%,请各单位继续保持;{unactiveunit}等{unactivenum}家单位登录率低于100%。Last week, the cumulative number of people logged in to the infrastructure platform was {total} (indicator parameter), {activeunit} (indicator parameter) and {activenum} (indicator parameter) units. The overall application situation was good, and the overall login rate was 100%. Please ask all units Continue to maintain; the login rate of {unactiveunit} and other {unactivenum} units is lower than 100%.

实际生成的报告将“登陆率达标的单位个数”的具体数值替换到模板中“activenum”。实际效果如下:The actual generated report replaces the specific value of "number of units with landing rate up to standard" into "activenum" in the template. The actual effect is as follows:

平台用户活跃率:Platform user activity rate:

上周,基建平台累计登录人数3293人(指标数据)(即对业务指标赋值),其中15家单位(分别为第一-第十五公司)(指标数据)总体应用情况较好,整体登录率为100%,请各单位继续保持;5家单位(第十六-第二十公司)(指标数据)登录率低于100%。Last week, the cumulative number of people logged in to the infrastructure platform was 3,293 (indicator data) (i.e., assigning values to business indicators). Among them, 15 units (the first to the fifteenth companies respectively) (indicator data) had good overall application conditions and the overall login rate is 100%, please continue to maintain it; 5 units (16th to 20th companies) (indicator data) have a login rate lower than 100%.

图形类占位符转换:Graphics class placeholder conversion:

图形类占位符的格式是“{img_”+图形对应报表的id+“}”。图形类占位符会从赋值的业务指标中提取图形所依赖的数据以及图形生成配置文件,基于此生成所要求的图形,替换对应的占位符。The format of the graphics placeholder is "{img_" + the id of the report corresponding to the graphic + "}". The graphics placeholder will extract the data that the graphics depends on and the graphics generation configuration file from the assigned business indicators, generate the required graphics based on this, and replace the corresponding placeholders.

表格类占位符转换:Table class placeholder conversion:

表格类占位符的格式是“{table_”+表格对应报表的id+“}”。表格类占位符会从赋值的业务指标中提取所依赖的数据,除第一列自动加上序号外,其他的原样输出到报告中,基于此生成所要求的表格,替换对应的占位符。The format of the table placeholder is "{table_" + the id of the report corresponding to the table + "}". The table placeholder will extract the dependent data from the assigned business indicators. Except for the first column that automatically adds a serial number, the rest will be output to the report as is. Based on this, the required table will be generated and the corresponding placeholder will be replaced. .

段落类占位符转换:Paragraph placeholder conversion:

段落类占位符的格式是“{list_”+表格对应报表的id+“_”+应用那个字段作为文本段落数据+“}”。段落类占位符会从赋值的业务指标中提取所依赖的数据,所查询出的多条数据,分段罗列的方式替换对应的占位符。The format of the paragraph placeholder is "{list_" + the id of the report corresponding to the table + "_" + which field should be used as text paragraph data + "}". Paragraph placeholders will extract the dependent data from the assigned business indicators, and replace the corresponding placeholders with multiple pieces of queried data in a segmented list.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的模块及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can appreciate that the modules and algorithm steps described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered to be beyond the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置和设备的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the devices and equipment described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be described again here.

在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, indirect coupling or communication connection of devices or modules, and may be in electrical, mechanical or other forms.

所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本发明实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed to multiple network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the embodiments of the present invention.

另外,在本发明实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。In addition, each functional module in the embodiment of the present invention can be integrated into one processing module, or each module can exist physically alone, or two or more modules can be integrated into one module.

所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例节能信号发送/接收的方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the energy-saving signal sending/receiving method in various embodiments of the present invention. The aforementioned storage media include: U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk and other media that can store program codes.

以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离所述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to technical solutions formed by a specific combination of the above technical features, but should also cover any combination of the above technical features without departing from the concept of the invention. or other technical solutions formed by any combination of equivalent features. For example, a technical solution is formed by replacing the above features with technical features with similar functions disclosed in this application (but not limited to).

应理解,本发明的发明内容及实施例中各步骤的序号的大小并不绝对意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that the sequence number of each step in the content of the present invention and the embodiments does not absolutely mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not be determined by the execution order of the embodiments of the present invention. The implementation process constitutes no limitation.

Claims (9)

1.一种基于模板配置生成带图表报告的方法,其特征在于,包括:1. A method for generating a chart report based on template configuration, which is characterized by including: 在报告模板中配置业务指标;Configure business indicators in report templates; 在报告模板中布设多种类型的占位符;Arrange various types of placeholders in report templates; 将获取的报告用数据与报告模板中的业务指标关联,根据报告用数据对业务指标赋值;Associate the obtained report data with the business indicators in the report template, and assign values to the business indicators based on the report data; 根据赋值后的业务指标的类型,将赋值后的业务指标数据填入对应的占位符位置,生成报告。According to the type of the assigned business indicator, fill in the assigned business indicator data into the corresponding placeholder position and generate a report. 2.根据权利要求1所述的基于模板配置生成带图表报告的方法,其特征在于,所述在报告模板中配置业务指标,包括:2. The method for generating a chart report based on template configuration according to claim 1, characterized in that configuring business indicators in the report template includes: 配置报告模板,在报告模板中创建业务指标;Configure the report template and create business indicators in the report template; 创建和管理与业务指标关联的指标参数;Create and manage indicator parameters associated with business indicators; 根据指标参数生成指标数据,通过指标数据对业务指标赋值。Generate indicator data based on indicator parameters, and assign values to business indicators through the indicator data. 3.根据权利要求2所述的基于模板配置生成带图表报告的方法,其特征在于,管理所述指标参数包括新增、修改和/或删除所述指标参数。3. The method for generating a report with a chart based on template configuration according to claim 2, wherein managing the indicator parameters includes adding, modifying and/or deleting the indicator parameters. 4.根据权利要求1所述的基于模板配置生成带图表报告的方法,其特征在于,所述占位符包括:数据类占位符、文本类占位符、图形类占位符、表格类占位符。4. The method for generating a report with charts based on template configuration according to claim 1, characterized in that the placeholders include: data placeholders, text placeholders, graphics placeholders, table placeholders Placeholder. 5.根据权利要求1所述的基于模板配置生成带图表报告的方法,其特征在于,所述将获取的报告用数据与报告模板中的业务指标关联,根据报告用数据对业务指标赋值,包括:5. The method for generating a report with a chart based on template configuration according to claim 1, characterized in that the obtained report data is associated with the business indicators in the report template, and the business indicators are assigned values according to the report data, including : 将报告用数据与报告模板中的不同指标参数进行匹配;Match report data with different indicator parameters in the report template; 将报告用数据转换为对应不同指标参数的指标数据;Convert reporting data into indicator data corresponding to different indicator parameters; 通过转换后的指标数据对业务指标进行赋值。Business indicators are assigned values through the converted indicator data. 6.根据权利要求1-5中任一项所述的基于模板配置生成带图表报告的方法,其特征在于,所述根据赋值后的业务指标的类型,将赋值后的业务指标数据填入对应的占位符位置,生成报告,包括:6. The method for generating a report with a chart based on template configuration according to any one of claims 1 to 5, characterized in that according to the type of the assigned business indicator, the assigned business indicator data is filled in the corresponding placeholder position, generate a report including: 识别赋值后的业务指标的类型,所述类型包括数据、文本、图形和表格;Identify the type of assigned business indicators, including data, text, graphics and tables; 根据赋值后的业务指标的类型,将各赋值后的业务指标填入对应类型的占位符位置,生成报告。According to the type of the assigned business indicator, fill in each assigned business indicator into the placeholder position of the corresponding type to generate a report. 7.一种基于模板配置生成带图表报告的系统,其特征在于,包括:7. A system for generating reports with charts based on template configuration, which is characterized by including: 业务指标配置模块,在报告模板中配置业务指标;Business indicator configuration module, configure business indicators in the report template; 占位符布设模块,在报告模板中布设多种类型的占位符;Placeholder placement module, lays out various types of placeholders in report templates; 业务指标赋值模块,将获取的报告用数据与报告模板中的业务指标关联,根据报告用数据对业务指标赋值;The business indicator assignment module associates the obtained report data with the business indicators in the report template, and assigns values to the business indicators based on the report data; 报告生成模块,根据赋值后的业务指标的类型,将赋值后的业务指标数据填入对应的占位符位置,生成报告。The report generation module fills in the assigned business indicator data into the corresponding placeholder positions according to the type of the assigned business indicator, and generates a report. 8.电子设备,其特征在于,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至6中任一项所述的基于模板配置生成带图表报告的方法。8. Electronic equipment, characterized in that it includes a processor, a memory and a computer program stored on the memory and executable on the processor. When the computer program is executed by the processor, the computer program implements claim 1 The method for generating a chart report based on template configuration as described in any one of to 6. 9.计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至6中任一项所述的基于模板配置生成带图表报告的方法。9. Computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the template-based configuration according to any one of claims 1 to 6 is implemented. Methods for generating reports with charts.
CN202311629163.1A 2023-11-30 2023-11-30 A method to generate reports with charts based on template configuration Pending CN117540713A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311629163.1A CN117540713A (en) 2023-11-30 2023-11-30 A method to generate reports with charts based on template configuration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311629163.1A CN117540713A (en) 2023-11-30 2023-11-30 A method to generate reports with charts based on template configuration

Publications (1)

Publication Number Publication Date
CN117540713A true CN117540713A (en) 2024-02-09

Family

ID=89791620

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311629163.1A Pending CN117540713A (en) 2023-11-30 2023-11-30 A method to generate reports with charts based on template configuration

Country Status (1)

Country Link
CN (1) CN117540713A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118798150A (en) * 2024-09-11 2024-10-18 湖北光谷实验室 Method and system for generating science and technology strategy reports based on generative artificial intelligence

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118798150A (en) * 2024-09-11 2024-10-18 湖北光谷实验室 Method and system for generating science and technology strategy reports based on generative artificial intelligence

Similar Documents

Publication Publication Date Title
CN103617047A (en) Method, device and processor for developing business processes
CN110704519B (en) Service bill conversion method and device, storage medium and computer equipment
CN112464632B (en) Dynamic storage and conversion method for table style under excel report
TW201832143A (en) Method and device for generating contract
US9628206B2 (en) Endpoint parameter management architecture for audio mixers
CN103593456B (en) Worksheet self-defining method for designing and device
CN110738038A (en) Contract text generation method, device, equipment and computer readable storage medium
CN1832408A (en) Method of integral communication between medical information system
CN112685443A (en) Data query method and device, electronic equipment and computer readable storage medium
CN111090803A (en) Data processing method and device, electronic equipment and storage medium
CN113722533B (en) Information pushing method and device, electronic equipment and readable storage medium
CN117540713A (en) A method to generate reports with charts based on template configuration
CN110400067A (en) A kind of method and system of purpose balance management
CN101576922B (en) Access system and access method
CN118446184A (en) Automatic reorganization method and system for offshore wind power structure monitoring report
CN104252463B (en) A kind of db2 data base management methods based on web system
CN116028062A (en) Object code generation method, NPU command display method and device
CN113138760B (en) Page generation method and device, electronic equipment and medium
US20150278745A1 (en) System for Analyzing Contracts and Supplier's Performance
CN114386853A (en) Data auditing processing method, device and equipment based on universal auditing model
CN108919695A (en) A kind of coding method, device, equipment and the storage medium of electrical equipment module
CN115879435B (en) Cloud contract generation method in smart engineering scene
CN116127930A (en) Report generation method and device, and data statistics method and device
CN116992850A (en) Enterprise report text generation method and device and electronic equipment
US20130103724A1 (en) Network and method for managing models

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
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载