CN106940721A - A kind of data processing method and system of self-defined choice box - Google Patents

A kind of data processing method and system of self-defined choice box Download PDF

Info

Publication number
CN106940721A
CN106940721A CN201710153422.6A CN201710153422A CN106940721A CN 106940721 A CN106940721 A CN 106940721A CN 201710153422 A CN201710153422 A CN 201710153422A CN 106940721 A CN106940721 A CN 106940721A
Authority
CN
China
Prior art keywords
choice box
field information
data
attribute
mark
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710153422.6A
Other languages
Chinese (zh)
Other versions
CN106940721B (en
Inventor
何龙浩
危明武
钟娜
刘祥涛
赵彦晖
孙淏添
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Electronic Invoice Marketing Data Services Ltd
Original Assignee
Electronic Invoice Marketing Data Services Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Electronic Invoice Marketing Data Services Ltd filed Critical Electronic Invoice Marketing Data Services Ltd
Priority to CN201710153422.6A priority Critical patent/CN106940721B/en
Publication of CN106940721A publication Critical patent/CN106940721A/en
Application granted granted Critical
Publication of CN106940721B publication Critical patent/CN106940721B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • G06F16/2433Query languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a kind of data processing method and system of self-defined choice box, time cost and financial cost for reducing development and application program.Present invention method includes:Receive the mark and data source of the choice box of input;According to data source, the field information of choice box is obtained;Receive the attribute of the field information of input;The Attribute Association of the mark of choice box, the field information of choice box and field information is stored in database;When triggering selection frame load request, the mark and choice box control of the choice box of input are received, the field information of choice box and the attribute of field information is obtained from database according to the mark of choice box;According to the field information of choice box obtain field information corresponding data value in data source, and by the field information of choice box and data value according to the attribute display of field information in choice box control.Present invention also offers related system, it is possible to decrease the time cost and financial cost of development and application program.

Description

A kind of data processing method and system of self-defined choice box
Technical field
The present invention relates to computer digital animation and data display technology, more particularly to a kind of data of self-defined choice box Processing method and system.
Background technology
Data query is most common a kind of function in computer with display, and choice box is then data query and the one of display Plant conventional means.Choice box mainly has two kinds of forms, and one is pop-up box selection, and two be drop-down option selection.In different applications It can be related to the various types of data of inquiry using choice box, different Data visualizations are related in turn.
Data query and the display of different business are met, existing mode is that different application journeys are write by developer Sequence code, makes various types of choice box pages and carries out data query, and carry out data display in the application.
Existing choice box production method is inevitably accomplished by expending exploitation, it is necessary to technical staff is encoded more Time and human cost, and code after establishment, it is necessary to person skilled is transferred by preset program of transferring, lead The program in machine code woven can not be reused by causing the ordinary person in irrelevant field, add time of development and application program into Sheet and financial cost.
The content of the invention
The embodiments of the invention provide a kind of method and system of self-defined choice box, for reducing development and application program Time cost and financial cost.
On the one hand the embodiment of the present invention provides a kind of data processing method of self-defined choice box, including:Receive user The mark and data source of the choice box of input;According to data source, the field information of choice box is obtained;Receive user input The attribute of field information;The Attribute Association of the mark of choice box, the field information of choice box and field information is stored in data In storehouse;When the load request of triggering selection frame, the mark and choice box control of the choice box of user input are received, according to selection The mark of frame obtains the field information of choice box and the attribute of field information from database;Obtained according to the field information of choice box Field information corresponding data value in data source is taken, and the field information of choice box and data value are believed according to field The attribute display of breath is in choice box control.
On the other hand the embodiment of the present invention provides a kind of self-defined selection frame system, including:First receiving unit, is used for Receive the mark and data source of the choice box of user input;First acquisition unit, for according to data source, obtaining choice box Field information;Second receiving unit, the attribute of the field information for receiving user input;Memory cell, for that will select The Attribute Association of the mark of frame, the field information of choice box and field information is stored in database;3rd receiving unit, is used for When the load request of triggering selection frame, the mark and choice box control of the choice box of user input are received;Second acquisition unit, For the mark according to choice box, the field information of choice box and the attribute of field information are obtained;3rd acquiring unit, for root Field information corresponding data value in data source is obtained according to the field information of choice box;Display unit, for that will select The field information and data value of frame are according to the attribute display of field information in choice box control.
As can be seen from the above technical solutions, the embodiment of the present invention has advantages below:Self-defined selection frame system will be selected That selects frame realizes that logic association is stored in database, and supports that the customized choice box of user input is identified and data source, Choice box without personalization by writing extra code, just can be developed, and the input identical choosing when quoting next time Collimation mark knowledge is selected, it is just adjustable to take out original choice box, a kind of easily choice box developing instrument is provided for numerous developers, is improved The efficiency of choice box exploitation, solves the problem of traditional development scheme code can not be reused, reduces the work of development and application program Amount and financial cost.
Brief description of the drawings
Fig. 1 is a kind of data processing method one embodiment schematic diagram of self-defined choice box in the embodiment of the present invention;
Fig. 2 is another embodiment schematic diagram of the data processing method of a kind of self-defined choice box in the embodiment of the present invention;
Fig. 3 is another embodiment schematic diagram of the data processing method of a kind of self-defined choice box in the embodiment of the present invention;
Fig. 4 is a kind of self-defined selection frame system one embodiment schematic diagram in the embodiment of the present invention;
Fig. 5 is a kind of self-defined another embodiment schematic diagram of selection frame system in the embodiment of the present invention;
Fig. 6 is a kind of self-defined another embodiment schematic diagram of selection frame system in the embodiment of the present invention;
Fig. 7 is that the data source of database table type in the embodiment of the present invention sets schematic diagram;
Fig. 8 be the embodiment of the present invention according to data source obtain field information schematic diagram;
Fig. 9 is that the field information and field information attribute of ejection choice box in the embodiment of the present invention set schematic diagram;
Figure 10 is the field information schematic diagram of drop-down choice box in the embodiment of the present invention.
Embodiment
, should for reducing exploitation the embodiments of the invention provide a kind of data processing method and system of self-defined choice box With the time cost and financial cost of program.
Referring to Fig. 1, a kind of data processing method one embodiment of self-defined choice box includes in the embodiment of the present invention:
101st, the mark and data source of the choice box of user input are received;
User is when being inquired about computer data, being shown or being operated, and choice box is often as a kind of conventional means. In the embodiment, user, according to the need for oneself and hobby inputs the mark of choice box, facilitates under user when developing choice box The secondary mark according to choice box calls the choice box, and the field information in choice box can also be configured as needed, leads to Cross and different data contents are selected in different data sources, show different field informations.
In the present embodiment, self-defined selection frame system receives the choice box mark and data source of user input, wherein counting A variety of different paths, different types of data are supported according to source, are specifically described in detail in the following embodiments.
102nd, according to data source, the field information of choice box is obtained;
User can select the different pieces of information from different paths as needed for the field information in choice box Source, it is alternatively that the field information in frame.
Self-defined selection frame system receives the data source in the different paths of user input, just can be read from data source The data content needed.
103rd, the attribute of the field information of user input is received;
User can be configured for the field information inputted in choice box to its attribute, self-defined selection frame system After the field information attribute for receiving user input, make it that the field information in choice box is shown in choice box in different forms In, facilitate user that data are inquired about and shown using choice box as needed.
104th, the Attribute Association of the mark of choice box, the field information of choice box and field information is stored in database In;
After user is provided with to the field information and the attribute of field information in the mark of choice box, choice box, make by oneself The information association of choice box is stored in database by justice selection frame system, facilitate user next according to the mark of choice box from The choice box is transferred out in database.
105th, the mark and choice box control of the choice box of user input are received, according to the mark of choice box from database Obtain the field information of choice box and the attribute of field information;
After the self-defined selection split choice box associated storage sent out of frame system, when user needs to call, i.e. triggering choosing When selecting the load request of frame, self-defined selection frame system receives choice box mark and the choice box control that user inputs in database Part, self-defined selection frame system can identify the field information and field read out from database in choice box according to choice box The attribute of information.
106th, field information corresponding data value in data source is obtained according to the field information of choice box, and will choosing The field information and data value of frame are selected according to the attribute display of field information in choice box control.
Self-defined selection frame system is read after the field information of choice box, just can according to the data path of field information from Reading data value in data source, and the field information that the field information of choice box and data value are set according to user Attribute display is in choice box control.
After user is selecting data using choice box control, data selected by user will according to user's needs, according to The mode of matching is backfilling on the current page of user.
In the present embodiment, choice box is realized that logic association is stored in database by self-defined selection frame system, and branch The customized choice box mark of user input and data source are held, without by writing extra code, individual character just can be developed The choice box of change, and the input identical choice box mark when quoting next time, it is just adjustable to take out original choice box, it is vast Developer provides a kind of easily choice box developing instrument, improves the efficiency of choice box exploitation, solves traditional development scheme generation The problem of code can not be reused, reduces the workload and financial cost of development and application program.
For ease of understanding, the method that the self-defined choice box data processing in the embodiment of the present invention is described below in detail, its In, then frame system can show choice box information, below from every side according to the selection of user by different modes for self-defined choosing To introduce:
First, by the field information of choice box and data value according to the attribute display of field information in ejection choice box;
Referring to Fig. 2, another embodiment of the data processing method of self-defined choice box includes in the embodiment of the present invention:
201st, the mark and data source of the choice box of user input are received;
User is when being inquired about computer data, being shown or being operated, and choice box is often as a kind of conventional means. In the embodiment, user, according to the need for oneself and hobby inputs the mark of choice box, facilitates under user when developing choice box The secondary mark according to choice box calls the choice box, and the field information attribute in choice box can also be set as needed Put, by selecting different data contents in different data sources, show different field informations.
In the present embodiment, self-defined selection frame system receives the choice box mark and data source of user input, wherein counting A variety of different paths, different types of data are supported according to source, data source can be database table, SQL Scripting Editions, API Interface data, corresponds to local data base list table, local data base multilist or external data respectively.For example:User is needed from local In database list table, it is preset data qymc, sh, hylb in the form of " tt_sys_user " to read preset title, then User then can be according to the store path of preset form, and lookup names are " tt_sys_user " from local data base list table Form, and read out from the form preset data qymc, sh, hylb.As shown in fig. 7, describing database table type Data source set, the choice box that sets in such as figure is designated " MyDialog ", and table name is referred to as tt_sys_user (enterprises User message table).
202nd, according to data source, the field information of choice box is obtained;
User can select the different pieces of information from different paths as needed for the field information in choice box Source, it is alternatively that the field information in frame.The self-defined data source for selecting frame system according to the different paths of user input, just The data content of needs can be read from data source.
Table tt_sys_user field information, if the table there are three fields, return are for example obtained according to data source Field information is as shown in figure 8, corresponding field identification and field description are respectively:" qymc/ enterprises mark ", " sh/ duty paragraphs ", " hylb/ categorys of employment ".
203rd, the attribute of the field information of user input is received;
User can be configured for the field information inputted in choice box to its attribute, self-defined selection frame system After the field information attribute for receiving user input, make it that the field information in choice box is shown in choice box in different forms In, facilitate user that data are inquired about and shown using choice box as needed.
Such as self-defined selection frame system is read after field information, and its display properties and querying attributes can be carried out Set, display properties indicate whether show the field, querying attributes represent the field whether can be as querying condition, Fig. 8 Different attributes is set in field information, is set in choice box and is shown " enterprise's mark ", " duty paragraph ", " category of employment " three words Section, sets " enterprise's mark ", " duty paragraph " as inquiry field.
204th, the attribute of the mark of choice box, the field information of choice box and field information is converted into json forms ginseng Number;
In database, in order to which the development philosophy of application program that follows is, it is necessary to be specified by the Parameter Switch set The json parameters of form, specific form can be text or data group, not limit herein specifically.
205th, the Attribute Association of the mark of choice box, the field information of choice box and field information is stored in database In;
After user is provided with to the field information and the attribute of field information in the mark of choice box, choice box, make by oneself Justice is selected after the json parameters that the Parameter Switch set is specified format by frame system, by its persistence associated storage to data In storehouse, the parameter extraction set is parsed when using.
206th, the mark and choice box control of the choice box of user input are received, according to the mark of choice box from database Obtain the field information of choice box and the attribute of field information;
After the self-defined selection split choice box associated storage sent out of frame system, when user needs to call, i.e. triggering choosing When selecting the load request of frame, choice box mark and choice box control that user inputs in database, self-defined choice box are received System can identify the attribute of the field information and field information that are read out from database in choice box according to choice box.
Such as user inputs " MyDialog " in the element of choice box, choice box control selection ejection choice box, wherein Choice box control includes drop-down choice box or ejection choice box, self-defined selection frame system will carry the mark of choice box from Request data in database, the attribute for the field information that database can then be set according to user returns to field information.Such as user Set and show " enterprise's mark ", " duty paragraph ", " category of employment " three fields, set " enterprise's mark ", " duty paragraph " to be used as inquiry word " enterprise's mark ", " duty paragraph ", " category of employment " three fields are can be seen that in section, the choice box of return, but only " enterprise marks Knowledge ", " duty paragraph " can be inquired about as inquiry field.
207th, field information corresponding data value in data source is obtained according to the field information of choice box;
Self-defined selection frame system first parses the data path of field information, further according to word after field information is got The data path of segment information reads field information corresponding data value in data source from data source, for example:Make by oneself Justice selection frame system reads " enterprise's mark ", " duty paragraph ", " industry from the tt_sys_user forms in local data list table The field information of classification ", " enterprise's mark ", " duty paragraph ", " category of employment " just can be read according to field information and is expert at or place Specific value in row, such as " grand emerging food " corresponding with " enterprise's mark ", " grand to make the science and technology prosperous ", " grand emerging real estate ", with " tax Number " corresponding " 1231 ", " 15645 ", " 18485 ", " food and drink " corresponding with " category of employment ", " internet " " real estate ".Need It is noted that the form mark and field information in the present embodiment are merely illustrative of, specific form mark and content, herein It is not specifically limited.
208th, the data value of acquisition is converted to the json parameters of specified format according to the attribute of field information;
Self-defined selection frame system is got after data value, by category of the data value got according to field information Property be converted to the json parameters of specified format, the wherein attribute of field information includes display properties and querying attributes, display properties Indicate whether to show the field, querying attributes represent the field whether can as querying condition, for example show " enterprise's mark ", Three fields of " duty paragraph ", " category of employment ", then corresponding with " enterprise's mark ", " duty paragraph ", " category of employment " " grand emerging respectively Food ", " grand to make the science and technology prosperous ", " grand emerging real estate ", " 1231 ", " 15645 ", " 18485 ", " food and drink ", " internet ", " real estate " turn The json parameters of specified format are changed to, " enterprise's mark ", " duty paragraph " are set as inquiry field, then the inquiry field of display " grand emerging food ", " grand to make the science and technology prosperous ", " grand emerging real estate ", " 1231 ", " 15645 ", " 18485 " are also converted into specified format Json parameters, specific form can be text or data group, not limit herein specifically.
209th, by the field information of choice box and data value according to the attribute display of field information in ejection choice box.
When user's selection ejection choice box, self-defined selection frame system will be according to the attribute of field information by choice box Field information and data value according to field information attribute display ejection choice box in, for example field information be " qymc/ Enterprise's mark ", " sh/ duty paragraphs ", " hylb/ categorys of employment ", data value are " grand emerging food ", " grand to make the science and technology prosperous ", " Hong Xingdi Production ", " 1231 ", " 15645 ", " 18485 ", " food and drink ", " internet ", " real estate ", wherein " enterprise's mark ", " duty paragraph ", " OK Industry classification " is display field, and " enterprise's mark ", " duty paragraph " are inquiry field, then the choice box control and data shown is then such as Fig. 9 It is shown.
When user is after using ejection choice box control selection data, the data selected by user will according to user's needs, It is backfilling into the way of matching on the current page of user.For example:When user using ejection choice box control have selected data Item title qymc, sh, hylb, these data item titles are just matched with the name attributes of user's current page, if matching Success, then will eject data corresponding with data item title in selection circle and backfill in current page.
In the present embodiment, choice box is realized that logic association is stored in database by self-defined selection frame system, and branch The customized choice box mark of user input and data source are held, without by writing extra code, individual character just can be developed The choice box of change, and the input identical choice box mark when quoting next time, it is just adjustable to take out original choice box, it is vast Developer provides a kind of easily choice box developing instrument, improves the efficiency of choice box exploitation, solves traditional development scheme generation The problem of code can not be reused, reduces the workload and financial cost of development and application program.
Secondly, in the present embodiment, user have selected ejection choice box control, field believed before choice box program is called Breath is shown in ejection choice box control, improves the diversity of scheme.
2nd, the field information of choice box and data value are being pulled down into choice box control according to the attribute display of field information In;
Referring to Fig. 3, another embodiment bag of the data processing method of self-defined choice box in the embodiment of the present invention Include:
301st, the mark and data source of the choice box of user input are received;
302nd, according to data source, the field information of choice box is obtained;
303rd, the attribute of the field information of user input is received;
304th, the attribute of the mark of choice box, the field information of choice box and field information is converted into json forms ginseng Number;
305th, the Attribute Association of the mark of choice box, the field information of choice box and field information is stored in database In;
306th, the mark and choice box control of the choice box of user input are received, according to the mark of choice box from database Obtain the field information of choice box and the attribute of field information;
307th, field information corresponding data value in data source is obtained according to the field information of choice box;
308th, the data value of acquisition is converted to the json parameters of specified format according to the attribute of field information;
It should be noted that step 301 in the present embodiment is to 308 and the step 201 in embodiment described in Fig. 2 to 208 Similar, specific here is omitted.
309th, by the field information of choice box and data value according to the attribute display of field information in drop-down choice box.
When user's selection drop-down choice box, self-defined selection frame system will be according to the attribute of field information by choice box Field information and data value according to field information attribute display drop-down choice box in, for example field information be " qymc/ Enterprise's mark ", " sh/ duty paragraphs ", " hylb/ categorys of employment ", data value are " grand emerging food ", " grand to make the science and technology prosperous ", " Hong Xingdi Production ", " 1231 ", " 15645 ", " 18485 ", " food and drink ", " internet ", " real estate ", wherein " enterprise's mark ", " duty paragraph ", " OK Industry classification " is display field, and " enterprise's mark ", " duty paragraph " are inquiry field, then the choice box control of the enterprise's mark inquiry shown Part and data are as shown in Figure 10.
When user is after using drop-down choice box control selection data, the data selected by user will according to user's needs, It is backfilling into the way of matching on the current page of user.For example:When user using drop-down choice box control have selected data Item title qymc, sh, hylb, these data item titles are just matched with the name attributes of user's current page, if matching Success, then will eject data corresponding with data item title in selection circle and backfill in current page.
In the present embodiment, choice box is realized that logic association is stored in database by self-defined selection frame system, and branch The customized choice box mark of user input and data source are held, without by writing extra code, individual character just can be developed The choice box of change, and the input identical choice box mark when quoting next time, it is just adjustable to take out original choice box, it is vast Developer provides a kind of easily choice box developing instrument, improves the efficiency of choice box exploitation, solves traditional development scheme generation The problem of code can not be reused, reduces the workload and financial cost of development and application program.
Secondly, in the present embodiment, user have selected drop-down choice box control, field believed before choice box program is called Breath is shown in drop-down choice box control, improves the diversity of scheme.
The method that described above is self-defined choice box data processing in the embodiment of the present invention, will be described below of the invention real Apply the self-defined selection frame system in example.
Referring to Fig. 4, one embodiment of the self-defined selection frame system in the embodiment of the present invention includes:
First receiving unit 401, for the mark and data source of the choice box for receiving user input;
First acquisition unit 402, for according to data source, obtaining the field information of choice box;
Second receiving unit 403, the attribute of the field information for receiving user input;
Memory cell 404, for the Attribute Association of the mark of choice box, the field information of choice box and field information to be deposited Storage is in database;
3rd receiving unit 405, mark and choice box control for the choice box that receives user input;
Second acquisition unit 406, for the mark according to choice box, obtains the field information and field information of choice box Attribute;
3rd acquiring unit 407, for obtaining field information correspondence in data source according to the field information of choice box Data value;
Display unit 408, for the field information of choice box and data value to be existed according to the attribute display of field information In choice box control.
It should be noted that self-defined selection frame system in the effect of each unit and embodiment illustrated in fig. 1 in the present embodiment Effect it is similar, it is specific that here is omitted.
In the present embodiment, choice box is realized that logic association is stored by self-defined selection frame system by memory cell 404 In database, and support that user inputs customized choice box mark and data source by the first receiving unit 401, without The extra code by writing, just can develop the choice box of personalization, and pass through the 3rd receiving unit when quoting next time 405 input identical choice box marks, it is just adjustable to take out original choice box, provide one kind for numerous developers and easily select Frame developing instrument, improves the efficiency of choice box exploitation, solves the problem of traditional development scheme code can not be reused, reduction exploitation The workload and financial cost of application program.
For ease of understanding, the self-defined selection frame system in the embodiment of the present invention is described below in detail, wherein, self-defined choosing Then frame system can show choice box information by different modes, introduce from every side below according to the selection of user:
First, the field information of choice box and data value are being ejected into choice box control according to the attribute display of field information In;
Referring to Fig. 5, another embodiment of self-defined selection frame system includes in the embodiment of the present invention:
First receiving unit 501, for the mark and data source of the choice box for receiving user input;
First acquisition unit 502, for according to data source, obtaining the field information of choice box;
Second receiving unit 503, the attribute of the field information for receiving user input;
First parameter conversion unit 504, for by the category of the mark of choice box, the field information of choice box and field information Property is converted to json format parameters;
Memory cell 505, for the Attribute Association of the mark of choice box, the field information of choice box and field information to be deposited Storage is in database;
3rd receiving unit 506, mark and choice box control for the choice box that receives user input;
Second acquisition unit 507, for the mark according to choice box, obtains the field information and field information of choice box Attribute;
3rd acquiring unit 508, for obtaining field information correspondence in data source according to the field information of choice box Data value;
Second parameter conversion unit 509, for data value to be converted into json forms ginseng according to the attribute of field information Number;
Display unit 510, for the field information of choice box and data value to be existed according to the attribute display of field information In choice box control.
Wherein, the first receiving unit 501 includes:
First receiving subelement 5011, the mark of the choice box for receiving user input;
Second receiving subelement 5012, for receiving user from local data base list table, local data base multilist or outside The data source selected in data.
Wherein, first acquisition unit 502 includes:
Subelement 5021 is read, for from preset in local data base list table, local data base multilist or external data Preset data is read in form;
Storing sub-units 5022, for preset data to be stored into choice box, it is alternatively that the field information of frame.
Wherein, display unit 510 includes:
First display unit 5101, for by the field information of the choice box and the data value according to the field The attribute display of information is in ejection choice box.
It should be noted that the self-defined choice box system in the present embodiment in embodiment described in the effect of each unit and Fig. 2 The effect of system is similar, and specific here is omitted.
In the present embodiment, choice box is realized that logic association is stored by self-defined selection frame system by memory cell 504 In database, and support that user inputs customized choice box mark and data source by the first receiving unit 501, without The extra code by writing, just can develop the choice box of personalization, and pass through the 3rd receiving unit when quoting next time 505 input identical choice box marks, it is just adjustable to take out original choice box, provide one kind for numerous developers and easily select Frame developing instrument, improves the efficiency of choice box exploitation, solves the problem of traditional development scheme code can not be reused, reduction exploitation The workload and financial cost of application program.
Secondly, in the present embodiment, user is before choice box program is called, and user have selected ejection choice box control, first Display unit 5101 includes field information in ejection choice box control, improves the diversity of scheme.
2nd, the field information of choice box and data value are being pulled down into choice box control according to the attribute display of field information In;
Referring to Fig. 6, another embodiment of self-defined selection frame system includes in the embodiment of the present invention:
First receiving unit 601, for the mark and data source of the choice box for receiving user input;
First acquisition unit 602, for according to data source, obtaining the field information of choice box;
Second receiving unit 603, the attribute of the field information for receiving user input;
First parameter conversion unit 604, for by the category of the mark of choice box, the field information of choice box and field information Property is converted to json format parameters;
Memory cell 605, for the Attribute Association of the mark of choice box, the field information of choice box and field information to be deposited Storage is in database;
3rd receiving unit 606, mark and choice box control for the choice box that receives user input;
Second acquisition unit 607, for the mark according to choice box, obtains the field information and field information of choice box Attribute;
3rd acquiring unit 608, for obtaining field information correspondence in data source according to the field information of choice box Data value;
Second parameter conversion unit 609, for data value to be converted into json forms ginseng according to the attribute of field information Number;
Display unit 610, for the field information of choice box and data value to be existed according to the attribute display of field information In choice box control.
Wherein, the first receiving unit 601 includes:
First receiving subelement 6011, the mark of the choice box for receiving user input;
Second receiving subelement 6012, for receiving user from local data base list table, local data base multilist or outside The data source selected in data.
Wherein, first acquisition unit 602 includes:
Subelement 6021 is read, for from preset in local data base list table, local data base multilist or external data Preset data is read in form;
Storing sub-units 6022, for preset data to be stored into choice box, it is alternatively that the field information of frame.
Wherein, display unit 610 includes:
Second display unit 6102, for by the field information of the choice box and the data value according to the field The attribute display of information is in drop-down choice box.
In the present embodiment, choice box is realized that logic association is stored by self-defined selection frame system by memory cell 604 In database, and support that user inputs customized choice box mark and data source by the first receiving unit 601, without The extra code by writing, just can develop the choice box of personalization, and pass through the 3rd receiving unit when quoting next time 605 input identical choice box marks, it is just adjustable to take out original choice box, provide one kind for numerous developers and easily select Frame developing instrument, improves the efficiency of choice box exploitation, solves the problem of traditional development scheme code can not be reused, reduction exploitation The workload and financial cost of application program.
Secondly, in the present embodiment, user is before choice box program is called, and user have selected drop-down choice box control, second Display unit 6102 includes field information in drop-down choice box control, improves the diversity of scheme.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with Realize by another way.For example, device embodiment described above is only schematical, for example, the division of unit, It is only a kind of division of logic function, there can be other dividing mode when actually realizing, such as multiple units or component can be with With reference to or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or discussed Coupling each other or direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING of device or unit or Communication connection, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be physically separate, be shown as unit Part can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple networks On unit.Some or all of unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If integrated unit is realized using in the form of SFU software functional unit and is used as independent production marketing or in use, can To be stored in a computer read/write memory medium.Based on it is such understand, technical scheme substantially or Saying all or part of the part contributed to prior art or the technical scheme can be embodied in the form of software product Out, the computer software product is stored in a storage medium, including some instructions are to cause a computer equipment (can be personal computer, server, or network equipment etc.) performs all or part of each embodiment method of the invention Step.And foregoing storage medium includes:It is USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random Access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with Jie of store program codes Matter.
More than, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to foregoing reality Example is applied the present invention is described in detail, it will be understood by those within the art that:It still can be to foregoing each Technical scheme described in embodiment is modified, or carries out equivalent to which part technical characteristic;And these are changed Or replace, the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (13)

1. a kind of data processing method of self-defined choice box, it is characterised in that applied to self-defined selection frame system, including:
Receive the mark and data source of the choice box of user input;
According to the data source, the field information of the choice box is obtained;
Receive the attribute of the field information of the user input;
The Attribute Association of the identifying of the choice box, the field information of the choice box and the field information is stored in data In storehouse;
When triggering the load request of the choice box, mark and the choice box control of the choice box of the user input are received Part, the field information and the field information of the choice box are obtained according to the mark of the choice box from the database Attribute;
Field information corresponding data value in the data source is obtained according to the field information of the choice box, and By the field information of the choice box and the data value according to the attribute display of the field information in the choice box control In part.
2. according to the method described in claim 1, it is characterised in that in the field information for receiving the user input Attribute after, the Attribute Association of the identifying of the choice box, the field information of the choice box and the field information is deposited Before storage is in database, methods described also includes:
The attribute of the identifying of the choice box, the field information of the choice box and the field information is converted into json lattice Formula parameter.
3. method according to claim 2, it is characterised in that described according to the field information of choice box acquisition institute Field information is stated in the data source after corresponding data value, methods described also includes:
The data value is converted into the json format parameters according to the attribute of the field information.
4. according to the method described in claim 1, it is characterised in that the choice box control includes:
Eject choice box or drop-down choice box.
5. according to the method described in claim 1, it is characterised in that the data source includes:
Data source in local data base list table, local data base multilist or external data.
6. method according to claim 5, it is characterised in that described according to the data source, obtains the choice box Field information include:
Preset data is read from the preset form of local data base list table, local data base multilist or external data, and is stored Into the choice box, the field information of the choice box is used as.
7. according to the method described in claim 1, it is characterised in that the attribute of the field information includes:
The display properties and querying attributes of the field information.
8. a kind of self-defined selection frame system, it is characterised in that including:
First receiving unit, for the mark and data source of the choice box for receiving user input;
First acquisition unit, for according to the data source, obtaining the field information of the choice box;
Second receiving unit, the attribute of the field information for receiving the user input;
Memory cell, for by the attribute of the identifying of the choice box, the field information of the choice box and the field information Associated storage is in database;
3rd receiving unit, for when triggering the load request of the choice box, receiving the selection of the user input The mark and choice box control of frame;
Second acquisition unit, for the mark according to the choice box, obtains the field information and the field of the choice box The attribute of information;
3rd acquiring unit, for obtaining the field information in the data source according to the field information of the choice box Corresponding data value;
Display unit, for the field information of the choice box and the data value to be shown according to the attribute of the field information Show in the choice box control.
9. system according to claim 8, it is characterised in that the system also includes:
First parameter conversion unit, for the identifying of the choice box, the field information of the choice box and the field to be believed The attribute of breath is converted to json format parameters;
Second parameter conversion unit, for the data value to be converted into the json lattice according to the attribute of the field information Formula parameter.
10. system according to claim 8, it is characterised in that first receiving unit includes:
First receiving subelement, the mark of the choice box for receiving user input;
Second receiving subelement, for receiving the user from local data base list table, local data base multilist or external data The data source of middle selection.
11. system according to claim 10, it is characterised in that the first acquisition unit includes:
Subelement is read, for from the local data base list table, the local data base multilist or the external data Preset data is read in preset form;
Storing sub-units, for into the choice box, regarding preset data storage as the field information of the choice box.
12. system according to claim 8, it is characterised in that the attribute of the field information includes:
The display properties and querying attributes of the field information.
13. system according to claim 8, it is characterised in that the display unit includes:
First display unit, for by the category of the field information of the choice box and the data value according to the field information Property be shown in ejection choice box in;
Second display unit, for by the category of the field information of the choice box and the data value according to the field information Property be shown in drop-down choice box in.
CN201710153422.6A 2017-03-15 2017-03-15 Data processing method and system for user-defined selection box Active CN106940721B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710153422.6A CN106940721B (en) 2017-03-15 2017-03-15 Data processing method and system for user-defined selection box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710153422.6A CN106940721B (en) 2017-03-15 2017-03-15 Data processing method and system for user-defined selection box

Publications (2)

Publication Number Publication Date
CN106940721A true CN106940721A (en) 2017-07-11
CN106940721B CN106940721B (en) 2020-02-14

Family

ID=59468993

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710153422.6A Active CN106940721B (en) 2017-03-15 2017-03-15 Data processing method and system for user-defined selection box

Country Status (1)

Country Link
CN (1) CN106940721B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109299288A (en) * 2018-11-09 2019-02-01 北京锐安科技有限公司 Read method, device, server and the storage medium of dictionary data
CN109344165A (en) * 2018-11-23 2019-02-15 福建榕基软件股份有限公司 A kind of querying method and storage equipment
CN109871500A (en) * 2019-01-24 2019-06-11 平安科技(深圳)有限公司 Page loading method, device, computer equipment and storage medium
CN110221745A (en) * 2019-05-30 2019-09-10 贝壳技术有限公司 For the generation method and device of the multi-layer drop-down choice box of asynchronous data
WO2023028832A1 (en) * 2021-08-31 2023-03-09 京东方科技集团股份有限公司 Data display method and apparatus, storage medium, and electronic device
CN116382659A (en) * 2023-05-29 2023-07-04 珠海乐图软件有限公司 Data definition method of code-free development platform

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040250241A1 (en) * 2003-02-26 2004-12-09 O'neil Edward K. System and method for dynamic data binding in distributed applications
CN101083684A (en) * 2007-07-24 2007-12-05 华为技术有限公司 Communication apparatus batch configuration managerial approach and apparatus
CN101359290A (en) * 2008-09-11 2009-02-04 中兴通讯股份有限公司 Method for customizing service document based on metadata and apparatus
CN101814064A (en) * 2009-02-23 2010-08-25 华为技术有限公司 Establishment method of report template, report generation method and report system
CN102346785A (en) * 2011-11-15 2012-02-08 北京创腾科技有限公司 Method and device for directly self-defining field of database
US8483268B1 (en) * 2006-03-14 2013-07-09 Geo Semiconductor Inc. Method and apparatus for frame, field and macroblock adaptive progressive/interlace coding selection
CN103699482A (en) * 2013-12-12 2014-04-02 金蝶软件(中国)有限公司 Method and device for testing reasonableness of controls
CN104699488A (en) * 2015-03-31 2015-06-10 北京奇虎科技有限公司 Method, equipment and system for acquiring APP (application) interface control data dynamically

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040250241A1 (en) * 2003-02-26 2004-12-09 O'neil Edward K. System and method for dynamic data binding in distributed applications
US8483268B1 (en) * 2006-03-14 2013-07-09 Geo Semiconductor Inc. Method and apparatus for frame, field and macroblock adaptive progressive/interlace coding selection
CN101083684A (en) * 2007-07-24 2007-12-05 华为技术有限公司 Communication apparatus batch configuration managerial approach and apparatus
CN101359290A (en) * 2008-09-11 2009-02-04 中兴通讯股份有限公司 Method for customizing service document based on metadata and apparatus
CN101814064A (en) * 2009-02-23 2010-08-25 华为技术有限公司 Establishment method of report template, report generation method and report system
CN102346785A (en) * 2011-11-15 2012-02-08 北京创腾科技有限公司 Method and device for directly self-defining field of database
CN103699482A (en) * 2013-12-12 2014-04-02 金蝶软件(中国)有限公司 Method and device for testing reasonableness of controls
CN104699488A (en) * 2015-03-31 2015-06-10 北京奇虎科技有限公司 Method, equipment and system for acquiring APP (application) interface control data dynamically

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
袁长春 等: "基于自定义表单的业务一体化架构平台研究", 《江苏科技信息》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109299288A (en) * 2018-11-09 2019-02-01 北京锐安科技有限公司 Read method, device, server and the storage medium of dictionary data
CN109344165A (en) * 2018-11-23 2019-02-15 福建榕基软件股份有限公司 A kind of querying method and storage equipment
CN109871500A (en) * 2019-01-24 2019-06-11 平安科技(深圳)有限公司 Page loading method, device, computer equipment and storage medium
WO2020151333A1 (en) * 2019-01-24 2020-07-30 平安科技(深圳)有限公司 Page loading method, apparatus, computer device and storage medium
CN110221745A (en) * 2019-05-30 2019-09-10 贝壳技术有限公司 For the generation method and device of the multi-layer drop-down choice box of asynchronous data
WO2023028832A1 (en) * 2021-08-31 2023-03-09 京东方科技集团股份有限公司 Data display method and apparatus, storage medium, and electronic device
CN116382659A (en) * 2023-05-29 2023-07-04 珠海乐图软件有限公司 Data definition method of code-free development platform
CN116382659B (en) * 2023-05-29 2023-09-01 珠海乐图软件有限公司 Data definition method of code-free development platform

Also Published As

Publication number Publication date
CN106940721B (en) 2020-02-14

Similar Documents

Publication Publication Date Title
CN106940721A (en) A kind of data processing method and system of self-defined choice box
CN104599153B (en) Commodity recommendation method, commodity recommendation server and commodity recommendation terminal
CN106897341A (en) 2 D code information querying method, server, client and system
CN104574011B (en) Produce the method and apparatus and warehouse management system of order
US10528626B2 (en) Document processing
CN104156390A (en) Comment recommendation method and system
CN110490721A (en) Financial affairs receipt generation method and Related product
CN105404507A (en) Process template construction method and system
CN107205042B (en) Accurate information pushing method and system
CN111753210B (en) Resource pushing method and device, computer equipment and computer readable storage medium
CN106294500A (en) The method for pushing of content item, Apparatus and system
CN108765087A (en) Order asynchronous processing method, server and storage medium
CN104766209A (en) Data batch processing method and system
CN107679208A (en) A kind of searching method of picture, terminal device and storage medium
CN106406775A (en) Bill printing method and device
CN102385625A (en) Entity name matching
CN111026753A (en) Label storage method and device based on tree structure
CN110347786A (en) A kind of tuning method and system of semantic model
CN108052310A (en) A kind of data processing method and server based on business model description information
CN108153465A (en) Label setting method and device based on enterprise SaaS applications
CN109214362A (en) Bill processing method and relevant device
CN110245215B (en) Text retrieval method and device
CN109377381A (en) Insurance configuration method, device, computer equipment and storage medium based on data analysis
CN111914548A (en) Intelligent document filling method and system and related equipment
CN110998542B (en) Data exchange system, data exchange method, and data exchange program

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
CB02 Change of applicant information

Address after: Room 01 and 02, 10 / F, building 4, zone 3, No. 186, South Fourth Ring West Road, Fengtai District, Beijing 100070

Applicant after: Guoxin electronic bill Platform Information Service Co., Ltd.

Address before: 100089 Beijing, Haidian District West Third Ring Road, No. 13, layer 1-1303, No. 87

Applicant before: Electronic invoice Marketing Data Services Ltd

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant