[go: up one dir, main page]

CN102110083A - Client device and method for supporting online and offline editing of document - Google Patents

Client device and method for supporting online and offline editing of document Download PDF

Info

Publication number
CN102110083A
CN102110083A CN2009102439671A CN200910243967A CN102110083A CN 102110083 A CN102110083 A CN 102110083A CN 2009102439671 A CN2009102439671 A CN 2009102439671A CN 200910243967 A CN200910243967 A CN 200910243967A CN 102110083 A CN102110083 A CN 102110083A
Authority
CN
China
Prior art keywords
document
document content
content
terminal device
client terminal
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.)
Pending
Application number
CN2009102439671A
Other languages
Chinese (zh)
Inventor
龚文荣
杨飞
梁鹏
闫国龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN2009102439671A priority Critical patent/CN102110083A/en
Publication of CN102110083A publication Critical patent/CN102110083A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

本发明公开了一种支持在线以及离线文档编辑的客户端装置及方法。该文档编辑方法包括:通过客户端装置下载服务端的文档内容以及文档状态信息;在服务端标记该文档为锁定状态以禁止他人对文档内容进行修改;对文档内容进行编辑;以及提交经编辑后的文档内容,并撤销该文档的锁定状态以允许他人对文档内容进行修改;提交经编辑后的文档内容并撤销该文档的锁定状态以允许他人对文档内容进行修改的步骤包括:在客户端装置在线的情况下,直接向服务端提交经编辑后的文档并撤销该文档的锁定状态以允许他人对文档内容进行修改;以及在客户端装置离线的情况下,将向服务端提交经编辑后的文档的自动提交指令保存到客户端装置的本地的自动提交指令队列中。

Figure 200910243967

The invention discloses a client device and method supporting online and offline document editing. The document editing method includes: downloading the document content and document status information of the server through the client device; marking the document as a locked state on the server to prohibit others from modifying the document content; editing the document content; and submitting the edited document. document content, and revoke the lock status of the document to allow others to modify the document content; the steps of submitting the edited document content and revoking the lock status of the document to allow others to modify the document content include: In the case of , submit the edited document directly to the server and revoke the lock status of the document to allow others to modify the content of the document; and when the client device is offline, the edited document will be submitted to the server The auto-commit commands are stored in the local auto-commit command queue of the client device.

Figure 200910243967

Description

支持在线以及离线文档编辑的客户端装置及方法Client device and method supporting online and offline document editing

技术领域technical field

本发明涉及印前计算机排版技术领域,具体涉及一种支持在线以及离线文档编辑的客户端装置及方法。The invention relates to the technical field of prepress computer typesetting, in particular to a client device and method supporting online and offline document editing.

背景技术Background technique

随着计算机技术的发展,基于C/S架构的文档编辑系统也得到了大量的应用,如协同编辑系统,文档保存在服务器内,客户端装置下载文档编辑后,再上传到服务器,中间还会涉及到文档流程状态的变换。随着客户端装置工作环境的多样性,可能在有些情况下客户端装置是无法连接到服务端的。但是,在很多应用中,往往还需要在客户端装置无法连接到服务端的情况下保证客户端装置能正常地进行编辑及提交工作。目前,客户端装置的离线编辑功能一般是直接编辑已经下载的文档,当客户端装置上线之后,再上传文档,修改文档流程状态。With the development of computer technology, document editing systems based on C/S architecture have also been widely used, such as collaborative editing systems, documents are stored in the server, the client device downloads and edits the document, and then uploads it to the server. Involves a change in the state of the document flow. With the diversity of the working environment of the client device, it may be impossible for the client device to connect to the server in some cases. However, in many applications, it is often necessary to ensure that the client device can normally edit and submit work when the client device cannot connect to the server. At present, the offline editing function of the client device generally directly edits the downloaded document, and then uploads the document after the client device goes online to modify the document flow status.

具体地说,在现有的技术中,客户端装置的离线编辑仅局限于客户端装置本地已经下载的文档,并且在离线状态下无法与服务端的文档进行比较,或者撤销掉自己的修改,恢复到本次开始编辑的初始状态。现有软件中支持的Undo/Redo功能虽然能进行一些恢复功能,但是如果程序关闭之后再打开,就不能再对修改进行恢复了。Specifically, in the existing technology, the offline editing of the client device is limited to the files that the client device has downloaded locally, and it cannot be compared with the server's file in the offline state, or undo its own modification, restore Go to the initial state where editing started this time. Although the Undo/Redo function supported by the existing software can perform some restoration functions, if the program is closed and opened again, the modification cannot be restored.

并且,在现有的技术中,不能离线提交文档流程的切换指令(例如,在文档写作完成之后需要将其提交到下一流程,或者判定文档不合格需要将其退回到上一流程),只能等客户端装置上线后再手工的将其提交。Moreover, in the existing technology, the switching instruction of the document process cannot be submitted offline (for example, after the document writing is completed, it needs to be submitted to the next process, or it is determined that the document is unqualified and needs to be returned to the previous process), only It can be submitted manually after the client device is online.

因此,现有的技术方案限制了文档编辑器的适用环境以及使用的便捷性。希望能够提出一种能克服现有技术的上述缺陷的改进方案,其能够实现一个或多个下述功能:文档的离线提交、在离线状态下对文档修改进行撤销以及确保下载及上传文档的正确性。Therefore, the existing technical solutions limit the applicable environment and the convenience of use of the document editor. It is hoped that an improved solution that can overcome the above-mentioned defects of the prior art can be proposed, and it can realize one or more of the following functions: offline submission of documents, undoing document modification in offline state, and ensuring correctness of downloaded and uploaded documents sex.

