CN107463685A - A kind of method and device for generating combinatorial search frame - Google Patents
A kind of method and device for generating combinatorial search frame Download PDFInfo
- Publication number
- CN107463685A CN107463685A CN201710680982.7A CN201710680982A CN107463685A CN 107463685 A CN107463685 A CN 107463685A CN 201710680982 A CN201710680982 A CN 201710680982A CN 107463685 A CN107463685 A CN 107463685A
- Authority
- CN
- China
- Prior art keywords
- search
- data
- search box
- objective cross
- data form
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/242—Query formulation
- G06F16/2428—Query predicate definition using graphical user interfaces, including menus and forms
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/903—Querying
- G06F16/90335—Query processing
- G06F16/90344—Query processing by using string matching techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/36—Software reuse
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Computational Linguistics (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Mathematical Physics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention provides a kind of method for generating combinatorial search frame, method:Configuration parameter is write according to preset data form, the preset data form includes the data format of combinations of definitions search box type, and the configuration parameter includes objective cross search box type;The configuration parameter and Page Template are bound, obtain target pages template;According to combinatorial search box type and the corresponding relation of preset data form, inquiry and the target data form of the objective cross search box type matching;Objective cross search box is generated according to the target data form inquired.The invention also discloses a kind of device for generating combinatorial search frame, the method and apparatus of generation combinatorial search frame provided by the present invention can simplify the compiling procedure of search frame identification code, the style of unified search frame, the development time is saved, improve the efficiency that search box is generated in software development process.
Description
Technical field
The present invention relates to the communications field, more particularly to a kind of method and device for generating combinatorial search frame.
Background technology
During current software project development, software development researcher may be according to data prototype, or user
Surface chart carries out simple development.But on stream, software development researcher, which will not take a significant amount of time, to be thought deeply such as
What reduced code, it is impossible to reach and reduce the purpose that the repeatability of code is write.In software development process, developer needs to compile
Substantial amounts of model code file is write to go to set the pattern of input frame.So, cause in software development process, generate search box
Efficiency comparison is low.
The content of the invention
It is low it is a primary object of the present invention to solve the existing efficiency comparison that search box is generated in software development process
Problem.
To achieve the above object, the present invention provides a kind of method for generating combinatorial search frame, the generation combinatorial search frame
Method include:
Configuration parameter is write according to preset data form, the preset data form includes combinations of definitions search box type
Data format, the configuration parameter include objective cross search box type;
The configuration parameter and Page Template are bound, obtain target pages template;
According to combinatorial search box type and the corresponding relation of preset data form, inquiry and the objective cross search box class
The target data form of type matching;
Objective cross search box is generated according to the target data form inquired.
Preferably, the target data form inquired also includes the data lattice for defining objective cross search rectangle style
Formula;
The step of target data form generation objective cross search box inquired described in the basis, includes:
Objective cross search rectangle style is obtained from the target data form inquired;
The objective cross search box is generated according to the objective cross search rectangle style got.
Preferably, also include before described the step of writing configuration parameter according to preset data form:
At least two preset data forms are set, and the preset data form includes:Combinations of definitions searches for rectangle style and group
Close the data format of search box type.
Preferably, also include after described the step of generating objective cross search box according to the target data form:
Keyword is received by the objective cross search box;
The keyword is stored in array;
By calling data-interface to obtain search data;
The search data are shown on the page according to the target pages template generation.
Preferably, it is described to be included by calling data-interface to obtain the step of searching for data:
The valid data form of the keyword is set to the objective cross search box;
Judge whether the keyword in the preset group is valid data form;
If the keyword in the preset group is valid data form, by calling data-interface to obtain search data.
In addition, to achieve the above object, the present invention also provides a kind of device for generating combinatorial search frame, described device bag
Include:
Module is write, for writing configuration parameter according to preset data form, the preset data form includes definition group
The data format of search box type is closed, the configuration parameter includes objective cross search box type;
Binding module, for the configuration parameter and Page Template to be bound, obtain target pages template;
Enquiry module, for the corresponding relation according to combinatorial search box type and preset data form, inquiry and the mesh
Mark the target data form of combinatorial search box type matching;
Generation module, the target data form for being inquired according to generate objective cross search box.
Preferably, the target data form inquired also includes the data lattice for defining objective cross search rectangle style
Formula;
The generation module, specifically for obtaining objective cross search box sample from the target data form inquired
Formula, the objective cross search box is generated according to the objective cross search rectangle style got.
Preferably, generating the device of combinatorial search frame also includes:
Setup module, for setting at least two preset data forms, the preset data form is searched including combinations of definitions
The data format of rope rectangle style and combinatorial search box type.
Preferably, generating the device of combinatorial search frame also includes:
Receiving module, for receiving keyword by the objective cross search box;
Memory module, for the keyword to be stored in array;
Acquisition module, for by calling data-interface to obtain search data;
Display module, for showing the search data on the page according to the target pages template generation.
Preferably, the acquisition module, specifically for setting the effective of the keyword to the objective cross search box
Data mode, judge whether the keyword in the preset group is valid data form, if the key in the preset group
Word is valid data form, by calling data-interface to obtain search data.
The method and device of generation combinatorial search frame provided by the invention, search box is defined by preset data form and combined
Pattern and type, can simplify search frame identification code compiling procedure, the style of unified search frame, save the development time, improve it is soft
The efficiency of search box is generated in part development process.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the embodiment of method one of the generation combinatorial search frame of the present invention;
Fig. 2 is the code schematic diagram for the configuration parameter write in Fig. 1 in step S10;
Fig. 3 is the code schematic diagram for binding the configuration parameter and Page Template in step S20 in Fig. 1.
Fig. 4 is the code schematic diagram for obtaining the keyword that search box receives;
Fig. 5 is that the target data form that the step S40 in Fig. 1 inquires according to generates the one of objective cross search box
Specific refinement schematic flow sheet;
Fig. 6 is the schematic flow sheet of another embodiment of method of the generation combinatorial search frame of the present invention;
Fig. 7 is the data that step S9 sets the single search box combination set at least two preset data forms in Fig. 6
Form, the code schematic diagram of single search box combination;
Fig. 8 is that step S9 sets the connection level combinatorial search combobox group set at least two preset data forms in Fig. 6
The data format of conjunction, the code schematic diagram of connection level combinatorial search combobox combination;
Fig. 9 be Fig. 6 in step S9 set at least two preset data forms in set search combo box data format,
Search for the code schematic diagram of combo box;
Figure 10 is that step S9 sets the fixed name combobox combination set at least two preset data forms in Fig. 6
Data format, the code schematic diagram of fixed name combobox combination;
Figure 11 is that step S9 sets the fixed name combobox combination set at least two preset data forms in Fig. 6
Data format, the code schematic diagram of fixed name combobox combination;
Figure 12 is the schematic flow sheet of another embodiment of method of the generation combinatorial search frame of the present invention;
Figure 13 is that the step S70 in Figure 12 is illustrated by calling data-interface to obtain a specific refinement flow of search data
Figure;
Figure 14 is the high-level schematic functional block diagram of the embodiment of device one of the generation combinatorial search frame of the present invention;
Figure 15 is the high-level schematic functional block diagram of another embodiment of device of the generation combinatorial search frame of the present invention;
Figure 16 is the high-level schematic functional block diagram of another embodiment of device of the generation combinatorial search frame of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that preferred embodiment described herein is merely to illustrate and explain the present invention, it is not used to limit this
Invention.
Referring to Fig. 1, Fig. 1 be it is provided in an embodiment of the present invention it is a kind of generate combinatorial search frame method flow chart, such as Fig. 1
Shown, the method for the generation combinatorial search frame comprises the following steps:
Step S10, configuration parameter is write according to preset data form.
In the above-described embodiments, the preset data form includes the data format of combinations of definitions search box type, described
Configuration parameter includes objective cross search box type.
In the above-described embodiments, preset data form can be the data format of system default, or user makes by oneself
The form of justice.Combinatorial search box type can have a variety of, unique mark be defined for different combinatorial search box types, according to institute
Combinatorial search box type can be uniquely determined by stating unique mark, for example, the titles pair such as " input ", " single_name " can be used
Combinatorial search box type carries out unique mark.
Please refer to Fig. 2, Fig. 2 is the code schematic diagram for the configuration parameter write in Fig. 1 in step S10.In fig. 2,
Configuration parameter includes code " value_type:" input " " and " value_type:" single_name " ", in above-mentioned implementation
In example, code " value_type:" input " in " input " " represents combinatorial search frame class of the unique mark as " input "
Type, " value_type:" single_name " in " single_name " " represents group of the unique mark as " single_name "
Close search box type.In Fig. 2 configuration parameters, to the bookmark name and " single_ of the combinatorial search box type of " input "
The parameters such as the name " bookmark name of combinatorial search box type are configured.
Step S20, the configuration parameter and Page Template are bound, obtains target pages template.
In the above-described embodiments, Page Template can be downloaded from network and pre-set, and by using Page Template, can be subtracted
Few repeated pagefile is write, and saves the plenty of time., can fast fast-growing by the way that the configuration parameter and Page Template are bound
Into the page code for including combinatorial search frame.
Please refer to Fig. 3, Fig. 3 is to show the code that the configuration parameter is bound with Page Template in step S20 in Fig. 1
It is intended to.The instruction of a search box is defined in figure 3, and the instruction definition of the search box is " ideasearchinput ", is passed through
" ideasearchinput " instruction can render to interface.Specifically, defined in " ideasearchinput " instruction
Parameter " data " is used for the default parameters for receiving search box, wherein, the configuration parameter of search box includes combinatorial search box type.
The Page Template of search box binding defined in Fig. 3, specifically, by code " templateUrl:″js/directives/
Search_input/search_input.html " " sets search box Page Template.Also include returning from search box in figure 3
The code of input data, specifically, by instructing " s.submitData " to return to the data from search box input, and will be from search box
The data of input are stored with array form.
Step S30, according to combinatorial search box type and the corresponding relation of preset data form, inquiry and the objective cross
The target data form of search box type matching.
In the above-described embodiments, combinatorial search box type and preset data form can be one-to-one relationship, Ke Yiyou
User Defined one-to-one relationship, or the one-to-one relationship of acquiescence.Each objective cross searches for box type pair
Answer the target data form of a matching.Each combinatorial search box type includes at least two search boxes.
Step S40, the target data form generation objective cross search box inquired according to.
In the above-described embodiments, objective cross search box can include multiple search boxes of same search box type, also may be used
To include multiple search boxes of different search box types, it is not limited herein.Can be with defeated in the objective cross search box of generation
Entry keyword selects keyword from the combobox of objective cross search box, is not limited herein.
Referring to Fig. 4, Fig. 4 obtains the code schematic diagram for the keyword that search box receives.Specifically, generation in Fig. 4
Code, keyword received in the combinatorial search frame that combinatorial search box type is " input " and " single_name " etc. can be obtained
Data.
Referring to Fig. 5, the target data form that Fig. 5 is the step S40 in Fig. 1 to be inquired according to generates objective cross
The specific refinement schematic flow sheet of the one of search box.Wherein, the target data form generation target that step S40 inquires according to
Combinatorial search frame specifically includes:
Step S41, objective cross search rectangle style is obtained from the target data form inquired;
In the present embodiment, the target data form inquired also includes the data for defining objective cross search rectangle style
Form, objective cross search rectangle style include the Data Styles such as search box dimensional parameters, color parameter, transparency parameter, composition
Search combo box pattern.
Step S42, the objective cross search rectangle style got according to generates the objective cross search box.
In the above-described embodiments, rectangle style can be searched for according to objective cross includes search box dimensional parameters, color ginseng
The Data Styles such as number, transparency parameter generate objective cross search box, it is described search combo box in multiple search boxes can be
Different search rectangle styles, that is, the multiple search boxes searched in combo box can be of different sizes, different colours, it is different thoroughly
The patterns such as lightness.
Referring to Fig. 6, Fig. 6 is the schematic flow sheet of another embodiment of method of the generation combinatorial search frame of the present invention.Fig. 6
Illustrated embodiment is the embodiment after being improved based on embodiment illustrated in fig. 1, is theed improvement is that, in the step shown in Fig. 1
Step S9 is added before S10, wherein:
Step S9, at least two preset data forms are set, the preset data form includes combinations of definitions search box sample
The data format of formula and combinatorial search box type.
In the above-described embodiments, searching for rectangle style includes the patterns such as search box size, search box color, transparency, combination
It can be the character string made by oneself to search for box type.The preset data form can be default form, or user makes by oneself
Adopted form.
Referring to Fig. 7, Fig. 7 is that step S9 sets the single search box set at least two preset data forms in Fig. 6
The data format of combination, the code schematic diagram of single search box combination;Fig. 8 is that step S9 sets at least two present counts in Fig. 6
Code according to the data format of the connection level combinatorial search combobox combination set in form, the combobox combination of connection level combinatorial search shows
It is intended to;Fig. 9 is the data format that step S9 sets the search combo box set at least two preset data forms in Fig. 6, searched
The code schematic diagram of rope combo box;Figure 10 is that step S9 sets the fixed name set at least two preset data forms in Fig. 6
Claim data format, the code schematic diagram of fixed name combobox combination of combobox combination;Figure 11 be Fig. 6 in step S9 set to
The data format of the fixed name combobox combination set in few two preset data forms, the generation of fixed name combobox combination
Code schematic diagram.
Specifically, Fig. 7-Figure 11 to the search box of five kinds of preset data forms and corresponding generation illustrate respectively
Bright, Fig. 7 includes data format 71 and the single search box combination 72 of single search box combination, the data of single search box combination
Form includes instruction " keyname ", the instruction " sty " for customized style and the identifier combination search for identification (RFID) tag name
" value_type " of box type, in the figure 7, the type identification that single search box is combined are " input ".Pass through single search
The data format 71 of frame combination can generate single search box combination 72, and single search box combination 72 includes the entitled classification of label
1 and two search boxes of classification 2.
Fig. 8 is that step S9 sets the connection level combinatorial search combobox group set at least two preset data forms in Fig. 6
The data format of conjunction, the code schematic diagram of connection level combinatorial search combobox combination.Fig. 8 includes joining level combinatorial search combobox group
The data format 81 of conjunction and connection level combinatorial search combobox combination 82, join and are wrapped in the data format of level combinatorial search combobox combination
Include the instruction " keyname " for first combobox title of mark, the assignment directive of the option for first combobox
" values ", " value_type " of instruction " sty " and identifier combination search box type for customized style, in fig. 8, will
The type identification for joining the combination of level combinatorial search combobox is " select ".The data lattice combined by joining level combinatorial search combobox
Formula 81 can generate connection level combinatorial search combobox combination 82, and the combobox combination of connection level combinatorial search includes the entitled department of label
With two comboboxs of copyright.
Fig. 9 be Fig. 6 in step S9 set at least two preset data forms in set search combo box data format,
Search for the code schematic diagram of combo box.Fig. 9 includes searching for the data format 91 of combo box and searches for the data format of combo box
92, searching for the data format of combo box includes being used for instruction " keyname ", the instruction for customized style of identification (RFID) tag name
" sty " and identifier combination search for " value_type " of box type, in fig.9, will search for the type of the data format of combo box
It is identified as " single_select ".Search combo box 92, search can be generated by single_select data format 91
Combo box 92 includes a combobox and a search box.
Figure 10 is that step S9 sets the fixed name combobox combination set at least two preset data forms in Fig. 6
Data format, the code schematic diagram of fixed name combobox combination.Figure 10 includes the data lattice of fixed name combobox combination
Formula 11 and the data format 12 of fixed name combobox combination, the data format of fixed name combobox combination include being used to mark
Know " the value_ of instruction " keyname ", the instruction " sty " for customized style and identifier combination the search box type of tag name
Type ", in Fig. 10, the type identification for the data format that fixed name combobox is combined is " singlename ".By solid
Name and claim the data format 11 of combobox combination to generate fixed name combobox combination 12, fixed name combobox combination 12
Include two search boxes of tag name identical.
Figure 11 is that step S9 sets the fixed name combobox combination set at least two preset data forms in Fig. 6
Data format, the code schematic diagram of fixed name combobox combination.Figure 11 includes the data lattice of fixed name combobox combination
Formula 111 and the data format 112 of fixed name combobox combination, the data format of fixed name combobox combination include being used for
Instruction " keyname ", the instruction " sty " for customized style and the identifier combination of identification (RFID) tag name search for box type
" value_type ", in fig. 11, the type identification for the data format that fixed name combobox is combined is " two_date_
input”.The data format 111 combined by fixed name combobox can generate fixed name combobox combination 12, fixed name
Claim combobox combination 12 to include two time search frames of date created tag name, have conjunction in two time search frames
" extremely ".
Supplementary notes, above-described embodiment only illustrate several preset data forms, but not as to the present invention
Limitation, other data formats can also be set to be defined the pattern and type of search box.
Figure 12 is referred to, Figure 12 is the schematic flow sheet of another embodiment of method of the generation combinatorial search frame of the present invention.
Embodiment illustrated in fig. 12 is the embodiment after being improved based on embodiment illustrated in fig. 6, is theed improvement is that, shown in Fig. 6
Step S50-S80 is added after step S40, wherein:
Step S50, keyword is received by the objective cross search box.
In the above-described embodiments, objective cross search box can be combobox or input search box, be searched from objective cross
The keyword that rope frame receives can be the keyword inputted in input search box, or the key chosen from combobox
Word.
Step S60, the keyword is stored in array.
In the above-described embodiments, due at least two objective cross search boxes on the page, can be searched by objective cross
Rope frame receives at least two keywords, at least both keyword will be stored in array, it may be determined that keyword and search box
Corresponding relation, it is easy to subsequently return to search data according to keyword.
Step S70, by calling data-interface to obtain search data.
In above-described embodiment, the data-interface is that the data corresponding with the type of the objective cross search box connect
Mouthful.Docked by data-interface with corresponding database, the search data related to keyword are searched out from database.
Step S80, the search data are shown on the page according to the target pages template generation.
In the above-described embodiments, search data can include at least one data, can be according to contraction table on the page
Form shows the search data on the page.
Figure 13 is that the step S70 in Figure 12 is illustrated by calling data-interface to obtain a specific refinement flow of search data
Figure;
Step S71, the valid data form of the keyword is set to the objective cross search box.
In the above-described embodiments, valid data form can be floating number form, integer form, character string forms.
Step S72, judge whether the keyword in the preset group is valid data form.
In the above-described embodiments, need not be to keyword if the keyword in preset group is not valid data form
Data search is carried out, saves the data search time.
If the keyword in step S73, described preset group is valid data form, searched by calling data-interface to obtain
Rope data.
In the above-described embodiments, the data-interface is that data corresponding with the type of the objective cross search box connect
Mouthful.The search data of the acquisition include at least one data.
The method for the generation combinatorial search frame that above example provides, define what search box combined by preset data form
Pattern and type, the compiling procedure of search frame identification code can be simplified, the style of unified search frame, save the development time, improve software
The efficiency of search box is generated in development process.
The present invention further provides a kind of device for generating combinatorial search frame.Figure 14 is the generation combinatorial search frame of the present invention
The embodiment of device one high-level schematic functional block diagram.In this embodiment, generating the device 100 of combinatorial search frame includes:Write
Module 101, binding module 102, enquiry module 103 and generation module 104.Wherein, module 101 is write, for according to present count
Configuration parameter is write according to form, the preset data form includes the data format of combinations of definitions search box type, the configuration
Parameter includes objective cross search box type.Binding module 102, for the configuration parameter and Page Template to be bound, obtain
Target pages template.Enquiry module 103, for the corresponding relation according to combinatorial search box type and preset data form, inquiry
With the target data form of the objective cross search box type matching.Generation module 104, for the mesh inquired according to
Mark data format generation objective cross search box.
In the above-described embodiments, the preset data form includes the data format of combinations of definitions search box type, described
Configuration parameter includes objective cross search box type.Preset data form can be the data format of system default, can also use
The customized form in family.Combinatorial search box type can have a variety of, and unique mark is defined for different combinatorial search box types,
Combinatorial search box type can be uniquely determined according to mark, for example, the titles such as " input ", " single_name " can be used to group
Close search box type and carry out unique mark.Write the configuration parameter that module 101 is write according to preset data form may refer to it is attached
Detailed description in the method for Fig. 2 and foregoing generation combinatorial search frame to Fig. 2, to avoid repeating, will not be repeated here.
Supplementary notes, in the above-described embodiments, Page Template can download what is pre-set from network, by using page
Face die plate, it is possible to reduce repeated pagefile is write, and saves the plenty of time.By by the configuration parameter and Page Template
Binding, can quickly generate the page code including search box.
The code that binding module 102 is bound the configuration parameter and Page Template can refer to referring to accompanying drawing 3 and
Detailed description in the method for foregoing generation combinatorial search frame to Fig. 3, to avoid repeating, will not be repeated here.
In the above-described embodiments, combinatorial search box type and preset data form can be one-to-one relationship, Ke Yiyou
User Defined one-to-one relationship, or the one-to-one relationship of acquiescence.Each objective cross searches for box type pair
Answer the target data form of a matching.
In the above-described embodiments, objective cross search box can include multiple search boxes of same combinatorial search box type,
Multiple search boxes of various combination search box type can also be included, be not limited herein.In the objective cross search box of generation
In can input keyword or select keyword from the combobox of objective cross search box, be not limited herein.
Remark additionally, in above-described embodiment, the target data form inquired also includes defining objective cross
Search for the data format of rectangle style, the generation module 104, specifically for being obtained from the target data form inquired
Objective cross searches for rectangle style, and the objective cross search box is generated according to the objective cross search rectangle style got.
In the above-described embodiments, the target data form inquired also includes defining objective cross search rectangle style
Data format, objective cross search rectangle style include the Data Styles such as search box dimensional parameters, color parameter, transparency parameter.
In the above-described embodiments, search box dimensional parameters, the color that rectangle style includes can be searched for according to objective cross
The Data Styles such as parameter, transparency parameter generate objective cross search box, and multiple search boxes in the search combo box can be with
For different search rectangle styles, that is, the multiple search boxes searched in combo box can be of different sizes, different colours, difference
The patterns such as transparency.
Figure 15 is referred to, Figure 15 is the functional module signal of the embodiment of device one of the generation combinatorial search frame of the present invention
Figure.Figure 15 includes writing module 101, binding module 102, enquiry module 103, generation module 104 and setup module 105.
In the above-described embodiments, module 101, binding module 102, enquiry module 103, the function of generation module 104 are write
Respectively with shown in Figure 14 write module 101, binding module 102, enquiry module 103, generation module 104 function phase it is same, be
Avoid repeating, will not be repeated here.
The setup module 105, for setting at least two preset data forms, the preset data form includes definition
The data format of combinatorial search rectangle style and combinatorial search box type.
In the above-described embodiments, searching for rectangle style includes the patterns such as search box size, search box color, transparency, combination
It can be the character string made by oneself to search for box type.The preset data form can be default form, or user makes by oneself
Adopted form.Preset data form may be referred in accompanying drawing 7-11 and the foregoing method for generating combinatorial search frame to accompanying drawing 7-11's
Describe in detail, to avoid repeating, will not be repeated here.
Figure 16 is referred to, Figure 16 is the functional module signal of the embodiment of device one of the generation combinatorial search frame of the present invention
Figure.The device 100 of generation combinatorial search frame shown in Figure 16 includes:Write module 101, binding module 102, enquiry module 103, life
Into module 104, setup module 105, receiving module 106, memory module 107, acquisition module 108 and display module 109.Above-mentioned
In embodiment, the function point of module 101, binding module 102, enquiry module 103, generation module 104 and setup module 105 is write
Not with writing module 101, binding module 102, enquiry module 103, generation module 104 and setup module 105 shown in Figure 15
Function phase is same, to avoid repeating, will not be repeated here.
The receiving module 106, for receiving keyword by the objective cross search box.Memory module 107, is used for
The keyword is stored in array.Acquisition module 108, for by calling data-interface to obtain search data.Show mould
Block 109, for showing the search data on the page according to the target pages template generation.
In the above-described embodiments, objective cross search box can be combobox or input search box, be searched from objective cross
The keyword that rope frame receives can be the keyword inputted in input search box, or the key chosen from combobox
Word.Due at least two objective cross search boxes on the page, it is crucial at least two can be received by objective cross search box
Word, at least both keyword it will be stored in array, it may be determined that the corresponding relation of keyword and search box, be easy to follow-up basis
Keyword returns to search data.The search data can include at least one data, can be according to contraction table on the page
Form shows the search data on the page.
In the above-described embodiments, the acquisition module 108, specifically for setting the pass to the objective cross search box
The valid data form of key word, judge whether the keyword in the preset group is valid data form, if the present count
Keyword in group is valid data form, by calling data-interface to obtain search data.
In the above-described embodiments, valid data form can be floating number form, integer form, character string forms.It is if pre-
If the keyword in array is not valid data form, then data search need not be carried out to keyword, when saving data search
Between.The search data of the acquisition include at least one data.
The device for the generation combinatorial search frame that above example provides, define what search box combined by preset data form
Pattern and type, the compiling procedure of search frame identification code can be simplified, the style of unified search frame, save the development time, improve software
The efficiency of search box is generated in development process.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (10)
- A kind of 1. method for generating combinatorial search frame, it is characterised in that including:Configuration parameter is write according to preset data form, the preset data form includes the data of combinations of definitions search box type Form, the configuration parameter include objective cross search box type;The configuration parameter and Page Template are bound, obtain target pages template;According to combinatorial search box type and the corresponding relation of preset data form, inquiry and objective cross search box type The target data form matched somebody with somebody;Objective cross search box is generated according to the target data form inquired.
- 2. the method for generation combinatorial search frame as claimed in claim 1, it is characterised in that the target data lattice inquired Formula also includes the data format for defining objective cross search rectangle style;The step of target data form generation objective cross search box inquired described in the basis, includes:Objective cross search rectangle style is obtained from the target data form inquired;The objective cross search box is generated according to the objective cross search rectangle style got.
- 3. the method for generation combinatorial search frame as claimed in claim 1, it is characterised in that described to be compiled according to preset data form Also include before the step of writing configuration parameter:At least two preset data forms are set, and the preset data form includes:Combinations of definitions searches for rectangle style and combination is searched The data format of rope box type.
- 4. the method for generation combinatorial search frame as claimed in claim 3, it is characterised in that described according to the target data lattice Formula also includes after generating the step of objective cross search box:Keyword is received by the objective cross search box;The keyword is stored in array;By calling data-interface to obtain search data;The search data are shown on the page according to the target pages template generation.
- 5. the method for generation combinatorial search frame as claimed in claim 4, it is characterised in that described by calling data-interface to obtain The step of taking search data includes:The valid data form of the keyword is set to the objective cross search box;Judge whether the keyword in the preset group is valid data form;If the keyword in the preset group is valid data form, by calling data-interface to obtain search data.
- A kind of 6. device for generating combinatorial search frame, it is characterised in that including:Module is write, for writing configuration parameter according to preset data form, the preset data form is searched including combinations of definitions The data format of rope box type, the configuration parameter include objective cross search box type;Binding module, for the configuration parameter and Page Template to be bound, obtain target pages template;Enquiry module, for the corresponding relation according to combinatorial search box type and preset data form, inquiry and the target group Close the target data form of search box type matching;Generation module, the target data form for being inquired according to generate objective cross search box.
- 7. the device of generation combinatorial search frame as claimed in claim 6, it is characterised in thatThe target data form inquired also includes the data format for defining objective cross search rectangle style;The generation module, specifically for obtaining objective cross search rectangle style from the target data form inquired, The objective cross search box is generated according to the objective cross search rectangle style got.
- 8. the device of generation combinatorial search frame as claimed in claim 6, it is characterised in that also include:Setup module, for setting at least two preset data forms, the preset data form includes combinations of definitions search box The data format of pattern and combinatorial search box type.
- 9. the device of generation combinatorial search frame as claimed in claim 8, it is characterised in that also include:Receiving module, for receiving keyword by the objective cross search box;Memory module, for the keyword to be stored in array;Acquisition module, for by calling data-interface to obtain search data;Display module, for showing the search data on the page according to the target pages template generation.
- 10. the device of generation combinatorial search frame as claimed in claim 9, it is characterised in thatThe acquisition module, the valid data form specifically for setting the keyword to the objective cross search box, sentences Whether the keyword in the preset group of breaking is valid data form, if the keyword in the preset group is valid data Form, by calling data-interface to obtain search data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710680982.7A CN107463685A (en) | 2017-08-10 | 2017-08-10 | A kind of method and device for generating combinatorial search frame |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710680982.7A CN107463685A (en) | 2017-08-10 | 2017-08-10 | A kind of method and device for generating combinatorial search frame |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107463685A true CN107463685A (en) | 2017-12-12 |
Family
ID=60548832
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710680982.7A Pending CN107463685A (en) | 2017-08-10 | 2017-08-10 | A kind of method and device for generating combinatorial search frame |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107463685A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109240693A (en) * | 2018-11-23 | 2019-01-18 | 四川长虹电器股份有限公司 | A kind of creation method of many condition combinatorial search control based on react |
CN112799761A (en) * | 2021-01-27 | 2021-05-14 | 中国工商银行股份有限公司 | Search bar generation method and device, electronic equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040041818A1 (en) * | 2002-08-29 | 2004-03-04 | Jvolution Limited | Design system for website text graphics |
CN101067786A (en) * | 2007-07-02 | 2007-11-07 | 华为技术有限公司 | Generation method and apparatus for report condition inputting interface |
CN103631947A (en) * | 2013-12-13 | 2014-03-12 | 广东欧珀移动通信有限公司 | List searching method and searching system |
CN104572035A (en) * | 2013-10-11 | 2015-04-29 | 北大方正集团有限公司 | Dynamic generation method and dynamic generation system of webpage codes |
CN105068716A (en) * | 2015-08-11 | 2015-11-18 | 广东欧珀移动通信有限公司 | Information search method and device |
CN105373567A (en) * | 2014-09-01 | 2016-03-02 | 北京奇虎科技有限公司 | Page generation method and client |
CN106528129A (en) * | 2016-10-27 | 2017-03-22 | 南京南瑞继保电气有限公司 | Web application interface generation system and method |
-
2017
- 2017-08-10 CN CN201710680982.7A patent/CN107463685A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040041818A1 (en) * | 2002-08-29 | 2004-03-04 | Jvolution Limited | Design system for website text graphics |
CN101067786A (en) * | 2007-07-02 | 2007-11-07 | 华为技术有限公司 | Generation method and apparatus for report condition inputting interface |
CN104572035A (en) * | 2013-10-11 | 2015-04-29 | 北大方正集团有限公司 | Dynamic generation method and dynamic generation system of webpage codes |
CN103631947A (en) * | 2013-12-13 | 2014-03-12 | 广东欧珀移动通信有限公司 | List searching method and searching system |
CN105373567A (en) * | 2014-09-01 | 2016-03-02 | 北京奇虎科技有限公司 | Page generation method and client |
CN105068716A (en) * | 2015-08-11 | 2015-11-18 | 广东欧珀移动通信有限公司 | Information search method and device |
CN106528129A (en) * | 2016-10-27 | 2017-03-22 | 南京南瑞继保电气有限公司 | Web application interface generation system and method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109240693A (en) * | 2018-11-23 | 2019-01-18 | 四川长虹电器股份有限公司 | A kind of creation method of many condition combinatorial search control based on react |
CN112799761A (en) * | 2021-01-27 | 2021-05-14 | 中国工商银行股份有限公司 | Search bar generation method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105740402B (en) | The acquisition methods and device of the semantic label of digital picture | |
Zhang et al. | Automatic Composition of Semantic Web Services. | |
CN100555275C (en) | A kind of imposition method and device | |
KR101081227B1 (en) | Method for acquiring simulation parameter in invisible code printing support system and its system | |
CN108153520A (en) | Software development methodology and device | |
CN110187878A (en) | A kind of page generation method and device | |
US8756407B2 (en) | Configuration rule prototyping tool | |
CN103412757A (en) | Realizing method of personalized integrated framework of mobile applications | |
CN101578617A (en) | Method, apparatus and computer program product for making semantic annotations for easy file organization and search | |
CN108228119A (en) | Method of printing, terminal device and storage medium based on HXML | |
CN103135979A (en) | Method, device and system for generating terminal applications | |
CN107656729A (en) | Updating device, method and the computer-readable recording medium of List View | |
CN102096581A (en) | Method and device for generating widget | |
CN110442441B (en) | Data processing method and device, readable storage medium and terminal equipment | |
CN106776507A (en) | Word file generation method and device | |
CN109636306A (en) | Node-flow shifting method, device, terminal and storage medium | |
CN110750298B (en) | AI model compiling method, equipment and storage medium | |
CN110515896A (en) | Model resource management method, model file production method, device and system | |
CN109344468B (en) | CAD drawing importing method, system and computer readable storage medium | |
CN107463685A (en) | A kind of method and device for generating combinatorial search frame | |
US20190087160A1 (en) | System and method for creating domain specific language | |
CN110019970A (en) | Inventory downloads template creation method, device, terminal and readable storage medium storing program for executing | |
CN114035803A (en) | Code automatic generation method, device, equipment and computer readable storage medium | |
CN102193789A (en) | Method and equipment for realizing configurable skip link | |
CN117035065A (en) | Model evaluation method and related device |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171212 |