CN101944103A - Data query or statistics method and system based on public conditions - Google Patents

Data query or statistics method and system based on public conditions Download PDF

Info

Publication number
CN101944103A
CN101944103A CN2010102521467A CN201010252146A CN101944103A CN 101944103 A CN101944103 A CN 101944103A CN 2010102521467 A CN2010102521467 A CN 2010102521467A CN 201010252146 A CN201010252146 A CN 201010252146A CN 101944103 A CN101944103 A CN 101944103A
Authority
CN
China
Prior art keywords
window
condition
public
statistical
public condition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2010102521467A
Other languages
Chinese (zh)
Inventor
蔡忠良
陈耀辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZHANGZHOU SHUNHEDA SOFTWARE CO Ltd
Original Assignee
ZHANGZHOU SHUNHEDA SOFTWARE 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 ZHANGZHOU SHUNHEDA SOFTWARE CO Ltd filed Critical ZHANGZHOU SHUNHEDA SOFTWARE CO Ltd
Priority to CN2010102521467A priority Critical patent/CN101944103A/en
Publication of CN101944103A publication Critical patent/CN101944103A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Complex Calculations (AREA)

Abstract

The invention discloses data query or statistics method and system based on public conditions. The method comprises the following steps of: (A) generating a public condition window and setting at least one public query or statistics condition in the public condition window; (B) creating a calling window and inheriting the public condition window as a parent class; (C) calling the data query or statistics condition by the calling window for query or statistics; and (D) releasing the parent class of the calling window when the calling window is solely released. The data query or statistics method and system based on the public conditions, which are disclosed by the invention, can be extremely convenient to call primary codes according to the needs of the windows, thereby being capable of greatly reducing the software maintenance workload so as to decrease the software maintenance cost, simultaneously greatly improving the code reusability and shortening the software maturity.

Description

Data query or statistical method and system based on public condition
Technical field
The invention belongs to field of computer technology, relate to a kind of data query or statistical method, relate in particular to a kind of data query or statistical method based on public condition; Simultaneously, the invention still further relates to a kind of data query or statistical system based on public condition.
Background technology
The software product of the huge excellent performance of a function must face the shared problem of window; Because a window must have a series of inquiry or statistical condition.Existing inquiry or statistical method normally write code respectively at each window.Following deficiency will occur like this: the code repetition is many, difficult in maintenance, the product maturity stage is long, maintenance cost is high.
Whether there is method can allow software be implemented in a plurality of inquiries or the shared inquiry of statistical window energy or statistical condition and become the problem that a lot of software suppliers press for solution.
Summary of the invention
Technical matters to be solved by this invention is: a kind of data query or statistical method based on public condition is provided, can improves code reusability greatly, shorten the software maturity stage.
In addition, the present invention further provides a kind of data query or statistical system, can improve code reusability greatly, shorten the software maturity stage based on public condition.
For solving the problems of the technologies described above, the present invention adopts following technical scheme:
A kind of data query or statistical method based on public condition, described method comprises the steps:
Steps A, generation one public condition window are set at least one common query or statistical condition in this public condition window;
Window is called in step B, establishment, and inheriting public condition window is parent;
Step C, describedly call that window calls described common query or statistical condition is inquired about or added up;
Step D, when calling window and discharge oneself, this parent that calls window is also discharged in the lump.
As a preferred embodiment of the present invention, set some common queries or statistical condition in the described public condition window, each condition is arranged at respectively in the subwindow of described public condition window; The described window that calls is by being provided with the different values of variable, and as seen whether the subwindow of controlling a plurality of common queries in the public condition window or statistical condition correspondence.
As a preferred embodiment of the present invention, the condition in the described public condition window is placed on public condition window with the form of edit box control.
A kind of data query or statistical method based on public condition, described method comprises the steps:
Step 1, generation one public condition window are set some common queries or statistical condition in this public condition window, each condition is arranged at respectively in the subwindow of described public condition window;
Window is called in step 2, establishment, and inheriting public condition window is parent;
Step 3, the described window that calls be by being provided with the different values of variable, and as seen whether the subwindow of controlling a plurality of common queries in the public condition window or statistical condition correspondence;
Step 4, describedly call that window calls described common query or statistical condition is inquired about or added up;
Step 5, when calling window and discharge oneself, this parent that calls window is also discharged in the lump.
A kind of data query or statistical method based on public condition, described method comprises the steps:
Set at least one common query or statistical condition;
Calling described common query or statistical condition inquires about or adds up.
A kind of data query or statistical system based on public condition, described system comprises:
At least one common query or statistical condition in order to generate a public condition window, are set in public condition enactment unit in this public condition window;
Call the window creation unit, call window in order to establishment, inheriting described public condition window is the parent that calls window;
Inquiry or statistic unit are in order to call described that window calls described common query or statistical condition is inquired about or added up;
Call the window releasing unit,, this parent that calls window is also discharged in the lump in order to when calling window release oneself.
As a preferred embodiment of the present invention, set some common queries or statistical condition in the described public condition window, each condition is arranged at respectively in the subwindow of described public condition window; The described window that calls is by being provided with the different values of variable, and as seen whether the subwindow of controlling a plurality of common queries in the public condition window or statistical condition correspondence.
As a preferred embodiment of the present invention, the condition in the described public condition window is placed on public condition window with the form of edit box control.
A kind of data query or statistical system based on public condition, described system comprises:
Some common queries or statistical condition in order to generate a public condition window, are set in public condition enactment unit in this public condition window, each condition is arranged at respectively in the subwindow of described public condition window;
Call the window creation unit, call window in order to establishment, inheriting public condition window is parent;
The subwindow control module, in order at the described window that calls by the different values of variable are set, as seen whether the subwindow of controlling a plurality of common queries in the public condition window or statistical condition correspondence;
Inquiry or statistic unit are in order to call described that window calls described common query or statistical condition is inquired about or added up;
Call the window releasing unit,, this parent that calls window is also discharged in the lump in order to when calling window release oneself.
A kind of data query or statistical system based on public condition, described system comprises:
Public condition enactment unit is in order to set at least one common query or statistical condition;
Inquiry or statistic unit are inquired about or are added up in order to call described common query or statistical condition.
Beneficial effect of the present invention is: data query or statistical method and system that the present invention proposes based on public condition, can call code easily one time according to each window needs.Can reduce the software maintenance workload greatly like this, thereby reduce the software maintenance cost; Simultaneously can improve code reusability greatly, shorten the software maturity stage.
Description of drawings
Fig. 1 is the inquiry synoptic diagram of inquiry of the present invention or statistical method.
Fig. 2 is the process flow diagram of inquiry of the present invention or statistical method.
Embodiment
Describe the preferred embodiments of the present invention in detail below in conjunction with accompanying drawing.
Embodiment one
See also Fig. 2, the present invention has disclosed a kind of data query or statistical method based on public condition, and described method comprises the steps:
[steps A] generates a public condition window, sets at least one common query or statistical condition in this public condition window.
Public window can be arranged on upper end, lower end, left side or the right side of whole desktop, can be hidden fully or access.
In the present embodiment, set some common queries or statistical condition in the described public condition window, each condition is arranged at respectively in the subwindow of described public condition window.
In addition, the condition in the described public condition window is placed on public condition window with the form of edit box control.
[step B] creates and calls window, and inheriting public condition window is parent.
[step C] described to call that window calls described common query or statistical condition is inquired about or added up.
Because it is a plurality of calling window, can call common query or statistical condition respectively, therefore can greatly improve code reusability, reduce the workload of coding, can reduce the software maintenance workload effectively simultaneously, shorten the software maturity stage.
When inquiring about, the described window that calls is by being provided with the different values of variable, and as seen whether the subwindow of controlling a plurality of common queries in the public condition window or statistical condition correspondence.
[step D] also discharges this parent that calls window when calling window release oneself in the lump.
More than introduced the data query or the statistical method that the present invention is based on public condition, the present invention has also disclosed a kind of data query or statistical system based on public condition when disclosing said method; Described system comprises: public condition enactment unit, call window creation unit, inquiry or statistic unit, call the window releasing unit.
At least one common query or statistical condition are set in order to generate a public condition window in described public condition enactment unit in this public condition window.In the present embodiment, the condition in the described public condition window is placed on public condition window with the form of edit box control.In addition, in this example, set some common queries or statistical condition in the described public condition window, each condition is arranged at respectively in the subwindow of described public condition window.
The described window creation unit that calls calls window in order to establishment, and inheriting described public condition window is the parent that calls window.
Described inquiry or statistic unit are in order to call described that window calls described common query or statistical condition is inquired about or added up.
The described window releasing unit that calls also discharges this parent that calls window in the lump in order to when calling window release oneself.
In sum, data query or statistical method and system based on public condition that the present invention proposes can call code one time easily according to each window needs.Can reduce the software maintenance workload greatly like this, thereby reduce the software maintenance cost; Simultaneously can improve code reusability greatly, shorten the software maturity stage.
Embodiment two
Present embodiment is as follows based on the performing step of the data query of public condition or statistical method:
1, analytic system is put out the classification of cutting off most shared condition of inquiring about and adding up in order.
As shown in Figure 1, for example: bill class, article class.And these class conditions are positioned in the P_zd (bill class) or P_wp (article class) of the PaneI1 of common unit proc the top with edit box Tedit control.According to the observability of each group, the condition according to the inside edit box unification is write out inquiry clocklike or added up supplies public calling.
2, when proc.pas (name is proc_for) Form creates the explanation reintroduce again the introducing method name be called OwnerForm, name is FOwnerForm.Code is as follows:
TProc_for=class(TForm)
procedure?FormCreate(Sender:TObject);
private
FOwnerForm:TForm;
public
constructor?Create(AOwner:TComponent;OwnerForm:TForm);reintroduce;
{Public?declarations}
end;
During window creation, adopt and inherit the parent mode, Aowner can also be discharged oneself when oneself discharges.Code can for:
constructor?TProc_for.Create(AOwner:TComponent;OwnerForm:TForm);
begin
inherited?Create(Aowner);
FOwnerForm:=OwnerForm;
end;
3, in all need call each inquiry or statistical window of OwnerForm, whether as seen variable simply be set be in the may command proc.pas each set condition.
Beneficial effect of the present invention comprises:
1, a cover software only need write out place's code easily, calls for other windows are public, can expand software function easily.
2, can reduce the software maintenance workload greatly, thereby reduce the software maintenance cost.
3, can improve code reusability greatly, shorten the software maturity stage.
Embodiment three
Present embodiment discloses a kind of data query or statistical method based on public condition, and described method comprises the steps:
Step 1, generation one public condition window are set some common queries or statistical condition in this public condition window, each condition is arranged at respectively in the subwindow of described public condition window;
Window is called in step 2, establishment, and inheriting public condition window is parent;
Step 3, the described window that calls be by being provided with the different values of variable, and as seen whether the subwindow of controlling a plurality of common queries in the public condition window or statistical condition correspondence;
Step 4, describedly call that window calls described common query or statistical condition is inquired about or added up;
Step 5, when calling window and discharge oneself, this parent that calls window is also discharged in the lump.
A kind of data query or statistical system based on public condition, described system comprises:
Some common queries or statistical condition in order to generate a public condition window, are set in public condition enactment unit in this public condition window, each condition is arranged at respectively in the subwindow of described public condition window;
Call the window creation unit, call window in order to establishment, inheriting public condition window is parent;
The subwindow control module, in order at the described window that calls by the different values of variable are set, as seen whether the subwindow of controlling a plurality of common queries in the public condition window or statistical condition correspondence;
Inquiry or statistic unit are in order to call described that window calls described common query or statistical condition is inquired about or added up;
Call the window releasing unit,, this parent that calls window is also discharged in the lump in order to when calling window release oneself.
Embodiment four
The difference of present embodiment and above embodiment is that in the present embodiment, described data query or statistical method based on public condition comprises the steps:
1, sets at least one common query or statistical condition.This condition is not necessarily set by the public window of using among the above embodiment.
2, calling described common query or statistical condition inquires about or adds up.
A kind of data query or statistical system based on public condition, described system comprises: public condition enactment unit, inquiry or statistic unit.
Described public condition enactment unit is in order to set at least one common query or statistical condition; This condition is not necessarily set by the public window of using among the above embodiment.
Described inquiry or statistic unit are inquired about or are added up in order to call described common query or statistical condition.Inquiry or statistics can be other modes outside the above embodiment.
Here description of the invention and application is illustrative, is not to want with scope restriction of the present invention in the above-described embodiments.Here the distortion of disclosed embodiment and change are possible, and the various parts of the replacement of embodiment and equivalence are known for those those of ordinary skill in the art.Those skilled in the art are noted that under the situation that does not break away from spirit of the present invention or essential characteristic, and the present invention can be with other form, structure, layout, ratio, and realize with other assembly, material and parts.Under the situation that does not break away from the scope of the invention and spirit, can carry out other distortion and change here to disclosed embodiment.

