CN101814064A - Establishment method of report template, report generation method and report system - Google Patents

Establishment method of report template, report generation method and report system Download PDF

Info

Publication number
CN101814064A
CN101814064A CN200910007000A CN200910007000A CN101814064A CN 101814064 A CN101814064 A CN 101814064A CN 200910007000 A CN200910007000 A CN 200910007000A CN 200910007000 A CN200910007000 A CN 200910007000A CN 101814064 A CN101814064 A CN 101814064A
Authority
CN
China
Prior art keywords
condition
assembly
interface
data source
parameter
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.)
Granted
Application number
CN200910007000A
Other languages
Chinese (zh)
Other versions
CN101814064B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2009100070003A priority Critical patent/CN101814064B/en
Publication of CN101814064A publication Critical patent/CN101814064A/en
Application granted granted Critical
Publication of CN101814064B publication Critical patent/CN101814064B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention relates to an establishment method of a report template, a report generation method and a report system. The establishment method of a report template comprises the following steps of: importing a condition component by the report system, wherein the condition component comprises a condition component interface generation method and a condition component input value acquisition method; establishing a condition parameter and selecting the reported condition component as a condition component used by the condition parameter; establishing a data source and setting an input parameter of the data source, wherein the input parameter of the data source is a return value of the input value acquisition method of the condition parameter in the condition component used by the condition parameter; and establishing the report template by utilizing the data source. By using the technical scheme provided by the embodiment of the invention, the report template generated by the report system can comprise various types of condition components so as to meet the requirement for the higher level application of the report system.

Description

