CN108170415A - A kind of light-duty applications program creation method based on configurable control - Google Patents

A kind of light-duty applications program creation method based on configurable control Download PDF

Info

Publication number
CN108170415A
CN108170415A CN201711397558.8A CN201711397558A CN108170415A CN 108170415 A CN108170415 A CN 108170415A CN 201711397558 A CN201711397558 A CN 201711397558A CN 108170415 A CN108170415 A CN 108170415A
Authority
CN
China
Prior art keywords
interface
control
light
applications program
duty applications
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
CN201711397558.8A
Other languages
Chinese (zh)
Other versions
CN108170415B (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.)
BOCOM SMART NETWORK TECHNOLOGIES Inc
Original Assignee
BOCOM SMART NETWORK TECHNOLOGIES Inc
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 BOCOM SMART NETWORK TECHNOLOGIES Inc filed Critical BOCOM SMART NETWORK TECHNOLOGIES Inc
Priority to CN201711397558.8A priority Critical patent/CN108170415B/en
Publication of CN108170415A publication Critical patent/CN108170415A/en
Application granted granted Critical
Publication of CN108170415B publication Critical patent/CN108170415B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The invention discloses a kind of light-duty applications program creation method based on configurable control, including:A, any control in list of controls is clicked, obtains the version number of control;B, the control version number in the version number and database of control is compared, the control of latest edition is downloaded if version number's difference of the two, be otherwise loaded directly into the control page;C, an init object and config objects are created after the completion of the loading of the control page;D, interface list is inserted into an empty array by setUrl methods, according to interface selection interface acquisition interface list and write-in or the urlList attributes by the init objects;E, the either interface in interface list is selected, after return row, default value or the initial value of changing interface, the auto parameters for searching interface are set as true.Light-duty applications program creation method provided by the present invention based on configurable control, can quickly create light-duty applications program, be used for target user, improve the convenience of operation.

Description

A kind of light-duty applications program creation method based on configurable control
Technical field
The present invention relates to computer information technology field more particularly to a kind of light-duty applications based on configurable control Program creation method.
Background technology
In recent years, as demand of the people to application is increasingly diversified, higher want is proposed for the flexibility of application It asks, for example is required to cope with various provisional, paroxysmal demand has then just derived the general of light-duty applications program It reads.
In the prior art, traditional application program is developed by technical staff, issued, and user carries out according to different demands It downloads, developer carries out the exploitation of new application application, cause the wave of manpower and materials cost further according to the new demand of user Take, hair is opened of high cost.
Therefore, the prior art has yet to be improved and developed.
Invention content
The technical problem to be solved in the present invention is, for the drawbacks described above of the prior art, provides a kind of based on configurable The light-duty applications program creation method of control, it is intended to solve the problems, such as that application development of the prior art is of high cost.
The technical proposal for solving the technical problem of the invention is as follows:
A kind of light-duty applications program creation method based on configurable control, wherein, include the following steps:
A, any control in list of controls is clicked, obtains the version number of the control;
B, the control version number in the version number and database of the control is compared, if the version of the control The control of latest edition number is then downloaded with the control version number difference in database, is otherwise loaded directly into the control page;
C, an init object and config objects are created after the completion of the control page loading;
D, interface list is inserted into an empty array by setUrl methods, interface selection interface is created, according to institute State interface selection interface obtain interface list and be written or the urlList attributes by the init objects;
E, the either interface in the interface list is selected, after return row, default value or the initial value of changing the interface, It finds when being set as true using the auto parameters of the method for the interface, then automatic running this method;
Or the url of the interface is written in subpage frame config objects, continues to edit the parameter of the interface, is searched When being set as true using the autoRun parameters of the method for reconfiguration mouth to the control page, automatic running this method.
Preferably, the light-duty applications program creation method based on configurable control, wherein, before the step A Further include step F:
F, it after sending request to backstage by ajax, is obtained accordingly to control base management system by restful interfaces List of controls.
Preferably, the light-duty applications program creation method based on configurable control, wherein, any interface pair Answer a json object for including unique mark.
Preferably, the light-duty applications program creation method based on configurable control, wherein, to any interface Type, return row length limitation, input parameter length limitation be written in the urlList attributes of the init objects.
Preferably, the light-duty applications program creation method based on configurable control, wherein, the establishment interface choosing Select interface the specific steps are:
D1, interface is inserted into the fnList of init objects by setFn methods;
D2 and then interface described in urlIdus is bound by setUrl methods, complete the establishment of interface selection interface.
Preferably, the light-duty applications program creation method based on configurable control, wherein, the interface choosing The specific steps selected include:
E1, carry out the interface that selection parameter quantity and type all meet according to the urlList of the init objects;
E2 and then the character string that the parameter of the interface is spliced into button.
Preferably, the light-duty applications program creation method based on configurable control, wherein, it is described to preserve light-duty answer It is with the specific step of program:
The control page and config object compressions are preserved into the position to fastDFS.
Compared with prior art, the light-duty applications program creation method provided by the present invention based on configurable control, will The control page carries out configuration association with service existing on platform, data, the release quickly of light-duty applications program is formed, for target Family uses, and improves the convenience of operation, and development cost is low, and being integrated commander provides the information branch of more comprehensive multidimensional Support, provides more accurately decision-making foundation.
Description of the drawings
Fig. 1 is a kind of flow of the light-duty applications program creation method preferred embodiment based on configurable control of the present invention Figure.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, clear and definite, develop simultaneously embodiment pair referring to the drawings The present invention is further described.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and does not have to It is of the invention in limiting.
Fig. 1 is a kind of flow of the light-duty applications program creation method preferred embodiment based on configurable control of the present invention Figure, as shown in Figure 1, present pre-ferred embodiments provide a kind of light-duty applications program creation method based on configurable control, Wherein, include the following steps:Any control in S100, click list of controls obtains the version number of the control;S200, general Control version number in the version number and database of the control is compared, if in the version number and database of the control Control version number difference then download the control (downloading micro- five application page) of latest edition, be otherwise loaded directly into the control page In;An init object and config objects are created after the completion of S300, control page loading;S400, pass through setUrl side Method is inserted into interface list into an empty array, creates interface selection interface, and interface is obtained according to the interface selection interface List and write-in or the urlList attributes by the init objects;Any in S500, the selection interface list connects Mouthful, after return row, default value or the initial value of changing the interface, find and set using the auto parameters of the method for the interface When being set to true, then automatic running this method;Or the url of the interface is written in subpage frame config objects, after sequeling The parameter of volume interface, when finding the control page and being set as true using the autoRun parameters of the method for reconfiguration mouth, Automatic running this method.
The key point of the present invention is:After developer uploads the control of versatility, non-technical personnel can (including user) Arbitrarily to carry out the production of light-duty applications program by different control combinations, it is simple and efficient.
In further preferred embodiment of the invention, step S600 is further included before the step S100:By ajax backward After platform sends request, corresponding list of controls is obtained to control base management system by restful interfaces.
In further preferred embodiment of the invention, any interface corresponds to a json object for including unique mark.
In further preferred embodiment of the invention, the length limitation of type, return row to any interface, input ginseng Several length limitations is written in the urlList attributes of the init objects.
In further preferred embodiment of the invention, it is described create interface selection interface the specific steps are:S410, pass through SetFn methods are inserted into interface into the fnList of init objects;S420 and then urlIdus institutes are bound by setUrl methods Interface is stated, completes the establishment of interface selection interface.
By the method for an entitled setFn, the operation that it is performed is to be inserted into interface into the fnList of init objects to visit After asking successfully and urlId is set to bind the interface defined in setUrl methods, each method corresponds to a json object, object Include method body (fn:), the id of urlId calling interfaces, if automatic running (autoRun:).
In further preferred embodiment of the invention, the specific steps of the interface selection include:S510, according to described The urlList of init objects carrys out the interface that selection parameter quantity and type all meet;S520 and then the parameter spelling by the interface It is connected into the character string of button.
Append methods are the additional contents to the inside of each matched element, this operation is with performing specified element AppendChild methods, situation about adding them in document is similar, relevant parameter contentString | Function,Element.Its application method is $ (Element) .appendChild (contentString | Function).
In further preferred embodiment of the invention, the specific step of the preservation light-duty applications program is:By the control page Face and config object compressions preserve the position to fastDFS.
Click these buttons, then can the url of interface be written in subpage frame config objects, continue the ginseng of edition interface Number, default value (such as can set search time be today or search range be this department) etc. additional information, it is micro- Using generation the page can ask itself, obtain the page after<Script type=" text/javascript " id=" configJs">Place is inserted into config objects as character string, generates page html files, if subpage frame uses this The autoRun of the method setting of urlId is true, then performs this method.
Publication is preserved into light-duty applications program, the control page is compressed into preservation to fastDFS together with config objects On specific position, i.e., the save location on fastDFS being configured in configuration file, using these are light-duty in assembling is applied During application program, light-duty applications program is attempted to read the configuration information in config objects, because config is a json objects, So browser is the attribute that can directly read json objects, loads corresponding interface and perform corresponding method.
In conclusion the invention discloses a kind of light-duty applications program creation method based on configurable control, by control The page carries out configuration association with service existing on platform, data, forms the release quickly of light-duty applications program, makes for target user With improving the convenience of operation, development cost is low, and being integrated commander provides the information support of more comprehensive multidimensional, carries For more accurately decision-making foundation.
It should be understood that the application of the present invention is not limited to the above, it for those of ordinary skills, can To be improved or converted according to the above description, all these modifications and variations should all belong to the guarantor of appended claims of the present invention Protect range.

Claims (7)

  1. A kind of 1. light-duty applications program creation method based on configurable control, which is characterized in that include the following steps:
    A, any control in list of controls is clicked, obtains the version number of the control;
    B, the control version number in the version number and database of the control is compared, if the version number of the control with Control version number difference in database then downloads the control of latest edition, is otherwise loaded directly into the control page;
    C, an init object and config objects are created after the completion of the control page loading;
    D, interface list is inserted into an empty array by setUrl methods, creates interface selection interface, connect according to described Mouth selection interface acquisition interface list and write-in or the urlList attributes by the init objects;
    E, it selects the either interface in the interface list, after return row, default value or the initial value of changing the interface, searches When being set as true to the auto parameters of the method using the interface, then automatic running this method;
    Or the url of the interface is written in subpage frame config objects, is continued to edit the parameter of the interface, is found institute When stating the control page and being set as true using the autoRun parameters of the method for the interface, automatic running this method.
  2. 2. the light-duty applications program creation method according to claim 1 based on configurable control, which is characterized in that described Step F is further included before step A:
    F, after sending request to backstage by ajax, corresponding list of controls is obtained to control base management system by interface.
  3. 3. the light-duty applications program creation method according to claim 1 based on configurable control, which is characterized in that any The interface corresponds to a json object for including unique mark.
  4. 4. the light-duty applications program creation method according to claim 3 based on configurable control, which is characterized in that appointing The type of one interface, the length limitation for returning to row, input parameter length limitation be written to the init objects In urlList attributes.
  5. 5. the light-duty applications program creation method according to claim 1 based on configurable control, which is characterized in that described Create interface selection interface the specific steps are:
    D1, by setFn methods into the fnList of init objects insertion method object;
    D2 and then interface described in urlId is bound by setUrl methods, complete the establishment of interface selection interface.
  6. 6. the light-duty applications program creation method according to claim 1 based on configurable control, which is characterized in that described The specific steps of the interface selection include:
    E1, carry out the interface that selection parameter quantity and type all meet according to the urlList of the init objects;
    E2 and then the character string that the parameter of the interface is spliced into button.
  7. 7. the light-duty applications program creation method according to claim 1 based on configurable control, which is characterized in that described Preserving specifically walking for light-duty applications program is:
    The control page and config object compressions are preserved into the position to fastDFS.
