CN106570118B - Report data processing system and method based on electric power material allocation mobile platform - Google Patents

Report data processing system and method based on electric power material allocation mobile platform Download PDF

Info

Publication number
CN106570118B
CN106570118B CN201610945911.0A CN201610945911A CN106570118B CN 106570118 B CN106570118 B CN 106570118B CN 201610945911 A CN201610945911 A CN 201610945911A CN 106570118 B CN106570118 B CN 106570118B
Authority
CN
China
Prior art keywords
data
chart
mobile terminal
layer
server side
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.)
Active
Application number
CN201610945911.0A
Other languages
Chinese (zh)
Other versions
CN106570118A (en
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.)
Shandong Luneng Software Technology Co Ltd
Materials Branch of State Grid Shandong Electric Power Co Ltd
Original Assignee
Shandong Luneng Software Technology Co Ltd
Materials Branch of State Grid Shandong Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Luneng Software Technology Co Ltd, Materials Branch of State Grid Shandong Electric Power Co Ltd filed Critical Shandong Luneng Software Technology Co Ltd
Priority to CN201610945911.0A priority Critical patent/CN106570118B/en
Publication of CN106570118A publication Critical patent/CN106570118A/en
Application granted granted Critical
Publication of CN106570118B publication Critical patent/CN106570118B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a report data processing system and method based on a power material allocation mobile platform, which comprises the following steps: the system comprises a mobile terminal and a server side; the mobile terminal and the server side carry out bidirectional communication; the mobile terminal includes: the data adapter layer: the system is used for screening and distributing data returned by the server side, and transmitting the data downwards to an Achartngine chart engine library; achartngine chart Engine library: the system comprises a chart display layer, a data receiving layer and a data receiving layer, wherein the chart display layer is used for receiving data and sending a drawing result to the data receiving layer; graph presentation layer: and the display module is used for displaying the received drawing result. The invention has the beneficial effects that: the method has flexible chart configuration and can adapt to different showing modes for the same group of data. The background data configuration is simple, and all form data adopt the same set of template to assemble data, so that developers can concentrate on more business logic development.

Description

