CN108287813A - A kind of information submits method, apparatus and electronic equipment - Google Patents
A kind of information submits method, apparatus and electronic equipment Download PDFInfo
- Publication number
- CN108287813A CN108287813A CN201810159760.5A CN201810159760A CN108287813A CN 108287813 A CN108287813 A CN 108287813A CN 201810159760 A CN201810159760 A CN 201810159760A CN 108287813 A CN108287813 A CN 108287813A
- Authority
- CN
- China
- Prior art keywords
- information
- external system
- version file
- file
- web page
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/151—Transformation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/186—Templates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/21—Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/2133—Verifying human interaction, e.g., Captcha
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Artificial Intelligence (AREA)
- Databases & Information Systems (AREA)
- Bioethics (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
An embodiment of the present invention provides a kind of information to submit method, apparatus and electronic equipment, wherein and the method is applied to client, the method includes:Download the original web page version file that layout is preset in external system;In information assembly to be committed to the original web page version file, target webpage version file to be committed information corresponding to will be obtained;The target webpage version file is converted into the corresponding destination file format of the external system;Transformed target webpage version file is submitted in the external system.Information solicitation speed can be improved using the technical solution of the application, reduces and fills in error rate.
Description
Technical field
The present invention relates to field of computer technology, and method, apparatus and electronic equipment are submitted more particularly to a kind of information.
Background technology
During enterprise operation, it is often necessary to some information is submitted in external system, external system is carried by enterprise
The information of friendship carries out the audit of various aspects to enterprise or puts on record, to which the orderly warp of each enterprise is managed, ensured to each enterprise
Battalion.For example, Video service enterprise each video information can be submitted in eternal review system or docketing system carry out audit or
Put on record.
In the prior art, enterprise to external system when submitting information, it usually needs external system is first logged in, against enterprise
The information to be committed in portion in the industry, information to be committed is filled in by business personnel, by external system after having filled in external system
Format generates webpage version file, such as hypertext markup language (Hyper Text Mark-up Language, abbreviation HTML) text
Part, then webpage version file printout out is scanned to form scanned copy, or mimeograph documents are exported into portable document format
Scanned copy or pdf files are submitted to system, complete letter by (Portable Document Format, abbreviation pdf) file again
Breath is submitted.
However, inventor has found in the implementation of the present invention, at least there are the following problems for the prior art:Enterprise is in profit
When submitting information to external system with existing method, need by business personnel's fill message in external system one by one, it is right
In the bigger enterprise of some information data amounts, fill in process it is very mechanical with it is cumbersome, it is slower to fill in speed, and is filled in manually
It is easy error.
Invention content
A kind of information of being designed to provide of the embodiment of the present invention submits method and device, with improve information solicitation speed,
Error rate is filled in reduction.Specific technical solution is as follows:
In a first aspect, an embodiment of the present invention provides a kind of information to submit method, it is applied to client, the method packet
It includes:
Download the original web page version file that layout is preset in external system;
By in information assembly to be committed to the original web page version file, the target network corresponding to information to be committed is obtained
Page version file;
The target webpage version file is converted into the corresponding destination file format of the external system;
Transformed target webpage version file is submitted in the external system.
Optionally, the original web page version file for downloading default layout in external system, including:
The Print Preview page for showing external system downloads the Print Preview page as the original of default layout
Webpage version file.
Optionally, described by information assembly to be committed to the original web page version file, including:
Content corresponding with information to be committed in the original web page version file is deleted, the printing template of ghost is obtained
File;
Information to be committed is merged into the printing template file of the ghost.
Optionally, described by information assembly to be committed to the original web page version file, including:
Search the project name of information to be replaced in the original web page version file;
Search corresponding with project name target information in the local database, and using the target information as
Information to be committed;
Information to be replaced in the original web page version file is replaced using the information to be committed.
Optionally, the method further includes:
Obtain the external system be stored on user local terminal for recording user information, determine user identity
User data Cookie;
It is described that transformed target webpage version file is submitted in the external system, including:
The user data Cookie and transformed target webpage version file are submitted in the external system.
Optionally, it is described obtain the external system be stored on user local terminal for recording user information, really
Determine the user data Cookie of user identity, including:
Logging request is sent to the external system, the logging request includes the account logged in used in the external system
And password;So that after the external system receives the logging request, send for recording user information, determining user identity
User data Cookie;
Receive the user data Cookie that the external system is sent.
Optionally, before the transmission logging request to the external system, further include:
Access request is sent to the external system;
Obtain the identifying code picture that the external system is sent;
The identifying code picture is parsed into text;
Correspondingly, described send logging request to the external system, including:
Include the logging request of the text to external system transmission.
Second aspect, an embodiment of the present invention provides a kind of information issuing means, described device includes:
File download unit, for downloading the original web page version file for presetting layout in external system;
Information assembled rigid unit, for by information assembly to be committed to the original web page version file, obtaining to be committed
Target webpage version file corresponding to information;
File conversion unit, for the target webpage version file to be converted to the corresponding file destination of the external system
Format;
File submits unit, for transformed target webpage version file to be submitted in the external system.
Optionally, the file download unit includes:
Page presentation subelement, the Print Preview page for showing external system;
Page-downloading subelement, for downloading original web page version text of the Print Preview page as default layout
Part.
Optionally, described information assembled rigid unit includes:
Information deletion subelement, for deleting content corresponding with information to be committed in the original web page version file
It removes, obtains the printing template file of ghost;
Information merges subelement, for information to be committed to be merged into the printing template file of the ghost.
Optionally, described information assembled rigid unit includes:
Project searches subelement, the project name for searching information to be replaced in the original web page version file;
Information searching subelement, for searching target information corresponding with the project name in the local database,
And using the target information as information to be committed;
Information replaces subelement, to be replaced in the original web page version file for being replaced using the information to be committed
Information.
Optionally, described device further includes:
User data acquiring unit is stored in being used for recording on user local terminal for obtaining the external system
Family information, the user data Cookie for determining user identity;
Correspondingly, the file submits unit, is specifically used for the user data Cookie and transformed target network
Page version file is submitted in the external system.
Optionally, the user data acquiring unit includes:
Transmission sub-unit is asked, for sending logging request to the external system, the logging request includes logging in institute
State the account and password used in external system;So that after the external system receives the logging request, send for recording
User information, the user data Cookie for determining user identity;
User data receiving subelement, the user data Cookie sent for receiving the external system.
Optionally, described device further includes:
Request transmitting unit, for sending access request to the external system;
Picture acquiring unit, the identifying code picture sent for obtaining the external system;
Picture resolution unit, for the identifying code picture to be parsed into text;
Correspondingly, the request transmission sub-unit, specifically for including stepping on for the text to external system transmission
Record request.
The third aspect, an embodiment of the present invention provides a kind of electronic equipment, including processor, communication interface, memory and
Communication bus, wherein processor, communication interface, memory complete mutual communication by bus;Memory, for storing
Computer program;Processor realizes the method and step described in first aspect for executing the program stored on memory.
Fourth aspect, an embodiment of the present invention provides a kind of computer readable storage medium, storage in the storage medium
There is instruction, when run on a computer so that computer executes the information described in first aspect and submits method.
5th aspect, the embodiment of the present invention additionally provides a kind of computer program product including instruction, when it is being calculated
When being run on machine so that computer executes the information described in first aspect and submits method.
Information provided in an embodiment of the present invention submits method, apparatus and electronic equipment, is beaten when downloading to preset in external system
After the original web page version file of grid printing formula, by information assembly to be committed to the original web page version file, obtain to be committed
Target webpage version file corresponding to information, then the target webpage version file is converted into the corresponding target of the external system
Transformed target webpage version file is submitted in the external system by file format.
Using the technical solution of the application, people can be not necessarily to by information assembly to be committed to original web page version file
Work is inputted one by one, is improved information solicitation speed, is reduced and fill in error rate.Certainly, it implements any of the products of the present invention
Or method must be not necessarily required to reach all the above advantage simultaneously.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described.
Fig. 1 is that the information of the embodiment of the present invention submits a kind of flow diagram of method;
Fig. 2 is that the information of the embodiment of the present invention submits another flow diagram of method;
Fig. 3 is a kind of structural schematic diagram of the information issuing means of the embodiment of the present invention;
Fig. 4 is a kind of electronic equipment structural schematic diagram provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes.
In order to improve information solicitation speed, reduce and fill in error rate, an embodiment of the present invention provides a kind of information submission sides
Method, device and electronic equipment, by downloading the original web page version file in external system, by information assembly to be committed to original
In webpage version file, without manually being inputted one by one, information solicitation speed is improved, reduces and fills in error rate.
Being provided for the embodiments of the invention information first below submits method to be introduced.
It should be noted that the information that the embodiment of the present invention is provided submits method to can be applied to need to submit data
The industry-by-industry audited to external system.
A kind of information that the embodiment of the present invention is provided submits method, is applied to client, as shown in Figure 1, this method can
To include the following steps:
S110:Download the original web page version file that layout is preset in external system;
Said external system can be the sorts of systems such as eternal review system, external docketing system, external administration system, this
Application does not make specific limit to external system.
When in practical applications, to external system fill message, it usually needs access external system and carry out information solicitation.
In the embodiment of the present invention, in order to improve information solicitation speed, reduce and fill in error rate, after accessing external system, it can download
The original web page version file that layout is preset in external system, to be submitted into row information by the original web page version file.
Wherein, above-mentioned original web page version file can be for example html file, include embedded server side comprising life
The html file (SHTML files) of order, the webpage version file of cascading style list file (CSS files) or other forms, this Shen
Please specific limit is not made to the format of original web page version file, wherein HTML is current common webpage version file format, application
It is in extensive range.
For example, the storage of original web page version file can be found in external system network page after logging in external system
Position, and the original web page version file stored at the position is stored in local, realize the download of original web page version file.
S120:By in information assembly to be committed to above-mentioned original web page version file, obtain corresponding to information to be committed
Target webpage version file;
In embodiments of the present invention, after downloading to original web page version file, it can be based on the original web page version file, into
Row information is submitted.Specifically, information to be committed can be obtained, and by information assembly to be committed to original web page version file
In, obtain the target webpage version file corresponding to information to be committed.
For example, the project name of in blank information can be searched in above-mentioned original web page version file, in local data
Information corresponding with the project name of in blank information is obtained in library, and the information obtained in the local database is spliced to
It states in original web page version file.
S130:Above-mentioned target webpage version file is converted into the corresponding destination file format of external system;
In practical applications, external system is for ease of signal auditing, it will usually it is required that filling out the file conversion that writer will fill in
At being submitted again after the file of certain format.The file format that external system requires usually has portable document format (Portable
Document Format, abbreviation pdf), picture format etc..
It therefore, in embodiments of the present invention,, can after obtaining target webpage version file in order to successfully realize the submission of information
The target webpage version file is converted to the corresponding destination file format of said external system.
For example, when target webpage version file is html file, wkhtmlto tools can be used target webpage version text
Part is converted to pdf files or picture file, wherein wkhtmlto tools are commonly used in the prior art to turn to html file
The tool changed can be generated and target webpage version file clarity one using wkhtmlto tool switch target webpage version files
The file of cause, clarity is good, and conversion effect is good.Webpage version file is converted into the process of pdf editions files or picture version file, it can
To use existing any method, for example, dom-to-image tools, html2canvas tools etc. can be by HTML texts
Part is converted to picture file, and the application is to this without repeating.
S140:Transformed target webpage version file is submitted in said external system.
In practical applications, it needs after file is submitted to external system, external system just can be according to the file of submission
To being audited, being put on record.Therefore, in the embodiment of the present invention, in order to allow external system to be audited, be put on record to file,
Transformed target webpage version file can be submitted in external system.
For example, external system can be logged on to, transformed target webpage version file is submitted in external system.
Information provided in an embodiment of the present invention submits method, can be by information assembly to be committed to original web page version file
In, without manually being inputted one by one, information solicitation speed is improved, reduces and fills in error rate.
As a kind of embodiment of the embodiment of the present invention, step S110 can also be realized according to the following steps:
S111:Show the Print Preview page of external system;
Under normal conditions, can all there be Print Preview function at the information solicitation interface of external system, for keeping the personnel of filling in pre-
It lookes at and whether correctly to fill in.Therefore, in embodiments of the present invention, the Print Preview page that can show external system, to download original
Beginning webpage version file.
S112:Download original web page version file of the Print Preview page as default layout.
Obtain the original web page version file of default layout by downloading the Print Preview page, can it is simple, convenient,
It is quickly obtained original web page version file, to improve the efficiency of information submission.It therefore, in embodiments of the present invention, can be following
Carry original web page version file of the Print Preview page as default layout.
As a kind of embodiment of the embodiment of the present invention, step S120 can also be realized according to the following steps:
S121:Content corresponding with information to be committed in above-mentioned original web page version file is deleted, beating for ghost is obtained
Die plate file;
The content of a part default may be filled in from the original web page version file that external system is downloaded, therefore,
In the present embodiment, content corresponding with information to be committed in original web page version file can be deleted, obtains beating for ghost
Die plate file.
S122:Information to be committed is merged into the printing template file of above-mentioned ghost.
After obtaining the printing template of ghost, need to complete merging for information to be committed and the printing template of ghost, it just can be with
In information assembly to be committed to above-mentioned original web page version file, target webpage version text to be committed information corresponding to will be obtained
Part, further to complete the submission of information.Therefore, in the present embodiment, information to be committed can be merged into beating for ghost
In die plate file.
For example, it is opposite to search in blank information in the printing template file with above-mentioned ghost in the local database
The information answered is inserted information to be committed as information to be committed in the printing template file of ghost.
In the present embodiment, due to deleting the content filled in original web page version file, spelling can be reduced
Wrongly installed mistake improves assembled accuracy.
As a kind of embodiment of the embodiment of the present invention, step S120 can also be realized according to the following steps:
S123:Original web page version file is parsed using jsoup tools, obtains the information of original web page version file;
Wherein, jsoup tools are existing a webpage version document parsers, can be right with fast resolving webpage version file
Data in webpage version file such as extract, replace at the operations.
In practical applications, it needs just to operate webpage version file by dedicated tool.Therefore, in this hair
In bright embodiment, original web page version file can be parsed using jsoup tools, obtain the letter of original web page version file
Breath.
S124:It will be in the information of information assembly to be committed to original web page version file.
To complete the submission of information, after obtaining the information of original web page version file, need information to be committed and original
The beginning information of webpage version file combines.It therefore, in embodiments of the present invention, can be by information assembly to be committed to original
In the information of webpage version file.
For example, can be obtained to be replaced in original web page version file according to the information of the original web page version file after parsing
Information, searching corresponding with the information to be replaced information in the local database will be to be committed as information to be committed
Information replace information to be replaced in original web page version file.
Original web page version file is parsed with jsoup tools, can easily and quickly parse original web page version file, to
Information can be improved and submit speed.
As a kind of embodiment of the embodiment of the present invention, step S120 can also be realized according to the following steps:
S125:Search the project name of information to be replaced in original web page version file;
In practical applications, in fill message on webpage, each wait that the place of filling in can correspond to preset project name, item
Mesh title is such as can be enterprise name, business code, enterprise address, invoice codes, account title, and the application is not to project
Name is referred to as specific limit.Fill message is waited for be filled in position corresponding with project name, and then completes information and submits, in this hair
In bright embodiment, the project name of information to be replaced in original web page version file can be searched.
It is, for example, possible to use analytical tool parses original web page version file, analytically after file in find out and wait replacing
The project name for the information changed.
S126:Search corresponding with above-mentioned project name target information in the local database, and by the target information
As information to be committed;
In embodiments of the present invention, it can search in the local database corresponding with the project name of information to be replaced
Target information, and using the target information as information to be committed.
For example, in blank information can be aggregated into the project name and the corresponding form of the contents of a project of data, formed
The standard information data of enterprise simultaneously preserve, and are searched in the standard information data of enterprise opposite with the project name of information to be replaced
The target information answered, as information to be committed.
S127:Information to be replaced in original web page version file is replaced using above-mentioned information to be committed.
Successfully to realize that information is submitted, need to be combined information to be committed with original web page version file.Therefore, in the present invention
In embodiment, after obtaining information to be committed, the information to be committed can be used to replace letter to be replaced in original web page version file
Breath.
The mode that use information is directly replaced can quickly by information assembly to be committed to original web page version file, to
Information can be improved and submit efficiency.
In practical applications, external system would generally store on user local terminal for recording user information, determination
The user data Cookie of user identity, based on the Cookie stored, user is when accessing the system next time, so that it may with automatic
It logs in.Therefore, in a kind of alternative embodiment of the present invention, a kind of information that above-described embodiment is provided submits method, in step
Before S110, it can also include the following steps:
S150:Acquisition external system is stored on user local terminal and is used to record user information, determine user identity
User data Cookie;
Correspondingly, step S140 can specifically be realized according to the following steps:
User data Cookie and transformed target webpage version file are submitted in said external system by S141.
After Cookie data and transformed target webpage version file are submitted in external system by client together, visitor
Family end can automatically log into external system, and information is submitted, and be manually operated into row information and carry without business personnel
It hands over, reduces the workload of business personnel, improve information and submit speed.
In practical applications, after needing to access and logging in external system, file could be submitted in external system.Cause
This, in another specific embodiment of the invention, the step S140 in a kind of information submission method that above-described embodiment is provided
It can also realize according to the following steps:
S142:External system is accessed using OkHttpClient tools, by Cookie data and transformed target webpage
Version file is submitted to external system.
Wherein, OkHttpClient tools are a tools for network request in the prior art,
OkHttpClient tools can access external system, and client can access external system automatically, manual without business personnel
It operates to access external system, the workload of further business personnel improves information and submits speed.
In practical applications, after needing user successfully to log in external system for the first time, external system just can be in local preservation
Cookie.Therefore, in a kind of specific implementation mode of the embodiment of the present invention, step S150 obtains user data Cookie can be with
It is realized by following steps:
S151:Logging request is sent to external system, which includes the account and close logged in used in external system
Code;So that after external system receives the logging request, the user data for recording user information, determining user identity is sent
Cookie;
S152:Receive the user data Cookie that external system is sent.
Logging request is sent by client, receives Cookie, and client with automated log on external system and can obtain
Cookie is manually operated without business personnel and logs in external system to obtain Cookie, reduces the workload of business personnel,
It improves information and submits speed.
In practical applications, when first logging into external system, to ensure that picture would generally be arranged in system safety, external system
Identifying code, user input correct picture validation code, can just pass through login authentication.
Therefore, it in a kind of specific implementation mode in the embodiment of the present invention, is stepped on to external system transmission in step S151
Before record request, it can also include the following steps:
S153:Access request is sent to external system;
S154:Obtain the identifying code picture that said external system is sent;
S155:The identifying code picture of acquisition is parsed into text;
Correspondingly, step S151 sends logging request to external system, can specifically include:Include to external system transmission
The logging request of above-mentioned text.
In practical applications, above-mentioned identifying code picture can be parsed using Tesseract tools, wherein Tesseract
Tool is a picture character analytical tool in the prior art, which can constantly train material, parsing identifying code picture accurate
True rate is higher.About the analytic method of identifying code picture, identifying code picture can also be parsed using other existing tools, this
Application does not make specific limit to the analytic method of picture validation code.
By the way that the text in identifying code picture is sent to external system, business personnel's manual identified, input can be saved
The process of picture validation code thereby may be ensured that client can obtain Cookie automatically, is further reduced person works' amount, carries
High information submits speed.
In a kind of specific implementation mode of the embodiment of the present invention, as shown in Fig. 2, the information submission side of the embodiment of the present invention
Method may comprise steps of:
S200:Logging request is sent to external system;The logging request includes the account and close logged in used in external system
Code;
S211:It verifies whether to log in above-mentioned external system;
S212:If logging in above-mentioned external system, the external system mimeograph documents are downloaded, the external system of download is printed
File process is at ghost template;
In a specific embodiment, external SYSPRINT file can be that printing is preset in external system in step S212
The original web page version file of format.Correspondingly, the external system mimeograph documents of download are processed into ghost mould in step S212
Plate can be realized according to the following steps:The content in the external system mimeograph documents of download is deleted using jsoup tools, is obtained
The printing template file of ghost, as ghost template.
S213:Above-mentioned ghost template is read, project data is filled, the ghost template of project data will be filled with as target
Webpage version file;
In a specific embodiment, the filling project data in step S213, can realize according to the following steps:It will wait carrying
Hand over information as in project data assembly to above-mentioned ghost template.
S214:By the above-mentioned print scanned file of target webpage version file generated;
In practical applications, it can use wkhtmlto tools that target webpage version file is converted into pdf files, picture text
The print scanned file of the object format corresponding with external system such as part.
S215:Above-mentioned print scanned file, Cookie are subjected to data combination, list is spliced into, uses
OkHttpClient tools access the network of external system, and the list being spliced into is submitted to external system.
S216:It analyzes whether above-mentioned list submits success, and returns to whether list submits successful information.
S220:If step S211 verifications are not logged in external system, login process is carried out.In practical applications,
If step S211 verifications are not logged in external system, Cookie can not be just obtained.At this point, illustrating that logging in external system removes
Account and password, it is also necessary to input picture validation code picture.
Therefore in a specific embodiment, step S220 can be realized in the following manner:
S221:Start logging program;
S222:The access request to external system is sent, identifying code picture is obtained;
S223:Above-mentioned identifying code picture is parsed into text with Tesseract tools, judges whether successfully resolved;
S224:If successfully parsing above-mentioned identifying code picture, stepped on to external system transmission using RestTemplate tools
Record request, the logging request include the text after account, password and the parsing logged in used in external system;Wherein,
RestTemplate tools are network request encapsulation tools commonly used in the prior art.If not parsing above-mentioned identifying code successfully
Picture, then return to step S222.
S225:Judge whether successfully to log in external system;
S226:If successfully logging in external system, Cookie is obtained, the Cookie of acquisition is submitted in step S215
To the external system;If not logging in external system successfully, illustrates it is that parsing identifying code picture is inaccurate, return again at this time
Step S222 continues to obtain identifying code picture.
Correspondingly, the embodiment of the present invention additionally provides a kind of information issuing means, it is applied to client device, such as Fig. 3 institutes
Show, which may include:
File download unit 310, for downloading the original web page version file for presetting layout in external system;
Information assembled rigid unit 320, for by information assembly to be committed to above-mentioned original web page version file, obtaining waiting carrying
Hand over the target webpage version file corresponding to information;
File conversion unit 330, for above-mentioned target webpage version file to be converted to the corresponding file destination of external system
Format;
File submits unit 340, for transformed target webpage version file to be submitted in external system.
Information issuing means provided in an embodiment of the present invention, can be by information assembly to be committed to original web page version file
In, without manually being inputted one by one, information solicitation speed is improved, reduces and fills in error rate.
In one embodiment, above-mentioned file download unit 110 may include:
Page presentation subelement, the Print Preview page for showing external system;
Page-downloading subelement, for downloading original web page version text of the above-mentioned Print Preview page as default layout
Part.
In one embodiment, information assembled rigid unit 120 may include:
Information deletion subelement is obtained for deleting content corresponding with information to be committed in original web page version file
To the printing template file of ghost;
Information merges subelement, for information to be committed to be merged into the printing template file of above-mentioned ghost.
In another embodiment, information assembled rigid unit 120 may include:
Project searches subelement, the project name for searching information to be replaced in original web page version file;
Information searching subelement, for searching target information corresponding with above-mentioned project name in the local database,
And using the target information as information to be committed;
Information replaces subelement, for replacing letter to be replaced in original web page version file using above-mentioned information to be committed
Breath.
In one embodiment, above-mentioned apparatus can also include:
User data acquiring unit is stored in believing for recording user on user local terminal for obtaining external system
Cease, determine the user data Cookie of user identity;
Correspondingly, file submits unit 340 to be specifically used for user data Cookie and transformed target webpage version text
Part is submitted in external system.
In one embodiment, above-mentioned user data acquiring unit may include:
Transmission sub-unit is asked, for sending logging request to external system, which includes logging in external system
Account and password used;So that after the external system receives above-mentioned logging request, send for recording user information, determination
The user data Cookie of user identity;
User data receiving subelement, the user data Cookie for receiving external system transmission.
In one embodiment, above-mentioned apparatus can also include:
Request transmitting unit, for sending access request to external system;
Picture acquiring unit, the identifying code picture for obtaining external system transmission;
Picture resolution unit, for above-mentioned identifying code picture to be parsed into text;
Correspondingly, above-mentioned request transmission sub-unit, specifically for being asked to the login that external system transmission includes above-mentioned text
It asks.
Correspondingly, the embodiment of the present invention additionally provides a kind of electronic equipment, as shown in figure 4, including processor 401, communication
Interface 402, memory 403 and communication bus 404, wherein processor 401, communication interface 402, memory 403 are total by communicating
Line 404 completes mutual communication,
Memory 403, for storing computer program;
Processor 401 when for executing the program stored on memory 403, realizes following steps:
Download the original web page version file that layout is preset in external system;
By in information assembly to be committed to above-mentioned original web page version file, the target network corresponding to information to be committed is obtained
Page version file;
Above-mentioned target webpage version file is converted into the corresponding destination file format of external system;
Transformed target webpage version file is submitted in external system.
Electronic equipment provided in an embodiment of the present invention, can by information assembly to be committed to original web page version file,
Without manually being inputted one by one, information solicitation speed is improved, reduces and fills in error rate.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component
Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard
Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, controlling bus etc..For just
It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), can also include non-easy
The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also
To be at least one storage device for being located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,
CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal
Processing, DSP), it is application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing
It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete
Door or transistor logic, discrete hardware components.
Correspondingly, the embodiment of the present invention additionally provides a kind of computer readable storage medium, it is stored in the storage medium
Computer program, the computer program realize following steps when being executed by processor:
Download the original web page version file that layout is preset in external system;
By in information assembly to be committed to above-mentioned original web page version file, the target network corresponding to information to be committed is obtained
Page version file;
Above-mentioned target webpage version file is converted into the corresponding destination file format of external system;
Transformed target webpage version file is submitted in external system.
Correspondingly, the embodiment of the present invention additionally provides a kind of computer program product including instruction, when it is in computer
When upper operation so that computer executes following steps:
Download the original web page version file that layout is preset in external system;
By in information assembly to be committed to above-mentioned original web page version file, the target network corresponding to information to be committed is obtained
Page version file;
Above-mentioned target webpage version file is converted into the corresponding destination file format of external system;
Transformed target webpage version file is submitted in external system.
Method provided in an embodiment of the present invention can be applied to the electronic equipment for being equipped with client.Specifically, the electronics
Equipment can be:Desktop computer, portable computer, intelligent mobile terminal, server etc..It is not limited thereto, Ren Heke
To realize the electronic equipment of the present invention, all belong to the scope of protection of the present invention.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, identical similar portion between each embodiment
Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for device/
For electronic equipment/storage medium embodiment, since it is substantially similar to the method embodiment, so fairly simple, the phase of description
Place is closed referring to the part of embodiment of the method to illustrate.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention
It is interior.
Claims (15)
1. a kind of information submits method, which is characterized in that it is applied to client, the method includes:
Download the original web page version file that layout is preset in external system;
By in information assembly to be committed to the original web page version file, the target webpage version corresponding to information to be committed is obtained
File;
The target webpage version file is converted into the corresponding destination file format of the external system;
Transformed target webpage version file is submitted in the external system.
2. according to the method described in claim 1, it is characterized in that, described download presets the original of layout in external system
Webpage version file, including:
The Print Preview page for showing external system downloads original web page of the Print Preview page as default layout
Version file.
3. according to the method described in claim 1, it is characterized in that, described by information assembly to be committed to the original web page
In version file, including:
Content corresponding with information to be committed in the original web page version file is deleted, the printing template text of ghost is obtained
Part;
Information to be committed is merged into the printing template file of the ghost.
4. according to the method described in claim 1, it is characterized in that, described by information assembly to be committed to the original web page
In version file, including:
Search the project name of information to be replaced in the original web page version file;
Search corresponding with project name target information in the local database, and using the target information as waiting carrying
Hand over information;
Information to be replaced in the original web page version file is replaced using the information to be committed.
5. according to the method described in claim 1, it is characterized in that, the method further includes:
Obtain the user for recording user information, determining user identity that the external system is stored on user local terminal
Data Cookie;
It is described that transformed target webpage version file is submitted in the external system, including:
The user data Cookie and transformed target webpage version file are submitted in the external system.
6. according to the method described in claim 5, it is characterized in that, the acquisition external system is stored in user locally eventually
The user data Cookie for recording user information, determining user identity on end, including:
Logging request is sent to the external system, and the logging request includes logging in account used in the external system and close
Code;So that after the external system receives the logging request, the use for recording user information, determining user identity is sent
User data Cookie;
Receive the user data Cookie that the external system is sent.
7. according to the method described in claim 6, it is characterized in that, before the transmission logging request to the external system, go back
Including:
Access request is sent to the external system;
Obtain the identifying code picture that the external system is sent;
The identifying code picture is parsed into text;
Correspondingly, described send logging request to the external system, including:
Include the logging request of the text to external system transmission.
8. a kind of information issuing means, which is characterized in that be applied to client device, described device includes:
File download unit, for downloading the original web page version file for presetting layout in external system;
Information assembled rigid unit, for by information assembly to be committed to the original web page version file, obtaining information to be committed
Corresponding target webpage version file;
File conversion unit, for the target webpage version file to be converted to the corresponding file destination lattice of the external system
Formula;
File submits unit, for transformed target webpage version file to be submitted in the external system.
9. device according to claim 8, which is characterized in that the file download unit includes:
Page presentation subelement, the Print Preview page for showing external system;
Page-downloading subelement, for downloading original web page version file of the Print Preview page as default layout.
10. device according to claim 8, which is characterized in that described information assembled rigid unit includes:
Information deletion subelement is obtained for deleting content corresponding with information to be committed in the original web page version file
To the printing template file of ghost;
Information merges subelement, for information to be committed to be merged into the printing template file of the ghost.
11. device according to claim 8, which is characterized in that described information assembled rigid unit includes:
Project searches subelement, the project name for searching information to be replaced in the original web page version file;
Information searching subelement, for searching target information corresponding with the project name in the local database, and will
The target information is as information to be committed;
Information replaces subelement, for replacing letter to be replaced in the original web page version file using the information to be committed
Breath.
12. device according to claim 8, which is characterized in that described device further includes:
User data acquiring unit is stored in believing for recording user on user local terminal for obtaining the external system
Cease, determine the user data Cookie of user identity;
Correspondingly, the file submits unit, it is specifically used for the user data Cookie and transformed target webpage version
File is submitted in the external system.
13. device according to claim 12, which is characterized in that the user data acquiring unit includes:
Transmission sub-unit is asked, for sending logging request to the external system, the logging request includes that login is described outer
Account used in portion's system and password;So that after the external system receives the logging request, send for recording user
Information, the user data Cookie for determining user identity;
User data receiving subelement, the user data Cookie sent for receiving the external system.
14. device according to claim 13, which is characterized in that described device further includes:
Request transmitting unit, for sending access request to the external system;
Picture acquiring unit, the identifying code picture sent for obtaining the external system;
Picture resolution unit, for the identifying code picture to be parsed into text;
Correspondingly, the request transmission sub-unit, specifically for being asked to the login that external system transmission includes the text
It asks.
15. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein processing
Device, communication interface, memory complete mutual communication by bus;Memory, for storing computer program;Processor,
For executing the program stored on memory, any method and steps of claim 1-7 are realized.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810159760.5A CN108287813B (en) | 2018-02-26 | 2018-02-26 | Information submission method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810159760.5A CN108287813B (en) | 2018-02-26 | 2018-02-26 | Information submission method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108287813A true CN108287813A (en) | 2018-07-17 |
CN108287813B CN108287813B (en) | 2021-06-11 |
Family
ID=62833010
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810159760.5A Active CN108287813B (en) | 2018-02-26 | 2018-02-26 | Information submission method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108287813B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108363684A (en) * | 2018-02-13 | 2018-08-03 | 中企动力科技股份有限公司 | List creation method, device and server |
CN113254744A (en) * | 2021-04-24 | 2021-08-13 | 中电长城网际系统应用广东有限公司 | Method for acquiring data information of security equipment by using web crawler technology |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101369271A (en) * | 2007-08-17 | 2009-02-18 | 徐萍 | Automatic filling mark module and its browser assembly |
CN101458693A (en) * | 2007-12-13 | 2009-06-17 | 鸿富锦精密工业(深圳)有限公司 | Web page download parsing system and method |
CN103632216A (en) * | 2012-08-27 | 2014-03-12 | 上海博路信息技术有限公司 | Fast input system based on barcode |
CN105843965A (en) * | 2016-04-20 | 2016-08-10 | 广州精点计算机科技有限公司 | Deep web crawler form filling method and device based on URL (uniform resource locator) subject classification |
-
2018
- 2018-02-26 CN CN201810159760.5A patent/CN108287813B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101369271A (en) * | 2007-08-17 | 2009-02-18 | 徐萍 | Automatic filling mark module and its browser assembly |
CN101458693A (en) * | 2007-12-13 | 2009-06-17 | 鸿富锦精密工业(深圳)有限公司 | Web page download parsing system and method |
CN103632216A (en) * | 2012-08-27 | 2014-03-12 | 上海博路信息技术有限公司 | Fast input system based on barcode |
CN105843965A (en) * | 2016-04-20 | 2016-08-10 | 广州精点计算机科技有限公司 | Deep web crawler form filling method and device based on URL (uniform resource locator) subject classification |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108363684A (en) * | 2018-02-13 | 2018-08-03 | 中企动力科技股份有限公司 | List creation method, device and server |
CN113254744A (en) * | 2021-04-24 | 2021-08-13 | 中电长城网际系统应用广东有限公司 | Method for acquiring data information of security equipment by using web crawler technology |
Also Published As
Publication number | Publication date |
---|---|
CN108287813B (en) | 2021-06-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10067931B2 (en) | Analysis of documents using rules | |
US9514106B2 (en) | Embedded device, control method therefor, program for implementing the control method, and storage medium storing the program | |
US7979434B2 (en) | System and method for storing and retrieving digital content with physical file systems | |
US8166382B2 (en) | Data processing apparatus, method of registering electronic document, and computer program | |
US9189187B2 (en) | Service providing system and service providing method for providing a service to a service usage device connected via a network | |
CN101183360B (en) | Program, character input editing method and equipment | |
CN101174269B (en) | Method and system for generating abstract-using data | |
WO2001031828A2 (en) | System and method for integrating paper-based business documents with computer-readable data entered via a computer network | |
US10136005B2 (en) | Image processing apparatus and image processing system capable of generating scan data and metadata | |
US20060190816A1 (en) | Conditional text manipulation | |
JP2021157839A (en) | Document preparation system, server device, client device, and computer program | |
CN101211361B (en) | Information processing apparatus, information processing system and information processing method | |
CN108287813A (en) | A kind of information submits method, apparatus and electronic equipment | |
US20050198561A1 (en) | System and method for dynamically linking data within a portable document file with related data content stored in a database | |
US8850039B2 (en) | Information processing system, information processor, information processing method, recording medium, and computer data signal | |
JP2006252001A (en) | Document processor | |
US20080144130A1 (en) | Document output processing | |
EP0977130A1 (en) | Facility for selecting and printing web pages | |
US9591092B2 (en) | Relaying device, image processing device, and system comprising image processing device, relaying device and service server | |
US11907904B2 (en) | Systems and methods for intelligent forms automation | |
US20040017585A1 (en) | Output supporting server, output supporting method, and output supporting system | |
CN110221790B (en) | Universal printing method and apparatus, analyzer, and storage medium | |
JP2007041983A (en) | Application form creation program and application form creation apparatus | |
US7653658B2 (en) | Data file storage/management apparatus and electronic mail processing program thereof | |
CN114741014B (en) | Method and device for filling in web form |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |