CN110502730A - The method and apparatus for generating mobile report - Google Patents
The method and apparatus for generating mobile report Download PDFInfo
- Publication number
- CN110502730A CN110502730A CN201810481544.2A CN201810481544A CN110502730A CN 110502730 A CN110502730 A CN 110502730A CN 201810481544 A CN201810481544 A CN 201810481544A CN 110502730 A CN110502730 A CN 110502730A
- Authority
- CN
- China
- Prior art keywords
- component
- report
- format
- account pages
- information
- 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
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses the method and apparatus for generating mobile report, are related to field of computer technology.One specific embodiment of this method includes: to determine the storage format of component according to the information of component on account pages;According to the storage format of component, component is stored with the storage format;According to the information of component on the component and account pages of storage, mobile report is generated.The embodiment solves the prior art and does not support the displaying of figure, do not support report that is complicated or needing page jump to show, generate mobile report, the technological deficiency that the development cycle is long, big with the figure gap in reporting system using non-library of increasing income, and has reached the technical effect that mobile report is various informative as the report checked in account pages, similarity is high, access is more flexible.
Description
Technical field
The present invention relates to field of computer technology more particularly to a kind of method and apparatus for generating mobile report.
Background technique
Nowadays reporting system is more and more supported to subscribe to function.User wishes on time by various terminal equipment, with
When everywhere check report, and checked without logging into reporting system.Since the presentation of report main body is often complicated and shape
Formula multiplicity, includes title, text, table, histogram, pie chart, line chart etc..Guarantee accurate and extracts report number in time
According to, guarantee that mobile report is various informative with account pages as, be to measure the key factor for moving report.
In realizing process of the present invention, at least there are the following problems in the prior art for inventor's discovery:
1. the prior art having needs the default template for generating mobile report, only supports the table in report to show, do not prop up
Hold the displaying of figure;
2. the prior art having only supports the displaying of static statement, report exhibition that is complicated or needing page jump is not supported
Show;
3. the prior art having is applicable in third party's resources bank and calls, but since third party's resources bank is mostly non-open source library, therefore
Cause development difficulty big, the report of scroll bar can not be handled.
4. the prior art having is in handling report when figure, the development cycle is long, big with the figure gap in reporting system.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method and apparatus for generating mobile report, and can: reach accurate
The technology extracted the information of component in webpage report, make mobile report various informative as the report checked in account pages
Effect;Reach the technical effect for completely converting complicated report to mobile report;Reach the mobile report and report of generation
The technical effect that webpage similarity is high and the mobile report that generates is more flexible;Reach and is not required to step in multiple terminals whenever and wherever possible
Record reporting system can check the technical effect of report.
To achieve the above object, according to an aspect of an embodiment of the present invention, a kind of side for generating mobile report is provided
Method, comprising:
According to the information of component on account pages, the storage format of component is determined;
According to the storage format of component, component is stored with the storage format;
According to the information of component on the component and account pages of storage, mobile report is generated.
Optionally it is determined that the storage format of component, comprising:
When the type of component is table, with the format storage assembly of text file;And/or
When the type of component is figure, with the format storage assembly of picture file;And/or
When the type of component is title or text, with the format storage assembly of text or picture file.
Optionally, mobile report is generated, comprising:
Form component is introduced into mobile report with the format of text file;
And/or graphic assembly is introduced into mobile report with the format of picture file;
And/or title component or text component are introduced into mobile report with the format of text or picture file.
Optionally, further includes:
According to account pages, the information of component on account pages is obtained;
Wherein, on account pages the information of component include: the sequence of securing component information, the type of component, component only
One mark, the height of the width of component, component.
Optionally, it according to account pages, obtains on account pages before the information of component, comprising:
According to the unique identification of report, account pages are opened on backstage.
Optionally, it according to account pages, obtains on account pages before the information of component, further includes:
In the system for generating mobile report, the navigation script for obtaining the information of component on account pages is installed and is handled
And probe card, and/or define environmental variance.
Optionally, generating language used in mobile report is hypertext markup language.
Another aspect according to an embodiment of the present invention provides a kind of device for generating mobile report, comprising:
It determines component storage format module, for the information according to component on account pages, determines the storage format of component;
Component storage module is stored component with the storage format for the storage format according to component;
Mobile Reports module is generated, the information of component on the component and account pages according to storage generates mobile report
Table.
Optionally it is determined that the storage format of component, comprising:
When the type of component is table, with the format storage assembly of text file;And/or
When the type of component is figure, with the format storage assembly of picture file;And/or
When the type of component is title or text, with the format storage assembly of text or picture file.
Optionally, mobile report is generated, comprising:
Form component is introduced into mobile report with the format of text file;
And/or graphic assembly is introduced into mobile report with the format of picture file;
And/or title component or text component are introduced into mobile report with the format of text or picture file.
Optionally, further includes:
According to account pages, the information of component on account pages is obtained;
Wherein, on account pages the information of component include: the sequence of securing component information, the type of component, component only
One mark, the height of the width of component, component.
Optionally, it according to account pages, obtains on account pages before the information of component, comprising:
According to the unique identification of report, account pages are opened on backstage.
Optionally, it according to account pages, obtains on account pages before the information of component, further includes:
In the system for generating mobile report, the navigation script for obtaining the information of component on account pages is installed and is handled
And probe card, and/or define environmental variance.
Optionally, generating language used in mobile report is hypertext markup language.
Other side according to an embodiment of the present invention provides a kind of electronic equipment for generating mobile report, comprising:
One or more processors;
Storage device, for storing one or more programs,
When one or more programs are executed by one or more processors, so that one or more processors realize the present invention
The method of article grouping.
Still another aspect according to an embodiment of the present invention provides a kind of computer-readable medium, is stored thereon with computer
Program realizes the method for article grouping of the present invention when program is executed by processor.
One embodiment in foregoing invention have the following advantages that or the utility model has the advantages that
Because using the storage format of component is determined, and in addition store component according to determining component storage format
Technological means, so figure and report that the mobile report for overcoming some prior arts is not supported the displaying of figure or generated
The technological deficiency for thering is the table of scroll bar not show completely in the big or mobile report of figure gap in system, and then reach
It accurately extracts the information of component in webpage report, make mobile report various informative as the report checked in account pages
Technical effect.
Since using the technological means opened account pages on backstage, separately deposit component, the existing skill overcome
Art does not support the technical issues of report generation movement report that is complicated, needing page jump, and then reaching can be by complexity
Report is completely converted into the technical effect of mobile report.
It, can be with so that when generating mobile report because using the technological means for obtaining the information of component on account pages
Mobile report is set according to the information of component on account pages, so the prior art overcome needs the mobile report of default generation
Table template leads to the mobile report generated and the big technical problem of account pages gap, and then reaches the mobile report and report of generation
The technical effect that table webpage similarity is high and the mobile report that generates is more flexible.
Because generating the technological means of mobile report using hypertext markup language, the prior art overcome is sharp
Called to generate mobile report with the non-open source resources library of third party, cause development difficulty is big, in processing report when graphic assembly
Development cycle long technical problem, and then reach to be not required to log in reporting system in multiple terminals whenever and wherever possible and can check report
Technical effect.
Further effect possessed by above-mentioned non-usual optional way adds hereinafter in conjunction with specific embodiment
With explanation.
Detailed description of the invention
Attached drawing for a better understanding of the present invention, does not constitute an undue limitation on the present invention.Wherein:
Fig. 1 is the schematic diagram of the main flow of the method according to an embodiment of the present invention for generating mobile report;
Fig. 2 is the account pages in the specific embodiment of the method for the mobile report of generation of alternative embodiment according to the present invention
Screenshot;
Fig. 3 is the component file in the specific embodiment of the method for the mobile report of generation of alternative embodiment according to the present invention
Save screenshot, wherein Fig. 3 (a) is that the file of title component saves screenshot, and Fig. 3 (b) is that the content in title component file is cut
Figure, Fig. 3 (c) are that the file of graphic assembly saves screenshot, and Fig. 3 (d) is the content screenshot in graphic assembly file, and Fig. 3 (e) is table
The file of lattice component saves screenshot;
Fig. 4 is the HTML code in the specific embodiment of the method for the mobile report of generation of alternative embodiment according to the present invention
Screenshot, wherein Fig. 4 (a) is the HTML code screenshot for being spliced into an entirety, and Fig. 4 (b) is that the corresponding HTML code of title is cut
Figure;Fig. 4 (c) is the HTML code screenshot that picture introduces;Fig. 4 (d) is the HTML code screenshot that table introduces;
Fig. 5 is the overall flow in the specific embodiment of the method for the mobile report of generation of alternative embodiment according to the present invention
Figure;
Fig. 6 is the report of the realization in the specific embodiment of the method for the mobile report of generation of alternative embodiment according to the present invention
Table mail effect screenshot;
Fig. 7 is the schematic diagram of the main modular of the device according to an embodiment of the present invention for generating mobile report;
Fig. 8 is that the embodiment of the present invention can be applied to exemplary system architecture figure therein;
Fig. 9 is adapted for the structural representation of the computer system for the terminal device or server of realizing the embodiment of the present invention
Figure.
Specific embodiment
Below in conjunction with attached drawing, an exemplary embodiment of the present invention will be described, including the various of the embodiment of the present invention
Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize
It arrives, it can be with various changes and modifications are made to the embodiments described herein, without departing from scope and spirit of the present invention.Together
Sample, for clarity and conciseness, descriptions of well-known functions and structures are omitted from the following description.
Fig. 1 is the schematic diagram of the main flow of the method according to an embodiment of the present invention for generating mobile report, such as Fig. 1 institute
Show,
Step 101, according to the information of component on account pages, the storage format of component is determined;
Step 102, according to the storage format of component, component is stored with the storage format;
Step 103, according to the information of component on the component of storage and account pages, mobile report is generated.
The mobile report refers to: sending user's for the report content that needs to log in reporting system originally and can just check
Various terminals report generated.Mobile report includes but is not limited to: being sent in a manner of mail, push.The present embodiment generates
Mobile report, allow user accurately, timely check report, and with the webpage report one checked in reporting system
Sample is various informative.
The information of the report component includes for example: type, the size of component, color of component of component etc..Pass through this
Component is arranged on mobile report again in the information of a little components, so that component bandwagon effect and account pages on mobile report
On component bandwagon effect it is closer.
The account pages mainly show data using the form of table, figure, text, title.For each
For showing that table, figure, text, the title of data are known as a component.Pass through the source code of account pages, so that it may obtain
Obtain the information of each component.The information that will acquire component on account pages, for generating mobile report, so that the mobile report generated
The report form showing effect gap of table and account pages is smaller.
In the present embodiment, the component type of report can be divided into table, figure, text, title.Since every kind of component has not
With characteristic, if adopting and storing in a like fashion when storage, the mobile report that will lead to in reporting system
The webpage report difference checked is larger.For example, there is the table of scroll bar to store according to the mode of screenshot, then lead to partial table
Loss of data;Figure is stored using the format of text file, then cause the pictorial statement re-formed in mobile report with
Pictorial statement gap on account pages is larger.Therefore different types of component is stored in the same format be unfavorable for generating it is similar
Spend high mobile report.Similarly, the display format of the text on account pages and title, if certain special pattern, then compared with
To be suitble to store in the form of screenshot, and be not suitable for storing with the format of text file.
After the storage format for determining each component, it can be stored according to the storage format of each component.Wherein, described to deposit
Storage is in addition storage, referred to as separately deposits, i.e., does not store on original position.After component is separately deposited, by the component separately deposited and webpage report
The information of component can overcome the prior art to be unable to control page-size and/or zoom degree for generating mobile report on table
Defect, to reach the technical effect for showing each report completely.
Optionally it is determined that the storage format of component, comprising:
When the type of component is table, with the format storage assembly of text file;And/or
When the type of component is figure, with the format storage assembly of picture file;And/or
When the type of component is title or text, with the format storage assembly of text or picture file.
When the type of component is figure, need to consider that figure includes, such as, but not limited to: histogram, bar chart, scatterplot
Figure, bubble diagram, line chart.Every kind of figure can be divided into numerous species again, such as bar chart can be divided into 3D bar chart, gradual change bar shaped
Figure, stacked bar graph etc..In the system for actually generating mobile report, the template of each figure can not be all stored in generation
In the system of mobile report.Even if assuming all to save the template of every kind of figure in the system for generating mobile report, again
Element format and the former format that generation is also resulted in when generating graphic assembly are not exactly the same.Therefore can will own in graphic assembly
Figure separately deposited in the form of screenshot so that no matter any figure is not influenced when generating mobile report by report is generated.Its
In, the format of picture file includes but is not limited to: bmp, jpg, png, tiff, gif.
In some embodiments, table is larger, and/or table in data it is more, to form component in a manner of screenshot
It is stored, may result in can not show in the same page completely.Especially in table there are when scroll bar, table
Unloading should not be stored by the way of screenshot.The present embodiment, which is used, stores table with the format of text file, Jin Erda
To saving memory that form component occupies, facilitate calling, avoid showing incomplete technical effect to table screenshot bring, and
And it can be adapted for various tables not of uniform size.Optionally, the storage format of table may be the forms such as electrical form.
Optionally, it when table is smaller or can show in a page, also may be selected to store sets of tables in the form of screenshot
Part.
When format for component is title or text, the system for generating mobile report, which needs to make the state of component, to be sentenced
It is disconnected.Specifically, when the text formatting that the format of title or text is routine, format that is no more special or being not easy acquisition
When, title component or text component are stored in the form of text file;When the format of title component or text component is more special
Different format when storage being caused in the form of text file differ larger with account pages, is reported using the format storage of screenshot
Table.
Optionally, mobile report is generated, comprising:
Form component is introduced into mobile report with the format of text file;
And/or graphic assembly is introduced into mobile report with the format of picture file;
And/or title component or text component are introduced into mobile report with the format of text or picture file.
Since the storage of various components therefore is being generated separately to exist in text file and/or separately there are in picture file
When mobile report, uses and generate mobile report in such a way that storage format introduces and can reach the original format of protection component, simplification
The beneficial effect of mobile report code.Specifically, it since the storage format of form document can select text file, therefore is introducing
It is corresponding form component to be introduced using the format of text file when form component.Similarly, graphic assembly can choose to scheme
The format of piece file is introduced into mobile report;And/or title component or text component can choose with text or picture file
Format be introduced into mobile report.
Optionally, further includes:
According to account pages, the information of component on account pages is obtained;
Wherein, on account pages the information of component include: the sequence of securing component information, the type of component, component only
One mark, the height of the width of component, component.
Specifically, in the code of account pages, each component is located in a level (DIVision, abbreviation
DIV on), these components include for example: title, text, table, various figures (such as curve graph, bubble diagram, histogram, cake
Figure, radar map etc.).The information that institute's placing modules can be identified on each DIV, size, the group of type, component including component
The color etc. of part.By traversal account pages on each component DIV can securing component information.The type of component,
The information such as size, the color of component of component are the information of component on account pages.Existed again using the information of these components
Component is set on mobile report, so that component effect of the component on the bandwagon effect and account pages on mobile report more connects
Closely.
Specifically, by the sequence using securing component information, when generating mobile report according to the group on account pages
Part sequence arrangement component, so that the module arrangement sequence consensus of mobile report and account pages, to reach the mobile report of raising
With the beneficial effect of account pages similarity;By the type using component, the type that component is separately deposited can be directly determined out, into
And reach the beneficial effect of the type storage various components according to component;By the unique identification using securing component, so that often
A component has unique identification information, and then the conveniently positioning component in the mobile report of generation;By the width for determining component
The height of degree and component, can be with the size of limitation unit, so that showing in mobile report and account pages when generating mobile report
The component size shown is the same, to reach the beneficial effect for improving and generating mobile report and account pages similarity.
For example, a graphic assembly, the width and height of component are the necessary conditions for measuring component size.If lacked
The width and height of each component are obtained, and sets unified size for each component, may result in biggish component can not be
The clear all data of display in defined size, it is also possible to the bad effect for causing original component to be deformed by limited size
Fruit.
The type of securing component is also important one for obtaining report messages, because of the report extracted in account pages,
It needs to judge storage format according to the type of report.For example, can determine whether the component when the type of securing component is table
Storage mode is text file.
The sequence of securing component and the unique identification of component facilitate the arrangement when introducing component, forming mobile report
Sequentially, so that the sequence of component is consistent with the component priority order in account pages in mobile report.
The information of said modules can achieve so that generate mobile report show effect and account pages show effect
It is almost identical.Optionally, when the appearance form to report there are other to require, the side of acquisition other assemblies information can also be passed through
Formula further controls the generation of mobile report.Optionally, the information of other assemblies can be added/reduced according to demand, such as:
Memory size shared by the color of component, component.
Optionally, it according to account pages, obtains on account pages before the information of component, comprising:
According to the unique identification of report, account pages are opened on backstage.
Opening account pages on backstage can be convenient the information of component on acquisition account pages, and due to each component
Information is all stored in a level (DIV), and the mobile report of generation can be easily obtained by opening account pages on backstage
Information, to reach the beneficial effect for obtaining the information of component in the case where not opening account pages foreground.
Optionally, it according to account pages, obtains on account pages before the information of component, further includes:
In the system for generating mobile report, the navigation script for obtaining the information of component on account pages is installed and is handled
And probe card, and/or define environmental variance.
The navigation script processing of installation open source and probe card (abbreviation CasperJS plug-in unit) can be with dynamic acquisition webpage reports
The information of component on table.Specifically, when component is the table containing scroll wheel, which can convert static page to dynamic
The state page, facilitates the information of securing component, thus when overcoming the prior art and handling form component that is longer, having idler wheel, journey
The cumbersome technological deficiency of sequence.
The definition environmental variance refers to during generating mobile report used in definition, with specific names
Object, for example, some parameters that can be used of setting, path etc..Using the setting of environmental variance, so that generating mobile report
When, the acquisition and use of the convenient information to component.Specifically, in some embodiments, it is desirable to the color of securing component, therefore it is fixed
Adopted environmental variance " color ".Environmental variance " color " can be used for the color of securing component, and for generating mobile report
The color of corresponding component is arranged in table.
Optionally, generating language used in mobile report is hypertext markup language.
The hypertext markup language (abbreviation HTML) is a kind of open source, expansible, application platform is widely general
Language.HTML can be used for the writing of mail, the writing of various cell phone softwares push, wechat small routine are write.Using HTML
It is difficult using the caused exploitation of the mobile report of non-open source resources library generation that the mobile report of generation not only can solve some prior arts
Degree is big, data show the defect for not exclusively, being difficult to control page-size, and may also reach up mobile report can be applied to various ends
The beneficial effect held, user is facilitated to check whenever and wherever possible.
Below with a specific embodiment, process in detail.
When the mobile report of the mail that user subscribes to account pages, the system for generating mobile report is available to the user
The ID of the account pages of subscription.According to the ID of this report network the information of Background scheduling component CasperJS plug-in unit.Such as
In Fig. 2 shown in webpage report screenshot, which includes title, icon and table.After webpage is opened on backstage, net is being obtained
During the information of page report, the suitable of each component can be obtained in the type=" hidden " on the DIV of each component
Sequence information, the type information of component, the unique identification information of component, the width information of component, elevation information of component etc..
Secondly, judging the storage mode of each report in the account pages.As shown in Fig. 2, the title Element format is normal
The text formatting of rule, no special format that is more special, not also being not easy acquisition, therefore use text file (.txt)
Form stores title component, and the file of obtained title component saves shown in screenshot such as Fig. 3 (a).Determining title component
After storage format, which is separately deposited in the form of text file on backstage.As shown in Fig. 3 (b), as title component
Content screenshot in file.
It also include graphic assembly in account pages.System, can be by the figure without judging the graphic assembly
Component screenshot, and be stored in picture file, this specific embodiment is stored using the format of .jpg.As shown in Fig. 3 (c), i.e.,
Screenshot is saved for the file of graphic assembly in the present embodiment.Specifically, Fig. 3 (d) is the content screenshot in graphic assembly file.Together
It manages, also includes form component in account pages, which is stored in text file (.txt) by system, the sets of tables
The file of part saves shown in screenshot such as Fig. 3 (e).
Then, an entirety is spliced by introducing storage assembly according to the information of the component of storage and securing component
HTML code, as shown in Fig. 4 (a).Specifically, title introduces shown in code snippet such as Fig. 4 (b) of HTML;Picture introduces HTML
Shown in the segment of code such as Fig. 4 (c);It is shown in Fig. 4 (d) that table, which introduces HTML code segment,.
In conclusion the broad flow diagram for generating html mail is as shown in Figure 5 in this specific embodiment.According to the present invention
The report mail effect screenshot that specific embodiment is realized is as shown in Figure 6.
Fig. 7 is the schematic diagram of the main modular of the device according to an embodiment of the present invention for generating mobile report;
As shown in fig. 7, a kind of device 700 of the mobile report of generation of the embodiment of the present invention, comprising:
It determines component storage format module 701, for the information according to component on account pages, determines the storage lattice of component
Formula;
Component storage module 702 is stored component with the storage format for the storage format according to component;
Mobile Reports module 703 is generated, the information of component on the component and account pages according to storage generates movement
Report.
Optionally it is determined that the storage format of component, comprising:
When the type of component is table, with the format storage assembly of text file;And/or
When the type of component is figure, with the format storage assembly of picture file;And/or
When the type of component is title or text, with the format storage assembly of text or picture file.
Optionally, mobile report is generated, comprising:
Form component is introduced into mobile report with the format of text file;
And/or graphic assembly is introduced into mobile report with the format of picture file;
And/or title component or text component are introduced into mobile report with the format of text or picture file.
Optionally, further includes:
According to account pages, the information of component on account pages is obtained;
Wherein, on account pages the information of component include: the sequence of securing component information, the type of component, component only
One mark, the height of the width of component, component.
Optionally, it according to account pages, obtains on account pages before the information of component, comprising:
According to the unique identification of report, account pages are opened on backstage.
Optionally, it according to account pages, obtains on account pages before the information of component, further includes:
In the system for generating mobile report, the navigation script for obtaining the information of component on account pages is installed and is handled
And probe card, and/or define environmental variance.
Optionally, generating language used in mobile report is hypertext markup language.
Fig. 8 is shown can be using the mobile report method of generation of the embodiment of the present invention or showing for the mobile report device of generation
Example property system architecture 800.
As shown in figure 8, system architecture 800 may include terminal device 801,802,803, network 804 and server 805.
Network 804 between terminal device 801,802,803 and server 805 to provide the medium of communication link.Network 804 can be with
Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 801,802,803 and be interacted by network 804 with server 805, to receive or send out
Send message etc..Various telecommunication customer end applications, such as the application of shopping class, net can be installed on terminal device 801,802,803
(merely illustrative) such as the application of page browsing device, searching class application, instant messaging tools, mailbox client, social platform softwares.
Terminal device 801,802,803 can be the various electronic equipments with display screen and supported web page browsing, packet
Include but be not limited to smart phone, tablet computer, pocket computer on knee and desktop computer etc..
Server 805 can be to provide the server of various services, such as utilize terminal device 801,802,803 to user
The shopping class website browsed provides the back-stage management server (merely illustrative) supported.Back-stage management server can be to reception
To the data such as information query request analyze etc. processing, and by processing result (such as target push information, product letter
Breath -- merely illustrative) feed back to terminal device.
It is generally executed by server 805 it should be noted that generating mobile report method provided by the embodiment of the present invention,
Correspondingly, mobile report device is generated to be generally positioned in server 805.
It should be understood that the number of terminal device, network and server in Fig. 8 is only schematical.According to realization need
It wants, can have any number of terminal device, network and server.
Below with reference to Fig. 9, it illustrates the computer systems 900 for the terminal device for being suitable for being used to realize the embodiment of the present invention
Structural schematic diagram.Terminal device shown in Fig. 9 is only an example, function to the embodiment of the present invention and should not use model
Shroud carrys out any restrictions.
As shown in figure 9, computer system 900 includes central processing unit (CPU) 901, it can be read-only according to being stored in
Program in memory (ROM) 902 or be loaded into the program in random access storage device (RAM) 903 from storage section 908 and
Execute various movements appropriate and processing.In RAM 903, also it is stored with system 900 and operates required various programs and data.
CPU 901, ROM 902 and RAM 903 are connected with each other by bus 904.Input/output (I/O) interface 905 is also connected to always
Line 904.
I/O interface 905 is connected to lower component: the importation 906 including keyboard, mouse etc.;It is penetrated including such as cathode
The output par, c 907 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 908 including hard disk etc.;
And the communications portion 909 of the network interface card including LAN card, modem etc..Communications portion 909 via such as because
The network of spy's net executes communication process.Driver 910 is also connected to I/O interface 905 as needed.Detachable media 911, such as
Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 910, in order to read from thereon
Computer program be mounted into storage section 908 as needed.
Particularly, disclosed embodiment, the process described above with reference to flow chart may be implemented as counting according to the present invention
Calculation machine software program.For example, embodiment disclosed by the invention includes a kind of computer program product comprising be carried on computer
Computer program on readable medium, the computer program include the program code for method shown in execution flow chart.In
In such embodiment, which can be downloaded and installed from network by communications portion 909, and/or from can
Medium 911 is dismantled to be mounted.When the computer program is executed by central processing unit (CPU) 901, system of the invention is executed
The above-mentioned function of middle restriction.
It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or meter
Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not
Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter
The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires
Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage
Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device,
Or above-mentioned any appropriate combination.In the present invention, computer readable storage medium can be it is any include or storage journey
The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this
In invention, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited
In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can
Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for
By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium
Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned
Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more
Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box
The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical
On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants
It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule
The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction
It closes to realize.
Being described in module involved in the embodiment of the present invention can be realized by way of software, can also be by hard
The mode of part is realized.Described module also can be set in the processor, for example, can be described as: a kind of processor packet
It includes module, obtain module, determining module and first processing module.Wherein, the title of these modules not structure under certain conditions
The restriction of the pairs of unit itself, for example, sending module is also described as " sending picture to the server-side connected to obtain
The unit of request ".
As on the other hand, the present invention also provides a kind of computer-readable medium, which be can be
Included in equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying equipment.Above-mentioned calculating
Machine readable medium carries one or more program, when said one or multiple programs are executed by the equipment, makes
Obtaining the equipment includes:
According to the information of component on account pages, the storage format of component is determined;
According to the storage format of component, component is stored with the storage format;
According to the information of component on the component and account pages of storage, mobile report is generated.
Technical solution according to an embodiment of the present invention, thus reach it is following the utility model has the advantages that
1. because using the storage format of component is determined, and in addition store component according to determining component storage format
Technological means, so the mobile report for overcoming some prior arts do not support the figure of displaying, and/or the generation of figure with
The technological deficiency for thering is the table of scroll bar not show completely in the big, and/or mobile report of figure gap in reporting system, into
And reaches and accurately extract the information of component in webpage report, makes mobile report shape as the report checked in account pages
The technical effect of formula multiplicity.
2. because what is overcome is existing using the technological means opened account pages on backstage, separately deposit component
Technology does not support the technical issues of complicated, to need page jump report generation mobile report, and then reaching can will be complicated
Report be completely converted into the technical effect of mobile report.
3. because using the technological means for obtaining the information of component on account pages, so that when generating mobile report, it can
Mobile report is arranged according to the information of component on account pages, so the prior art overcome needs default generation movement
Report template leads to the mobile report generated and the big technical problem of account pages gap, so reach the mobile report of generation with
The technical effect that account pages similarities is high and the mobile report that generates is more flexible.
4. because generating the technological means of mobile report, the prior art overcome using hypertext markup language
It calls to generate mobile report using the non-open source resources library of third party, leads to that development difficulty is big, graphic assembly in processing report
When development cycle long technical problem, and then reach to be not required to log in reporting system in multiple terminals whenever and wherever possible and can check report
The technical effect of table.
Above-mentioned specific embodiment, does not constitute a limitation on the scope of protection of the present invention.Those skilled in the art should be bright
It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and substitution can occur.It is any
Made modifications, equivalent substitutions and improvements etc. within the spirit and principles in the present invention, should be included in the scope of the present invention
Within.
Claims (16)
1. a kind of method for generating mobile report characterized by comprising
According to the information of component on account pages, the storage format of component is determined;
According to the storage format of component, component is stored with the storage format;
According to the information of component on the component and account pages of storage, mobile report is generated.
2. the method according to claim 1, wherein determining the storage format of component, comprising:
When the type of component is table, with the format storage assembly of text file;And/or
When the type of component is figure, with the format storage assembly of picture file;And/or
When the type of component is title or text, with the format storage assembly of text or picture file.
3. according to the method described in claim 2, it is characterized in that, generating mobile report, comprising:
Form component is introduced into mobile report with the format of text file;
And/or graphic assembly is introduced into mobile report with the format of picture file;
And/or title component or text component are introduced into mobile report with the format of text or picture file.
4. the method according to claim 1, wherein further include:
According to account pages, the information of component on account pages is obtained;
Wherein, on account pages the information of component include: the sequence of securing component information, the type of component, component unique mark
Know, the height of the width of component, component.
5. according to the method described in claim 4, it is characterized in that, obtaining the letter of component on account pages according to account pages
Before breath, comprising:
According to the unique identification of report, account pages are opened on backstage.
6. according to the method described in claim 5, it is characterized in that, obtaining the letter of component on account pages according to account pages
Before breath, further includes:
In the system for generating mobile report, the navigation script for obtaining the information of component on account pages is installed and handles and surveys
Plug-in unit is tried, and/or defines environmental variance.
7. method described in one of -6 according to claim 1, which is characterized in that it is super literary for generating language used in mobile report
This markup language.
8. a kind of device for generating mobile report characterized by comprising
It determines component storage format module, for the information according to component on account pages, determines the storage format of component;
Component storage module is stored component with the storage format for the storage format according to component;
Mobile Reports module is generated, the information of component on the component and account pages according to storage generates mobile report.
9. device according to claim 8, which is characterized in that determine the storage format of component, comprising:
When the type of component is table, with the format storage assembly of text file;And/or
When the type of component is figure, with the format storage assembly of picture file;And/or
When the type of component is title or text, with the format storage assembly of text or picture file.
10. device according to claim 9, which is characterized in that generate mobile report, comprising:
Form component is introduced into mobile report with the format of text file;
And/or graphic assembly is introduced into mobile report with the format of picture file;
And/or title component or text component are introduced into mobile report with the format of text or picture file.
11. device according to claim 8, which is characterized in that further include:
According to account pages, the information of component on account pages is obtained;
Wherein, on account pages the information of component include: the sequence of securing component information, the type of component, component unique mark
Know, the height of the width of component, component.
12. device according to claim 11, which is characterized in that according to account pages, obtain component on account pages
Before information, comprising:
According to the unique identification of report, account pages are opened on backstage.
13. device according to claim 12, which is characterized in that according to account pages, obtain component on account pages
Before information, further includes:
In the system for generating mobile report, the navigation script for obtaining the information of component on account pages is installed and handles and surveys
Plug-in unit is tried, and/or defines environmental variance.
14. the device according to one of claim 8-13, which is characterized in that it is super for generating language used in mobile report
Text mark up language.
15. a kind of electronic equipment for generating mobile report characterized by comprising
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
The now method as described in any in claim 1-7.
16. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor
The method as described in any in claim 1-7 is realized when row.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810481544.2A CN110502730A (en) | 2018-05-18 | 2018-05-18 | The method and apparatus for generating mobile report |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810481544.2A CN110502730A (en) | 2018-05-18 | 2018-05-18 | The method and apparatus for generating mobile report |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110502730A true CN110502730A (en) | 2019-11-26 |
Family
ID=68584047
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810481544.2A Pending CN110502730A (en) | 2018-05-18 | 2018-05-18 | The method and apparatus for generating mobile report |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110502730A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106658445A (en) * | 2016-12-28 | 2017-05-10 | 中卓信(北京)科技有限公司 | Report displaying method, device and system |
CN106933862A (en) * | 2015-12-30 | 2017-07-07 | 北京神州泰岳软件股份有限公司 | A kind of method and apparatus for generating mail report |
CN107908659A (en) * | 2017-10-17 | 2018-04-13 | 深圳前海微众银行股份有限公司 | Data sheet collocation method, report platform and computer-readable recording medium |
-
2018
- 2018-05-18 CN CN201810481544.2A patent/CN110502730A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106933862A (en) * | 2015-12-30 | 2017-07-07 | 北京神州泰岳软件股份有限公司 | A kind of method and apparatus for generating mail report |
CN106658445A (en) * | 2016-12-28 | 2017-05-10 | 中卓信(北京)科技有限公司 | Report displaying method, device and system |
CN107908659A (en) * | 2017-10-17 | 2018-04-13 | 深圳前海微众银行股份有限公司 | Data sheet collocation method, report platform and computer-readable recording medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10452787B2 (en) | Techniques for automated document translation | |
CN109683998A (en) | Internationalize implementation method, device and system | |
CN107832045A (en) | Across the method and apparatus of programming language interface conversion | |
CN110019350A (en) | Data query method and apparatus based on configuration information | |
CN109614402A (en) | Multidimensional data query method and device | |
CN111433762A (en) | Graphically organizing content in a user interface of a software application | |
CN107256206A (en) | The method and apparatus of character stream format conversion | |
CN109446274A (en) | The method and apparatus of big data platform BI metadata management | |
CN110347428A (en) | A kind of detection method and device of code similarity | |
CN110362304A (en) | The method and apparatus of web displaying | |
CN109002440A (en) | Method, apparatus and system for big data multidimensional analysis | |
CN110019367A (en) | A kind of method and apparatus of statistical data feature | |
CN109857473A (en) | A kind of loading method and device of page data | |
CN107729394A (en) | Data Mart management system and its application method based on Hadoop clusters | |
US20210185109A1 (en) | Page presentation method and system, computer system, and computer readable medium | |
CN108694172A (en) | Information output method and device | |
CN113220381A (en) | Click data display method and device | |
CN110502730A (en) | The method and apparatus for generating mobile report | |
CN113642295B (en) | Page typesetting method, device and computer program product | |
CN110020320A (en) | The method and apparatus for caching page pictures | |
CN109901892A (en) | A kind of method and apparatus of dynamic attribute verifying | |
CN109472740A (en) | The method and apparatus for generating figure based on web front end | |
CN110472190A (en) | The method and apparatus for filling ordered sequence | |
CN111241788A (en) | Document conversion method, device, equipment and storage medium based on linear model | |
CN109062645A (en) | The method and apparatus of processing information for terminal |
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 |