发明内容Contents of the invention

本发明的一个目的是提供一种支持在线以及离线文档编辑的客户端装置及方法,用于保证文档编辑器客户端装置在线和离线状态下都能工作,并提供尽可能完备的功能,扩大文档编辑器的适用环境,增强其使用便捷性;具体地说,根据本发明的方法和装置能够实现一个或多个下述功能:文档的离线提交、在离线状态下对文档修改进行撤销以及确保下载及上传文档的正确性。An object of the present invention is to provide a client device and method supporting online and offline document editing, which is used to ensure that the document editor client device can work both online and offline, and provide as complete functions as possible to expand the document The applicable environment of the editor enhances its convenience of use; specifically, the method and device according to the present invention can realize one or more of the following functions: offline submission of documents, undoing of document revisions in an offline state, and guaranteed downloading and the correctness of uploaded documents.

为了实现上述目的,根据本发明的第一方面,提供了一种用于文档编辑的方法,所述方法包括步骤:通过客户端装置下载服务端的文档内容以及文档状态信息;在服务端标记该文档为锁定状态以禁止他人对文档内容进行修改;对文档内容进行编辑;以及提交经编辑后的文档内容,并撤销该文档的锁定状态以允许他人对文档内容进行修改;其中,所述提交经编辑后的文档内容并撤销该文档的锁定状态以允许他人对文档内容进行修改的步骤包括:在客户端装置在线的情况下,直接向服务端提交经编辑后的文档,并撤销该文档的锁定状态以允许他人对文档内容进行修改;以及在客户端装置离线的情况下,则将向服务端提交经编辑后的文档的自动提交指令保存到客户端装置的本地的自动提交指令队列中。其中,“客户端装置在线”可具体表示客户端装置与服务端处于连通状态,而“客户端装置离线”可具体表示客户端装置与服务端处于非连通状态。In order to achieve the above object, according to the first aspect of the present invention, a method for document editing is provided, the method includes the steps of: downloading the document content and document status information of the server through the client device; marking the document at the server Be in a locked state to prevent others from modifying the content of the document; edit the content of the document; and submit the edited content of the document, and revoke the lock status of the document to allow others to modify the content of the document; wherein, the submitted edited The step of modifying the content of the document and revoking the lock status of the document to allow others to modify the content of the document includes: submitting the edited document directly to the server when the client device is online, and revoking the lock status of the document To allow others to modify the content of the document; and when the client device is offline, the automatic submission instruction for submitting the edited document to the server is saved in the local automatic submission instruction queue of the client device. Wherein, "the client device is online" may specifically mean that the client device is connected to the server, and "client device is offline" may specifically mean that the client device is not connected to the server.

具体地说,“自动提交指令”可具体地表示主要包括执行下列操作的指令:一、对经编辑后的文档内容的提交、退回等切换文档流程状态操作;二、解除文档标记,允许他人修改,即“签入”;三、更新客户端装置本地baseDocument文档内容和状态信息。并且,“自动提交指令队列”可表示包含有自动提交指令的指令队列。此处,需要说明的是,baseDocument是用来指代从服务端下载的文档和文档状态信息,自动拷贝该文档和文档状态信息得到的副本。Specifically, the "automatic submission instruction" can specifically refer to an instruction that mainly includes the following operations: 1. Submitting and returning the edited document content to switch the status of the document process; 2. Unmarking the document to allow others to modify it , that is, "check in"; 3. Update the content and state information of the local baseDocument document on the client device. Also, "auto-commit command queue" may refer to a command queue including auto-commit commands. Here, it should be noted that baseDocument is used to refer to the document and document status information downloaded from the server, and the copy obtained by automatically copying the document and document status information.

这样,本发明的方法支持了离线状态下对文档进行流程状态的操作,在编辑器上线之后即可自动上传对文档内容的更改和对文档状态进行的操作。采用本发明所述方法保证了文档编辑客户端装置在离线状态下仍然可对文档流程状态进行修改,使文档编辑器客户端装置的适用环境更加广泛灵活。In this way, the method of the present invention supports the operation of the flow state of the document in the offline state, and the modification of the content of the document and the operation of the state of the document can be automatically uploaded after the editor is online. The adoption of the method of the invention ensures that the document editing client device can still modify the document flow state in an offline state, so that the applicable environment of the document editor client device is more extensive and flexible.

在本发明的优选实施例中,所述方法还包括:定期或者定时检测客户端装置中的自动提交指令队列和网络状态,若自动提交指令队列不为空,则在网络状态连通时按顺序执行自动提交指令队列中的自动提交指令。这就提供了一种在编辑器上线之后即可自动上传对文档内容的更改和对文档状态进行的操作的可行方案。In a preferred embodiment of the present invention, the method further includes: periodically or regularly detecting the automatic submission command queue and network status in the client device, if the automatic submission command queue is not empty, then execute in order when the network status is connected Autocommit instructions in the autocommit instruction queue. This provides a feasible solution to automatically upload changes to document content and operations on document status after the editor is online.

