CN110008449A - Form controls interlock method, device, computer equipment and readable storage medium storing program for executing - Google Patents
Form controls interlock method, device, computer equipment and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN110008449A CN110008449A CN201810008510.1A CN201810008510A CN110008449A CN 110008449 A CN110008449 A CN 110008449A CN 201810008510 A CN201810008510 A CN 201810008510A CN 110008449 A CN110008449 A CN 110008449A
- Authority
- CN
- China
- Prior art keywords
- information
- control
- linkage
- default
- rule information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 230000000875 corresponding effect Effects 0.000 claims description 130
- 230000008859 change Effects 0.000 claims description 54
- 230000009471 action Effects 0.000 claims description 29
- 230000004913 activation Effects 0.000 claims description 20
- 230000015654 memory Effects 0.000 claims description 16
- 238000004590 computer program Methods 0.000 claims description 12
- 230000001276 controlling effect Effects 0.000 claims description 12
- 238000010586 diagram Methods 0.000 description 10
- 230000009286 beneficial effect Effects 0.000 description 4
- 238000013497 data interchange Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 239000000126 substance Substances 0.000 description 4
- 230000006399 behavior Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 3
- 230000007717 exclusion Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 229910052799 carbon Inorganic materials 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/174—Form filling; Merging
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/177—Editing, e.g. inserting or deleting of tables; using ruled lines
- G06F40/18—Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The present invention provides a kind of form controls interlock method, device, computer equipment and readable storage medium storing program for executing, wherein, form controls interlock method, comprising: when loading list, each default linkage Rule Information in presupposed information library is parsed, and is associated on default linkage Rule Information to corresponding control;It is successively linked corresponding control according to default linkage Rule Information.According to the technical solution of the present invention, the linkage between multiple controls can be realized with customized default linkage Rule Information, reduce list and fill in workload, promote accuracy and efficiency that list is filled in.
Description
Technical field
The present invention relates to technical field of data processing, in particular to a kind of form controls interlock method, a kind of list
Control linkage, a kind of computer equipment and a kind of computer readable storage medium.
Background technique
In the related technology, customizing form designer typically just completes the configuration of form controls content, does not support list
Logic linkage between control, there are following technological deficiencies:
(1) such as in list control 1 selection result, logically have a direct impact to control 2 and control 3,2 He of control
The logically mutual exclusion of the content of control 3, and after the selection result that user has determined control 1, control 2 and control 3 are all aobvious
Show, be easy to bring the puzzlement for filling in list to user, user may waste unnecessary in the control content without filling in
Time influences the working efficiency of user.
(2) value of control 6 is to be calculated by control 4 and control 5 by a formula, and user exists such as in list
Filled in the value and filling that control 6 can be just obtained after also being calculated after the value of control 4 and control 5, and to control 4 or
After the value change of control 5, the value of control 6 is recalculated again, list fills in larger workload, and in control 4 or control 5
After value change, when forgetting that the value to control 6 is modified, it is easy to appear list and fills in mistake, accuracy rate and efficiency are lower.
Summary of the invention
The present invention is directed to solve at least one of the technical problems existing in the prior art or related technologies.
For this purpose, it is an object of the present invention to provide a kind of form controls interlock methods.
It is another object of the present invention to provide a kind of form controls linkages.
It is yet a further object of the present invention to provide a kind of computer equipments.
Yet another object of the invention is that providing a kind of computer readable storage medium.
To achieve the goals above, the technical solution of the first aspect of the present invention provides a kind of form controls linkage side
Method, comprising: when loading list, parse each default linkage Rule Information in presupposed information library, and be associated with default linkage rule
In information to corresponding control;It is successively linked corresponding control according to default linkage Rule Information.
In the technical scheme, by parsing each default linkage Rule Information in presupposed information library when loading list,
And be associated on default linkage Rule Information to corresponding control, be conducive to when control content is changed, trigger default linkage rule
Information executes corresponding operation, and automatic linkage changes other associated control contents, is conducive to reduce fill substance in list
The generation for the phenomenon that is not consistent promotes the accuracy that list is filled in, corresponding by successively being linked according to default linkage Rule Information
Control, namely after some control contents in default linkage Rule Information are filled in, other associated controls are successively filled in automatically
Part content reduces list and fills in workload, improves accuracy and efficiency that list is filled in.
It should be noted that default linkage Rule Information includes linkage conditional information, combined operation information, linkage condition letter
Logical relation between the trigger condition and trigger condition of the default linkage Rule Information of breath definition, the definition of combined operation information are pre-
If the concrete operations after the Rule Information triggering that links, default linkage Rule Information can be carried out customized by user.
In the above-mentioned technical solutions, it is preferable that when loading list, parse each default linkage rule in presupposed information library
Information, and be associated on default linkage Rule Information to corresponding control, comprising: the linkage item in the default linkage Rule Information of parsing
Part information determines that control corresponding with the first control number in linkage conditional information is condition control;By default linkage rule
The identification coding of information is associated with as the class Style Attributes of condition control to condition control;The default linkage rule letter of parsing
Combined operation information in breath generates change linkage event;It is associated with the class pattern of change linkage event to condition control
On attribute.
In the technical scheme, it by parsing the linkage conditional information in default linkage Rule Information, determines and linkage item
It is condition control that the first control in part information, which numbers corresponding control, regard the identification coding of default linkage Rule Information as item
The class Style Attributes of part control are associated with to condition control, realize being associated with for default linkage Rule Information and condition control,
Be conducive in the content change of condition control, the content of other associated controls is changed in linkage, by parsing default linkage
Combined operation information in Rule Information generates change linkage event, association change linkage event to condition control
On class Style Attributes, the content of the event that can be linked in this way by change triggered to realize other associated controls
Auto-writing or automatic change, further reduce list and fill in workload, improve the accuracy and effect that list is filled in
Rate.
It should be noted that the content of change linkage event is the tool of combined operation information in default linkage Rule Information
Gymnastics is made.
In any of the above-described technical solution, it is preferable that it is successively linked corresponding control according to default linkage Rule Information,
Include: the default linkage Rule Information of parsing, determines rule type;According to rule type, determine in default linkage Rule Information
Specify information part;It determines that control corresponding with the second control number in specify information part is target widget, and obtains mesh
Mark control;According to the combined operation information in default linkage Rule Information, the output state of target widget is controlled.
In the technical scheme, by parsing default linkage Rule Information, rule type is determined, later according to Regularia
Type determines that the specify information part in default linkage Rule Information, and determining the second control with specify information part are compiled
Number corresponding control is target widget, and obtains target widget, realizes the acquisition of target widget, is advantageously implemented to target control
The automatic control of part output state, by controlling target widget according to the combined operation information in default linkage Rule Information
The linkage between control is furthermore achieved in output state, realizes Auto-writing and the change of target widget, is further reduced
List fills in workload, improves accuracy and efficiency that list is filled in.
It should be noted that rule type include but is not limited to show hide, set ash activate, choose, assignment calculating.
In any of the above-described technical solution, it is preferable that rule type is that display hides or sets grey activation, according to default
Combined operation information in dynamic Rule Information, controls the output state of target widget, comprising: according in default linkage Rule Information
Combined operation information, determine corresponding action type;According to action type, the output state of target widget is controlled, wherein behaviour
As type include show, hide, set ash, activation in any one.
In the technical scheme, when rule type is that ash activation is hidden or set in display, by according to default linkage rule letter
Combined operation information in breath, determines corresponding action type, for example shows, hides, setting ash, activation, then according to operation class
Type controls the output state of target widget, and the linkage between control is furthermore achieved, and realizes the Auto-writing of target widget
And change, it further reduces list and fills in workload, improve the accuracy and efficiency that list is filled in.
In any of the above-described technical solution, it is preferable that rule type is to choose, according in default linkage Rule Information
Combined operation information controls the output state of target widget, comprising: believes according to the combined operation in default linkage Rule Information
Breath, determines corresponding output valve;The output state of control target widget is to choose output valve.
In the technical scheme, rule type is when choosing, by according to the combined operation in default linkage Rule Information
Information determines corresponding output valve, and the output state for controlling target widget is to choose output valve, is furthermore achieved between control
Linkage, realize Auto-writing and the change of target widget, further reduce list and fill in workload, improve list and fill out
The accuracy and efficiency write.
In any of the above-described technical solution, it is preferable that rule type is assignment calculating, according to default linkage Rule Information
In combined operation information, control the output state of target widget, comprising: according to it is default linkage Rule Information in combined operation
Information successively determines formula content;Whether judgment formula content is third control number;If it is determined that formula content is third control
Number then obtains third control and numbers the value of corresponding condition control and splices the corresponding position into specified formula;If it is determined that formula
Content is not third control number, then direct splicing enters the corresponding position of specified formula;When determining that combined operation information is not present
When untreated formula content, calculating operation is judged whether it is according to the combined operation information in default linkage Rule Information;If
It is judged to being calculating operation, then value is calculated according to specified formula, and be assigned to target widget;If it is determined that not to be to calculate behaviour
Make, then specified formula is directly assigned to target widget.
In the technical scheme, when rule type is that assignment calculates, by according to the linkage in default linkage Rule Information
Operation information successively determines that formula content, formula content obtain the value splicing of corresponding condition control when being third control number
Entering the corresponding position of specified formula, direct splicing enters the corresponding position of specified formula when formula content non-third control number,
When for calculating operation, value is calculated according to specified formula, this value is assigned to target widget, be not calculating operation, is being
When assignment operation, specified formula is directly assigned to target widget, the assignment realized between control calculates linkage, on the one hand,
It further reduces list and fills in workload, on the other hand, reduce because associated control content is forgotten to lead due to modification simultaneously
The generation for phenomena such as content of cause is not inconsistent further improves accuracy and efficiency that list is filled in.
In any of the above-described technical solution, it is preferable that each default in presupposed information library parsing when loading list
Before link Rule Information, and association is preset on linkage Rule Information to corresponding control, further includes: configuration storage is corresponding pre-
If linking Rule Information into the presupposed information library of list;Corresponding knowledge is sequentially generated according to the execution of default linkage Rule Information
It does not encode, wherein default linkage Rule Information is with the storage of JSON structure.
In the technical scheme, by configuring the corresponding default linkage Rule Information of storage to the presupposed information library of list
In, corresponding identification is sequentially generated according to the execution of default linkage Rule Information and is encoded, and default linkage Rule Information is realized
Definition is advantageously implemented table and moves control linkage, promotes accuracy and efficiency that list is filled in, wherein default linkage Rule Information
With the storage of JSON structure, is conducive to identify and execute.
It should be noted that default linkage Rule Information can be carried out by user by Form Designer it is customized.
JSON namely JavaScript Object Notation, is a kind of data interchange format of lightweight, has used
Full data are stored and indicated independently of the text formatting of programming language.
The technical solution of the second aspect of the present invention proposes a kind of form controls linkage, comprising: resolution unit is used
In when loading list, each default linkage Rule Information in presupposed information library is parsed, and is associated with default linkage Rule Information extremely
On corresponding control;Linkage unit, for successively being linked corresponding control according to default linkage Rule Information.
In the technical scheme, by parsing each default linkage Rule Information in presupposed information library when loading list,
And be associated on default linkage Rule Information to corresponding control, be conducive to when control content is changed, trigger default linkage rule
Information executes corresponding operation, and automatic linkage changes other associated control contents, is conducive to reduce fill substance in list
The generation for the phenomenon that is not consistent promotes the accuracy that list is filled in, corresponding by successively being linked according to default linkage Rule Information
Control, namely after some control contents in default linkage Rule Information are filled in, other associated controls are successively filled in automatically
Part content reduces list and fills in workload, improves accuracy and efficiency that list is filled in.
It should be noted that default linkage Rule Information includes linkage conditional information, combined operation information, linkage condition letter
Logical relation between the trigger condition and trigger condition of the default linkage Rule Information of breath definition, the definition of combined operation information are pre-
If the concrete operations after the Rule Information triggering that links, default linkage Rule Information can be carried out customized by user.
In the above-mentioned technical solutions, it is preferable that further include: determination unit, for parsing in default linkage Rule Information
Link conditional information, determines that control corresponding with the first control number in linkage conditional information is condition control;Associative cell,
For being associated with the identification coding of default linkage Rule Information as the class Style Attributes of condition control to condition control;
Generation unit generates change linkage event for parsing the combined operation information in default linkage Rule Information;Associative cell
It is also used to: in association change linkage event to the class Style Attributes of condition control.
In the technical scheme, it by parsing the linkage conditional information in default linkage Rule Information, determines and linkage item
It is condition control that the first control in part information, which numbers corresponding control, regard the identification coding of default linkage Rule Information as item
The class Style Attributes of part control are associated with to condition control, realize being associated with for default linkage Rule Information and condition control,
Be conducive in the content change of condition control, the content of other associated controls is changed in linkage, by parsing default linkage
Combined operation information in Rule Information generates change linkage event, association change linkage event to condition control
On class Style Attributes, the content of the event that can be linked in this way by change triggered to realize other associated controls
Auto-writing or automatic change, further reduce list and fill in workload, improve the accuracy and effect that list is filled in
Rate.
It should be noted that the content of change linkage event is the tool of combined operation information in default linkage Rule Information
Gymnastics is made.
In any of the above-described technical solution, it is preferable that determination unit is also used to: the default linkage Rule Information of parsing, really
Determine rule type;Determination unit is also used to: according to rule type, determining the specify information part in default linkage Rule Information;
Determination unit is also used to: being determined that control corresponding with the second control number in specify information part is target widget, and is obtained
Target widget;Form controls linkage further include: control unit, for according to the combined operation in default linkage Rule Information
Information controls the output state of target widget.
In the technical scheme, by parsing default linkage Rule Information, rule type is determined, later according to Regularia
Type determines that the specify information part in default linkage Rule Information, and determining the second control with specify information part are compiled
Number corresponding control is target widget, and obtains target widget, realizes the acquisition of target widget, is advantageously implemented to target control
The automatic control of part output state, by controlling target widget according to the combined operation information in default linkage Rule Information
The linkage between control is furthermore achieved in output state, realizes Auto-writing and the change of target widget, is further reduced
List fills in workload, improves accuracy and efficiency that list is filled in.
It should be noted that rule type include but is not limited to show hide, set ash activate, choose, assignment calculating.
In any of the above-described technical solution, it is preferable that rule type is that display hides or sets grey activation, and determination unit is also
For: according to the combined operation information in default linkage Rule Information, determine corresponding action type;Control unit is also used to:
According to action type, the output state of target widget is controlled, wherein action type includes in showing, hide, setting ash, activate
Any one.
In the technical scheme, when rule type is that ash activation is hidden or set in display, by according to default linkage rule letter
Combined operation information in breath, determines corresponding action type, for example shows, hides, setting ash, activation, then according to operation class
Type controls the output state of target widget, and the linkage between control is furthermore achieved, and realizes the Auto-writing of target widget
And change, it further reduces list and fills in workload, improve the accuracy and efficiency that list is filled in.
In any of the above-described technical solution, it is preferable that rule type is to choose, and determination unit is also used to: according to default
Combined operation information in linkage Rule Information, determines corresponding output valve;Control unit is also used to: controlling the defeated of target widget
It does well to choose output valve.
In the technical scheme, rule type is when choosing, by according to the combined operation in default linkage Rule Information
Information determines corresponding output valve, and the output state for controlling target widget is to choose output valve, is furthermore achieved between control
Linkage, realize Auto-writing and the change of target widget, further reduce list and fill in workload, improve list and fill out
The accuracy and efficiency write.
In any of the above-described technical solution, it is preferable that rule type is assignment calculating, and determination unit is also used to: according to
Combined operation information in default linkage Rule Information, successively determines formula content;Form controls linkage further include: judgement
Whether unit is third control number for judgment formula content;Concatenation unit, for if it is determined that formula content is third control
Number then obtains third control and numbers the value of corresponding condition control and splices the corresponding position into specified formula;Concatenation unit is also
For: if it is determined that formula content is not third control number, then direct splicing enters the corresponding position of specified formula;Judging unit is also
For: when determining that untreated formula content is not present in combined operation information, according to the linkage in default linkage Rule Information
Operation information judges whether it is calculating operation;Form controls linkage further include: computing unit, for if it is determined that be to calculate
Operation, then be calculated value according to specified formula, and be assigned to target widget;Assignment unit, for if it is determined that not to be to calculate
Operation, then be directly assigned to target widget for specified formula.
In the technical scheme, when rule type is that assignment calculates, by according to the linkage in default linkage Rule Information
Operation information successively determines that formula content, formula content obtain the value splicing of corresponding condition control when being third control number
Entering the corresponding position of specified formula, direct splicing enters the corresponding position of specified formula when formula content non-third control number,
When for calculating operation, value is calculated according to specified formula, this value is assigned to target widget, be not calculating operation, is being
When assignment operation, specified formula is directly assigned to target widget, the assignment realized between control calculates linkage, on the one hand,
It further reduces list and fills in workload, on the other hand, reduce because associated control content is forgotten to lead due to modification simultaneously
The generation for phenomena such as content of cause is not inconsistent further improves accuracy and efficiency that list is filled in.
In any of the above-described technical solution, further includes: configuration unit, for configuring the corresponding default linkage rule of storage
Information is into the presupposed information library of list;Generation unit is also used to: being sequentially generated pair according to the execution of default linkage Rule Information
The identification coding answered, wherein default linkage Rule Information is with the storage of JSON structure.
In the technical scheme, by configuring the corresponding default linkage Rule Information of storage to the presupposed information library of list
In, corresponding identification is sequentially generated according to the execution of default linkage Rule Information and is encoded, and default linkage Rule Information is realized
Definition is advantageously implemented table and moves control linkage, promotes accuracy and efficiency that list is filled in, wherein default linkage Rule Information
With the storage of JSON structure, is conducive to identify and execute.
It should be noted that default linkage Rule Information can be carried out by user by Form Designer it is customized.
JSON namely JavaScript Object Notation, is a kind of data interchange format of lightweight, has used
Full data are stored and indicated independently of the text formatting of programming language.
The technical solution of the third aspect of the present invention proposes a kind of computer equipment, and computer equipment includes processor,
Processor realizes the technical solution such as above-mentioned the first aspect of the present invention when being used to execute the computer program stored in memory
The step of form controls interlock method of any one of proposition.
In the technical scheme, computer equipment includes processor, and processor is for executing the calculating stored in memory
The form controls interlock method for realizing any one proposed such as the technical solution of above-mentioned the first aspect of the present invention when machine program
Step, therefore the form controls interlock method of any one of the technical solution proposition of the first aspect with aforementioned present invention is complete
Portion's beneficial effect, details are not described herein.
The technical solution of the fourth aspect of the present invention proposes a kind of computer readable storage medium, is stored thereon with calculating
Machine program realizes the table for any one that the technical solution of the first aspect of the present invention proposes when computer program is executed by processor
The step of single control part interlock method.
In the technical scheme, computer readable storage medium, is stored thereon with computer program, and computer program is located
Reason device realizes the step of form controls interlock method for any one that the technical solution of the first aspect of the present invention proposes when executing,
Therefore the whole of the form controls interlock method for any one that the technical solution of the first aspect with aforementioned present invention proposes has
Beneficial effect, details are not described herein.
By above technical scheme, when loading list, each default linkage Rule Information in presupposed information library is parsed, and
On the default linkage Rule Information to corresponding control of association, successively linked corresponding control according to default linkage Rule Information, reality
Show the linkage between form controls, reduced list and fill in workload, improves the accuracy and efficiency that list is filled in.
Additional aspect and advantage of the invention will provide in following description section, will partially become from the following description
Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect of the invention and advantage will become from the description of the embodiment in conjunction with the following figures
Obviously and it is readily appreciated that, in which:
Fig. 1 shows the schematic flow diagram of form controls interlock method according to an embodiment of the invention;
Fig. 2 shows the schematic block diagrams of form controls linkage according to an embodiment of the invention;
Fig. 3 shows the schematic flow diagram of form controls interlock method according to another embodiment of the invention;
Fig. 4 shows the schematic flow diagram of the form controls interlock method of still another embodiment in accordance with the present invention;
Fig. 5 shows the schematic flow diagram of form controls interlock method according to still another embodiment of the invention;
Fig. 6 shows the JSON structure storage signal of default linkage Rule Information according to an embodiment of the invention
Figure.
Specific embodiment
To better understand the objects, features and advantages of the present invention, with reference to the accompanying drawing and specific real
Applying mode, the present invention is further described in detail.It should be noted that in the absence of conflict, the implementation of the application
Feature in example and embodiment can be combined with each other.
In the following description, numerous specific details are set forth in order to facilitate a full understanding of the present invention, still, the present invention may be used also
To be implemented using other than the one described here other modes, therefore, protection scope of the present invention is not by described below
Specific embodiment limitation.
Fig. 1 shows the schematic flow diagram of form controls interlock method according to an embodiment of the invention.
As shown in Figure 1, the form controls interlock method of embodiment according to the present invention, comprising:
S102 parses each default linkage Rule Information in presupposed information library when loading list, and is associated with default linkage
On Rule Information to corresponding control;
S104 successively links corresponding control according to default linkage Rule Information.
In this embodiment, by when loading list, parsing each default linkage Rule Information in presupposed information library, and
On the default linkage Rule Information to corresponding control of association, be conducive to when control content is changed, trigger default linkage rule letter
Breath executes corresponding operation, and automatic linkage changes associated other control contents, is conducive to reduce in list fill substance not
The generation for the phenomenon that is consistent promotes the accuracy filled in of list, by successively being linked corresponding control according to default linkage Rule Information
Part, namely after some control contents in default linkage Rule Information are filled in, other associated controls are successively filled in automatically
Content reduces list and fills in workload, improves accuracy and efficiency that list is filled in.
It should be noted that default linkage Rule Information includes linkage conditional information, combined operation information, linkage condition letter
Logical relation between the trigger condition and trigger condition of the default linkage Rule Information of breath definition, the definition of combined operation information are pre-
If the concrete operations after the Rule Information triggering that links, default linkage Rule Information can be carried out customized by user.
In the above embodiment, it is preferable that parsing each default linkage rule letter in presupposed information library when loading list
Breath, and be associated on default linkage Rule Information to corresponding control, comprising: the linkage condition in the default linkage Rule Information of parsing
Information determines that control corresponding with the first control number in linkage conditional information is condition control;By default linkage rule letter
The identification coding of breath is associated with as the class Style Attributes of condition control to condition control;The default linkage Rule Information of parsing
In combined operation information, generate change link event;It is associated with the class pattern category of change linkage event to condition control
In property.
In this embodiment, it by parsing the linkage conditional information in default linkage Rule Information, determines and linkage condition
It is condition control that the first control in information, which numbers corresponding control, regard the identification coding of default linkage Rule Information as condition
The class Style Attributes of control are associated with to condition control, realize being associated with for default linkage Rule Information and condition control, have
Conducive in the change of the content of condition control, the content of other associated controls is changed in linkage, by parsing default linkage rule
The then combined operation information in information generates change linkage event, the class of association change linkage event to condition control
On Style Attributes, the automatic of the content of other associated controls can be realized by the triggering of change linkage event in this way
It fills in or changes automatically, further reduce list and fill in workload, improve the accuracy and efficiency that list is filled in.
It should be noted that the content of change linkage event is the tool of combined operation information in default linkage Rule Information
Gymnastics is made.
In any of the above-described embodiment, it is preferable that it is successively linked corresponding control according to default linkage Rule Information, packet
Include: the default linkage Rule Information of parsing determines rule type;According to rule type, the finger in default linkage Rule Information is determined
Determine message part;It determines that control corresponding with the second control number in specify information part is target widget, and obtains target
Control;According to the combined operation information in default linkage Rule Information, the output state of target widget is controlled.
In this embodiment, by parsing default linkage Rule Information, rule type is determined, later according to rule type,
Determine the specify information part in default linkage Rule Information, and determination and the second control number phase in specify information part
The control answered is target widget, and obtains target widget, realizes the acquisition of target widget, is advantageously implemented defeated to target widget
The automatic control to do well, by controlling the output of target widget according to the combined operation information in default linkage Rule Information
The linkage between control is furthermore achieved in state, realizes Auto-writing and the change of target widget, further reduces table
Workload is singly filled in, accuracy and efficiency that list is filled in are improved.
It should be noted that rule type include but is not limited to show hide, set ash activate, choose, assignment calculating.
Such as in list control 1 selection result, logically have a direct impact to control 2 and control 3, control 2 and control
The logically mutual exclusion of the content of part 3, it, can automatic root after the selection result that user has determined control 1 namely condition control
According to default linkage Rule Information, one in control 2 and control 3 namely target widget is set into ash, a display is according to control 1
Determining content.
The value of control 6 is to be calculated by control 4 and control 5 by a formula, and user exists in list for another example
After the value for having filled in control 4 and control 5, corresponding calculated value can be exported in control 6 automatically according to default linkage Rule Information, when
After the change of the value of control 4 or control 5, the value of control 6 also can be automatically with change.
In any of the above-described embodiment, it is preferable that rule type is that display hides or sets grey activation, according to default linkage
Combined operation information in Rule Information, controls the output state of target widget, comprising: according in default linkage Rule Information
Combined operation information determines corresponding action type;According to action type, the output state of target widget is controlled, wherein operation
Type includes any one in showing, hide, setting ash, activate.
In this embodiment, when rule type is that ash activation is hidden or set in display, by according to default linkage Rule Information
In combined operation information, determine corresponding action type, for example show, hide, setting ash, activation, then according to action type,
Control target widget output state, the linkage between control is furthermore achieved, realize target widget Auto-writing and
Change, further reduces list and fills in workload, improve the accuracy and efficiency that list is filled in.
In any of the above-described embodiment, it is preferable that rule type is to choose, according to the connection in default linkage Rule Information
Dynamic operation information, controls the output state of target widget, comprising: according to the combined operation information in default linkage Rule Information,
Determine corresponding output valve;The output state of control target widget is to choose output valve.
In this embodiment, rule type is when choosing, by believing according to the combined operation in default linkage Rule Information
Breath, determines corresponding output valve, and the output state for controlling target widget is to choose output valve, is furthermore achieved between control
Linkage, realizes Auto-writing and the change of target widget, further reduces list and fill in workload, improve list and fill in
Accuracy and efficiency.
In any of the above-described embodiment, it is preferable that rule type is assignment calculating, according in default linkage Rule Information
Combined operation information, control the output state of target widget, comprising: according to it is default linkage Rule Information in combined operation believe
Breath successively determines formula content;Whether judgment formula content is third control number;If it is determined that formula content is that third control is compiled
Number, then it obtains third control and numbers the value of corresponding condition control and splice the corresponding position into specified formula;If it is determined that in formula
Appearance is not third control number, then direct splicing enters the corresponding position of specified formula;When determining combined operation information, there is no not
When the formula content of processing, calculating operation is judged whether it is according to the combined operation information in default linkage Rule Information;If sentencing
Being set to is calculating operation, then value is calculated according to specified formula, and be assigned to target widget;If it is determined that not to be to calculate behaviour
Make, then specified formula is directly assigned to target widget.
In this embodiment, when rule type is that assignment calculates, by being grasped according to the linkage in default linkage Rule Information
Make information, successively determine formula content, formula content obtains corresponding condition control value when being third control number splice into
The corresponding position of specified formula, direct splicing enters the corresponding position of specified formula when formula content non-third control number, for
When calculating operation, value is calculated according to specified formula, this value is assigned to target widget, be not calculating operation, to assign
When Value Operations, specified formula is directly assigned to target widget, the assignment realized between control calculates linkage, on the one hand, into
One step reduces list and fills in workload, on the other hand, reduces because associated control content is forgotten to cause due to modification simultaneously
Content phenomena such as not being inconsistent generation, further improve the accuracy and efficiency that list is filled in.
In any of the above-described embodiment, it is preferable that each default in presupposed information library parsing when loading list
Dynamic Rule Information, and before being associated on default linkage Rule Information to corresponding control, further includes: configuration storage is corresponding default
Rule Information link into the presupposed information library of list;Corresponding identification is sequentially generated according to the execution of default linkage Rule Information
Coding, wherein default linkage Rule Information is with the storage of JSON structure.
In this embodiment, by configuring the corresponding default linkage Rule Information of storage into the presupposed information library of list,
It is sequentially generated corresponding identification coding according to the execution of default linkage Rule Information, realizes determining for default linkage Rule Information
Justice is advantageously implemented table and moves control linkage, promotes the list accuracy and efficiency filled in, wherein default linkage Rule Information with
The storage of JSON structure is conducive to identify and execute.
Specifically, as shown in fig. 6, default linkage Rule Information is with the storage of JSON structure, conditions is default linkage
The set of the linkage conditional information of Rule Information, each linkage conditional information include that the control of condition control is numbered, and is identified
If is marked, every default corresponding identification of linkage Rule Information encodes id, raw when often increasing a default linkage Rule Information newly
At a unduplicated identification coding, sequence number of the identification coding containing default linkage Rule Information execution sequence, sequence number can be with
In the default linkage Rule Information execution sequence of adjustment with adjustment, target is target type, and type is target widget type,
Value is the value of target widget, and domain is the corresponding dictionary encoding of target widget, and logic is the set of linkage conditional information
In each linkage conditional information direct loic relationship, selectable value has " and ", " or " etc., and operations is default linkage rule
The set of the combined operation information of information, do are action type, not according to rule type when creating default linkage Rule Information
Together, then content is also different for the choosing of action type, and to is that the control of target widget is numbered, and fields is formula content, state logic
States selectable value is as shown in table 1.
Table 1
It should be noted that default linkage Rule Information can be carried out by user by Form Designer it is customized.
JSON namely JavaScript Object Notation, is a kind of data interchange format of lightweight, has used
Full data are stored and indicated independently of the text formatting of programming language.
Fig. 2 shows the schematic block diagrams of form controls linkage 200 according to an embodiment of the invention.
As shown in Fig. 2, the form controls linkage 200 of embodiment according to the present invention, comprising: resolution unit 202 is used
In when loading list, each default linkage Rule Information in presupposed information library is parsed, and is associated with default linkage Rule Information extremely
On corresponding control;Linkage unit 204, for successively being linked corresponding control according to default linkage Rule Information.
In this embodiment, by when loading list, parsing each default linkage Rule Information in presupposed information library, and
On the default linkage Rule Information to corresponding control of association, be conducive to when control content is changed, trigger default linkage rule letter
Breath executes corresponding operation, and automatic linkage changes associated other control contents, is conducive to reduce in list fill substance not
The generation for the phenomenon that is consistent promotes the accuracy filled in of list, by successively being linked corresponding control according to default linkage Rule Information
Part, namely after some control contents in default linkage Rule Information are filled in, other associated controls are successively filled in automatically
Content reduces list and fills in workload, improves accuracy and efficiency that list is filled in.
It should be noted that default linkage Rule Information includes linkage conditional information, combined operation information, linkage condition letter
Logical relation between the trigger condition and trigger condition of the default linkage Rule Information of breath definition, the definition of combined operation information are pre-
If the concrete operations after the Rule Information triggering that links, default linkage Rule Information can be carried out customized by user.
In the above embodiment, it is preferable that further include: determination unit 206, for parsing in default linkage Rule Information
Link conditional information, determines that control corresponding with the first control number in linkage conditional information is condition control;Associative cell
208, for being associated with the identification coding of default linkage Rule Information as the class Style Attributes of condition control to condition control
On;Generation unit 210 generates change linkage event for parsing the combined operation information in default linkage Rule Information;It closes
Receipts or other documents in duplicate member 208 is also used to: in association change linkage event to the class Style Attributes of condition control.
In this embodiment, it by parsing the linkage conditional information in default linkage Rule Information, determines and linkage condition
It is condition control that the first control in information, which numbers corresponding control, regard the identification coding of default linkage Rule Information as condition
The class Style Attributes of control are associated with to condition control, realize being associated with for default linkage Rule Information and condition control, have
Conducive in the change of the content of condition control, the content of other associated controls is changed in linkage, by parsing default linkage rule
The then combined operation information in information generates change linkage event, the class of association change linkage event to condition control
On Style Attributes, the automatic of the content of other associated controls can be realized by the triggering of change linkage event in this way
It fills in or changes automatically, further reduce list and fill in workload, improve the accuracy and efficiency that list is filled in.
It should be noted that the content of change linkage event is the tool of combined operation information in default linkage Rule Information
Gymnastics is made.
In any of the above-described embodiment, it is preferable that determination unit 206 is also used to: the default linkage Rule Information of parsing, really
Determine rule type;Determination unit 206 is also used to: according to rule type, determining the specify information portion in default linkage Rule Information
Point;Determination unit 206 is also used to: determine that control corresponding with the second control number in specify information part is target widget,
And obtain target widget;Form controls linkage 200 further include: control unit 212, for according to default linkage Rule Information
In combined operation information, control the output state of target widget.
In this embodiment, by parsing default linkage Rule Information, rule type is determined, later according to rule type,
Determine the specify information part in default linkage Rule Information, and determination and the second control number phase in specify information part
The control answered is target widget, and obtains target widget, realizes the acquisition of target widget, is advantageously implemented defeated to target widget
The automatic control to do well, by controlling the output of target widget according to the combined operation information in default linkage Rule Information
The linkage between control is furthermore achieved in state, realizes Auto-writing and the change of target widget, further reduces table
Workload is singly filled in, accuracy and efficiency that list is filled in are improved.
It should be noted that rule type include but is not limited to show hide, set ash activate, choose, assignment calculating.
Such as in list control 1 selection result, logically have a direct impact to control 2 and control 3, control 2 and control
The logically mutual exclusion of the content of part 3, it, can automatic root after the selection result that user has determined control 1 namely condition control
According to default linkage Rule Information, one in control 2 and control 3 namely target widget is set into ash, a display is according to control 1
Determining content.
The value of control 6 is to be calculated by control 4 and control 5 by a formula, and user exists in list for another example
After the value for having filled in control 4 and control 5, corresponding calculated value can be exported in control 6 automatically according to default linkage Rule Information, when
After the change of the value of control 4 or control 5, the value of control 6 also can be automatically with change.
In any of the above-described embodiment, it is preferable that rule type is that grey activation, determination unit 206 are hidden or set in display
It is also used to: according to the combined operation information in default linkage Rule Information, determining corresponding action type;Control unit 212 is also
For: according to action type, control the output state of target widget, wherein action type includes showing, hiding, setting ash, activation
In any one.
In this embodiment, when rule type is that ash activation is hidden or set in display, by according to default linkage Rule Information
In combined operation information, determine corresponding action type, for example show, hide, setting ash, activation, then according to action type,
Control target widget output state, the linkage between control is furthermore achieved, realize target widget Auto-writing and
Change, further reduces list and fills in workload, improve the accuracy and efficiency that list is filled in.
In any of the above-described embodiment, it is preferable that rule type is to choose, and determination unit 206 is also used to: according to default
Combined operation information in linkage Rule Information, determines corresponding output valve;Control unit 212 is also used to: control target widget
Output state be choose output valve.
In this embodiment, rule type is when choosing, by believing according to the combined operation in default linkage Rule Information
Breath, determines corresponding output valve, and the output state for controlling target widget is to choose output valve, is furthermore achieved between control
Linkage, realizes Auto-writing and the change of target widget, further reduces list and fill in workload, improve list and fill in
Accuracy and efficiency.
In any of the above-described embodiment, it is preferable that rule type is assignment calculating, and determination unit 206 is also used to: according to
Combined operation information in default linkage Rule Information, successively determines formula content;Form controls linkage 200 further include:
Whether judging unit 214 is third control number for judgment formula content;Concatenation unit 216, for if it is determined that formula content
It is third control number, then obtains third control and number the value of corresponding condition control and splice the corresponding position into specified formula;
Concatenation unit 216 is also used to: if it is determined that formula content is not third control number, then direct splicing enters the correspondence position of specified formula
It sets;Judging unit 214 is also used to: when determining that untreated formula content is not present in combined operation information, according to default linkage
Combined operation information in Rule Information judges whether it is calculating operation;Form controls linkage 200 further include: computing unit
218, for if it is determined that value then is calculated according to specified formula, and be assigned to target widget to be calculating operation;Assignment unit
220, for if it is determined that specified formula is directly then assigned to target widget not to be calculating operation.
In this embodiment, when rule type is that assignment calculates, by being grasped according to the linkage in default linkage Rule Information
Make information, successively determine formula content, formula content obtains corresponding condition control value when being third control number splice into
The corresponding position of specified formula, direct splicing enters the corresponding position of specified formula when formula content non-third control number, for
When calculating operation, value is calculated according to specified formula, this value is assigned to target widget, be not calculating operation, to assign
When Value Operations, specified formula is directly assigned to target widget, the assignment realized between control calculates linkage, on the one hand, into
One step reduces list and fills in workload, on the other hand, reduces because associated control content is forgotten to cause due to modification simultaneously
Content phenomena such as not being inconsistent generation, further improve the accuracy and efficiency that list is filled in.
In any of the above-described embodiment, further includes: configuration unit 222, for configuring the corresponding default linkage rule of storage
Then information is into the presupposed information library of list;Generation unit 210 is also used to: the execution sequence according to default linkage Rule Information is raw
It is encoded at corresponding identification, wherein default linkage Rule Information is with the storage of JSON structure.
In this embodiment, by configuring the corresponding default linkage Rule Information of storage into the presupposed information library of list,
It is sequentially generated corresponding identification coding according to the execution of default linkage Rule Information, realizes determining for default linkage Rule Information
Justice is advantageously implemented table and moves control linkage, promotes the list accuracy and efficiency filled in, wherein default linkage Rule Information with
The storage of JSON structure is conducive to identify and execute.
Specifically, as shown in fig. 6, default linkage Rule Information is with the storage of JSON structure, conditions is default linkage
The set of the linkage conditional information of Rule Information, each linkage conditional information include that the control of condition control is numbered, and is identified
If is marked, every default corresponding identification of linkage Rule Information encodes id, raw when often increasing a default linkage Rule Information newly
At a unduplicated identification coding, sequence number of the identification coding containing default linkage Rule Information execution sequence, sequence number can be with
In the default linkage Rule Information execution sequence of adjustment with adjustment, target is target type, and type is target widget type,
Value is the value of target widget, and domain is the corresponding dictionary encoding of target widget, and logic is the set of linkage conditional information
In each linkage conditional information direct loic relationship, selectable value has " and ", " or " etc., and operations is default linkage rule
The set of the combined operation information of information, do are action type, not according to rule type when creating default linkage Rule Information
Together, then content is also different for the choosing of action type, and to is that the control of target widget is numbered, and fields is formula content, state logic
States selectable value is as shown in table 1.
Table 1
It should be noted that default linkage Rule Information can be carried out by user by Form Designer it is customized.
JSON namely JavaScript Object Notation, is a kind of data interchange format of lightweight, has used
Full data are stored and indicated independently of the text formatting of programming language.
The computer equipment of embodiment according to the present invention, computer equipment include processor, and processor is deposited for executing
The list for any one that the embodiment such as above-mentioned the first aspect of the present invention proposes is realized when the computer program stored in reservoir
The step of control interlock method.
In this embodiment, computer equipment includes processor, and processor is for executing the computer stored in memory
The step of form controls interlock method for any one that the embodiment such as above-mentioned the first aspect of the present invention proposes is realized when program,
Therefore the whole of the form controls interlock method for any one that the embodiment of the first aspect with aforementioned present invention proposes is beneficial
Effect, details are not described herein.
The computer readable storage medium of embodiment according to the present invention is stored thereon with computer program, computer journey
The form controls interlock method for any one that the embodiment of the first aspect of the present invention proposes is realized when sequence is executed by processor
Step.
In this embodiment, computer readable storage medium, is stored thereon with computer program, and computer program is processed
Device realizes the step of form controls interlock method for any one that the embodiment of the first aspect of the present invention proposes when executing, therefore
Whole beneficial effects of the form controls interlock method for any one that the embodiment of first aspect with aforementioned present invention proposes,
Details are not described herein.
Fig. 3 shows the schematic flow diagram of form controls interlock method according to another embodiment of the invention.
As shown in figure 3, the form controls interlock method of embodiment according to the present invention, comprising:
S302 obtains the set of the default linkage Rule Information in presupposed information library;
S304, if having untreated default linkage Rule Information;
If the judgement to S304 be it is yes, execute S306, default linkage Rule Information obtained, if the judgement to S304
Be it is no, then terminate;
S308 obtains the set of linkage conditional information;
S310, if having untreated linkage conditional information;
If the judgement to S310 be it is yes, execute S312, linkage conditional information obtained, if the judgement to S310 is
It is no, then execute S318;
S314 obtains control number, determines condition control;
The identification coding of default linkage Rule Information is associated with item as the class Style Attributes of condition control by S316
On part control;
S318, association change links in event to the class Style Attributes of condition control, with default linkage Rule Information
Binding.
Fig. 4 shows the schematic flow diagram of the form controls interlock method of still another embodiment in accordance with the present invention.
As shown in figure 4, the form controls interlock method of embodiment according to the present invention, comprising:
S402, if having the execution condition for meeting default linkage Rule Information;
If the judgement to S402 be it is yes, execute S404, obtain the combined operation information of default linkage Rule Information, such as
Fruit be to the judgement of S402 it is no, then terminate;
Do are S406, rule type that display is hidden?;
If the judgement to S406 be it is yes, execute S408, obtain target widget;
S410 judges action type;
If action type is display, S412 is executed, the display display properties of control is removed;
If action type be it is hiding, execute S414, the display display properties of setting control is none empty;
If the judgement to S406 be it is no, execute S416, does is rule type to set grey activation?;
If the judgement to S416 be it is yes, execute S408, obtain target widget;
S418 judges action type;
If action type is activation, S420 is executed, removes the disabled activation attribute of control;
If action type is to set ash, S422 is executed, the disabled activation attribute of setting control is that false does not swash
It is living;
If the judgement to S416 be it is no, execute S424, does is rule type to choose?;
If the judgement to S424 be it is yes, execute S408, obtain target widget;
S426, target widget choose corresponding output valve;
Specifically, target widget type is distinguished, selection state, single choice control is then arranged in combobox control by way of assignment
The checked state that the corresponding option of operation intermediate value is then arranged in part radio is true, and operation is then arranged in final election control checkbox
The checked state of the corresponding multiple options of intermediate value is true;
If the judgement to S424 be it is no, execute S428, does is rule type that assignment calculates?;
If the judgement to S428 be it is yes, execute S408, obtain target widget;
S430 judges action type;
If action type is assignment, S432 is executed, the specified formula spliced according to formula content is assigned to target
Control;
If action type is to calculate, S434 is executed, the value after the specified formula spliced according to formula content is calculated
It is assigned to target widget.
Fig. 5 shows the schematic flow diagram of form controls interlock method according to still another embodiment of the invention.
As shown in figure 5, the form controls interlock method of embodiment according to the present invention, comprising:
S502 obtains the set of the combined operation information of default linkage Rule Information;
S504 obtains combined operation information;
S506 obtains the set of formula content;
S508 obtains formula content;
Do are S510, formula content control number?;
If be judged as YES to S510, S512 is executed, obtains the respective value that control numbers corresponding condition control;
S514 is spelled into specified formula;
If the judgement to S510 is no, directly execution S514;
S516, there are untreated publicity contents?;
If the judgement to S516 be it is yes, execute S508;
If the judgement to S516 be it is no, execute S518, obtain the specified formula that splicing is completed;
S520 judges action type;
If action type is to calculate, S522 is executed, the specified formula that splicing is completed is calculated and is worth;
S524 is assigned to target widget;
If action type is assignment, directly execution S524;
S526, there are untreated combined operation information?;
If the judgement to S526 be it is yes, execute S504;
If the judgement to S526 be it is no, terminate.
The technical scheme of the present invention has been explained in detail above with reference to the attached drawings, and the invention proposes a kind of form controls linkage sides
Method, a kind of form controls linkage, a kind of computer equipment and a kind of computer readable storage medium, by when load list
When, each default linkage Rule Information in presupposed information library is parsed, and be associated on default linkage Rule Information to corresponding control,
It is successively linked corresponding control according to default linkage Rule Information, realizes the linkage between form controls, reduce list and fill out
Workload is write, accuracy and efficiency that list is filled in are improved.
Step in the method for the present invention can be sequentially adjusted, combined, and deleted according to actual needs.
Unit in apparatus of the present invention can be combined, divided, and deleted according to actual needs.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium include read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory,
RAM), programmable read only memory (Programmable Read-only Memory, PROM), erasable programmable is read-only deposits
Reservoir (Erasable Programmable Read Only Memory, EPROM), disposable programmable read-only memory (One-
Time Programmable Read-Only Memory, OTPROM), the electronics formula of erasing can make carbon copies read-only memory
(Electrically-Erasable Programmable Read-Only Memory, EEPROM), CD-ROM (Compact
Disc Read-Only Memory, CD-ROM) or other disc memories, magnetic disk storage, magnetic tape storage or can
For carrying or any other computer-readable medium of storing data.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (16)
1. a kind of form controls interlock method characterized by comprising
When loading list, each default linkage Rule Information in presupposed information library is parsed, and is associated with the default linkage rule
In information to corresponding control;
It is successively linked the corresponding control according to the default linkage Rule Information.
2. form controls interlock method according to claim 1, which is characterized in that described when loading the list, solution
Each default linkage Rule Information in presupposed information library is analysed, and is associated with the default linkage Rule Information to corresponding control
On, comprising:
Parse the linkage conditional information in the default linkage Rule Information, determining the first control with the linkage conditional information
It is condition control that part, which numbers the corresponding control,;
The identification coding of the default linkage Rule Information is associated with as the class Style Attributes of the condition control to described
On condition control;
The combined operation information in the default linkage Rule Information is parsed, change linkage event is generated;
It is associated in the change linkage event to the class Style Attributes of the condition control.
3. form controls interlock method according to claim 2, which is characterized in that described according to the default linkage rule
Information successively links the corresponding control, comprising:
The default linkage Rule Information is parsed, determines rule type;
According to the rule type, the specify information part in the default linkage Rule Information is determined;
Determine that the control corresponding with the second control number in the specify information part is target widget, and described in acquisition
Target widget;
According to the combined operation information in the default linkage Rule Information, the output state of the target widget is controlled.
4. form controls interlock method according to claim 3, which is characterized in that the rule type be display hide or
Grey activation is set, the combined operation information according in the default linkage Rule Information controls the target widget
Output state, comprising:
According to the combined operation information in the default linkage Rule Information, corresponding action type is determined;
According to the action type, the output state of the target widget is controlled,
Wherein, the action type includes any one in showing, hide, setting ash, activate.
5. form controls interlock method according to claim 3, which is characterized in that the rule type is to choose, described
According to the combined operation information in the default linkage Rule Information, the output state of the target widget is controlled, comprising:
According to the combined operation information in the default linkage Rule Information, corresponding output valve is determined;
The output state for controlling the target widget is to choose the output valve.
6. form controls interlock method according to claim 3, which is characterized in that the rule type is assignment calculating,
The combined operation information according in the default linkage Rule Information, controls the output state of the target widget,
Include:
According to the combined operation information in the default linkage Rule Information, formula content is successively determined;
Judge whether the formula content is third control number;
If it is determined that the formula content is the third control number, then obtains the third control and number the corresponding condition
The respective value of control splices the corresponding position into specified formula;
If it is determined that the formula content is not the third control number, then direct splicing enters the correspondence position of the specified formula
It sets;
When determining that the untreated formula content is not present in the combined operation information, according to the default linkage rule letter
The combined operation information in breath judges whether it is calculating operation;
If it is determined that value then is calculated according to the specified formula, and be assigned to the target widget to be the calculating operation;
If it is determined that the specified formula is directly then assigned to the target widget not to be the calculating operation.
7. form controls interlock method according to any one of claim 1 to 6, which is characterized in that described when load
When list, each default linkage Rule Information in presupposed information library is parsed, and is associated with the default linkage Rule Information to corresponding
Control on before, further includes:
Configuration stores the corresponding default linkage Rule Information into the presupposed information library of the list;
It is sequentially generated the corresponding identification coding according to the execution of the default linkage Rule Information,
Wherein, the default linkage Rule Information is with the storage of JSON structure.
8. a kind of form controls linkage characterized by comprising
Resolution unit, for when loading list, parsing each default linkage Rule Information in presupposed information library, and described in association
On default linkage Rule Information to corresponding control;
Linkage unit, for successively being linked the corresponding control according to the default linkage Rule Information.
9. form controls linkage according to claim 8, which is characterized in that further include:
Determination unit, for parsing the linkage conditional information in the default linkage Rule Information, the determining and linkage condition
It is condition control that the first control in information, which numbers the corresponding control,;
Associative cell, for the class pattern by the identification coding of the default linkage Rule Information as the condition control
In Attribute Association to the condition control;
Generation unit generates change linkage event for parsing the combined operation information in the default linkage Rule Information;
The associative cell is also used to: being associated in the change linkage event to the class Style Attributes of the condition control.
10. form controls linkage according to claim 9, which is characterized in that
The determination unit is also used to: the parsing default linkage Rule Information determines rule type;
The determination unit is also used to: according to the rule type, determining the specify information in the default linkage Rule Information
Part;
The determination unit is also used to: determining that the control corresponding with the second control number in the specify information part is
Target widget, and obtain the target widget;
The form controls linkage further include:
Control unit, for controlling the target control according to the combined operation information in the default linkage Rule Information
The output state of part.
11. form controls linkage according to claim 10, which is characterized in that the rule type is that display is hidden
Or grey activation is set,
The determination unit is also used to: according to the combined operation information in the default linkage Rule Information, being determined and is corresponded to
Action type;
Described control unit is also used to: according to the action type, the output state of the target widget is controlled,
Wherein, the action type includes any one in showing, hide, setting ash, activate.
12. form controls linkage according to claim 10, which is characterized in that the rule type is to choose,
The determination unit is also used to: according to the combined operation information in the default linkage Rule Information, being determined and is corresponded to
Output valve;
Described control unit is also used to: the output state for controlling the target widget is to choose the output valve.
13. form controls linkage according to claim 10, which is characterized in that the rule type is assignment meter
It calculates,
The determination unit is also used to: according to the combined operation information in the default linkage Rule Information, successively being determined
Formula content;
The form controls linkage further include:
Judging unit, for judging whether the formula content is third control number;
Concatenation unit, for if it is determined that the formula content is third control number, then obtaining the third control number
The respective value of the corresponding condition control splices the corresponding position into specified formula;
The concatenation unit is also used to: if it is determined that the formula content is not the third control number, then direct splicing enters institute
State the corresponding position of specified formula;
The judging unit is also used to: when determining that the untreated formula content is not present in the combined operation information, root
Calculating operation is judged whether it is according to the combined operation information in the default linkage Rule Information;
The form controls linkage further include:
Computing unit, for if it is determined that value then is calculated according to the specified formula, and be assigned to be the calculating operation
The target widget;
Assignment unit, for if it is determined that the specified formula is directly then assigned to the target not to be the calculating operation
Control.
14. the form controls linkage according to any one of claim 8 to 13, which is characterized in that further include:
Configuration unit, for configuring the corresponding default linkage Rule Information of storage to the presupposed information library of the list
In;
The generation unit is also used to: being sequentially generated the corresponding identification according to the execution of the default linkage Rule Information and is compiled
Code,
Wherein, the default linkage Rule Information is with the storage of JSON structure.
15. a kind of computer equipment, including memory, processor and it is stored on the memory and can be on the processor
The computer program of operation, which is characterized in that the processor executes such as claim 1 to 7 when executing the computer program
Any one of described in form controls interlock method.
16. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The form controls interlock method as described in any one of claims 1 to 7 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810008510.1A CN110008449B (en) | 2018-01-04 | 2018-01-04 | Form control linkage method, form control linkage device, computer equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810008510.1A CN110008449B (en) | 2018-01-04 | 2018-01-04 | Form control linkage method, form control linkage device, computer equipment and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110008449A true CN110008449A (en) | 2019-07-12 |
CN110008449B CN110008449B (en) | 2023-07-07 |
Family
ID=67164347
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810008510.1A Active CN110008449B (en) | 2018-01-04 | 2018-01-04 | Form control linkage method, form control linkage device, computer equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110008449B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110780946A (en) * | 2019-10-30 | 2020-02-11 | 京东数字科技控股有限公司 | Method and apparatus for processing information |
CN111681737A (en) * | 2020-05-07 | 2020-09-18 | 陈�峰 | Structured report system and method for constructing liver cancer image database |
CN111916163A (en) * | 2020-08-11 | 2020-11-10 | 上海亿锎智能科技有限公司 | Method and device for realizing field management system for drug test in clinical research |
CN111933228A (en) * | 2020-08-11 | 2020-11-13 | 上海亿锎智能科技有限公司 | Method and device for realizing project distribution and management system in clinical research |
CN112035092A (en) * | 2020-08-21 | 2020-12-04 | 北京字节跳动网络技术有限公司 | Form processing method, device, equipment and readable medium |
CN112487777A (en) * | 2020-12-16 | 2021-03-12 | 思创数码科技股份有限公司 | Form generation method, device, equipment and computer readable storage medium |
CN112733511A (en) * | 2020-12-31 | 2021-04-30 | 深圳奥哲网络科技有限公司 | Form processing method, system, electronic equipment and computer readable storage medium |
CN113609826A (en) * | 2021-07-14 | 2021-11-05 | 远景智能国际私人投资有限公司 | Form processing method and device |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030105660A1 (en) * | 2001-02-20 | 2003-06-05 | Walsh Kenneth Peter | Method of relating multiple independent databases |
US20100138735A1 (en) * | 2005-06-24 | 2010-06-03 | Justsystems Corporation | Document processing device |
CN102135990A (en) * | 2011-03-11 | 2011-07-27 | 北京神舟航天软件技术有限公司 | Java server page (JSP) template-based intelligent table system capable of being defined freely and generating method |
CN103488692A (en) * | 2013-09-02 | 2014-01-01 | 用友软件股份有限公司 | Data query system and data query method |
CN103577610A (en) * | 2013-11-22 | 2014-02-12 | 河海大学 | Method for realizing linkage of query conditions in self-defined report |
CN106033471A (en) * | 2015-03-20 | 2016-10-19 | 阿里巴巴集团控股有限公司 | Method and device for processing form |
CN106599213A (en) * | 2016-12-16 | 2017-04-26 | 车智互联(北京)科技有限公司 | Form automatic filling method and system |
CN106598924A (en) * | 2016-10-28 | 2017-04-26 | 深圳前海微众银行股份有限公司 | Form generation method and device |
CN107229398A (en) * | 2017-04-27 | 2017-10-03 | 广州慧扬健康科技有限公司 | Electronic health record form controls linked system |
CN107451103A (en) * | 2016-03-31 | 2017-12-08 | 阿里巴巴集团控股有限公司 | Template for displaying and amending method and equipment |
-
2018
- 2018-01-04 CN CN201810008510.1A patent/CN110008449B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030105660A1 (en) * | 2001-02-20 | 2003-06-05 | Walsh Kenneth Peter | Method of relating multiple independent databases |
US20100138735A1 (en) * | 2005-06-24 | 2010-06-03 | Justsystems Corporation | Document processing device |
CN102135990A (en) * | 2011-03-11 | 2011-07-27 | 北京神舟航天软件技术有限公司 | Java server page (JSP) template-based intelligent table system capable of being defined freely and generating method |
CN103488692A (en) * | 2013-09-02 | 2014-01-01 | 用友软件股份有限公司 | Data query system and data query method |
CN103577610A (en) * | 2013-11-22 | 2014-02-12 | 河海大学 | Method for realizing linkage of query conditions in self-defined report |
CN106033471A (en) * | 2015-03-20 | 2016-10-19 | 阿里巴巴集团控股有限公司 | Method and device for processing form |
CN107451103A (en) * | 2016-03-31 | 2017-12-08 | 阿里巴巴集团控股有限公司 | Template for displaying and amending method and equipment |
CN106598924A (en) * | 2016-10-28 | 2017-04-26 | 深圳前海微众银行股份有限公司 | Form generation method and device |
CN106599213A (en) * | 2016-12-16 | 2017-04-26 | 车智互联(北京)科技有限公司 | Form automatic filling method and system |
CN107229398A (en) * | 2017-04-27 | 2017-10-03 | 广州慧扬健康科技有限公司 | Electronic health record form controls linked system |
Non-Patent Citations (1)
Title |
---|
李尚革: "浅谈Excel表格在造价分析中的应用实例及其意义", 《广东水利水电》 * |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110780946A (en) * | 2019-10-30 | 2020-02-11 | 京东数字科技控股有限公司 | Method and apparatus for processing information |
CN111681737A (en) * | 2020-05-07 | 2020-09-18 | 陈�峰 | Structured report system and method for constructing liver cancer image database |
CN111681737B (en) * | 2020-05-07 | 2023-12-19 | 陈�峰 | Structured report system and method for constructing liver cancer image database |
CN111916163A (en) * | 2020-08-11 | 2020-11-10 | 上海亿锎智能科技有限公司 | Method and device for realizing field management system for drug test in clinical research |
CN111933228A (en) * | 2020-08-11 | 2020-11-13 | 上海亿锎智能科技有限公司 | Method and device for realizing project distribution and management system in clinical research |
CN111916163B (en) * | 2020-08-11 | 2024-04-05 | 上海太美星云数字科技有限公司 | Method and device for realizing field management system for clinical research of drug test |
CN111933228B (en) * | 2020-08-11 | 2024-04-09 | 上海太美星云数字科技有限公司 | Method and device for realizing project distribution and management system in clinical research |
CN112035092A (en) * | 2020-08-21 | 2020-12-04 | 北京字节跳动网络技术有限公司 | Form processing method, device, equipment and readable medium |
CN112487777A (en) * | 2020-12-16 | 2021-03-12 | 思创数码科技股份有限公司 | Form generation method, device, equipment and computer readable storage medium |
CN112733511A (en) * | 2020-12-31 | 2021-04-30 | 深圳奥哲网络科技有限公司 | Form processing method, system, electronic equipment and computer readable storage medium |
CN113609826A (en) * | 2021-07-14 | 2021-11-05 | 远景智能国际私人投资有限公司 | Form processing method and device |
CN113609826B (en) * | 2021-07-14 | 2024-01-09 | 远景智能国际私人投资有限公司 | Form processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN110008449B (en) | 2023-07-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110008449A (en) | Form controls interlock method, device, computer equipment and readable storage medium storing program for executing | |
CN102696012B (en) | Creating inferred symbols from code usage | |
US6671874B1 (en) | Universal verification and validation system and method of computer-aided software quality assurance and testing | |
CN102132289B (en) | Method and device for code obfuscation | |
JP5874891B2 (en) | Program test apparatus, program test method, and program | |
CN101071378A (en) | Source code generation method, apparatus and program | |
CN105556569A (en) | Animation editing | |
EP2054118A1 (en) | Device and method for reducing or removing stenoses | |
JP6861844B2 (en) | How to generate source code | |
US20230074284A1 (en) | Generating RTSM Systems for Clinical Trials | |
Steimann et al. | Generic model assist | |
CN107391368A (en) | Source code and the analysis method of object code uniformity in a kind of airborne software | |
CN106462405A (en) | Interactive learning tool using playground | |
CN104797993B (en) | System constructing auxiliary device | |
CN111178656A (en) | Credit model training method, credit scoring device and electronic equipment | |
CN113051011A (en) | RPA and AI combined image information extraction method and device | |
CN106484389A (en) | Stream of action sectional management | |
CN104570787B (en) | Method for influenceing the control program of controller | |
JP2009163609A (en) | Program and device for generating test data | |
US20080196009A1 (en) | Apparatus and method for componentizing legacy system | |
CN108229182A (en) | Utilize the method and system of information isomorphism verification picture configuration | |
CN108614692A (en) | Edit model method, apparatus, server and medium | |
US11126408B2 (en) | Incremental code generation method | |
US7779362B1 (en) | Methods and apparatus for selecting objects by state | |
CN112464657B (en) | Hybrid text abstract generation method, system, terminal and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PP01 | Preservation of patent right |
Effective date of registration: 20240202 Granted publication date: 20230707 |
|
PP01 | Preservation of patent right |