CN115409002A - Method and device for obtaining report, electronic equipment and computer storage medium - Google Patents

Method and device for obtaining report, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN115409002A
CN115409002A CN202210904834.XA CN202210904834A CN115409002A CN 115409002 A CN115409002 A CN 115409002A CN 202210904834 A CN202210904834 A CN 202210904834A CN 115409002 A CN115409002 A CN 115409002A
Authority
CN
China
Prior art keywords
report
numerical value
corresponding numerical
target
field
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
CN202210904834.XA
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.)
Alibaba China Co Ltd
Original Assignee
Alibaba China 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 Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN202210904834.XA priority Critical patent/CN115409002A/en
Publication of CN115409002A publication Critical patent/CN115409002A/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/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/12Accounting
    • G06Q40/123Tax preparation or submission

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a method, a device, electronic equipment and a computer storage medium for obtaining a report, wherein in the method for obtaining the report, a report toolkit obtains an initial report, reads a corresponding numerical value of a field from a data source, corresponds the corresponding numerical value and the field in the initial report to obtain a target report, and provides the target report for a display toolkit; the display tool kit receives the target report and the corresponding numerical value, and renders and displays the target report and the corresponding numerical value on a display interface; and updating the target report and the corresponding numerical value according to the received editing and updating operation, so that the application service directly obtains the target report and the updated target report. In the whole process, the corresponding numerical value can be edited through the display interface, and the edited corresponding numerical value is transmitted back to the application service, so that the what you see is what you get is realized; meanwhile, the report toolkit and the display toolkit are only used for generating reports and displaying the reports, and do not store corresponding numerical values in the data source, so that the data safety is further improved.

Description