Report data processing system and method based on electric power material allocation mobile platform
Technical Field
The invention relates to the technical field of report data processing, in particular to a report data processing system and method based on a mobile operation platform for power material allocation.
Background
The electric power system material department is responsible for tracking the construction progress of the power transmission and transformation project, and is responsible for carrying out production, delivery, transportation, delivery, acceptance check, on-site service, participation in performance evaluation and other works on the project materials. The statistical analysis processing needs to be carried out on key business data such as project monitoring, demand planning, purchasing (bidding), contract, warehousing and distribution, quality monitoring, emergency command, waste material disposal, supplier relationship and the like, for example: and (4) carrying out statistical analysis processing on related data such as project progress condition, contract signing condition, material supply, supply plan, contract settlement and the like.
Most of the current report data processing plug-ins are based on a Windows platform, an OS platform and the like of a PC end, and are not suitable for developing mobile terminal projects such as an android platform and the like. For the mobile terminal platform, the realization of corresponding report forms is not available. Therefore, the current report data processing platform is single, and effective integration of data resources cannot be realized under mobile terminal platforms such as android and the like.
Disclosure of Invention
The invention aims to solve the technical problems and provides a report data processing system and method based on a power material allocation mobile platform.
In order to achieve the purpose, the invention adopts the following technical scheme:
a report data processing system based on a power material allocation mobile platform comprises:
a mobile terminal: the data query system is used for initiating a data query request to a server side;
a server side: the mobile terminal is used for providing service inquiry operation and returning the inquired data to the mobile terminal;
the mobile terminal and the server side carry out bidirectional communication;
the mobile terminal includes:
the data adapter layer: the system is used for screening and distributing data returned by the server side, and transmitting the data downwards to an Achartngine chart engine library;
achartngine chart Engine library: the system comprises a chart display layer, a data receiving layer and a data receiving layer, wherein the chart display layer is used for receiving data and sending a drawing result to the data receiving layer;
graph presentation layer: and the display module is used for displaying the received drawing result.
The server side communicates with a data adapter layer, the data adapter layer communicates with an Achartngine chart engine library, and the Achartngine chart engine library communicates with a chart presentation layer.
The chart types displayed by the chart presentation layer comprise: line graphs, bar graphs, tables, scatter plots, matrix plots, area plots, pie plots, bubble plots.
A method of a report data processing system based on a power material allocation mobile platform comprises the following steps:
(1) the mobile terminal initiates a request to the server side to inquire corresponding service data;
(2) the server side inquires the database, assembles data according to an agreed format and then returns the assembled data to the mobile terminal;
(3) after receiving the data, the mobile terminal analyzes the data through a data adapter layer and transmits the data to an Achartengine chart engine layer for drawing;
(4) and the Achartengine chart engine layer sends the drawing result to the chart presentation layer for displaying.
The data types recognized by the Acharangine chart engine are all in a dynamic assembly mode, and the display types and the styles of the charts are all controlled at the server side.
In the step (2), the step (c),
the data format transmitted by the server side is packaged according to the standard syntax of the markup language XM L, and the type of the chart display and the data items displayed are defined in an XM L data packet.
In the step (3), the step (c),
and after receiving the data, the mobile terminal calls an SAX analysis mode provided by an API of an operating system of the mobile terminal to analyze, and calls a corresponding graph display engine to display a graph according to different types in the XM L data packet.
The server side can realize the display of various chart types only by transmitting data once.
The invention has the beneficial effects that:
the method realizes the effective integration of the data resources of the mobile terminal platform, and the background server can present various charts only by transmitting the data once.
The method realizes the diversified display of the chart of the single data source. According to different service requests, the server only needs to package data once according to the protocol. After the mobile terminal analyzes the data, the method can display chart data of various styles, and improves the utilization rate of data resources and the network transmission efficiency compared with the conventional mode that different types of reports need to be displayed to request different data sources.
The method has flexible diagram configuration, can adapt to different presentation modes for the same group of data, has simple background data configuration, adopts the same template to assemble data for all the form data, enables developers to concentrate more on service logic development, adapts to different presentation modes, and is controlled by the data type configured in the XM L data packet, wherein the data assembly is the XM L data packet.
The invention provides the API function which needs to be called by the XM L data packet definition format description document and the chart display, realizes the secondary encapsulation of the Acharangine chart engine, does not need to care about the Acharangine chart engine implementation mode in the using process, and can be realized only by the XM L data packet definition format and the encapsulated API function.
Drawings
FIG. 1 is a schematic diagram of a report data processing system based on a mobile operation platform for electric power material allocation according to the present invention.
Detailed Description
The following detailed description of embodiments of the present invention is provided in connection with the accompanying drawings and examples.
Several terms involved in the present invention are explained as follows:
an API is a calling interface that the operating system leaves for an application program that causes the operating system to execute the application program's commands (actions) by calling the operating system's API
SAX, known as Simple API for XM L, is both an interface and a software package, is an alternative to XM L parsing, unlike DOM parsing, SAX scans a document line by line, parsing while scanning.
A report data processing system based on a mobile operation platform for power material allocation, as shown in fig. 1, includes:
a mobile terminal: the data query system is used for initiating a data query request to a server side;
a server side: the mobile terminal is used for providing service inquiry operation and returning the inquired data to the mobile terminal;
the mobile terminal and the server side carry out bidirectional communication;
the mobile terminal includes:
the data adapter layer: the system is used for screening and distributing data returned by the server side, and transmitting the data downwards to an Achartngine chart engine library;
achartngine chart Engine library: performing deep customization packaging, performing classified drawing according to received data, and transmitting a drawing result to a chart presentation layer;
graph presentation layer: and the display module is used for displaying the received drawing result. The chart types displayed by the chart presentation layer comprise: line graphs, bar graphs, tables, scatter plots, matrix plots, area plots, pie plots, bubble plots.
The server side communicates with a data adapter layer, the data adapter layer communicates with an Achartngine chart engine library, and the Achartngine chart engine library communicates with a chart presentation layer.
The complete using process is that the mobile terminal initiates a request to the server side to inquire the corresponding service data, and the server side inquires the database, assembles the data according to the appointed format and then returns the data to the mobile terminal. And after receiving the data, the mobile terminal analyzes the data through the adapter layer and transmits the data to the Acharangine chart engine layer for drawing. The data types recognized by the Acharangine chart engine all adopt a dynamic assembly mode, and the display types and the styles of the charts are all controlled at the server side.
The mobile terminal is only responsible for the data analysis and the adaptive display function of the response, thereby increasing the flexibility of terminal development.
The method for the report data processing system based on the power material allocation mobile operation platform comprises the following steps:
(1) the mobile terminal initiates a request to the server side to inquire corresponding service data;
(2) the server side inquires the database, assembles the data according to an agreed format and then returns the data to the mobile terminal, the data format transmitted by the server side is completely encapsulated according to the standard syntax of the extensible markup language XM L, the defined data format follows the principle of extensible and dynamic encapsulation, the content such as the type of graph display, data items and the like is defined in an XM L data packet, the mobile terminal receives the data and then analyzes the data in an SAX analysis mode provided by an Android API, and therefore the corresponding graph display engine is called according to different types in the XM L data packet to display the graph.
(3) The mobile terminal receives the data, analyzes the data through the data adapter layer and transmits the data to the Acharantgine chart engine layer for drawing, wherein the analyzed data is an XM L data packet, a chart of what style is displayed according to the type of the chart defined in the data packet, and the data is a result returned by sending a request to the server through the mobile terminal.
The Achattengine diagramming engine is a third party sourced project and can also be viewed as a diagramming tool. Input and output implementations are provided according to certain constraints.
And (4) inputting, namely calling the chart engine to provide an API function, and transmitting XM L data packets into the chart engine.
And (4) XM L data packets are analyzed and drawn by an engine to realize chart presentation, wherein different functions are required to be called for presentation of different reports, and different data packets are transmitted.
According to the scheme, one resource integration is realized, and the background server can present various charts only by transmitting data once.
(4) And the Achartengine chart engine layer sends the drawing result to the chart presentation layer for displaying.
The data types recognized by the Acharangine chart engine are all in a dynamic assembly mode, and the display types and the styles of the charts are all controlled at the server side. The dynamic assembly mode is an implementation mechanism of java language object-oriented design. Binding is performed at compiler runtime according to the type of the specific object. The type of object may be determined during run-time and the appropriate method invoked, respectively.
The type and data items of the chart are packaged in an XM L data packet, the data packet is provided by a server, and data items such as X-axis and Y-axis scales of the chart, the number of the broken lines, the color of the broken lines, broken line point display scales and the like are configured by taking the broken line chart.
Although the embodiments of the present invention have been described with reference to the accompanying drawings, it is not intended to limit the scope of the present invention, and it should be understood by those skilled in the art that various modifications and variations can be made without inventive efforts by those skilled in the art based on the technical solution of the present invention.

Claims (8)

1. A report data processing system based on a power material allocation mobile platform is characterized by comprising:
a mobile terminal: the data query system is used for initiating a data query request to a server side;
the server side is used for providing service query operation and returning the queried data to the mobile terminal, the data format transmitted by the server side is encapsulated according to the standard syntax of the markup language XM L, the type of graph display and the displayed data items are defined in an XM L data packet;
the mobile terminal and the server side carry out bidirectional communication;
the mobile terminal includes:
the data adapter layer is used for screening the data returned by the server terminal, distributing the data and transmitting the data to the Achartngine chart engine library downwards, and the mobile terminal calls the SAX analysis mode provided by the API of the operating system of the mobile terminal to analyze after receiving the data and calls the corresponding chart display engine to display the chart according to different types in the XM L data packet;
achartngine chart Engine library: the system comprises a chart display layer, a data receiving layer and a data receiving layer, wherein the chart display layer is used for receiving data and sending a drawing result to the data receiving layer;
graph presentation layer: the system is used for displaying the received drawing result;
the server only needs to package the data once according to the appointed format, can realize the display of various chart types only by transmitting the data once, controls different display modes adapted to the same group of data according to the chart display type configured in the XM L data packet,
the data types recognized by the Acharangine chart engine are all in a dynamic assembly mode, and the display types and the styles of the charts are all controlled at the server side.
2. The report data processing system based on the electric power material allocation mobile platform as claimed in claim 1, wherein the server side communicates with a data adapter layer, the data adapter layer communicates with an achartfine chart engine library, and the achartfine chart engine library communicates with a chart presentation layer.
3. The report data processing system based on the electric power material allocation mobile platform as claimed in claim 1, wherein the chart type displayed by the chart presentation layer comprises: line graphs, bar graphs, tables, scatter plots, matrix plots, area plots, pie plots, bubble plots.
4. The method for processing report data based on the mobile platform for electric power material allocation according to claim 1, comprising:
(1) the mobile terminal initiates a request to the server side to inquire corresponding service data;
(2) the server side inquires the database, assembles data according to an agreed format and then returns the assembled data to the mobile terminal;
(3) after receiving the data, the mobile terminal analyzes the data through a data adapter layer and transmits the data to an Achartengine chart engine layer for drawing;
(4) and the Achartengine chart engine layer sends the drawing result to the chart presentation layer for displaying.
5. The method for processing report data based on the mobile platform for electric power material allocation according to claim 4, wherein the data types recognized by the Achattengine chart engine are all dynamically assembled, and the display types and the styles of the charts are all controlled at the server side.
6. The method according to claim 4, wherein in the step (2),
the data format transmitted by the server side is packaged according to the standard syntax of the markup language XM L, and the type of the chart display and the data items displayed are defined in an XM L data packet.
7. The method for reporting data processing system based on electric power material allocation mobile platform as claimed in claim 4, wherein in the step (3),
and after receiving the data, the mobile terminal calls an SAX analysis mode provided by an API of an operating system of the mobile terminal to analyze, and calls a corresponding graph display engine to display a graph according to different types in the XM L data packet.
8. The method as claimed in claim 4, wherein the server side only needs to transmit data once to realize the display of multiple chart types.
CN201610945911.0A 2016-11-02 2016-11-02 Report data processing system and method based on electric power material allocation mobile platform Active CN106570118B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610945911.0A CN106570118B (en) 2016-11-02 2016-11-02 Report data processing system and method based on electric power material allocation mobile platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610945911.0A CN106570118B (en) 2016-11-02 2016-11-02 Report data processing system and method based on electric power material allocation mobile platform

