CN102629199A - Method for automatically binding interface objects and data objects - Google Patents
Method for automatically binding interface objects and data objects Download PDFInfo
- Publication number
- CN102629199A CN102629199A CN2012100518219A CN201210051821A CN102629199A CN 102629199 A CN102629199 A CN 102629199A CN 2012100518219 A CN2012100518219 A CN 2012100518219A CN 201210051821 A CN201210051821 A CN 201210051821A CN 102629199 A CN102629199 A CN 102629199A
- Authority
- CN
- China
- Prior art keywords
- data
- interface object
- interface
- automatically
- objects
- 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
Landscapes
- Stored Programmes (AREA)
Abstract
The invention provides a method for automatically binding interface objects and data objects, which can automatically bind the interface objects and the data objects. The method comprises automatic binding of various interface and data objects, which is applied to the field of software management, and comprises the steps of defining naming rules for data source objects and defining naming rules for interface objects, and the defining methods are automatically related to the data objects and the interface objects. The method is widely applied to the field of software management, can improve the work efficiency and the maintainability of software, and has wide promotion and application values.
Description
Technical field
The present invention relates to a kind of Computer Applied Technology; Be the method for a kind of auto-associating interface object and data object specifically; Solved and bound interface object and data object how automatically, how to have reduced coding human person's workload, how to have improved the problem of the aspects such as maintainability of program.
Background technology
The related major part of interface object in the existing MIS and data object all realizes that through the manual code of writing workload is huge, and is simple repetitive work.So propose the method for a kind of auto-associating interface object and data object, with automatic binding interface object and data object, reduce workload, increase work efficiency, improve the maintainability of program.
Summary of the invention
The method that the purpose of this invention is to provide a kind of auto-associating interface object and data object.
The objective of the invention is to realize that by following mode step is following
Step 1 interface object is named according to rule; Step 2 data object is named according to rule; Step 3 realizes the method for auto-associating interface object and data object; Step 4 uses the method for step 3 to carry out interface object related with data object.
The each several part attribute of interface object and data object, field is named according to following rule:
The Private object type, the object instance title;
Automatically bind between the object:
Setting up mapping relations according to rule between the object, carry out association according to following rule:
public?void?BingDataToControl(System.Windows.Forms.BindingSource?BS,?Control?cc){
// specifically realize code
}
Through calling a method, carry out interface object and data to property related, related object properties automatically and mated binding automatically, data object and interface object automatic interaction data message, call method is following
This. BingDataToControl interface object instance title, data object instance title.
Excellent effect of the present invention:
Can bind data object and interface object automatically easily.Said method comprises: the automatic binding of various interfaces and data object; Be applied to management software field; Implementation step comprises: be data source object defining named rule, be interface object defining named rule, define method auto-associating data object and interface object.The present invention is widely used in management software field, can increase work efficiency, and improves the maintainability of software, has good value for applications.
Description of drawings
Fig. 1 is a process flow diagram of binding interface object and data object automatically.
Embodiment
With reference to Figure of description to explanation at length below the work of the present invention.
The invention provides the method for a kind of auto-associating interface object and data object, solved binding data object and the loaded down with trivial details workload of interface object, solved data object and interface object and bound the difficult maintainability that is caused.
Technic relization scheme below the present invention has adopted
Step 1: interface object is named according to certain rule;
Step 2: data object is named according to certain rule;
Step 3: realize a method, shine upon interface object and data object according to certain rule;
Step 4: the method shown in the invocation step three, each attribute of auto-associating interface object and data object.Call after the method, interface object and data object can its data of real-time, interactive.
Embodiment:
The invention provides the method for a kind of automatic binding interface and data, on various development platforms, use.Can improve development efficiency greatly, improve the maintainability of program.
For make advantage of the present invention, purpose be more readily understood, understandable, easy-to-use, do an explanation with regard to concrete embodiment below.
1) obtain data source, this example is that dataset describes with the data source;
2) control that need bind to the interface is named, and naming rule is for needing the title of related field control by name, and this rule can oneself define, the realization of being correlated with in code implementation method the inside then;
3) call method BingDataToControl;
Following code is write in position being fit to
This. BingDataToControl (parameter 1 (data source), parameter 2 (interface object));
Except that the described technical characterictic of instructions, be the known technology of those skilled in the art.
Claims (2)
1. a method of binding interface object and data object automatically is characterized in that step is following
Step 1 interface object is named according to rule; Step 2 data object is named according to rule; Step 3 realizes the method for auto-associating interface object and data object; Step 4 uses the method for step 3 to carry out interface object related with data object.
The each several part attribute of interface object and data object, field is named according to following rule:
The Private object type, the object instance title;
Automatically bind between the object:
Setting up mapping relations according to rule between the object, carry out association according to following rule:
public?void?BingDataToControl(System.Windows.Forms.BindingSource?BS,?Control?cc){
// specifically realize code
}。
2. method according to claim 1 is characterized in that through calling a method; Automatically carried out interface object related with data to property; Related object properties are mated binding automatically, data object and interface object automatic interaction data message, and call method is following
This. BingDataToControl interface object instance title, data object instance title.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100518219A CN102629199A (en) | 2012-03-02 | 2012-03-02 | Method for automatically binding interface objects and data objects |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100518219A CN102629199A (en) | 2012-03-02 | 2012-03-02 | Method for automatically binding interface objects and data objects |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102629199A true CN102629199A (en) | 2012-08-08 |
Family
ID=46587459
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012100518219A Pending CN102629199A (en) | 2012-03-02 | 2012-03-02 | Method for automatically binding interface objects and data objects |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102629199A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101071373A (en) * | 2007-03-30 | 2007-11-14 | 腾讯科技(深圳)有限公司 | Software interface processing method and device |
US7475384B2 (en) * | 2004-10-19 | 2009-01-06 | Microsoft Corporation | Binding to types |
-
2012
- 2012-03-02 CN CN2012100518219A patent/CN102629199A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7475384B2 (en) * | 2004-10-19 | 2009-01-06 | Microsoft Corporation | Binding to types |
CN101071373A (en) * | 2007-03-30 | 2007-11-14 | 腾讯科技(深圳)有限公司 | Software interface processing method and device |
Non-Patent Citations (1)
Title |
---|
庄成三 等: "《微软.NET平台软件技术—用C#设计各类应用程序的技术》", 30 September 2003, 电子科技大学出版社 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102810057B (en) | A kind of method of log | |
WO2019047441A1 (en) | Communication optimization method and system | |
CN104484216A (en) | Method and device for generating service interface document and on-line test tool | |
CN106547567A (en) | Interprocess communication system and its implementation under multi-service in a kind of Android system | |
KR101588592B1 (en) | Hybrid application development system based on object relational mapping and the method thereof | |
CN104573122A (en) | Oracle database migration tool for migrating from AIX platform to K-UX platform | |
CN103064667A (en) | Method for controlling hardware equipment based on JavaScript extension | |
CN103176802B (en) | Realize the method that the user interface UI of system separates with widget library by control pond | |
WO2012177577A3 (en) | Memory management model and interface for unmodified applications | |
CN106886535A (en) | A kind of data pick-up method and apparatus for being adapted to multiple data sources | |
WO2021057064A1 (en) | Data interaction conversion method and apparatus based on artificial intelligence, device, and medium | |
CN110310361B (en) | Real-time transmission method, storage medium, equipment and system for building model | |
CN103942280A (en) | Automatic code generating method based on data structure | |
CN102681861B (en) | Method and device for installing software | |
CN103544357A (en) | Method and device for achieving ANSYS calculation tasks | |
CN103914286B (en) | Management method and manager for tab page in user interface | |
CN109614096B (en) | Method for converting use cases and activities in modeling process based on UML (unified modeling language) requirements | |
CN102629199A (en) | Method for automatically binding interface objects and data objects | |
CN103646084A (en) | C program based management method for connecting MYSQL database | |
CN102184166A (en) | Method for converting Excel form into InfoPath form based on office software | |
CN115756433A (en) | Code platform migration method and device, electronic equipment and readable storage medium | |
CN102799462B (en) | Based on the script engine device of Eclipse platform and the collocation method of Eclipse platform | |
CN115115787A (en) | Method for converting two-dimensional drawing into 3D model based on DirectVR | |
CN110465093B (en) | Method and device for analyzing inclusion redundant resources based on Unity | |
CN103678617A (en) | Processing system and method for sensing context by moving based on stream calculation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20120808 |