One kind is declared dutiable goods environment bulk management method and system
Technical field
It declares dutiable goods environment batch management system the present invention relates to cloud accountant information technology field more particularly to one kind.
Background technique
With the development of science and technology, the rapid advancement of information technology, management of declaring dutiable goods is declared dutiable goods often now there has also been new matter jump
It is declared dutiable goods using cloud platform and carries out work management processing, existing environment of declaring dutiable goods is declared dutiable goods the modes of environment templates using clone,
The deployment for carrying out environment updates.Environment templates are the deployed good virtual machine for meeting this area's requirement, various regions
Area's template is deposited in specified address and can be updated when environment needs to change, and implementing the first installation environment of personnel can arrive accordingly
Address modulus plate carries out virtual machine clone, and the environment cloned is used environment of declaring dutiable goods.
But when a certain area has setting to need to modify or software needs to install, there are two types of modes for choosing on existing basis
Select: first is that deleting original environment, modulus plate is cloned again;Second is that environmentally being configured at each manually.Using upper
Each own drawback of face both of which, since file is excessive by the way of method one again cloned template, it may be desirable to which consumption is big
The amount time is downloaded duplication;It needs again to operate the environment of all users using two implementation personnel of method, can occupy
They increase human cost the plenty of time, in addition, when largely carrying out some repetitive operation, inevitably occur modification fault or
The case where omitting some user rs environment, after environment is cloned again, legacy data such as user stores data information in the environment
Or the historical record etc. that software operation generates, these original data will also be migrated, and be will lead to and reinstalled environment and go out
Current situation is sex-limited, moreover, after reinstalling environment, original data are difficult to all find out and migrate, while when data are excessive,
The case where consuming time is long, waste of manpower, Data Migration is imperfect, easy appearance is wrong or loss of data can be generated, data are moved
There are risks for shifting.
Summary of the invention
The purpose of the present invention is to solve disadvantage existing in the prior art, and the one kind proposed environment batch of declaring dutiable goods is managed
Manage method and system.
To achieve the above object, present invention employs following technical solutions:
One kind is declared dutiable goods environment batch management system, including data total system end and client of declaring dutiable goods, data total system end with
Client data of declaring dutiable goods connection, data total system end include modification input terminal, logging modle, memory module, environmental data
Total library, processing module and sending module, the modification input terminal and the total library data connection of environmental data, the modification input terminal are used
In the supplemental characteristic i.e. manual modification configuration file changed manually in the total library modification of environmental data when environmental data changes
With batch processing script;The total library of environmental data is for storing all environmental data parameters;The logging modle and modification input
End data connection, the logging modle are used to record the data parameters changed;The logging modle and memory module data connection,
The memory module is used for the data parameters of storage modification and the total library of environmental data after variation is carried out storage preservation;It is described to deposit
Store up module and the total library data connection of environmental data, the processing module and logging modle data connection, the processing module and hair
Module data is sent to connect, for the sending module for sending environment bulk management program to client of declaring dutiable goods, the present invention is directed to solve
Certainly environment needs the repetitive operation largely taken time and effort occurred when the problems such as changing configuration, installing new software, it is intended that passes through letter
Change this step of installation software, so that user can not need in the update of completion system of the user terminal according to instruction voluntarily
It deletes data to clone or manually operate all user environments again, does not need Data Migration, directly solve time-consuming consumption
The repetitive operation of power does not need to carry out Data Migration, avoids the mistake and something lost of generation when largely carrying out repetitive operation yet
Leakage.
As optimization, the reading parsing that the processing module is used to configure executes process and is made into executable exe file
It is transmitted to sending module, the exe file that the processing module is made into is environment bulk management program, the environment bulk management journey
The modified configuration file and batch processing script that sequence (in addition to exe file also) includes, the environment bulk management program can be worked as
One component of client of declaring dutiable goods is carried out using the sending module is connect with client data of declaring dutiable goods.
As optimization, the client of declaring dutiable goods includes that display screen, receiving module and system automatically update module, the display
Screen is for showing on the screen information with text, number, graphic form, the transmission of the receiving module and data total system end
Module data connection, the receiving module for receiving modified configuration file and batch processing script, the receiving module with
System automatically updates module data connection, the system automatically update module received in client of declaring dutiable goods it is spontaneous after new data
Carry out system update.
As optimization, the client of declaring dutiable goods further includes management module, reads parsing module and client environment database,
The receiving module and management module data connection, the management module is for the received data of record storage and is sent to reading
Take parsing module to be parsed, the management module and read parsing module data connection, the client environment database with
Parsing module data connection is read, the reading parsing module is for reading configuration file and parsing configuration file, the client
End environment data base includes registration for storing all environment configurations parameters of client of declaring dutiable goods, the client environment database
Table, the environment province ability for reading parsing module and reading the client by the registration table of client environment database.
As optimization, the client of declaring dutiable goods further includes judging module, execution module and terminates module, and the reading parses
Module and judging module data connection, the client environment database and judging module data connection, the judging module are used
In judging whether the province needs to carry out configuration update, the judging module and execution module selection are connected, the judging module
It is connected with module selection is terminated, the judging module judges that client execute instruction transmission when configuration updates and holds
Row module, the execution module execute received modified batch processing script, and the judging module judges that client does not need
Command for stopping will be sent when update to termination end-of-module process.
As optimization, the client of declaring dutiable goods further include alarm module and check module, the execution module and check mould
Block data connection, the inspection module is for checking whether execution module completes the operation of batch processing script, the inspection module
It is connected with module selection is terminated, the inspection module and alarm module selection connect, and the inspection module confirmation execution module is complete
Command for stopping is sent after the operation of batch processing script and completes configuration update to module is terminated, and the inspection module discovery executes mould
Block send information to alarm module after not completing the operation for criticizing script, and the alarm module is connect with screen data, the announcement
Alert module generates warning information by display screen display alarm, and the alarm module connect end process with module data is terminated.
As optimization, the client of declaring dutiable goods further includes command input, and described instruction input terminal directly connects with display screen
It connects, directly confirmation re-executes batch processing script to described instruction input terminal manually after display screen shows and executes fault alarm
Operation, the execution module and management module data connection, the management module will re-execute script operating instruction and be sent to
In execution module.
As optimization, the batch processing script is routine call script install.bat, and the batch processing script is for real
It now declares dutiable goods environment batch operation administrative purposes, VMupdate.exe can be passed through and parse configuration file yzfEnvUpdater.xml
The batch operation to entire province environment is realized with the operation for executing install.bat batch processing script, operation includes that software is pacified
Dress, software unloading, file duplication deletion, Registry Modifications.
The present invention also proposes that one kind is declared dutiable goods environment bulk management method, is declared dutiable goods ring using cloud platform client carrying of declaring dutiable goods
Environment bulk management program is made into the component that executable exe file regards client of declaring dutiable goods by border bulk management technology,
Transfer environment bulk management program when each client is updated successfully, the program judge whether to need to hold by reading configuration file
Row operation, does not need to be automatically closed;If you need to be operated, autoexec is called to be automatically brought into operation environment of declaring dutiable goods;Finally
Achieve the effect that realize that environment upgrades automatically by modification configuration file and batch processing script.
One kind of the present invention environment bulk management method of declaring dutiable goods includes manual operation stage and automatic execution stage;Manual operation
Stage includes the following steps:
S1: start;
S2: some province environment modifies demand;
S3: modification configuration file and batch processing script;
S4: modification is submitted on product line by SVN;
S5: client publication of declaring dutiable goods is waited to automatically update;
S6: terminate;
The automatic execution stage includes the following steps:
S1: client of declaring dutiable goods is updated successfully;
S2: environmental management program operation;
S3: configuration file, parsing configuration file are read;
S4: environment province ability is read from registration table;
S5: judge whether the province is operated according to configuration file, if NO, terminates;If YES thens follow the steps S6;
S6: install.bat is executed;Install.bat is the script of routine call, and the function that needs are realized writes on
Final function is realized in install.bat;
S7: waiting implementing result, if nothing as a result, if report an error user reminded to retry, until terminating;If YES thens follow the steps S8;
S8: terminate.
Compared with prior art, the invention has the benefit that present invention seek to address that environment needs to change configuration, installation
The repetitive operation largely taken time and effort occurred when the problems such as new software, it is intended that by simplifying this step of installation software,
So that user can not need to delete data and clone again or manually in user terminal according to the update of instruction completions system voluntarily
All user environments are operated, Data Migration is not needed, the repetitive operation taken time and effort is directly solved, does not need to be counted
According to migration, the errors and omissions of generation when largely carrying out repetitive operation is also avoided, the present invention is how regional, more to be directed to
Client, multi-environment computer environment operational administrative technology, applied to environment of declaring dutiable goods, can for a certain all environment in area into
The movement such as the software installation of the automatic batch of row or unloading, file duplication, procedure operation, has that work efficiency is high, time-consuming short, saves
It saves labor costs, easy to operate, real-time, the good feature of usage experience can be avoided omission in addition, accuracy rate is high, and declare dutiable goods visitor
Family end can information be upgraded automatically based on the received in real time, is avoided manual operation load and is easy to omit asking for certain environment greatly
Topic.
Detailed description of the invention
Fig. 1 is a kind of system module figure for environment batch management system of declaring dutiable goods of the present invention;
Fig. 2 is manual operation work step figure;
Fig. 3 is automatic execution stage work block diagram;
Fig. 4 is that the present invention declares dutiable goods environment batch management system product structure figure;
Fig. 5 is yzfEnvUpdater.xml configuration file analysis diagram.
Specific embodiment
To make to have further understanding to the purpose of the present invention, construction, feature and its function, hereby cooperate embodiment detailed
It is described as follows.
Embodiment 1: the environment batch management system as shown in Figure 1, one kind is declared dutiable goods, including data total system end and the client that declares dutiable goods
End, data total system end are connect with client data of declaring dutiable goods, and data total system end includes modification input terminal, logging modle, storage
The total library of module, environmental data, processing module and sending module, modification input terminal and the total library data connection of environmental data, are modified defeated
Enter end for matching manually in the supplemental characteristic i.e. manual modification that the total library modification of environmental data changes when environmental data changes
Set file and batch processing script;The total library of environmental data is for storing all environmental data parameters;Logging modle and modification input terminal
Data connection, logging modle are used to record the data parameters changed;Logging modle and memory module data connection, memory module are used
In storage modification data parameters and the total library of environmental data after variation is subjected to storage preservation;Memory module is total with environmental data
Library data connection, processing module and logging modle data connection, processing module and sending module data connection, sending module are used for
It sends environment bulk management program and new software etc. is installed present invention seek to address that environment needs to change configuration to client of declaring dutiable goods
The repetitive operation largely taken time and effort occurred when problem, it is intended that by simplifying this step of installation software, so that user
Can in user terminal according to the update of instruction completions system voluntarily, do not need to delete data clone again or manually to it is useful
Family environment is operated, and Data Migration is not needed, and directly solves the repetitive operation taken time and effort, does not need to carry out Data Migration,
Also the errors and omissions of generation when largely carrying out repetitive operation is avoided.
As shown in Figure 1, the reading parsing that processing module is used to configure, which executes process, is made into executable exe file transmission
To sending module, the exe file that processing module is made into is environment bulk management program, and environment bulk management program (removes exe file
It is outer also) the modified configuration file and batch processing script that include, environment bulk management program can be as declaring dutiable goods the one of client
A component is carried out using sending module is connect with client data of declaring dutiable goods.
As shown in Figure 1, client of declaring dutiable goods includes that display screen, receiving module and system automatically update module, display screen is used for
Information is shown on the screen with text, number, graphic form, the sending module data at receiving module and data total system end connect
It connects, receiving module automatically updates number of modules for receiving modified configuration file and batch processing script, receiving module and system
According to connection, system automatically updates module and receives spontaneous carry out system update after new data in client of declaring dutiable goods.
As shown in Figure 1, client of declaring dutiable goods further includes management module, reads parsing module and client environment database, connect
Module and management module data connection are received, management module is for the received data of record storage and is sent to reading parsing module
It is parsed, management module and reading parsing module data connection, client environment database and reading parsing module data connect
It connects, reads parsing module for reading configuration file and parsing configuration file, client environment database is for storing the visitor that declares dutiable goods
All environment configurations parameters in family end, client environment database include registration table, read parsing module and pass through client environment number
The environment province ability of the client is read according to the registration table in library.
As shown in Figure 1, client of declaring dutiable goods further include judging module, execution module and terminate module, read parsing module with
Judging module data connection, client environment database and judging module data connection, judging module is for judging that the province is
No needs carry out configuration update, and judging module and execution module selection connect, and judging module and termination module selection connect, judgement
Module judges that client carries out that transmission is executed instruction execution module when configuration updates, and execution module executes received repair
Batch processing script after changing, judging module judge client do not need update when will send command for stopping to termination end-of-module into
Journey.
As shown in Figure 1, client of declaring dutiable goods further includes alarm module and checks module, execution module and inspection module data connect
It connects, checks that module for checking whether execution module completes the operation of batch processing script, checks that module and termination module selection connect
It connects, checks that module is connected with alarm module selection, sent after checking the operation of module confirmation execution module completion batch processing script
Command for stopping is completed to configure update to module is terminated, and transmission is believed after inspection module discovery execution module does not complete the operation for criticizing script
Alarm module is ceased, alarm module is connect with screen data, and alarm module generates warning information and passes through display screen display alarm,
Alarm module connect end process with module data is terminated.
As shown in Figure 1, client of declaring dutiable goods further includes command input, command input is directly connected to display screen, instruction
Input terminal directly confirms the operation for re-executing batch processing script manually after display screen shows and executes fault alarm, executes mould
Block and management module data connection, management module will re-execute script operating instruction and be sent in execution module.
Batch processing script is routine call script install.bat, and batch processing script is grasped for realizing environment batch of declaring dutiable goods
Make administrative purposes, configuration file yzfEnvUpdater.xml can be parsed by VMupdate.exe and executes install.bat
The batch operation to entire province environment is realized in the operation of batch processing script, and operation is multiple including software installation, software unloading, file
System deletion, Registry Modifications.
Working principle: carrying environment bulk management technology of declaring dutiable goods using client of declaring dutiable goods (such as cloud accountant declare dutiable goods client),
Environment bulk management program is made into the component that executable exe file regards client of declaring dutiable goods, each client updates
Transfer environment bulk management program when success, the program judge whether to need to be implemented operation, not need by reading configuration file
It is automatically closed;If you need to be operated, autoexec is called to be automatically brought into operation environment of declaring dutiable goods.It is finally reached and passes through modification
Configuration file and batch processing script realize the effect that environment upgrades automatically.
As shown in figure 4, the present invention declares dutiable goods, environment batch management system product structure includes with lower component:
Common.dll;
Install.bat
Log4cpp.conf;
Logext100.dll;
VMsoftupdata.exe;
Win32automation.dll;
Yzfenvupdater.xml;
Wherein:
Procedure subject VMSoftUpdata.exe(realizes function by running the program);
Program, which uses, relies on library (.dll file and .conf file);
Configuration file yzfEnvUpdater.xml;
The script for needing to run: install.bat;
The parsing of yzfEnvUpdater.xml configuration file is as follows:
It is as shown in Figure 5:
The area that Area is operated needed for representing;
Name is dbase;
Type is that the type for checking the need for operating supports file file type and regedit registration table type at present;
Path is the specific path of check item;
Download is download path when needing to download certain resources.
Present invention seek to address that environment needs to change configuration, what what when the problems such as installing new software occurred largely took time and effort
Repetitive operation, it is intended that by simplifying this step of installation software, so that user can be in user terminal according to instruction voluntarily complete
At the update of system, does not need deletion data and clone or all user environments are operated again manually, do not need data
Migration, directly solves the repetitive operation taken time and effort, does not need to carry out Data Migration, also avoids largely carrying out repetitive operation
When the errors and omissions that generates, the present invention is to be directed to more areas, more clients, multi-environment computer environment operational administrative skill
Art can carry out the software installation or unloading, file of automatic batch applied to environment of declaring dutiable goods for a certain all environment in area
The movement such as duplication, procedure operation, has that work efficiency is high, time-consuming short, saves human cost, easy to operate, real-time uses body
Good feature is tested, in addition, accuracy rate is high, can be avoided omission, client of declaring dutiable goods can information carries out automatically based on the received in real time
Upgrading avoids manual operation load and is easy the problem of omitting certain environment greatly.
Embodiment 2: one kind is declared dutiable goods environment bulk management method, is declared dutiable goods environment batch using cloud platform client carrying of declaring dutiable goods
Administrative skill is measured, environment bulk management program is made into the component that executable exe file regards client of declaring dutiable goods, every time
Transfer environment bulk management program when client is updated successfully, the program judge whether to need to be implemented behaviour by reading configuration file
Make, does not need to be automatically closed;If you need to be operated, autoexec is called to be automatically brought into operation environment of declaring dutiable goods;It is finally reached
The effect that environment upgrades automatically is realized by modification configuration file and batch processing script.
It declares dutiable goods environment bulk management method, including manual operation stage and automatic execution stage.
As shown in Fig. 2, the manual operation stage includes the following steps:
S1: start;
S2: some province environment modifies demand;
S3: modification configuration file and batch processing script;
S4: modification is submitted on product line by SVN;
S5: client publication of declaring dutiable goods is waited to automatically update;
S6: terminate.
As shown in figure 3, the automatic execution stage includes the following steps:
S1: client of declaring dutiable goods is updated successfully;
S2: environmental management program operation;
S3: configuration file, parsing configuration file are read;
S4: environment province ability is read from registration table;
S5: judge whether the province is operated according to configuration file, if NO, terminates;If YES thens follow the steps S6;
S6: install.bat is executed;
S7: waiting implementing result, if nothing as a result, if report an error user reminded to retry, until terminating;If YES thens follow the steps S8;
S8: terminate.
The present invention is described by above-mentioned related embodiment, however above-described embodiment is only to implement example of the invention.
It must be noted that the embodiment disclosed is not limiting as the scope of the present invention.On the contrary, do not depart from spirit of the invention and
It is changed and retouched made by range, belongs to scope of patent protection of the invention.