The creation method of report form template, report form generation method and reporting system
Technical field
The present invention relates to field of computer technology, particularly a kind of creation method of report form template, report form generation method and reporting system.
Background technology
In the form performance history, the establishment of report form template is an important step, and referring to Fig. 1, in the prior art, the establishment of report form template comprises the steps:
101, reporting system is created conditional parameter according to the needs of report form template, and the title, data type of conditional parameter, attribute such as many-valued whether are set.
102, create data source according to the needs of report form template, the related above-mentioned conditional parameter of reporting system is to data source.
103, reporting system is according to the attribute of conditional parameter, automatically for this conditional parameter distributes corresponding condition assembly, such as text box, selection of time frame, list box etc.
104, reporting system utilizes data source, creates report form template.
Follow-up reporting system is integrated all conditions assembly to an interface that this template needs, and it is natural order in proper order, and the position of each condition assembly, size etc. by system's decision, as shown in Figure 2, are the condition interface of a form all.
In Fig. 2, " sort type consuming time ", " generating the user of form " and " generating the top n form that form expends time in the longest " are three conditional parameters, and attributes such as " whether many-valued " of its conditional parameter can influence the type of the condition assembly of this conditional parameter correspondence.
The inventor finds that there is following shortcoming at least in prior art in realizing process of the present invention:
Because whether many-valued etc. reporting system according to the attribute of conditional parameter (as the data type of conditional parameter), automatically distribute corresponding condition assembly for this conditional parameter, the report form template that reporting system is set up can't utilize some special assemblies, as tree-like assembly etc.
Summary of the invention
The embodiment of the invention provides a kind of creation method, report form generation method and reporting system of report form template, make reporting system can import condition assembly or condition interface from the outside, thereby make report form template can utilize some special assemblies, satisfy the higher level demands of applications of reporting system.
The embodiment of the invention provides a kind of method of creating report form template, comprising:
Reporting system imports the condition assembly; Described condition assembly comprises: formation condition assembly interfacial process and obtain condition assembly input value method;
Create conditional parameter, the condition assembly of selecting to be imported is the used condition assembly of described conditional parameter;
Create data source, the input parameter of described data source is set, the input parameter of described data source is a rreturn value of obtaining condition assembly input value method described in the used condition assembly of described conditional parameter;
Utilize described data source, create report form template.
The embodiment of the invention also provides a kind of generation method of form, comprising:
Obtain the condition interface configuration information, described condition interface configuration information comprises: the sign of the condition assembly that the conditional parameter at structure condition interface and described conditional parameter are used; The sign of the condition assembly that described conditional parameter is used is to be the sign of the described condition assembly of described conditional parameter selection in advance; Described condition assembly is to import in advance in the reporting system;
According to the sign of the used condition assembly of described conditional parameter, carry out the formation condition assembly interfacial process in the pairing condition assembly of sign of described condition assembly, to obtain condition assembly interface;
Utilize the condition interface of described condition assembly interface and described conditional parameter structure form;
The condition interface that shows described form;
Carry out and obtain condition assembly input value method in the described condition assembly, will obtain the input parameter of the rreturn value of condition assembly input value method as data source; The described rreturn value of obtaining condition assembly input value method is the input value of user at the conditional parameter in the condition interface of described form;
Resolve described data source, obtain the data that data source is returned;
The data that described data source is returned are filled out report form template, generate form.
The embodiment of the invention also provides a kind of method of creating report form template, comprising:
Reporting system imports the condition interface, and described condition interface comprises: formation condition interfacial process and obtain condition interface input value method; Wherein, described formation condition interfacial process comprises: the generation method of the condition assembly that conditional parameter and described conditional parameter are used;
Create data source, the described input parameter that obtains the rreturn value of condition interface input value method as data source is set;
Utilize described data source, create report form template.
The embodiment of the invention also provides a kind of generation method of form, comprising:
Formation condition interfacial process in the executive condition interface is to generate the condition interface of form; Described formation condition interfacial process comprises: the generation method of the condition assembly that conditional parameter and described conditional parameter are used; Described condition interface is to import in advance in the reporting system;
The condition interface that shows described form;
The condition of obtaining interface input value method in the executive condition interface is with the described input parameter that obtains the rreturn value of condition interface input value method as data source;
The resolution data source obtains the data that data source is returned;
The data that described data source is returned are filled out report form template, generate form.
The embodiment of the invention also provides a kind of reporting system, comprising:
The condition assembly imports module, is used to import the condition assembly; Described condition assembly comprises: formation condition assembly interfacial process and obtain condition assembly input value method;
Conditional parameter is provided with module, is used to create conditional parameter, and the condition assembly of selecting to be imported is the used condition assembly of described conditional parameter;
The data source administration module is used to create data source, and the input parameter of described data source is set, and the input parameter of described data source is a rreturn value of obtaining condition assembly input value method described in the used condition assembly of described conditional parameter;
The report form template creation module is used to utilize described data source, creates report form template.
The embodiment of the invention also provides a kind of reporting system, comprising:
Condition interface configuration information acquisition module is used for obtaining the condition interface configuration information from preserving module, and described condition interface configuration information comprises: the sign of the condition assembly that the conditional parameter at structure condition interface and described conditional parameter are used; The sign of the condition assembly that described conditional parameter is used is to be the sign of the described condition assembly of described conditional parameter selection in advance; Described condition assembly is to import in advance in the reporting system;
Condition analyzing component module is used for the sign according to the used condition assembly of described conditional parameter, carries out the formation condition assembly interfacial process in the pairing condition assembly of sign of described condition assembly, to obtain condition assembly interface;
Condition interface constructing module is used to utilize described condition assembly interface and described conditional parameter to construct the condition interface of form;
The condition interface display module is used to show the condition interface of described form;
The conditional value parsing module is used for the condition of the obtaining assembly input value method of executive condition assembly, to obtain the described rreturn value of obtaining condition assembly input value method; Described rreturn value and the user who obtains condition assembly input value method is corresponding to the input value of conditional parameter in the condition interface of described form;
The data source parsing module is used for the input parameter that obtains the rreturn value of condition assembly input value method as data source with described, and the resolution data source obtains the data that data source is returned;
The report form template parsing module is used for the data that described data source is returned are filled out report form template, generates form.
The embodiment of the invention also provides a kind of reporting system, comprising:
The condition interface imports module, is used to import the condition interface, and described condition interface comprises: formation condition interfacial process and obtain condition interface input value method; Wherein, described formation condition interfacial process comprises: the generation method of the condition assembly that conditional parameter and described conditional parameter are used;
The data source administration module is used to create data source, and the described input parameter that obtains the rreturn value of condition interface input value method as data source is set;
The report form template creation module is used to utilize described data source, creates report form template.
The embodiment of the invention also provides a kind of reporting system, comprising:
Condition interface parsing module is used for carrying out the formation condition interfacial process at described condition interface, to generate the condition interface of form; Described formation condition interfacial process comprises: the generation method of the condition assembly that conditional parameter and described conditional parameter are used; Described condition interface is to import in advance in the reporting system;
The condition interface display module is used to show the condition interface of described form;
The conditional value parsing module is used for the condition of the obtaining interface input value method at executive condition interface, obtains the described rreturn value of obtaining condition interface input value method; The described rreturn value of obtaining condition interface input value method is corresponding with the input value of user on the condition interface of described form;
The data source parsing module is used for the input parameter that obtains the rreturn value of condition interface input value method as data source with described, and the resolution data source obtains the data that data source is returned;
The report form template parsing module is used for the data that data source is returned are filled out report form template, generates form.
The reporting system of the embodiment of the invention imports the condition assembly from the outside, thereby the report form template that reporting system is set up can use the condition assembly of multiple pattern, so that the condition interface variation of form.
The reporting system of the embodiment of the invention imports the condition interface from the outside, formation condition interfacial process in this condition interface comprises: the generation method of the used condition assembly of conditional parameter and conditional parameter, the developer can develop the condition component generation method of multiple pattern, thereby the report form template that reporting system is set up can use the condition assembly of multiple pattern, so that the condition interface variation of form, thereby satisfy the higher level demands of applications of reporting system.
Description of drawings
The method flow diagram of the establishment report form template that Fig. 1 provides for prior art;
The condition interface synoptic diagram of the form that Fig. 2 provides for prior art;
The report form template creation method process flow diagram that Fig. 3 provides for the embodiment of the invention one;
The report form template creation method process flow diagram that Fig. 4 provides for the embodiment of the invention two;
The report form generation method process flow diagram that Fig. 5 provides for the embodiment of the invention three;
The report form generation method process flow diagram that Fig. 6 provides for the embodiment of the invention four;
Fig. 7 is the reporting system structural drawing that the embodiment of the invention five provides;
Fig. 8 is the reporting system structural drawing that the embodiment of the invention six provides;
Fig. 9 is the reporting system structural drawing that the embodiment of the invention seven provides;
Figure 10 is the reporting system structural drawing that the embodiment of the invention eight provides.
Embodiment
The embodiment of the invention one and embodiment two have described how to create report form template in the form development environment, its difference with the prior art is: reporting system imports condition assembly or the condition interface that the developer developed by routine interface, utilize the condition assembly and the condition interface that import to set up report form template, thereby the report form template that reporting system is set up can use the condition assembly of multiple pattern, so that the condition interface variation of form.
Embodiment one:
Consult Fig. 3, the embodiment of the invention one provides a kind of report form template creation method, creates report form template by importing the condition assembly, and its step specifically comprises:
301, reporting system imports the condition assembly by routine interface, and the condition assembly that can be developed in the third party system for the developer of condition assembly wherein is such as tree-like assembly etc.Wherein, the condition assembly of being developed comprises: the method at formation condition assembly interface and the method for obtaining condition assembly input value.
Concrete, below to be example, how to introduce in third party system exploitation condition assembly and import reporting system by Java development platform exploitation condition assembly, its concrete steps are as follows:
1) opens Java development platform (as Eclipse), create an engineering.
2) interface specification that provides according to reporting system is created a class, and such specifically can comprise following content:
public?interface?ConditionUIComponent
{
// obtain condition assembly input value
public?Object?getValue();
// formation condition assembly interface
public?void?initComponent(ConditionDesc?conditiondesc);
}
Wherein, public Object getValue () and public void initComponent (ConditionDescconditiondesc) are respectively the method and the method for obtaining condition assembly input value at formation condition assembly interface.
Wherein, it is as well known to those skilled in the art how writing generation tree type assembly interfacial process and obtaining tree type assembly input value method, does not repeat them here.
3) above-mentioned code is exported as the jar bag, this jar bag is imported reporting system.
302, the condition assembly that imports is managed, such as the sign of giving the condition assembly allocation identification that imports, change condition assembly or from reporting system deletion condition assembly etc.Wherein, the sign of condition assembly can be the title of condition assembly.
303, in reporting system, create conditional parameter, for this conditional parameter is selected the appropriate condition assembly, such as the condition assembly of selecting above-mentioned importing, and other attributes of conditional parameter are set, such as the data type of conditional parameter etc., preservation condition parameter and be the sign of the selected condition assembly of this conditional parameter, the information such as data type of conditional parameter.
Wherein, selecting the mode of appropriate condition assembly for this conditional parameter specifically can be: the condition component type that this conditional parameter is set is pointed to the condition assembly of certain importing.
304, create data source, the condition of obtaining assembly input value method rreturn value in the selected condition assembly is set as the input parameter of data source, data source is associated with above-mentioned conditional parameter.
Wherein, data source comprises: the form of data source, database information and rreturn value field;
Wherein the form of data source can be a storing process.
305, the rreturn value field in the reference data source is created report form template.
Below how illustrate by object lesson and to generate Reports module by importing the condition assembly:
Suppose to have 50 students, add music group, fine arts group and sports group respectively, the report form template that needs to generate is used for the student information statistics, the follow-up form that needs to generate is which student is each group comprise, form specifically comprises: the name (organizing the student's name that specifically comprises as each) that group name (as music group, fine arts group) and each concrete group are included, at this moment, can adopt following steps to generate report form template:
(1) import the condition assembly by routine interface: the condition assembly that supposition imports is a text box, in order to make reporting system can import text frame, can be by a newly-built class, the routine interface of expansion reporting system is realized in such, but specific implementation refer step 301.
(2) the condition assembly that imports is managed: such as being the condition assembly allocation identification that imports, the sign of preservation condition assembly.
(3) in reporting system, create conditional parameter: be in reporting system, to create conditional parameter " group name " in this example, and specify the pairing condition assembly of this conditional parameter, as " group name " text box corresponding to importing; Other attribute of conditional parameter also need be set, as " data type " attribute that conditional parameter " group name " is set is " character type ".
(4) according to the needs of report form template, create data source, above-mentioned conditional parameter is associated with data source: wherein, the condition of obtaining assembly input value method rreturn value in the corresponding condition assembly of conditional parameter " group name " can be set as the input parameter of data source, by this way, above-mentioned conditional parameter is associated with data source.
(5) the rreturn value field in the reference data source is created Reports module: specifically can be: when creating report form template, drag an empty form on template, two fields " group name " and " name " that first row of first row and secondary series write data source respectively.
So far, finished the establishment of a report form template, the corresponding data source of template, the corresponding a plurality of conditional parameters of this data source, corresponding corresponding a plurality of condition assemblies.After creating report form template, the condition interface of the form that is made of a plurality of condition assemblies is also determined thereupon, but the developer can also carry out some adjustment again to the pattern of the condition assembly of this report form template correspondence, such as size to the condition assembly, color, positions etc. are adjusted, concrete implementation is: what reporting system received developer's input is used to indicate the instruction that the pattern of the condition assembly of certain conditional parameter correspondence is adjusted, color to this condition assembly, size, positions etc. are adjusted, the object information of adjusting is kept in the reporting system, so that use during the condition interface of follow-up generation form.
As seen, the reporting system of the embodiment of the invention one imports the condition assembly from the outside, this condition assembly is the condition assembly that the developer develops, therefore multiple pattern can be arranged, thereby the report form template that reporting system is set up can use the condition assembly of multiple pattern, so that the condition interface variation of form; Providing simultaneously can be in the ability at the condition interface of form development environment inediting form, with attributes such as the size of controlled condition assembly, length, positions, thereby satisfies the higher level demands of applications of reporting system.
Embodiment two:
Consult Fig. 4, the embodiment of the invention two provides a kind of report form template creation method, creates report form template by importing the condition interface, and its step specifically comprises:
401, reporting system imports the condition interface by routine interface.Wherein, the condition interface that described condition interface is developed in the third party system for the developer comprises: the method at formation condition interface and the method for obtaining condition interface input value.Wherein, the method at formation condition interface comprises: the generation method at the condition assembly interface that conditional parameter and this conditional parameter are used is provided with the program of pattern, size and the relative position relation of each condition assembly; The method at this formation condition interface can also comprise: the program that the incidence relation between the condition assembly is set.
Concrete, below to be example, how to introduce in third party system exploitation condition interface and import reporting system by Java development platform exploitation condition interface, its concrete steps are as follows:
1) opens Java development platform (as Eclipse), create an engineering.
2) interface specification that provides according to reporting system is created a class, and such specifically can comprise following content:
public?interface?ConditionUi
{
/**
* formation condition interface
* @0, the field index in representative data source is 0
* @conditions, conditional parameter title tabular array
*/
public?Component?getUi(Condition?acondition?[])throws?ReportException;
// obtain condition interface input value
public?Condition?[]?getValues(Component?component);
}
Wherein, public Component getUi (Condition acondition []) throws ReportException is the formation condition interfacial process; Public Condition [] getValues (Componentcomponent) is for obtaining condition interface input value method; In this formation condition interfacial process, can comprise the incidence relation program that is provided with between the condition assembly.For example, the method for supposing the formation condition interface comprises: the generation method at the second condition assembly interface that the generation method at the first condition assembly interface that first condition parameter, second condition parameter, first condition parameter are used and second condition parameter are used; Incidence relation program between first condition assembly and the second condition assembly can also be set in the method at this formation condition interface, specifically can be in the following way:
Write the trigger event code in the state change StateChanged of first condition assembly incident, promptly when the numerical value of first condition assembly changed, the attribute of corresponding second condition assembly changed.
Wherein, the numerical value of first assembly is the user input values that obtains in the input value method rreturn value of condition interface should first assembly; The attribute of second condition assembly can be the optional numerical value of second assembly, whether status attribute, the following explanation that gives an actual example such as hide:
The assumed conditions parameter is " province " and " city ", and " province " optionally numerical value comprises: Shanghai, Guangdong etc.Set in advance the incidence relation of first condition assembly and second condition assembly, such as selecting " Guangdong " to economize as if the user, the optional numerical value that the second condition assembly then is set becomes " Guangdong " automatically and economizes the city that is comprised; If user's selection " Shanghai ", then hidden conditional parameter " city " and corresponding second condition assembly.
3) above-mentioned code is exported as the jar bag, this jar bag is imported reporting system.
402, the condition interface that imports is managed, such as being the condition interface allocation identification that just imports, the sign at change condition interface, perhaps from system, delete condition interface etc., and the title at preservation condition interface, wherein, the sign at condition interface can be the title at condition interface.
403, create data source, the rreturn value of obtaining condition interface input value method by setting is the input parameter of data source, data source is associated with the condition interface of above-mentioned importing.
Wherein, data source comprises: the form of data source, database information and rreturn value field;
Wherein the form of data source can be a storing process.
404, the rreturn value field in the reference data source is created report form template.
As seen, the reporting system of the embodiment of the invention two imports the condition interface from the outside, formation condition interfacial process in this condition interface comprises: the generation method of the condition assembly that conditional parameter and conditional parameter are used, because the developer can develop the condition assembly of multiple pattern, therefore the condition interface that imports in the reporting system comprises the generation method of the condition assembly of multiple pattern, thereby the report form template that reporting system is set up can use the condition assembly of multiple pattern.Simultaneously because the formation condition interfacial process in the condition interface that imports can comprise the incidence relation program between the condition assembly, so that the report form template that system generates can utilize the condition assembly of interaction relation, thereby satisfy the higher level demands of applications of reporting system.
As above embodiment one and embodiment two are described in how to set up report form template in the form development environment, and following embodiment three and embodiment four are described in the form running environment how to generate form by report form template.
Embodiment three:
Consult Fig. 5, the embodiment of the invention three provides a kind of report form generation method, and this method is provided by the report form template that provides based on embodiment one, generates the process of form, and this method specifically comprises:
501, obtain the condition interface configuration information.
Wherein, the condition interface configuration information comprises: each conditional parameter that the condition interface comprised, the data type of this conditional parameter and for the sign of the selected condition assembly of this conditional parameter etc.
502, according to the sign of the condition assembly of selecting for each conditional parameter, carry out formation condition assembly interfacial process in the pairing condition assembly of this condition component identification, to generate this condition assembly interface.
503, utilize each condition assembly interface of conditional parameter and generation, constitute the condition interface and the demonstration of form.If when creating report form template, reporting system has been preserved the object information that the color of condition assembly, size, position etc. are adjusted, then each condition assembly interface of reporting system utilization adjustment object information, conditional parameter and generation in this step constitutes the condition interface and the demonstration of form.
504, condition assembly input value method is obtained in execution, will obtain the input parameter of the rreturn value (being the input value of user at this conditional parameter) of condition assembly input value method as data source, and the resolution data source obtains the data that data source is returned.
Wherein, the resolution data source, the concrete mode of the data that the acquisition data source is returned can be: data source will be obtained the rreturn value of condition assembly input value method and pass to storing process, storing process is according to this rreturn value, in database, search data, the data that find are returned to data source, and reporting system obtains the data that data source is returned.
Illustrate, user's conditional parameter in the condition interface is when selecting " Guangdong " in the condition assembly in " province ", the rreturn value of " obtaining condition assembly input value " method of this condition assembly is " Guangdong ", reporting system is with the input parameter of this rreturn value as data source, and the data that data source is returned then are the data that meet this condition of Guangdong Province.
505, the data that data source is returned are filled in the report form template, finally generate form.
As seen, the report form template that the embodiment of the invention three utilizes embodiment one to provide, in the report generation process, by obtaining each conditional parameter that the condition interface comprised and being the sign of the selected condition assembly of respective conditions parameter, and the formation condition assembly interfacial process in the condition assembly that sign identified of executive condition assembly, obtain condition assembly interface, make the condition assembly variation on the condition interface of form of formation, can comprise some specific conditions assemblies, such as tree type assembly etc., thereby satisfy the higher level demands of applications of reporting system.
The instantiation of continuous the foregoing description one illustrates how to generate form:
(1), obtain the condition interface configuration information, its condition interface configuration information comprises: the sign of conditional parameter " group name " and corresponding condition assembly;
(2), according to the sign of the condition assembly of respective conditions parameter " group name ", carry out formation condition assembly interfacial process in this condition assembly, obtain the condition assembly interface of respective conditions parameter " group name ".
(3), utilize conditional parameter " group name " and the above-mentioned condition assembly interface that obtains, obtain the condition interface of form.
(4), condition assembly input value method is obtained in execution, obtain obtaining the rreturn value of condition assembly input value method, this rreturn value is the input value of user at conditional parameter " group name ", such as " sports group ", with the input parameter of rreturn value " sports group " as data source, data source is passed to storing process with rreturn value " sports group ", this storing process is according to " sports group ", in database, search the student's of adding " sports group " name, these students' name is returned to data source, and the data source rreturn value that reporting system obtains comprises: the name that adds the student of " sports group ".
(5), add the rreturn value (name that adds the student of " sports group ") of data source to report form template, the generation form.
Embodiment four:
Consult Fig. 6, the embodiment of the invention four provides a kind of report form generation method, and this method is provided by the report form template that provides based on embodiment two, generates the process of form, and this method specifically comprises:
601, obtain the condition interface configuration information, the condition interface configuration information in this step is the sign at condition interface, such as the title at condition interface.
602, according to the sign at condition interface, find corresponding condition interface, carry out the formation condition interfacial process in this condition interface, to obtain the condition interface of form.
603, the condition interface that shows form.
604, condition interface input value method is obtained in execution, obtains obtaining condition interface input value method rreturn value, and with the input parameter of this rreturn value as data source, the resolution data source obtains the data that data source is returned.
Wherein, the resolution data source, the specific implementation of the data that the acquisition data source is returned can adopt following dual mode, but is not limited to following dual mode:
First kind of mode: will obtain the input parameter of the rreturn value of condition interface input value method as data source, data source is passed to storing process with it, storing process is broken down into the input value of user to each conditional parameter on the condition interface according to predetermined rule, according to the input value of user to each conditional parameter on the condition interface, in database, search data, the data that find are returned to data source, and data source returns to reporting system with data.
Wherein, storing process is broken down into the user according to predetermined rule and can adopts the input value of each conditional parameter on the condition interface but be not limited to following mode: the rreturn value that condition interface input value method is obtained in supposition is: character 1; Character 2; Character 3; The rule that the storing process basis is scheduled to (this rule usefulness "; " decompose numerical value), obtaining character 1, character 2 and character 3 after the rreturn value of obtaining condition interface input value method decomposed, it is respectively the input value of user to 3 conditional parameters on the condition interface.
The second way: will obtain the input parameter of the rreturn value of condition interface input value method as data source, data source is broken down into the input value of each conditional parameter on user's respective conditions interface according to predetermined rule, the input value of each conditional parameter on user's respective conditions interface is returned to storing process, storing process is according to the input value of each conditional parameter on user's respective conditions interface, in database, search data, the data that find are returned to data source, and data source returns to reporting system with data.
Wherein, data source is similar to the processing mode of storing process in above-mentioned first kind of mode according to the mode that input value adopted that predetermined rule is broken down into each conditional parameter on user's respective conditions interface, does not repeat them here.
605, the data that data source is returned are filled in the report form template, finally generate form.
As seen, the report form template that the embodiment of the invention four utilizes embodiment two to provide, in the report generation process, formation condition interfacial process in the executive condition interface, to obtain the condition interface of form, because the formation condition interfacial process in this condition interface comprises: the generation method of the condition assembly of the conditional parameter correspondence on this condition interface, the developer can develop the condition assembly of multiple pattern, therefore, can make the condition assembly variation on the condition interface of form of demonstration, can comprise some specific conditions assemblies, such as tree type assembly etc., and the data linkage between can the realization condition assembly, thereby satisfy the higher level demands of applications of reporting system.
Embodiment five:
Consult Fig. 7, the embodiment of the invention five provides a kind of reporting system, is used to utilize the condition building component report form template of importing, and this reporting system comprises:
The condition assembly imports module 701, is used to import the condition assembly; Described condition assembly comprises: formation condition assembly interfacial process and obtain condition assembly input value method;
Conditional parameter is provided with module 702, is used to create conditional parameter, and the condition assembly of selecting to be imported is the used condition assembly of described conditional parameter;
Preserve module 703, be used for the sign of the used condition assembly of preservation condition parameter and described conditional parameter;
Data source administration module 704 is used to create data source, and it is the input parameter of data source that the rreturn value of obtaining condition assembly input value method in the used condition assembly of conditional parameter is set;
Report form template creation module 705 is used to utilize described data source, creates report form template.
This reporting system also comprises: condition assembly management module 706, be used to manage the condition assembly of importing, can be the sign of the condition assembly allocation identification of firm importing or change condition assembly or from reporting system deletion condition assembly, and the sign of the condition assembly that conditional parameter and described conditional parameter is used is passed to and is preserved module 703.
This reporting system also comprises: condition layout setting module 707, be used to receive the instruction of the pattern of indicating the used condition assembly of regularization condition parameter, pattern to described condition assembly is adjusted, such as, such as the size of condition assembly, color, position etc. are adjusted, will adjust that object information is saved in described preservation module 703 so that use during the condition interface of follow-up generation form.
As seen, the reporting system of the embodiment of the invention five imports the condition assembly from the outside, this condition assembly is the condition assembly that the developer develops, this condition assembly can have multiple pattern, thereby the report form template that reporting system is set up can use the condition assembly of multiple pattern, so that the condition interface variation of form; Provide the ability at the condition interface that can edit form simultaneously, attributes such as the size of controlled condition assembly, length, position, thereby satisfied demand to the higher application level of reporting system.
Embodiment six:
Consult Fig. 8, the embodiment of the invention six provides a kind of reporting system, is used for utilizing the resulting report form template of condition assembly of embodiment five importings, generates form, and this reporting system comprises:
Condition interface configuration information acquisition module 801 is used for obtaining the condition interface configuration information from preserving module, and described condition interface configuration information comprises: the sign of the condition assembly that the conditional parameter at structure condition interface and described conditional parameter are used; The sign of the condition assembly that described conditional parameter is used is to be the sign of the described condition assembly of described conditional parameter selection in advance; Described condition assembly is to import in advance in the reporting system;
Condition analyzing component module 802 is used for the sign according to the used condition assembly of described conditional parameter, carries out the formation condition assembly interfacial process in the pairing condition assembly of sign of described condition assembly, to obtain condition assembly interface;
Condition interface constructing module 803 is used to utilize described condition assembly interface and described conditional parameter to construct the condition interface of form; Concrete, write down the adjustment object information if preserve in the module, can utilize and preserve adjustment object information, condition assembly interface and the conditional parameter that writes down in the module, the condition interface of structure form.
Condition interface display module 804 is used to show the condition interface of described form;
Conditional value parsing module 805, the condition of the obtaining assembly input value method that is used for the executive condition assembly, obtaining the described rreturn value of obtaining condition assembly input value method, described rreturn value and the user who obtains condition assembly input value method is corresponding to the input value of conditional parameter in the condition interface of described form;
Data source parsing module 806 is used for the input parameter that obtains the rreturn value of condition assembly input value method as data source with described, and the resolution data source obtains the data that data source is returned;
Report form template parsing module 807 is used for the data that data source is returned are filled out report form template, generates form.
The reporting system that the embodiment of the invention six provides is according to the sign of the used condition assembly of conditional parameter, find this condition assembly, formation condition assembly interfacial process in the executive condition assembly, to obtain condition assembly interface, utilize condition assembly interface and conditional parameter, constitute the condition interface and the demonstration of form, make the condition assembly variation on the condition interface of form of demonstration, can comprise some specific conditions assemblies, such as tree type assembly etc., thereby satisfy the higher level demands of applications of reporting system.
Embodiment seven:
Consult Fig. 9, the embodiment of the invention seven provides a kind of reporting system, is used to utilize the condition interface of importing to create report form template, and this reporting system comprises:
The condition interface imports module 901, is used to import the condition interface, and described condition interface comprises: formation condition interfacial process and obtain condition interface input value method; Wherein, described formation condition interfacial process comprises: the generation method of the condition assembly that conditional parameter and described conditional parameter are used;
Data source administration module 902 is used to create data source, and the described input parameter that obtains the rreturn value of condition interface input value method as data source is set;
Report form template creation module 903 is used to utilize described data source, creates report form template.
Preferably, the interlock of the embodiment of the invention between can the realization condition assembly, at this moment, comprise the incidence relation program that is provided with between first condition assembly and the second condition assembly in the formation condition interfacial process, concrete mode can be: write the trigger event code in the state change StateChanged of first condition assembly incident, promptly when the numerical value of first condition assembly changed, the attribute of corresponding second condition assembly changed.
This reporting system can also comprise: condition interface management module 904, be used for the condition interface that administrative institute imports, and can be the condition interface allocation identification of firm importing, perhaps change the sign at condition interface or deletion condition interface from reporting system.Wherein, the sign at condition interface can be the name at condition interface.
The reporting system of the embodiment of the invention seven imports the condition interface from the outside, formation condition interfacial process in this condition interface comprises: the generation method of the condition assembly that conditional parameter and conditional parameter are used, the developer can develop the condition assembly of multiple pattern, thereby the report form template that reporting system is set up can use the condition assembly of multiple pattern, such as tree type assembly etc.; Simultaneously because the formation condition interfacial process in the condition interface that imports can comprise the incidence relation program between the condition assembly, so that the report form template that system generates can utilize the condition assembly of interaction relation, thereby satisfy the application demand higher level to reporting system.
Embodiment eight:
Consult Figure 10, the embodiment of the invention eight provides a kind of reporting system, is used for utilizing the resulting report form template in condition interface of embodiment seven importings, generates form, and this reporting system comprises:
Condition interface parsing module 1001 is used for the formation condition interfacial process at executive condition interface, to generate the condition interface of form; Described formation condition interfacial process comprises: the generation method of the condition assembly that conditional parameter and described conditional parameter are used; Described condition interface is to import in advance in the reporting system;
If a plurality of conditions interface is arranged in the reporting system, then the condition interface management module of reporting system can be the condition interface allocation identification of firm importing, and wherein, the sign at condition interface can be the name at condition interface; At this moment, reporting system also comprises: condition interface configuration information acquisition module 1006, be used to obtain the sign at condition interface, this moment, parsing module 1001 signs according to the condition interface that gets access in condition interface found corresponding condition interface, formation condition interfacial process in the executive condition interface is to generate the condition interface of form;
Condition interface display module 1002 is used to show the condition interface of described form;
Conditional value parsing module 1003, the condition of the obtaining interface input value method that is used for the executive condition interface, obtain obtaining the rreturn value of condition interface input value method, the described rreturn value of obtaining condition interface input value method is corresponding with the input value of user on the condition interface of described form;
Data source parsing module 1004 is used for the input parameter that obtains the rreturn value of condition interface input value method as data source with described, and the resolution data source obtains the data that data source is returned;
Report form template parsing module 1005 is used for the data that data source is returned are filled out report form template, generates form.
The embodiment of the invention eight is in the report generation process, formation condition interfacial process in the executive condition interface, to obtain the condition interface of form, because the formation condition interfacial process in this condition interface comprises: the generation method of the condition assembly of the conditional parameter correspondence on this condition interface, the developer can develop the condition assembly of multiple pattern, therefore, can make the condition assembly variation on the condition interface of form of demonstration, can comprise some specific conditions assemblies, such as tree type assembly etc., and the data linkage between can the realization condition assembly, thereby satisfy the higher level demands of applications of reporting system.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method, be to instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-OnlyMemory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
More than creation method, report form generation method and the reporting system of the report form template that the embodiment of the invention provided is described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (15)

