CN108132945A - For generating the method and apparatus of report - Google Patents

For generating the method and apparatus of report Download PDF

Info

Publication number
CN108132945A
CN108132945A CN201611089500.2A CN201611089500A CN108132945A CN 108132945 A CN108132945 A CN 108132945A CN 201611089500 A CN201611089500 A CN 201611089500A CN 108132945 A CN108132945 A CN 108132945A
Authority
CN
China
Prior art keywords
pattern
data
report
shows
page template
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611089500.2A
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.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201611089500.2A priority Critical patent/CN108132945A/en
Publication of CN108132945A publication Critical patent/CN108132945A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/9038Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

This application discloses for generating the method and apparatus of report.One specific embodiment of the method includes:The report that detection shows terminal shows pattern handover operation;When detecting that the target for determining to show pattern handover operation shows pattern when showing pattern handover operation;It obtains and asks to server transmission data, which includes the data source for showing style information and the pre-saving configuration parameter that target shows pattern;Receive the format data that server returns, format data be server from the corresponding data source of data source configuration parameter obtain report data after, by acquired report data, what is be converted into shows the format data of pattern matching with target;Using showing pattern corresponding Page Template displaying format data, the report after switching with generation in pre-stored Page Template set with target.Used time when showing pattern this embodiment, reduces the report switching difference to same data source.

Description

