Summary of the invention
In view of this, the object of the invention is to solve traditional electric power data that manually obtains, generating report forms then, the problem of inefficiency, the embodiment of the present invention provides a kind of electric power data acquisition methods and device, and technical scheme is as follows:
An electric power data report form generation method, is characterized in that, comprising:
Obtain at least one class data type in electric power system data type, wherein, described data type to there being corresponding main system, is stored at least one class data type in database in described main system, and every class data type is stored at least one electric power data;
According to the data type of obtaining, the main system under the data type of obtaining described in filtering out in described database;
According to the described main system filtering out, the electric power data of the main system storage filtering out described in recalling in described database;
The electric power data recalling is generated to electric power data form.
Preferably, in above-mentioned electric power data report form generation method, also comprise:
By described electric power data report output to client.
Preferably, in above-mentioned electric power data report form generation method, also comprise:
Obtain the electric power data of electric power data report form template and each main system;
The electric power data of described main system is stored to described database;
According to described report form template, each electric power data in described database is gathered, obtain respectively key word, according to described key word, electric power data is generated to achievement data tuple;
Described achievement data tuple is generated to summary sheet.
Preferably, in above-mentioned electric power data report form generation method, the data type that described basis is obtained, the main system described in the data type of obtaining described in filtering out in described database, comprising:
According to the described data type of obtaining, the target keywords of the data type of obtaining described in extraction;
In described summary sheet, extract and the corresponding target achievement data of described target keywords tuple;
Main system under the data type of obtaining described in obtaining according to described target index tuple.
The embodiment of the present invention also provides a kind of electric power data report generation device, comprising:
The first acquiring unit, be used for obtaining at least one class data type of electric power system data type, wherein, described data type in database to there being corresponding main system, in described main system, store at least one class data type, every class data type is stored at least one electric power data;
Screening unit, the data type of obtaining for basis, the main system under the data type of obtaining described in filtering out in described database;
Processing unit, for the main system filtering out described in basis, the electric power data of the main system storage filtering out described in recalling in described database;
Report generation unit, for generating electric power data form by the electric power data recalling.
Preferably, in above-mentioned electric power data report generation device, also comprise:
Output unit, for by described electric power data report output to client.
Preferably, in above-mentioned electric power data report generation device, also comprise:
Second acquisition unit, for obtaining the electric power data of electric power data report form template and each main system;
Storage unit, for being stored to described database by the electric power data of described main system;
Gather unit, for according to described report form template, each electric power data in described database is gathered, obtain respectively key word, according to described key word, electric power data is generated to achievement data tuple;
Summary sheet generation unit, for generating summary sheet by described achievement data tuple.
Preferably, in above-mentioned electric power data report generation device, described screening unit, comprising:
Keyword extraction module, for the data type of obtaining described in basis, the target keywords of the data type of obtaining described in extraction;
Data tuple extraction module, at described summary sheet, extracts and the corresponding target achievement data of described target keywords tuple;
Acquisition module, for the main system under the data type of obtaining described in obtaining according to described target index tuple.
The electric power data report form generation method that the embodiment of the present invention provides can generate electric power data form automatically by the electric power data in each main system, has solved traditional electric power data that manually obtains, generating report forms then, the problem of inefficiency.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Referring to Fig. 1, the embodiment of the present invention provides a kind of electric power data report form generation method, and method comprises:
Step 110: obtain at least one class data type in electric power system data type.
Wherein, data type to there being corresponding main system, is stored at least one class data type in database in main system, and every class data type is stored at least one electric power data.
Above-mentioned main system can comprise marketing system in electric system, power information acquisition system, OPEN3000, county telephone central office's production management system, DNS production management system, Reliability management system, outfit load on-line monitoring system, PI Database Systems etc., in each main system, store at least one class data type, every class data type is stored at least one electric power data, as stored power quality data type in power information acquisition system, in power quality data type, can comprise user's power consumption data, the energy data of electric energy meter etc.
Step 120: according to the data type of obtaining, filter out the main system under the data type of obtaining in database.
Wherein, database can be selected SqlServer2000 database, and this database has easy to use, the feature that stability is high.
In database, store electric power system data type, main system, electric power data that electric power system data type is corresponding.In main system, store at least one class data type, every class data type is stored at least one electric power data.
According to the data type of obtaining, in database, filter out the main system under the data type of obtaining, can comprise:
According to the data type of obtaining, extract the target keywords of the data type of obtaining, in database, extract and the corresponding target achievement data of target keywords tuple the main system under the data type that obtains obtaining according to target index tuple.
Step 130: according to the main system filtering out, recall the electric power data of the main system storage filtering out in database.
Step 140: the electric power data recalling is generated to electric power data form.
In other embodiments of the invention, generating electric power data form can also comprise afterwards:
By electric power data report output to client.
Client can be Web server, and user, by browser access Web server, obtains the electric power data form of above-mentioned generation.
The electric power data report form generation method that the embodiment of the present invention provides can generate electric power data form automatically by the electric power data in each main system, has solved traditional electric power data that manually obtains, generating report forms then, the problem of inefficiency.
Referring to Fig. 2, the embodiment of the present invention provides a kind of electric power data report form generation method, and method comprises:
Step 210: the electric power data that obtains electric power data report form template and each main system.
Step 220: the electric power data of main system is stored to database.
Step 230: according to report form template, each electric power data in database is gathered, obtain respectively key word, according to key word, electric power data is generated to achievement data tuple.
Wherein, key word can comprise " quality of power supply ", if what gather is current data, voltage data, frequency data, these data can be gathered, and obtains key word " quality of power supply ", then according to key word by electric power data generated data tuple.
Step 240: achievement data tuple is generated to summary sheet.
Step 250: obtain at least one class data type in electric power system data type.
Wherein, data type to there being corresponding main system, is stored at least one class data type in database in main system, and every class data type is stored at least one electric power data.
Above-mentioned main system can comprise marketing system in electric system, power information acquisition system, OPEN3000, county telephone central office's production management system, DNS production management system, Reliability management system, outfit load on-line monitoring system, PI Database Systems etc., in each main system, store at least one class data type, every class data type is stored at least one electric power data, as stored power quality data type in power information acquisition system, in power quality data type, can comprise user's power consumption data, the energy data of electric energy meter etc.
Step 260: according to the data type of obtaining, filter out the main system under the data type of obtaining in database.
Wherein, database can be selected SqlServer2000 database, and this database has easy to use, the feature that stability is high.
In database, store electric power system data type, main system, electric power data that electric power system data type is corresponding.In main system, store at least one class data type, every class data type is stored at least one electric power data.
Wherein, this step can specifically comprise:
According to the data type of obtaining, extract the target keywords of the data type of obtaining;
In summary sheet, extract and the corresponding target achievement data of target keywords tuple;
Main system under the data type that obtains obtaining according to target index tuple.
Step 270: according to the main system filtering out, recall the electric power data of the main system storage filtering out in database.
Step 280: the electric power data recalling is generated to electric power data form.
The electric power data report form generation method that the embodiment of the present invention provides can generate electric power data form automatically by the electric power data in each main system, has solved traditional electric power data that manually obtains, generating report forms then, the problem of inefficiency.
With reference to figure 3, Fig. 3 shows a kind of structural representation of electric power data report generation device, comprising:
The first acquiring unit U110, be used for obtaining at least one class data type of electric power system data type, wherein, data type in database to there being corresponding main system, in main system, store at least one class data type, every class data type is stored at least one electric power data;
Screening unit U120 for according to the data type obtained, filters out the main system under the data type of obtaining in database;
Processing unit U130 for according to the main system filtering out, recalls the electric power data of the main system storage filtering out in database;
Report generation unit U140, for generating electric power data form by the electric power data recalling.
The electric power data report generation rotor that the embodiment of the present invention provides can generate electric power data form automatically by the electric power data in each main system, has solved traditional electric power data that manually obtains, generating report forms then, the problem of inefficiency.
Further, electric power data report generation device also comprises:
Output unit, for by electric power data report output to client.
Client can be Web server, and user, by browser access Web server, obtains the electric power data form of above-mentioned generation.
With reference to figure 4, Fig. 4 shows a kind of structural representation of electric power data report generation device, and electric power data report generation device, except comprising the first acquiring unit U110, screening unit U120, processing unit U130, report generation unit U140, also comprises:
Second acquisition unit U150, for obtaining the electric power data of electric power data report form template and each main system;
Storage unit U160, for being stored to database by the electric power data of main system;
Gather unit U170, for according to report form template, each electric power data in database is gathered, obtain respectively key word, according to key word, electric power data is generated to achievement data tuple;
Summary sheet generation unit U180, for generating summary sheet by achievement data tuple.
With reference to figure 5, Fig. 5 shows a kind of structural representation of above-mentioned screening unit, and screening unit comprises:
Keyword extraction module U121, for according to the data type of obtaining, extracts the target keywords of the data type of obtaining;
Data tuple extraction module U122, at summary sheet, extracts and the corresponding target achievement data of target keywords tuple;
Acquisition module U123, for the main system under the data type that obtains obtaining according to target index tuple.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device in embodiment can be distributed in the device of embodiment according to embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from the present embodiment.The module of above-described embodiment can be merged into a module, also can further split into a plurality of submodules.
One of ordinary skill in the art will appreciate that all or part of processing in above-described embodiment method is to come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium.
Above-mentioned explanation to the disclosed embodiments, makes professional and technical personnel in the field can realize or use the present invention.To the multiple modification of these embodiment, will be apparent for those skilled in the art, General Principle as defined herein can, in the situation that not departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.