CN115688485A - Main and auxiliary parameter configuration binding design method in industrial design process - Google Patents
Main and auxiliary parameter configuration binding design method in industrial design process Download PDFInfo
- Publication number
- CN115688485A CN115688485A CN202211673371.7A CN202211673371A CN115688485A CN 115688485 A CN115688485 A CN 115688485A CN 202211673371 A CN202211673371 A CN 202211673371A CN 115688485 A CN115688485 A CN 115688485A
- Authority
- CN
- China
- Prior art keywords
- parameter
- parameters
- configuration
- main
- auxiliary
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention provides a main and auxiliary parameter configuration binding design method in an industrial design process, which is based on a parameter configuration system, wherein the parameter configuration system comprises a front end, a server and a database; the method comprises the following steps: s1: configuring parameters involved in a business activity; s2: configuring parameter constraint; s3: packet add/modify or remove parameters; s4: checking parameter configuration; s5: switching main and auxiliary parameters; s6: storing the parameter configuration of the movable template, and checking whether a main parameter exists or not; s7: after the configuration is finished, saving the parameter configuration; the method can realize one-place configuration and use everywhere through the binding of the main parameter configuration and the auxiliary parameter configuration, solves the problem of repeated configuration in order to ensure the integrity of the independent link of single parameter data when the activity parameter configuration of the industrial design process has the same parameter, directly obtains the data of the main parameter by the auxiliary parameter without repeated configuration, greatly reduces unnecessary repeated configuration and reduces the risk of repeated configuration errors.
Description
Technical Field
The invention relates to the field of industrial design, in particular to a main and auxiliary parameter configuration binding design method in an industrial design process.
Background
Many business logics are involved in the process of industrial design, many interdependencies exist among various steps in industrial software, the integrity of each flow function needs a large amount of parameter configuration, each parameter needs more detailed configuration, the configuration of the parameters needs professional personnel to perform elaborate configuration, but in many cases, a plurality of same parameters are needed in a single activity, so that repeated configuration is needed under the condition that many same parameters exist, the workload is increased, and the risk of configuration error inconsistency is increased.
Disclosure of Invention
The invention aims to solve the defects in the prior art and provides a main and auxiliary parameter configuration binding design method in an industrial design process.
In order to realize the purpose, the invention adopts the following technical scheme: a main and auxiliary parameter configuration binding design method in an industrial design process is based on a parameter configuration system, wherein the parameter configuration system comprises a front end, a server and a database;
the method comprises the following steps:
s1: configuring parameters involved in a business activity;
the method comprises the steps that a front end displays a page of a business activity, wherein the business activity is an active template, and parameters needed by grouping configuration are created on the active template;
the parameters are design parameters and comprise basic information, the basic information comprises parameter names, parameter values and parameter codes, and the parameter codes comprise types;
s2: configuring parameter constraint;
the default of the parameter of the first occurrence of the active template is set as a main parameter, and the same parameter added later is set as an auxiliary parameter; identifying the main parameters and the auxiliary parameters through field attributes;
constraint configuration is a fixed template, the fixed template comprises a function type and a parameter code, and the function type comprises a form, an input box and a drop-down box; acquiring a parameter code of a main parameter, and matching a fixed template of the same parameter code according to the acquired parameter code;
s3: packet addition/modification or removal parameters;
grouped parameter addition/modification or removal is performed during the configuration process of the active template;
s4: checking parameter configuration;
checking the configuration of the parameters of the page, searching through the primary relationship, displaying the configuration of the primary parameters by the constraint configuration of all the parameters, and only checking the auxiliary parameters;
s5: switching main and auxiliary parameters;
manually selecting one auxiliary parameter as a main parameter, and then hanging the configuration of the corresponding parameter constraint under the latest main parameter, wherein the corresponding main parameter modifies the basic information and constraint configuration of the parameter, and other auxiliary parameters are modified synchronously and synchronously;
s6: storing the parameter configuration of the movable template, and checking whether a main parameter exists;
storing the parameter configuration of the whole movable template, checking whether the parameter of the type of each parameter code exists and one parameter is a main parameter, and manually setting one parameter as the main parameter if the parameter does not exist;
s7: after the configuration is finished, saving the parameter configuration;
and after the verification is finished, each parameter has one main parameter, the final movable template is stored, and the parameter configuration is stored in a database to finish the current configuration.
Preferably, the parameter codes of the same parameters in the active templates under the same industrial design are the same, and the types of the parameter codes are also the same;
preferably, step S3 specifically includes:
adding/modifying parameters into/into other parameters, wherein the modified parameters are parameters appearing for the first time, acquiring a modified parameter code when the modified parameters default to the main parameters, and matching a fixed template corresponding to the parameter code to perform new constraint configuration on the main parameters;
and when the main parameter is modified into the auxiliary parameter of other parameters, namely the parameter code is changed, the constraint configuration of the main parameter is deleted, and the modified parameter code acquires the constraint configuration of the main parameter of the same parameter code.
Preferably, the auxiliary parameter takes the main parameter of the same parameter code as a data source to obtain the basic information and constraint configuration of the main parameter;
the field attribute comprises 0 and 1; wherein 0 represents a primary parameter and 1 represents a secondary parameter; the front end displays the parameters of the active template and the constraint configuration thereof as editable or non-editable according to the field attribute being 0 or 1, and renders and identifies the main parameters and the auxiliary parameters on the active template.
Preferably, step S5 specifically includes: one of the parameters is selected to send an instruction set as a main parameter to a server, the server obtains the parameter name of the parameter, the parameter name is used as a keyword, all parameters of the parameter name are obtained in a circulating traversing mode, the field attribute of the obtained parameter is correspondingly obtained according to all the obtained parameters, the parameter with the field attribute of 0 is obtained, whether the parameter is the selected parameter is compared, if yes, the selected parameter is the main parameter, if not, the field attribute of the parameter with the field attribute of 0 is modified to be 1, the field attribute of the selected parameter is modified to be 0, the front end displays the parameter of the movable template and the constraint configuration thereof in an editable mode according to the field attribute of 0, and therefore the selected parameter is set as the main parameter.
Preferably, step S6 is specifically: after the active template is stored as an initial active template, acquiring basic information of all parameters of the initial active template and storing the basic information as a parameter table, grouping the acquired basic information of the parameters according to parameter codes, and grouping the parameters of the parameter codes of the same type into one group, thereby realizing the classification of the same parameters;
according to grouping, field attributes of parameters are obtained in the same group in a circulating mode, whether a parameter with the field attribute of 0 exists in each parameter code is checked, if yes, the check is passed, if not, a popup box jumps out, a title bar and a selection dropdown box are arranged on the popup box, the title is a set main parameter, the selection dropdown box is a dropdown box formed by taking the checked parameter code without a group of parameters with the field attribute of 0 as a data source, the parameter code is manually selected, an instruction for setting the selected parameter code as the main parameter is sent to a server, and step S5 is executed to realize the setting of the main parameter.
Preferably, different industrial designs have different movable templates in which a plurality of parameters are configured;
the main parameters and the auxiliary parameters are distributed in different groups on the movable template, and each group only has one parameter of the same parameter code;
two or more parameters of the same parameter code exist on the active template.
Compared with the prior art, the invention has the beneficial effects that: (1) The invention can realize one-place configuration and use everywhere through the main and auxiliary parameter configuration binding, the main and auxiliary parameter configuration binding can configure the configuration of the same parameter at one time, the parameter configuration efficiency is improved, each type parameter stores one set of configuration, a plurality of same parameters are used together, and simultaneously, each parameter is ensured to have a set of complete link data. (2) The problem of repeated configuration of the independent link integrity of single parameter data when the same parameter exists in the configuration of the activity parameter of the industrial design process is solved, the auxiliary parameter directly acquires the data of the main parameter without repeated configuration, unnecessary repeated configuration is greatly reduced, and the risk of repeated configuration errors is reduced. (3) In the process of configuring the parameters, whether each main parameter exists or not is checked, and only one main parameter exists, so that the problems that the parameter configuration is wrong, the auxiliary parameters cannot directly acquire the data of the main parameters, and the auxiliary parameters need to be reconfigured are avoided, the configured movable template is accurate, and the failure rate of template configuration is reduced.
Drawings
FIG. 1 is a flowchart illustrating steps of a method for binding and designing main and auxiliary parameter configuration in an industrial design process according to the present invention;
fig. 2 is a page diagram of business activities of a main and auxiliary parameter configuration binding design method in an industrial design process according to the present invention.
Detailed Description
In order to further understand the objects, structures, features, and functions of the present invention, the following embodiments are described in detail.
A main and auxiliary parameter configuration binding design method in an industrial design process is based on a parameter configuration system, wherein the parameter configuration system comprises a front end, a server and a database; the front end is used for cyclic data rendering, the server is used for setting parameter field attributes, cyclic check and the like, and the method comprises the following steps:
s1: configuring parameters involved in the business activity;
the method comprises the steps that a page of a business activity is displayed at the front end, the business activity is a movable template, the movable template is a step template in an industrial design process, and parameters needed by grouping configuration are created on the movable template;
different industrial designs have different templates, a plurality of parameters need to be configured in the movable template, and repeated parameters can be generated in one movable template;
the parameter is a design parameter and comprises basic information, the basic information comprises a parameter name, a parameter value and a parameter code, the parameter code is a string of codes, called an internal name and generally invisible to a user, and called a parameter display name and used for user identification and used as a unique identity of the parameter. The parameter code also includes a type;
the parameter codes of the same parameters in the active templates under the same industrial design are the same, and the types of the parameter codes are also the same;
s2: configuring parameter constraint;
the default of the parameter of the first occurrence of the active template is set as a main parameter, and the same parameter (the same parameter of the parameter code) added later is set as an auxiliary parameter; and identifying the main parameters and the auxiliary parameters through fields; configuring the constraint configuration of the parameters into an entrance by using the constraint configuration of the main parameters;
constraint configuration is a fixed template, the fixed template comprises a function type and a parameter code, and the function type comprises a form, an input box, a drop-down box and the like;
and acquiring a parameter code of the main parameter, and matching a fixed template of the same parameter code according to the acquired parameter code.
S3: packet addition/modification or removal parameters;
grouped parameter addition/modification or removal is performed during the configuration process of the active template;
when the parameters are modified, the main parameters are modified into auxiliary parameters of other parameters, namely the parameter code is changed, the constraint configuration of the main parameters is deleted, and the modified parameter code obtains the constraint configuration of the main parameters of the same parameter code;
and when the parameters are added or modified into other parameters, the modified parameters are the first-appearing parameters and default to the main parameters, acquiring the modified parameter code, and matching the fixed template corresponding to the parameter code to perform new constraint configuration of the main parameters.
S4: checking parameter configuration;
checking the configuration of the parameters of the page, searching through the primary relationship, displaying the configuration of the primary parameters by the constraint configuration of all the parameters, wherein the secondary parameters only have checking authority, all the data follow the primary parameters, and all the data comprise the basic information and the constraint configuration of the parameters;
the auxiliary parameters take the main parameters of the same parameter code as a data source to obtain basic information and constraint configuration of the main parameters; the parameter adds field attributes, 0 for the primary parameter and 1 for the secondary parameter. The front end displays the parameters of the active template and the constraint configuration thereof as editable or not editable according to the field attribute of 0 or 1, and renders and identifies the main parameters and the auxiliary parameters on the active template.
S5: switching main and auxiliary parameters;
generally, main parameters and auxiliary parameters are distributed in different groups on an active template, each group only has one parameter of the same parameter code, when two or more parameters of the same parameter code exist on the active template, one auxiliary parameter is manually selected to be set as the main parameter, the configuration of corresponding parameter constraint can be hung under the latest main parameter, the corresponding main parameter can be modified for parameter basic information and constraint configuration, and other auxiliary parameters are synchronously modified in a linkage manner and comprise the main parameter which is changed into the auxiliary parameter;
the method specifically comprises the following steps: one of the parameters is selected to send an instruction set as a main parameter to a server, the server acquires a parameter name of the parameter, the parameter name is used as a keyword, all parameters of the parameter name are acquired in a circulating traversing manner, according to all the acquired parameters, a field attribute of the corresponding acquired parameter is acquired, a parameter with a field attribute of 0 is acquired, whether the parameter is the selected parameter is compared, if so, the selected parameter is the main parameter, if not, the field attribute of the parameter with the field attribute of 0 is modified to be 1, the field attribute of the selected parameter is modified to be 0, the front end displays the parameter of the movable template and the constraint configuration thereof in an editable manner according to the field attribute of 0, and therefore, the selected parameter is set as the main parameter;
s6: storing the parameter configuration of the movable template, and checking whether a main parameter exists;
storing the parameter configuration of the whole movable template, checking whether the parameter of the type of each parameter code exists and one parameter is a main parameter, and if the parameter does not exist, manually setting one parameter as the main parameter, hanging the constraint configuration of the parameter under the new main parameter;
the method specifically comprises the following steps: after the active template is stored as an initial active template, acquiring basic information of all parameters of the initial active template and storing the basic information as a parameter table, grouping the acquired basic information of the parameters according to parameter codes, and grouping the parameters of the parameter codes of the same type into one group, thereby realizing the classification of the same parameters; according to grouping, field attributes of parameters are obtained in the same group in a circulating mode, whether a parameter with the field attribute of 0 exists in each parameter code is checked, if yes, the check is passed, if not, a popup box jumps out, a title bar and a selection dropdown box are arranged on the popup box, the title is a set main parameter, the selection dropdown box is a dropdown box formed by taking the checked parameter code without a group of parameters with the field attribute of 0 as a data source, the parameter code is manually selected, an instruction for setting the selected parameter code as the main parameter is sent to a server, and step S5 is executed to realize the setting of the main parameter.
S7: after the configuration is finished, saving the parameter configuration;
and after the verification is finished, each parameter has one main parameter, the final movable template is stored, and the parameter configuration is stored in a database to finish the current configuration.
The present invention has been described in relation to the above embodiments, which are only exemplary of the implementation of the present invention. It should be noted that the disclosed embodiments do not limit the scope of the invention. Rather, it is intended that the invention be covered by the appended claims without departing from the spirit and scope of the invention.
Claims (7)
1. A main and auxiliary parameter configuration binding design method in industrial design process is characterized in that: based on a parameter configuration system, the parameter configuration system comprises a front end, a server and a database;
the method comprises the following steps:
s1: configuring parameters involved in the business activity;
the method comprises the steps that a front end displays a page of a business activity, wherein the business activity is an active template, and parameters needed by grouping configuration are created on the active template;
the parameters are design parameters and comprise basic information, the basic information comprises parameter names, parameter values and parameter codes, and the parameter codes comprise types;
s2: configuring parameter constraint;
the parameter of the active template appearing for the first time is configured to be a main parameter by default, and the same parameter added later is configured to be an auxiliary parameter; identifying the main parameters and the auxiliary parameters through field attributes;
constraint configuration is a fixed template, the fixed template comprises a function type and a parameter code, and the function type comprises a form, an input box and a drop-down box; acquiring a parameter code of a main parameter, and matching a fixed template of the same parameter code according to the acquired parameter code;
s3: packet addition/modification or removal parameters;
grouped parameter addition/modification or removal is performed during the configuration process of the active template;
s4: checking parameter configuration;
checking the configuration of the parameters of the page, searching through the primary relationship, displaying the configuration of the primary parameters by the constraint configuration of all the parameters, and only checking the permission of the auxiliary parameters;
s5: switching main and auxiliary parameters;
manually selecting one auxiliary parameter to be set as a main parameter, and then hanging the configuration of the corresponding parameter constraint under the latest main parameter, wherein the corresponding main parameter modifies the basic information and constraint configuration of the parameter, and other auxiliary parameters are modified in a synchronous linkage manner;
s6: storing the parameter configuration of the movable template, and checking whether a main parameter exists;
storing the parameter configuration of the whole movable template, checking whether the parameter of the type of each parameter code exists and one parameter is a main parameter, and manually setting one parameter as the main parameter if the parameter does not exist;
s7: after the configuration is finished, saving the parameter configuration;
and after the verification is finished, each parameter has one main parameter, the final movable template is stored, and the parameter configuration is stored in a database to finish the current configuration.
2. The method for binding and designing the configuration of the main and auxiliary parameters in the industrial design process according to claim 1, wherein:
the parameter codes of the same parameters in the active templates under the same industrial design are the same, and the types of the parameter codes are also the same.
3. The method for binding and designing the configuration of the main and auxiliary parameters in the industrial design process according to claim 1, wherein:
step S3 specifically includes:
adding/modifying parameters into/into other parameters, wherein the modified parameters are parameters appearing for the first time, acquiring a modified parameter code when the modified parameters are defaulted as main parameters, and matching a fixed template corresponding to the parameter code to perform new constraint configuration on the main parameters;
and when the main parameter is modified into the auxiliary parameter of other parameters, namely the parameter code is changed, the constraint configuration of the main parameter is deleted, and the modified parameter code acquires the constraint configuration of the main parameter of the same parameter code.
4. The method for binding and designing the configuration of the main and auxiliary parameters in the industrial design process according to claim 1, wherein: the auxiliary parameter takes the main parameter of the same parameter code as a data source to obtain the basic information and constraint configuration of the main parameter;
the field attribute comprises 0 and 1; wherein 0 represents a primary parameter and 1 represents a secondary parameter; the front end displays the parameters of the active template and the constraint configuration thereof as editable or not editable according to the field attribute of 0 or 1, and renders and identifies the main parameters and the auxiliary parameters on the active template.
5. The method for binding and designing the configuration of the main and auxiliary parameters in the industrial design process as claimed in claim 4, wherein: step S5 specifically includes: one parameter is selected to send an instruction set as a main parameter to a server, the server acquires a parameter name of the parameter, the parameter name is used as a keyword, all parameters of the parameter name are acquired in a circulating traversal mode, a field attribute of the parameter is acquired correspondingly according to all acquired parameters, a parameter with a field attribute of 0 is acquired, whether the parameter is the selected parameter is compared, if yes, the selected parameter is the main parameter, if not, the field attribute of the parameter with the field attribute of 0 is modified to be 1, the field attribute of the selected parameter is modified to be 0, the front end displays the parameter of the movable template and constraint configuration thereof and can edit the parameter according to the field attribute of 0, and therefore the selected parameter is set as the main parameter.
6. The method for binding and designing the configuration of the main and auxiliary parameters in the industrial design process according to claim 2, wherein: the step S6 specifically includes: after the active template is stored as an initial active template, acquiring basic information of all parameters of the initial active template and storing the basic information as a parameter table, grouping the acquired basic information of the parameters according to parameter codes, and grouping the parameters of the parameter codes of the same type into one group, thereby realizing the classification of the same parameters;
according to grouping, field attributes of parameters are obtained in a circulating mode in the same group, whether a parameter with the field attribute of 0 exists in each parameter code is checked, if yes, the check is passed, if not, a popup box is popped out, a title bar and a selection pulldown box are arranged on the popup box, the title is a set main parameter, the selection pulldown box is a pulldown box which is formed by using the checked parameter code without the group of parameters with the field attribute of 0 as a data source, the parameter code is manually selected, an instruction for setting the selected parameter code as the main parameter is sent to a server, and step S5 is executed to achieve setting of the main parameter.
7. The method for binding and designing the configuration of the main and auxiliary parameters in the industrial design process according to claim 1, wherein: different industrial designs have different movable templates, and a plurality of parameters are configured in the movable templates;
the main parameters and the auxiliary parameters are distributed in different groups on the active template, and each group only has one parameter of the same parameter code;
two or more parameters of the same parameter code exist on the active template.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211673371.7A CN115688485A (en) | 2022-12-26 | 2022-12-26 | Main and auxiliary parameter configuration binding design method in industrial design process |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211673371.7A CN115688485A (en) | 2022-12-26 | 2022-12-26 | Main and auxiliary parameter configuration binding design method in industrial design process |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115688485A true CN115688485A (en) | 2023-02-03 |
Family
ID=85056356
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211673371.7A Pending CN115688485A (en) | 2022-12-26 | 2022-12-26 | Main and auxiliary parameter configuration binding design method in industrial design process |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115688485A (en) |
-
2022
- 2022-12-26 CN CN202211673371.7A patent/CN115688485A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110292775B (en) | Method and device for acquiring difference data | |
CN112650766B (en) | Database data operation method, system and server | |
CN104391934B (en) | Data verification method and device | |
CN106528129A (en) | Web application interface generation system and method | |
EP4414832A2 (en) | Systems and methods for arbitrary software logic modeling | |
CN110147225A (en) | A kind of code generating method, device and computer equipment, storage medium | |
CN107291450A (en) | A kind of quick code automatic generation method for programming friendly | |
CN111061733B (en) | Data processing method, device, electronic equipment and computer readable storage medium | |
CN110543303A (en) | Visual business platform | |
US20080059563A1 (en) | Methods and Systems for Automated Data Processing | |
US20210124752A1 (en) | System for Data Collection, Aggregation, Storage, Verification and Analytics with User Interface | |
CN115905353A (en) | Associated data export and import method, device, equipment and storage medium | |
CN107870949A (en) | Data analysis job dependence relation generation method and system | |
CN103530134B (en) | A kind of configurable software platform structure | |
CN110889013A (en) | Data association method, device, server and storage medium based on XML | |
CN111984882A (en) | Data processing method, system and equipment | |
CN111126932A (en) | Form-based flow chart configuration method | |
CN107766519B (en) | Method for visually configuring data structure | |
US10360208B2 (en) | Method and system of process reconstruction | |
CN112486532A (en) | Method and device for managing configuration file, electronic equipment and storage medium | |
CN115688485A (en) | Main and auxiliary parameter configuration binding design method in industrial design process | |
US10055811B2 (en) | System and method for generating interactive 2D projection of 3D model | |
CN112256978B (en) | Data processing method, device and medium based on data model | |
CN109032578B (en) | Database SQL (structured query language) -based code generation method and system | |
CN115579096A (en) | Automatic generation and analysis verification method, system and storage medium for drug alert E2B R3 standard report |
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 |