For generating the method and apparatus of report
Technical field
This application involves field of computer technology, and in particular to Internet technical field more particularly, to generates report Method and apparatus.
Background technology
Existing Visual Report Forms system shows form needing the Visual Report Forms switching to the data of same data source When, user is needed to return to query page and reconfigure and shows form configuration item and inquires again, could be generated with the exhibition after switching Existing form shows the Visual Report Forms of same data.
However, existing report generation mode, when switching different ways of presentation, needs user to carry out page layout switch, It it may also be desirable to re-start some configuration items configuration, need to occupy the more operating time, cause user's operation inconvenient.This Outside, uniform data can be also difficult on displaying interface, so as to increase maintenance cost.
Invention content
The purpose of the application is to propose a kind of improved method and apparatus for generating report, to solve background above The technical issues of technology segment is mentioned.
In a first aspect, this application provides a kind of method for generating report, this method includes:Detection is to the exhibition of terminal institute Existing report shows pattern handover operation;When detect show pattern handover operation when, determine to show pattern handover operation Target shows pattern;It obtains and asks to server transmission data, what data acquisition request included that target shows pattern shows pattern Information and the data source configuration parameter pre-saved;The format data that server returns is received, format data is service Device is converted into after the corresponding data source acquisition report data of data source configuration parameter, by acquired report data and target Show the format data of pattern matching;Using showing the corresponding page of pattern in pre-stored Page Template set with target Template shows format data, the report after being switched with generation.
In some embodiments, it is above-mentioned using showing the corresponding page of pattern in pre-stored Page Template set with target Face die plate shows format data, including:Format data is converted in Page Template using JS engines and shows control pair The data format answered, to be shown by showing control.
In some embodiments, the above method further includes:Receive server transmission shows pattern more newer command, shows sample Formula more newer command includes the fresh information to Page Template set;Update shows pattern, and according to fresh information more for switching Page Template in new page template set.
Second aspect, this application provides another to be used for the method for generating report, and this method includes:Terminal is received to send Data acquisition request, wherein, data acquisition request is terminal shows pattern switching in response to the report showed to terminal Operate and send out, data acquisition request include show pattern handover operation target show pattern show style information and The data source configuration parameter that terminal pre-saves;Report data is obtained from the corresponding data source of data source configuration parameter;It will be obtained The report data taken is converted into the format data for showing the form matches with target;Format data is sent to terminal, so that Terminal using showing pattern corresponding Page Template displaying format data in pre-stored Page Template set with target and Generate report.
In some embodiments, the above method further includes:The fresh information included to Page Template set is sent to terminal Show pattern more newer command so that terminal update for switching show pattern and according to fresh information update Page Template set In Page Template.
The third aspect, this application provides a kind of for generating the device of report, which includes:Detection unit is used for The report that detection shows terminal shows pattern handover operation;Determination unit detects that showing pattern switching grasps for working as When making, the target for determining to show pattern handover operation shows pattern;Transmitting element, please for being obtained to server transmission data It asks, data acquisition request includes the data source for showing style information and the pre-saving configuration parameter that target shows pattern;It connects Unit is received, for receiving the format data of server return, format data is that server is corresponded to from data source configuration parameter Data source obtain report data after, the formatting number for showing pattern matching with target that is converted into acquired report data According to;Display unit, for being shown using showing the corresponding Page Template of pattern in pre-stored Page Template set with target Format data, the report after being switched with generation.
In some embodiments, above-mentioned display unit is further used for:Format data is converted into page using JS engines Show the corresponding data format of control in face die plate, to be shown by showing control.
In some embodiments, above device further includes Page Template updating unit, and Page Template updating unit is used for:It connects That receives server transmission shows pattern more newer command, shows pattern more newer command and includes the fresh information to Page Template set; Update supplies the pattern that shows of switching, and updates the Page Template in Page Template set according to fresh information.
The third aspect, this application provides a kind of for generating the device of report, which includes:Single cloud is received, is used for The data acquisition request that terminal is sent is received, wherein, data acquisition request is terminal in response to the report showed to terminal Show pattern handover operation and send out, the target that data acquisition request includes showing pattern handover operation shows showing for pattern The data source configuration parameter that style information and terminal pre-save;Acquiring unit, for corresponding from data source configuration parameter Data source obtains report data;Converting unit, for acquired report data to be converted into showing the form matches with target Format data;Transmitting element, for format data to be sent to terminal, so that terminal uses pre-stored Page Template Show with target the corresponding Page Template displaying format data of pattern in set and generate report.
In some embodiments, above device further includes:Updating unit includes for being sent to terminal to Page Template collection The fresh information of conjunction shows pattern more newer command, so that terminal update showing pattern and being updated according to fresh information for switching Page Template in Page Template set.
The application provide for the method and apparatus that generate report, by the processing for passing through server realization data respectively And show, and terminal can be supported to carry out same data source the switching for showing pattern by different Page Templates, make User different needs the less operating time switching when showing pattern.
Description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that this application can be applied to exemplary system architecture figures therein;
Fig. 2 is the flow chart for being used to generate one embodiment of the method for report according to the application;
Fig. 3 a and 3b are the schematic diagrames for being used to generate the application scenarios of the method for report according to the present embodiment;
Fig. 4 is the flow chart for being used to generate another embodiment of the method for report according to the application;
Fig. 5 is the structure diagram for being used to generate one embodiment of the device of report according to the application;
Fig. 6 is the structure diagram for being used to generate another embodiment of the device of report according to the application;
Fig. 7 is adapted for the structural representation for realizing the terminal device of the embodiment of the present application or the computer system of server Figure.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention rather than the restriction to the invention.It also should be noted that in order to Convenient for description, illustrated only in attached drawing and invent relevant part with related.
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 shows the exemplary system for being used to generate the embodiment of the method or apparatus of report that can apply the application Framework 100.
As shown in Figure 1, system architecture 100 can include terminal device 101,102,103, network 104 and server 105. Network 104 between terminal device 101,102,103 and server 105 provide communication link medium.Network 104 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be interacted with using terminal equipment 101,102,103 by network 104 with server 105, to receive or send out Send message etc..Various telecommunication customer end applications can be installed, such as web browser should on terminal device 101,102,103 With, diagrammatic representation class application etc..
Terminal device 101,102,103 can be the various electronic equipments with display screen and supported web page browsing, wrap It includes but is not limited to smart mobile phone, tablet computer, E-book reader, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio level 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio level 4) it is player, on knee portable Computer and desktop computer etc..
Server 105 can be to provide the server of various services, such as to being shown on terminal device 101,102,103 Information provides the background server that data are supported.Background server can ask the report data that receives etc. to analyze etc. Processing, and handling result (such as report data) is fed back into terminal device, so that terminal device can generate report.
It should be noted that the method for being used to generate report that the application Fig. 2 corresponding embodiments are provided is generally by terminal Equipment 101,102,103 performs, and correspondingly, what Fig. 5 corresponding embodiments were provided is generally positioned at for generating the device of report In terminal 101,102,103;The method for being used to generate report that the application Fig. 4 corresponding embodiments are provided is generally by server 105 perform, and correspondingly, what Fig. 6 corresponding embodiments were provided is generally positioned at for generating the device of report in server 105.
It should be understood that the number of the terminal device, network and server in Fig. 1 is only schematical.According to realization need Will, can have any number of terminal device, network and server.
With continued reference to Fig. 2, the flow for being used to generate one embodiment of the method for report according to the application is shown 200.This is used for the method for generating report, includes the following steps:
Step 201, that detects the report that is showed to terminal shows pattern handover operation.
In the present embodiment, for generating electronic equipment (such as the terminal shown in FIG. 1 of the method for report operation thereon Equipment) can detect the report that user shows terminal show pattern handover operation.The displaying pattern handover operation can be with It is that user triggers the page operation of the current page for showing report.For example, there can be multiple icons on the page, each Icon can correspond to one kind and show pattern, and user can click each icon.Electronic equipment can be by detecting That the report showed to terminal is detected to the mode of the clicking operation of icon shows pattern handover operation.
Step 202, when detecting that the target for determining to show pattern handover operation shows sample when showing pattern handover operation Formula.
In the present embodiment, when opportunity step 202 detects to show pattern handover operation, electronic equipment can determine to open up The target of existing pattern handover operation shows pattern.By taking the click to icon as an example, since each icon can correspond to a kind of exhibition Existing pattern, electronic equipment can show sample according to the target that the icon that clicking operation is clicked determines to show pattern handover operation Formula.
Step 203, it obtains and asks to server transmission data.
In the present embodiment, it is determined for generating the electronic equipment of the method for report operation thereon based on step 202 After target shows pattern, electronic equipment can be obtained to server transmission data and be asked.Wherein, which includes mesh Mark shows the data source for showing style information and the pre-saving configuration parameter of pattern.Data source configuration parameter can be electricity What sub- equipment was preserved previously according to report query input by user and when showing condition generation report.
Step 204, the format data that server returns is received.
In the present embodiment, based on step 203, after server transmission data obtains request, server can root first Report data is obtained according to from the corresponding data source of data source configuration parameter.Later, server can be by acquired report data What is be converted into shows the format data of pattern matching with target and returns to electronic equipment.In this way, electronic equipment can be from clothes Business device receives the format data.
Step 205, it is shown using showing the corresponding Page Template of pattern in pre-stored Page Template set with target Above-mentioned format data, the report after being switched with generation.
In the present embodiment, electronic equipment can prestore Page Template set.Wherein, in memory page template set Each Page Template can correspond respectively to different show pattern.Format data and base are being obtained based on step 204 After step 202 determines that target shows pattern, electronic equipment can determine to show sample with target from memory page template set Formula shows above-mentioned format data to coping with Page Template, and using the Page Template, so as to generate the report after switching.
In some optional realization methods of the present embodiment, step 205 may further include:Using JS engines by lattice Formula data, which are converted in Page Template, shows the corresponding data format of control, to be shown by showing control.At this It can include one or more for show the controls that show of information in realization method, in Page Template, electronic equipment can be When showing format data using Page Template, using JS (JAVASCRIPT) engines by the data of each section in format data Be converted into respectively it is each show the corresponding data format of control, it is corresponding visual so as to be gone out by these control exposures Change content.JavaScript is a kind of literal translation formula script, built-in support type.JavaScript engine is JavaScript The interpreter of language is a part for browser, is widely used in the script of client, can be used for increasing dynamic to webpage Function.
In some optional realization methods of the present embodiment, the above method further includes:Receive showing for server transmission Pattern more newer command shows pattern more newer command and includes the fresh information to Page Template set;Update shows sample for switching Formula, and the Page Template in Page Template set is updated according to fresh information.In the realization method, electronic equipment can be to page Face die plate set is updated, so that accordingly being updated for the pattern that shows of user's selection.
In some optional realization methods of the present embodiment, the above method further includes:Data source is matched according to receiving The update request of parameter is put, updates the data source configuration parameter.In the realization method, user can to data source be configured parameter into Row update, to adjust the data source of report institute display data.
It is the application scenarios for being used to generate the method for report according to the present embodiment with continued reference to Fig. 3 a and 3b, Fig. 3 a and 3b A schematic diagram.As shown in Figure 3a, terminal can generate ring ratio according to the report query that user pre-enters and formation condition The report of report style.At this point, user can show pattern update behaviour by clicking " time report " or " view mode " initiation Make.By taking user clicks " view mode " as an example, the target for showing pattern update operation at this time shows pattern for view mode, terminal Equipment can be sent to server includes the data acquisition request that the target shows pattern and data source configuration parameter;Later, The corresponding data source of parameter can be configured from data source and obtain report data and processing is formatted to report data for server, To be processed into format data matched with view mode and return to terminal;Terminal can pass through the corresponding page mould of view mode Plate shows the format data, so as to generate the view mode report after switching as shown in Figure 3b.
The method that above-described embodiment of the application provides by realizing the processing of data by server respectively and showing, And terminal can be supported to carry out same data source the switching for showing pattern by different Page Templates so that user is cutting Changing different needs the less operating time when showing pattern.
With further reference to Fig. 4, it illustrates for generating the flow 400 of another embodiment of the method for report.The use In the flow 400 of the method for generation report, include the following steps:
Step 401, the data acquisition request that terminal is sent is received.
In the present embodiment, electronic equipment (such as Fig. 1 institutes of data acquisition request operation that terminal is sent thereon are received The server shown) can the terminal of report browsing be carried out using it from user by wired connection mode or radio connection Receive data acquisition request.Wherein, which can be in response to show pattern handover operation in the report for showing terminal And data acquisition request is sent out, what the target which includes showing pattern handover operation showed pattern shows pattern The data source configuration parameter that information and terminal pre-save.
Step 402, report data is obtained from the corresponding data source of data source configuration parameter.
In the present embodiment, the data source configuration parameter in the data acquisition request received based on step 401, electronics are set The standby corresponding data source of parameter that can be configured from data source obtains report data.
Step 403, acquired report data is converted into the format data for showing the form matches with target.
In the present embodiment, show style information, electronic equipment in the data acquisition request received based on step 401 It can determine that target shows the data format corresponding to pattern, so as to be formatted processing to acquired data, from And it is converted into the format data for showing the form matches with target.
Step 404, format data is sent to terminal so that terminal using in pre-stored Page Template set with Target shows the corresponding Page Template displaying format data of pattern and generates report.
In the present embodiment, the format data being converted into based on step 403, electronic equipment can be by the formatting numbers According to being sent to terminal.Page Template set can be previously stored in terminal, each Page Template in the Page Template set It corresponds to respectively and different shows pattern.In this way, terminal can determine to show pattern with target from memory page template set Above-mentioned format data is shown to coping with Page Template, and using the Page Template, so as to generate the report after switching.
In some optional realization methods of the present embodiment, the above method further includes:It sends and includes to page mould to terminal The fresh information of plate set shows pattern more newer command, so that terminal update shows pattern and according to fresh information for switching Update the Page Template in Page Template set.
The method that above-described embodiment of the application provides is by realizing the processing of data by server and passing through terminal Data are showed, and terminal can realize that generating difference to same data source shows pattern by different Page Templates Report so that user different needs the less operating time switching when showing pattern.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, this application provides one kind for generating report One embodiment of the device of table, the device embodiment is corresponding with embodiment of the method shown in Fig. 2, which can specifically answer For in various terminal equipment.
Include as shown in figure 5, the present embodiment is described for generating the device 500 of report:Detection unit 501 determines Unit 502, transmitting element 503, receiving unit 504 and display unit 505.Wherein, detection unit 501 is used to detect to terminal institute The report showed shows pattern handover operation;Determination unit 502 be used for when detect show pattern handover operation when, determine exhibition The target of existing pattern handover operation shows pattern;Transmitting element 503 is used to obtain to server transmission data and ask, data acquisition Request includes the data source for showing style information and the pre-saving configuration parameter that target shows pattern;Receiving unit 504 is used In the format data for receiving server return, format data is that server is obtained from the corresponding data source of data source configuration parameter After taking report data, the format data for showing pattern matching with target that is converted into acquired report data;And it generates Unit 505 is used to format using showing the displaying of pattern corresponding Page Template in pre-stored Page Template set with target Data, the report after being switched with generation.
In the present embodiment, for generating the detection unit 501 of the device 500 of report, determination unit 502, transmitting element 503rd, the specific processing of receiving unit 504 and display unit 505 can with the step 201 of 2 corresponding embodiment of reference chart, step 202, Step 203, step 204 and step 205, which is not described herein again.
In some optional realization methods of the present embodiment, display unit 505 is further used for:Using JS engines by form Change data, which are converted in Page Template, shows the corresponding data format of control, to be shown by showing control.The realization The specific processing of mode can be with corresponding realization method in 2 corresponding embodiment of reference chart, and which is not described herein again.
In some optional realization methods of the present embodiment, device 500 further includes Page Template updating unit (not shown), Page Template updating unit is used for:Receive server send show pattern more newer command, show pattern more newer command include pair The fresh information of Page Template set;Update supplies the pattern that shows of switching, and is updated in Page Template set according to fresh information Page Template, which is not described herein again.
In some optional realization methods of the present embodiment, device 500 further includes data source updating unit (not shown), number It is used for according to source updating unit:The update of data source configuration parameter is asked according to what is received, updates the data source configuration parameter.It should The specific processing of realization method can be with corresponding realization method in 2 corresponding embodiment of reference chart, and which is not described herein again.
With further reference to Fig. 6, as the realization to method shown in above-mentioned each figure, this application provides one kind for generating report One embodiment of the device of table, the device embodiment is corresponding with embodiment of the method shown in Fig. 4, which can specifically answer For in various servers.
Include as shown in fig. 6, the present embodiment is described for generating the device 600 of report:Receiving unit 601 obtains Unit 602, converting unit 603 and transmitting element 604.Wherein, receiving unit 601 please for receiving the data acquisition of terminal transmission It asks, wherein, data acquisition request is that terminal is sent out in response to the showing pattern handover operation of report showed to terminal, Data acquisition request include show pattern handover operation target show pattern show style information and terminal pre-saves Data source configuration parameter;Acquiring unit 602 is used to obtain report data from the corresponding data source of data source configuration parameter;Conversion Unit 603 is used to for acquired report data to be converted into the format data for showing the form matches with target;Converting unit 604 For acquired report data to be converted into the format data for showing the form matches with target;And transmitting element 605 is used for Format data is sent to terminal, so that terminal is corresponding using pattern is showed with target in pre-stored Page Template set Page Template displaying format data and generate report.
In the present embodiment, for generating the receiving unit 601 of the device 600 of report, acquiring unit 602, converting unit 603 and transmitting element 604 can be with step 401, step 402, step 403 and the step 404 of 4 corresponding embodiment of reference chart, this In repeat no more.
In some optional realization methods of the present embodiment, device 600 further includes:Updating unit (not shown), for Terminal, which is sent, to be included showing pattern more newer command to the fresh information of Page Template set, so that exhibition of the terminal update for switching Existing pattern simultaneously updates the Page Template in Page Template set according to fresh information.
Below with reference to Fig. 7, it illustrates suitable for being used for realizing the calculating of the terminal device of the embodiment of the present application or server The structure diagram of machine system 700.
As shown in fig. 7, computer system 700 includes central processing unit (CPU) 701, it can be read-only according to being stored in Program in memory (ROM) 702 or be loaded into program in random access storage device (RAM) 703 from storage section 708 and Perform various appropriate actions and processing.In RAM 703, also it is stored with system 700 and operates required various programs and data. CPU 701, ROM 702 and RAM 703 are connected with each other by bus 704.Input/output (I/O) interface 705 is also connected to always Line 704.
I/O interfaces 705 are connected to lower component:Importation 706 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 707 of spool (CRT), liquid crystal display (LCD) etc. and loud speaker etc.;Storage section 708 including hard disk etc.; And the communications portion 709 of the network interface card including LAN card, modem etc..Communications portion 709 via such as because The network of spy's net performs communication process.Driver 710 is also according to needing to be connected to I/O interfaces 705.Detachable media 711, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on driver 710, as needed in order to be read from thereon Computer program be mounted into storage section 708 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product, it is machine readable including being tangibly embodied in Computer program on medium, the computer program are included for the program code of the method shown in execution flow chart.In this way Embodiment in, which can be downloaded and installed from network by communications portion 709 and/or from detachable Medium 711 is mounted.
Flow chart and block diagram in attached drawing, it is illustrated that according to the system of the various embodiments of the application, method and computer journey Architectural framework in the cards, function and the operation of sequence product.In this regard, each box in flow chart or block diagram can generation The part of one module of table, program segment or code, the part of the module, program segment or code include one or more use In the executable instruction of logic function as defined in realization.It should also be noted that it in some implementations as replacements, is marked in box The function of note can also be occurred with being different from the sequence marked in attached drawing.For example, two boxes succeedingly represented are actually It can perform substantially in parallel, they can also be performed in the opposite order sometimes, this is depended on the functions involved.Also it to note Meaning, the combination of each box in block diagram and/or flow chart and the box in block diagram and/or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit can also be set in the processor, for example, can be described as:A kind of processor packet Include detection unit, determination unit, transmitting element, receiving unit and display unit.Wherein, the title of these units is in certain situation Under do not form restriction to the unit in itself, for example, detection unit is also described as " detecting the report for showing terminal The unit for showing pattern handover operation of table ".
As on the other hand, present invention also provides a kind of nonvolatile computer storage media, the non-volatile calculating Machine storage medium can be nonvolatile computer storage media included in device described in above-described embodiment;Can also be Individualism, without the nonvolatile computer storage media in supplying terminal.Above-mentioned nonvolatile computer storage media is deposited One or more program is contained, when one or more of programs are performed by an equipment so that the equipment:Detection The report showed to terminal shows pattern handover operation;When detect it is described show pattern handover operation when, determine described The target for showing pattern handover operation shows pattern;It obtains and asks to server transmission data, the data acquisition request includes The target shows the data source for showing style information and the pre-saving configuration parameter of pattern;The server is received to return Format data, the format data is the server obtains report number from the corresponding data source of data source configuration parameter According to it is rear, by acquired report data, what is be converted into shows the format data of pattern matching with the target;Using depositing in advance Show the pattern corresponding Page Template displaying format data in the Page Template set of storage with the target, cut with generation Report after changing.Alternatively, above-mentioned nonvolatile computer storage media is stored with one or more program, when one or When the multiple programs of person are performed by an equipment so that the equipment:The data acquisition request that terminal is sent is received, wherein, it is described Data acquisition request is that the terminal is sent out in response to the showing pattern handover operation of report showed to the terminal, What the data acquisition request included that the target for showing pattern handover operation shows pattern shows style information and described The data source configuration parameter that terminal pre-saves;Report data is obtained from the corresponding data source of data source configuration parameter;It will Acquired report data is converted into the format data for showing the form matches with the target;The format data is sent To the terminal, so that the terminal with the target using showing the corresponding page of pattern in pre-stored Page Template set Face die plate shows the format data and generates report.
The preferred embodiment and the explanation to institute's application technology principle that above description is only the application.People in the art Member should be appreciated that invention scope involved in the application, however it is not limited to the technology that the specific combination of above-mentioned technical characteristic forms Scheme, while should also cover in the case where not departing from the inventive concept, it is carried out by above-mentioned technical characteristic or its equivalent feature The other technical solutions for arbitrarily combining and being formed.Such as features described above has similar work(with (but not limited to) disclosed herein The technical solution that the technical characteristic of energy is replaced mutually and formed.

Claims (10)

  1. A kind of 1. method for generating report, which is characterized in that the method includes:
    The report that detection shows terminal shows pattern handover operation;
    When detect it is described show pattern handover operation when, determine that the target for showing pattern handover operation shows pattern;
    It obtains and asks to server transmission data, the pattern that shows that the data acquisition request shows pattern including the target is believed The data source configuration parameter for ceasing and pre-saving;
    The format data that the server returns is received, the format data is that parameter is configured from data source in the server Corresponding data source obtain report data after, acquired report data is converted into show pattern matching with the target Format data;
    The form is shown using the corresponding Page Template of pattern is showed in pre-stored Page Template set with the target Change data, the report after switching with generation.
  2. 2. according to the method described in claim 1, it is characterized in that, it is described using in pre-stored Page Template set with institute It states target and shows the pattern corresponding Page Template displaying format data, including:
    The format data is converted in the Page Template using JS engines and shows the corresponding data format of control, with It is shown by the control that shows.
  3. 3. according to the method described in claim 1, it is characterized in that, the method further includes:
    What reception server was sent shows pattern more newer command, described to show pattern more newer command including to the Page Template collection The fresh information of conjunction;
    Update supplies the pattern that shows of switching, and updates the Page Template in the Page Template set according to the fresh information.
  4. A kind of 4. method for generating report, which is characterized in that the method includes:
    The data acquisition request that terminal is sent is received, wherein, the data acquisition request is the terminal in response to the end The showed report in end shows pattern handover operation and sends out, and the data acquisition request includes the pattern that shows and switches The target of operation shows the data source configuration parameter for showing style information and the terminal pre-saves of pattern;
    Report data is obtained from the corresponding data source of data source configuration parameter;
    Acquired report data is converted into the format data for showing the form matches with the target;
    The format data is sent to the terminal so that the terminal using in pre-stored Page Template set with The target shows the corresponding Page Template of pattern and shows the format data and generate report.
  5. 5. according to the method described in claim 4, it is characterized in that, the method further includes:
    It is sent to the terminal and includes showing pattern more newer command to the fresh information of the Page Template set, so that described Terminal update shows pattern and the Page Template in the fresh information update Page Template set for switching.
  6. 6. a kind of device for being used to generate report, which is characterized in that described device includes:
    Detection unit shows pattern handover operation for detect the report showed to terminal;
    Determination unit, for when detect it is described show pattern handover operation when, determine the mesh for showing pattern handover operation Mark shows pattern;
    Transmitting element, is asked for being obtained to server transmission data, and the data acquisition request shows sample including the target The data source for showing style information and the pre-saving configuration parameter of formula;
    Receiving unit, for receiving the format data that the server returns, the format data be the server from The corresponding data source of data source configuration parameter obtain report data after, it is that acquired report data is converted into the target Show the format data of pattern matching;
    Display unit, for using showing the corresponding Page Template of pattern in pre-stored Page Template set with the target Show the format data, the report after switching with generation.
  7. 7. device according to claim 6, which is characterized in that the display unit is further used for:
    The format data is converted in the Page Template using JS engines and shows the corresponding data format of control, with It is shown by the control that shows.
  8. 8. device according to claim 6, which is characterized in that described device further includes Page Template updating unit, described Page Template updating unit is used for:
    What reception server was sent shows pattern more newer command, described to show pattern more newer command including to the Page Template collection The fresh information of conjunction;
    Update supplies the pattern that shows of switching, and updates the Page Template in the Page Template set according to the fresh information.
  9. 9. a kind of device for being used to generate report, which is characterized in that described device includes:
    Single cloud is received, for receiving the data acquisition request of terminal transmission, wherein, the data acquisition request is that the terminal is rung The report that Ying Yu shows the terminal shows pattern handover operation and sends out, and the data acquisition request includes described The target for showing pattern handover operation shows the data source configuration for showing style information and the terminal pre-saves of pattern Parameter;
    Acquiring unit, for obtaining report data from the corresponding data source of data source configuration parameter;
    Converting unit, for acquired report data to be converted into the format data for showing the form matches with the target;
    Transmitting element, for the format data to be sent to the terminal, so that the terminal uses pre-stored page Show the pattern corresponding Page Template displaying format data with the target in face die plate set and generate report.
  10. 10. device according to claim 9, which is characterized in that described device further includes:
    Updating unit includes showing pattern update to the fresh information of the Page Template set for sending to the terminal Order, so that terminal update shows pattern and according in the fresh information update Page Template set for switching Page Template.
