WO2020052091A1 - 报表生成方法、装置、计算机设备及存储介质 - Google Patents

报表生成方法、装置、计算机设备及存储介质 Download PDF

Info

Publication number
WO2020052091A1
WO2020052091A1 PCT/CN2018/117871 CN2018117871W WO2020052091A1 WO 2020052091 A1 WO2020052091 A1 WO 2020052091A1 CN 2018117871 W CN2018117871 W CN 2018117871W WO 2020052091 A1 WO2020052091 A1 WO 2020052091A1
Authority
WO
WIPO (PCT)
Prior art keywords
report
style
report generation
generation
target
Prior art date
Application number
PCT/CN2018/117871
Other languages
English (en)
French (fr)
Inventor
彭仁诚
刘军辉
陆腾飞
陈坤
Original Assignee
深圳市泰洲科技有限公司
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 深圳市泰洲科技有限公司 filed Critical 深圳市泰洲科技有限公司
Publication of WO2020052091A1 publication Critical patent/WO2020052091A1/zh

Links

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/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets

Definitions

  • the present application relates to a report generation method, and more specifically, to a report generation method, a device, a computer device, and a storage medium.
  • the purpose of this application is to overcome the shortcomings of the prior art and provide a report generation method, device, computer device, and storage medium.
  • a report generation method includes:
  • a further technical solution thereof is: before the acquiring the data from the user terminal and the specified report ID, the method further includes:
  • the report generation style is bound to the report ID and stored. [0018] A further technical solution thereof is: the setting of several report generation styles includes:
  • the report generation style includes an html style and a crystal report style.
  • a further technical solution thereof is: generating the target report according to the report generation style, including: [0023] establishing an empty report according to the report generation style;
  • a further technical solution thereof is: After the feedback of the target report to the user terminal, the method further includes:
  • the present application further provides a report generation device, including:
  • an obtaining unit for obtaining data from a user terminal and a specified report ID
  • a style call unit configured to call a corresponding report generation style according to a specified report ID
  • a generating unit configured to generate the target report according to the report generating style
  • a feedback unit configured to feedback a target report to a user terminal.
  • the device further comprises:
  • a style setting unit configured to set several report generation styles
  • ID establishing unit for establishing a corresponding report ID
  • a storage unit configured to bind and store a report generation style and a report ID.
  • the present application also provides a computer device.
  • the computer device includes a memory and a processor.
  • the memory stores a computer program, and the processor implements the report generation method described above when the processor executes the computer program.
  • the present application also provides a storage medium, where the storage medium stores a computer program, and the computer program can implement the foregoing report generation method when executed by a processor.
  • the beneficial effects of the present application compared with the prior art are:
  • the present application generates a target report by setting a report generation style and a report ID bound thereto, and inputting data according to the report generation style retrieved by the specified report ID.
  • the method of binding and storing the report generation style and the report ID is convenient for uniformly managing the report generation style, and the workload of manual report production is reduced, and the report can be generated efficiently.
  • FIG. 1 is a schematic diagram of an application scenario of a report generating method according to an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a report generation method according to an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a sub-process of a report generation method provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a sub-process of a report generation method provided by an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of a report generation method according to another embodiment of the present application.
  • FIG. 6 is a schematic block diagram of a report generation apparatus according to an embodiment of the present application.
  • FIG. 7 is a schematic block diagram of a generating unit unit of a report generating device according to an embodiment of the present application.
  • FIG. 8 is a schematic block diagram of a report generation apparatus according to another embodiment of the present application.
  • FIG. 9 is a schematic block diagram of a computer device according to an embodiment of the present application.
  • FIG. 1 is a schematic diagram of an application scenario of a report generating method according to an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of a report generation method according to an embodiment of the present application.
  • the report generation is applied to the server 20 in the form of a generation platform, where the server 20 performs data interaction with the user terminal 10, and the user enters scattered data and specifies a report ID through a generation APP on the user terminal 10 so that the server 20 Generate the required report based on the scattered data and the specified report ID, and feed it back to the user terminal 10.
  • the user terminal 10 may include an electronic device with a communication function, such as a smart phone, a tablet computer, a notebook computer, and a desktop computer.
  • a communication function such as a smart phone, a tablet computer, a notebook computer, and a desktop computer.
  • the tablet computer, the notebook computer, and the desktop computer use a PC to run programs and / Or a PC browser.
  • FIG. 2 is a schematic flowchart of a report generation method according to an embodiment of the present application. As shown in the figure, the method includes the following steps S110 to S170.
  • the report generation style refers to a report format, and generally includes an html style and a crystal report style.
  • step S110 may include steps S111 to S112.
  • Si l Scan historical reports, perform graphic identification on historical reports, and obtain basic samples
  • a scan of a historical report is specifically acquired by using a camera or a printer, and AI (Artificial Intelligence, Artificial Intelligence) graphic recognition is performed on the historical report to obtain a basic sample.
  • AI Artificial Intelligence, Artificial Intelligence
  • Report manual adjustments can be made to adjust the row spacing, column spacing, and add or delete rows and columns to form a report generation style.
  • variables in the basic sample may also be adjusted, including but not limited to variable names and positions.
  • the report ID refers to the storage location of the report generation pattern in the server 20.
  • the report ID generally exists in the form of a character string. The specific storage location in the database, so that the report generation style related to it can be called directly by using the report ID, which is convenient and fast.
  • the corresponding report ID is also correspondingly added or deleted, which is convenient for unified management.
  • S140 Acquire data from a user terminal and a specified report ID.
  • the user can directly input data and specify a report ID from the generated APP of the user terminal 10.
  • Each report ID corresponds to a report generation style, and the corresponding report generation style can be retrieved through the report ID, and the operation is simple.
  • S160 Generate the target report according to the report generation style.
  • the target report refers to a report obtained by formatting and reorganizing data according to a report generation style.
  • the step S160 may include steps S161-S162.
  • the empty report refers to a report that is not filled with data
  • the report style is a report generation style corresponding to the report ID specified by the user terminal 10.
  • data is filled into empty reports one by one to form a target report, and the generation efficiency is high.
  • Presenting the target report on the generated APP of the user terminal 10 may be convenient for the user to view.
  • FIG. 5 is a schematic flowchart of a report generation method according to another embodiment of the present application. As shown in FIG. 5, the report generation method in this embodiment includes steps S210-S280. Steps S210-S270 and the above embodiment Steps S110-S170 are similar, and will not be repeated here. The following describes step S280 added in this embodiment in detail.
  • FIG. 6 is a schematic block diagram of a report generating device 300 according to an embodiment of the present application. As shown in FIG. 5, corresponding to the above report generating method, the present application further provides a report generating device 300.
  • the report generating device 300 includes a unit for executing the above report generating method, and the device may be configured in the server 20. Specifically, referring to FIG. 6, the report generating device 300 includes:
  • an obtaining unit 304 configured to obtain data from a user terminal and a designated report ID
  • a style call unit 305 configured to call a corresponding report generation style according to a specified report ID
  • a generating unit 306, configured to generate the target report according to the report generating style
  • a feedback unit 307 configured to feedback the target report to the user terminal.
  • the foregoing apparatus further includes:
  • a style setting unit 301 configured to set several report generation styles
  • ID establishing unit 302 for establishing a corresponding report ID
  • a storage unit 303 is configured to bind and store a report generation style and a report ID.
  • the above-mentioned style setting unit 301 includes:
  • a scanning processing subunit configured to scan historical reports, perform graphic recognition on historical reports, and obtain basic samples
  • An adjustment subunit is configured to adjust a base sample to obtain a report generation style.
  • the generating unit 306 includes:
  • an empty report creation subunit 3061 configured to create an empty report according to a report generation style
  • the filling subunit 3062 is configured to fill data into an empty report to obtain a target report.
  • FIG. 8 is a schematic block diagram of a report generating device 300 according to another embodiment of the present application.
  • the report generating device 300 in this embodiment is a printing unit 308 in addition to the above embodiment.
  • the printing unit 308 is configured to print a target report.
  • the report generation apparatus 300 described above may be implemented in the form of a computer program, which may be run on a computer device as shown in FIG. 9.
  • FIG. 9 is a schematic block diagram of a computer device according to an embodiment of the present application.
  • the computer device 500 is a server.
  • the computer device 500 includes a processor 502, a memory, and a network interface 505 connected through a system bus 501.
  • the memory may include a non-volatile storage medium 503 and an internal memory 504.
  • the non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032.
  • the computer program 5032 includes program instructions. When the program instructions are executed, the processor 502 can execute a report generation method.
  • the processor 502 is configured to provide computing and control capabilities to support the operation of the entire computer device 500.
  • the internal memory 504 provides an environment for running a computer program 5032 in the non-volatile storage medium 503.
  • the processor 502 can execute a report generation method.
  • the network interface 505 is configured to perform network communication with other devices.
  • FIG. 9 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer equipment 500 to which the solution of the present application is applied.
  • the specific computer equipment 500 may include more or fewer parts than shown in the figure, or combine certain parts, or have a different arrangement of parts
  • the processor 502 is configured to run a computer program 5032 stored in a memory to implement the following steps:
  • the processor 502 further implements the following steps before implementing the steps of obtaining the data from the user terminal and the specified report ID:
  • the report generation style is bound to the report ID and stored.
  • the report generation style includes an html style and a crystal report style.
  • processor 502 when the processor 502 implements the steps of setting a number of report generation styles, it specifically implements the following steps:
  • processor 502 after the processor 502 implements the step of feeding back the target report to the user terminal, it further implements the following steps:
  • the target report is printed.
  • the processor 502 may be a central processing unit (Central
  • the processor 502 may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), and ready-made programmable gate arrays (Field- Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • DSPs digital signal processors
  • ASICs application specific integrated circuits
  • FPGA ready-made programmable gate arrays
  • the general-purpose processor may be a microprocessor, or the processor may be any conventional processor.
  • the computer program includes program instructions, and the computer program may be stored in a storage medium, and the storage medium is a computer-readable storage medium.
  • the program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiment of the method. [0132] Therefore, the present application also provides a storage medium.
  • the storage medium may be a computer-readable storage medium.
  • the storage medium stores a computer program, and when the computer program is executed by the processor, the processor causes the processor to perform the following steps:
  • the processor before the processor executes the computer program to implement the step of obtaining data from a user terminal and a specified report ID, the processor further implements the following steps:
  • the report generation style is bound to the report ID and stored.
  • the report generation style includes an html style and a crystal report style.
  • the base sample is adjusted to obtain a report generation style.
  • the processor when the processor executes the computer program to implement the step of generating the target report according to the report generation style, the processor specifically implements the following steps:
  • the processor executes the computer program to implement the step of feeding back the target report to the user terminal, the processor further implements the following steps:
  • the target report is printed.
  • the storage medium may be various computer-readable storage media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (Read-Only Memory, ROM), a magnetic disk, or an optical disk.
  • program codes such as a U disk, a mobile hard disk, a read-only memory (Read-Only Memory, ROM), a magnetic disk, or an optical disk.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a storage medium.
  • the technical solution of the present application is essentially a part that contributes to the existing technology, or all or part of the technical solution may be embodied in the form of a software product, which is stored in a storage medium.
  • the method includes several instructions for causing a computer device (which may be a personal computer, a terminal, or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present application.

Abstract

本申请涉及报表生成方法、装置、计算机设备及存储介质,该方法包括获取来自用户终端的数据以及指定的报表ID;根据指定的报表ID调取对应的报表生成样式;将数据按照报表生成样式生成目标报表;将目标报表反馈至用户终端。本申请通过设置报表生成样式以及与之绑定的报表ID,对输入的数据按照指定的报表ID调取的报表生成样式生成目标报表,利用报表生成样式与报表ID绑定存储的方式,便于统一管理报表生成样式,且减少人工制作报表的工作量,可高效生成报表。

Description

发明名称:报表生成方法、 装置、 计算机设备及存储介质
[0001] 本申请是以申请号为 201811048257.9、 申请日为 2018年 9月 10日的中国专利申请 为基础, 并主张其优先权, 该申请的全部内容在此作为整体引入本申请中。
[0002] 技术领域
[0003] 本申请涉及报表生成方法, 更具体地说是指报表生成方法、 装置、 计算机设备 及存储介质。
[0004] 背景技术
[0005] 报表就是用表格、 图表等格式来动态显示数据, 可以用公式表示为报表=多样 的格式 +动态的数据, 其具有一定的报表生成样式, 5见有的报表生成方式是由用 户依据一定的表格样式手工填入数据; 但是目前这些报表的生成方式均从不同 的子系统生成, 并不能集成在同一系统内生成, 导致报表生成效率低且报表生 成样式不利于统一管理。
[0006] 因此, 有必要设计一种新的方法, 实现可高效生成报表且便于统一管理报表。
[0007] 申请内容
[0008] 本申请的目的在于克服现有技术的缺陷, 提供报表生成方法、 装置、 计算机设 备及存储介质。
[0009] 为实现上述目的, 本申请采用以下技术方案: 报表生成方法, 包括:
[0010] 获取来自用户终端的数据以及指定的报表 ID ;
[0011] 根据指定的报表 ID调取对应的报表生成样式;
[0012] 将数据按照报表生成样式生成目标报表;
[0013] 将目标报表反馈至用户终端。
[0014] 其进一步技术方案为: 所述获取来自用户终端的数据以及指定的报表 ID之前, 还包括:
[0015] 设置若干报表生成样式;
[0016] 建立报表生成样式对应的报表 ID ;
[0017] 将报表生成样式与报表 ID绑定并存储。 [0018] 其进一步技术方案为: 所述设置若干报表生成样式, 包括:
[0019] 扫描历史报表, 对历史报表进行图形识别, 获取基础样本;
[0020] 对基础样本进行调整, 以得到报表生成样式。
[0021] 其进一步技术方案为: 所述报表生成样式包括 html样式以及水晶报表样式。
[0022] 其进一步技术方案为: 所述将数据按照报表生成样式生成目标报表, 包括: [0023] 将按照报表生成样式建立空报表;
[0024] 将数据填入空报表中, 以得到目标报表。
[0025] 其进一步技术方案为: 所述将目标报表反馈至用户终端之后, 还包括:
[0026] 打印目标报表。
[0027] 本申请还提供了报表生成装置, 包括:
[0028] 获取单元, 用于获取来自用户终端的数据以及指定的报表 ID ;
[0029] 样式调取单元, 用于根据指定的报表 ID调取对应的报表生成样式;
[0030] 生成单元, 用于将数据按照报表生成样式生成目标报表;
[0031] 反馈单元, 用于将目标报表反馈至用户终端。
[0032] 其进一步技术方案为: 所述装置还包括:
[0033] 样式设置单元, 用于设置若干报表生成样式;
[0034] ID建立单元, 用于建立对应的报表 ID;
[0035] 存储单元, 用于将报表生成样式与报表 ID绑定并存储。
[0036] 本申请还提供了一种计算机设备, 所述计算机设备包括存储器及处理器, 所述 存储器上存储有计算机程序, 所述处理器执行所述计算机程序时实现上述的报 表生成方法。
[0037] 本申请还提供了一种存储介质, 所述存储介质存储有计算机程序, 所述计算机 程序被处理器执行时可实现上述的报表生成方法。
[0038] 本申请与现有技术相比的有益效果是: 本申请通过设置报表生成样式以及与之 绑定的报表 ID, 对输入的数据按照指定的报表 ID调取的报表生成样式生成目标 报表, 利用报表生成样式与报表 ID绑定存储的方式, 便于统一管理报表生成样 式, 且减少人工制作报表的工作量, 可高效生成报表。
[0039] 下面结合附图和具体实施例对本申请作进一步描述。 [0040] 附图说明
[0041] 为了更清楚地说明本申请实施例技术方案, 下面将对实施例描述中所需要使用 的附图作简单地介绍, 显而易见地, 下面描述中的附图是本申请的一些实施例 , 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据 这些附图获得其他的附图。
[0042] 图 1为本申请实施例提供的报表生成方法的应用场景示意图;
[0043] 图 2为本申请实施例提供的报表生成方法的流程示意图;
[0044] 图 3为本申请实施例提供的报表生成方法的子流程示意图;
[0045] 图 4为本申请实施例提供的报表生成方法的子流程示意图;
[0046] 图 5为本申请另一实施例提供的报表生成方法的流程示意图;
[0047] 图 6为本申请实施例提供的报表生成装置的示意性框图;
[0048] 图 7为本申请实施例提供的报表生成装置的生成单元单元的示意性框图;
[0049] 图 8为本申请另一实施例提供的报表生成装置的示意性框图;
[0050] 图 9为本申请实施例提供的计算机设备的示意性框图。
[0051] 具体实施方式
[0052] 下面将结合本申请实施例中的附图, 对本申请实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本申请一部分实施例, 而不是全部的实 施例。 基于本申请中的实施例, 本领域普通技术人员在没有做出创造性劳动前 提下所获得的所有其他实施例, 都属于本申请保护的范围。
[0053] 应当理解, 当在本说明书和所附权利要求书中使用时, 术语“包括”和“包含”指 示所描述特征、 整体、 步骤、 操作、 元素和 /或组件的存在, 但并不排除一个或 多个其它特征、 整体、 步骤、 操作、 元素、 组件和 /或其集合的存在或添加。
[0054] 还应当理解, 在此本申请说明书中所使用的术语仅仅是出于描述特定实施例的 目的而并不意在限制本申请。 如在本申请说明书和所附权利要求书中所使用的 那样, 除非上下文清楚地指明其它情况, 否则单数形式的“一”、 “一个”及“该”意 在包括复数形式。
[0055] 还应当进一步理解, 在本申请说明书和所附权利要求书中使用的术语“和 /或” 是指相关联列出的项中的一个或多个的任何组合以及所有可能组合, 并且包括 这些组合。
[0056] 请参阅图 1和图 2, 图 1为本申请实施例提供的报表生成方法的应用场景示意图 。 图 2为本申请实施例提供的报表生成方法的示意性流程图。 该报表生成应用于 服务器 20中, 以生成平台的形式存在, 其中, 该服务器 20与用户终端 10进行数 据交互, 用户通过用户终端 10上的生成 APP输入零散的数据以及指定报表 ID, 以 使服务器 20根据零散的数据以及指定报表 ID生成所需的报表, 并反馈至用户终 端 10。
[0057] 在本实施例中, 用户终端 10可包括智能手机、 平板电脑、 笔记本电脑、 台式电 脑等具有通信功能的电子设备, 其中, 在平板电脑、 笔记本电脑、 台式电脑以 P C端运行程序和 /或 PC端浏览器形式存在。
[0058] 图 2是本申请实施例提供的报表生成方法的流程示意图。 如图所示, 该方法包 括以下步骤 S110至 S170。
[0059] S110、 设置若干报表生成样式。
[0060] 在本实施例中, 报表生成样式指的是报表的格式, 一般包括 html样式以及水晶 报表样式。
[0061] 具体地, 先在服务器 20的数据库内存储一系列报表生成样式, 针对来自用户终 端 10的不同需求, 可以快速的将数据按照存储的报表生成样式生成报表, 使用 方便, 并且便于管理报表。
[0062] 在一实施例中, 如图 3所示, 上述的步骤 S110可包括有步骤 S111~S112。
[0063] Si l l、 扫描历史报表, 对历史报表进行图形识别, 获取基础样本;
[0064] S112、 对基础样本进行调整, 以得到报表生成样式。
[0065] 在本实施例中, 具体是采用摄像头或者打印机扫描的方式, 获取历史报表的扫 描件, 在针对历史报表进行 AI (人工智能, Artificial Intelligence) 图形识别, 以 获取基础样本, 对于一些特殊的报表, 则进行人工调整, 可调整行间距、 列间 距以及增加或删除行和列, 以形成报表生成样式。
[0066] 于其他实施例, 还可以对基础样本中的变量包括但不局限于变量名称、 位置进 行调整。
[0067] S120、 建立报表生成样式对应的报表 ID。 [0068] 在本实施例中, 报表 ID是指报表生成样式在服务器 20内的存储位置, 该报表 ID 一般成字符串形式存在, 前面三个数值为所在数据库的名称, 后面四个数值为 所在数据库内具体的存储位置, 以便于直接利用报表 ID便可调取与之相关的报 表生成样式, 方便快捷。
[0069] S130、 将报表生成样式与报表 ID绑定并存储。
[0070] 在本实施例中, 需要将报表生成样式与报表 ID形成映射关系, 并存储于对应的 数据库内, 便可直接根据报表 ID调取报表生成样式, 简单便捷。
[0071] 当新增或者删除报表生成样式时, 对应的报表 ID也会对应增加或删除, 便于统 一管理。
[0072] S140、 获取来自用户终端的数据以及指定的报表 ID。
[0073] 在本实施例中, 用户可直接从用户终端 10的生成 APP输入数据以及指定报表 ID
[0074] S150、 根据指定的报表 ID调取对应的报表生成样式;
[0075] 每个报表 ID都对应有一个报表生成样式, 通过报表 ID便可调取对应的报表生成 样式, 操作简单。
[0076] S160、 将数据按照报表生成样式生成目标报表。
[0077] 在本实施例中, 目标报表是指按照报表生成样式将数据进行格式调整和重组后 得到的报表。
[0078] 在一实施例中, 如图 4所示, 所述步骤 S160可包括步骤 S161-S162。
[0079] S161、 将按照报表生成样式建立空报表。
[0080] 在本实施例中, 空报表是指一个未填入数据的报表, 且该报表样式为用户终端 10指定的报表 ID对应的报表生成样式。
[0081] S162、 将数据填入空报表中, 以得到目标报表。
[0082] 在本实施例中, 将数据逐一填入空报表中, 以形成目标报表, 生成效率高。
[0083] S170、 将目标报表反馈至用户终端。
[0084] 在用户终端 10的生成 APP上呈现目标报表, 可便于用户查看。
[0085] 图 5是本申请另一实施例提供的一种报表生成方法的流程示意图。 如图 5所示, 本实施例的报表生成方法包括步骤 S210-S280。 其中步骤 S210-S270与上述实施例 中的步骤 S110-S170类似, 在此不再赘述。 下面详细说明本实施例中所增加的步 骤 S280。
[0086] S280、 打印目标报表。
[0087] 上述的报表生成方法, 通过设置报表生成样式以及与之绑定的报表 ID, 对输入 的数据按照指定的报表 ID调取的报表生成样式生成目标报表, 利用报表生成样 式与报表 ID绑定存储的方式, 便于统一管理报表生成样式, 且减少人工制作报 表的工作量, 可高效生成报表。
[0088] 图 6是本申请实施例提供的一种报表生成装置 300的示意性框图。 如图 5所示, 对应于以上报表生成方法, 本申请还提供一种报表生成装置 300。 该报表生成装 置 300包括用于执行上述报表生成方法的单元, 该装置可以被配置于服务器 20中 。 具体地, 请参阅图 6 , 该报表生成装置 300包括:
[0089] 获取单元 304, 用于获取来自用户终端的数据以及指定的报表 ID ;
[0090] 样式调取单元 305 , 用于根据指定的报表 ID调取对应的报表生成样式;
[0091] 生成单元 306 , 用于将数据按照报表生成样式生成目标报表;
[0092] 反馈单元 307 , 用于将目标报表反馈至用户终端。
[0093] 另外, 在一实施例中, 上述的装置还包括:
[0094] 样式设置单元 301, 用于设置若干报表生成样式;
[0095] ID建立单元 302, 用于建立对应的报表 ID;
[0096] 存储单元 303, 用于将报表生成样式与报表 ID绑定并存储。
[0097] 在一实施例中, 上述的样式设置单元 301包括:
[0098] 扫描处理子单元, 用于扫描历史报表, 对历史报表进行图形识别, 获取基础样 本;
[0099] 调整子单元, 用于对基础样本进行调整, 以得到报表生成样式。
[0100] 在一实施例中, 如图 7所示, 所述生成单元 306包括:
[0101] 空报表建立子单元 3061, 用于将按照报表生成样式建立空报表;
[0102] 填入子单元 3062, 用于将数据填入空报表中, 以得到目标报表。
[0103] 图 8是本申请另一实施例提供的一种报表生成装置 300的示意性框图。 如图 8所 示, 本实施例的报表生成装置 300是上述实施例的基础上增加了打印单元 308, 该打印单元 308用于打印目标报表。
[0104] 需要说明的是, 所属领域的技术人员可以清楚地了解到, 上述报表生成装置 30 0和各单元的具体实现过程, 可以参考前述方法实施例中的相应描述, 为了描述 的方便和简洁, 在此不再赘述。
[0105] 上述报表生成装置 300可以实现为一种计算机程序的形式, 该计算机程序可以 在如图 9所示的计算机设备上运行。
[0106] 请参阅图 9 , 图 9是本申请实施例提供的一种计算机设备的示意性框图。 该计算 机设备 500是服务器。
[0107] 参阅图 9 , 该计算机设备 500包括通过系统总线 501连接的处理器 502、 存储器和 网络接口 505, 其中, 存储器可以包括非易失性存储介质 503和内存储器 504。
[0108] 该非易失性存储介质 503可存储操作系统 5031和计算机程序 5032。 该计算机程 序 5032包括程序指令, 该程序指令被执行时, 可使得处理器 502执行一种报表生 成方法。
[0109] 该处理器 502用于提供计算和控制能力, 以支撑整个计算机设备 500的运行。
[0110] 该内存储器 504为非易失性存储介质 503中的计算机程序 5032的运行提供环境, 该计算机程序 5032被处理器 502执行时, 可使得处理器 502执行一种报表生成方 法。
[0111] 该网络接口 505用于与其它设备进行网络通信。 本领域技术人员可以理解, 图 9 中示出的结构, 仅仅是与本申请方案相关的部分结构的框图, 并不构成对本申 请方案所应用于其上的计算机设备 500的限定, 具体的计算机设备 500可以包括 比图中所示更多或更少的部件, 或者组合某些部件, 或者具有不同的部件布置
[0112] 其中, 所述处理器 502用于运行存储在存储器中的计算机程序 5032, 以实现如 下步骤:
[0113] 获取来自用户终端的数据以及指定的报表 ID ;
[0114] 根据指定的报表 ID调取对应的报表生成样式;
[0115] 将数据按照报表生成样式生成目标报表;
[0116] 将目标报表反馈至用户终端。 [0117] 在一实施例中, 处理器 502在实现所述获取来自用户终端的数据以及指定的报 表 ID步骤之前, 还实现如下步骤:
[0118] 设置若干报表生成样式;
[0119] 建立报表生成样式对应的报表 ID;
[0120] 将报表生成样式与报表 ID绑定并存储。
[0121] 其中, 所述报表生成样式包括 html样式以及水晶报表样式。
[0122] 在一实施例中, 处理器 502在实现所述设置若干报表生成样式步骤时, 具体实 现如下步骤:
[0123] 扫描历史报表, 对历史报表进行图形识别, 获取基础样本;
[0124] 对基础样本进行调整, 以得到报表生成样式。
[0125] 在一实施例中, 处理器 502在实现所述将数据按照报表生成样式生成目标报表 步骤时, 具体实现如下步骤:
[0126] 将按照报表生成样式建立空报表;
[0127] 将数据填入空报表中, 以得到目标报表。
[0128] 在一实施例中, 处理器 502在实现所述将目标报表反馈至用户终端步骤之后, 还实现如下步骤:
[0129] 打印目标报表。
[0130] 应当理解, 在本申请实施例中, 处理器 502可以是中央处理单元 (Central
Processing Unit, CPU) , 该处理器 502还可以是其他通用处理器、 数字信号处理 器 (Digital Signal Processor, DSP)、 专用集成电路 (Application Specific Integrated Circuit, ASIC)、 现成可编程门阵列 (Field- Programmable Gate Array, FPGA)或 者其他可编程逻辑器件、 分立门或者晶体管逻辑器件、 分立硬件组件等。 其中 , 通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
[0131] 本领域普通技术人员可以理解的是实现上述实施例的方法中的全部或部分流程
, 是可以通过计算机程序来指令相关的硬件来完成。 该计算机程序包括程序指 令, 计算机程序可存储于一存储介质中, 该存储介质为计算机可读存储介质。 该程序指令被该计算机系统中的至少一个处理器执行, 以实现上述方法的实施 例的流程步骤。 [0132] 因此, 本申请还提供一种存储介质。 该存储介质可以为计算机可读存储介质。 该存储介质存储有计算机程序, 其中该计算机程序被处理器执行时使处理器执 行如下步骤:
[0133] 获取来自用户终端的数据以及指定的报表 ID ;
[0134] 根据指定的报表 ID调取对应的报表生成样式;
[0135] 将数据按照报表生成样式生成目标报表;
[0136] 将目标报表反馈至用户终端。
[0137] 在一实施例中, 所述处理器在执行所述计算机程序而实现所述获取来自用户终 端的数据以及指定的报表 ID步骤之前, 还实现如下步骤:
[0138] 设置若干报表生成样式;
[0139] 建立报表生成样式对应的报表 ID ;
[0140] 将报表生成样式与报表 ID绑定并存储。
[0141] 其中, 所述报表生成样式包括 html样式以及水晶报表样式。
[0142] 在一实施例中, 所述处理器在执行所述计算机程序而实现所述设置若干报表生 成样式步骤时, 具体实现如下步骤:
[0143] 扫描历史报表, 对历史报表进行图形识别, 获取基础样本;
[0144] 对基础样本进行调整, 以得到报表生成样式。
[0145] 在一实施例中, 所述处理器在执行所述计算机程序而实现所述将数据按照报表 生成样式生成目标报表步骤时, 具体实现如下步骤:
[0146] 将按照报表生成样式建立空报表;
[0147] 将数据填入空报表中, 以得到目标报表。
[0148] 在一实施例中, 所述处理器在执行所述计算机程序而实现所述将目标报表反馈 至用户终端步骤之后, 还实现如下步骤:
[0149] 打印目标报表。
[0150] 所述存储介质可以是 U盘、 移动硬盘、 只读存储器 (Read-Only Memory, ROM ) 、 磁碟或者光盘等各种可以存储程序代码的计算机可读存储介质。
[0151] 本领域普通技术人员可以意识到, 结合本文中所公开的实施例描述的各示例的 单元及算法步骤, 能够以电子硬件、 计算机软件或者二者的结合来实现, 为了 清楚地说明硬件和软件的可互换性, 在上述说明中已经按照功能一般性地描述 了各示例的组成及步骤。 这些功能究竟以硬件还是软件方式来执行, 取决于技 术方案的特定应用和设计约束条件。 专业技术人员可以对每个特定的应用来使 用不同方法来实现所描述的功能, 但是这种实现不应认为超出本申请的范围。
[0152] 在本申请所提供的几个实施例中, 应该理解到, 所揭露的装置和方法, 可以通 过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示意性的。 例如, 各个单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可以有另外的划分方 式。 例如多个单元或组件可以结合或者可以集成到另一个系统, 或一些特征可 以忽略, 或不执行。
[0153] 本申请实施例方法中的步骤可以根据实际需要进行顺序调整、 合并和删减。 本 申请实施例装置中的单元可以根据实际需要进行合并、 划分和删减。 另外, 在 本申请各个实施例中的各功能单元可以集成在一个处理单元中, 也可以是各个 单元单独物理存在, 也可以是两个或两个以上单元集成在一个单元中。
[0154] 该集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时 , 可以存储在一个存储介质中。 基于这样的理解, 本申请的技术方案本质上或 者说对现有技术做出贡献的部分, 或者该技术方案的全部或部分可以以软件产 品的形式体现出来, 该计算机软件产品存储在一个存储介质中, 包括若干指令 用以使得一台计算机设备 (可以是个人计算机, 终端, 或者网络设备等) 执行 本申请各个实施例所述方法的全部或部分步骤。
[0155] 以上所述, 仅为本申请的具体实施方式, 但本申请的保护范围并不局限于此, 任何熟悉本技术领域的技术人员在本申请揭露的技术范围内, 可轻易想到各种 等效的修改或替换, 这些修改或替换都应涵盖在本申请的保护范围之内。 因此 , 本申请的保护范围应以权利要求的保护范围为准。
发明概述
技术问题
问题的解决方案
发明的有益效果

Claims

权利要求书
[权利要求 1] 报表生成方法, 其特征在于, 包括:
获取来自用户终端的数据以及指定的报表 ID ;
根据指定的报表 ID调取对应的报表生成样式;
将数据按照报表生成样式生成目标报表;
将目标报表反馈至用户终端。
[权利要求 2] 根据权利要求 1所述的报表生成方法, 其特征在于, 所述获取来自用 户终端的数据以及指定的报表 ID之前, 还包括: 设置若干报表生成样式;
建立报表生成样式对应的报表 ID ;
将报表生成样式与报表 ID绑定并存储。
[权利要求 3] 根据权利要求 2所述的报表生成方法, 其特征在于, 所述设置若干报 表生成样式, 包括:
扫描历史报表, 对历史报表进行图形识别, 获取基础样本; 对基础样本进行调整, 以得到报表生成样式。
[权利要求 4] 根据权利要求 3所述的报表生成方法, 其特征在于, 所述报表生成样 式包括 html样式以及水晶报表样式。
[权利要求 5] 根据权利要求 1至 4任一项所述的报表生成方法, 其特征在于, 所述将 数据按照报表生成样式生成目标报表, 包括:
将按照报表生成样式建立空报表;
将数据填入空报表中, 以得到目标报表。
[权利要求 6] 根据权利要求 5所述的报表生成方法, 其特征在于, 所述将目标报表 反馈至用户终端之后, 还包括:
打印目标报表。
[权利要求 7] 报表生成装置, 其特征在于, 包括:
获取单元, 用于获取来自用户终端的数据以及指定的报表 ID ;
样式调取单元, 用于根据指定的报表 ID调取对应的报表生成样式; 生成单元, 用于将数据按照报表生成样式生成目标报表; 反馈单元, 用于将目标报表反馈至用户终端。
[权利要求 8] 根据权利要求 7所述的报表生成装置, 其特征在于, 所述装置还包括 样式设置单元, 用于设置若干报表生成样式;
ID建立单元, 用于建立对应的报表 ID;
存储单元, 用于将报表生成样式与报表 ID绑定并存储。
[权利要求 9] 一种计算机设备, 其特征在于, 所述计算机设备包括存储器及处理器 , 所述存储器上存储有计算机程序, 所述处理器执行所述计算机程序 时实现如权利要求 1至 6中任一项所述的报表生成方法。
[权利要求 10] 一种存储介质, 其特征在于, 所述存储介质存储有计算机程序, 所述 计算机程序被处理器执行时可实现如权利要求 1至 6中任一项所述的报 表生成方法。
PCT/CN2018/117871 2018-09-10 2018-11-28 报表生成方法、装置、计算机设备及存储介质 WO2020052091A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811048257.9 2018-09-10
CN201811048257.9A CN109145278A (zh) 2018-09-10 2018-09-10 报表生成方法、装置、计算机设备及存储介质

Publications (1)

Publication Number Publication Date
WO2020052091A1 true WO2020052091A1 (zh) 2020-03-19

Family

ID=64824311

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/117871 WO2020052091A1 (zh) 2018-09-10 2018-11-28 报表生成方法、装置、计算机设备及存储介质

Country Status (2)

Country Link
CN (1) CN109145278A (zh)
WO (1) WO2020052091A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090024913A1 (en) * 2007-07-20 2009-01-22 Oracle International Corporation Generating reports in applications
CN106649242A (zh) * 2016-12-29 2017-05-10 郑州云海信息技术有限公司 一种报表的生成方法及系统
CN107463348A (zh) * 2017-07-05 2017-12-12 深圳市坐标软件开发有限公司 基于B/S架构实现Web端自定义格式打印方法及系统
CN108170655A (zh) * 2017-12-26 2018-06-15 平安科技(深圳)有限公司 可视化报表的制作方法、装置、终端设备及存储介质

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8850310B2 (en) * 2011-10-11 2014-09-30 Microsoft Corporation Data entry suggestion lists for designated document data entry areas based on data from other document data entry areas
US9645723B2 (en) * 2012-05-29 2017-05-09 Microsoft Technology Licensing, Llc Row and column navigation
CN105843784A (zh) * 2016-03-18 2016-08-10 中国银行股份有限公司 一种报表生成方法及装置
CN107491427A (zh) * 2017-06-08 2017-12-19 北京小度信息科技有限公司 数据报表处理方法及装置
CN107833123A (zh) * 2017-10-27 2018-03-23 赵海霞 一种会计报表的处理系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090024913A1 (en) * 2007-07-20 2009-01-22 Oracle International Corporation Generating reports in applications
CN106649242A (zh) * 2016-12-29 2017-05-10 郑州云海信息技术有限公司 一种报表的生成方法及系统
CN107463348A (zh) * 2017-07-05 2017-12-12 深圳市坐标软件开发有限公司 基于B/S架构实现Web端自定义格式打印方法及系统
CN108170655A (zh) * 2017-12-26 2018-06-15 平安科技(深圳)有限公司 可视化报表的制作方法、装置、终端设备及存储介质

Also Published As

Publication number Publication date
CN109145278A (zh) 2019-01-04

Similar Documents

Publication Publication Date Title
US11405468B2 (en) Forming activity streams across heterogeneous applications
WO2019237586A1 (zh) 定时任务管理方法、装置、计算机设备及存储介质
CN108062367B (zh) 一种数据列表的上传方法及其终端
CN108228119B (zh) 基于hxml的打印方法、终端设备及存储介质
CN110851253B (zh) 一种远程运维的方法、系统、存储介质及电子设备
AU2010356679B2 (en) User customization method and system
WO2017114116A1 (zh) 一种管理终端应用程序的功能图标的方法及装置、设备
US20240020162A1 (en) Workflow selection
WO2012055175A1 (zh) 配置文件处理方法、装置及系统
WO2020000761A1 (zh) 任务管理方法、装置、计算机设备及存储介质
WO2020015170A1 (zh) 接口调用方法、装置及计算机可读存储介质
US20200014736A1 (en) Information processing server and recording medium
CN106201216A (zh) 一种自定义桌面图标的显示方法及系统
WO2019134225A1 (zh) excel的数据导入方法、装置、设备及计算机可读存储介质
CN109710631A (zh) 辅助生成sql代码的方法、装置、设备及计算机存储介质
CN108763311B (zh) 界面显示方法、装置、智能交互平板及存储介质
US20240086631A1 (en) Table processing method and apparatus, electronic device, medium and program product
WO2020052091A1 (zh) 报表生成方法、装置、计算机设备及存储介质
CN108011964B (zh) 图片上传方法、装置、电子终端及可读存储介质
CN114003329A (zh) 数据展示组件的创建方法、装置、存储介质和电子装置
WO2017000696A1 (zh) 交互处理方法及装置
CN114218904A (zh) 一种可配置报表导出设计的方法及系统
WO2020220272A1 (zh) 更改资源状态的方法、系统、终端及存储介质
CN110321283B (zh) 接口测试用例生成方法、装置、计算机装置及存储介质
AU2017319583A1 (en) Techniques for network charting and configuration in a welding or cutting system

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18933421

Country of ref document: EP

Kind code of ref document: A1