Method and device for obtaining report, electronic equipment and computer storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for obtaining a report, an electronic device, and a computer storage medium.
Background
In a tax scene, a large amount of report style requirements exist. In addition, in a tax scene, for a report style, some functions of an Excel form need to be supported, such as: formula editing, window freezing, multiple sheets, batch editing, dynamic merging, drill-down (to expand the next layer of data down from the current data), annotation, and so forth.
For the report demand in the tax scene, the report made in the existing report making mode generally presents the report by providing an embedded page, and the page cannot be edited online, so that the contents in the report need to be edited from other pages, and the report cannot be edited online in time. Therefore, how to provide a report which can be easily edited by a user on line so as to realize what-you-see-is-what-you-get reports is a technical problem which needs to be solved at present.
Disclosure of Invention
The application provides a method for obtaining a report, so as to solve the technical problem of how to provide the report which can be conveniently edited by a user on line so as to realize the WYSIWYG (what you see is what you get) report, and also provides a device, an electronic device and a computer storage medium corresponding to the method for obtaining the report.
The application provides a method for obtaining a report, which is applied to an application service needing to generate the report, and comprises the following steps:
sending a first request message to a display toolkit, wherein the first request message is used for requesting to obtain an updated target report and an updated corresponding numerical value, and the updated target report is a target report establishing a mutual corresponding relation between the updated corresponding numerical value and a field;
receiving the updated target report form provided by the display toolkit and the updated corresponding numerical value;
the display toolkit is used for receiving a target report and a corresponding numerical value from the report toolkit, rendering and presenting the report and the corresponding numerical value on a display interface in a target form, and updating the target report and the corresponding numerical value according to received editing and updating operations; the corresponding numerical value is placed into the corresponding field of the target report according to the mutual corresponding relation between the corresponding numerical value and the field;
the report tool package is embedded in the application service and used for obtaining an initial report of a data source containing each field, reading a corresponding numerical value of each field from the data source provided by the application service, and enabling the corresponding numerical value to correspond to the field.
Optionally, after receiving the updated target report and the updated corresponding numerical value provided by the presentation toolkit, based on the identification information for searching the specific position of the updated corresponding numerical value in the data source, obtaining the position information of the updated corresponding numerical value in the data source;
and updating the corresponding numerical value of the data source based on the position information and the updated corresponding numerical value.
Optionally, the method further includes: and receiving calling information written by a code developer to call the target report and the corresponding numerical value provided by the report toolkit.
Optionally, the target form comprises: a json table form for the display interface to directly display.
Optionally, the report toolkit includes an application interface; and calling the target report and the corresponding numerical value provided by the report toolkit through the application interface.
Optionally, the method further includes: configuring authority management parameters and report drop-down frame parameters aiming at the target report; the authority management of the target report is realized through the configuration of the authority management parameters; and screening out a target report corresponding to the drop-down frame parameters through the configuration of the report drop-down frame parameters.
The present application further provides a method for obtaining a report, which is applied to a report toolkit embedded in an application service that needs to generate a report, and includes:
obtaining a second request message sent by a display tool kit, wherein the second request message is used for requesting to obtain a target report and a corresponding numerical value; the target report is a report which establishes the mutual corresponding relation between the corresponding numerical value and the field;
acquiring an initial report of a data source containing each field based on the second request message, reading a corresponding numerical value of each field from the data source provided by the application service, and enabling the corresponding numerical value to correspond to the field;
providing the target report and the corresponding numerical value to the display tool kit;
the display toolkit is used for receiving the target report and the corresponding numerical value, and rendering and presenting the target report and the corresponding numerical value on a display interface in a target form; and the corresponding numerical value is placed into the corresponding field of the target report according to the mutual corresponding relation between the corresponding numerical value and the field.
Optionally, the method further includes:
sending a third request message to a configuration tool kit, wherein the third request message is used for requesting to obtain the initial report;
obtaining the initial report provided by the configuration toolkit; the configuration toolkit is used for obtaining the required initial report and the data source of each field contained in the initial report.
Optionally, the configuration toolkit is configured to configure the cell parameters for the cells in the target report, so as to manage the cell parameters of the target report.
Optionally, the cell parameter at least includes one of the following parameters:
location information of the cells;
the data source identification information of the corresponding numerical value filled in the cell;
name information of the cell;
whether to provide the established corresponding numerical value in the cell and the mutual corresponding relation between the fields to option information of a data source of the application service;
option information whether to allow editing of the corresponding values filled in the cells provided to the data source;
the option information of whether to carry out a list on the corresponding numerical value filled in the cell;
display mode information for displaying the data of the list;
and the identification information is used for searching the specific position of the corresponding numerical value filled in the cell in the data source.
The application also provides a method for obtaining the report form, which is applied to a display toolkit and comprises the following steps:
sending a second request message to a report tool kit, wherein the second request message is used for requesting to obtain a target report and a corresponding numerical value, and the target report is a report in which the mutual corresponding relation between the corresponding numerical value and the field is established;
obtaining the target report and the corresponding numerical value provided by the report toolkit;
rendering and presenting the target report and the corresponding numerical value on a display interface in a table form specified by the target report; the corresponding numerical value is placed into the corresponding field of the target report according to the mutual corresponding relation between the corresponding numerical value and the field;
the report toolkit is embedded in the application service and used for acquiring an initial report of a data source containing each field, reading a corresponding numerical value of each field from the data source provided by the application service, and enabling the corresponding numerical value to correspond to the field.
Optionally, the method further includes: and updating the target report and the corresponding numerical value according to the received editing and updating operation aiming at the target report and the corresponding numerical value to obtain the updated target report and the updated corresponding numerical value.
Optionally, the method further includes:
obtaining a first request message sent by the application service, wherein the first request message is used for requesting to obtain an updated target report and an updated corresponding numerical value, and the updated target report is a target report establishing a mutual corresponding relation between the updated corresponding numerical value and a field;
and aiming at the first request message, providing the updated target report and the updated corresponding numerical value to the application service.
The application provides a device for obtaining a report, which is applied to an application service needing to generate the report, and comprises the following steps:
a first request message sending unit, configured to send a first request message to a display toolkit, where the first request message is used to request to obtain an updated target report and an updated corresponding value, and the updated target report is a target report in which a mutual correspondence relationship between the updated corresponding value and a field is established;
the receiving unit is used for receiving the updated target report form provided by the display toolkit and the updated corresponding numerical value;
the display toolkit is used for receiving a target report and a corresponding numerical value from the report toolkit, rendering and presenting the report and the corresponding numerical value on a display interface in a target form, and updating the target report and the corresponding numerical value according to received editing and updating operations; the corresponding numerical value is placed into the corresponding field of the target report according to the mutual corresponding relation between the corresponding numerical value and the field;
the report toolkit is embedded in the application service and used for acquiring an initial report of a data source containing each field, reading a corresponding numerical value of each field from the data source provided by the application service, and enabling the corresponding numerical value to be corresponding to the field.
The present application further provides a device for obtaining a report, which is applied to a report toolkit embedded in an application service that needs to generate a report, and includes:
a second request message obtaining unit, configured to obtain a second request message sent by a display toolkit, where the second request message is used to request to obtain a target report and a corresponding numerical value; the target report is a report which establishes the mutual corresponding relation between the corresponding numerical value and the field;
a corresponding unit, configured to obtain an initial report including a data source of each field based on the second request message, read a corresponding value of each field from the data source provided by the application service, and correspond the corresponding value and the field to each other;
the providing unit is used for providing the target report and the corresponding numerical value for the display tool kit;
the display toolkit is used for receiving the target report and the corresponding numerical value, and rendering and presenting the target report and the corresponding numerical value on a display interface in a target form; and the corresponding numerical value is placed into the corresponding field of the target report according to the mutual corresponding relation between the corresponding numerical value and the field.
The application also provides a device for obtaining the report form, which is applied to a display tool kit and comprises:
a second request message sending unit, configured to send a second request message to a report toolkit, where the second request message is used to request to obtain a target report and a corresponding numerical value, and the target report is a report in which a mutual correspondence between the corresponding numerical value and a field is established;
a target report and corresponding numerical value obtaining unit, configured to obtain the target report and the corresponding numerical value provided by the report toolkit;
the rendering unit is used for rendering and presenting the target report and the corresponding numerical value on a display interface in a table form specified by the target report; the corresponding numerical value is placed into the corresponding field of the target report according to the mutual corresponding relation between the corresponding numerical value and the field;
the report toolkit is embedded in the application service and used for acquiring an initial report of a data source containing each field, reading a corresponding numerical value of each field from the data source provided by the application service, and enabling the corresponding numerical value to correspond to the field.
The application provides an electronic device, including:
a processor;
a memory for storing a computer program for execution by the processor to perform the method of obtaining a report.
A computer storage medium stores a computer program that is run by a processor to perform a method of obtaining a report.
Compared with the prior art, the embodiment of the application has the following advantages:
in the method for obtaining the report, because the report toolkit obtains the initial report, reads the corresponding numerical value of the field from the data source, corresponds the corresponding numerical value and the field in the initial report to obtain the target report, and provides the target report for the display toolkit; the display tool kit receives the target report and the corresponding numerical value, and renders and displays the target report and the corresponding numerical value on a display interface; and updating the target report and the corresponding numerical value according to the received editing and updating operation, so that the application service directly obtains the target report and the updated target report. In the whole process, the corresponding numerical value can be edited through the display interface, and the edited corresponding numerical value is transmitted back to the application service, so that the what you see is what you get is realized; meanwhile, the report toolkit and the display toolkit are only used for generating reports and displaying reports, and corresponding numerical values in the data source are not stored, so that the data security is further improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art according to the drawings.
Fig. 1 is a schematic structural diagram of a report generation system according to a first embodiment of the present application;
FIG. 2 is a diagram illustrating a first scenario of the first embodiment;
FIG. 3 is a diagram illustrating a second scenario of the first embodiment;
FIG. 4 is a diagram illustrating a third scenario of the first embodiment;
FIG. 5 is a flowchart illustrating a method for obtaining a report according to a second embodiment of the present application;
FIG. 6 is a flowchart illustrating a method for obtaining a report according to a third embodiment of the present application;
FIG. 7 is a flowchart illustrating a method for obtaining a report according to a fourth embodiment of the present application;
FIG. 8 is a diagram illustrating an apparatus for obtaining a report according to a fifth embodiment of the present application;
FIG. 9 is a diagram illustrating an apparatus for obtaining reports according to a sixth embodiment of the present application;
FIG. 10 is a diagram illustrating an apparatus for obtaining a report according to a seventh embodiment of the present application;
fig. 11 is a schematic view of an electronic device provided in an eighth embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
The application provides a method, a device, an electronic device and a computer storage medium for obtaining a report, and in fact, each execution main body of the method for obtaining the report and mutual data interaction or information interaction can form a report generation system.
The following respectively describes a report generation system, a method and an apparatus for obtaining a report, an electronic device, and a computer storage medium by specific embodiments.
First embodiment
A first embodiment of the present application provides a report generation system, which is described below with reference to fig. 1 to 4.
The report generation system can be applied to various scenes needing to generate reports. For example, in a financial or tax scenario, reports of various styles need to be generated, so that a user can record data related to finance or tax in the report to form a financial report or a tax report.
Please refer to fig. 1, which is a schematic structural diagram of a report generation system according to a first embodiment of the present application.
The report generation system comprises a report toolkit 101 and a presentation toolkit 102. In this embodiment, the toolkit may refer to a Software Development Kit (SDK).
In this embodiment, the report toolkit 101 is specifically a toolkit embedded in the application service 100 that needs to generate a report, and the toolkit is configured to obtain an initial report including a data source of each field, read a corresponding numerical value of each field from a data source provided by an application service to which the report generation system is attached, correspond the corresponding numerical value and the field to form a target report, and provide the target report and the corresponding numerical value to the presentation toolkit 102. The target report forms the mutual corresponding relation between the corresponding numerical values and the fields.
The application service is an application which has the report generation requirement and stores the corresponding numerical value required by the report generation. Specifically, in the tax scene, the application service has the requirement of generating the financial statement, and simultaneously stores the application of specific financial data required by generating the financial statement.
For example, a business may need to generate annual financial statements of the last three years, and the financial related data of the business in the last three years may be stored in an application service, and the annual financial statements of the business in the last three years may be generated by using the reporting toolkit 101 embedded in the application service.
Specifically, when a report is generated, the style of the report and the fields required to be filled in each cell in the report need to be configured. In the report generation system, the configured report is an initial report, and the fields required to be filled in each cell in the configured report are data sources of the fields contained in the initial report. The style of the configuration report and the fields that each cell in the configuration report needs to fill in can be configured in the configuration toolkit 103. The process of configuring the style of the report is actually a process of obtaining a required initial report, and the process of configuring the fields required to be filled in each cell in the report is actually a process of obtaining the data source of each field contained in the initial report. After the style of the configuration report and the fields required to be filled in each cell in the configuration report, the configuration toolkit 103 actually obtains the initial report of the data source containing each field.
The above fields may refer to each index that needs to be filled in the report, and specifically, referring to fig. 3, the financial report includes a plurality of indexes, for example: revenue, cost, tax, asset loss, etc.
The data source specifically refers to a source of data or values stored in a database of the application service. For example, see the data source illustrated in FIG. 1.
The initial report is a report containing a report style, and some fields in the data source may be filled in the initial report without filling corresponding values corresponding to the fields. For example, please refer to the report style in FIG. 2, which fills in the revenue, cost, tax, asset reduction loss, etc., but does not fill in the corresponding value 200 corresponding to the revenue.
Referring to fig. 2, it is a schematic diagram of a first scenario of the first embodiment, and actually, the style of the configuration report and the fields to be filled in each cell in the configuration report of the configuration toolkit 103 can be illustrated by using fig. 2. On the left side of fig. 2, an initial report, i.e., a report style, configured in the configuration toolkit 103 is illustrated. On the right side of fig. 2, it is illustrated that each field configured in the configuration toolkit 103 may obtain the initial report of the data source including each field by dragging each field to a cell in the initial report. For example, in fig. 2, it can be seen that the line 5, column E of the initial report needs to be filled with data corresponding to m1 in the data source. Of course, only the data source is configured in the initial report configured by the configuration toolkit 103, and the corresponding value is not filled in.
In this embodiment, the configuration toolkit 103 obtains the initial report of the data source including each field, and the subsequent reporting toolkit 101 can obtain the initial report of the data source including each field provided by the configuration toolkit 103.
The reason why the reporting toolkit 101 can obtain the initial report of the data source including each field provided by the configuration toolkit 103 is that the reporting toolkit 101 sends a third request message for requesting to obtain the initial report of the data source including each field to the configuration toolkit 103; after the configuration toolkit 103 obtains the third request message, the initial report of the data source containing each field can be provided to the reporting toolkit 101 for the third request message.
After obtaining the initial report of the data source including each field, the reporting toolkit 101 may read the corresponding value of each field from the data source provided by the application service attached to the report generating system, and correspond the corresponding value and the field to each other. For example, assuming that the corresponding value corresponding to m1 in the data source stored in the application service is 200, the corresponding value 200 corresponding to m1 is filled in the 5 th row and the E th column of the target report. In a similar manner, each cell in the initial report that needs to be filled with a corresponding numerical value may be filled with the corresponding numerical value. Through the process of mutually corresponding the corresponding numerical value and the field in the initial report, the target report is formed.
For facilitating understanding of the target report in which the mutual correspondence between the corresponding value and the field is established, please refer to fig. 3, which is a second schematic view of the first embodiment, and fig. 3 can illustrate the target report in which the mutual correspondence between the corresponding value and the field is established. For example, as can be seen in the report of FIG. 3: the cumulative revenue of A company Limited 2021 for the first half year is 200 ten thousand yuan. One of the fields is: business income; which corresponds to a value of 200. In this embodiment, the report shown in fig. 3 is an example report of a financial report or a tax report. Specifically, it is a financial statement of the cumulative income of A-shares, inc. in the first half year of 2021 and the cumulative income of 2021. Wherein, the financial statement includes a plurality of indexes, such as: revenue, cost, tax, asset loss, etc.
After obtaining the target report and the corresponding numerical value, the reporting toolkit 101 provides the target report and the corresponding numerical value to the presentation toolkit 102, and after receiving the target report and the corresponding numerical value, the presentation toolkit 102 renders and presents the target report and the corresponding numerical value on a presentation interface in a table form (i.e., a target form) specified by the target report. And the corresponding numerical values are placed into corresponding fields of the target report according to the mutual corresponding relation between the corresponding numerical values and the fields. For example, the corresponding value 200 corresponding to m1 is placed in the E column of the 5 th row of the target report according to the mutual corresponding relationship between the corresponding value and the field.
The reason why the presentation toolkit 102 can obtain the target report and the corresponding numerical value provided by the reporting toolkit 101 is that the following data interaction process can be performed between the presentation toolkit and the reporting toolkit: the presentation toolkit may send a second request message for requesting to obtain the target report and the corresponding numerical value to the reporting toolkit.
After the report toolkit 101 obtains the target report and the corresponding numerical value, the target report and the corresponding numerical value are provided to the presentation toolkit 102 based on the second request message.
In order to facilitate editing operations on the target report and the corresponding numerical value illustrated in fig. 3, after receiving the target report and the corresponding numerical value provided by the report toolkit 101, the presentation toolkit 102 renders and presents the target report and the corresponding numerical value on the presentation interface in a table form specified by the target report. For example, the target report and the corresponding numerical value can be rendered and presented on the presentation interface through a json table form which is illustrated in fig. 1 and can be directly presented by the presentation interface.
In the report generation system, the initial report and the data source of each field included in the configuration report are configured in the configuration toolkit 103, so that the initial report of the data source including each field can be obtained. Then, the configuration toolkit 103 provides the initial report including the data source of each field to the report toolkit 101, and the report toolkit 101 reads the corresponding value of each field from the data source provided by the application service, and corresponds the corresponding value to the field in the initial report, thereby obtaining the target report and the corresponding value in which the mutual correspondence between the corresponding value and the field is established.
Then, the reporting toolkit 101 provides the target report and the corresponding value to the presentation toolkit 102, so that the presentation toolkit 102 renders the target report and the corresponding value on the presentation interface. Through the display interface, the user can edit the corresponding numerical value in the target report, and the edited data can be transmitted back to the data source of the application service.
In this embodiment, the configuration process of configuring the target report and configuring the data source of each field included in the initial report is implemented in a configuration toolkit, which may be a configuration toolkit embedded in the engine service, and of course, the configuration process may also be directly performed in the engine service.
In addition, in order to facilitate the application service to call the target report and the corresponding numerical value provided by the report toolkit 101, a control layer 104 is further disposed in the application service 100, and the control layer may be configured to receive call information (such as a call code or a call request) written by a code developer to call the target report and the corresponding numerical value provided by the report toolkit 101.
In this embodiment, the report generation system adopts an embedded code manner. In other words, the report generation system is not a purely configured system, but needs to write codes, and the codes are mainly written in the control layer. In the report generation system provided in this embodiment, the codes written in the control layer are not particularly complex, and only one row of calling codes is used for calling the target report and the corresponding numerical value provided by the report toolkit 101.
Specifically, an application interface is further provided between the application service and the report toolkit 101 in this embodiment, and the control layer calls the target report and the corresponding numerical value provided by the report toolkit through the application interface. As an example, the application interface may be provided by the reporting toolkit 101. For example, it may refer to an API (Application Programming Interface) set in the report SDK.
Specifically, the control layer 104 is configured to configure an authority management parameter for the target report and a report drop-down box parameter; the authority management of the target report is realized through the configuration of the authority management parameters; and screening out a target report corresponding to the drop-down frame parameter through the configuration of the drop-down frame parameter of the report.
The rights management parameters for the target report may refer to the following examples, for example, a developer or a manager sets some rights management parameters for the target report at a control layer, such as: whether the login user can access the target report or which parts in the target report can be accessed; and the user is limited to only modify or edit the corresponding numerical value corresponding to a certain field in the target report form on the display interface, but not edit the corresponding numerical value corresponding to other fields in the target report form.
The report drop-down box parameter for the target report may refer to an example where, for example, a developer or a manager may select one of the report drop-down box parameters at the control layer. As an example, a name set of financial data of multiple years may be used as a report drop-down box, where a name of financial data of a certain year may be selected, so as to configure parameters of the report drop-down box. After the financial data of a year is selected, the target report corresponding to the name of the financial data of the year can be screened out.
Specifically, referring to fig. 3, if the parameter of the report drop-down box configured at the control layer is a company, the application service can obtain a target report corresponding to the company, which is provided by the report toolkit.
In order to enable the data source to obtain the corresponding numerical value after the user edits the corresponding numerical value in the target report in time, the display toolkit receives the editing and updating operation of the user on the target report and the corresponding numerical value through the display interface, and obtains the updated target report and the updated corresponding numerical value; and providing the updated target report and the updated corresponding numerical value to a data source of the application service. The updated target report is the target report which establishes the mutual corresponding relation between the updated corresponding numerical value and the field.
For example, if the user modifies 200 ten-thousand yuan of the cumulative revenue of the company a 2021 for the first half of the year to 201 ten-thousand yuan, the presentation kit obtains an updated target report and an updated corresponding value, where the updated corresponding value is specifically 201 ten-thousand yuan of the cumulative revenue of the company a 2021 for the first half of the year, and the 201 ten-thousand yuan of the cumulative revenue of the company a 2021 for the first half of the year is included in the updated target report.
In order to facilitate changing of corresponding data in the data source based on the updated corresponding value, identification information of a specific position of the filled corresponding value in the data source is set for a cell in the target report, specifically, please refer to fig. 4, which is a third scenario diagram of the first embodiment, and a cell parameter set for a cell filled with a corresponding value in the target report can be displayed through the diagram.
It should be noted that the setting of the cell parameters is performed in the configuration toolkit, and the cell parameters are set through the configuration toolkit, so as to achieve management of the target report cell parameters.
In this embodiment, the cell parameter includes at least one of the following parameters: cell location information (which may refer to the location information of the cell in the report), such as cell location E9 in fig. 4; data source identification information of a corresponding value, such as the data source identification of final status # m5 in fig. 4, filled in the cell; name information of the cell, such as the cell alias { m5} in fig. 4; option information whether to provide the established correspondence between the corresponding values and fields in the cells to the data source of the application service, such as whether to write back the database in fig. 4; option information whether editing of the corresponding value of the cell fill provided to the data source is allowed, such as whether editing is supported in fig. 4; option information whether to list the corresponding values filled in the cells, for example, whether to list data in fig. 4; display mode information for displaying the data of the list, such as the display direction of the list data in fig. 4; identification information, such as the unique key in fig. 4, for locating a specific location in the data source of the corresponding value filled in the cell.
It should be noted that the unique key illustrated in fig. 4 is an example of the identification information for finding the specific position of the corresponding value filled in the cell in the data source. The unique key is entered in the cell parameter set to facilitate the correspondence of the corresponding value to be filled in the cell with the corresponding value in the data source.
In this embodiment, if the user performs an editing and updating operation on the target report and the corresponding numerical value through the display interface, the application service sends a first request message for requesting to obtain the updated target report and the updated corresponding numerical value to the display toolkit; the application service sends a first request message to the display tool kit, and the display tool kit provides the updated target report and the updated corresponding numerical value to the application service after receiving the first request message.
After receiving the updated target report and the updated corresponding numerical value, the application service firstly obtains the position information of the updated corresponding numerical value in the data source based on the identification information for searching the specific position of the updated corresponding numerical value in the data source; and then, updating the corresponding numerical value of the data source based on the position information of the updated corresponding numerical value in the data source and the updated corresponding numerical value.
For example, when the user modifies 200 ten thousand yuan, which is the cumulative revenue of a company a, 2021 for the first half year, to 201 ten thousand yuan, the presentation kit obtains the updated goal report and the updated corresponding numerical value, and provides the updated goal report and the updated corresponding numerical value to the application service.
The application service can obtain the updated corresponding numerical value according to the updated target report and the updated corresponding numerical value, wherein the accumulated business income of the A-shares company of 2021 in the last half year is 201 ten thousand yuan. The application service may obtain the location information of the updated corresponding numerical value in the data source based on the identification information for finding the specific location of the updated corresponding numerical value in the data source. After the position of the updated corresponding value in the data source is found, the corresponding value of the data source can be updated based on the updated corresponding value. For example, the application service may change the cumulative revenue of 200 ten thousand yuan for the first half year of 2021, a, shares, inc, in the data source to 201 ten thousand yuan.
In the report generation system, the initial report is obtained by the report toolkit embedded in the application service, the corresponding numerical value of each field is read from the data source, the corresponding numerical value is mutually corresponding to the field in the target report to form a target report, and the target report is provided for the display toolkit; the display toolkit can receive the target report and the corresponding numerical value from the report toolkit, and render and present the target report and the corresponding numerical value on a display interface in a table form specified by the target report; the corresponding numerical values are placed into the corresponding fields of the target report according to the mutual corresponding relation between the corresponding numerical values and the fields, so that the report generating system can directly display the generated target report on the display interface, a user can edit the corresponding numerical values in the target report through the display interface, the edited corresponding numerical values are returned to the data source, the what you see is what you get report is realized in the system, and meanwhile, the rapid building of the report with the complex style is also realized; in addition, the report toolkit and the display toolkit are only used for generating reports and displaying reports, and do not store corresponding numerical values in the data source, so that data in the data source of the application service cannot be stored, and the safety of the data is further improved.
Second embodiment
Corresponding to the first embodiment, the second embodiment of the present application provides a method for obtaining a report. The execution subject of the embodiment is an application service that needs to generate a report, and the same parts as those of the first embodiment in the second embodiment will not be described again, specifically please refer to the relevant parts of the first embodiment.
Please refer to fig. 5, which is a flowchart illustrating a method for obtaining a report according to a second embodiment of the present application.
The method for obtaining the report forms comprises the following steps:
step S501: a first request message is sent to a presentation toolkit.
In this embodiment, the first request message is used to request to obtain an updated target report and an updated corresponding value, where the updated target report is a target report in which a mutual correspondence relationship between the updated corresponding value and a field is established.
Step S502: and receiving the updated target report form provided by the display tool kit and the updated corresponding numerical value.
In this embodiment, the display toolkit is configured to receive the target report and the corresponding numerical value from the report toolkit, render and present the target report and the corresponding numerical value on the display interface in a target form, and update the target report and the corresponding numerical value according to the received editing and updating operation; and the corresponding numerical value is placed into the corresponding field of the target report according to the mutual corresponding relation between the numerical value and the field.
In this embodiment, the reporting tool package is embedded in the application service, and is configured to obtain an initial report of a data source including each field, read a corresponding value of each field from the data source provided by the application service, and correspond the corresponding value and the field to each other.
In this embodiment, after receiving the updated target report and the updated corresponding value provided by the presentation toolkit, the application service updates the corresponding value of the data source based on the updated corresponding value.
As an embodiment of updating the corresponding value of the data source based on the updated corresponding value: firstly, acquiring position information of an updated corresponding numerical value in a data source based on identification information for searching a specific position of the updated corresponding numerical value in the data source; and then, updating the corresponding numerical value of the data source based on the position information and the updated corresponding numerical value.
In this embodiment, the application service is provided with a control layer, and the control layer is configured to receive call information written by a code developer, so as to call a target report and a corresponding numerical value provided by a report toolkit. The calling information may be calling code or a calling request.
In the present embodiment, the target forms include: and displaying a json table form which can be directly displayed by the interface.
In this embodiment, the reporting toolkit includes an application interface; and the control layer calls a target report and a corresponding numerical value provided by the report toolkit through the application interface.
In this embodiment, the control layer is further configured to configure an authority management parameter for the target report and a report drop-down box parameter; the authority management of the target report is realized through the configuration of the authority management parameters; and screening out a target report corresponding to the drop-down frame parameter through the configuration of the drop-down frame parameter of the report.
In the method of the embodiment, the report toolkit acquires the initial report, reads the corresponding value of the field from the data source, corresponds the corresponding value and the field in the initial report to obtain the target report, and provides the target report for the display toolkit; the display tool kit receives the target report and the corresponding numerical value, and renders and displays the target report and the corresponding numerical value on a display interface; and updating the target report and the corresponding numerical value according to the received editing and updating operation, so that the application service directly obtains the target report and the updated target report. In the whole process, the corresponding numerical value can be edited through the display interface, and the edited corresponding numerical value is transmitted back to the application service, so that the what you see is what you get report is realized; meanwhile, the report toolkit and the display toolkit are only used for generating reports and displaying reports, and corresponding numerical values in the data source are not stored, so that the data security is further improved.
Third embodiment
Corresponding to the first embodiment, the third embodiment of the present application provides a method for obtaining a report. The execution subject of the embodiment is a report toolkit embedded in an application service that needs to generate a report, and the same parts as those of the first embodiment in the third embodiment are not described again, specifically please refer to the relevant parts of the first embodiment.
Please refer to fig. 6, which is a flowchart illustrating a method for obtaining a report according to a third embodiment of the present application.
The method for obtaining the report forms comprises the following steps:
step S601: and obtaining a second request message sent by the display tool kit.
In this embodiment, the second request message is used to request to obtain the target report and the corresponding value; the target report is a report in which the mutual corresponding relation between the corresponding numerical value and the field is established.
Step S602: and acquiring an initial report of the data source containing each field based on the second request message, reading the corresponding numerical value of each field from the data source provided by the application service, and corresponding the corresponding numerical value and the field.
Step S603: and providing the target report and the corresponding numerical value to the display tool kit.
In this embodiment, the display toolkit is configured to receive the target report and the corresponding numerical value, and render and present the target report and the corresponding numerical value on the display interface in a target form; and the corresponding numerical value is placed into the corresponding field of the target report according to the mutual corresponding relation between the numerical value and the field.
In this embodiment, the method further includes:
sending a third request message to the configuration tool package, wherein the third request message is used for requesting to obtain an initial report;
obtaining an initial report provided by a configuration toolkit; the configuration toolkit is used for obtaining the required initial report and the data source of each field contained in the initial report.
In this embodiment, the configuration toolkit is used for configuring the cell parameters for the cells in the target report, so as to manage the cell parameters of the target report.
In this embodiment, the cell parameter at least includes one of the following parameters:
location information of the cells;
the data source identification information of the corresponding numerical value filled in the cell;
name information of the cell;
whether the established corresponding numerical values in the cells and the mutual corresponding relations between the fields are provided for option information of a data source of the application service;
option information whether to allow editing of the corresponding values filled in by the cells provided to the data source;
the option information of whether to carry out the list to the corresponding numerical value filled in the cell;
display mode information for displaying the data of the list;
and the identification information of the specific position of the corresponding numerical value filled in the cell in the data source is searched.
In this embodiment, in the method for obtaining a report, the report toolkit obtains an initial report based on the second request message, reads a corresponding value of a field from the data source, corresponds the corresponding value to the field in the initial report to obtain a target report, and provides the target report to the presentation toolkit; the display tool kit receives the target report and the corresponding numerical value and renders the target report and the corresponding numerical value to be displayed on a display interface; in the whole process, the corresponding numerical value can be edited through the display interface, and the edited corresponding numerical value is transmitted back to the application service, so that the what you see is what you get is realized; meanwhile, the report toolkit and the display toolkit are only used for generating reports and displaying reports, and corresponding numerical values in the data source are not stored, so that the data security is further improved.
Fourth embodiment
A fourth embodiment of the present application provides a method for obtaining a report, corresponding to the first embodiment. The main implementation body of this embodiment is a display kit, and the parts of the fourth embodiment that are the same as those of the first embodiment will not be described again, specifically refer to the relevant parts of the first embodiment.
Please refer to fig. 7, which is a flowchart illustrating a method for obtaining a report according to a fourth embodiment of the present application.
The method for obtaining the report forms comprises the following steps:
step S701: and sending a second request message to the report tool packet.
In this embodiment, the second request message is used to request to obtain a target report and a corresponding value, where the target report is a report in which a mutual correspondence between the corresponding value and the field is established.
Step S702: and acquiring a target report and a corresponding numerical value provided by the report toolkit.
Step S703: rendering and presenting the target report and the corresponding numerical value on a display interface in a table form specified by the target report; and the corresponding numerical value is placed into the corresponding field of the target report according to the mutual corresponding relation between the corresponding numerical value and the field.
In this embodiment, the reporting tool package is embedded in the application service, and is configured to obtain an initial report of a data source including each field, read a corresponding value of each field from the data source provided by the application service, and correspond the corresponding value and the field to each other.
In this embodiment, in order to provide the application service with the corresponding numerical value edited by the user for the target report, the method further includes: and updating the target report and the corresponding numerical value according to the received editing and updating operation of the user on the display interface aiming at the target report and the corresponding numerical value, and obtaining the updated target report and the updated corresponding numerical value. And after the updated target report and the updated corresponding numerical value are obtained, providing the updated target report and the updated corresponding numerical value for the application service.
In this embodiment, as an implementation manner of providing the updated target report and the updated corresponding numerical value to the application service, the following steps are performed: firstly, obtaining a first request message sent by an application service; and then, aiming at the first request message, providing the updated target report and the updated corresponding numerical value for the application service.
The first request message is used for requesting to obtain an updated target report and an updated corresponding numerical value, and the updated target report is the target report in which the mutual corresponding relation between the updated corresponding numerical value and the field is established.
In this embodiment, in the method for obtaining a report, the display toolkit sends the second request message to the report toolkit, and the report toolkit obtains the initial report based on the second request message, reads the corresponding value of the field from the data source, corresponds the corresponding value and the field in the initial report to obtain the target report, and provides the target report to the display toolkit; the display tool kit receives the target report and the corresponding numerical value, and renders and displays the target report and the corresponding numerical value on a display interface; in the whole process, the corresponding numerical value can be edited through the display interface, and the edited corresponding numerical value is transmitted back to the application service, so that the what you see is what you get report is realized; meanwhile, the report toolkit and the display toolkit are only used for generating reports and displaying the reports, and do not store corresponding numerical values in the data source, so that the data safety is further improved.
Fifth embodiment
Corresponding to the method for obtaining a report provided in the second embodiment of the present application, a fifth embodiment of the present application further provides a device for obtaining a report. Since the apparatus embodiment is substantially similar to the second embodiment, the description is relatively simple, and reference may be made to the partial description of the second embodiment for relevant points. The device embodiments described below are merely illustrative.
Please refer to fig. 8, which is a diagram illustrating an apparatus for obtaining a report according to a fifth embodiment of the present application.
The apparatus 800 for obtaining a report, applied to an application service that needs to generate a report, includes:
a first request message sending unit 801, configured to send a first request message to a presentation toolkit, where the first request message is used to request to obtain an updated target report and an updated corresponding value, and the updated target report is a target report for which a mutual correspondence between the updated corresponding value and a field is established;
a receiving unit 802, configured to receive the updated target report provided by the presentation toolkit and the updated corresponding numerical value;
the display toolkit is used for receiving a target report and a corresponding numerical value from the report toolkit, rendering and presenting the report and the corresponding numerical value on a display interface in a target form, and updating the target report and the corresponding numerical value according to received editing and updating operations; the corresponding numerical value is placed into the corresponding field of the target report according to the mutual corresponding relation between the corresponding numerical value and the field;
the report toolkit is embedded in the application service and used for acquiring an initial report of a data source containing each field, reading a corresponding numerical value of each field from the data source provided by the application service, and enabling the corresponding numerical value to be corresponding to the field.
Optionally, the method further includes: an updating unit, configured to, after receiving the updated target report and the updated corresponding numerical value provided by the presentation toolkit, obtain location information of the updated corresponding numerical value in the data source based on identification information used to find a specific location of the updated corresponding numerical value in the data source;
and updating the corresponding numerical value of the data source based on the position information and the updated corresponding numerical value.
Optionally, the method further includes: and the calling unit is used for receiving calling information written by a code developer so as to call the target report and the corresponding numerical value provided by the report toolkit.
Optionally, the target form comprises: a json table format for the presentation interface to directly present.
Optionally, the reporting toolkit includes an application interface; and calling the target report and the corresponding numerical value provided by the report toolkit through the application interface.
Optionally, the method further includes: the configuration unit is used for configuring the authority management parameters and the report drop-down frame parameters aiming at the target report; the authority management of the target report is realized through the configuration of the authority management parameters; and screening out a target report corresponding to the drop-down frame parameter through the configuration of the drop-down frame parameter of the report.
Sixth embodiment
Corresponding to the method for obtaining a report provided in the third embodiment of the present application, a sixth embodiment of the present application further provides a device for obtaining a report. Since the apparatus embodiment is substantially similar to the third embodiment, the description is relatively simple, and reference may be made to the partial description of the third embodiment for relevant points. The device embodiments described below are merely illustrative.
Please refer to fig. 9, which is a schematic diagram of an apparatus for obtaining a report according to a sixth embodiment of the present application.
The apparatus 900 for obtaining reports, applied to a report toolkit embedded in an application service that needs to generate reports, includes:
a second request message obtaining unit 901, configured to obtain a second request message sent by a display kit, where the second request message is used to request to obtain a target report and a corresponding numerical value; the target report is a report which establishes the mutual corresponding relation between the corresponding numerical value and the field;
a corresponding unit 902, configured to obtain, based on the second request message, an initial report of a data source that includes each field, read a corresponding value of each field from the data source provided by the application service, and correspond the corresponding value and the field with each other;
a providing unit 903, configured to provide the target report and the corresponding numerical value to the display toolkit;
the display toolkit is used for receiving the target report and the corresponding numerical value, and rendering and presenting the target report and the corresponding numerical value on a display interface in a target form; and the corresponding numerical value is placed into the corresponding field of the target report according to the mutual corresponding relation between the corresponding numerical value and the field.
Optionally, the method further includes: the initial report obtaining unit is specifically configured to:
sending a third request message to a configuration tool kit, wherein the third request message is used for requesting to obtain the initial report;
obtaining the initial report provided by the configuration toolkit; the configuration toolkit is used for obtaining the required initial report and the data source of each field contained in the initial report.
Optionally, the configuration toolkit is configured to configure the cell parameters of the cells in the target report, so as to manage the cell parameters of the target report.
Optionally, the cell parameter at least includes one of the following parameters:
location information of the cells;
the data source identification information of the corresponding numerical value filled in the cell;
name information of the cell;
whether to provide the established corresponding numerical value in the cell and the mutual corresponding relation between the fields to option information of a data source of the application service;
option information whether to allow editing of the corresponding numerical values filled in by the cells provided to the data source;
selecting information whether to perform a list of corresponding numerical values filled in the cells;
display mode information for displaying the data of the list;
and the identification information is used for searching the specific position of the corresponding numerical value filled in the cell in the data source.
Seventh embodiment
Corresponding to the method for obtaining a report provided in the fourth embodiment of the present application, a seventh embodiment of the present application further provides a device for obtaining a report. Since the apparatus embodiment is substantially similar to the fourth embodiment, the description is relatively simple, and reference may be made to the partial description of the fourth embodiment for relevant points. The device embodiments described below are merely illustrative.
Please refer to fig. 10, which is a diagram illustrating an apparatus for obtaining a report according to a seventh embodiment of the present application.
The device 1000 for obtaining report forms, applied to a display toolkit, includes:
a second request message sending unit 1001, configured to send a second request message to a report toolkit, where the second request message is used to request to obtain a target report and a corresponding numerical value, and the target report is a report in which a mutual correspondence between the corresponding numerical value and a field is established;
a target report and corresponding numerical value obtaining unit 1002, configured to obtain the target report and the corresponding numerical value provided by the report toolkit;
a rendering unit 1003, configured to render and present the target report and the corresponding numerical value on a display interface in a table form specified by the target report; the corresponding numerical value is placed into the corresponding field of the target report according to the mutual corresponding relation between the corresponding numerical value and the field;
the report tool package is embedded in the application service and used for obtaining an initial report of a data source containing each field, reading a corresponding numerical value of each field from the data source provided by the application service, and enabling the corresponding numerical value to correspond to the field.
Optionally, the method further includes: and the update data obtaining unit is used for updating the target report and the corresponding numerical value according to the received editing and updating operation aiming at the target report and the corresponding numerical value, and obtaining the updated target report and the updated corresponding numerical value.
Optionally, the method further includes: the update data providing unit is specifically configured to:
obtaining a first request message sent by the application service, wherein the first request message is used for requesting to obtain an updated target report and an updated corresponding numerical value, and the updated target report is a target report establishing a mutual corresponding relation between the updated corresponding numerical value and a field;
and aiming at the first request message, providing the updated target report and the updated corresponding numerical value to the application service.
Eighth embodiment
Corresponding to the methods of the second to fourth embodiments of the present application, an eighth embodiment of the present application further provides an electronic device.
As shown in fig. 11, fig. 11 is a schematic view of an electronic device provided in an eighth embodiment of the present application.
In this embodiment, an alternative hardware structure of the electronic device 1100 may be as shown in fig. 11, including: at least one processor 1101, at least one memory 1102, and at least one communication bus 1105; the memory 1102 contains a program 1103 and data 1104.
The bus 1105 may be a communication device that transfers data between components within the electronic device 1100, such as an internal bus (e.g., a CPU-memory bus), an external bus (e.g., a universal serial bus port, a peripheral component interconnect express port), and so forth.
In addition, the electronic device further includes: at least one network interface 1106, and at least one peripheral interface 1107. A network interface 1106 to provide wired or wireless communication with respect to an external network 1108 (e.g., the internet, an intranet, a local area network, a mobile communications network, etc.); in some embodiments, network interface 1106 may include any number of Network Interface Controllers (NICs), radio Frequency (RF) modules, repeaters, transceivers, modems, routers, gateways, any combination of wired network adapters, wireless network adapters, bluetooth adapters, infrared adapters, near field communication ("NFC") adapters, cellular network chips, and the like.
Peripheral interface 1107 is used to connect with peripherals such as peripheral 1 (1109 in FIG. 11), peripheral 2 (1110 in FIG. 11) and peripheral 3 (1111 in FIG. 11) from the perspective of the present disclosure. Peripherals are peripheral devices that may include, but are not limited to, cursor control devices (e.g., a mouse, touchpad, or touch screen), keyboards, displays (e.g., cathode ray tube displays, liquid crystal displays). A display or light emitting diode display, a video input device (e.g., a camera or an input interface communicatively coupled to a video archive), etc.
The processor 1101 may be a CPU, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present Application.
Memory 1102 may include high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The processor 1101 calls the program and data stored in the memory 1102 to execute the report obtaining method according to the second embodiment to the fourth embodiment of the present application.
Ninth embodiment
Corresponding to the methods of the second to fourth embodiments of the present application, a ninth embodiment of the present application further provides a computer storage medium storing a computer program, which is executed by a processor to execute the methods of the second to fourth embodiments of the present application for obtaining a report.
Although the present application has been described with reference to the preferred embodiments, it is not intended to limit the present application, and those skilled in the art can make variations and modifications without departing from the spirit and scope of the present application, therefore, the scope of the present application should be determined by the appended claims.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
1. Computer-readable media, including both permanent and non-permanent, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. As defined herein, a computer-readable medium does not include non-transitory computer-readable storage media (non-transitory computer readable storage media), such as modulated data signals and carrier waves.
2. As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

Claims (18)

1. A method for obtaining report forms is applied to application services needing to generate report forms, and is characterized by comprising the following steps:
sending a first request message to a display toolkit, wherein the first request message is used for requesting to obtain an updated target report and an updated corresponding numerical value, and the updated target report is a target report establishing a mutual corresponding relation between the updated corresponding numerical value and a field;
receiving the updated target report and the updated corresponding numerical value provided by the display toolkit;
the display toolkit is used for receiving a target report and a corresponding numerical value from the report toolkit, rendering and presenting the report and the corresponding numerical value on a display interface in a target form, and updating the target report and the corresponding numerical value according to received editing and updating operations; the corresponding numerical value is placed into the corresponding field of the target report according to the mutual corresponding relation between the corresponding numerical value and the field;
the report tool package is embedded in the application service and used for obtaining an initial report of a data source containing each field, reading a corresponding numerical value of each field from the data source provided by the application service, and enabling the corresponding numerical value to correspond to the field.
2. The method for obtaining a report form according to claim 1, wherein after receiving the updated target report form and the updated corresponding numerical value provided by the presentation toolkit, obtaining location information of the updated corresponding numerical value in the data source based on the identification information for finding a specific location of the updated corresponding numerical value in the data source;
and updating the corresponding numerical value of the data source based on the position information and the updated corresponding numerical value.
3. The method for obtaining reports of claim 1 further comprising: and receiving calling information written by a code developer so as to call the target report and the corresponding numerical value provided by the report toolkit.
4. The method of obtaining a report of claim 1 wherein the target form comprises: a json table format for the presentation interface to directly present.
5. The method for obtaining a report of claim 3 wherein the reporting toolkit comprises an application interface; and calling the target report and the corresponding numerical value provided by the report toolkit through the application interface.
6. The method for obtaining a report of claim 5 further comprising: configuring authority management parameters and report drop-down frame parameters aiming at the target report; the authority management of the target report is realized through the configuration of the authority management parameters; and screening out a target report corresponding to the drop-down frame parameter through the configuration of the drop-down frame parameter of the report.
7. A method for obtaining report forms is applied to a report form tool kit embedded in an application service which needs to generate report forms, and is characterized by comprising the following steps:
acquiring a second request message sent by a display tool kit, wherein the second request message is used for requesting to acquire a target report and a corresponding numerical value; the target report is a report establishing the mutual corresponding relation between the corresponding numerical value and the field;
based on the second request message, acquiring an initial report of a data source containing each field, reading a corresponding numerical value of each field from the data source provided by the application service, and corresponding the corresponding numerical value and the field to each other;
providing the target report and the corresponding numerical value to the display tool kit;
the display toolkit is used for receiving the target report and the corresponding numerical value, and rendering and presenting the target report and the corresponding numerical value on a display interface in a target form; and the corresponding numerical value is placed into the corresponding field of the target report according to the mutual corresponding relation between the corresponding numerical value and the field.
8. The method of obtaining a report of claim 7 further comprising:
sending a third request message to a configuration tool kit, wherein the third request message is used for requesting to obtain the initial report;
obtaining the initial report provided by the configuration toolkit; the configuration toolkit is used for obtaining the required initial report and the data source of each field contained in the initial report.
9. The method for obtaining a report according to the claim 8, wherein the configuration toolkit is used for configuring the cell parameters of the cell in the target report to realize the management of the cell parameters of the target report.
10. The method for obtaining a report of claim 9 wherein the cell parameters include at least one of the following parameters:
location information of the cells;
the data source identification information of the corresponding numerical value filled in the cell;
name information of the cell;
whether to provide the established corresponding numerical value in the cell and the mutual corresponding relation between the fields to option information of a data source of the application service;
option information whether to allow editing of the corresponding numerical values filled in by the cells provided to the data source;
the option information of whether to carry out a list on the corresponding numerical value filled in the cell;
display mode information for displaying the data of the list;
and the identification information is used for searching the specific position of the corresponding numerical value filled in the cell in the data source.
11. A method for obtaining report forms is applied to a display toolkit and is characterized by comprising the following steps:
sending a second request message to a report tool kit, wherein the second request message is used for requesting to obtain a target report and a corresponding numerical value, and the target report is a report in which the mutual corresponding relation between the corresponding numerical value and the field is established;
obtaining the target report and the corresponding numerical value provided by the report toolkit;
rendering and presenting the target report and the corresponding numerical value on a display interface in a table form specified by the target report; the corresponding numerical value is placed into the corresponding field of the target report according to the mutual corresponding relation between the corresponding numerical value and the field;
the report tool package is embedded in the application service and used for obtaining an initial report of a data source containing each field, reading a corresponding numerical value of each field from the data source provided by the application service, and enabling the corresponding numerical value to correspond to the field.
12. The method of obtaining a report of claim 11 further comprising: and updating the target report and the corresponding numerical value according to the received editing and updating operation aiming at the target report and the corresponding numerical value to obtain the updated target report and the updated corresponding numerical value.
13. The method of obtaining a report of claim 12 further comprising:
obtaining a first request message sent by the application service, wherein the first request message is used for requesting to obtain an updated target report and an updated corresponding numerical value, and the updated target report is a target report establishing a mutual corresponding relation between the updated corresponding numerical value and a field;
and aiming at the first request message, providing the updated target report and the updated corresponding numerical value to the application service.
14. An apparatus for obtaining a report, applied to an application service requiring report generation, comprising:
a first request message sending unit, configured to send a first request message to a display toolkit, where the first request message is used to request to obtain an updated target report and an updated corresponding value, and the updated target report is a target report in which a mutual correspondence relationship between the updated corresponding value and a field is established;
the receiving unit is used for receiving the updated target report form provided by the display toolkit and the updated corresponding numerical value;
the display toolkit is used for receiving a target report and a corresponding numerical value from the report toolkit, rendering and presenting the report and the corresponding numerical value on a display interface in a target form, and updating the target report and the corresponding numerical value according to received editing and updating operations; the corresponding numerical value is placed into the corresponding field of the target report according to the mutual corresponding relation between the corresponding numerical value and the field;
the report tool package is embedded in the application service and used for obtaining an initial report of a data source containing each field, reading a corresponding numerical value of each field from the data source provided by the application service, and enabling the corresponding numerical value to correspond to the field.
15. An apparatus for obtaining report applied to a report toolkit embedded in an application service that needs to generate a report, comprising:
a second request message obtaining unit, configured to obtain a second request message sent by a display toolkit, where the second request message is used to request to obtain a target report and a corresponding numerical value; the target report is a report establishing the mutual corresponding relation between the corresponding numerical value and the field;
a corresponding unit, configured to obtain an initial report including a data source of each field based on the second request message, read a corresponding value of each field from the data source provided by the application service, and correspond the corresponding value and the field to each other;
the providing unit is used for providing the target report and the corresponding numerical value for the display tool kit;
the display toolkit is used for receiving the target report and the corresponding numerical value, and rendering and presenting the target report and the corresponding numerical value on a display interface in a target form; and the corresponding numerical value is placed into the corresponding field of the target report according to the mutual corresponding relation between the corresponding numerical value and the field.
16. A device for obtaining report forms is applied to a display tool kit and is characterized by comprising:
a second request message sending unit, configured to send a second request message to the report toolkit, where the second request message is used to request to obtain a target report and a corresponding numerical value, and the target report is a report in which a mutual correspondence between the corresponding numerical value and a field is established;
a target report and corresponding value obtaining unit, configured to obtain the target report and the corresponding value provided by the report toolkit;
the rendering unit is used for rendering and presenting the target report and the corresponding numerical value on a display interface in a table form specified by the target report; the corresponding numerical value is placed into the corresponding field of the target report according to the mutual corresponding relation between the corresponding numerical value and the field;
the report toolkit is embedded in the application service and used for acquiring an initial report of a data source containing each field, reading a corresponding numerical value of each field from the data source provided by the application service, and enabling the corresponding numerical value to correspond to the field.
17. An electronic device, comprising:
a processor;
a memory for storing a computer program for execution by the processor to perform the method of any one of claims 1 to 13.
18. A computer storage medium, characterized in that it stores a computer program that is executed by a processor to perform the method of any one of claims 1-13.
CN202210904834.XA 2022-07-29 2022-07-29 Method and device for obtaining report, electronic equipment and computer storage medium Pending CN115409002A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210904834.XA CN115409002A (en) 2022-07-29 2022-07-29 Method and device for obtaining report, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210904834.XA CN115409002A (en) 2022-07-29 2022-07-29 Method and device for obtaining report, electronic equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN115409002A true CN115409002A (en) 2022-11-29

Family

ID=84158693

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210904834.XA Pending CN115409002A (en) 2022-07-29 2022-07-29 Method and device for obtaining report, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN115409002A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115878647A (en) * 2023-02-08 2023-03-31 北京全路通信信号研究设计院集团有限公司 Data processing method and device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115878647A (en) * 2023-02-08 2023-03-31 北京全路通信信号研究设计院集团有限公司 Data processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109634598A (en) A kind of page display method, device, equipment and storage medium
CN111126019B (en) Report generation method and device based on mode customization and electronic equipment
WO2020192141A1 (en) Method and device for simulating interface, computer apparatus, and storage medium
EP3812917A1 (en) Data structure reading method and apparatus, data structure updating method and apparatus, and electronic device
CN112860247B (en) Custom generation method, device, equipment and medium of model component
CN114036425A (en) Page access method, client, server and system
CN111381820A (en) Method and device for automatically generating API based on GUI
WO2023051125A1 (en) Structured data version management method, apparatus, and related device
CN111522840B (en) Label configuration method, device, equipment and computer readable storage medium
CN115840567A (en) Application editing method and related equipment
US20170351741A1 (en) Management of data sources in database system
CN115409002A (en) Method and device for obtaining report, electronic equipment and computer storage medium
US20240037325A1 (en) Ability to add non-direct ancestor columns in child spreadsheets
CN115408009A (en) Code file generation method, device, equipment and storage medium
US11860889B2 (en) Cascading data impact visualization tool
CN115600569A (en) Information processing method, information processing device, electronic equipment and storage medium
CN109634500B (en) User data filling method and device, terminal equipment and storage medium
CN113254455A (en) Dynamic configuration method and device of database, computer equipment and storage medium
US8910183B2 (en) Access to context information in a heterogeneous application environment
CN111459907A (en) Method, system and storage medium for configuring master data through model
CN105574056A (en) Abnormal problem positioning method and apparatus
WO2024077937A1 (en) Data generation method and apparatus, electronic device, and storage medium
US11086617B2 (en) Automated architecture modeling for integrated enterprise scenarios
CN110750248B (en) Method and device for transmitting extension information of existing component
US20240095279A1 (en) Acceleration of privilege graph traversal

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