CN201611089500.2A 2016-12-01 2016-12-01 For generating the method and apparatus of report Pending CN108132945A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611089500.2A CN108132945A (en) 2016-12-01 2016-12-01 For generating the method and apparatus of report

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611089500.2A CN108132945A (en) 2016-12-01 2016-12-01 For generating the method and apparatus of report

Publications (1)

Publication Number Publication Date
CN108132945A true CN108132945A (en) 2018-06-08

Family

ID=62387626

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611089500.2A Pending CN108132945A (en) 2016-12-01 2016-12-01 For generating the method and apparatus of report

Country Status (1)

Country Link
CN (1) CN108132945A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109684386A (en) * 2018-12-24 2019-04-26 成都四方伟业软件股份有限公司 Report cooperates with method of combination and device
CN110968380A (en) * 2018-09-30 2020-04-07 北京国双科技有限公司 Data visualization method and system
CN111797350A (en) * 2020-06-24 2020-10-20 北京字节跳动网络技术有限公司 Data processing method and device and electronic equipment
CN112000644A (en) * 2020-08-21 2020-11-27 北京浪潮数据技术有限公司 Data processing method and system, electronic equipment and storage medium
CN112487771A (en) * 2020-12-14 2021-03-12 国网河北省电力有限公司 Report generation method, report generation device and terminal
CN112632108A (en) * 2020-12-30 2021-04-09 深圳艾灵网络有限公司 Rendering method and device of graph and report interface and electronic equipment
CN114676190A (en) * 2022-05-27 2022-06-28 太平金融科技服务(上海)有限公司深圳分公司 Data display method and device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101788994A (en) * 2009-08-14 2010-07-28 成都迪捷信息技术有限公司 Method for constructing data display model and method and device for displaying data
CN103092890A (en) * 2011-11-08 2013-05-08 苏州中茵泰格科技有限公司 System and method for automatic generation and sending of reports
US20140279927A1 (en) * 2013-03-15 2014-09-18 International Business Machines Corporation Scalable graph modeling of metadata for deduplicated storage systems
CN105760401A (en) * 2014-12-19 2016-07-13 金蝶软件(中国)有限公司 Report data interaction method and system based on mobile terminal
CN105843945A (en) * 2016-04-08 2016-08-10 联动优势科技有限公司 Report generation method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101788994A (en) * 2009-08-14 2010-07-28 成都迪捷信息技术有限公司 Method for constructing data display model and method and device for displaying data
CN103092890A (en) * 2011-11-08 2013-05-08 苏州中茵泰格科技有限公司 System and method for automatic generation and sending of reports
US20140279927A1 (en) * 2013-03-15 2014-09-18 International Business Machines Corporation Scalable graph modeling of metadata for deduplicated storage systems
CN105760401A (en) * 2014-12-19 2016-07-13 金蝶软件(中国)有限公司 Report data interaction method and system based on mobile terminal
CN105843945A (en) * 2016-04-08 2016-08-10 联动优势科技有限公司 Report generation method and system

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110968380A (en) * 2018-09-30 2020-04-07 北京国双科技有限公司 Data visualization method and system
CN110968380B (en) * 2018-09-30 2024-02-13 北京国双科技有限公司 Data visualization method and system
CN109684386A (en) * 2018-12-24 2019-04-26 成都四方伟业软件股份有限公司 Report cooperates with method of combination and device
CN111797350A (en) * 2020-06-24 2020-10-20 北京字节跳动网络技术有限公司 Data processing method and device and electronic equipment
CN112000644A (en) * 2020-08-21 2020-11-27 北京浪潮数据技术有限公司 Data processing method and system, electronic equipment and storage medium
CN112000644B (en) * 2020-08-21 2022-08-02 北京浪潮数据技术有限公司 Data processing method and system, electronic equipment and storage medium
CN112487771A (en) * 2020-12-14 2021-03-12 国网河北省电力有限公司 Report generation method, report generation device and terminal
CN112487771B (en) * 2020-12-14 2023-05-30 国网河北省电力有限公司 Report generation method, report generation device and terminal
CN112632108A (en) * 2020-12-30 2021-04-09 深圳艾灵网络有限公司 Rendering method and device of graph and report interface and electronic equipment
CN114676190A (en) * 2022-05-27 2022-06-28 太平金融科技服务(上海)有限公司深圳分公司 Data display method and device, computer equipment and storage medium
CN114676190B (en) * 2022-05-27 2022-10-11 太平金融科技服务(上海)有限公司深圳分公司 Data display method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108132945A (en) For generating the method and apparatus of report
CN110795666B (en) Webpage generation method, device, terminal and storage medium
CN105930020B (en) A kind of method and device of the icon of management terminal application program
CN107818118B (en) Date storage method and device
US8830913B1 (en) Location-based software updates
CN110119294A (en) The generation method of menu page, apparatus and system
CN105786207B (en) Data inputting method and device
CN105117491B (en) Page push method and apparatus
CN111178012A (en) Form rendering method, device and equipment and storage medium
CN102412993B (en) Method and system for automatically displaying multiple terminals in XML (Extensive Makeup Language) interface
CN106681596A (en) Information display method and device
CN105205072B (en) The methods of exhibiting and system of webpage information
CN106997298A (en) A kind of application resource acquisition methods and device
CN107390994A (en) Interface presentation and device
CN106572139A (en) Multi-terminal control method and system, terminal, and server
CN106874471A (en) Information-pushing method and device
CN104115142A (en) Device specific folders for bookmarks synchronization
CN110020329A (en) For generating the methods, devices and systems of webpage
CN105302925A (en) Method and device for pushing voice search data
CN110321544A (en) Method and apparatus for generating information
CN107894891A (en) Program packaging method and device and program installation method and device
CN105589631B (en) Information displaying method and device
CN115017020B (en) Screen recording method and medium of applet page and electronic equipment
CN106973081A (en) A kind of method and apparatus for issuing cloud resource
CN107370628A (en) Based on the log processing method and system buried a little

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