CN109542408B - Intelligent template configuration method and device - Google Patents

Intelligent template configuration method and device Download PDF

Info

Publication number
CN109542408B
CN109542408B CN201811424274.8A CN201811424274A CN109542408B CN 109542408 B CN109542408 B CN 109542408B CN 201811424274 A CN201811424274 A CN 201811424274A CN 109542408 B CN109542408 B CN 109542408B
Authority
CN
China
Prior art keywords
template
data
attribute data
actual
scheme
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
CN201811424274.8A
Other languages
Chinese (zh)
Other versions
CN109542408A (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 Gyt Technology Co ltd
Original Assignee
Shenzhen Gyt 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 Gyt Technology Co ltd filed Critical Shenzhen Gyt Technology Co ltd
Priority to CN201811424274.8A priority Critical patent/CN109542408B/en
Publication of CN109542408A publication Critical patent/CN109542408A/en
Application granted granted Critical
Publication of CN109542408B publication Critical patent/CN109542408B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a template intelligent configuration method and a template intelligent configuration device, wherein the method comprises the steps of obtaining preset template factor information and preset template parameter information; generating a template scheme according to the template factor information and the template parameter information and a preset rule, wherein the template scheme comprises template attribute data; analyzing the acquired template data of the client to obtain actual attribute data of the client, wherein the actual attribute data is attribute data for representing actual template attributes of the template provided by the client; and matching the template scheme according to the actual attribute data to process the template data. The scheme disclosed by the invention provides a template setting function which is personalized, self-defined, flexible and changeable for a user, and the system can automatically match the scheme to import and export the template data only by simply and visually configuring the scheme template, thereby improving the working efficiency.

Description

Intelligent template configuration method and device
Technical Field
The invention belongs to the technical field of template configuration, and particularly relates to an intelligent template configuration method and device.
Background
With the continuous development of society, the mode of paper documents is gradually replaced by digital information, and great convenience is provided for enterprises in the aspects of data storage and entry. Most of clients use the template to arrange the information into a document, and the document is directly imported into the system for data entry and analysis. However, because the use habits of clients are different, the template formats used by different clients are also different greatly, so that when data is imported, the clients basically provide template import data, and then write different codes according to different clients to import and export different templates. In this case, a professional is required to write, the requirement on professional skills is high, the importing efficiency is low, and the labor cost is high.
Therefore, how to configure different template schemes for different clients to achieve efficient template import and export becomes an urgent technical problem to be solved.
Disclosure of Invention
The technical problem to be solved by the invention is how to configure different template schemes for different clients to realize efficient template import and export.
Therefore, according to a first aspect, an embodiment of the present invention discloses an intelligent template configuration method, including:
acquiring preset template factor information and preset template parameter information; generating a template scheme according to the template factor information and the template parameter information and a preset rule, wherein the template scheme comprises template attribute data; analyzing the acquired template data of the client to obtain actual attribute data of the client, wherein the actual attribute data is attribute data for representing actual template attributes of the template provided by the client; and matching the template scheme according to the actual attribute data to process the template data.
Optionally, the analyzing the obtained template data of the client to obtain the actual attribute data of the client includes: acquiring template data provided by a client, wherein the template data is template data including template attribute data provided by the client; and analyzing the template data according to a preset rule to obtain template attribute data, and outputting the template attribute data as actual attribute data.
Optionally, matching the template scheme according to the actual attribute data to perform processing of the template data includes: matching the actual attribute data with the template attribute data to determine an actual template scheme; and importing/exporting the template data into/out of the data table according to the actual template scheme in a preset processing mode.
Optionally, the template factor information includes: field name, field identification, processing function, default value, whether enabled or not, or any combination thereof.
According to a second aspect, an embodiment of the present invention provides an apparatus for intelligently configuring a template, including:
the information acquisition module is used for acquiring preset template factor information and preset template parameter information; the template scheme module is used for generating a template scheme according to the template factor information and the template parameter information and according to a preset rule, and the template scheme comprises template attribute data; the actual data module is used for analyzing the acquired template data of the client to obtain actual attribute data of the client, wherein the actual attribute data is attribute data used for representing actual template attributes of the template provided by the client; and the matching processing module is used for matching the template scheme according to the actual attribute data so as to process the template data.
Optionally, the actual data module comprises: the template data unit is used for acquiring template data provided by a client, and the template data is template data including template attribute data provided by the client; and the data analysis unit is used for analyzing the template data according to a preset rule to obtain template attribute data and outputting the template attribute data as actual attribute data.
Optionally, the matching processing module includes: the data matching unit is used for matching the actual attribute data with the template attribute data to determine an actual template scheme; and the data processing unit is used for importing/exporting the template data to the data table according to the actual template scheme in a preset processing mode.
Optionally, the template factor information includes: field name, field identification, processing function, default value, whether enabled or not, or any combination thereof.
According to a third aspect, the present invention provides a computer apparatus comprising a processor for executing a computer program stored in a memory to implement the intelligent configuration method of templates of any of the first aspects.
According to a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, wherein a processor is configured to execute the computer program stored in the storage medium to implement the intelligent template configuration method of any one of the first aspect.
The invention has the beneficial effects that:
the embodiment of the invention discloses a template intelligent configuration method and a template intelligent configuration device. Compared with the prior art that a professional needs to write codes when templates with different formats are processed, the scheme disclosed by the embodiment of the invention sets the template scheme through the preset template factor information and the preset template parameter information, different template schemes can be generated by adjusting the preset template parameter information and the preset template factor information, thereby matching the templates with different formats and different types provided by the client, finally processing the data in the templates, providing the template setting function of individuation, self-definition and flexibility and variability for the user, the template is simple and easy to operate, reliable, visual and convenient to maintain, development and labor cost are greatly reduced, scheme template configuration is simply and visually carried out, and the system can automatically match the scheme to lead in and lead out template data, so that the working efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flowchart of a method for intelligent template configuration according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an intelligent template configuration device according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flowchart of an intelligent template configuration method disclosed in this embodiment is shown, where the intelligent template configuration method includes:
step S101, acquiring preset template factor information and preset template parameter information.
In this embodiment, the template factor information includes: field name, field identification, processing function, default value, whether enabled or not, or any combination thereof. The template parameter information includes information such as a table index of the template table, position coordinates of the template table, a default value when there is no value in the template, a table format of the template table, a column width of the template table, a column height of the template table, a font size of the template table, and a font color of the template table.
And S102, generating a template scheme according to the template factor information and the template parameter information and a preset rule.
In this embodiment, the template solution includes template attribute data. And after the template factors and the corresponding template parameters are configured, generating a template scheme by the template factors and the corresponding template parameters according to a preset rule.
And step S103, analyzing the acquired template data of the client to obtain actual attribute data of the client.
In this embodiment, the actual attribute data is attribute data for characterizing actual template attributes of a template provided by a client.
In a specific implementation process, step S103 specifically includes: acquiring template data provided by a client, wherein the template data is template data including template attribute data provided by the client; and analyzing the template data according to a preset rule to obtain template attribute data, and outputting the template attribute data as actual attribute data.
And step S104, matching the template scheme according to the actual attribute data so as to process the template data.
In a specific embodiment, step S104 may specifically include: matching the actual attribute data with the template attribute data to determine an actual template scheme; and importing/exporting the template data into/out of the data table according to the actual template scheme in a preset processing mode.
And matching the analyzed actual attribute data with the template attribute data to determine the template attribute data matched with the actual attribute data, further determining an actual template scheme corresponding to the template attribute data, and then importing or exporting the template data into or out of the data table according to the actual template scheme and a preset function processing mode.
Compared with the mode that a professional is required to write codes when templates with different formats are processed in the prior art, the scheme disclosed by the embodiment of the invention sets the template scheme through the preset template factor information and the preset template parameter information, and different template schemes can be generated by adjusting the preset template parameter information and the preset template factor information, so that templates with different formats and different types provided by clients are matched, different template schemes are configured for different clients, and finally, data in the templates are processed, and the template setting function of individuation, customization and flexibility and variety is provided for the users, so that the template setting is simple, easy to operate, reliable, intuitive and convenient to maintain, the development and manpower cost is greatly reduced, the scheme template configuration only needs to be simply and intuitively performed, and the system can automatically perform the importing, and maintaining of the template data through the matching scheme, And the output is carried out, so that the working efficiency is improved.
The embodiment also discloses an intelligent template configuration device, please refer to fig. 2, which is a schematic structural diagram of the intelligent template configuration device, and the intelligent template configuration device includes:
an information obtaining module 201, configured to obtain preset template factor information and preset template parameter information; the template scheme module 202 is used for generating a template scheme according to the template factor information and the template parameter information and according to a preset rule, wherein the template scheme comprises template attribute data; the actual data module 203 is configured to analyze the acquired template data of the client to obtain actual attribute data of the client, where the actual attribute data is attribute data used for representing actual template attributes of a template provided by the client; and the matching processing module 204 is configured to match the template scheme according to the actual attribute data to perform processing on the template data.
As an optional embodiment, the actual data module in the template intelligent configuration device includes: the template data unit is used for acquiring template data provided by a client, and the template data is template data including template attribute data provided by the client; and the data analysis unit is used for analyzing the template data according to a preset rule to obtain template attribute data and outputting the template attribute data as actual attribute data.
As an optional embodiment, the matching processing module in the template intelligent configuration apparatus includes: the data matching unit is used for matching the actual attribute data with the template attribute data to determine an actual template scheme; and the data processing unit is used for importing/exporting the template data to the data table according to the actual template scheme in a preset processing mode.
As an optional embodiment, the template factor information in the template intelligent configuration apparatus includes: field name, field identification, processing function, default value, whether enabled or not, or any combination thereof.
In addition, an embodiment of the present invention further provides a computer apparatus, where a processor executes the computer instructions, so as to implement the following method:
acquiring preset template factor information and preset template parameter information; generating a template scheme according to the template factor information and the template parameter information and a preset rule, wherein the template scheme comprises template attribute data; analyzing the acquired template data of the client to obtain actual attribute data of the client, wherein the actual attribute data is attribute data for representing actual template attributes of the template provided by the client; and matching the template scheme according to the actual attribute data to process the template data.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a Random Access Memory (RAM), or the like. The computer processor is used to execute a computer program stored in a storage medium to implement the following method:
acquiring preset template factor information and preset template parameter information; generating a template scheme according to the template factor information and the template parameter information and a preset rule, wherein the template scheme comprises template attribute data; analyzing the acquired template data of the client to obtain actual attribute data of the client, wherein the actual attribute data is attribute data for representing actual template attributes of the template provided by the client; and matching the template scheme according to the actual attribute data to process the template data.
The foregoing is merely an example of the present invention and common general knowledge of known specific structures and features of the embodiments is not described herein in any greater detail. It should be noted that variations and modifications can be made by those skilled in the art without departing from the structure of the present invention. These should also be construed as the scope of the present invention, and they should not be construed as affecting the effectiveness of the practice of the present invention or the applicability of the patent. The scope of the claims of the present application shall be determined by the contents of the claims, and the description of the embodiments and the like in the specification shall be used to explain the contents of the claims.

Claims (8)

1. An intelligent template configuration method is characterized by comprising the following steps:
acquiring preset template factor information and preset template parameter information;
generating a template scheme according to the template factor information and the template parameter information and a preset rule, wherein the template scheme comprises template attribute data;
acquiring template data provided by a client, wherein the template data is template data including template attribute data provided by the client;
analyzing the template data according to a preset rule to obtain template attribute data, and outputting the template attribute data as actual attribute data;
matching the actual attribute data with the template attribute data to determine an actual template scheme;
and importing/exporting the template data to a data table according to the actual template scheme in a preset processing mode.
2. The intelligent configuration method for templates of claim 1, wherein the template factor information comprises: field name, field identification, processing function, default value, whether enabled or not, or any combination thereof.
3. An intelligent template configuration device, comprising:
the information acquisition module is used for acquiring preset template factor information and preset template parameter information;
the template scheme module is used for generating a template scheme according to the template factor information and the template parameter information and a preset rule, and the template scheme comprises template attribute data;
the actual data module is used for acquiring template data provided by a client, and the template data is template data including template attribute data provided by the client; analyzing the template data according to a preset rule to obtain template attribute data, and outputting the template attribute data as actual attribute data;
the matching processing module is used for matching the actual attribute data with the template attribute data to determine an actual template scheme; and importing/exporting the template data to a data table according to the actual template scheme in a preset processing mode.
4. The template intelligent configuration apparatus of claim 3, wherein the actual data module comprises:
the template data unit is used for acquiring template data provided by a client, and the template data is template data including template attribute data provided by the client;
and the data analysis unit is used for analyzing the template data according to a preset rule to obtain template attribute data and outputting the template attribute data as actual attribute data.
5. The intelligent template configuration apparatus of claim 4, wherein the matching processing module comprises:
the data matching unit is used for matching the actual attribute data with the template attribute data to determine an actual template scheme;
and the data processing unit is used for importing/exporting the template data to a data table according to the actual template scheme in a preset processing mode.
6. The intelligent configuration device for templates of any of claims 3-5, wherein the template factor information comprises: field name, field identification, processing function, default value, whether enabled or not, or any combination thereof.
7. A computer arrangement comprising a processor for executing a computer program stored in a memory to implement the template intelligent configuration method of claim 1 or 2.
8. A computer-readable storage medium, on which a computer program is stored, characterized in that a processor is configured to execute the computer program stored in the storage medium to implement the template intelligent configuration method according to claim 1 or 2.
CN201811424274.8A 2018-11-27 2018-11-27 Intelligent template configuration method and device Active CN109542408B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811424274.8A CN109542408B (en) 2018-11-27 2018-11-27 Intelligent template configuration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811424274.8A CN109542408B (en) 2018-11-27 2018-11-27 Intelligent template configuration method and device

Publications (2)

Publication Number Publication Date
CN109542408A CN109542408A (en) 2019-03-29
CN109542408B true CN109542408B (en) 2022-04-26

Family

ID=65850496

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811424274.8A Active CN109542408B (en) 2018-11-27 2018-11-27 Intelligent template configuration method and device

Country Status (1)

Country Link
CN (1) CN109542408B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112700860A (en) * 2020-12-18 2021-04-23 北京左医科技有限公司 Customized generation method and generation device of pre-inquiry information and storage medium
CN113704269B (en) * 2021-09-02 2024-04-16 京东城市(北京)数字科技有限公司 Data processing method, system, storage medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104765721A (en) * 2014-01-06 2015-07-08 北大方正集团有限公司 Makeup handling method and device
CN105512239A (en) * 2015-11-30 2016-04-20 中国建设银行股份有限公司 Database data push method and device
CN105630506A (en) * 2015-12-30 2016-06-01 北京嘉和美康信息技术有限公司 Bill generation method, bill template generation method and related devices

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8849853B2 (en) * 2009-07-30 2014-09-30 Intellectual Ventures Fund 83 Llc Method for matching artistic attributes of a template and secondary images to a primary image
CN104317974B (en) * 2014-11-21 2017-07-11 武汉理工大学 Multi-source data introduction method in a kind of ERP system of restructural
CN105117431A (en) * 2015-08-07 2015-12-02 北京思特奇信息技术股份有限公司 Dynamic configuration method and system for external imported data
CN107480119A (en) * 2017-08-23 2017-12-15 郑州云海信息技术有限公司 A kind of report form template generation method and device
US20190340230A1 (en) * 2018-05-07 2019-11-07 Web.Com Group, Inc. System and method for generating websites from predefined templates

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104765721A (en) * 2014-01-06 2015-07-08 北大方正集团有限公司 Makeup handling method and device
CN105512239A (en) * 2015-11-30 2016-04-20 中国建设银行股份有限公司 Database data push method and device
CN105630506A (en) * 2015-12-30 2016-06-01 北京嘉和美康信息技术有限公司 Bill generation method, bill template generation method and related devices

Also Published As

Publication number Publication date
CN109542408A (en) 2019-03-29

Similar Documents

Publication Publication Date Title
CN108228169B (en) Chart making method, device, equipment and medium based on eCharts tool
CN110347953B (en) Page generation method, page generation device, computer equipment and storage medium
WO2019095424A1 (en) Data acquisition method and device, storage medium and terminal
WO2018214859A1 (en) Method and device for analyzing man-machine dialogue data
WO2016023424A1 (en) Character editing method and device for screen display device
CN106339363B (en) A kind of production method and device of PPT report
CN109542408B (en) Intelligent template configuration method and device
CN111026404A (en) Method and device for generating parameter configuration code, electronic product and storage medium
CN110688830A (en) Credit investigation template conversion method and device
CN110806866A (en) Generation method and device of front-end management system
CN110688315A (en) Interface code detection report generation method, electronic device, and storage medium
CN110955803A (en) Drawing method, device, equipment and medium of relational graph based on graph database
CN108984709A (en) A kind of data lead-in method, device and computer-readable medium
CN104281382B (en) For handling the device and method of information in portable terminal
CN113436298B (en) Method and device for automatically generating Chinese character stroke order animation and related components thereof
CN106775337A (en) The method for sorting and mobile terminal of multipad icon
CN108182965B (en) Electronic medical record generation system and method
CN111444230A (en) Data visualization analysis method based on big data platform
CN109086260B (en) Food data processing method and device
CN117032666A (en) Page editing method and device based on editor, terminal equipment and storage medium
CN115509637A (en) Form-based intelligent filling method, system, equipment and medium
CN115934653A (en) Method and device for adding external OFD page content in OFD file
CN115577689A (en) Table component generation method, device, equipment and medium
CN113378526A (en) PDF paragraph processing method, device, storage medium and equipment
CN114610308A (en) Application function layout adjusting method and device, electronic equipment and storage medium

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