在本发明的优选实施例中,在下载服务端的文档内容以及文档状态信息的步骤之后,将下载得到的文档内容和服务端文档的文档内容进行比较,如果文档内容不同,则重新下载文档。具体地说,可以通过比较将要提交的文档的MD5校验码和服务端文档MD5校验码来比较文档内容是否相同。In a preferred embodiment of the present invention, after the step of downloading the document content and document state information of the server, the downloaded document content is compared with the document content of the server document, and if the document content is different, the document is re-downloaded. Specifically, it is possible to compare whether the contents of the documents are the same by comparing the MD5 check code of the document to be submitted with the MD5 check code of the server document.

通过将下载得到的文档内容和服务端文档的文档内容进行比较,能够保证下载内容的正确性。尤其是,利用MD5校验码来比较文档内容,使得比较操作更加方便、简单、快速。The correctness of the downloaded content can be ensured by comparing the downloaded document content with the document content of the server document. In particular, using the MD5 check code to compare document content makes the comparison operation more convenient, simple and fast.

在本发明的优选实施例中,在进行编辑之前对所下载的文档内容进行自动拷贝以得到一个副本,当需要撤销修改时,将正在修改的文档内容与所述副本的文档内容进行比较,以撤销修改。In a preferred embodiment of the present invention, the downloaded document content is automatically copied to obtain a copy before editing, and when it is necessary to undo the modification, the document content being modified is compared with the document content of the copy to obtain a copy. Undo changes.

在根据本发明的方法中,通过对所下载的文档内容进行自动拷贝以得到一个副本,使得文档编辑器即使在离线之后也能够查看文档内容的修改情况,允许撤销对文档内容的修改。这样用户可以实现对不期望的修改进行恢复。In the method according to the present invention, by automatically copying the downloaded document content to obtain a copy, the document editor can check the modification of the document content even after being offline, and allow the revision of the document content to be undone. In this way, the user can implement recovery of undesired modifications.

在本发明的优选实施例中,在提交文档内容之前,先比较将要提交的文档内容和服务端文档的文档内容,如果相同则不再上传文档内容;如果不同则上传文档内容。具体地说,可以通过比较将要提交的文档的MD5校验码和服务端文档MD5校验码来比较文档内容是否相同。In a preferred embodiment of the present invention, before submitting the document content, first compare the document content to be submitted with the document content of the server document, if they are the same, the document content will not be uploaded; if they are different, the document content will be uploaded. Specifically, it is possible to compare whether the contents of the documents are the same by comparing the MD5 check code of the document to be submitted with the MD5 check code of the server document.

上传之前比较文档MD5校验码,能够防止重复上传文档,并保证了上传的文档内容正确。Compare the MD5 check code of the document before uploading, which can prevent repeated uploading of the document and ensure that the content of the uploaded document is correct.

根据本发明的另一方面,提供了一种用于文档编辑的客户端装置,所述客户端装置被布置用于执行如前面所述的方法。本领域技术人员可以理解的是,根据本发明的客户端装置能够执行根据本发明的上述方法,从而,根据本发明的客户端装置同样能够实现本发明的方法所实现的所有有益效果。According to another aspect of the present invention, there is provided a client device for document editing, which is arranged to perform the method as described above. Those skilled in the art can understand that the client device according to the present invention can execute the above-mentioned method according to the present invention, thus, the client device according to the present invention can also realize all the beneficial effects achieved by the method of the present invention.

具体地说,所述客户端装置包括控制器,用于通过客户端装置下载服务端的文档内容以及文档状态信息;在服务端标记该文档为锁定状态以禁止他人对文档内容进行修改;编辑器,用于对文档内容进行编辑;并且所述控制器还用于提交经编辑后的文档内容,并撤销该文档的锁定状态以允许他人对文档内容进行修改;其中,所述控制器在提交经编辑后的文档内容时,用于在客户端装置在线的情况下,直接向服务端提交经编辑后的文档;以及在客户端装置离线的情况下,则将向服务端提交经编辑后的文档的自动提交指令保存到客户端装置的本地的自动提交指令队列中。Specifically, the client device includes a controller, which is used to download the document content and document status information of the server through the client device; mark the document as a locked state at the server to prohibit others from modifying the document content; the editor, It is used to edit the content of the document; and the controller is also used to submit the edited document content, and cancel the lock status of the document to allow others to modify the content of the document; wherein, the controller submits the edited When the content of the updated document is used, it is used to directly submit the edited document to the server when the client device is online; and when the client device is offline, it will submit the edited document to the server The autocommit command is stored in a local autocommit command queue of the client device.

在优选实施例中,所述控制器还用于定期检测客户端装置中的自动提交指令队列以及客户端装置和服务端之间的网络连接状态,若自动提交指令队列不为空,则在网络状态连通时按顺序执行自动提交指令队列中的自动提交指令。In a preferred embodiment, the controller is also used to regularly detect the automatic submission command queue in the client device and the network connection status between the client device and the server. If the automatic submission command queue is not empty, the network When the state is connected, the auto-commit instructions in the auto-commit instruction queue are executed in sequence.

根据本发明的又一方面,提供了一种协同文档编辑系统,该协同文档编辑系统采用了上述客户端装置,由此根据本发明的协同文档编辑系统同样能够实现本发明的方法所实现的所有有益效果。According to yet another aspect of the present invention, a collaborative document editing system is provided, the collaborative document editing system adopts the above-mentioned client device, so the collaborative document editing system according to the present invention can also realize all the functions realized by the method of the present invention Beneficial effect.

附图说明Description of drawings

图1是本发明所述客户端装置本地文档保存结构;Fig. 1 is the local file storage structure of the client device according to the present invention;

图2是本发明所述客户端装置适用的流程系统环境;Fig. 2 is the flow system environment applicable to the client device of the present invention;

