[go: up one dir, main page]

CN104090759A - Template file based data filling method - Google Patents

Template file based data filling method Download PDF

Info

Publication number
CN104090759A
CN104090759A CN201410298289.XA CN201410298289A CN104090759A CN 104090759 A CN104090759 A CN 104090759A CN 201410298289 A CN201410298289 A CN 201410298289A CN 104090759 A CN104090759 A CN 104090759A
Authority
CN
China
Prior art keywords
data
template
pattern
filling
content area
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
Application number
CN201410298289.XA
Other languages
Chinese (zh)
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.)
HUBEI ANBIAO INFORMATION TECHNOLOGY Co Ltd
Original Assignee
HUBEI ANBIAO INFORMATION 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 HUBEI ANBIAO INFORMATION TECHNOLOGY Co Ltd filed Critical HUBEI ANBIAO INFORMATION TECHNOLOGY Co Ltd
Priority to CN201410298289.XA priority Critical patent/CN104090759A/en
Publication of CN104090759A publication Critical patent/CN104090759A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

The invention relates to application development methods, particularly to a template file based data filling method. The template file based data filling method comprises the following steps of obtaining a file copy and filling data of a template according to template identifiers, wherein the file copy and the filling data of the template are defined by presentation styles, every presentation style is used for defining a unique template identifier, one or more than one content area is contained in every presentation styles, data need to be filled in every content area, and a tag identifier is defined by every content area; filling data values to the corresponding content areas in the presentation styles through the tag identifiers; generating and saving a style definition file after the filling of the data of the content area is achieved. When data formats and the presentation styles are changed or a new data format is added, only the data formats and the presentation styles need to be defined, the operational logic which is used for filling content does not need to be redeveloped, the definition of the data formats and the presentation styles can be achieved through non-developers, and accordingly the maintenance cost can be greatly reduced.

Description

Based on the data filling method of template file
Technical field
The present invention relates to program developing method, especially the data filling method based on template file.
Background technology
In the process of design and development application program, we often can need to have the data of certain data layout, represent to user, so that user understands and reads with a kind of fixing pattern that presents.Conventionally we can be for each data layout, writes an arithmetic logic that generates fixed pattern.If increase a kind of data layout or Update Table form newly and present pattern, we just must increase or revise arithmetic logic newly.And arithmetic logic must be safeguarded by developer, other people cannot safeguard, will increase like this Yin Geshi the brought maintenance cost that changes.
Summary of the invention
The technical problem to be solved in the present invention be to provide a kind of by data layout, present the data filling method based on template file that the definition of pattern separates with formation logic.
For solving above technical matters, technical solution of the present invention is: based on the data filling method of template file, its method comprises the following steps: obtain the padding data that presents pattern defined file copy and template according to template identifier, each unique template identifier of pattern definition that presents, present in pattern and can comprise one or more content areas that need padding data, each content area can define a label identifier, by label identifier, the value of data is filled into and presents content area corresponding in pattern, after content area data stuffing, generate and preserve pattern defined file for calling.
Compared with prior art, beneficial effect of the present invention is as follows: when data layout with present that pattern changes or when newly-increased a kind of data layout, only need define data layout and present pattern, and without exploitation again for filling the arithmetic logic of content.Define data layout and present pattern and can be completed by non-developer, therefore can greatly reduce maintenance cost.
Brief description of the drawings
Fig. 1 is the schematic diagram of the data filling method of the embodiment of the present invention based on template file.
Embodiment
Further illustrate embodiment of the present invention below in conjunction with accompanying drawing.
With reference to figure 1, the data filling method of the embodiment of the present invention based on template file, its method comprises the following steps: obtain the padding data that presents pattern defined file copy and template according to template identifier, each unique template identifier of pattern definition that presents, present in pattern and can comprise one or more content areas that need padding data, each content area can define a label identifier, by label identifier, the value of data is filled into and presents content area corresponding in pattern, after content area data stuffing, generate and preserve pattern defined file for calling.
In the embodiment of the present invention, present the definition of pattern: each unique identifier of pattern definition that presents, we are referred to as template identifier.Present in pattern and can comprise one or more content areas that need padding data.Each content area can define an indications, and we are referred to as label identifier.For each content area can desired location, pattern, form etc.
Data format definition: each group data layout can define a mark, to distinguish different data format.This identifier can with the masterplate identifier match that presents pattern.Each value identifier in data layout can mate with the label identifier presenting in pattern.
Data layout with present pattern and must be able to completely mate, be i.e. one group of data layout and a kind of corresponding relation that presents pattern.Each significant value and present certain the content area correspondence in pattern in data layout, so that this value presents at this content area.
More specifically, the data filling method of the embodiment of the present invention based on template file: first obtain pattern defined file copy according to template identifier, comprise label identifier as follows: Tag0, Tag1, Tag2 ..., TagN;
Then obtain the padding data of template according to template identifier.Data layout is as follows:
Tag0: " data content ", Tag1: " data content ", Tag2: " data content " ..., TagN: " data content " }
Then by label identifier, the value of data is filled into and presents content area corresponding in pattern, after content area data stuffing, can preserve pattern defined file.

Claims (1)

1. the data filling method based on template file, it is characterized in that: its method comprises the following steps: obtain the padding data that presents pattern defined file copy and template according to template identifier, each unique template identifier of pattern definition that presents, present in pattern and can comprise one or more content areas that need padding data, each content area can define a label identifier, by label identifier, the value of data is filled into and presents content area corresponding in pattern, after content area data stuffing, generate and preserve pattern defined file for calling.
CN201410298289.XA 2014-06-26 2014-06-26 Template file based data filling method Pending CN104090759A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410298289.XA CN104090759A (en) 2014-06-26 2014-06-26 Template file based data filling method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410298289.XA CN104090759A (en) 2014-06-26 2014-06-26 Template file based data filling method

Publications (1)

Publication Number Publication Date
CN104090759A true CN104090759A (en) 2014-10-08

Family

ID=51638478

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410298289.XA Pending CN104090759A (en) 2014-06-26 2014-06-26 Template file based data filling method

Country Status (1)

Country Link
CN (1) CN104090759A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598626A (en) * 2015-02-04 2015-05-06 中国人民解放军总后勤部军事交通运输研究所 Modularized storage method for data in automatic identification label
CN108197096A (en) * 2018-02-01 2018-06-22 东莞久久蜜蜂智能科技有限公司 Information input method, Message Entry Device and system
CN109165197A (en) * 2018-08-29 2019-01-08 江苏奇异点网络有限公司 A kind of document handling method, terminal and server
CN112949262A (en) * 2021-02-09 2021-06-11 中广核工程有限公司 Review form processing method and device, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020181779A1 (en) * 2001-06-04 2002-12-05 Hansen Von L. Character and style recognition of scanned text
CN101201815A (en) * 2006-12-13 2008-06-18 鸿富锦精密工业(深圳)有限公司 System and method for generating patent application documents
CN101661460A (en) * 2009-09-18 2010-03-03 上海宝信软件股份有限公司 Method and device for generating management system report
CN101809572A (en) * 2007-09-28 2010-08-18 雅虎公司 System and method for including interactive elements on a search results page
CN101976260A (en) * 2010-11-04 2011-02-16 上海银杏界信息科技有限公司 Visual label and method for generating webpage by using visual label
CN102135990A (en) * 2011-03-11 2011-07-27 北京神舟航天软件技术有限公司 Java server page (JSP) template-based intelligent table system capable of being defined freely and generating method
CN102662595A (en) * 2012-04-18 2012-09-12 广州坚和网络科技有限公司 Magazine graphic and context mixed composing method for mobile terminal screen

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020181779A1 (en) * 2001-06-04 2002-12-05 Hansen Von L. Character and style recognition of scanned text
CN101201815A (en) * 2006-12-13 2008-06-18 鸿富锦精密工业(深圳)有限公司 System and method for generating patent application documents
CN101809572A (en) * 2007-09-28 2010-08-18 雅虎公司 System and method for including interactive elements on a search results page
CN101661460A (en) * 2009-09-18 2010-03-03 上海宝信软件股份有限公司 Method and device for generating management system report
CN101976260A (en) * 2010-11-04 2011-02-16 上海银杏界信息科技有限公司 Visual label and method for generating webpage by using visual label
CN102135990A (en) * 2011-03-11 2011-07-27 北京神舟航天软件技术有限公司 Java server page (JSP) template-based intelligent table system capable of being defined freely and generating method
CN102662595A (en) * 2012-04-18 2012-09-12 广州坚和网络科技有限公司 Magazine graphic and context mixed composing method for mobile terminal screen

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598626A (en) * 2015-02-04 2015-05-06 中国人民解放军总后勤部军事交通运输研究所 Modularized storage method for data in automatic identification label
CN104598626B (en) * 2015-02-04 2018-02-02 中国人民解放军总后勤部军事交通运输研究所 Data modularization storage method in automatic tag identification
CN108197096A (en) * 2018-02-01 2018-06-22 东莞久久蜜蜂智能科技有限公司 Information input method, Message Entry Device and system
CN109165197A (en) * 2018-08-29 2019-01-08 江苏奇异点网络有限公司 A kind of document handling method, terminal and server
CN109165197B (en) * 2018-08-29 2021-07-27 江苏奇异点网络有限公司 File processing method, terminal and server
CN112949262A (en) * 2021-02-09 2021-06-11 中广核工程有限公司 Review form processing method and device, computer equipment and storage medium
CN112949262B (en) * 2021-02-09 2024-05-28 中广核工程有限公司 Review sheet processing method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104461484B (en) The implementation method and device of front-end template
CN106371825B (en) A kind of mobile terminal application interface list dynamic creation method and device
CN102541533B (en) Method and equipment for page display
CN105843821B (en) A data processing method and system for configurable reports
CN107463418B (en) Configuration file generation method and device for server middleware
CN105528418B (en) A kind of design documentation generation method and device
SG11201805617SA (en) Interface data displaying method and device
GB2576654A (en) Method and apparatus for facilitating creation of simulation model
CN102567422A (en) Page display method and equipment
CN105786921B (en) Method and device for data module transformation of unstructured document
CN103631597A (en) Extensible markup language (XML)-based WEB form engine device and method
US20130117656A1 (en) Conversion of web template designs
CN105654022A (en) Method and device for extracting structured document information
CN104090759A (en) Template file based data filling method
CN103970750A (en) Method and device for generating HTML (Hypertext Markup Language) web pages
CN114661286A (en) A large-screen visual code generation method, system and storage medium
CN104063361A (en) Report design method and system
CN104267962A (en) Description-based interface UI control configuration method
CN101727327B (en) Development method for visual JSP interface based on GEF technology
CN105511865A (en) A method and system capable of code development using multiple languages or multiple engines
CN110007994B (en) Software internationalization method and system
CN106687946A (en) Generate a mobile web browser view for the app
CN105630489B (en) Data processing method and data processing equipment
CN105893591A (en) Intelligent compiling technology of data sharing service
CN104375793A (en) Embedded system background image update-displaying method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20141008

RJ01 Rejection of invention patent application after publication