Claims (10)

1. data query or statistical method based on a public condition is characterized in that described method comprises the steps:
Steps A, generation one public condition window are set at least one common query or statistical condition in this public condition window;
Window is called in step B, establishment, and inheriting public condition window is parent;
Step C, describedly call that window calls described common query or statistical condition is inquired about or added up;
Step D, when calling window and discharge oneself, this parent that calls window is also discharged in the lump.
2. data query or statistical method based on public condition according to claim 1 is characterized in that:
Set some common queries or statistical condition in the described public condition window, each condition is arranged at respectively in the subwindow of described public condition window;
The described window that calls is by being provided with the different values of variable, and as seen whether the subwindow of controlling a plurality of common queries in the public condition window or statistical condition correspondence.
3. data query or statistical method based on public condition according to claim 1 and 2 is characterized in that:
Condition in the described public condition window is placed on public condition window with the form of edit box control.
4. data query or statistical method based on a public condition is characterized in that described method comprises the steps:
Step 1, generation one public condition window are set some common queries or statistical condition in this public condition window, each condition is arranged at respectively in the subwindow of described public condition window;
Window is called in step 2, establishment, and inheriting public condition window is parent;
Step 3, the described window that calls be by being provided with the different values of variable, and as seen whether the subwindow of controlling a plurality of common queries in the public condition window or statistical condition correspondence;
Step 4, describedly call that window calls described common query or statistical condition is inquired about or added up;
Step 5, when calling window and discharge oneself, this parent that calls window is also discharged in the lump.
5. data query or statistical method based on a public condition is characterized in that described method comprises the steps:
Set at least one common query or statistical condition;
Calling described common query or statistical condition inquires about or adds up.
6. data query or statistical system based on a public condition is characterized in that described system comprises:
At least one common query or statistical condition in order to generate a public condition window, are set in public condition enactment unit in this public condition window;
Call the window creation unit, call window in order to establishment, inheriting described public condition window is the parent that calls window;
Inquiry or statistic unit are in order to call described that window calls described common query or statistical condition is inquired about or added up;
Call the window releasing unit,, this parent that calls window is also discharged in the lump in order to when calling window release oneself.
7. data query or statistical system based on public condition according to claim 6 is characterized in that:
Set some common queries or statistical condition in the described public condition window, each condition is arranged at respectively in the subwindow of described public condition window;
The described window that calls is by being provided with the different values of variable, and as seen whether the subwindow of controlling a plurality of common queries in the public condition window or statistical condition correspondence.
8. data query or statistical system based on public condition according to claim 6 is characterized in that:
Condition in the described public condition window is placed on public condition window with the form of edit box control.
9. data query or statistical system based on a public condition is characterized in that described system comprises:
Some common queries or statistical condition in order to generate a public condition window, are set in public condition enactment unit in this public condition window, each condition is arranged at respectively in the subwindow of described public condition window;
Call the window creation unit, call window in order to establishment, inheriting public condition window is parent;
The subwindow control module, in order at the described window that calls by the different values of variable are set, as seen whether the subwindow of controlling a plurality of common queries in the public condition window or statistical condition correspondence;
Inquiry or statistic unit are in order to call described that window calls described common query or statistical condition is inquired about or added up;
Call the window releasing unit,, this parent that calls window is also discharged in the lump in order to when calling window release oneself.
10. data query or statistical system based on a public condition is characterized in that described system comprises:
Public condition enactment unit is in order to set at least one common query or statistical condition;
Inquiry or statistic unit are inquired about or are added up in order to call described common query or statistical condition.
CN2010102521467A 2010-08-12 2010-08-12 Data query or statistics method and system based on public conditions Pending CN101944103A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102521467A CN101944103A (en) 2010-08-12 2010-08-12 Data query or statistics method and system based on public conditions

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102521467A CN101944103A (en) 2010-08-12 2010-08-12 Data query or statistics method and system based on public conditions

Publications (1)

Publication Number Publication Date
CN101944103A true CN101944103A (en) 2011-01-12

Family

ID=43436094

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102521467A Pending CN101944103A (en) 2010-08-12 2010-08-12 Data query or statistics method and system based on public conditions

Country Status (1)

Country Link
CN (1) CN101944103A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104462095A (en) * 2013-09-13 2015-03-25 阿里巴巴集团控股有限公司 Extraction method and device of common pars of query statements
CN105786819A (en) * 2014-12-18 2016-07-20 广州华多网络科技有限公司 Data operation method and device
CN113779374A (en) * 2021-02-24 2021-12-10 北京京东振世信息技术有限公司 Page query management method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101071375A (en) * 2007-05-22 2007-11-14 腾讯科技(深圳)有限公司 Interface development system and control combing method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101071375A (en) * 2007-05-22 2007-11-14 腾讯科技(深圳)有限公司 Interface development system and control combing method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张福堂: "Powerbuilder中继承性的使用", 《辽宁财专学报》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104462095A (en) * 2013-09-13 2015-03-25 阿里巴巴集团控股有限公司 Extraction method and device of common pars of query statements
CN104462095B (en) * 2013-09-13 2018-06-12 阿里巴巴集团控股有限公司 A kind of extracting method and device of query statement common portion
CN105786819A (en) * 2014-12-18 2016-07-20 广州华多网络科技有限公司 Data operation method and device
CN113779374A (en) * 2021-02-24 2021-12-10 北京京东振世信息技术有限公司 Page query management method and device
CN113779374B (en) * 2021-02-24 2023-09-26 北京京东振世信息技术有限公司 Page query management method and device

Similar Documents

Publication Publication Date Title
CN102521254B (en) Uniform access method of isomeric database
CN102279750B (en) Iterative code generation method based on domain knowledge sharing
CN101944103A (en) Data query or statistics method and system based on public conditions
CN103116508B (en) A kind of general-purpose interface of SAP system and its implementation
CN105573774B (en) Application Parameters management and configuration method
CN105243434A (en) Assembly sequence planning method
CN101859244A (en) Multi-toolchain engineering construction method and system
SE9301000L (en) Method and apparatus for rapid change of functionality in a telecommunication system
CN102929627A (en) Automatic testing program generating method based on ATE (Automatic Test Equipment) and ATE testing method
CN102458022B (en) Light emitting diode driving circuit
CN102820802B (en) Inverter system and signal transfer method thereof
CN102880497B (en) Complier and method for reusing and optimizing software management memory
CN103186367A (en) Realization method for dynamic template of support script in monitoring system
CN102479348A (en) Code reuse-oriented MES (manufacturing execution system) business modeling system and method
CN104424173B (en) Typesetting quick interface arrangement method and device
CN104699487A (en) Method for facilitating BIOS code maintenance and management
CN105843961B (en) A kind of information system database schema method that process is separated with back-end data
CN104217620A (en) Nuclear power plant full-scope simulator auxiliary operation panel lamp test system and method
CN104933616B (en) The data processing method of financial server and Apparatus and system
CN101950267B (en) Monitoring device and control method and device thereof
CN102566536B (en) System flow control device and method
CN104978331A (en) Method and system for adding data collection item
CN101963964A (en) Method and device for controlling access to management system
CN108062219A (en) A kind of distributed software development process control method
Zhao Optimal operation of panel furniture reconfigurable manufacturing system based on TCPN and GA

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110112