System-type resident family economic condition checking report generation method
Technical Field
The invention relates to the technical field of civil informatization, in particular to a system-type resident family economic condition checking report generating method.
Background
Social aid is an important component of a social security system, and bears the important roles of guaranteeing the bottom line of the livelihood, promoting social fairness and maintaining social stability. The method for checking and identifying the family economic condition of the help application is a mode for accurately evaluating the family economic condition of the help application according to the conditions of family income, property and the like declared by the social help application applicant, submitting a checking organization and checking the family income application and the economic condition of vehicles, real estate, financial assets and the like, and is a precondition and basis for realizing accurate help. The checking report is a final output product for summarizing and applying for rescuing family income and economic conditions such as vehicles, real estate and financial assets, and provides an important reference for auditing and approving social rescue. The following were used:
TABLE 1 economic status check content table
As shown in the table, the domestic economic status check report needs to show more than 300 data items of more than 10 committees, the data items related to the committees are updated gradually, and the data items which can be obtained are updated gradually, so that the check report has three main characteristics: the data content is more, the dictionary mapping is more, and the data item change is fast. In addition, since a verification report is required to be non-tamper-proof as a data reference to be issued to a social aid unit, there is a certain requirement for a file format.
In order to standardize the generation format of the household economic condition checking report of residents and reduce the development amount of front-end codes caused by modifying data items, the invention provides a system type household economic condition checking report generation method.
Disclosure of Invention
In order to make up for the defects of the prior art, the invention provides a simple and efficient system-type residential family economic condition checking report generating method.
The invention is realized by the following technical scheme:
a system type resident family economic condition checking report generation method is characterized by comprising the following steps: firstly, automatically generating PDF on a server side based on data configuration by using an iText component and an sftp protocol and uploading the PDF to a file server; then, a hyperlink is downloaded at the client to form a check report for acquiring the household economic condition of the residents;
the method specifically comprises four steps of basic configuration, generation of a check report, uploading of the check report and downloading of the check report.
The basic configuration step comprises two parts of checking item configuration and data content configuration of each item display;
the check item configuration refers to configuration of check items to be displayed in the check report, and comprises item names, item codes, whether to display, the number of columns and sequence numbers used for displaying, and the configuration name is BODY _ CONFIG;
the configuration of the content of each item display data refers to the configuration of the display content of each check item in the check report, and the configuration comprises a data name, an item code, a data dictionary, a data content expression, whether to display, the number of columns used for displaying and a sequence number, wherein the configuration name is DETAIL _ CONFIG.
The verification report generation step comprises two parts of file creation and verification content output;
the file creation refers to creating a pdf file by using an iText component;
the check content output refers to respectively creating and acquiring a check item and data content, and then respectively creating a check item table (table) and a data content field (cell) by using an iText component.
When creating the file, the pdf file is created by using the com.
When the content is checked and output, firstly, a common method queryDisplayItem and a queryDisplayColumn are used for respectively creating and acquiring a check item and data content, and then, a check item table (table) and a data content field (cell) are respectively created by using the classes of com.
In the checking report uploading step, the checking report is uploaded to a file server by an application server through an SFTP protocol, and the file name and the file path are stored in a mechanization database.
The file name format is formed by 24 characters, and the 24 characters sequentially comprise eight layers from front to back:
wherein, the checking report number must begin with the 'first', so the first layer includes 2 characters, which are the fixed character 'first';
the second layer is an administrative division code, and the administrative division code of the checking organization location with the checking report is required to be taken out and comprises 6 characters;
the third layer is a year code, and 4 complete codes including 4 characters in the gregorian calendar year of the time of the check report are required to be taken;
the fourth layer is serial numbers, serial numbers are sequentially generated in the order of issuing check reports in a gregorian calendar year, and the serial numbers are 1 month and 1 day every year and are 0: 00 restarts at 0000001, comprising 7 characters;
the fifth layer is a service identifier, marks the check item type to which the check report belongs, comprises 1 character and has a value range of a-z;
the sixth layer is a property identifier for marking the property of the checking report, comprises 1 character and consists of 1-digit English letters;
the property identifier includes F, S, and T, wherein:
f represents a check report issued for the first time to a check family;
s represents that after dispute occurs in the check report, the check report is rechecked aiming at a check family issue;
t represents a second rechecking check report issued by a checking family after the rechecking check report disputes again;
the seventh layer is a copy identifier which comprises 1 character, if one checking family provides a plurality of checking reports, the running codes are sequentially generated according to the providing sequence; wherein:
numeral 1 represents a check report of a family;
numerals 2 to 9 represent a plurality of check reports for one family;
since the collation report number is terminated with a "number", the eighth layer is a fixed character "number" including 1 character.
In the step of downloading the check report, a severlet service downloaded by the check report is firstly established, access authority control is carried out, and a check report downloading end acquires data from a server end, namely a copy of a file stored in a file server is downloaded to a client.
The invention has the beneficial effects that: according to the standard type resident family economic condition checking report generation method, aiming at the characteristics of multiple displayed contents, multiple dictionaries and quick change of the checking report, the checking report can be automatically generated at the background of the server through one-time configuration of the database based on iText components and database configuration, the development amount of front-end codes caused by data item modification is reduced, and the checking work 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 introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic diagram of arrangement rules of file name format characters according to the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the embodiment of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the 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.
Firstly, by using an iText component and an sftp protocol, automatically generating PDF on a server side based on data configuration and uploading the PDF to a file server; then, a hyperlink is downloaded at the client to form a check report for acquiring the household economic condition of the residents;
the method specifically comprises four steps of basic configuration, generation of a check report, uploading of the check report and downloading of the check report.
The basic configuration step comprises two parts of checking item configuration and data content configuration of each item display;
the check item configuration refers to configuration of check items to be displayed in the check report, and comprises item names, item codes, whether to display, the number of columns and sequence numbers used for displaying, and the configuration name is BODY _ CONFIG; the concrete configuration is as follows:
table 2 collation item configuration example
The configuration of the content of each item display data refers to the configuration of the display content of each check item in the check report, and the configuration comprises a data name, an item code, a data dictionary, a data content expression, whether to display, the number of columns used for displaying and a sequence number, wherein the configuration name is DETAIL _ CONFIG. The specific configuration of the data content of each project presentation is as follows:
table 3 items show data content configuration examples
Taking table 4 as an example, if check items shown in the following format are configured, then "BODY _ config. item name is" fair fund ", and BODY _ config. display used column is" 4 ". The default number of columns for display of the remaining fields is 1, but since the data content of the name of the payment unit is relatively long, "number of columns for display of detach _ config" may be 3 ".
Table 4 accumulation fund presentation data content configuration example
The verification report generation step comprises two parts of file creation and verification content output;
the file creation refers to creating a pdf file by using an iText component;
the check content output refers to respectively creating and acquiring a check item and data content, and then respectively creating a check item table (table) and a data content field (cell) by using an iText component.
When creating the file, the pdf file is created by using the com.
When the content is checked and output, firstly, a common method queryDisplayItem and a queryDisplayColumn are used for respectively creating and acquiring a check item and data content, and then, a check item table (table) and a data content field (cell) are respectively created by using the classes of com.
In the checking report uploading step, the checking report is uploaded to a file server by an application server through an SFTP protocol, and the file name and the file path are stored in a mechanization database.
The file name format is formed by 24 characters, and the 24 characters sequentially comprise eight layers from front to back:
wherein, the checking report number must begin with the 'first', so the first layer includes 2 characters, which are the fixed character 'first';
the second layer is an administrative division code, and the administrative division code of the checking organization location with the checking report is required to be taken out and comprises 6 characters;
the third layer is a year code, and 4 complete codes including 4 characters in the gregorian calendar year of the time of the check report are required to be taken;
the fourth layer is serial numbers, serial numbers are sequentially generated in the order of issuing check reports in a gregorian calendar year, and the serial numbers are 1 month and 1 day every year and are 0: 00 restarts at 0000001, comprising 7 characters;
the fifth layer is a service identifier, marks the check item type to which the check report belongs, comprises 1 character and has a value range of a-z;
the sixth layer is a property identifier for marking the property of the checking report, comprises 1 character and consists of 1-digit English letters;
the property identifier includes F, S, and T, wherein:
f represents a check report issued for the first time to a check family;
s represents that after dispute occurs in the check report, the check report is rechecked aiming at a check family issue;
t represents a second rechecking check report issued by a checking family after the rechecking check report disputes again;
the seventh layer is a copy identifier which comprises 1 character, if one checking family provides a plurality of checking reports, the running codes are sequentially generated according to the providing sequence; wherein:
numeral 1 represents a check report of a family;
numerals 2 to 9 represent a plurality of check reports for one family;
since the collation report number is terminated with a "number", the eighth layer is a fixed character "number" including 1 character.
In the step of downloading the check report, a severlet service downloaded by the check report is firstly established, access authority control is carried out, and a check report downloading end acquires data from a server end, namely a copy of a file stored in a file server is downloaded to a client.
The standard resident family economic condition checking report generating method can be in seamless butt joint with an original resident family economic condition checking system, and can be released into independent web service after being matched with data management.
The above-described embodiment is only one specific embodiment of the present invention, and general changes and substitutions by those skilled in the art within the technical scope of the present invention are included in the protection scope of the present invention.