CN105930323B - A kind of document generating method and device - Google Patents
A kind of document generating method and device Download PDFInfo
- Publication number
- CN105930323B CN105930323B CN201510560993.2A CN201510560993A CN105930323B CN 105930323 B CN105930323 B CN 105930323B CN 201510560993 A CN201510560993 A CN 201510560993A CN 105930323 B CN105930323 B CN 105930323B
- Authority
- CN
- China
- Prior art keywords
- file
- content information
- group
- subfile
- content
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present embodiments relate to data processing field more particularly to a kind of document generating methods and device, to generate new formatted file by easy method.In the embodiment of the present invention, the format template information and document content information of file to be generated are obtained;Wherein, format template information includes the mark of N number of subtemplate, and N is positive integer;Obtain the format template information and document content information of file to be generated, according to format template information, determine the format module of file to be generated, according to document content information, the file content of file to be generated is obtained from data source, according to the format module and file content of file to be generated, file to be generated is generated.If the format of certain a part of file to be generated has subtle variation, then only change the corresponding subtemplate in part that the file to be generated changes, in this way, then avoiding the mode that need to develop a whole set of format module when generating the file of format in the prior art, file generated efficiency is improved.
Description
Technical field
The present embodiments relate to data processing field more particularly to a kind of document generating methods and device.
Background technique
Increasingly extensive and different field the type of business applied with computer and networks becomes increasingly abundant, based on number
The demand for generating format file (such as report file in financial field) according to the data in library is more and more.
At present for the demand for generating format file, the method that the prior art uses is opened to correspond to for the format file
A whole set of format module is sent out, combines a whole set of format module and data of the exploitation later, generates format file.The process
In, once any minor change occurs in the format of the format file, then it is both needed to open again for the formatted file after the variation
A whole set of format module is sent out, since the development efficiency of a whole set of format module is lower, the text of multiple format is generated by this method
Efficiency is lower when part, further, right since a whole set of format module in the program, needing to increase newly is added in system file
System file is modified, therefore is unfavorable for the stabilization of system.
Summary of the invention
The embodiment of the present invention provides a kind of document generating method and device, to generate new format by easy method
File.
The embodiment of the present invention provides a kind of document generating method, comprising the following steps:
Obtain the format template information and document content information of file to be generated;Wherein, format template information includes N number of son
The mark of template, N are positive integer;
According to the mark of N number of subtemplate, N number of subtemplate is determined, and combine N number of subtemplate, obtain file to be generated
Format module;
According to document content information, the file content of file to be generated is obtained from data source;
File content is handled according to format module, obtains format and the consistent file to be generated of format module.
Preferably, file to be generated is made of N number of part, the format and a subtemplate of a part of file to be generated
Format it is consistent, the N section of file to be generated and N number of subtemplate correspond;
N number of subtemplate is combined, is specifically included:
The part of the file to be generated according to corresponding to subtemplate each in N number of subtemplate, combines N number of subtemplate.
Preferably, according to document content information, the file content of file to be generated is obtained from data source, is specifically included:
According to document content information, the data volume of the corresponding file content of document content information is determined;
If the data volume of the corresponding file content of document content information is greater than threshold value, according to document content information, M is generated
Group subfile content information;Wherein, the corresponding file content of any group of subfile content information is that document content information is corresponding
A part of file content, the corresponding file content of wantonly two groups of subfile content informations is different, M group subfile content information correspondence
File content file content corresponding with document content information it is identical;The corresponding file content of every group of subfile content information
Data volume is not more than threshold value, and M is positive integer;
The corresponding file content of every group of subfile content information in M group subfile content information is obtained from data source;
File content is handled according to format module, obtains format and the consistent file to be generated of format module, is had
Body includes:
The corresponding file content of every group of subfile content information in M group subfile content information is carried out according to format module
Processing, obtains format file corresponding with every group of subfile content information in the consistent M group subfile content information of format module;
By the corresponding file mergences of every group of subfile content information, file to be generated is obtained.
Preferably, it is obtained in M group subfile content information in the corresponding file of every group of subfile content information from data source
Hold, specifically include:
Every group of son is obtained in parallel slave M group subfile content information in the corresponding data source of every group of subfile content information
The corresponding file content of document content information, obtains the file content of file to be generated;
The corresponding file content of every group of subfile content information in M group subfile content information is carried out according to format module
Processing, obtains format file corresponding with every group of subfile content information in the consistent M group subfile content information of format module,
It specifically includes:
It is parallel by the corresponding file content of every group of subfile content information in M group subfile content information according to format mould
Plate is handled, and it is corresponding with every group of subfile content information in the consistent M group subfile content information of format module to obtain format
File.
Preferably, the format template information and document content information for obtaining file to be generated, specifically include:
Obtain the configuration information of user;
According to preset rules, configuration information is handled, is obtained in the format template information and file of file to be generated
Hold information.
The embodiment of the present invention provides a kind of file creating apparatus, comprising:
Acquiring unit, for obtaining the format template information and document content information of file to be generated;Wherein, format module
Information includes the mark of N number of subtemplate, and N is positive integer;
Determination unit determines N number of subtemplate for the mark according to N number of subtemplate, and combines N number of subtemplate, obtains
To the format module of file to be generated;According to document content information, the file content of file to be generated is obtained from data source;
It is consistent with format module to obtain format for handling file content according to format module for processing unit
File to be generated.
Preferably, file to be generated is made of N number of part, the format and a subtemplate of a part of file to be generated
Format it is consistent, the N section of file to be generated and N number of subtemplate correspond;
Determination unit is specifically used for:
The part of the file to be generated according to corresponding to subtemplate each in N number of subtemplate, combines N number of subtemplate.
Preferably, determination unit is specifically used for:
According to document content information, the data volume of the corresponding file content of document content information is determined;
If the data volume of the corresponding file content of document content information is greater than threshold value, according to document content information, M is generated
Group subfile content information;Wherein, the corresponding file content of any group of subfile content information is that document content information is corresponding
A part of file content, the corresponding file content of wantonly two groups of subfile content informations is different, M group subfile content information correspondence
File content file content corresponding with document content information it is identical;The corresponding file content of every group of subfile content information
Data volume is not more than threshold value, and M is positive integer;
The corresponding file content of every group of subfile content information in M group subfile content information is obtained from data source;
Processing unit is specifically used for:
The corresponding file content of every group of subfile content information in M group subfile content information is carried out according to format module
Processing, obtains format file corresponding with every group of subfile content information in the consistent M group subfile content information of format module;
By the corresponding file mergences of every group of subfile content information, file to be generated is obtained.
Preferably, determination unit is specifically used for:
Every group of son is obtained in parallel slave M group subfile content information in the corresponding data source of every group of subfile content information
The corresponding file content of document content information, obtains the file content of file to be generated;
Processing unit is specifically used for:
It is parallel by the corresponding file content of every group of subfile content information in M group subfile content information according to format mould
Plate is handled, and it is corresponding with every group of subfile content information in the consistent M group subfile content information of format module to obtain format
File.
Preferably, acquiring unit is specifically used for:
Obtain the configuration information of user;
According to preset rules, configuration information is handled, is obtained in the format template information and file of file to be generated
Hold information.
In the embodiment of the present invention, the format template information and document content information of file to be generated are obtained;Wherein, format mould
Plate information includes the mark of N number of subtemplate, and N is positive integer;According to the mark of N number of subtemplate, N number of subtemplate is determined, and by N
A sub- form assembly, obtains the format module of file to be generated;According to document content information, file to be generated is obtained from data source
File content;File content is handled according to format module, obtains format and the consistent file to be generated of format module.
Since when needing to generate to be generated file of the format as format module, user can flexibly be selected in the file to be generated
The corresponding subtemplate in each part obtain the format of file to be generated by combining the corresponding subtemplate of multiple portions
Template.If the format of certain a part of file to be generated has subtle variation, the portion that the file to be generated changes only is changed
Divide corresponding subtemplate, in this way, a whole set of format need to be developed when generating the file of format in the prior art by then avoiding
The mode of template improves file generated efficiency, and without changing system file, improves the stability of system.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this
For the those of ordinary skill in field, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is a kind of system architecture schematic diagram that the embodiment of the present invention is applicable in;
Fig. 2 is a kind of document generating method flow diagram provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of file creating apparatus provided in an embodiment of the present invention.
Specific embodiment
In order to which the purpose of the present invention, technical solution and beneficial effect is more clearly understood, below in conjunction with attached drawing and implementation
Example, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only used to explain this hair
It is bright, it is not intended to limit the present invention.
As shown in Figure 1, the system architecture schematic diagram that the embodiment of the present invention is applicable.It include source database in the system architecture
101, the file 102, file creating apparatus 103 and destination server of non-database type.Source database 101 is one or more
Same type or different types of source database.The file 102 of non-database type includes a variety of same types or different types of text
Part.Source database 101 and the file of non-database type 102 can be located at not homologous ray, and be used to storage data source.File is raw
It may have access to the file 102 of source database 101 and non-database type at device 103, to obtain data source, and be based on data source
Generate new file.File creating apparatus 103 may have access to destination server 104, and destination server 104 is generated for storage file
The file that device 103 generates.
In the embodiment of the present invention, file creating apparatus 103 is used for the file based on source database 101 or non-database type
Data source in 102 generates the file with certain format, and file is stored in destination server 104.
Based on system architecture shown in FIG. 1, Fig. 2 shows a kind of document generating method sides provided in an embodiment of the present invention
Method, comprising the following steps:
Step 201, the format template information and document content information of file to be generated are obtained;Wherein, format template information
Mark including N number of subtemplate, N are positive integer;
Step 202, according to the mark of N number of subtemplate, determine N number of subtemplate, and combine N number of subtemplate, obtain to
Generate the format module of file;
Step 203, according to document content information, the file content of file to be generated is obtained from data source;
Step 204, file content is handled according to format module, it is consistent to be generated with format module obtains format
File.
In above-mentioned steps 201, a kind of optional embodiment is that file creating apparatus obtains the configuration information of user.Tool
Body can input configuration information to file creating apparatus for user.Later, file creating apparatus is according to preset rules, to configuration information
It is handled, obtains the format template information and document content information of file to be generated.
Another optional embodiment is that the format and content of configuration information meets the requirements, without to configuration information
It is further processed, i.e., configuration information is format template information and document content information.
Specifically, the format of the configuration information of user's input or form may be varied, therefore, file generated dress
It sets and first configuration information is handled, for example, keyword and format template information are filtered out from configuration information, and according to
Keyword in configuration information is standardized, obtains format template information and file content by the keyword filtered out
Information.Format template information and document content information in the embodiment of the present invention can be for what is required with certain format, and file is raw
The sentence that can be identified and handled at device.
In above-mentioned steps 202, file to be generated is made of N number of part, the format and one of a part of file to be generated
The format of a subtemplate is consistent, and the N section of file to be generated and N number of subtemplate correspond;By N number of son in above-mentioned steps 202
Form assembly, specifically:
The part of the file to be generated according to corresponding to subtemplate each in N number of subtemplate, combines N number of subtemplate.
Specifically, subtemplate is prestored in file creating apparatus in the embodiment of the present invention, which is for one
Template set by one part of file.For example, generally include multiple portions in a file, respectively header line,
Detail row, summary row can then be stored with the header line subtemplate of multiple format, each header line subtemplate in file creating apparatus
There are an identification number, such as A01, A02, A03 etc.;The detail row submodule of multiple format can be stored in file creating apparatus
Plate, each detail row subtemplate have an identification number, such as B01, B02, B03 etc.;It can be stored in file creating apparatus more
The summary row subtemplate of kind format, each summary row subtemplate have an identification number, such as C01, C02, C03 etc..
Some keywords that file creating apparatus is obtained from configuration information can be data source location, data source identification, sieve
Select keyword, destination server mark and call format etc..For example, configuration information includes two parts, respectively to
Generate the document content information of file and the format template information of file to be generated.Wherein document content information are as follows: from source data
The day-to-day account record in the whole year in 2014 that the card number that Zhang San is obtained in library 1 is 123456789 generates credit record table, and will letter
It is stored in destination server 123 with record sheet.Format template information are as follows: header line uses template A01, and template is used in detail enforcement
B05, summary row use template C03.
As it can be seen that the various pieces of a file are fabricated to a subtemplate, then various pieces of a file
The combination of freedom and flexibility produces format mould various in style to make file creating apparatus according only to format template information
Plate, moreover, only being changed in the format template information of this document when the format of certain a part of file to be generated has slight change
The submodule panel sign to change, or increase newly a subtemplate to change, since subtemplate is only
A part in the format module of file, it may be possible to which the pattern of header line, pattern of detail row etc. avoid in the prior art
The case where format module for the file that a whole set of need to be developed again, improve file format module generate efficiency and flexibly
Property, further improve the efficiency of file generated.
In specific implementation, it will usually the larger situation of the data volume of data source occur, in order to further enhance file generated
Efficiency provides one kind in the embodiment of the present invention and is preferably carried out mode, in above-mentioned steps 203, according to document content information, determines
The data volume of the corresponding file content of document content information;If the data volume of the corresponding file content of document content information is greater than threshold
Value generates M sub- document content informations then according to document content information;Wherein, any one corresponding text of subfile content information
Part content is a part of the corresponding file content of document content information, any two corresponding file contents of subfile content information
Difference, the corresponding file content of the sub- document content information of M file content corresponding with document content information are identical;Every group of Ziwen
The data volume of the corresponding file content of part content information is not more than threshold value, and M is positive integer;It is obtained in M group subfile from data source
Hold the corresponding file content of every group of subfile content information in information.By every group of subfile content in M group subfile content information
The corresponding file content of information is handled according to format module, obtains format and the consistent M group subfile content of format module
The corresponding file of every group of subfile content information in information;By the corresponding file mergences of every group of subfile content information, obtain to
Generate file.
For example, the day-to-day account note in the whole year in 2014 that the card number that Zhang San is obtained from source database 1 is 123456789
Record generates credit record table, and credit record table is stored in destination server 123.The format module of file to be generated is believed
Breath are as follows: header line uses template A01, and detail, which is exercised, uses template B05, and summary row uses template C03.This document content information is corresponding
Data volume be 1000 record, be greater than threshold value 100 therefore the corresponding file content of document content information is grouped.
There are many foundations of grouping, now provides a kind of optional group basis, and every record has a transaction ID, than
Such as, transaction ID 1, transaction ID 2, transaction ID 3 etc..Corresponding record of each transaction ID is no more than 100.At this point, pressing
Sub- transaction ID generates M group subfile content information, it is assumed that generates 10 groups of subfile content informations, first group of file content is corresponding
Subfile content information are as follows: from source database 1 obtain Zhang San card number be 123456789 the whole year in 2014 day-to-day account
The record of Transaction Identification Number mark 1 in record;The corresponding subfile content information of second group of file content are as follows: obtained from source database 1
Take the record of Transaction Identification Number mark 2 in the day-to-day account record in the whole year in 2014 that the card number of Zhang San is 123456789;... the tenth group of text
The corresponding subfile content information of part content are as follows: 2014 for obtaining the card number of Zhang San from source database 1 as 123456789 are whole
The record of Transaction Identification Number mark 10 in the day-to-day account record in year.
Template A01 is used according to the requirement header line of format module, detail, which is exercised, uses template B05, and summary row uses template
The corresponding file content of C03 and first group of subfile content information generates the corresponding text of first group of subfile content information
Part;The corresponding file content of first group of subfile content information is exported according to the requirement of format module through processing.It presses
The requirement header line of template uses template A01 in accordance with the form provided, and detail, which is exercised, uses template B05, and summary row uses template C03, Yi Ji
The corresponding file content of two groups of subfile content informations generates the corresponding file of second group of subfile content information;... according to lattice
The requirement header line of formula template uses template A01, and detail, which is exercised, uses template B05, and summary row uses template C03 and the tenth group
The corresponding file content of subfile content information generates the tenth group of corresponding file of subfile content information.Later, according to this ten
The corresponding file of group subfile content information, generates file to be generated.
In order to further improve file generated efficiency, a kind of preferred embodiment is to obtain M group Ziwen from data source
The corresponding file content of every group of subfile content information in part content information, specifically includes:
Every group of son is obtained in parallel slave M group subfile content information in the corresponding data source of every group of subfile content information
The corresponding file content of document content information, obtains the file content of file to be generated;It is parallel by M group subfile content information
In the corresponding file content of every group of subfile content information handled according to format module, it is consistent with format module to obtain format
M group subfile content information in the corresponding file of every group of subfile content information.
It can be seen from the above: in the embodiment of the present invention, obtaining the format template information and file of file to be generated
Content information;Wherein, format template information includes the mark of N number of subtemplate, and N is positive integer;According to the mark of N number of subtemplate,
It determines N number of subtemplate, and combines N number of subtemplate, obtain the format module of file to be generated;According to document content information,
The file content of file to be generated is obtained from data source;File content is handled according to format module, obtains format dative
The consistent file to be generated of formula template.Due to when needing to generate to be generated file of the format as format module, Yong Huke
The corresponding subtemplate in each of the file to be generated part is flexibly selected, by by the corresponding submodule board group of multiple portions
It closes, obtains the format module of file to be generated.If the format of certain a part of file to be generated has subtle variation, only change should
The corresponding subtemplate in the part that file to be generated changes is generating format in the prior art in this way, then avoiding
File when need to develop the mode of a whole set of format module, improve file generated efficiency, and without changing system file, improve
The stability of system.
Fig. 3 illustrates a kind of structural schematic diagram of file creating apparatus provided in an embodiment of the present invention.
Based on same idea, as shown in figure 3, the embodiment of the present invention provides a kind of file creating apparatus, including acquiring unit
301, determination unit 302, processing unit 303:
Acquiring unit, for obtaining the format template information and document content information of file to be generated;Wherein, format module
Information includes the mark of N number of subtemplate, and N is positive integer;
Determination unit determines N number of subtemplate for the mark according to N number of subtemplate, and combines N number of subtemplate, obtains
To the format module of file to be generated;According to document content information, the file content of file to be generated is obtained from data source;
It is consistent with format module to obtain format for handling file content according to format module for processing unit
File to be generated.
Preferably, file to be generated is made of N number of part, the format and a subtemplate of a part of file to be generated
Format it is consistent, the N section of file to be generated and N number of subtemplate correspond;
Determination unit is specifically used for:
The part of the file to be generated according to corresponding to subtemplate each in N number of subtemplate, combines N number of subtemplate.
Preferably, determination unit is specifically used for:
According to document content information, the data volume of the corresponding file content of document content information is determined;
If the data volume of the corresponding file content of document content information is greater than threshold value, according to document content information, M is generated
Group subfile content information;Wherein, the corresponding file content of any group of subfile content information is that document content information is corresponding
A part of file content, the corresponding file content of wantonly two groups of subfile content informations is different, M group subfile content information correspondence
File content file content corresponding with document content information it is identical;The corresponding file content of every group of subfile content information
Data volume is not more than threshold value, and M is positive integer;
The corresponding file content of every group of subfile content information in M group subfile content information is obtained from data source;
Processing unit is specifically used for:
The corresponding file content of every group of subfile content information in M group subfile content information is carried out according to format module
Processing, obtains format file corresponding with every group of subfile content information in the consistent M group subfile content information of format module;
By the corresponding file mergences of every group of subfile content information, file to be generated is obtained.
Preferably, determination unit is specifically used for:
Every group of son is obtained in parallel slave M group subfile content information in the corresponding data source of every group of subfile content information
The corresponding file content of document content information, obtains the file content of file to be generated;
Processing unit is specifically used for:
It is parallel by the corresponding file content of every group of subfile content information in M group subfile content information according to format mould
Plate is handled, and it is corresponding with every group of subfile content information in the consistent M group subfile content information of format module to obtain format
File.
Preferably, acquiring unit is specifically used for:
Obtain the configuration information of user;
According to preset rules, configuration information is handled, is obtained in the format template information and file of file to be generated
Hold information.
It can be seen from the above: in the embodiment of the present invention, obtaining the format template information and file of file to be generated
Content information;Wherein, format template information includes the mark of N number of subtemplate, and N is positive integer;According to the mark of N number of subtemplate,
It determines N number of subtemplate, and combines N number of subtemplate, obtain the format module of file to be generated;According to document content information,
The file content of file to be generated is obtained from data source;File content is handled according to format module, obtains format dative
The consistent file to be generated of formula template.Due to when needing to generate to be generated file of the format as format module, Yong Huke
The corresponding subtemplate in each of the file to be generated part is flexibly selected, by by the corresponding submodule board group of multiple portions
It closes, obtains the format module of file to be generated.If the format of certain a part of file to be generated has subtle variation, only change should
The corresponding subtemplate in the part that file to be generated changes is generating format in the prior art in this way, then avoiding
File when need to develop the mode of a whole set of format module, improve file generated efficiency, and without changing system file, improve
The stability of system.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method or computer program product.
Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the present invention
Form.It is deposited moreover, the present invention can be used to can be used in the computer that one or more wherein includes computer usable program code
The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (8)
1. a kind of document generating method, which comprises the following steps:
Obtain the format template information and document content information of file to be generated;Wherein, the format template information includes N number of son
The mark of template, N are positive integer;
According to the mark of N number of subtemplate, N number of subtemplate is determined, and combine N number of subtemplate, obtain institute
State the format module of file to be generated;
According to the document content information, the data volume of the corresponding file content of the document content information is determined;If the text
The data volume of the corresponding file content of part content information is greater than threshold value, then according to the document content information, generates M group subfile
Content information;Wherein, the corresponding file content of any group of subfile content information is the corresponding file of the document content information
A part of content, the corresponding file content of wantonly two groups of subfile content informations is different, the M group subfile content information correspondence
File content file content corresponding with the document content information it is identical;In the corresponding file of every group of subfile content information
The data volume of appearance is not more than the threshold value, and M is positive integer;Every group of son in the M group subfile content information is obtained from data source
The corresponding file content of document content information;
By the corresponding file content of every group of subfile content information in the M group subfile content information according to the format module
It is handled, obtains every group of subfile content in format and the consistent M group subfile content information of the format module and believe
Cease corresponding file;By the corresponding file mergences of every group of subfile content information, the file to be generated is obtained.
2. the method as described in claim 1, which is characterized in that the file to be generated is made of N number of part, described to be generated
The format of one part of file is consistent with the format of a subtemplate, the N section of the file to be generated and N number of subtemplate one
One is corresponding;
It is described to combine N number of subtemplate, it specifically includes:
The part of the file to be generated according to corresponding to subtemplate each in N number of subtemplate, by N number of submodule board group
It closes.
3. the method as described in claim 1, which is characterized in that described to obtain the M group subfile content information from data source
In the corresponding file content of every group of subfile content information, specifically include:
Parallel is sub from obtaining every group in the M group subfile content information in the corresponding data source of every group of subfile content information
The corresponding file content of document content information obtains the file content of the file to be generated;
It is described by the corresponding file content of every group of subfile content information in the M group subfile content information according to the format
Template is handled, and is obtained in format and the consistent M group subfile content information of the format module in every group of subfile
Hold the corresponding file of information, specifically include:
It is parallel by the corresponding file content of every group of subfile content information in the M group subfile content information according to the lattice
Formula template is handled, and every group of subfile in format and the consistent M group subfile content information of the format module is obtained
The corresponding file of content information.
4. the method as described in any claim in claims 1 to 3, which is characterized in that the acquisition file to be generated
Format template information and document content information, specifically include:
Obtain the configuration information of user;
According to preset rules, the configuration information is handled, obtains the format template information of the file to be generated
With the document content information.
5. a kind of file creating apparatus characterized by comprising
Acquiring unit, for obtaining the format template information and document content information of file to be generated;Wherein, the format module
Information includes the mark of N number of subtemplate, and N is positive integer;
Determination unit determines N number of subtemplate for the mark according to N number of subtemplate, and by N number of submodule
Board group is closed, and the format module of the file to be generated is obtained;According to the document content information, the document content information is determined
The data volume of corresponding file content;If the data volume of the corresponding file content of the document content information is greater than threshold value, root
According to the document content information, M group subfile content information is generated;Wherein, the corresponding file of any group of subfile content information
Content is a part of the corresponding file content of the document content information, in the corresponding file of wantonly two groups of subfile content informations
Hold different, the corresponding file content of M group subfile content information file content phase corresponding with the document content information
Together;The data volume of the corresponding file content of every group of subfile content information is not more than the threshold value, and M is positive integer;From data source
Obtain the corresponding file content of every group of subfile content information in the M group subfile content information;
Processing unit, for pressing the corresponding file content of every group of subfile content information in the M group subfile content information
It is handled, is obtained every in format and the consistent M group subfile content information of the format module according to the format module
The corresponding file of group subfile content information;By the corresponding file mergences of every group of subfile content information, obtain it is described to
Generate file.
6. device as claimed in claim 5, which is characterized in that the file to be generated is made of N number of part, described to be generated
The format of one part of file is consistent with the format of a subtemplate, the N section of the file to be generated and N number of subtemplate one
One is corresponding;
The determination unit, is specifically used for:
The part of the file to be generated according to corresponding to subtemplate each in N number of subtemplate, by N number of submodule board group
It closes.
7. device as claimed in claim 5, which is characterized in that the determination unit is specifically used for:
Parallel is sub from obtaining every group in the M group subfile content information in the corresponding data source of every group of subfile content information
The corresponding file content of document content information obtains the file content of the file to be generated;
The processing unit, is specifically used for:
It is parallel by the corresponding file content of every group of subfile content information in the M group subfile content information according to the lattice
Formula template is handled, and every group of subfile in format and the consistent M group subfile content information of the format module is obtained
The corresponding file of content information.
8. the device as described in any claim in claim 5 to 7, which is characterized in that the acquiring unit is specific to use
In:
Obtain the configuration information of user;
According to preset rules, the configuration information is handled, obtains the format template information of the file to be generated
With the document content information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510560993.2A CN105930323B (en) | 2015-09-06 | 2015-09-06 | A kind of document generating method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510560993.2A CN105930323B (en) | 2015-09-06 | 2015-09-06 | A kind of document generating method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105930323A CN105930323A (en) | 2016-09-07 |
CN105930323B true CN105930323B (en) | 2019-05-24 |
Family
ID=56839889
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510560993.2A Active CN105930323B (en) | 2015-09-06 | 2015-09-06 | A kind of document generating method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105930323B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107704479B (en) | 2017-02-08 | 2020-06-30 | 深圳壹账通智能科技有限公司 | File generation method and device |
CN110674628B (en) * | 2019-09-25 | 2023-08-22 | 中国工商银行股份有限公司 | File template generation method and system |
CN112434502B (en) * | 2020-11-04 | 2024-05-28 | 西安理工大学 | Method for automatically identifying CAD engineering drawing of bolt |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102819564A (en) * | 2012-07-05 | 2012-12-12 | 无锡中科泛在信息技术研发中心有限公司 | Method for generating report forms by limited table element combination |
CN104598635A (en) * | 2015-02-06 | 2015-05-06 | 无锡江南计算技术研究所 | Automatic complex document generating method based on XML (Extensive Markup Language) description |
-
2015
- 2015-09-06 CN CN201510560993.2A patent/CN105930323B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102819564A (en) * | 2012-07-05 | 2012-12-12 | 无锡中科泛在信息技术研发中心有限公司 | Method for generating report forms by limited table element combination |
CN104598635A (en) * | 2015-02-06 | 2015-05-06 | 无锡江南计算技术研究所 | Automatic complex document generating method based on XML (Extensive Markup Language) description |
Also Published As
Publication number | Publication date |
---|---|
CN105930323A (en) | 2016-09-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2022126971A1 (en) | Density-based text clustering method and apparatus, device, and storage medium | |
CN110032369A (en) | A kind of code automatic generation method, device and medium | |
CN108563796A (en) | Data compressing method, device and the electronic equipment of block chain | |
CN105930323B (en) | A kind of document generating method and device | |
CN107391527A (en) | A kind of data processing method and equipment based on block chain | |
CN104536987B (en) | A kind of method and device for inquiring about data | |
CN109800781A (en) | A kind of image processing method, device and computer readable storage medium | |
US10497067B2 (en) | System for perfoming an extraction process on input data containing XBRL files using a combination of extraction criteria | |
CN109522332A (en) | Customer profile data merging method, device, equipment and readable storage medium storing program for executing | |
CN109918658A (en) | A kind of method and system obtaining target vocabulary from text | |
CN103714086A (en) | Method and device used for generating non-relational data base module | |
CN108829884A (en) | data mapping method and device | |
CN109885614A (en) | A kind of method and apparatus that data are synchronous | |
CN109522013A (en) | A kind of code generating method and device of business function | |
CN108369584A (en) | Information processing system, function creation method and function creation program | |
CN112365202A (en) | Method for screening evaluation factors of multi-target object and related equipment thereof | |
CN108304483A (en) | A kind of Web page classification method, device and equipment | |
CN110377576A (en) | Create method and apparatus, the log analysis method of log template | |
CN104778252B (en) | The storage method and device of index | |
JP2019204246A (en) | Learning data creation method and learning data creation device | |
CN111628974A (en) | Differential privacy protection method and device, electronic equipment and storage medium | |
CN108874297A (en) | Merge method, storage device, storage equipment and the storage medium of file | |
CN106649210A (en) | Data conversion method and device | |
CN107426610A (en) | Video information synchronous method and device | |
CN109446268A (en) | A kind of method of data synchronization and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |