Invention content
The technical problem to be solved in the present invention is, in view of the deficiencies of the prior art, provides one kind and is handled under BS systems
The method of office files, this method in such a way that local office tools are combined, realize office files BS systems
Check and edit, to improve office files loading velocity, convenient for the user to operate.
In order to solve the above technical problems, the present invention adopts the following technical scheme that.
A method of handling office files under BS systems, it is real that this method is based on server, BS systems and a plug-in unit
Existing, the BS systems and plug-in unit are mounted under the default system of computer, and the default system is equipped with office tools, institute
The interactive interface for stating BS systems includes operation button, and the method includes having the following steps:Step S1, the BS systems positioning
Storage location of the office files in default system;Step S2, user click the operation button;Step S3, the BS systems
It unites and downloads office files to the default system;Step S4, the plug-in unit call the office tools installed under default system,
And the office files downloaded using the office tool open;Step S5, user to office files check and/
Or editor.
Preferably, in the step S2, when the user clicks after the operation button, system is given tacit consent to described in the BS system detectios
Whether plug-in unit is installed under system, if so, S3 is thened follow the steps, if it is not, thening follow the steps S20:Step S20, the BS system prompts
User installation plug-in unit, and pop up download button, when the user clicks when download button, the BS systems are to server download plug-in
Installation file, and the plug-in unit is installed under default system.
Preferably, in the step S20, after installing the plug-in unit, the BS systems download office files, obtain simultaneously
The instruction that the operation button is keyed in, opens the office files, so that user checks and/or edits later.
Preferably, in the step S20, after the installation file of the plug-in unit is downloaded successfully, the installation is automatically opened
File shows that the Setup Wizard of the installation file, user install the plug-in unit according to the Setup Wizard.
Preferably, in the step S20, installation file from the BS systems to server download plug-in when, download is asked
Summation plug-in version number is uploaded to server, if the plug-in unit has more new version, downloads the plug-in unit of more new version.
Preferably, the BS systemic presuppositions have a temp directory, and in the step S3, the BS systems are to the default system
After downloading office files, the office files are stored in the temp directory.
Preferably, in the step S5, when the BS systems, which listen to user, closes office files, the BS systems
Whether modified detect the office files, if so, the BS systems modified office files are uploaded to it is silent
Recognize system.
Preferably, when uploading office files, the BS systems preserve modified office files, if described
Office files preserve successfully, then feed back successful information to the plug-in unit, if the office files preserve failure, to plug-in unit
Feeding back unsuccessful information.
Preferably, the BS systems realize interaction with the plug-in unit by WebSocket modes.
Preferably, it when the BS systems get office files, according to the permission that the default system provides, utilizes
The office files are sent to plug-in unit and interacted by JSON formats.
In the method disclosed by the invention for handling office files under BS systems, whole operation process is using file as base
Plinth, the file operated is needed so the first step is exactly positioning, after document alignment success, it is exactly to carry out local volume to file to connect down
Volume, BS systems initiate edit requests to user local plug-in unit, if the request for sending editor is not responded at the appointed time,
Then illustrate that user is locally fitted without plug-in unit or plug-in unit by abnormal end, system prompt user needs download plug-in, under plug-in unit
Start the service of monitoring automatically after carrying installation.If the edit requests sent obtain the response of plug-in unit, illustrate that plug-in component operation is normal,
System will need to store in the file download to specified temp directory edited automatically, after plug-in unit monitors file download success,
File is opened using the office edit tools of system default, user can carry out office files the behaviour such as to view or edit
Make, plug-in unit whole process is monitored when user's operation file, when listening to user and closing file, can be transmitted according to the ends BS check or
Editing parameter, whether detection file made modification, if there is making modification, can automatically upload to file in system.It compares
For the prior art, the present invention in such a way that local office tools are combined, realizes looking into for office files BS systems
It sees and edits, to improve office files loading velocity, convenient for the user to operate.
Specific implementation mode
The present invention is described in more detail with reference to the accompanying drawings and examples.
The method that the invention discloses a kind of to handle office files under BS systems, please refers to Fig. 1, and this method is based on clothes
Business device, BS systems and a plug-in unit realize that the BS systems and plug-in unit are mounted under the default system of computer, the acquiescence system
System is equipped with office tools, and the interactive interface of the BS systems includes operation button, and the method includes having the following steps:
Step S1, storage location of the BS systems positioning office files in default system;
Step S2, user click the operation button;
Step S3, the BS systems download office files to the default system;
Step S4, the plug-in unit calls the office tools installed under default system, and is beaten using the office tools
Open the office files downloaded;
Step S5, user check and/or edit to office files.
In the above method, whole operation process is to need to operate so the first step is exactly positioning based on file
File, after document alignment success, it is exactly to carry out local editor to file to connect down, and BS systems initiate editor to user local plug-in unit asks
It asks, if the request for sending editor is not responded at the appointed time, illustrates that user is locally fitted without plug-in unit or inserts
For part by abnormal end, system prompt user needs download plug-in, starts the service of monitoring automatically after plug-in download installation.If sent
Edit requests obtain the response of plug-in unit, then illustrate that plug-in component operation is normal, system will need the file download edited to finger automatically
It stores in fixed temp directory, after plug-in unit monitors file download success, is opened using the office edit tools of system default
File, user can view or edit etc. operate to office files, and plug-in unit whole process is monitored when user's operation file,
When listening to user's closing file, the parameter (check/edit) that can be transmitted according to the ends BS, whether detection file, which did, is repaiied
Change, if there is making modification, can automatically upload to file in system.Compared to existing technologies, the present invention passes through BS systems
With the mode that local office tools are combined, realizes checking and editing for office files, add to improve office files
Carry speed, convenient for the user to operate.
As a preferred method, in the step S2, when the user clicks after the operation button, the BS system detectios
Whether plug-in unit is installed under the default system, if so, S3 is thened follow the steps, if it is not, thening follow the steps S20:
Step S20, the BS system prompts user installation plug-in unit, and pop up download button, when the user clicks download button
When, the plug-in unit and is installed under default system by the BS systems to the installation file of server download plug-in.
Further, in the step S20, after installing the plug-in unit, the BS systems download office files, obtain simultaneously
The instruction for taking the operation button to key in, opens the office files, so that user checks and/or edits later.
Secondly, in the step S20, after the installation file of the plug-in unit is downloaded successfully, the installation text is automatically opened
Part shows that the Setup Wizard of the installation file, user install the plug-in unit according to the Setup Wizard.
In addition, in the step S20, installation file from the BS systems to server download plug-in when, asked downloading
It is uploaded to server with plug-in version number, if the plug-in unit has more new version, downloads the plug-in unit of more new version.
In the present embodiment, the BS systemic presuppositions have a temp directory, and in the step S3, the BS systems are to the acquiescence
After system downloads office files, the office files are stored in the temp directory.
As a preferred method, in the step S5, when the BS systems, which listen to user, closes office files,
Whether office files are modified described in the BS system detectios, if so, the BS systems are literary by modified office
Part is uploaded to default system.
In practical application, when uploading office files, the BS systems preserve modified office files, if
The office files preserve successfully, then feed back successful information to the plug-in unit, if the office files preserve failure, to
Plug-in unit feeding back unsuccessful information.
Further, the BS systems realize interaction with the plug-in unit by WebSocket modes.
In the present embodiment, when the BS systems get office files, according to the permission that the default system provides, profit
The office files plug-in unit is sent to JSON formats to interact.
The method disclosed by the invention that office files are handled under BS systems, can refer in actual application as follows
Embodiment.
First, file is positioned:Fig. 2 is please referred to, the place containing office files in system attachment, if permission permits
Perhaps, file can be checked and edit operation, following example analyzes the Input Process of original record, analyze original note
Record is filled in the page, and the typing button of analysis original record is found.
Secondly, whether detection is local installs plug-in unit:Fig. 3 is please referred to, when the user clicks when " Excel typings " button, system
Whether plug-in unit is installed in automatic detection user computer, prompts user to download installation if being fitted without plug-in unit, user can point
Hit download editor's plug-in unit;After plug-in download success, installation file is run, plug-in unit installation operation is carried out according to guide;Work as plug-in unit
After installation is complete, the process of a LimsPlug can be seen in window system process, this illustrates that plug-in unit is installed successfully,
The operation of monitoring users in systems.
Again, office files are downloaded:After plug-in unit is installed successfully, the operation of " Excel typings ", system and use are again tapped on
Family plug-in unit interacts operation, it would be desirable to which the file download of operation is local to user, and can be by relevant operational order
(edit/check) is synchronous to download, if parameter is editor, system can lock this page, terminate until editing, if parameter is
It checks, does not then do any operation.
Later, local office tools are called, file is opened:After file download success, plug-in unit meeting calling system acquiescence
Office programs open file, and after File Open, occupation mode is identical with regular job office files.
Finally, file and upper transmitting file are closed:Fig. 4 is please referred to, for user during editing files, system plugin is always
In the editor's thread for monitoring this file, file is closed after the completion of user edits/checks, plug-in unit detects closing of a file immediately,
The parameter (check/edit) provided when according to file download judges, if parameter is editor, file is uploaded to clothes by system automatically
Business device, after file uploads successfully, system detects and unlocks this page at the ends BS automatically, if parameter is to check, will not appoint
Business operation.
In the present embodiment, the ends BS are interacted with plug-in unit based on WebSocket modes, in the form of keeping long connection, are supervised in real time
Listen the variation of file status.
About plug-in unit interaction technique:When the user clicks when " Excel typings ", the ends BS send connection request and version to plug-in unit
Number, if connection passes through, plug-in unit meeting fit version number, if there is new version, plug-in unit can be downloaded and update latest edition automatically.Such as
Fruit connection failure, then pop up download plug-in prompting frame (plug-in unit install can self-starting, do not connect, think service do not start
Or do not install);After successful connection, the office files for needing to operate are being found at the ends BS from the background, and relevant power is provided according to system
Limit, transfers data to plug-in unit using JSON formats and interacts;When user's operation completes upper transmitting file, the ends BS to file into
The relevant reception of row is operated with preserving, if file preserves successfully, is returned to true to plug-in unit, is failed if file preserves, to slotting
Part feeds back false.
About plug-in part technology:Plug-in unit follows operating system to start automatically, need not manually participate in start-up course.Startup when
It waits, while starting 15678 ports and being monitored.When listening to data every time, checks the version of program and whether need more
Newly.If necessary to update, startup is automatically updated module and automatically updated by plug-in unit;Opening file request is sent when monitoring BS
When, it calls the ends BS to download the interface of file, downloads files into user local and open file, whether closed while listening for file
It closes.If closing of a file and changed.Plug-in unit will call file to upload interface, and file is uploaded to the ends BS.
The Parameter analysis of electrochemical that the present embodiment is related to includes:CURL is resolution file download address;DOURL is that parsing uploads ground
Location;VERSION is parsing latest edition number, compares current version, is updated if having more new version;OPTYPE is resolution file class
Type, it is read-only to open type OPTYPE, V, and E is editable, read-only status not upper transmitting file after closing;About State,
BeginEdit is to be currently at editing mode, and endEdit is that editor completes.
The method disclosed by the invention that office files are handled under BS systems, beneficial effect compared to existing technologies
Fruit is that the present invention uses plug-in mode monitoring file editing process, and compatibility is strong, stable.Meanwhile the present invention uses this
Ground office tools carry out Document Editing, and file loading velocity is fast, and user's operation learning cost is low.In addition, the execution of the present invention
For process using automatic upload, downloading mode, woth no need to user intervention, operation is smooth, and then improves user experience.
The above is preferred embodiments of the present invention, is not intended to restrict the invention, all technology models in the present invention
Interior done modification, equivalent replacement or improvement etc. are enclosed, should be included in the range of of the invention protect.