Publications (2)

Publication Number Publication Date
CN106570118A CN106570118A (en) 2017-04-19
CN106570118B true CN106570118B (en) 2020-08-07

Family

ID=58535821

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610945911.0A Active CN106570118B (en) 2016-11-02 2016-11-02 Report data processing system and method based on electric power material allocation mobile platform

Country Status (1)

Country Link
CN (1) CN106570118B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107066614A (en) * 2017-05-09 2017-08-18 北京京东尚科信息技术有限公司 Data creation method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101908056A (en) * 2009-06-03 2010-12-08 商业对象软件有限公司 Equipment and method from identification of random two-dimensional data centralization and abstract visualization point
CN103530401A (en) * 2013-10-23 2014-01-22 山东大学 Method for obtaining data and drawing graph based on web service
CN104484353A (en) * 2014-11-28 2015-04-01 华为技术有限公司 Data imaging method, data imaging device and database server
CN104965868A (en) * 2015-06-09 2015-10-07 广西中烟工业有限责任公司 Data inquiring and analyzing system and method based on WeChat public platform
CN105843945A (en) * 2016-04-08 2016-08-10 联动优势科技有限公司 Report generation method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060112123A1 (en) * 2004-11-24 2006-05-25 Macnica, Inc. Spreadsheet user-interfaced business data visualization and publishing system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101908056A (en) * 2009-06-03 2010-12-08 商业对象软件有限公司 Equipment and method from identification of random two-dimensional data centralization and abstract visualization point
CN103530401A (en) * 2013-10-23 2014-01-22 山东大学 Method for obtaining data and drawing graph based on web service
CN104484353A (en) * 2014-11-28 2015-04-01 华为技术有限公司 Data imaging method, data imaging device and database server
CN104965868A (en) * 2015-06-09 2015-10-07 广西中烟工业有限责任公司 Data inquiring and analyzing system and method based on WeChat public platform
CN105843945A (en) * 2016-04-08 2016-08-10 联动优势科技有限公司 Report generation method and system

Also Published As

Publication number Publication date
CN106570118A (en) 2017-04-19

Similar Documents

Publication Publication Date Title
CN101202665B (en) Method for generating graphical user interface
CN101834845B (en) SOAP client protocol encapsulating method based on TCP short connection
US10635436B2 (en) Compatibility method based on hybrid, adapter, operation device, system and computer-readable storage medium
CN112527528A (en) Data transmission method, device and storage medium based on message queue
CA2511912A1 (en) System and method for building and execution of platform-neutral generic services' client applications
CN107729139A (en) A kind of method and apparatus for concurrently obtaining resource
CN111343020A (en) Unified management method and device for multi-protocol Internet of things equipment
CN107621987B (en) Unmanned aerial vehicle general ground station software architecture system based on message
CN102567026B (en) Mobile solution constructing system and Mobile solution construction method
CN105786913A (en) Cloud manufacturing platform oriented ERP integrated database service interface encapsulation system and method
CN103747004A (en) Realizing method of internet of things communication protocol
CN111625585B (en) Access method, device, host and storage medium of hardware acceleration database
CN105068801A (en) Method and system for modifying json date format
CN106227545B (en) The design method and device of development platform
CN106570118B (en) Report data processing system and method based on electric power material allocation mobile platform
CN109725887A (en) Data interactive method, device and terminal device based on message research and development frame
US20220245080A1 (en) Method for communication of a componentized application, computing device and computer storage medium
CN102685195A (en) Application service combination method, device and system
CN112214236A (en) Method for building management system of application architecture of software rapid development platform
CN115145652A (en) Method, device, equipment and medium for creating data processing task
US20050160403A1 (en) Method for accessing an ERP from a mobile equipment unit
CN102404391A (en) WEB service invoking method oriented to interface
CN106445694A (en) Application access method, device and system
KR101592301B1 (en) Mobile integrated control server
KR20150124786A (en) mobile app and web unified development system using java script

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
GR01 Patent grant
GR01 Patent grant