Tax return environment batch management method and system
Technical Field
The invention relates to the technical field of cloud account information, in particular to a tax return environment batch management system.
Background
With the development of science and technology, the tax return management has new qualitative leaps, and the present tax return usually uses a cloud platform to return tax to perform work management processing, and the existing tax return environment adopts a mode of cloning a tax return environment template to perform deployment update of the environment. The environment template is a deployed virtual machine meeting the use requirement of the region, the templates of each region are stored at the designated addresses and updated when the environment needs to be changed, the first installation environment of an implementer can obtain the templates from the corresponding addresses to clone the virtual machine, and the cloned environment is the environment used for tax return.
However, when there are settings in a certain area to be modified or software to be installed, there are two alternatives for the existing foundation: firstly, deleting the original environment, and re-taking the template for cloning; and secondly, manually configuring each environment. The two modes have the defects respectively, and the mode of re-cloning the template by adopting the method consumes a great amount of time to download and copy due to the overlarge file; in addition, when a large amount of repeated operations are performed, modification errors or omission of a certain client environment is unavoidable, after the environments are recloned, original data such as data stored in the environments by users or historical records generated by software operation are migrated, limitations are caused in reinstallation of the environments, and after the environments are reinstalled, the original data are difficult to find out and migrate completely, and meanwhile, when the data are too large, the conditions of long time consumption, manpower waste, incomplete data migration, errors or data loss are generated easily are generated, and risks exist in data migration.
Disclosure of Invention
The invention aims to solve the defects in the prior art and provides a tax return environment batch management method and system.
In order to achieve the above purpose, the invention adopts the following technical scheme:
the tax return environment batch management system comprises a data total system end and a tax return client end, wherein the data total system end is in data connection with the tax return client end, the data total system end comprises a modification input end, a recording module, a storage module, an environment data total library, a processing module and a sending module, the modification input end is in data connection with the environment data total library, and the modification input end is used for manually modifying changed parameter data, namely a manual modification configuration file and a batch processing script, in the environment data total library when the environment data changes; the environment data total library is used for storing all environment data parameters; the recording module is in data connection with the modification input end and is used for recording changed data parameters; the recording module is in data connection with the storage module, and the storage module is used for storing the changed data parameters and storing the changed environment data database; the invention aims to solve the problems of environment need to change configuration, new software installation and the like, and aims to simplify the step of installing the software so that a user can finish the updating of a system by himself according to instructions at the user side, does not need to delete data for recloning or manually operate all user environments, does not need data migration, directly solves the time-consuming and labor-consuming repeated operation, does not need data migration and also avoids errors and omission generated when a large amount of repeated operations are performed.
As an optimization, the processing module is configured to make the configured read analysis execution flow into an executable exe file and transmit the executable exe file to the sending module, the exe file made by the processing module is an environment batch management program, the environment batch management program (except for the exe file) includes a modified configuration file and a batch processing script, the environment batch management program can be used as a component of the tax return client, and the sending module is in data connection with the tax return client.
As optimization, the tax return client comprises a display screen, a receiving module and a system automatic updating module, wherein the display screen is used for displaying information on the screen in the forms of text, figures and figures, the receiving module is in data connection with a sending module of the data total system end and is used for receiving the modified configuration files and batch processing scripts, the receiving module is in data connection with the system automatic updating module, and the system automatic updating module automatically performs system updating after the tax return client receives new data.
As optimization, the tax return client further comprises a management module, a reading analysis module and a client environment database, wherein the receiving module is in data connection with the management module, the management module is used for recording, storing and analyzing received data and sending the data to the reading analysis module for analysis, the management module is in data connection with the reading analysis module, the client environment database is in data connection with the reading analysis module, the reading analysis module is used for reading configuration files and analysis configuration files, the client environment database is used for storing all environment configuration parameters of the tax return client, the client environment database comprises a registry, and the reading analysis module reads the environment province capability of the client through the registry of the client environment database.
As optimization, the tax return client further comprises a judging module, an executing module and a terminating module, the reading analysis module is in data connection with the judging module, the client environment database is in data connection with the judging module, the judging module is used for judging whether the province needs to be configured and updated or not, the judging module is selectively connected with the executing module, the judging module judges that an executing instruction is sent to the executing module when the client needs to be configured and updated, the executing module executes the received modified batch processing script, and the judging module judges that the client does not need to be updated and sends the terminating instruction to the terminating module to terminate the process.
As optimization, the tax return client also comprises an alarm module and an inspection module, the execution module is in data connection with the inspection module, the inspection module is used for inspecting whether the execution module finishes running of batch processing scripts, the inspection module is selectively connected with the termination module, the inspection module is selectively connected with the alarm module, the inspection module confirms that the execution module sends a termination instruction to the termination module to finish configuration updating after finishing running of the batch processing scripts, the inspection module sends information to the alarm module after finding that the execution module does not finish running of batch scripts, the alarm module is in data connection with a display screen, the alarm module generates alarm information and displays an alarm through the display screen, and the alarm module and the termination module are in data connection to finish the process.
As optimization, the tax return client also comprises an instruction input end, wherein the instruction input end is directly connected with the display screen, the instruction input end manually and directly confirms the running of the re-execution batch script after the display screen displays the execution error alarm, the execution module is in data connection with the management module, and the management module sends the re-execution script running instruction to the execution module.
As optimization, the batch script is a program call script install. Bat, the batch script is used for realizing the purpose of batch operation management of the tax return environment, and batch operation of the whole provincial environment can be realized through VMupdate. Exe analysis configuration file yzfEnvUpdater. Xml and operation of executing the install. Bat batch script, wherein the operation comprises software installation, software unloading, file copy deletion and registry modification.
The invention also provides a tax return environment batch management method, which uses a cloud platform tax return client to carry a tax return environment batch management technology, makes an environment batch management program into an executable exe file to be used as a component of the tax return client, and calls the environment batch management program when the client is updated successfully every time, and the program judges whether to execute operation or not by reading the configuration file without automatic closing; if the operation is needed, the batch processing file is called to automatically operate the tax return environment; finally, the effect of realizing the automatic upgrading of the environment by modifying the configuration file and the batch script is achieved.
The invention relates to a tax return environment batch management method which comprises a manual operation stage and an automatic execution stage; the manual operation stage comprises the following steps:
s1: starting;
s2: a certain provincial environment modification requirement exists;
s3: modifying the configuration file and the batch script;
s4: submitting the modification to the product line through the SVN;
s5: waiting for the tax return client to issue automatic update;
s6: ending;
the automatic execution phase comprises the following steps:
s1: the tax return client is updated successfully;
s2: the environment management program operates;
s3: reading a configuration file and analyzing the configuration file;
s4: reading the environmental province capability from the registry;
s5: judging whether the province needs to be operated according to the configuration file, if so, ending; if YES, executing step S6;
s6: performing an install. The instal.bat is a script for program call, and the functions to be realized are written in the instal.bat to realize the final functions;
s7: waiting for an execution result, if no result exists, reporting an error to remind a user to retry until the end; if YES, executing step S8;
s8: and (5) ending.
Compared with the prior art, the invention has the beneficial effects that: the invention aims to solve the problems that the environment needs to be changed and new software is installed and the like, and aims to simplify the step of installing the software, so that a user can finish the updating of a system by himself according to instructions at the user side, delete data for reclonization or manually operate all user environments, data migration is not needed, the time-consuming and labor-consuming repeated operation is directly solved, the data migration is not needed, errors and omission caused when a large amount of repeated operations are performed are avoided.
Drawings
FIG. 1 is a system block diagram of a tax return environment batch management system of the present invention;
FIG. 2 is a diagram of the manual operation steps;
FIG. 3 is a diagram of the working steps of the automatic execution phase;
FIG. 4 is a diagram of a product architecture of the tax return environment batch management system of the present invention;
FIG. 5 is a view of the yzfEnvUpdater.xml configuration file resolution. .
Detailed Description
For a further understanding of the objects, construction, features, and functions of the invention, reference should be made to the following detailed description of the preferred embodiments.
Example 1: as shown in fig. 1, the tax return environment batch management system comprises a data total system end and a tax return client end, wherein the data total system end is in data connection with the tax return client end, the data total system end comprises a modification input end, a recording module, a storage module, an environment data total library, a processing module and a sending module, the modification input end is in data connection with the environment data total library, and the modification input end is used for manually modifying changed parameter data, namely a manual modification configuration file and a batch processing script, in the environment data total library when the environment data changes; the environment data total library is used for storing all environment data parameters; the recording module is in data connection with the modification input end and is used for recording the changed data parameters; the recording module is in data connection with the storage module, and the storage module is used for storing the changed data parameters and storing the changed environment data database; the invention aims to solve the problems that the environment needs to be changed, new software is installed and the like, and a large amount of time and labor consuming repeated operation is needed when the environment needs to be changed, and the like.
As shown in fig. 1, the processing module is configured to make the configured read, parse and execute flow into an executable exe file and transmit the executable exe file to the sending module, where the exe file made by the processing module is an environmental batch management program, and the environmental batch management program (except for the exe file) includes a modified configuration file and a batch script, and the environmental batch management program can be used as a component of the tax return client, and the sending module is in data connection with the tax return client.
As shown in fig. 1, the tax return client includes a display screen, a receiving module and a system automatic updating module, the display screen is used for displaying information on the screen in the form of text, number and graph, the receiving module is in data connection with the sending module of the data total system, the receiving module is used for receiving the modified configuration file and batch script, the receiving module is in data connection with the system automatic updating module, and the system automatic updating module automatically performs system updating after the tax return client receives new data.
As shown in fig. 1, the tax return client further includes a management module, a reading analysis module and a client environment database, the receiving module is in data connection with the management module, the management module is used for recording, storing and analyzing the received data and sending the data to the reading analysis module, the management module is in data connection with the reading analysis module, the client environment database is in data connection with the reading analysis module, the reading analysis module is used for reading configuration files and analyzing the configuration files, the client environment database is used for storing all environment configuration parameters of the tax return client, the client environment database includes a registry, and the reading analysis module reads the environment provincial capacity of the client through the registry of the client environment database.
As shown in fig. 1, the tax return client further includes a decision module, an execution module and a termination module, the reading analysis module is in data connection with the decision module, the client end environment database is in data connection with the decision module, the decision module is used for judging whether the province needs to be updated by configuration, the decision module is selectively connected with the execution module, the decision module is selectively connected with the termination module, the decision module judges that the client end needs to be updated by configuration and sends an execution instruction to the execution module, the execution module executes the received modified batch script, and the decision module judges that the client end does not need to be updated and sends the termination instruction to the termination module to terminate the process.
As shown in fig. 1, the tax return client further includes an alarm module and an inspection module, the execution module is in data connection with the inspection module, the inspection module is used for inspecting whether the execution module completes the operation of the batch script, the inspection module is selectively connected with the termination module, the inspection module is selectively connected with the alarm module, the inspection module confirms that the execution module sends a termination instruction to the termination module to complete configuration updating after completing the operation of the batch script, the inspection module finds that the execution module does not complete the operation of the batch script and sends information to the alarm module, the alarm module is in data connection with the display screen, the alarm module generates alarm information and displays an alarm through the display screen, and the alarm module is in data connection with the termination module to finish the process.
As shown in fig. 1, the tax return client further includes an instruction input end, the instruction input end is directly connected with the display screen, the instruction input end manually and directly confirms the execution of the re-execution batch script after the display screen displays the execution error alarm, the execution module is in data connection with the management module, and the management module sends the execution re-execution script operation instruction to the execution module.
The batch processing script is a program call script, is used for realizing the batch operation management purpose of the tax return environment, and can realize batch operation of the whole provincial environment through VMupdate.exe analysis of configuration file yzfEnvUpdater.xml and operation of executing the script.
Working principle: the tax return client (such as a cloud account tax return client) is utilized to carry a tax return environment batch management technology, an environment batch management program is made into an executable exe file to be used as a component of the tax return client, the environment batch management program is called each time the client is updated successfully, and the program judges whether to execute operation or not by reading a configuration file without automatic closing; and if the operation is needed, calling the batch file to automatically operate the tax return environment. Finally, the effect of realizing the automatic upgrading of the environment by modifying the configuration file and the batch script is achieved.
As shown in FIG. 4, the product structure of the tax return environment batch management system of the invention comprises the following components:
Common.dll;
Install.bat
Log4cpp.conf;
Logext100.dll;
VMsoftupdata.exe;
Win32automation.dll;
Yzfenvupdater.xml;
wherein:
program main body vmsoftupdata.exe (functions are implemented by running the program);
dependency libraries used by programs (.dll files and. Conf files);
configuration file yzfEnvUpdater.xml;
script to be run: instal.
The yzfEnvUpdater.xml configuration file is parsed as follows:
as shown in fig. 5:
area represents the region of operation required;
name is the software Name;
type is a Type that checks whether an operation is required and currently supports file types and regedit registry types;
path is the specific Path of the inspection item;
download is the Download path when certain resources need to be downloaded.
The invention aims to solve the problems that the environment needs to be changed and new software is installed and the like, and aims to simplify the step of installing the software, so that a user can finish the updating of a system by himself according to instructions at the user side, delete data for reclonization or manually operate all user environments, data migration is not needed, the time-consuming and labor-consuming repeated operation is directly solved, the data migration is not needed, errors and omission caused when a large amount of repeated operations are performed are avoided.
Example 2: the method for managing the tax return environment in batches uses a cloud platform tax return client to carry out a tax return environment batch management technology, an environment batch management program is made into an executable exe file to be used as a component of the tax return client, the environment batch management program is called each time the client is updated successfully, and the program judges whether to execute operation or not by reading a configuration file without automatic closing; if the operation is needed, the batch processing file is called to automatically operate the tax return environment; finally, the effect of realizing the automatic upgrading of the environment by modifying the configuration file and the batch script is achieved.
The tax return environment batch management method comprises a manual operation stage and an automatic execution stage.
As shown in fig. 2, the manual operation phase includes the steps of:
s1: starting;
s2: a certain provincial environment modification requirement exists;
s3: modifying the configuration file and the batch script;
s4: submitting the modification to the product line through the SVN;
s5: waiting for the tax return client to issue automatic update;
s6: and (5) ending.
As shown in fig. 3, the automatic execution phase includes the following steps:
s1: the tax return client is updated successfully;
s2: the environment management program operates;
s3: reading a configuration file and analyzing the configuration file;
s4: reading the environmental province capability from the registry;
s5: judging whether the province needs to be operated according to the configuration file, if so, ending; if YES, executing step S6;
s6: performing an install.
S7: waiting for an execution result, if no result exists, reporting an error to remind a user to retry until the end; if YES, executing step S8;
s8: and (5) ending.
The invention has been described with respect to the above-described embodiments, however, the above-described embodiments are merely examples of practicing the invention. It should be noted that the disclosed embodiments do not limit the scope of the invention. On the contrary, the intention is to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the invention.