CN113703758B - Method for quickly cloning configuration custom control - Google Patents

Method for quickly cloning configuration custom control Download PDF

Info

Publication number
CN113703758B
CN113703758B CN202110940455.1A CN202110940455A CN113703758B CN 113703758 B CN113703758 B CN 113703758B CN 202110940455 A CN202110940455 A CN 202110940455A CN 113703758 B CN113703758 B CN 113703758B
Authority
CN
China
Prior art keywords
data
class
control
completing
attribute
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.)
Active
Application number
CN202110940455.1A
Other languages
Chinese (zh)
Other versions
CN113703758A (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.)
Shenzhen Top Control Technology Co ltd
Original Assignee
Shenzhen Top Control 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 Shenzhen Top Control Technology Co ltd filed Critical Shenzhen Top Control Technology Co ltd
Priority to CN202110940455.1A priority Critical patent/CN113703758B/en
Publication of CN113703758A publication Critical patent/CN113703758A/en
Application granted granted Critical
Publication of CN113703758B publication Critical patent/CN113703758B/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/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

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

Abstract

The invention discloses a method for quickly cloning configuration custom controls, which comprises the following steps: firstly, bearing original control information by using a data structure CustomData, and completing data interaction and analysis by adopting a xaml structure; integrating user setting information with a KNCUSTOmData data structure; the instantiation of the CustomData data is completed, the GetProperty interface in the Xaml ParserCustomData class is used for extracting attribute data, the NewInstance interface is used for completing the instantiation operation of the original control, and the instantiation operation is output to the KNOBjectInstance class for processing in the form of an Object; the method comprises the steps of obtaining an original control information structure CustomData and completing the instantiation operation of KNCUStomData class, redesigning a set of data structure capable of being flexibly packaged and output for use by a clone control module from the existing framework structure of configuration software, inheriting the design idea of the configuration control on the design idea, adding an interface for analyzing and managing the data structure on the data management, and simultaneously adding a module structure of packaged data to export data for multiplexing by other modules, thereby being beneficial to practical application.

Description

Method for quickly cloning configuration custom control
Technical Field
The invention belongs to the field of cloning controls, and particularly relates to a method for quickly cloning configuration custom controls.
Background
In the prior art, the top control science and technology configuration software has functions and interfaces for secondary development of the control combination control, 5 types of controls provided by the control column after a user installs the configuration software comprise input editing types, form data types, state lights, curves and pictures from a main construction hmi application project, meanwhile, the configuration software has data input and output interfaces for secondary development, the configuration software can check and acquire data structures in a user data area after the application project is constructed, the configuration software has reusable control module interfaces and methods, meanwhile, the configuration software has a framework structure and methods capable of packaging modules and outputting, packaging and outputting of control data are completed by adopting a set of simple packaging scheme, and the specifically packaged data is embodied in a file form in a user cloning data area.
However, the existing industrial control type configuration software cannot meet the condition of rapidly developing functions on batch like controls, meanwhile, the existing industrial control type configuration software cannot meet the product differentiation condition set by personalized preference, and the existing industrial control type configuration software cannot meet the condition of dynamically changing control function upgrading requirements, cannot meet the requirement of dynamically adding new functions according to customer requirements on a customer site, and is not beneficial to practical application.
The invention comprises the following steps:
the present invention aims to solve the above problems by providing a method for quickly cloning configuration custom controls, which solves the problems mentioned in the background art.
In order to solve the problems, the invention provides a technical scheme that:
a method for quickly cloning configuration custom controls comprises the following steps:
s1, bearing original control information by a data structure CustomData, and completing data interaction and analysis by adopting an xaml structure;
s2, integrating user setting information by a KNCUSTOmData data structure;
s3, completing instantiation of the CustomData data, completing extraction of attribute data by a GetProperty interface in the Xaml ParserCustomData class, completing instantiation operation of an original control by a NewInstance interface, and outputting the instantiation operation to a KNOBjectInstance class for processing in the form of an Object;
s4, acquiring an original control information structure CustomData, completing instantiation operation of a KNCUStomData class, instantiating newly-added attribute and event information configured by a user in the KNCUStomData class, registering into a system, and dragging the newly-added attribute and event information in a view control column panel for use by the user;
s5, the user realizes the dynamic requirements of the client through the attribute or the individual preference setting of the new component, and then the instantiated KNCUSTOmData data is exported for other modules to use.
Preferably, the original control information in step S1 includes an attribute name and an attribute value of the original control.
Preferably, the user setting information in the step S2 includes a new clone control name, a new icon of the clone control, a new control attribute and attribute value, an event name, and an event interface.
Preferably, the instantiation of the CustomData data in step S3 is accomplished through the Xaml ParserCustomData class.
Preferably, in the step S3, when the attribute information is output to the KNObjectInstance class for processing in the form of an Object, both the attribute information and the event information are registered in the Object.
Preferably, the obtaining the original control information structure CustomData in step S4 is obtained through KNObjectInstance class.
Preferably, the specific operation steps for completing the instantiation operation of the KNCustomData class in the step S4 are as follows: the XamlParserKNCumData class is used for extracting the information of the user cloning control, and the mechanism of inheriting the CustomData is used for completing the instantiation operation of the KNCumData class.
Preferably, the knostmdata export after the instantiation in step S5 is performed through a packed data export interface DownLoadData class.
The beneficial effects of the invention are as follows: the invention starts from the existing framework structure of the configuration software, redesigns a set of data structure which can be flexibly packaged and output for the clone control module to use, inherits the design idea of the configuration control on the design idea, newly adds the interface for analyzing and managing the data structure on the data management, and simultaneously adds the module structure of the packaged data to derive the data for multiplexing by other modules, thereby being beneficial to practical application.
Description of the drawings:
for ease of illustration, the invention is described in detail by the following detailed description and the accompanying drawings.
FIG. 1 is a flow chart of a method for quick cloning of configuration custom controls according to the present invention;
FIG. 2 is a schematic diagram of a first step application state in a second embodiment of the present invention;
FIG. 3 is a schematic diagram of a second step application state in the second embodiment of the present invention;
FIG. 4 is a schematic diagram of a third step application state in the second embodiment of the present invention;
FIG. 5 is a diagram illustrating a fourth step of the fourth application state according to the second embodiment of the present invention;
FIG. 6 is a schematic diagram of a fourth step second application state in the second embodiment of the present invention;
FIG. 7 is a schematic diagram of a fifth step application state in the second embodiment of the present invention;
FIG. 8 is a schematic diagram of a sixth step application state in the second embodiment of the present invention;
fig. 9 is a schematic diagram of a seventh step application state in the second embodiment of the present invention.
The specific embodiment is as follows:
as shown in fig. 1-9, the present embodiment adopts the following technical scheme:
examples:
a method for quickly cloning configuration custom controls comprises the following steps:
s1, bearing original control information by a data structure CustomData, and completing data interaction and analysis by adopting an xaml structure;
<CustomData name=xxx>
< property 1=p1 type=string value=my personalized control/>
<property2=p2 type=datetime value=20210721/>
<property2=p2 type=int value=120/>
</CustomData>
S2, integrating user setting information by a KNCUSTOmData data structure;
<KNCustomData classname=cn,name=xxx>
< new 1=p1 type=string value=my personalized control/>
<new2=p2 type=datetime value=20210721/>
< event 1=p2name=get set value interface=getsetvalue/>
</KNCustomData>
S3, completing instantiation of the CustomData data, completing extraction of attribute data by a GetProperty interface in the Xaml ParserCustomData class, completing instantiation operation of an original control by a NewInstance interface, and outputting the instantiation operation to a KNOBjectInstance class for processing in the form of an Object;
s4, acquiring an original control information structure CustomData, completing instantiation operation of a KNCUStomData class, instantiating newly-added attribute and event information configured by a user in the KNCUStomData class, registering into a system, and dragging the newly-added attribute and event information in a view control column panel for use by the user;
s5, the user realizes the dynamic requirements of the client through the attribute or the individual preference setting of the new component, and then the instantiated KNCUSTOmData data is exported for other modules to use.
The original control information in step S1 includes an attribute name and an attribute value of the original control.
The user setting information in step S2 includes a new clone control name, a new icon of the clone control, a new control attribute and attribute value, an event name, and an event interface.
Wherein, the instantiation of the CustomData data in the step S3 is completed through the Xaml ParserCustomData class.
When the attribute information is output to the KNOBjectInstance class for processing in the form of an Object in the step S3, the attribute information and the event information are registered in the Object.
The original control information structure CustomData obtained in step S4 is obtained through KNObjectInstance class.
The specific operation steps for completing the instantiation operation of the KNCustomData class in the step S4 are as follows: the XamlParserKNCumData class is used for extracting the information of the user cloning control, and the mechanism of inheriting the CustomData is used for completing the instantiation operation of the KNCumData class.
The KNCUSTOmData data export after the instantiation in step S5 is performed through the packed data export interface DownLoadData class.
The following describes the advantageous effects of the present invention by means of specific examples:
embodiment 1,
The first step: firstly, dragging a required control from a control column of a top control science and technology configuration software platform;
and a second step of: based on the first step, configuring the original control attribute and the event by combining the function requirement;
and a third step of: based on the second step, wrapping the dragged original control model data by adopting a meaningful data structure, and storing the data in a user data area by adopting a xaml structure;
fourth step: based on the third step, the user selects the original control to be cloned in the window design area and clicks a drop-down menu-clone button in the toolbar;
fifth step: based on the fourth step, the expired clone control attribute window presents custom control names, and attribute items such as control icons and the like are selected;
sixth step: based on the fifth step, after the user personally sets the custom control name and the preference icon, clicking and storing the custom control name and the preference icon, and outputting the custom control name and the preference icon to a user clone control area by combining the original control attribute with xaml;
seventh step: based on the sixth step, new clone control icons named custom control names are presented in a control column panel;
eighth step: based on the seventh step, the user can drag the cloned new control to configure the user function by adopting the same operation method;
ninth step: based on the eighth step, the dragged clone control integrates all the attributes and the preference settings of the events in the original control;
tenth step: based on the ninth step, the user can flexibly configure the dragged clone control according to the requirement;
eleventh step: based on the fifth step to the tenth step, after the user configures the preference attribute, clicking the menu bar project drop-down item to compile and derive the newly cloned control and function configuration for other modules;
twelfth step: based on the fifth step to the eleventh step, the user can repeatedly operate the custom control cloning the multiple functions with different style preferences.
Embodiment II,
The first step: preparing an engineering environment for cloning controls, as shown in FIG. 2;
and a second step of: selecting an original control to be cloned, as shown in fig. 3;
and a third step of: clicking a menu bar tool drop-down item clone, calling out an attribute setting window of a new clone control, as shown in fig. 4;
fourth step: after the personalized custom control names and icons are configured, the newly cloned controls are presented in a control panel, as shown in fig. 5 and 6;
fifth step: multiplexing the cloned new control according to engineering requirements, as shown in fig. 7;
sixth step: extracting control data newly cloned in a user data area for other modules, as shown in fig. 8;
seventh step: the packing output of the new guest-one control is completed by adopting a meaningful data structure packing method, as shown in fig. 9.
In the description of the present invention, it should be understood that the terms "coaxial," "bottom," "one end," "top," "middle," "another end," "upper," "one side," "top," "inner," "front," "center," "two ends," etc. indicate orientations or positional relationships based on the orientation or positional relationships shown in the drawings, are merely for convenience in describing the present invention and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present invention.
Furthermore, the terms "first," "second," "third," "fourth," and the like are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated, whereby features defining "first," "second," "third," "fourth" may explicitly or implicitly include at least one such feature.
In the present invention, unless explicitly specified and limited otherwise, the terms "mounted," "configured," "connected," "secured," "screwed," and the like are to be construed broadly and may be, for example, fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; either directly or indirectly through intermediaries, or in communication with each other or in interaction with each other, unless explicitly defined otherwise, the meaning of the terms described above in this application will be understood by those of ordinary skill in the art in view of the specific circumstances.
Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made therein without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (4)

1. The method for quickly cloning the configuration custom control is characterized by comprising the following steps of:
s1, bearing original control information by a data structure CustomData, and completing data interaction and analysis by adopting an xaml structure;
s2, integrating user setting information by a KNCUSTOmData data structure;
s3, completing instantiation of the CustomData data, completing extraction of attribute data by a GetProperty interface in the Xaml ParserCustomData class, completing instantiation operation of an original control by a NewInstance interface, and outputting the instantiation operation to a KNOBjectInstance class for processing in the form of an Object;
s4, acquiring an original control information structure CustomData, completing instantiation operation of a KNCUStomData class, instantiating newly-added attribute and event information configured by a user in the KNCUStomData class, registering into a system, and dragging the newly-added attribute and event information in a view control column panel for use by the user;
s5, the user realizes the dynamic demand of the client through the attribute or the individual preference setting of the new component, and then the instantiated KNCustomData data is exported for other modules to use;
the original control information in the step S1 comprises an attribute name and an attribute value of the original control;
the user setting information in the step S2 includes a newly set clone control name, a newly set icon of the clone control, a newly added control attribute, an attribute value, an event name and an event interface;
the instantiation of the CustomData data in step S3 is accomplished through the Xaml ParserCustomData class;
when the information is output to the KNOBJECTINCE class for processing in the form of an Object in the step S3, both the attribute and the event information are registered in the Object.
2. The method for quickly cloning configuration custom controls according to claim 1, wherein the obtaining of the original control information structure custom data in step S4 is performed through KNObjectInstance class.
3. The method for quickly cloning the configuration custom control according to claim 1, wherein the specific operation steps for completing the instantiation operation of the KNCustomData class in step S4 are as follows: the XamlParserKNCumData class is used for extracting the information of the user cloning control, and the mechanism of inheriting the CustomData is used for completing the instantiation operation of the KNCumData class.
4. The method for quickly cloning configuration custom controls according to claim 1, wherein the knostmdata export after the instantiation in step S5 is performed through a packed data export interface DownLoadData class.
CN202110940455.1A 2021-08-16 2021-08-16 Method for quickly cloning configuration custom control Active CN113703758B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110940455.1A CN113703758B (en) 2021-08-16 2021-08-16 Method for quickly cloning configuration custom control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110940455.1A CN113703758B (en) 2021-08-16 2021-08-16 Method for quickly cloning configuration custom control

Publications (2)

Publication Number Publication Date
CN113703758A CN113703758A (en) 2021-11-26
CN113703758B true CN113703758B (en) 2023-10-31

Family

ID=78652911

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110940455.1A Active CN113703758B (en) 2021-08-16 2021-08-16 Method for quickly cloning configuration custom control

Country Status (1)

Country Link
CN (1) CN113703758B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106569801A (en) * 2016-10-18 2017-04-19 中国运载火箭技术研究院 Complex parameter-based configuration display control system
CN112398953A (en) * 2021-01-16 2021-02-23 合沃物联技术(南京)有限公司 Cloud configuration method based on Internet of things middleware
CN112394931A (en) * 2020-11-18 2021-02-23 浩云科技股份有限公司 Static page configuration optimization control method and device for front-end page

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050251380A1 (en) * 2004-05-10 2005-11-10 Simon Calvert Designer regions and Interactive control designers

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106569801A (en) * 2016-10-18 2017-04-19 中国运载火箭技术研究院 Complex parameter-based configuration display control system
CN112394931A (en) * 2020-11-18 2021-02-23 浩云科技股份有限公司 Static page configuration optimization control method and device for front-end page
CN112398953A (en) * 2021-01-16 2021-02-23 合沃物联技术(南京)有限公司 Cloud configuration method based on Internet of things middleware

Also Published As

Publication number Publication date
CN113703758A (en) 2021-11-26

Similar Documents

Publication Publication Date Title
US20210034336A1 (en) Executing a process-based software application in a first computing environment and a second computing environment
Nastic et al. PatRICIA--a novel programming model for iot applications on cloud platforms
US8365068B2 (en) System and user interface for workflow and task schedule configuration
CN112292664B (en) Method and system for designing a distributed heterogeneous computing and control system
US20070011650A1 (en) Computer method and apparatus for developing web pages and applications
US20220391221A1 (en) Providing a different configuration of added functionality for each of the stages of predeployment, deployment, and post deployment using a layer of abstraction
US20020083414A1 (en) System and method for a command structure representation
EP1798639A2 (en) Graphical user interface for generic listing of managed objects
EP1811447A1 (en) Declarative adaptation of software entities stored in an object repository
US20100153149A1 (en) Software for model-based configuration constraint generation
WO2015184497A1 (en) Telecommunications product defining and provisioning
MXPA04006074A (en) Framework for creating modular web applications.
CN106022007A (en) Cloud platform system and method oriented to biological omics big data calculation
US11144307B2 (en) Service interface creation and modification for object-oriented services
AU2016201889A1 (en) Methods and apparatus for translating forms to native mobile applications
WO2005114393A2 (en) Visual data mapping and code generation for data integration
US20070130162A1 (en) Methods and apparatus for combining properties and methods from a plurality of different data sources
US10169118B2 (en) Remote product invocation framework
WO2007056656A2 (en) Methods and apparatus for processing business objects, electronic forms, and workflows
CN113703758B (en) Method for quickly cloning configuration custom control
US20040268258A1 (en) Web-based user interface for performing provisioning
US10817811B2 (en) Methods and apparatus for exposing workflow process definitions as business objects
EP1872287A1 (en) Customized processing in association with finite element analysis
US20040068515A1 (en) System for integrating a plurality of database systems with a plurality of graphics-based document systems for connecting data therebetween to enable a user at a computer-based user interface to access these systems in a unified manner
US20090044203A1 (en) Apparatus and Method for Generating Programming Interactions for a Computer Program from an Incoming Data Structure

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