图3是本发明所述方法流程图;Fig. 3 is a flow chart of the method of the present invention;

图4是本发明所述签入操作流程图;Fig. 4 is a flowchart of the check-in operation described in the present invention;

图5是本发明所述客户端装置的流程操作流程图;Fig. 5 is a flow chart of the process operation of the client device according to the present invention;

图6是本发明所述客户端装置本地检查操作队列流程图;Fig. 6 is a flow chart of the local inspection operation queue of the client device according to the present invention;

图7是本发明所述客户端装置本地保存文档状态信息数据结构图;以及Fig. 7 is a data structure diagram of the document state information stored locally by the client device according to the present invention; and

图8是根据本发明的客户端装置的结构框图。FIG. 8 is a structural block diagram of a client device according to the present invention.

附图是示意性的,其用于说明本发明而非限制本发明。The drawings are schematic and serve to illustrate the invention rather than limit it.

具体实施方式Detailed ways

下面结合附图对本发明的具体实施方式进行详细说明。Specific embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.

图1是本发明所述客户端装置本地文档保存结构,如图1所示:从服务端下载的文档保存到工作目录中,附加流程信息存储在该目录中与文档同名的xml文件中。并且,拷贝一份文档的副本到baseDocument目录中。Fig. 1 is the local file storage structure of the client device of the present invention, as shown in Fig. 1: the file downloaded from the server is saved in the working directory, and the additional process information is stored in the xml file with the same name as the file in the directory. Also, make a copy of the document into the baseDocument directory.

图2是本发明所述系统适用的流程系统环境,具体地说,在本实施例中,该流程环境系统为协同文件编辑系统环境。如图2所示,文档编辑系统具备文档流程,各流程有独立责任人,负责编辑文档,责任人使用文档编辑器在客户端装置下载上一流程提交的文档,编辑后提交到下一流程节点。Fig. 2 is a process system environment applicable to the system of the present invention. Specifically, in this embodiment, the process environment system is a collaborative document editing system environment. As shown in Figure 2, the document editing system has a document process, and each process has an independent responsible person who is responsible for editing the document. The responsible person uses the document editor to download the document submitted by the previous process on the client device, and submits it to the next process node after editing .

图3是是本发明所述方法流程图,如图所示:Fig. 3 is a flow chart of the method of the present invention, as shown in the figure:

步骤301:下载文档内容和文档状态信息。如图7给出了具体状态信息的一个示例,其中包括服务器地址、用户名、密码(密码部分在客户端装置本地存储时已经加密)。客户端装置根据下载的文档内容计算MD5校验码。在本实施例中,计算下载得到的文档MD5校验码和服务端文档校验码比较,如果校验码不同,则重新下载文档,如果校验码相同,则认为文档相同。并且,在对文档进行编辑之前,对所下载的文档进行拷贝,以得到一个文档副本。Step 301: Download document content and document status information. An example of specific state information is shown in FIG. 7 , including server address, user name, and password (the password part has been encrypted when stored locally on the client device). The client device calculates the MD5 check code according to the downloaded file content. In this embodiment, the calculated and downloaded document MD5 check code is compared with the server document check code, and if the check code is different, the file is re-downloaded, and if the check code is the same, the document is considered to be the same. And, before the document is edited, the downloaded document is copied to obtain a copy of the document.

其中,MD5是一种信息摘要算法,它可以对任何文件产生一个唯一的MD5验证码,一旦这个文件在传输过程中,其内容被损坏或者被修改的话,那么这个文件的MD5码就会发生变化,通过对文件MD5的验证,可以得知获得的文件是否完整。一份关于MD5算法描述的专业文档可以从http://www.ietf.org/rfc/rfc1321.txt得到,该文档由ronald l.rivest在1992年8月向ieft提交。Among them, MD5 is an information digest algorithm, which can generate a unique MD5 verification code for any file. Once the content of the file is damaged or modified during transmission, the MD5 code of the file will change. , by verifying the MD5 of the file, it can be known whether the obtained file is complete. A professional document describing the MD5 algorithm can be obtained from http://www.ietf.org/rfc/rfc1321.txt, which was submitted to ieft by ronald l.rivest in August 1992.

步骤302:签出文档,在服务端标记该文档为锁定状态,禁止他人修改。Step 302: check out the document, mark the document as locked on the server side, and prohibit others from modifying it.

步骤303:用户查看下载的文档是否符合该流程的要求,如果不符合当前流程要求则可以退回到上一流程,由上一流程负责人继续处理。如果符合当前流程要求,则进入编辑状态。其中,“文档是否符合该流程的要求”可具体表示但不限于查看文档是否已经合格地完成了上一流程的处理。Step 303: The user checks whether the downloaded document meets the requirements of the process. If it does not meet the requirements of the current process, it can return to the previous process, and the person in charge of the previous process will continue to process. If it meets the requirements of the current process, enter the editing state. Wherein, "whether the document complies with the requirements of the process" may specifically mean, but is not limited to, checking whether the document has been processed in the previous process satisfactorily.

步骤304:客户端装置在本地编辑文档,在编辑过程中可以随时与步骤301得到的文档副本的文档内容进行比较,得到修改情况,或者撤销本次修改,恢复到初始状态。Step 304: The client device edits the document locally. During the editing process, it can compare with the content of the document copy obtained in step 301 at any time to obtain the modification, or cancel the modification and return to the original state.

