CN102073688A - Device for converting client form to Web page and method thereof - Google Patents
Device for converting client form to Web page and method thereof Download PDFInfo
- Publication number
- CN102073688A CN102073688A CN 201010605551 CN201010605551A CN102073688A CN 102073688 A CN102073688 A CN 102073688A CN 201010605551 CN201010605551 CN 201010605551 CN 201010605551 A CN201010605551 A CN 201010605551A CN 102073688 A CN102073688 A CN 102073688A
- Authority
- CN
- China
- Prior art keywords
- control
- page
- web page
- xml document
- 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.)
- Pending
Links
Images
Abstract
The invention discloses a device for converting a client form to a Web page and a method thereof. The method comprises the following steps of: step 1, setting a data format representing the information of a client form, and using XML (X Extensible Makeup Language) to representing the data format; step2, setting the corresponding relationship of a client form control and a Web page control; step 3, utilizing an interface designer to store the client form interface in a database in a binary system manner; step 4, utilizing an analysis module to read the binary system information in the database and analyzing the page attribute; step 5, organizing the attribute obtained in the step 4 into the XML document of the data format in the step 1; and step 6, utilizing a page generation module to read the attribute of the page control from the XML document, and then generating the Web page. By the invention, a client is unnecessary to undertake the system paralysis, data loss and other risks caused by system migration, all functions of a C/S model system can be nearly reused, and thus the development cost can be furthest saved.
Description
Technical field
The present invention relates to quick software development, the software architecture of office automation and other software systems customized developments particularly relates to a kind of devices and methods therefor that the client forms is changed into the Web page.
Background technology
Along with informationization more and more faster in the practice of every field and popularization, software systems make up also to become and more and more are in fashion with important fast, on the BS frame system, the notion of web2.0 is also in the system that penetrates into each and every one commerce gradually, but to move on the platform of web smoothly but be a difficult problem to the non-business system of how original exploitation being finished based on browser (for example business software of CS framework) all the time.
Existing common practices is a system of abandoning C/S model fully, develops the system of the B/S pattern on the web again, and this certainly will bring the waste of manpower and materials, and can't reuse any function of having finished of C/S model system.In this migration, how to have realized the conversion between the Win-Form and the Web page, obviously be with the most important thing of system migration to the web.
But in the prior art, the migration of system often causes systemic breakdown, loss of data equivalent risk, and is difficult to reuse all functions of C/S model system, has improved cost of development.
Summary of the invention
The technical problem to be solved in the present invention is often to cause systemic breakdown, loss of data equivalent risk in order to overcome system migration of the prior art, and be difficult to reuse all functions of C/S model system, improve the defective of cost of development, provide a kind of client forms to change into the devices and methods therefor of the Web page.
The present invention solves above-mentioned technical matters by following technical proposals:
A kind of the client forms are changed into the device of the Web page, its characteristics are that it comprises with lower module:
The INTERFACE DESIGN device is used for depositing the client window interfaces in database with binary mode;
Parsing module, the binary message that is used for reading described database, and analyze page properties generation XML document;
Page generation module is used for reading from XML document the control property of the page, generates the Web page.
Preferably, this device also comprises a page display module, and the Web page that is used for page generation module is generated shows in browser.
Preferably, the attribute-name of control in the corresponding forms of the tag name in the described XML document, the property value of the corresponding control of the label value in the XML document, the relation of inclusion of control is represented with the nest relation of XML label in the forms.
Another technical scheme of the present invention is: a kind of method of utilizing described device to transform, and its characteristics are that it may further comprise the steps:
S1, a kind of data layout of representing client forms information of setting are represented with XML;
The corresponding relation of S2, setting client form control and web page control;
S3, utilize the INTERFACE DESIGN device to deposit the client window interfaces in database with binary mode;
S4, utilize parsing module to read binary message in the described database, and analyze page properties;
S5, the set of properties that obtains among the step S4 is made into the XML document of data layout described in the step S1;
S6, utilize page generation module from XML document, to read the control property of the page, generate the Web page.
Preferably, the attribute-name of control in the corresponding forms of the tag name described in the step S1 in the XML document, the property value of the corresponding control of the label value in the XML document, the relation of inclusion of control is represented with the nest relation of XML label in the forms.
Preferably, corresponding relation among the step S2 comprises: client form control type corresponds to the corresponding relation of the Web page control type after the conversion, client form control attribute corresponds to the corresponding relation of the Web page control attribute after the conversion, when client form control attribute corresponds to Web page control attribute after the conversion, need carry out recomputating of control coordinate.
Preferably, step S6 may further comprise the steps:
Step S61, for the control in the XML document that obtains among each step S5, according to the described corresponding relation of step S2, on the target Web page, write the relevant Web control;
Step S62, for the attribute of the control in the XML document that obtains among each step S5, according to the described corresponding relation of step S2, on the target Web page, write the attribute that recomputated in the corresponding Web controls tab.
Preferably, also comprise step S7 after the step S6: the Web page that generates in the page generation module is shown in browser.
Positive progressive effect of the present invention is: the invention enables the software systems that realized with the Win-form form can be transplanted on the B/S framework fast, and represent to the final user with the form of the web page, can allow a cover system have two kinds of ways of presentation simultaneously, realize of the migration of C/S system smoothly to the B/S system.The client need not to bear systemic breakdown, the loss of data equivalent risk that system migration causes, and has almost reused all functions of C/S model system, has saved cost of development to the full extent.
Description of drawings
Fig. 1 is the process flow diagram of method for transformation of the present invention.
Fig. 2 is the process flow diagram that generates page step in the method for transformation of the present invention.
Fig. 3 is the structural drawing of reforming unit of the present invention.
The client window interfaces figure of Fig. 4 for adopting among the present invention.
Fig. 5 is the Web page figure after being transformed by the client window interfaces figure among Fig. 4.
Embodiment
Provide preferred embodiment of the present invention below in conjunction with accompanying drawing, to describe technical scheme of the present invention in detail.
(1) flow process of method for transformation of the present invention
Shown in Fig. 1-2, the method in the present embodiment may further comprise the steps:
1, formulates a kind of data layout of representing forms information, represent with XML.The corresponding relation of each control can be in the following way on each element and the forms among the concrete XML, but be not limited to following mode.Such as representing forms information with the form of XML, the corresponding attribute-name of tag name among the XML, the corresponding property value of label value among the XML, the relation of inclusion of control is represented with the nest relation of XML label in the represented forms, each control XML label all has the type XML attribute of the corresponding control/object of this label of expression, represents the type of the corresponding control/object of this label.
2, formulate the rule of correspondence of Win-form control and web control, this rule of correspondence can adopt multiple mode, and the rule of correspondence in the present embodiment comprises:
2.1, Win-form control type corresponds to the rule of the web control type after the conversion.
2.2, the Win-form control property corresponds to the rule of the web control property after the conversion.
2.3, when the Win-form control property corresponds to web control property after the conversion, the required method that recomputates of carrying out.
3, it is as follows to be transformed into the idiographic flow of the web page from C version (client) Win-form:
3.1, designed in the C version and to have write database with binary mode after the Win-form interface.
3.2, parsing module reads the page info of this binary mode.
3.3, use RTTI (identification of runtime type identification runtime type) to analyze page properties.Also can adopt other modes to analyze page properties in other embodiments.
3.4, the set of properties that obtains of step 3.3 is made into the XML document that satisfies the described data layout of step 1.
3.5, for the control described in the XML document that obtains in each step 3.4, according to the described rule of step 2, on the object web page, write the relevant Web controls tab.
3.6, for the attribute of the control described in the XML document that obtains in each step 3.4, according to the described rule of step 2, on the object web page, write the property value that recomputated in the corresponding Web controls tab.
Win-form described in the method that the realization Win-Form in the present embodiment and the Web page transform is meant the interface of moving that development environment generated of using language-specific (being Delphi in the present embodiment) under Windows operating system.Interface before and after wherein transforming is to such as shown in the Figure 4 and 5.
(2) specific embodiment of application the inventive method
Below in conjunction with concrete programming language, method of the present invention is carried out the explanation of image, but the present invention is not limited to following programming language and concrete giving an example.A Win-form interface is as shown in Figure 4 changed into a web page, and the step that finish is as follows:
1, supposes the existing xml form that has defined;
2, suppose existing following rule, see Table 1, left column is the title of client form control in the table, and the title of Web page control is classified on the right side as, and title all is that self-defining title is used for for example in the table.The concrete rule of correspondence can be stored with the form of file, code or database.
Table 1
TButton | ipenseeB-Button |
TGrid | ipenseeB-DataGrid |
...... | ...... |
And interface shown in Figure 4 is present in the database with binary form.
3, reading database obtains the Win-form page info, identifies its page object and attribute by the RTTI technology.
4, transform according to existing data layout, available XML is as follows:
Wherein, underscore partly indicates controls tab, and label is called Object, and wherein the value of attribute Type indicates the control type as " TCustomShape " etc.
5, obtained beginning to generate the work of the web page after the above-mentioned XML.
5.1, at first, write basic html page framework
5.2, according to the XML that step 4 obtains, each control is write its corresponding web controls tab.For example:
5.3, according to the XML that step 4 obtains, for the attribute in the above-mentioned web controls tab recomputates, and the result after will calculating inserts.
For example:
5.4, repeating step 5.2,5.3 all finishes conversion up to each control.
To sum up, the present invention realizes the method that the Win-Form and the Web page transform, and makes the software systems that realized with the Win-form form to be transplanted to fast on the B/S framework, and represents to the final user with the form of the web page.
(3) reforming unit of the present invention
As shown in Figure 3, reforming unit of the present invention comprises following ingredient.
The INTERFACE DESIGN device is used for depositing the client window interfaces in database with binary mode; Parsing module, the binary message that is used for reading described database, and analyze page properties generation XML document; Page generation module is used for reading from XML document the control property of the page, generates the Web page.This device can also comprise a page display module, and the Web page that is used for page generation module is generated shows in browser.Data stream relation between each module is identical with above-mentioned method for transformation, does not do at this and gives unnecessary details.
Though more than described the specific embodiment of the present invention, it will be understood by those of skill in the art that these only illustrate, protection scope of the present invention is limited by appended claims.Those skilled in the art can make numerous variations or modification to these embodiments under the prerequisite that does not deviate from principle of the present invention and essence, but these changes and modification all fall into protection scope of the present invention.
Claims (8)
1. one kind changes into the device of the Web page with the client forms, it is characterized in that it comprises with lower module:
The INTERFACE DESIGN device is used for depositing the client window interfaces in database with binary mode;
Parsing module, the binary message that is used for reading described database, and analyze page properties generation XML document;
Page generation module is used for reading from XML document the control property of the page, generates the Web page.
2. device as claimed in claim 1 is characterized in that, this device also comprises a page display module, and the Web page that is used for page generation module is generated shows in browser.
3. device as claimed in claim 1, it is characterized in that, the attribute-name of control in the corresponding forms of tag name in the described XML document, the property value of the corresponding control of the label value in the XML document, the relation of inclusion of control is represented with the nest relation of XML label in the forms.
4. method of utilizing device as claimed in claim 1 to transform is characterized in that it may further comprise the steps:
S1, a kind of data layout of representing client forms information of setting are represented with XML;
The corresponding relation of S2, setting client form control and web page control;
S3, utilize the INTERFACE DESIGN device to deposit the client window interfaces in database with binary mode;
S4, utilize parsing module to read binary message in the described database, and analyze page properties;
S5, the set of properties that obtains among the step S4 is made into the XML document of data layout described in the step S1;
S6, utilize page generation module from XML document, to read the control property of the page, generate the Web page.
5. method as claimed in claim 4, it is characterized in that, the attribute-name of control in the corresponding forms of tag name described in the step S1 in the XML document, the property value of the corresponding control of the label value in the XML document, the relation of inclusion of control is represented with the nest relation of XML label in the forms.
6. method as claimed in claim 4, it is characterized in that, corresponding relation among the step S2 comprises: client form control type corresponds to the corresponding relation of the Web page control type after the conversion, client form control attribute corresponds to the corresponding relation of the Web page control attribute after the conversion, when client form control attribute corresponds to Web page control attribute after the conversion, need carry out recomputating of control coordinate.
7. method as claimed in claim 6 is characterized in that step S6 may further comprise the steps:
Step S61, for the control in the XML document that obtains among each step S5, according to the described corresponding relation of step S2, on the target Web page, write the relevant Web control;
Step S62, for the attribute of the control in the XML document that obtains among each step S5, according to the described corresponding relation of step S2, on the target Web page, write the attribute that recomputated in the corresponding Web controls tab.
8. the method for claim 1 is characterized in that, also comprises step S7 after the step S6: the Web page that generates in the page generation module is shown in browser.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010605551 CN102073688A (en) | 2010-12-21 | 2010-12-21 | Device for converting client form to Web page and method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010605551 CN102073688A (en) | 2010-12-21 | 2010-12-21 | Device for converting client form to Web page and method thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102073688A true CN102073688A (en) | 2011-05-25 |
Family
ID=44032227
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010605551 Pending CN102073688A (en) | 2010-12-21 | 2010-12-21 | Device for converting client form to Web page and method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102073688A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103049776A (en) * | 2012-12-31 | 2013-04-17 | 中国电子科技集团公司第十五研究所 | File exchange based B/S system card reading and writing method |
CN104462090A (en) * | 2013-09-13 | 2015-03-25 | 方正信息产业控股有限公司 | Method and device for processing data |
CN105069116A (en) * | 2015-08-11 | 2015-11-18 | 北京思特奇信息技术股份有限公司 | Method and system for converting json string into array |
CN108647076A (en) * | 2018-05-14 | 2018-10-12 | 阿里巴巴集团控股有限公司 | A kind of page processing method, device and equipment |
CN112182468A (en) * | 2020-10-14 | 2021-01-05 | 北京新纽科技有限公司 | Positioning and analyzing method compatible with client interface element and webpage element |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1960303A (en) * | 2006-09-25 | 2007-05-09 | 郭枭业 | Method and devices for browsing WML or RSS web page on computer |
CN101465866A (en) * | 2007-12-20 | 2009-06-24 | 上海盛娱网络科技有限公司 | Method for accessing WAP network based on Web terminal and transition module |
-
2010
- 2010-12-21 CN CN 201010605551 patent/CN102073688A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1960303A (en) * | 2006-09-25 | 2007-05-09 | 郭枭业 | Method and devices for browsing WML or RSS web page on computer |
CN101465866A (en) * | 2007-12-20 | 2009-06-24 | 上海盛娱网络科技有限公司 | Method for accessing WAP network based on Web terminal and transition module |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103049776A (en) * | 2012-12-31 | 2013-04-17 | 中国电子科技集团公司第十五研究所 | File exchange based B/S system card reading and writing method |
CN104462090A (en) * | 2013-09-13 | 2015-03-25 | 方正信息产业控股有限公司 | Method and device for processing data |
CN105069116A (en) * | 2015-08-11 | 2015-11-18 | 北京思特奇信息技术股份有限公司 | Method and system for converting json string into array |
CN108647076A (en) * | 2018-05-14 | 2018-10-12 | 阿里巴巴集团控股有限公司 | A kind of page processing method, device and equipment |
WO2019218736A1 (en) * | 2018-05-14 | 2019-11-21 | 阿里巴巴集团控股有限公司 | Page processing method, apparatus, and device |
CN108647076B (en) * | 2018-05-14 | 2020-07-24 | 阿里巴巴集团控股有限公司 | Page processing method, device and equipment |
CN111831387A (en) * | 2018-05-14 | 2020-10-27 | 创新先进技术有限公司 | Page processing method, device and equipment |
CN111831387B (en) * | 2018-05-14 | 2024-01-02 | 创新先进技术有限公司 | Page processing method, device and equipment |
CN112182468A (en) * | 2020-10-14 | 2021-01-05 | 北京新纽科技有限公司 | Positioning and analyzing method compatible with client interface element and webpage element |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107918666B (en) | Data synchronization method and system on block chain | |
Antkiewicz et al. | FeaturePlugin: Feature modeling plug-in for Eclipse | |
CN101661391B (en) | Object serializing method, object deserializing method, device and system | |
CN102043626B (en) | Method and device for encapsulating extjs component, and method and system for generating user interface | |
CN101968817B (en) | Method for configuring webpage template | |
CN101430714B (en) | Content structuring process method and system based on model | |
CN111241454A (en) | Method, system and device for generating webpage code | |
CN101122899A (en) | Report generation method and device | |
CN103123631B (en) | The generation of official documents and correspondence, the methods of exhibiting of webpage official documents and correspondence, device and Website server | |
CN101714133A (en) | WEB-based mathematical formula editing system and method | |
CN105045775A (en) | Method and apparatus for generating Excel document in designated format | |
CN102929646B (en) | Application program generation method and device | |
CN102073688A (en) | Device for converting client form to Web page and method thereof | |
CN105528418A (en) | Design document generation method and apparatus | |
CN110543303B (en) | Visual service platform | |
CN104657274A (en) | Method and device for testing software interface | |
CN104572744A (en) | Structured document generating method and device | |
CN110347984A (en) | Declaration form page variation, device, computer equipment and storage medium | |
CN103246605A (en) | Method and system for collocating remote controller key values based on xml (extensive markup language) | |
CN112114794B (en) | Automatic generation method and device of website application program and computer storage medium | |
Kolokolov et al. | Flexible development of variable software features for mobile business applications | |
CN103116601A (en) | Method and system of improving accuracy degree of intelligent association of input method | |
CN103177064A (en) | Method for admitting appointed content of electronic document automatically | |
CN112068841A (en) | Method and system for automatically generating project flow document | |
Riahi et al. | XML in formal specification, verification and generation of mobile HCI |
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: 20110525 |