CN111736828A - Method and system for generating system configuration interface applied to detection software - Google Patents

Method and system for generating system configuration interface applied to detection software Download PDF

Info

Publication number
CN111736828A
CN111736828A CN202010543641.7A CN202010543641A CN111736828A CN 111736828 A CN111736828 A CN 111736828A CN 202010543641 A CN202010543641 A CN 202010543641A CN 111736828 A CN111736828 A CN 111736828A
Authority
CN
China
Prior art keywords
parameter
system configuration
configuration interface
configuration file
generating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010543641.7A
Other languages
Chinese (zh)
Inventor
刘志康
郑万泉
蒋石运
雷新军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Jingce Electronic Group Co Ltd
Wuhan Jingli Electronic Technology Co Ltd
Wuhan Jingce Electronic Technology Co Ltd
Original Assignee
Wuhan Jingce Electronic Group Co Ltd
Wuhan Jingli Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Jingce Electronic Group Co Ltd, Wuhan Jingli Electronic Technology Co Ltd filed Critical Wuhan Jingce Electronic Group Co Ltd
Priority to CN202010543641.7A priority Critical patent/CN111736828A/en
Publication of CN111736828A publication Critical patent/CN111736828A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

本发明公开了应用于检测软件的系统配置界面生成方法及系统。该方法包括步骤:S1,读取配置文件,该配置文件中包括待配置参数的参数名称、默认参数值和参数范围;S2,对读取的配置文件进行解析,并且根据待配置参数的参数范围从预先定义的多种类型的编辑控件中选择编辑控件;S3,根据待配置参数的参数名称、默认参数值、参数范围和选择的编辑控件生成系统配置界面。本发明可以简洁高效地进行控件类型个性化定制。

Figure 202010543641

The invention discloses a system configuration interface generation method and system applied to detection software. The method includes the steps of: S1, reading a configuration file, the configuration file including parameter names, default parameter values and parameter ranges of parameters to be configured; S2, parsing the read configuration file, and according to the parameter ranges of the parameters to be configured Select an edit control from predefined multiple types of edit controls; S3, generate a system configuration interface according to the parameter name, default parameter value, parameter range and selected edit control of the parameter to be configured. The present invention can simply and efficiently carry out the personalized customization of control types.

Figure 202010543641

Description

应用于检测软件的系统配置界面生成方法及系统Method and system for generating system configuration interface applied to detection software

技术领域technical field

本发明属于面板检测技术领域,更具体地,涉及应用于检测软件的系统配置界面生成方法及系统。The invention belongs to the technical field of panel detection, and more particularly, relates to a method and system for generating a system configuration interface applied to detection software.

背景技术Background technique

在面板检测中,控制面板检测的上层应用软件为了适应不同的面板检测场景,引入了系统配置参数,不同的配置参数使上层应用软件表现不同的功能或性能。系统配置参数通常保存在配置文件中。上层应用软件启动时,通过读取配置文件加载系统配置参数,来初始化软件中的功能模块。上层应用软件的系统配置参数可以修改,通过修改系统配置参数,使软件能够应用于不同的面板检测场景。软件的系统配置参数的修改方式一般有两种:一种方式是直接修改软件的配置文件,但是这种方式需要重启软件后,修改的系统配置才能生效;另一种是通过软件的系统配置参数界面的界面交互进行修改,这种方式不用重启也可以立即生效。In panel inspection, the upper-layer application software that controls panel inspection introduces system configuration parameters to adapt to different panel inspection scenarios. Different configuration parameters make the upper-layer application software perform different functions or performances. System configuration parameters are usually stored in configuration files. When the upper-layer application software is started, the system configuration parameters are loaded by reading the configuration file to initialize the function modules in the software. The system configuration parameters of the upper application software can be modified. By modifying the system configuration parameters, the software can be applied to different panel detection scenarios. There are generally two ways to modify the system configuration parameters of the software: one is to directly modify the configuration file of the software, but this method requires the software to be restarted before the modified system configuration can take effect; the other is to use the system configuration parameters of the software. The interface interaction of the interface is modified, and this method can take effect immediately without restarting.

目前普遍是采用系统配置界面来修改软件的配置参数。系统配置参数加载和修改流程如图1。然而,固定的系统配置界面中,界面中控件的数量、样式、布局都是固定的,如图2所示。这种方式不利于软件的扩展性,如果在软件维护阶段,遇到需求扩张,需要在软件中新增系统配置参数,那么系统配置参数界面中就需要对应增加相应的控件,还需要相应修改界面布局,需要比较大规模的修改代码,这样对于代码修改便利性和软件可维护性都是不利的。At present, the system configuration interface is generally used to modify the configuration parameters of the software. The system configuration parameter loading and modification process is shown in Figure 1. However, in a fixed system configuration interface, the number, style, and layout of controls in the interface are fixed, as shown in Figure 2. This method is not conducive to the scalability of the software. If the system configuration parameters need to be added to the software during the software maintenance stage when the demand expands, then the corresponding controls need to be added to the system configuration parameter interface, and the interface needs to be modified accordingly. Layout requires a relatively large-scale modification of the code, which is detrimental to the convenience of code modification and software maintainability.

目前出现一种动态界面生成的方法,例如,某个参数的编辑框想要生成为下拉框形式,通过在代码中通过if语句实现,如果再添加新的参数,那么只能继续在代码中添加if语句,这样代码只会越来越复杂,也不能简洁高效地处理个性化定制控件类型的问题。At present, there is a method of dynamic interface generation. For example, if the edit box of a parameter wants to be generated in the form of a drop-down box, it can be realized by using an if statement in the code. If you add new parameters, you can only continue to add it in the code. If statement, the code will only become more and more complex, and it cannot handle the problem of personalized custom control types concisely and efficiently.

发明内容SUMMARY OF THE INVENTION

针对现有技术的至少一个缺陷或改进需求,本发明提供了应用于检测软件的系统配置界面生成方法及系统,根据待配置参数的参数范围选择编辑控件,可以简洁高效地进行控件类型个性化定制。Aiming at at least one defect or improvement requirement of the prior art, the present invention provides a method and system for generating a system configuration interface applied to detection software. Editing controls are selected according to the parameter ranges of the parameters to be configured, so that individual customization of control types can be performed concisely and efficiently. .

为实现上述目的,按照本发明的第一方面,提供了应用于检测软件的系统配置界面生成方法,包括:In order to achieve the above object, according to the first aspect of the present invention, a method for generating a system configuration interface applied to detection software is provided, including:

S1,读取配置文件,该配置文件中包括待配置参数的参数名称、默认参数值和参数范围;S1, read a configuration file, the configuration file includes the parameter name, default parameter value and parameter range of the parameter to be configured;

S2,对读取的配置文件进行解析,并且根据待配置参数的参数范围从预先定义的多种类型的编辑控件中选择编辑控件;S2, parsing the read configuration file, and selecting an edit control from predefined multiple types of edit controls according to the parameter range of the parameter to be configured;

S3,根据待配置参数的参数名称、默认参数值、参数范围和选择的编辑控件生成系统配置界面。S3: Generate a system configuration interface according to the parameter name, default parameter value, parameter range and selected editing control of the parameter to be configured.

优选地,系统配置界面生成方法还包括步骤:接收用户在系统配置界面的编辑控件中的输入参数值,用输入参数值代替默认参数值,重新初始化所述系统配置界面中输入参数值对应的模块。Preferably, the method for generating a system configuration interface further includes the steps of: receiving a user's input parameter value in an editing control of the system configuration interface, replacing the default parameter value with the input parameter value, and re-initializing the module corresponding to the input parameter value in the system configuration interface .

优选地,系统配置界面生成方法还包括步骤:在所述配置文件中添加或修改待配置参数后,执行所述步骤S1至S3。Preferably, the method for generating a system configuration interface further includes the steps of: after adding or modifying the parameters to be configured in the configuration file, execute the steps S1 to S3.

优选地,所述预先定义的多种类型的编辑控件包括:IP地址编辑框、下拉框、整数编辑框、小数编辑框或文本编辑框中的任意组合,则所述选择一种编辑控件具体是:Preferably, the predefined multiple types of editing controls include: an IP address editing box, a drop-down box, an integer editing box, a decimal editing box or any combination of text editing boxes, and the selecting an editing control is specifically: :

若待配置参数的参数范围为IP,则选择IP地址编辑框;If the parameter range of the parameter to be configured is IP, select the IP address edit box;