1. a method of creating report form template is characterized in that, comprising:
Reporting system imports the condition assembly; Described condition assembly comprises: formation condition assembly interfacial process and obtain condition assembly input value method;
Create conditional parameter, the condition assembly of selecting to be imported is the used condition assembly of described conditional parameter;
Create data source, the input parameter of described data source is set, the input parameter of described data source is a rreturn value of obtaining condition assembly input value method described in the used condition assembly of described conditional parameter;
Utilize described data source, create report form template.
2. method according to claim 1 is characterized in that,
After reporting system imported the condition assembly, this method also comprised:
For described condition assembly allocation identification, the change described condition assembly sign or delete described condition assembly.
3. method according to claim 1 is characterized in that,
After creating report form template, this method also comprises:
Receive the instruction of the pattern of the used condition assembly of indication regularization condition parameter, the pattern of described condition assembly is adjusted, object information adjusted in record.
4. according to each described method of claim 1-3, it is characterized in that,
The step that reporting system imports the condition assembly comprises:
The interface that utilizes reporting system to provide imports to described reporting system with the class of the condition assembly correspondence created, and the class of described condition assembly correspondence comprises: formation condition assembly interfacial process and obtain condition assembly input value method.
5. the generation method of a form is characterized in that, comprising:
Obtain the condition interface configuration information, described condition interface configuration information comprises: the sign of the condition assembly that the conditional parameter at structure condition interface and described conditional parameter are used; The sign of the condition assembly that described conditional parameter is used is to be the sign of the described condition assembly of described conditional parameter selection in advance; Described condition assembly is to import in advance in the reporting system;
According to the sign of the used condition assembly of described conditional parameter, carry out the formation condition assembly interfacial process in the pairing condition assembly of sign of described condition assembly, obtain condition assembly interface;
Utilize the condition interface of described condition assembly interface and described conditional parameter structure form;
The condition interface that shows described form;
Carry out and obtain condition assembly input value method in the described condition assembly, will obtain the input parameter of the rreturn value of condition assembly input value method as data source; The described rreturn value of obtaining condition assembly input value method is the input value of user at the conditional parameter in the condition interface of described form;
Resolve described data source, obtain the data that data source is returned;
The data that described data source is returned are filled out report form template, generate form.
6. a method of creating report form template is characterized in that, comprising:
Reporting system imports the condition interface, and described condition interface comprises: formation condition interfacial process and obtain condition interface input value method; Wherein, described formation condition interfacial process comprises: the generation method of the condition assembly that conditional parameter and described conditional parameter are used;
Create data source, the described input parameter that obtains the rreturn value of condition interface input value method as data source is set;
Utilize described data source, create report form template.
7. want 6 described methods according to right, it is characterized in that,
After reporting system imported the condition interface, this method also comprised:
For the sign at described condition interface allocation identification, change described condition interface or delete described condition interface.
8. according to claim 6 or 7 described methods, it is characterized in that,
Described formation condition interfacial process comprises: the generation method of the second condition assembly that generation method, the second condition parameter of the first condition assembly that first condition data, second condition parameter, first condition parameter are used is used and the first condition assembly is set and the second condition assembly between the incidence relation program.
9. the generation method of a form is characterized in that, comprising:
Formation condition interfacial process in the executive condition interface is to generate the condition interface of form; Described formation condition interfacial process comprises: the generation method of the condition assembly that conditional parameter and described conditional parameter are used; Described condition interface is to import in advance in the reporting system;
The condition interface that shows described form;
The condition of obtaining interface input value method in the executive condition interface is with the described input parameter that obtains the rreturn value of condition interface input value method as data source;
The resolution data source obtains the data that data source is returned;
The data that described data source is returned are filled out report form template, generate form.
10. a reporting system is characterized in that, comprising:
The condition assembly imports module, is used to import the condition assembly; Described condition assembly comprises: formation condition assembly interfacial process and obtain condition assembly input value method;
Conditional parameter is provided with module, is used to create conditional parameter, and the condition assembly of selecting to be imported is the used condition assembly of described conditional parameter;
The data source administration module is used to create data source, and the input parameter of described data source is set, and the input parameter of described data source is a rreturn value of obtaining condition assembly input value method described in the used condition assembly of described conditional parameter;
The report form template creation module is used to utilize described data source, creates report form template.
11. system according to claim 10 is characterized in that, also comprises:
Preserve module, be used for the sign of the used condition assembly of preservation condition parameter and described conditional parameter.
12. system according to claim 10 is characterized in that, also comprises:
Condition layout setting module is used to receive the instruction of the pattern of indicating the used condition assembly of regularization condition parameter, and the pattern of described condition assembly is adjusted, and object information adjusted in record.
13. a reporting system is characterized in that, comprising:
Condition interface configuration information acquisition module is used for obtaining the condition interface configuration information from preserving module, and described condition interface configuration information comprises: the sign of the condition assembly that the conditional parameter at structure condition interface and described conditional parameter are used; The sign of the condition assembly that described conditional parameter is used is to be the sign of the described condition assembly of described conditional parameter selection in advance; Described condition assembly is to import in advance in the reporting system;
Condition analyzing component module is used for the sign according to the used condition assembly of described conditional parameter, carries out the formation condition assembly interfacial process in the pairing condition assembly of sign of described condition assembly, to obtain condition assembly interface;
Condition interface constructing module is used to utilize described condition assembly interface and described conditional parameter to construct the condition interface of form;
The condition interface display module is used to show the condition interface of described form;
The conditional value parsing module is used for the condition of the obtaining assembly input value method of executive condition assembly, to obtain the described rreturn value of obtaining condition assembly input value method; Described rreturn value and the user who obtains condition assembly input value method is corresponding to the input value of conditional parameter in the condition interface of described form;
The data source parsing module is used for the input parameter that obtains the rreturn value of condition assembly input value method as data source with described, and the resolution data source obtains the data that data source is returned;
The report form template parsing module is used for the data that described data source is returned are filled out report form template, generates form.
14. a reporting system is characterized in that, comprising:
The condition interface imports module, is used to import the condition interface, and described condition interface comprises: formation condition interfacial process and obtain condition interface input value method; Wherein, described formation condition interfacial process comprises: the generation method of the condition assembly that conditional parameter and described conditional parameter are used;
The data source administration module is used to create data source, and the described input parameter that obtains the rreturn value of condition interface input value method as data source is set;
The report form template creation module is used to utilize described data source, creates report form template.
15. a reporting system is characterized in that, comprising:
Condition interface parsing module is used for carrying out the formation condition interfacial process at described condition interface, to generate the condition interface of form; Described formation condition interfacial process comprises: the generation method of the condition assembly that conditional parameter and described conditional parameter are used; Described condition interface is to import in advance in the reporting system;
The condition interface display module is used to show the condition interface of described form;
The conditional value parsing module is used for the condition of the obtaining interface input value method at executive condition interface, obtains the described rreturn value of obtaining condition interface input value method; The described rreturn value of obtaining condition interface input value method is corresponding with the input value of user on the condition interface of described form;
The data source parsing module is used for the input parameter that obtains the rreturn value of condition interface input value method as data source with described, and the resolution data source obtains the data that data source is returned;
The report form template parsing module is used for the data that data source is returned are filled out report form template, generates form.
CN2009100070003A 2009-02-23 2009-02-23 Establishment method of report template, report generation method and report system Expired - Fee Related CN101814064B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100070003A CN101814064B (en) 2009-02-23 2009-02-23 Establishment method of report template, report generation method and report system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100070003A CN101814064B (en) 2009-02-23 2009-02-23 Establishment method of report template, report generation method and report system

Publications (2)

Publication Number Publication Date
CN101814064A true CN101814064A (en) 2010-08-25
CN101814064B CN101814064B (en) 2012-04-04

Family

ID=42621322

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100070003A Expired - Fee Related CN101814064B (en) 2009-02-23 2009-02-23 Establishment method of report template, report generation method and report system

Country Status (1)

Country Link
CN (1) CN101814064B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103399844A (en) * 2013-08-16 2013-11-20 无锡城市云计算中心有限公司 Report generation method and generation device
CN106940721A (en) * 2017-03-15 2017-07-11 百望电子发票数据服务有限公司 A kind of data processing method and system of self-defined choice box
CN103577610B (en) * 2013-11-22 2017-11-03 河海大学 A kind of method for realizing that querying condition links in self-defined report
CN107316185A (en) * 2017-07-10 2017-11-03 唐郡 The method for building up of testing process and system is set up in a kind of LIMS systems
CN111026469A (en) * 2018-10-09 2020-04-17 阿里巴巴集团控股有限公司 Condition processing method and device and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100511138C (en) * 2007-07-02 2009-07-08 华为技术有限公司 Generation method and apparatus for report condition inputting interface

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103399844A (en) * 2013-08-16 2013-11-20 无锡城市云计算中心有限公司 Report generation method and generation device
CN103399844B (en) * 2013-08-16 2017-02-08 无锡城市云计算中心有限公司 Report generation method and generation device
CN103577610B (en) * 2013-11-22 2017-11-03 河海大学 A kind of method for realizing that querying condition links in self-defined report
CN106940721A (en) * 2017-03-15 2017-07-11 百望电子发票数据服务有限公司 A kind of data processing method and system of self-defined choice box
CN106940721B (en) * 2017-03-15 2020-02-14 国信电子票据平台信息服务有限公司 Data processing method and system for user-defined selection box
CN107316185A (en) * 2017-07-10 2017-11-03 唐郡 The method for building up of testing process and system is set up in a kind of LIMS systems
CN107316185B (en) * 2017-07-10 2021-03-16 广州莱伯世开科技有限公司 Method and system for establishing detection process in LIMS (laser induced mechanical breakdown spectroscopy) system
CN111026469A (en) * 2018-10-09 2020-04-17 阿里巴巴集团控股有限公司 Condition processing method and device and electronic equipment
CN111026469B (en) * 2018-10-09 2023-04-11 阿里巴巴集团控股有限公司 Condition processing method and device and electronic equipment

Also Published As

Publication number Publication date
CN101814064B (en) 2012-04-04

Similar Documents

Publication Publication Date Title
CN116225429A (en) Pulling type component frame-based ipage webpage type low-code development platform
US20190102370A1 (en) System and method for convergent document collaboration
CN106250128A (en) The display processing method of user interface and device
CN105487864A (en) Method and device for automatically generating code
CN112328212A (en) Rapid development platform based on separation of front end and rear end of engine mode and use method thereof
CN102841938A (en) Method and system for generating parameterized report
CN109933311A (en) A kind of information system creation method and relevant apparatus
CN103810150A (en) Automatic relation nestable questionnaire generating method and device
CN105045869A (en) Multi-data center based natural resource geospatial data organization method and system
CN101814064B (en) Establishment method of report template, report generation method and report system
CN101488086A (en) Software generation method and apparatus based on field model
CN114461200A (en) Low-code development application and method based on cloud SaaS platform
CN112463149B (en) Software-defined satellite-oriented reusable code library construction method and device
CN106649867A (en) Object data organization method
CN102779037A (en) Visual programming method for automatically generating and uniformly maintaining java items
Silva et al. Integrating big data into the computing curricula
US20080155479A1 (en) Method and Apparatus for Building Interactive Software Applications
CN105069096A (en) Architecture method and architecture system for user-defined worksheet
CN103257987A (en) Rule-based distributed log service implementation method
Singh et al. Spatial data analysis with ArcGIS and MapReduce
US20140130008A1 (en) Generating information models
US10235100B2 (en) Optimizing column based database table compression
Chang [Retracted] An Integrated Development Model of Cultural and Creative Industry and Rural Tourism Industry Based on Data Mining
Shatnawi et al. Applying a novel clustering technique based on FP-tree to university timetabling problem: A case study
CN111752552A (en) Industrial software design and application platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120404

Termination date: 20190223