Automatic mapping method of model layer and view layer data suitable for AJAX frame

An automatic mapping and view layer technology, applied in the direction of program control devices, etc., can solve problems such as low development efficiency and unguaranteed quality, and achieve the effect of reducing development complexity and improving development efficiency

Active Publication Date: 2010-04-14
CASCO SIGNAL
View PDF0 Cites 41 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

According to the traditional method, the data interaction between the MODEL layer and the VIEW layer often requires writing a

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Automatic mapping method of model layer and view layer data suitable for AJAX frame
  • Automatic mapping method of model layer and view layer data suitable for AJAX frame
  • Automatic mapping method of model layer and view layer data suitable for AJAX frame

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0031] Example

[0032] Such as figure 1 , figure 2 As shown, a method for automatically mapping data between the model layer and the view layer suitable for the AJAX framework. The method hardware includes a form data processor, an AJAX interface calling module, an object entity processor, a WEB form control, an entity object, and a data source. The workflow of the method is as follows:

[0033] Step 1, the client downloads the WEB form;

[0034] In step 2, the client sends a submission request to the server. At this time, the form data processor will automatically capture the attribute information and current values ​​of the view layer form controls, and encapsulate the information into JSON format;

[0035] Step 3: The form data processor submits the form data in JSON format to the server through the AJAX interface call module;

[0036] Step 4: The client's AJAX interface calling module is responsible for calling specific third-party AJAX frameworks and submitting form data in JSO...

Example Embodiment

[0048] Example 2

[0049] This method has been applied to the transportation production scheduling system of Guangxi Branch of Aluminum Corporation of China. The main functions of the system include tracking the walking process of the locomotive, real-time dynamic tracking and processing of the transportation data and the walking traces of the rolling stock left during the transportation process, etc. .

[0050] The transportation production scheduling system is developed based on JAVA and uses the DWR framework to complete the data transmission between the client and the server.

[0051] The system extends three custom attributes for each WEB form control: group information (name of associated object), associated field, type (used for validity verification). Form controls include text boxes, drop-down menus, dates, or any other object-oriented form controls.

[0052] The following is the specific implementation:

[0053] 1. Smart binding of data forms:

[0054] Customized three Html c...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to an automatic mapping method of model layer and view layer data suitable for an AJAX frame. Hardware related in the method comprises a form data processor, an AJAX interface calling module, an object entity processor, a WEB form control, an entity object and a data source. The method comprises the steps that a client downloads a WEB form, and the like. Compared with the prior art, the method has the advantages of low complexity, strong universality and the like.

Description

technical field [0001] The invention relates to a data automatic mapping method, in particular to a model layer and view layer data automatic mapping method suitable for AJAX (asynchronous JavaScript and XML) framework. Background technique [0002] WEB application system is currently widely used due to its rapid deployment characteristics, and the system is generally developed according to the three-layer model of MVC (MODEL layer, VIEW layer, and CONTROLLER layer). Among them, the VIEW layer generally uses the HTML Document Object Model (DOM) for data presentation and processing. The HTML Document Object Model defines an HTML document as a tree-structured object nested within other elements. The MODEL layer generally uses object-oriented (OO) programming languages, such as JAVA, .NET and other programming languages, and uses classes (classes) and objects (objects) to define background entity objects for data processing and persistence. [0003] Due to the differences in ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/44
Inventor 周庭梁张兵建张立鹏
Owner CASCO SIGNAL
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products