若待配置参数的参数范围为多个自定义的字段,则选择下拉框;If the parameter range of the parameter to be configured is multiple custom fields, select the drop-down box;

若待配置参数的参数范围为整数,则选择整数编辑框;If the parameter range of the parameter to be configured is an integer, select the integer edit box;

若待配置参数的参数范围为小数,则选择小数编辑框;If the parameter range of the parameter to be configured is decimal, select the decimal edit box;

若待配置参数的参数范围为空白,则选择普通文本编辑框。If the parameter range of the parameter to be configured is blank, select the normal text edit box.

优选地,所述步骤S1中,每个配置文件中包括多个待配置参数,所述步骤S2中,分别为每个待配置参数选择编辑控件。Preferably, in the step S1, each configuration file includes a plurality of parameters to be configured, and in the step S2, an editing control is selected for each parameter to be configured.

优选地,所述步骤S1中,读取多个配置文件,每个配置文件对应系统配置的一个功能模块。Preferably, in the step S1, a plurality of configuration files are read, and each configuration file corresponds to a function module of the system configuration.

优选地,所述配置文件为Json格式。Preferably, the configuration file is in Json format.

按照本发明的第二方面,提供了应用于检测软件的系统配置界面生成系统,包括:According to a second aspect of the present invention, a system configuration interface generation system applied to detection software is provided, including:

读取模块,用于读取配置文件,该配置文件中包括待配置参数的参数名称、默认参数值和参数范围;The reading module is used to read the configuration file, which includes the parameter name, default parameter value and parameter range of the parameter to be configured;

解析模块,用于对读取的配置文件进行解析,并且根据待配置参数的参数范围从预先定义的多种类型的编辑控件中选择编辑控件;The parsing module is used for parsing the read configuration file, and selecting an editing control from the predefined multiple types of editing controls according to the parameter range of the parameter to be configured;

生成模块,用于根据待配置参数的参数名称、默认参数值、参数范围和选择的编辑控件生成系统配置界面。The generating module is used to generate a system configuration interface according to the parameter name, default parameter value, parameter range and selected editing control of the parameter to be configured.

按照本发明的第三方面,提供了一种检测软件,包括上述的应用于检测软件的系统配置界面生成系统。According to a third aspect of the present invention, a detection software is provided, including the above-mentioned system configuration interface generation system applied to the detection software.

按照本发明的第四方面,提供了一种电子设备,其特征在于,包括至少一个处理单元、以及至少一个存储单元,其中,所述存储单元存储有计算机程序,当所述计算机程序被所述处理单元执行时,使得所述处理单元执行上述任一项所述方法的步骤。According to a fourth aspect of the present invention, an electronic device is provided, which is characterized by comprising at least one processing unit and at least one storage unit, wherein the storage unit stores a computer program, and when the computer program is executed by the When the processing unit executes, the processing unit is caused to execute the steps of any one of the methods described above.

总体而言,本发明与现有技术相比,具有有益效果:可以简洁高效地进行控件类型个性化定制;从软件架构来看,减少了功能模块与UI界面的耦合,给软件维护周期带来很大的便利性;软件维护阶段,系统配置参数需求变动时,系统配置界面不必修改,修改代码量非常小,大大降低了软件的维护成本;还针对面板检测领域的系统配置需求,设计出满足需求的各类编辑空间,例如IP空间;此外还定义了配置文件的格式,具有简洁高效的特点。In general, compared with the prior art, the present invention has beneficial effects: the individual customization of control types can be carried out concisely and efficiently; from the perspective of software architecture, the coupling between functional modules and UI interfaces is reduced, and the software maintenance cycle is brought about Great convenience; in the software maintenance stage, when the system configuration parameter requirements change, the system configuration interface does not need to be modified, and the amount of modified code is very small, which greatly reduces the maintenance cost of the software; also designed to meet the system configuration requirements in the field of panel inspection. Various editing spaces required, such as IP space; in addition, the format of the configuration file is also defined, which is concise and efficient.

附图说明Description of drawings

图1是现有技术的系统配置界面生成方法的流程图;Fig. 1 is the flow chart of the system configuration interface generation method of the prior art;

图2是现有技术的系统配置界面的示意图;Fig. 2 is the schematic diagram of the system configuration interface of the prior art;

图3是本发明实施例的系统配置界面生成方法的流程图;3 is a flowchart of a method for generating a system configuration interface according to an embodiment of the present invention;

图4、5是本发明实施例的系统配置界面的示意图。4 and 5 are schematic diagrams of a system configuration interface according to an embodiment of the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。此外,下面所描述的本发明各个实施方式中所涉及到的技术特征只要彼此之间未构成冲突就可以相互组合。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

本发明实施例的应用于检测软件的系统配置界面生成方法,如图3所示,包括步骤S1至S3。The method for generating a system configuration interface applied to detection software according to an embodiment of the present invention, as shown in FIG. 3 , includes steps S1 to S3.

S1,读取配置文件,该配置文件中包括待配置参数的参数名称、默认参数值和参数范围。S1, read a configuration file, where the configuration file includes parameter names, default parameter values and parameter ranges of parameters to be configured.

在现有的系统配置文件中,一般只包括待配置参数的参数名称、默认参数值。本发明实施例中,除了待配置参数的参数名称和默认参数值,还包括待配置参数的参数范围,这样可以根据参数范围来选择编辑空间,实现界面的个性化定制。In the existing system configuration file, generally only the parameter name and default parameter value of the parameter to be configured are included. In this embodiment of the present invention, in addition to the parameter name and default parameter value of the parameter to be configured, the parameter range of the parameter to be configured is also included, so that the editing space can be selected according to the parameter range to realize the personalized customization of the interface.

举例说明,假设需要个性化定制系统配置的界面颜色,那么配置文件中,包括待配置参数的参数名称“界面颜色”,设定它的默认参数值为“绿色”,“界面颜色”的参数范围为几个字段“绿色、红色、白色”,则最后生成的系统配置界面默认为绿色。并且提供“绿色、红色、白色”的可选择项,用户可以这三种颜色中选择所需界面颜色,修改界面颜色。For example, assuming that you need to customize the interface color of the system configuration, the configuration file includes the parameter name "interface color" of the parameter to be configured, set its default parameter value to "green", and the parameter range of "interface color" For several fields "green, red, white", the final generated system configuration interface defaults to green. And provides options of "green, red, white", the user can choose the desired interface color from these three colors, and modify the interface color.

再举例说明,假设需要个性化定制系统配置的IP地址,那么配置文件中,包括待配置参数的参数名称“startip”,自定义它的默认参数值为“192.168.10.1”,设定它的参数范围为“IP”。For another example, assuming that the IP address of the system configuration needs to be customized, the configuration file includes the parameter name "startip" of the parameter to be configured, and the default parameter value of the custom parameter is "192.168.10.1", and its parameters are set. The range is "IP".

优选地,配置文件为Json格式,Json格式具有简洁高效的优点。Preferably, the configuration file is in Json format, which has the advantages of being concise and efficient.

S2,对读取的配置文件进行解析,获取待配置参数的参数范围,根据待配置参数的参数范围从预先定义的多种类型的编辑控件中选择编辑控件。S2: Parse the read configuration file, obtain a parameter range of the parameter to be configured, and select an editing control from predefined multiple types of editing controls according to the parameter range of the parameter to be configured.

可以预先定义多种类型的编辑控件并存储起来。多种类型的编辑控件可以是IP地址编辑框、下拉框、整数编辑框、小数编辑框或文本编辑框中的任意组合。编辑控件可以是封装好的程序代码。Various types of edit controls can be predefined and stored. The various types of edit controls can be any combination of IP address edit boxes, drop-down boxes, integer edit boxes, decimal edit boxes, or text edit boxes. Edit controls can be encapsulated program code.

根据待配置参数的参数范围选择编辑控件选择一种编辑控件具体是:若待配置参数的参数范围为IP,则选择IP地址编辑框;若待配置参数的参数范围为多个自定义的字段,例如举例的界面颜色的参数范围,则选择下拉框;若待配置参数的参数范围为整数,则选择整数编辑框;若待配置参数的参数范围为小数,则选择小数编辑框;若待配置参数的参数范围为空白,则选择普通文本编辑框。IP地址编辑框是UI库中没有的,为本发明单独开发的编辑控件。Selecting an editing control according to the parameter range of the parameter to be configured Selecting an editing control is specifically: if the parameter range of the parameter to be configured is IP, select the IP address edit box; if the parameter range of the parameter to be configured is multiple custom fields, For example, for the parameter range of the interface color, select the drop-down box; if the parameter range of the parameter to be configured is an integer, select the integer edit box; if the parameter range of the parameter to be configured is a decimal, select the decimal edit box; If the parameter range is blank, select the normal text edit box. The IP address editing box does not exist in the UI library, and is an editing control independently developed by the present invention.

优选地,步骤S1中,每个配置文件中包括多个待配置参数,例如可以同时包括界面颜色和IP地址两个配置参数,分别根据每个待配置参数选择编辑控件,即为界面颜色选择下拉框,为IP地址选择IP地址编辑框。Preferably, in step S1, each configuration file includes a plurality of parameters to be configured, for example, two configuration parameters of interface color and IP address may be included at the same time, and the editing control is selected according to each parameter to be configured, that is, the interface color selection drop-down box, select the IP address edit box for the IP address.

优选地,步骤S1中,读取多个配置文件,每个配置文件对应系统配置的一个功能模块,功能模块例如图4、图5中的“PG通信代理”、“日志插件”等。分别读取每个功能模块对应的配置文件,为每个配置文件中的每个待配置参数选择编辑控件,最后整合生成系统配置界面。Preferably, in step S1, a plurality of configuration files are read, and each configuration file corresponds to a function module of the system configuration, such as "PG communication agent" and "log plug-in" in Figure 4 and Figure 5. Read the configuration files corresponding to each functional module respectively, select editing controls for each parameter to be configured in each configuration file, and finally integrate and generate a system configuration interface.

S3,根据待配置参数的参数名称、默认参数值和选择的编辑控件生成系统配置界面。S3: Generate a system configuration interface according to the parameter name, default parameter value and selected editing control of the parameter to be configured.

最终的系统配置界面示例如图4、图5所示,系统配置界面中的参数名称和参数值使用的编辑控件并不是像以往那样在软件开发阶段固定设计好的,而是软件启动时,动态生成的。界面设计比现有技术中更加简洁高效。The final example of the system configuration interface is shown in Figure 4 and Figure 5. The edit controls used for parameter names and parameter values in the system configuration interface are not fixedly designed in the software development stage as in the past, but dynamically when the software starts. Generated. The interface design is more concise and efficient than the existing technology.

在一个实施例中,系统配置界面生成方法还包括步骤S4:接收用户在系统配置界面的编辑控件中的输入参数值,用输入参数值代替默认参数值,用户点击保存后,系统使用输入参数值代替默认参数值,重新初始化该参数对应的模块。用户可以在系统配置界面的编辑控件修改系统配置参数值,例如在界面颜色的下拉框中选择其他颜色,点击保存,则对应模块会重新初始化,修改后的参数立即生效,界面颜色会更改为选择的颜色。In one embodiment, the method for generating a system configuration interface further includes step S4: receiving the input parameter value of the user in the editing control of the system configuration interface, replacing the default parameter value with the input parameter value, and after the user clicks save, the system uses the input parameter value Instead of the default parameter value, reinitialize the module corresponding to the parameter. The user can modify the system configuration parameter value in the editing control of the system configuration interface. For example, select another color in the drop-down box of the interface color and click Save, then the corresponding module will be re-initialized, the modified parameters will take effect immediately, and the interface color will be changed to select s color.

在一个实施例中,系统配置界面生成方法还包括步骤S5:在配置文件中添加或修改待配置参数后,执行步骤S1至S3。在软件维护阶段,当软件需求发生改变需要新增系统配置参数时,可以不必去修改系统配置界面,直接在配置文件中新增待配置参数的参数名称、默认参数值和参数范围,重新执行步骤S1至S3。当需要修改系统配置参数的默认参数值或参数范围时,也可以直接在配置文件中修改默认参数值和参数范围。In one embodiment, the method for generating a system configuration interface further includes step S5: after adding or modifying the parameters to be configured in the configuration file, perform steps S1 to S3. In the software maintenance phase, when the software requirements change and the system configuration parameters need to be added, it is not necessary to modify the system configuration interface, but directly add the parameter names, default parameter values and parameter ranges of the parameters to be configured in the configuration file, and execute the steps again. S1 to S3. When you need to modify the default parameter value or parameter range of the system configuration parameters, you can also directly modify the default parameter value and parameter range in the configuration file.

这样方式使得,新增或修改系统配置需求时,不需要修改其它代码,仅修改配置文件,重新启动软件,就可以重新生成所需的系统配置界面。In this way, when adding or modifying system configuration requirements, no other code needs to be modified, and the required system configuration interface can be regenerated only by modifying the configuration file and restarting the software.

本发明实施例的应用于检测软件的系统配置界面生成系统,包括:The system configuration interface generation system applied to detection software according to the embodiment of the present invention includes:

读取模块,用于读取配置文件,该配置文件中包括待配置参数的参数名称、默认参数值和参数范围;The reading module is used to read the configuration file, which includes the parameter name, default parameter value and parameter range of the parameter to be configured;

解析模块,用于对读取的配置文件进行解析,并且根据待配置参数的参数范围从预先定义的多种类型的编辑控件中选择编辑控件;The parsing module is used for parsing the read configuration file, and selecting an editing control from the predefined multiple types of editing controls according to the parameter range of the parameter to be configured;

生成模块,用于根据待配置参数的参数名称、默认参数值和选择的编辑控件生成系统配置界面。The generating module is used to generate a system configuration interface according to the parameter name, default parameter value and selected editing control of the parameter to be configured.

在一个实施例中,系统配置界面生成系统还包括修改用户修改模块,用于接收用户在系统配置界面的编辑控件中的输入参数值,用输入参数值代替默认参数值,用户点击保存后,重新初始化该参数对应的模块。In one embodiment, the system configuration interface generation system further includes a modification user modification module, configured to receive the input parameter value of the user in the editing control of the system configuration interface, and replace the default parameter value with the input parameter value. Initialize the module corresponding to this parameter.

在一个实施例中,系统配置界面生成系统还包括系统修改模块,用于在配置文件中添加或修改待配置参数后,执行步骤S1至S3。In one embodiment, the system configuration interface generation system further includes a system modification module, configured to perform steps S1 to S3 after adding or modifying the parameters to be configured in the configuration file.

系统配置界面生成系统的工作原理和技术效果与上述系统配置界面生成方法类似,此处不再赘述。The working principle and technical effect of the system configuration interface generation system are similar to the above-mentioned system configuration interface generation method, which will not be repeated here.

本发明实施例的一种检测软件,包括上述的应用于检测软件的系统配置界面生成系统。A detection software according to an embodiment of the present invention includes the above-mentioned system configuration interface generation system applied to the detection software.

检测软件的工作原理和技术效果与上述系统配置界面生成方法类似,此处不再赘述。可选的,本申请实施例的检测软件可以是面板检测软件,其可以使用上述的系统配置界面生成方法进行软件系统配置界面生成。The working principle and technical effect of the detection software are similar to the above-mentioned method for generating the system configuration interface, which will not be repeated here. Optionally, the detection software in this embodiment of the present application may be panel detection software, which may generate a software system configuration interface by using the above-mentioned method for generating a system configuration interface.

本发明实施例还提供了一种电子设备,其包括至少一个处理器、以及至少一个存储器,其中,存储器中存储有计算机程序,当计算机程序被处理器执行时,使得处理器执行上述任一系统配置界面生成方法实施例的步骤。电子设备的实现原理、技术效果与上述方法类似,此处不再赘述。本实施例中,处理器和存储器的类型不作具体限制,例如:处理器可以是微处理器、数字信息处理器、片上可编程逻辑系统等;存储器可以是易失性存储器、非易失性存储器或者它们的组合等。该电子设备也可以与一个或多个外部设备(如键盘、指向终端、显示器等)通信,还可与一个或者多个使得用户能与该电子设备交互的终端通信,和/或与使得该电子设备能与一个或多个其它计算终端进行通信的任何终端(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口进行。并且,电子设备还可以通过网络适配器与一个或者多个网络(例如局域网(Local Area Network,LAN),广域网(WideArea Network,WAN)和/或公共网络,例如因特网)通信。Embodiments of the present invention also provide an electronic device, which includes at least one processor and at least one memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes any of the above systems The steps of the embodiment of the method for generating an interface are configured. The implementation principle and technical effect of the electronic device are similar to those of the above-mentioned method, which will not be repeated here. In this embodiment, the types of the processor and the memory are not specifically limited, for example: the processor may be a microprocessor, a digital information processor, an on-chip programmable logic system, etc.; the memory may be a volatile memory, a non-volatile memory, etc. or their combination etc. The electronic device may also communicate with one or more external devices (eg keyboards, pointing terminals, displays, etc.), with one or more terminals that enable a user to interact with the electronic device, and/or with the electronic device A device can communicate with any terminal (eg, network card, modem, etc.) that communicates with one or more other computing terminals. This communication can take place through an input/output (I/O) interface. Furthermore, the electronic device can also communicate with one or more networks (eg, Local Area Network (LAN), Wide Area Network (WAN) and/or public network such as the Internet) through a network adapter.

必须说明的是,上述任一实施例中,方法并不必然按照序号顺序依次执行,只要从执行逻辑中不能推定必然按某一顺序执行,则意味着可以以其他任何可能的顺序执行。It must be noted that, in any of the above embodiments, the methods are not necessarily executed in sequence, and as long as it cannot be inferred from the execution logic that the methods must be executed in a certain sequence, it means that the methods can be executed in any other possible sequence.

本领域的技术人员容易理解,以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。Those skilled in the art can easily understand that the above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention, etc., All should be included within the protection scope of the present invention.

Claims (10)

1. The system configuration interface generation method applied to the detection software is characterized by comprising the following steps:
s1, reading a configuration file, wherein the configuration file comprises a parameter name, a default parameter value and a parameter range of a parameter to be configured;
s2, analyzing the read configuration file, and selecting an editing control from a plurality of types of editing controls defined in advance according to the parameter range of the parameter to be configured;
and S3, generating a system configuration interface according to the parameter name, the default parameter value, the parameter range and the selected editing control of the parameter to be configured.
2. The method for generating a system configuration interface applied to test software according to claim 1, comprising the steps of: receiving an input parameter value of a user in an editing control of a system configuration interface, replacing a default parameter value with the input parameter value, and re-initializing a module corresponding to the input parameter value in the system configuration interface.
3. The method for generating a system configuration interface applied to test software according to claim 1, comprising the steps of: after adding or modifying the parameters to be configured in the configuration file, the steps S1 to S3 are performed.
4. The method for generating a system configuration interface applied to detection software according to claim 1, 2 or 3, wherein the predefined multiple types of editing controls comprise: any combination of an IP address edit box, a drop-down box, an integer edit box, a decimal edit box, or a text edit box, the selecting of an edit control is specifically:
if the parameter range of the parameter to be configured is IP, selecting an IP address edit box;
if the parameter range of the parameter to be configured is a plurality of self-defined fields, selecting a drop-down box;
if the parameter range of the parameter to be configured is an integer, selecting an integer edit box;
if the parameter range of the parameter to be configured is a decimal, selecting a decimal edit box;
and if the parameter range of the parameter to be configured is blank, selecting a common text edit box.
5. The method as claimed in claim 1, 2 or 3, wherein in step S1, each configuration file includes a plurality of parameters to be configured, and in step S2, an edit control is selected for each parameter to be configured.
6. The method for generating a system configuration interface applied to test software according to claim 1, 2 or 3, wherein in step S1, a plurality of configuration files are read, each configuration file corresponding to a function module of the system configuration.
7. The method for generating the system configuration interface applied to the detection software as claimed in claim 1, 2 or 3, wherein the configuration file is in a Json format.
8. The system configuration interface generation system applied to the detection software is characterized by comprising the following components:
the reading module is used for reading a configuration file, and the configuration file comprises a parameter name, a default parameter value and a parameter range of a parameter to be configured;
the analysis module is used for analyzing the read configuration file and selecting an editing control from a plurality of types of predefined editing controls according to the parameter range of the parameter to be configured;
and the generating module is used for generating a system configuration interface according to the parameter name, the default parameter value, the parameter range and the selected editing control of the parameter to be configured.
9. An inspection software, comprising the system configuration interface generating system according to claim 8 applied to the inspection software.
10. An electronic device, comprising at least one processing unit and at least one memory unit, wherein the memory unit stores a computer program that, when executed by the processing unit, causes the processing unit to perform the steps of the method according to any one of claims 1 to 7.
CN202010543641.7A 2020-06-15 2020-06-15 Method and system for generating system configuration interface applied to detection software Pending CN111736828A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010543641.7A CN111736828A (en) 2020-06-15 2020-06-15 Method and system for generating system configuration interface applied to detection software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010543641.7A CN111736828A (en) 2020-06-15 2020-06-15 Method and system for generating system configuration interface applied to detection software

Publications (1)

Publication Number Publication Date
CN111736828A true CN111736828A (en) 2020-10-02

Family

ID=72649337

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010543641.7A Pending CN111736828A (en) 2020-06-15 2020-06-15 Method and system for generating system configuration interface applied to detection software

Country Status (1)

Country Link
CN (1) CN111736828A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114117011A (en) * 2021-11-29 2022-03-01 武汉联影智融医疗科技有限公司 Development method, device and system of lower computer simulator and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102122245A (en) * 2011-02-21 2011-07-13 北京沃泰丰通信技术有限公司 Method and system for generating configuration item setting interface
US20140289738A1 (en) * 2009-08-27 2014-09-25 Adobe Systems Incorporated Systems and Methods for Dynamic Configuration of Client-Side Development Environments Through Use of Application Servers
CN104793372A (en) * 2015-05-12 2015-07-22 武汉精测电子技术股份有限公司 Defect grade judgment method for liquid crystal modules of different production lines
CN107450931A (en) * 2017-08-15 2017-12-08 竞技世界(北京)网络技术有限公司 Visualizing editing method and device based on INI configuration files
CN110377510A (en) * 2019-07-02 2019-10-25 武汉精立电子技术有限公司 The control device and system of mould group detection device based on embedded system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140289738A1 (en) * 2009-08-27 2014-09-25 Adobe Systems Incorporated Systems and Methods for Dynamic Configuration of Client-Side Development Environments Through Use of Application Servers
CN102122245A (en) * 2011-02-21 2011-07-13 北京沃泰丰通信技术有限公司 Method and system for generating configuration item setting interface
CN104793372A (en) * 2015-05-12 2015-07-22 武汉精测电子技术股份有限公司 Defect grade judgment method for liquid crystal modules of different production lines
CN107450931A (en) * 2017-08-15 2017-12-08 竞技世界(北京)网络技术有限公司 Visualizing editing method and device based on INI configuration files
CN110377510A (en) * 2019-07-02 2019-10-25 武汉精立电子技术有限公司 The control device and system of mould group detection device based on embedded system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
雷丽萍等: "一种可通用的参数编辑软件设计及实现", 工业控制计算机, no. 12 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114117011A (en) * 2021-11-29 2022-03-01 武汉联影智融医疗科技有限公司 Development method, device and system of lower computer simulator and storage medium

Similar Documents

Publication Publication Date Title
TW202141300A (en) Page processing method, device, apparatus and storage medium
US7694229B2 (en) System and theme file format for creating visual styles
US8296721B2 (en) Template-based software development
CN113268233B (en) Page generation method and device, computer equipment and storage medium
CN108279882B (en) Framework generation method, device, equipment and computer readable medium
CN113703755A (en) Code generation method and code generation device
CN111736828A (en) Method and system for generating system configuration interface applied to detection software
CN104063231A (en) Test resource rapid access method based on HIT-TENA
CN114048415A (en) Form generation method and apparatus, electronic device and computer-readable storage medium
CN118504477A (en) Interface signal control method and system based on register
CN116610385A (en) Application generation method, device, computer device, storage medium and program product
CN115857934A (en) Method for generating form page according to configuration variable file
CN114757159A (en) Packaging development method and system of multifunctional data table component
CN114936027A (en) Method and device for generating reconfigurable processor function
CN119045872B (en) Analog data management method, system, terminal and storage medium for front end
CN114756220B (en) A microservice code generation method and system
CN114356451B (en) Application execution method, application execution device, equipment and storage medium
US20250077206A1 (en) Data Stream Model Transformation
CN116909616A (en) An environment configuration method, device, equipment and readable storage medium
JP2025013028A (en) DATA PROCESSING APPARATUS, PROGRAM, AND DATA PROCESSING METHOD
CN114594938A (en) Service architecture generation method and device and electronic equipment
CN118585490A (en) File format conversion method, device, computer equipment, readable storage medium and program product
CN120029615A (en) Template-based platform-independent code generation method for AADL
CN116820467A (en) Method for editing Slate interface by Python language for Unreal Engine
CN115422481A (en) Visual construction method based on component factory

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: 20201002