步骤305:进入签入操作流程,该详细操作流程可参见图4以及下文中对图4的具体描述。Step 305: Enter the check-in operation process. For the detailed operation process, please refer to FIG. 4 and the specific description of FIG. 4 below.

步骤306:客户端装置提交文档的流程操作流程,该详细操作流程可参见图5以及下文中对图5的具体描述。Step 306: the operation flow of the client device submitting the document. For the detailed operation flow, please refer to FIG. 5 and the specific description of FIG. 5 below.

图4是本发明所述签入操作流程图,如图4所示:Fig. 4 is a flowchart of the check-in operation described in the present invention, as shown in Fig. 4:

步骤401:保存文档。Step 401: Save the document.

步骤402:判断客户端装置是否在线,如果在线,则转入步骤403。如果离线,则转入步骤406。Step 402: Determine whether the client device is online, and if so, go to step 403. If offline, go to step 406.

步骤403:上传文档内容,在上传前比较客户端装置和服务端文档MD5校验值,如果校验值相同则不再重复上传。Step 403: Upload the document content, compare the MD5 verification value of the client device and the server document before uploading, if the verification value is the same, do not upload again.

步骤404:解除服务端文档解除服务端文档标记,允许他人修改,即签入。Step 404: Undo the document on the server Unmark the document on the server, allowing others to modify it, that is, to check in.

步骤405:更新客户端装置本地baseDocument文档内容和状态信息。转到步骤407。具体地说,客户端装置本地的baseDocument文档就是服务器文档的一个副本,所以当服务器文档发生改变的时候这个文档跟着改变。在步骤405中,由于更新本地baseDocument是在上传文档内容和签入操作之后,所以会将图7中所示的文档状态信息的<Checksum>14c88bd49089a8d51181275d76d99862</Checksum>改为新的文档内容的校验码。表示签出状态的<IsCheckout>True</IsCheckout>也会改为<IsCheckout>False</IsCheckout>。Step 405: Update the content and state information of the local baseDocument of the client device. Go to step 407. Specifically, the local baseDocument document of the client device is a copy of the server document, so when the server document changes, the document changes accordingly. In step 405, since updating the local baseDocument is after uploading the document content and checking in, the <Checksum>14c88bd49089a8d51181275d76d99862</Checksum> of the document state information shown in Figure 7 will be changed to the checksum of the new document content code. <IsCheckout>True</IsCheckout> indicating the checkout status will also be changed to <IsCheckout>False</IsCheckout>.

步骤406:将与自动提交编辑后的文档有关的操作指令加入客户端装置的本地操作指令队列。Step 406: Add the operation instructions related to the automatic submission of the edited document into the local operation instruction queue of the client device.

步骤407:修改工作目录文档状态,标记为已签入。Step 407: Modify the status of the working directory document and mark it as checked in.

需要说明的是,流程中所述的术语“签出”即表示“在服务端标记该文档为锁定状态,禁止他人修改”。并且,本领域技术人员可以理解的是,客户端装置一般在正确地下载文档内容之后进行签出操作。,而术语“签入”则相应地表示“解除服务端文档标记,允许他人修改”。同样,本领域技术人员可以理解的是,客户端装置一般在正确地上传经编辑后的文档内容之后进行签入操作。It should be noted that the term "check out" mentioned in the process means "mark the document as locked on the server side and prohibit others from modifying it". Moreover, those skilled in the art can understand that, generally, the client device performs a checkout operation after downloading the document content correctly. , and the term "check-in" correspondingly means "unmark the server-side document to allow others to modify it". Likewise, those skilled in the art can understand that the client device generally performs a check-in operation after uploading the edited document content correctly.

图5是本发明所述客户端装置的流程操作流程图,如图5所示:Fig. 5 is a flow chart of the process operation of the client device according to the present invention, as shown in Fig. 5:

步骤501判断客户端装置是否在线,如果在线,则转入步骤502,如果客户端装置是离线状态,则转入步骤504。Step 501 judges whether the client device is online, if online, proceeds to step 502, and if the client device is offline, proceeds to step 504.

步骤502:向服务端发出流程操作指令,从而指示文档进入下一流程状态。具体地说,流程操作指令的主要操作可以是“主档提交,并进入下一流程”或者“文档退回,并退回到上一流程;并且,流程操作指令还可以包括“撤销文档标记,允许他人修改”,以便在撤销文档标记之后能够进行流程转移。Step 502: Send a process operation instruction to the server, thereby instructing the document to enter the next process state. Specifically, the main operation of the process operation instruction can be "submit the main file, and enter the next process" or "return the document, and return to the previous process; and, the process operation instruction can also include "revoke the document mark, allow others to Modify" to enable process transfer after unmarking a document.

步骤503:更新客户端装置的本地baseDocument文档状态信息。于是,操作结束。具体地说,在步骤503中,由于更新本地baseDocument是在向服务端发送流程操作之后,所以会将图七中的<DocumentFlowId>2</DocumentFlowId>改为新的节点值。Step 503: Update the local baseDocument document state information of the client device. Thus, the operation ends. Specifically, in step 503, since updating the local baseDocument is after sending the flow operation to the server, the <DocumentFlowId>2</DocumentFlowId> in Figure 7 will be changed to a new node value.

步骤504:将流程操作指令保存到客户端装置的本地的自动提交指令队列中。Step 504: Save the process operation instruction into the local automatic submission instruction queue of the client device.

图6是本发明所述客户端装置的另一流程操作流程图,具体地说,其中示出了客户端装置自动提交文档的流程,例如,该流程可在客户端装置开机时自动执行,或者在启动某个软件时自动运行等。如图6所示:Fig. 6 is another process operation flow chart of the client device according to the present invention, specifically, it shows the process of the client device automatically submitting documents, for example, this process can be automatically executed when the client device is turned on, or Automatically run when starting a certain software, etc. As shown in Figure 6:

步骤601:判断客户端装置中的操作队列是否为空,如果为空,经过一个预定的延时之后回到步骤601,如果不为空,则转入步骤602。其中,该预定的延时可以根据具体情况进行设置。Step 601: Determine whether the operation queue in the client device is empty, if it is empty, go back to step 601 after a predetermined delay, if not, go to step 602. Wherein, the predetermined delay can be set according to specific conditions.

步骤602:判断客户端装置与服务端是否连通,如果不能连通,则经过延时之后回到步骤601,如果能连通则转入步骤603。Step 602: Determine whether the client device is connected to the server, if not, go back to step 601 after a delay, and go to step 603 if connected.

步骤603:按顺序从操作队列中取出一个操作指令。Step 603: Take out an operation instruction from the operation queue in sequence.

步骤604:执行操作指令。根据操作指令类别进行操作,详细执行流程参见图4和图5,以完成对经编辑后的文档内容的提交,对文档流程状态进行修改以允许他人进行修改,更新客户端装置本地baseDocument文档内容和状态信息,以及指示进入下一文档编辑流程等操作。Step 604: Execute the operation instruction. Operate according to the type of operation instruction, see Figure 4 and Figure 5 for the detailed execution process, to complete the submission of the edited document content, modify the document flow status to allow others to modify, update the local baseDocument document content and Status information, and instructions to enter the next document editing process and other operations.

本发明还提供了一种客户端装置,所述客户端装置能执行上述操作流程,以执行本发明的方法。具体地说,例如,客户端装置的实现形式可以是个人计算机(PC)、笔记本电脑、掌上电脑等具有相应功能的电子装置。并且,本发明并不要求具体地限定客户端装置的形式,而是可以以软件、硬件或者两者的结合来实现所述客户端装置的各种功能。The present invention also provides a client device, which can execute the above-mentioned operation flow to execute the method of the present invention. Specifically, for example, the implementation form of the client device may be an electronic device with corresponding functions such as a personal computer (PC), a notebook computer, and a palmtop computer. Moreover, the present invention does not require to specifically limit the form of the client device, but various functions of the client device may be realized by software, hardware or a combination of the two.

图8是根据本发明的客户端装置的结构框图。可以看出,本实施例的客户端装置10包括控制器20以及编辑器30。编辑器30用于对下载的文档内容进行编辑,而控制器20用于执行除编辑之外的其他功能(例如,下载文档、标记、检测网络连通状态、提交文档等)。在替换实施例中,编辑器30可并入控制器20作为控制器20的一部分。并且,客户端装置可包括存储器,用于存储所下载的文档及其副本,但是可选地,所下载的文档及其副本也可以存储在控制器20的内部存储器中。FIG. 8 is a structural block diagram of a client device according to the present invention. It can be seen that the client device 10 of this embodiment includes a controller 20 and an editor 30 . The editor 30 is used for editing the content of the downloaded document, and the controller 20 is used for performing other functions (for example, downloading the document, marking, checking the network connection status, submitting the document, etc.) other than editing. In an alternate embodiment, editor 30 may be incorporated into controller 20 as part of controller 20 . Also, the client device may include a memory for storing the downloaded document and its copy, but alternatively, the downloaded document and its copy may also be stored in the internal memory of the controller 20 .

虽然以具体的实施例详细地描述了本发明,但是,这些实施例是用于说明本发明而不是限制本发明。本领域技术人员可以理解的是,针对具体的应用环境和应用要求,可以省略实施例示例所述的部分步骤。例如,对于仅仅希望实现自动提交功能而无需实现文档修改撤销功能的具体应用中,可以不进行副本拷贝的步骤。Although the present invention has been described in detail with specific examples, these examples are for illustrating the present invention rather than limiting the present invention. Those skilled in the art can understand that, according to specific application environments and application requirements, some steps described in the example embodiments may be omitted. For example, for a specific application that only wants to realize the function of automatic submission without the function of revocation of document modification, the step of copying may not be performed.

并且,虽然将客户端装置划分成控制器和编辑器两个模块来说明根据本发明的客户端装置,但这仅仅作为示例而不是限制本发明。本领域技术人员可以理解的是,同一模块的不同功能可由多个分立的子模块实现,同样,不同模块的功能,可集成在一个模块中实现。And, although the client device according to the present invention is described by dividing the client device into two modules of the controller and the editor, this is only an example and does not limit the present invention. Those skilled in the art can understand that different functions of the same module can be implemented by multiple separate sub-modules, and similarly, the functions of different modules can be integrated into one module.

对于本领域技术人员来说明显的是,可在不脱离本发明的范围的情况下对本发明进行各种改变和变形。所描述的实施例仅用于说明本发明,而不是限制本发明。本发明并不限于所述实施例,而是仅由所附权利要求限定。It will be apparent to those skilled in the art that various changes and modifications can be made in the present invention without departing from the scope of the invention. The described embodiments are only used to illustrate the invention, not to limit it. The invention is not limited to the described embodiments, but only by the appended claims.

Claims (10)

1. method that is used for documents editing, described method comprises step:
Document content and document status information by client terminal device download service end;
At service end mark the document is that lock-out state is made amendment to document content to forbid other people;
Document content is edited; And
Submission behind editor document content and the lock-out state of cancelling the document to allow other people document content is made amendment;
It is characterized in that, described submission behind editor document content and the lock-out state of cancelling the document comprise with the step that allows other people that document content is made amendment:
Under the online situation of client terminal device, directly submit document behind editor to, and the lock-out state of cancelling the document is made amendment to document content to allow other people to service end; And
Under the situation of client terminal device off-line, then will submit to the automatic submission instruction of the document behind editor to be saved in the automatic submission instruction queue of this locality of client terminal device to service end.
2. the method for claim 1, wherein described method also comprises:
Automatic submission instruction queue in the regular detection client terminal device and the network connection state between client terminal device and the service end, if it is not empty submitting instruction queue automatically to, then when being communicated with, network state carries out the automatic submission instruction in the automatic submission instruction queue in order.
3. the method for claim 1, wherein, described method also is included in after the step of the document content of download service end and document status information, and the document content that download is obtained and the document content of service end document compare, if the document content difference is then downloaded document again.
4. the method for claim 1, wherein, described method also was included in before document content is edited, the document content of being downloaded is copied automatically to obtain a copy, and document content is being carried out in the edit step, when needs are cancelled when revising, the document content revised and the document content of described copy are compared, to cancel modification.
5. the method for claim 1, wherein before submitting document content to, if the document content that relatively will submit to and the document content of service end document earlier are identical then no longer upload document content; If difference then upload document content.
6. as claim 3 or 5 described methods, wherein, come the comparison document content whether identical with service end document MD5 check code by the MD5 check code that compares the document that to submit to.
7. client terminal device that is used for documents editing, described client terminal device comprises:
Controller is used for document content and document status information by client terminal device download service end; At service end mark the document is that lock-out state is made amendment to document content to forbid other people;
Editing machine is used for document content is edited; And
Described controller also is used to submit to the document content behind editor, and the lock-out state of cancelling the document is made amendment to document content to allow other people;
It is characterized in that described controller is used under the online situation of client terminal device when the document content of submitting to behind editor, directly to the document of service end submission behind editor; And under the situation of client terminal device off-line, then will submit to the automatic submission instruction of the document behind editor to be saved in the automatic submission instruction queue of this locality of client terminal device to service end.
8. client terminal device as claimed in claim 1, wherein said controller also is used for regularly detecting the automatic submission instruction queue of client terminal device and the network connection state between client terminal device and the service end, if it is not empty submitting instruction queue automatically to, then when being communicated with, network state carries out the automatic submission instruction in the automatic submission instruction queue in order.
9. client terminal device as claimed in claim 1, wherein said controller also was used for before document content is edited, the document content of being downloaded is copied automatically to obtain a copy, and document content is being carried out in the edit step, when needs are cancelled modification, the document content revised and the document content of described copy are compared, to cancel modification.
10. one kind has been adopted the cooperated documents editing system as the described client terminal device of one of claim 7 to 9.
CN2009102439671A 2009-12-28 2009-12-28 Client device and method for supporting online and offline editing of document Pending CN102110083A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009102439671A CN102110083A (en) 2009-12-28 2009-12-28 Client device and method for supporting online and offline editing of document

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009102439671A CN102110083A (en) 2009-12-28 2009-12-28 Client device and method for supporting online and offline editing of document

Publications (1)

Publication Number Publication Date
CN102110083A true CN102110083A (en) 2011-06-29

Family

ID=44174246

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009102439671A Pending CN102110083A (en) 2009-12-28 2009-12-28 Client device and method for supporting online and offline editing of document

Country Status (1)

Country Link
CN (1) CN102110083A (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102999482A (en) * 2011-12-12 2013-03-27 微软公司 Technique for managing collaborative documents
CN103544189A (en) * 2012-07-17 2014-01-29 珠海金山办公软件有限公司 Method and system for locking currently-edited file
CN104537055A (en) * 2014-12-27 2015-04-22 宁波江东远通计算机有限公司 Updating method and device for electronic documents
CN105471706A (en) * 2015-11-13 2016-04-06 北京恒华伟业科技股份有限公司 Table processing method and device
CN106484772A (en) * 2016-09-09 2017-03-08 腾讯科技(深圳)有限公司 Footmark treating method and apparatus
CN106649235A (en) * 2016-11-29 2017-05-10 中科曙光信息技术无锡有限公司 Cooperative document processing method
CN107219984A (en) * 2017-05-26 2017-09-29 维沃移动通信有限公司 A kind of document content management method and mobile terminal
CN108197166A (en) * 2017-12-15 2018-06-22 重庆数字城市科技有限公司 A kind of browser-cross office examination & approval trace method and system
CN110390081A (en) * 2018-04-17 2019-10-29 北大方正集团有限公司 Document comparison method, device and equipment
CN110888845A (en) * 2019-11-22 2020-03-17 上海亦存网络科技有限公司 Method and system for collaboratively editing file and monitoring file operation
US10733151B2 (en) 2011-10-27 2020-08-04 Microsoft Technology Licensing, Llc Techniques to share media files
CN111639482A (en) * 2020-04-27 2020-09-08 平安普惠企业管理有限公司 Document modification method and device, electronic equipment and medium
CN112906353A (en) * 2019-11-19 2021-06-04 北京沃东天骏信息技术有限公司 Method and system for collaboratively editing document
CN113221515A (en) * 2021-05-31 2021-08-06 工银科技有限公司 Online document editing method, device and system
CN113421048A (en) * 2020-04-30 2021-09-21 阿里巴巴集团控股有限公司 Product collaborative design method and device and electronic equipment
CN113672966A (en) * 2020-05-13 2021-11-19 上海亦存网络科技有限公司 File access control method and system
CN114139503A (en) * 2021-11-30 2022-03-04 平安科技(深圳)有限公司 Document content processing method, device, equipment and storage medium
CN115080528A (en) * 2022-05-11 2022-09-20 华迪计算机集团有限公司 B/S document sharing processing method based on file service middlebox

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10733151B2 (en) 2011-10-27 2020-08-04 Microsoft Technology Licensing, Llc Techniques to share media files
US9053079B2 (en) 2011-12-12 2015-06-09 Microsoft Technology Licensing, Llc Techniques to manage collaborative documents
CN102999482B (en) * 2011-12-12 2016-12-21 微软技术许可有限责任公司 For managing the technology of collaborative document
US9977715B2 (en) 2011-12-12 2018-05-22 Microsoft Technology Licensing, Llc Techniques to manage collaborative documents
CN102999482A (en) * 2011-12-12 2013-03-27 微软公司 Technique for managing collaborative documents
CN103544189A (en) * 2012-07-17 2014-01-29 珠海金山办公软件有限公司 Method and system for locking currently-edited file
CN104537055A (en) * 2014-12-27 2015-04-22 宁波江东远通计算机有限公司 Updating method and device for electronic documents
CN105471706A (en) * 2015-11-13 2016-04-06 北京恒华伟业科技股份有限公司 Table processing method and device
CN106484772A (en) * 2016-09-09 2017-03-08 腾讯科技(深圳)有限公司 Footmark treating method and apparatus
CN106484772B (en) * 2016-09-09 2018-04-20 腾讯科技(深圳)有限公司 Footmark treating method and apparatus
CN106649235A (en) * 2016-11-29 2017-05-10 中科曙光信息技术无锡有限公司 Cooperative document processing method
CN107219984A (en) * 2017-05-26 2017-09-29 维沃移动通信有限公司 A kind of document content management method and mobile terminal
CN108197166B (en) * 2017-12-15 2021-09-07 重庆数字城市科技有限公司 A cross-browser office approval trace method and system
CN108197166A (en) * 2017-12-15 2018-06-22 重庆数字城市科技有限公司 A kind of browser-cross office examination & approval trace method and system
CN110390081A (en) * 2018-04-17 2019-10-29 北大方正集团有限公司 Document comparison method, device and equipment
CN112906353A (en) * 2019-11-19 2021-06-04 北京沃东天骏信息技术有限公司 Method and system for collaboratively editing document
CN110888845A (en) * 2019-11-22 2020-03-17 上海亦存网络科技有限公司 Method and system for collaboratively editing file and monitoring file operation
CN111639482A (en) * 2020-04-27 2020-09-08 平安普惠企业管理有限公司 Document modification method and device, electronic equipment and medium
CN111639482B (en) * 2020-04-27 2022-11-22 平安普惠企业管理有限公司 Document modification method and device, electronic equipment and medium
CN113421048A (en) * 2020-04-30 2021-09-21 阿里巴巴集团控股有限公司 Product collaborative design method and device and electronic equipment
CN113672966A (en) * 2020-05-13 2021-11-19 上海亦存网络科技有限公司 File access control method and system
CN113221515A (en) * 2021-05-31 2021-08-06 工银科技有限公司 Online document editing method, device and system
CN114139503A (en) * 2021-11-30 2022-03-04 平安科技(深圳)有限公司 Document content processing method, device, equipment and storage medium
CN115080528A (en) * 2022-05-11 2022-09-20 华迪计算机集团有限公司 B/S document sharing processing method based on file service middlebox

Similar Documents

Publication Publication Date Title
CN102110083A (en) Client device and method for supporting online and offline editing of document
JP7361165B2 (en) Systems and methods for managing public software component ecosystems using distributed ledgers
US9031910B2 (en) System and method for maintaining a cluster setup
US7287068B1 (en) System and method for updating devices that execute an operating system or application program directly from nonvolatile storage
CN113238850B (en) RPA realization method, device, equipment and medium based on browser
CN100517313C (en) Method and system for validating metadata of migration files
CN109857423B (en) Program version update method, device, server and readable storage medium
CN109804361A (en) File synchronization in computing system
TW201617771A (en) Backup method, environment update pre-detection method and system thereof
CN106557347B (en) Software updating method and device
JP2010541070A (en) Creating and deploying scalable distributed applications
US8700750B2 (en) Web deployment functions and interfaces
CN101268620A (en) Device management system and method for managing device management objects
TW200937218A (en) System and method for restartable provisioning of software components
CN103294742A (en) Apparatus and method for determining duplication of content in portable terminal
US9037539B2 (en) Data synchronization
CN119718385B (en) Operating system updating method, electronic device, storage medium and program product
US20060129616A1 (en) System and method for synchronizing computer files between a local computer and a remote server
US8489698B2 (en) Apparatus and method for accessing a metadata
JP2007226472A (en) Job definition confirmation system, its method, and program
CN107861739A (en) ReactNative applications method of adjustment, client and system
JP2007280415A (en) Management device, version management system and program version management method
US20170351666A1 (en) Secure hyper transfer of large files
CN106909410A (en) A kind of update method and server system for server system
CN104156586A (en) Information integration exchange method suitable for PDM system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110629