CN201711397558.8A 2017-12-21 2017-12-21 Light application program creating method based on configurable control Active CN108170415B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711397558.8A CN108170415B (en) 2017-12-21 2017-12-21 Light application program creating method based on configurable control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711397558.8A CN108170415B (en) 2017-12-21 2017-12-21 Light application program creating method based on configurable control

Publications (2)

Publication Number Publication Date
CN108170415A true CN108170415A (en) 2018-06-15
CN108170415B CN108170415B (en) 2021-01-22

Family

ID=62523197

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711397558.8A Active CN108170415B (en) 2017-12-21 2017-12-21 Light application program creating method based on configurable control

Country Status (1)

Country Link
CN (1) CN108170415B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150186132A1 (en) * 2013-12-31 2015-07-02 Wolters Kluwer United States Inc. User interface framework and tools for rapid development of web applications
CN105446752A (en) * 2014-06-30 2016-03-30 北京金山安全软件有限公司 Triggering method and device of control in application program and mobile terminal
CN105930139A (en) * 2016-01-16 2016-09-07 平安科技(深圳)有限公司 Application program control dynamic configuration method and electronic device
CN107291438A (en) * 2016-04-13 2017-10-24 阿里巴巴集团控股有限公司 Generation method, device and the electronic equipment of automatized script

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150186132A1 (en) * 2013-12-31 2015-07-02 Wolters Kluwer United States Inc. User interface framework and tools for rapid development of web applications
CN105446752A (en) * 2014-06-30 2016-03-30 北京金山安全软件有限公司 Triggering method and device of control in application program and mobile terminal
CN105930139A (en) * 2016-01-16 2016-09-07 平安科技(深圳)有限公司 Application program control dynamic configuration method and electronic device
CN107291438A (en) * 2016-04-13 2017-10-24 阿里巴巴集团控股有限公司 Generation method, device and the electronic equipment of automatized script

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
闫河: "动态创建控件技术在程序开发中的应用", 《电脑知识与技术》 *

Also Published As

Publication number Publication date
CN108170415B (en) 2021-01-22

Similar Documents

Publication Publication Date Title
CN107577459B (en) Dragging type cross-platform application development system and method based on componentization
US10255051B2 (en) Generation of dynamic software models using input mapping with feature definitions
US20210034336A1 (en) Executing a process-based software application in a first computing environment and a second computing environment
CN108293081B (en) Deep linking of program playback to mobile application state through user interface events
US7765542B2 (en) Method and system for describing and extracting application information
US9244709B2 (en) Automatic recognition of web application
US20130198029A1 (en) Application recommendation and substitution
CN104731589A (en) Automatic generation method and device of user interface (UI)
EP3956763A1 (en) Systems and methods for semi-automated data transformation and presentation of content through adapted user interface
CN107305527B (en) Code file processing method and device
CN111563220A (en) Business website project construction method and device, computer equipment and storage medium
CN104321768A (en) Method and system for executing an application for consulting content and services accessible by browsing a telecommunications network
US20140019951A1 (en) Mobile application translation
US20170185608A1 (en) App Onboarding System For Developer-Defined Creation Of Search Engine Results
CN109947399A (en) Code structure generation method, device, computer installation and readable storage medium storing program for executing
CN110765552B (en) Attribute information display method and device of three-dimensional geological model
CN111723138B (en) System and method for automatically acquiring data in artificial simulation mode
JP2002007138A (en) Method for installing and starting application, device for executing the same, and medium and program
US10146822B1 (en) Automated script generator for processing storage system data files
CN108170415A (en) A kind of light-duty applications program creation method based on configurable control
JP7014960B2 (en) Information processing equipment, servers, their processing methods and programs
US9727391B2 (en) Method for performing task on unified information units in a personal workspace
Toms et al. Mastering geospatial analysis with Python: explore GIS processing and learn to work with GeoDjango, CARTOframes and MapboxGL-Jupyter
KR101885067B1 (en) Method for providing real time response collecting service
US7120641B2 (en) Apparatus and method for extracting data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant