CN104750714A - File generation system and method - Google Patents

File generation system and method Download PDF

Info

Publication number
CN104750714A
CN104750714A CN201310741307.2A CN201310741307A CN104750714A CN 104750714 A CN104750714 A CN 104750714A CN 201310741307 A CN201310741307 A CN 201310741307A CN 104750714 A CN104750714 A CN 104750714A
Authority
CN
China
Prior art keywords
data
file
generated
module
needed
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
CN201310741307.2A
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.)
China Unionpay Co Ltd
Original Assignee
China Unionpay 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 China Unionpay Co Ltd filed Critical China Unionpay Co Ltd
Priority to CN201310741307.2A priority Critical patent/CN104750714A/en
Publication of CN104750714A publication Critical patent/CN104750714A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a file generation system. The file generation system comprises a data reading module, a data combination module, a view library and a control module, wherein the data reading module is used for reading data related to a file to be generated from a data source and generating intermediate data on this basis, the data combination module is used for processing the intermediate data so as to obtain data required for the file to be generated, the view library is used for storing a plurality of view template data, and the control module is used for obtaining the required view template data from a database and combining the required view template data with the data obtained through the data combination module so that the file can be generated. The invention further provides a corresponding file generation method. When the file generation system is adopted for the file generation method is executed, reusability and expandability of the related system are improved.

Description

Filing system and method
Technical field
The present invention relates to data processing, particularly relate to the technology based on data genaration file.
Background technology
In the prior art, the generation of file report is generally be loaded into by file system and analyze mass data, is then organized into certain form, last spanned file form.Concrete implementation has two kinds substantially, and a kind of read-write being system coding mode and realizing file, another kind selects commercial reporting system.First kind of way needs to realize each file report demand direct coding, and execution efficiency is higher, but the system expandability is poor, and maintenance cost is high, easily makes mistakes.Although the second way has higher intelligent, development efficiency is higher, but commercial reporting system is mostly based on database access, the data source for other type needs bespoke program extraction data, and the file report being therefore not suitable for doing large-scale data generates.
Summary of the invention
In view of this, the invention provides a kind of filing system, it comprises data read module, data combination module, view storehouse and control module.Wherein, data read module is used for reading the data relevant with file to be generated from data source, and generates intermediate data accordingly; Data combination module for the treatment of described intermediate data to obtain the data needed for file to be generated; View storehouse is for storing multiple view template data; Control module is used for from database, obtain required view template data, and the data that itself and this data combination module obtain is combined, thus spanned file.
Preferably, in described filing system, described data read module comprises different reads unit, and each unit of reading at least identifies a kind of data source and reads data from this data source.
Preferably, in described filing system, described data read module also comprises intermediate data generation unit, for converting each data reading unit reading to obtain data for described data combination module intermediate data.
Preferably, in described filing system, described data combination module based on intermediate data described in preset algorithm process to obtain the data needed for file to be generated.
Preferably, in described filing system, described view template data are form class template, and in the case, described control module is used for the data that the view template data obtained from database and this data combination module obtain to combine with generating report forms file.
According to example of the present invention, a kind of document generating method is also provided, comprise and read the data relevant with file to be generated from data source, according to the data genaration intermediate data read, process described intermediate data to obtain the data needed for file to be generated, view template data needed for obtaining from view storehouse, and obtained view template data are combined with the data needed for obtained file to be generated, thus spanned file.
Preferably, in described document generating method, the described intermediate data of described process comprises with the data obtained needed for file to be generated: based on intermediate data described in preset algorithm process to obtain the data needed for file to be generated.
Preferably, in described document generating method, described view template data are form class template, in the case, described obtained view template data to be combined with the data needed for obtained file to be generated, thus spanned file comprises: the data that the view template data obtained from database and this data combination module obtain are combined with generating report forms file.
Accompanying drawing explanation
Fig. 1 is the structural representation of the filing system according to example of the present invention.
Fig. 2 is process flow diagram, illustrates according to document generating method of the present invention.
Embodiment
Describe schematic example of the present invention referring now to accompanying drawing, identical drawing reference numeral represents identical element.Each embodiment described below contributes to those skilled in the art and thoroughly understands the present invention, and is intended to example and unrestricted.Unless otherwise defined, the term (comprising science, technology and industry slang) used in literary composition has the implication identical with the implication that those skilled in the art in the invention generally understand.
Fig. 1 is the structural representation of the filing system according to example of the present invention.As shown in the figure, this filing system comprises data read module 10, data combination module 12, view storehouse 14 and control module 16.Data read module 10 reads the data relevant with file to be generated from data source, and generates intermediate data accordingly.According to file to be generated, data read module 10 only may read data from a file, also may read the type possibility difference of data and the plurality of file from multiple file.Data read module 10 after reading the data relevant with file to be generated from one or more file, carry out rough handling, namely, extract and the more closely-related data of file to be generated further from obtained data, and by obtained be intermediate data with the more closely-related data genaration of file to be generated, the type of this intermediate data is configurable, as long as can by the data combination module identification in this filing system.Data combination module 12 processing middle data is to obtain the data needed for file to be generated.Such as, data combination module 12 based on preset algorithm processing middle data to obtain the data needed for final spanned file.Preset algorithm is pre-configured to this filing system by operator, data combination module 12 based on the data required for the known spanned file of this preset algorithm, thus from intermediate data obtain required for data.View storehouse 14 stores multiple view template data.Control module 16 obtains required view template data from database, and the data that itself and this data combination module obtain is combined, thus spanned file.
According to example of the present invention, data read module 10 comprises different reads unit, and each unit of reading at least identifies a class data source and can read data from such data source.Such as, identifiable design and can read data in database read unit, identifiable design and can read data in word file read unit etc.Data read module 10 also comprises intermediate data generation unit, and this intermediate data generation unit is used for the data that each unit reads being converted to the intermediate data obtaining data for data combination module 12.The different data types reading unit reading may be not quite similar, and not necessarily can be identified by data combination module 12, and therefore, arrange intermediate data generation unit, the data of reading being converted to by it can by the type of data combination module 12.In addition, as mentioned above, data read module 10 also can carry out rough handling to the data read, and this rough handling was also performed before changing by intermediate data generation unit.
According to example of the present invention, view template data are form class template class, and according to more specifically relevant with financial business process example, these form class template data comprise the first kind viewdata describing chronological file form and the Equations of The Second Kind viewdata describing report file form.In the case, the data that the view template data obtained from database and this data combination module obtain combine with generating report forms file by control module 16.
Filing system described herein not only by software simulating, also by hardware implementing, also can can be realized by both combinations.The filing system realized not only can be loaded in server end, also can be loaded in the electronic products such as portable computer and smart mobile phone such as Desktop PC, such as panel computer.Thus, view storehouse can be arranged in the storer of this electronic product, also can be arranged in other storer.Exemplarily, described filing system can be applicable in electronic trading system, or can obtain in the system or equipment of data from electronic trading system.
Hereafter for file to be generated for credit appraisal class file describes this filing system, and the setting being loaded with this filing system can obtain data from the electronic trading system of such as Unionpay's payment system.Data read module 10 reads the credit information of Zhang San from credit flowing water storehouse, read the personal information of Zhang San from the personal information file relevant with Zhang San.After the data source different from these two kinds, credit flowing water storehouse and personal information file have read the data relevant with file to be generated, data read module 10 filters out required information further from the data of all readings, from credit information, such as screen the data such as card release transaction, refund information, the related datas such as phone, addresses of items of mail, ID (identity number) card No. are selected from personal information, and selected data are converted to the data that can be identified by data combination module 12, that is intermediate data.Wherein, reading unit identification signal flowing water storehouse and therefrom reading the credit information of Zhang San by reading database, also therefrom read the personal information of Zhang San by the personal information file reading unit identification Zhang San reading word document, intermediate data generation unit filters out required information further and selected data is converted to the discernible intermediate data of data combination module 12.Data combination module 12 is based on preset algorithm, and the algorithm for assessment of personal credit specifically preset carries out calculating according to this intermediate data and assesses, the final data needed for credit appraisal file obtaining Zhang San to be generated.Control module 16 recalls the form class template data of such as evaluating file relevant with credit appraisal file from view storehouse 14, and the data generated by data combination module 12 combine with this template data, thus produce the form class file of the credit appraisal for Zhang San.
Compared with the file generated mode of routine, filing system according to the present invention, by the reading of file data and process, separates with data template and steering logic three, improves reusability and the extensibility of this file system.
Fig. 2 is the process flow diagram of the document generating method according to another example of the present invention.As shown in the figure, in step 200, read the data relevant with file to be generated from data source.Data source may be a file also may be multiple file, and the type of the plurality of file may be different.
In step 202, according to the data genaration intermediate data read.Extract and the more closely-related data of file to be generated further from the data read, and by obtained be intermediate data with the more closely-related data genaration of file to be generated.
In step 204, process described intermediate data to obtain the data needed for file to be generated.Can based on preset algorithm to the process of intermediate data, preset algorithm is by the pre-configured system or equipment to performing this document generating method of operator, this system or equipment can know data required for final spanned file based on this preset algorithm, obtains the data needed thus from intermediate data.
In step 206, the view template data needed for obtaining from view storehouse.Multiple view template data are stored in view storehouse.According to an example of the present invention, these view template data are form class template.
In step 208, obtained view template data are combined with the data needed for the generation file to be generated obtained from intermediate data, thus spanned file.When view template data are form class template data, obtained view template data are combined with the form class template data needed for the generation file to be generated obtained from intermediate data, thus generating report forms file.
Can perform in the electronic products such as portable computer and smart mobile phone such as Desktop PC, such as panel computer according to document generating method of the present invention.And this document generating method can be applicable in electronic trading system, or be applied in and can obtain in the system or equipment of data from electronic trading system.
For generating credit appraisal class file, this document generating method is described in being hereafter applied in as shown in Figure 1 filing system for this document generating method.
In step 200, read the data relevant with file to be generated by data read module 10 from data source.Specifically, read the credit information of Zhang San by data read module 10 from credit flowing water storehouse, from the personal information file relevant with Zhang San, read the personal information of Zhang San.
In step 202, by data read module 10 according to read data genaration intermediate data, specifically, after the data source different from these two kinds, credit flowing water storehouse and personal information file have read the data relevant with file to be generated, data read module 10 filters out required information further from the data of all readings, from credit information, such as screen card release transaction, the data such as refund information, phone is selected from personal information, addresses of items of mail, the related datas such as ID (identity number) card No., and selected data are converted to the data that can be identified by data combination module 12, that is intermediate data.More particularly, also therefrom read the personal information of Zhang San by the personal information file reading unit identification Zhang San reading word document, intermediate data generation unit filters out required information further and selected data is converted to the discernible intermediate data of data combination module 12.
In step 204, process described intermediate data to obtain the data needed for file to be generated by data combination module 12.Specifically, data combination module 12 is based on preset algorithm, and the algorithm for assessment of personal credit specifically preset carries out calculating according to this intermediate data and assesses, the final data needed for credit appraisal file obtaining Zhang San to be generated.
In step 206, obtain required view template data by control module 16 from view storehouse 14.Specifically, control module 16 recalls the form class template data of such as evaluating file relevant with credit appraisal file from view storehouse 14,
In step 208, obtained view template data combine with the data needed for the generation file to be generated obtained from intermediate data by control module 16, thus spanned file, specifically, the data that obtained view template data and data combination module 12 generate combine by control module 16, thus produce the form class file of the credit appraisal for Zhang San.
Perform this document generating method of the present invention or adopt filing system of the present invention, by view template data and reading, process data separate management needed for file to be generated, improve the convenience of exploitation, be also conducive to processing large-scale source data simultaneously and read.In addition, according to technical scheme of the present invention, filing system and adopt the equipment of this document generating method and system to be all easy to expand and safeguard.

Claims (8)

1. a filing system, is characterized in that, described system comprises:
Data read module, for reading the data relevant with file to be generated from data source, and generates intermediate data accordingly;
Data combination module, for the treatment of described intermediate data to obtain the data needed for file to be generated;
View storehouse, for storing multiple view template data;
The data that itself and this data combination module obtain for obtaining required view template data from database, and are combined by control module, thus spanned file.
2. filing system as claimed in claim 1, is characterized in that, described data read module comprises different reads unit, and each unit of reading at least identifies a class data source and can read data from such data source.
3. filing system as claimed in claim 2, it is characterized in that, described data read module also comprises intermediate data generation unit, for converting each data reading unit reading to obtain data for described data combination module intermediate data.
4. filing system as claimed in claim 1, is characterized in that, described data combination module based on intermediate data described in preset algorithm process to obtain the data needed for file to be generated.
5. filing system as claimed in claim 1, it is characterized in that, described view template data are form class template data, in the case, described control module is used for the data that the view template data obtained from database and this data combination module obtain to combine with generating report forms file.
6. a document generating method, is characterized in that, described method comprises:
The data relevant with file to be generated are read from data source;
According to the data genaration intermediate data read;
Process described intermediate data to obtain the data needed for file to be generated;
View template data needed for obtaining from view storehouse;
Obtained view template data are combined with the data needed for obtained file to be generated, thus spanned file.
7. document generating method as claimed in claim 6, it is characterized in that, the described intermediate data of described process comprises with the data obtained needed for file to be generated: based on intermediate data described in preset algorithm process to obtain the data needed for file to be generated.
8. document generating method as claimed in claim 6, it is characterized in that, described view template data are form class template, in the case, described obtained view template data to be combined with the data needed for obtained file to be generated, thus spanned file comprises: the data that the view template data obtained from database and this data combination module obtain are combined with generating report forms file.
CN201310741307.2A 2013-12-30 2013-12-30 File generation system and method Pending CN104750714A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310741307.2A CN104750714A (en) 2013-12-30 2013-12-30 File generation system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310741307.2A CN104750714A (en) 2013-12-30 2013-12-30 File generation system and method

Publications (1)

Publication Number Publication Date
CN104750714A true CN104750714A (en) 2015-07-01

Family

ID=53590415

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310741307.2A Pending CN104750714A (en) 2013-12-30 2013-12-30 File generation system and method

Country Status (1)

Country Link
CN (1) CN104750714A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105389295A (en) * 2015-09-30 2016-03-09 金邦达有限公司 Data processing method and system for card personalization
CN107844464A (en) * 2017-11-08 2018-03-27 中国科学院、水利部成都山地灾害与环境研究所 Filing system and method based on data insertion

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7139686B1 (en) * 2000-03-03 2006-11-21 The Mathworks, Inc. Report generator for a mathematical computing environment
CN101308490A (en) * 2008-04-28 2008-11-19 北京航空航天大学 Dynamic report generation method and platform
US7624053B1 (en) * 2002-11-26 2009-11-24 Intuit Inc. Exportable report templates
CN101887553A (en) * 2010-08-12 2010-11-17 深圳市五巨科技有限公司 Automatic data settlement processing method and system
CN102810094A (en) * 2011-05-31 2012-12-05 中兴通讯股份有限公司 Report generation method and device
CN103345484A (en) * 2013-06-21 2013-10-09 中国工商银行股份有限公司 Report form processing system based on dynamic domain and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7139686B1 (en) * 2000-03-03 2006-11-21 The Mathworks, Inc. Report generator for a mathematical computing environment
US7624053B1 (en) * 2002-11-26 2009-11-24 Intuit Inc. Exportable report templates
CN101308490A (en) * 2008-04-28 2008-11-19 北京航空航天大学 Dynamic report generation method and platform
CN101887553A (en) * 2010-08-12 2010-11-17 深圳市五巨科技有限公司 Automatic data settlement processing method and system
CN102810094A (en) * 2011-05-31 2012-12-05 中兴通讯股份有限公司 Report generation method and device
CN103345484A (en) * 2013-06-21 2013-10-09 中国工商银行股份有限公司 Report form processing system based on dynamic domain and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105389295A (en) * 2015-09-30 2016-03-09 金邦达有限公司 Data processing method and system for card personalization
CN107844464A (en) * 2017-11-08 2018-03-27 中国科学院、水利部成都山地灾害与环境研究所 Filing system and method based on data insertion

Similar Documents

Publication Publication Date Title
CN105512890A (en) Method and system for generating accounting voucher
CN105488415B (en) The method and apparatus of scanning system process
CN111562965A (en) Page data verification method and device based on decision tree
CN105302730A (en) Calculation model detection method, testing server and service platform
CN103500224A (en) Data writing method and device and data reading method and device
CN114979120A (en) Data uploading method, device, equipment and storage medium
CN102521551B (en) Personalized IC (integrated circuit) card issuing device and method
CN111159183A (en) Report generation method, electronic device and computer readable storage medium
CN104750714A (en) File generation system and method
CN101710347A (en) Method and device for processing data in data table
CN103440197A (en) Automatic difference test report generating method based on comparison test
US9934287B1 (en) Systems and methods for expedited large file processing
CN106708869B (en) Group data processing method and device
CN111985194A (en) Data storage method and device, electronic equipment and storage medium
CN104298570A (en) Data processing method and device
CN116775575A (en) File merging method and device, electronic equipment and storage medium
CN103778247A (en) Data apportion method, device and equipment
CN112328641B (en) Multi-dimensional data aggregation method and device and computer equipment
CN109472724A (en) Automatic generation method and system, the electronic equipment of charging document
CN114911479A (en) Interface generation method, device, equipment and storage medium based on configuration
CN112541645A (en) Data processing method and system along with vehicle product project development and related device
CN108062325A (en) Comparative approach and comparison system
CN106909570B (en) Data conversion method and device
CN104951467A (en) Statistical method and device
CN105389295A (en) Data processing method and system for card personalization

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: 20150701

RJ01 Rejection of invention patent application after publication