CN109165197A - A kind of document handling method, terminal and server - Google Patents

A kind of document handling method, terminal and server Download PDF

Info

Publication number
CN109165197A
CN109165197A CN201810995649.XA CN201810995649A CN109165197A CN 109165197 A CN109165197 A CN 109165197A CN 201810995649 A CN201810995649 A CN 201810995649A CN 109165197 A CN109165197 A CN 109165197A
Authority
CN
China
Prior art keywords
file
terminal
data
content
dialogue
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
Application number
CN201810995649.XA
Other languages
Chinese (zh)
Other versions
CN109165197B (en
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.)
JIANGSU QIYIDIAN NETWORKS CO Ltd
Original Assignee
JIANGSU QIYIDIAN NETWORKS 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 JIANGSU QIYIDIAN NETWORKS CO Ltd filed Critical JIANGSU QIYIDIAN NETWORKS CO Ltd
Priority to CN201810995649.XA priority Critical patent/CN109165197B/en
Publication of CN109165197A publication Critical patent/CN109165197A/en
Application granted granted Critical
Publication of CN109165197B publication Critical patent/CN109165197B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention provides a kind of document handling method, terminal and server, and wherein method includes: to receive the document creation request for acting on target dialogue, and document creation request includes the file identification of the first file of request creation;According to the file identification of the first file, the corresponding target template data of the first file are searched in template database;Receive the content-data for being added to target template data;If receiving creation file sends instruction, by the file identification of the first file, the dialogue identifier of the content-data and target dialogue that are added to target template data be sent to server so that server sends the first file reception and notifies to second terminal.During this, terminal does not need the relevant treatment operations that file can be realized by the third-party application except immediate communication tool, the operations such as creation, reception, update of file real-time display in current session, file process process is simplified, file activity is improved.

Description

A kind of document handling method, terminal and server
Technical field
The present invention relates to field of communication technology more particularly to a kind of document handling methods, terminal and server.
Background technique
With the development of communication technology, the instant messaging in communication network (Instant Messaging, IM) tool is answered With also more and more extensive.IM tool uses simple, application scenarios multiplicity.Existing IM tool provides the function that multiterminal are talked with immediately Can, user can use text, picture, and the message session of voice etc. can also share file.Existing IM sharing files function is being sent out User when perhaps receiving file is sent to need file execution be checked or be modified by third-party application corresponding to file Operation.After the file modified saves, need that correspondence could be sent by the file after preservation by complicated point selection operation again IM tool in dialogue in.
As it can be seen that the technical problem that existing dialog tool is relatively complicated there are the operation of file process.
Summary of the invention
The embodiment of the present invention provides a kind of document handling method, terminal and server, is deposited with solving existing dialog tool In the relatively complicated technical problem of the operation of file process.
In order to achieve the above object, concrete scheme provided by the invention is as follows:
In a first aspect, being applied to first terminal, the method packet the embodiment of the invention provides a kind of document handling method It includes:
Receive the document creation request for acting on target dialogue, wherein the document creation request includes request creation The file identification of first file;
According to the file identification of first file, the corresponding target mould of first file is searched in template database Plate data, wherein at least one template data is previously stored in the template database;
Receive the content-data for being added to the target template data;
If receiving creation file sends instruction, by the file identification of first file, it is added to the target template The dialogue identifier of the content-data of data and the target dialogue is sent to server, so that the server sends the first file Notice is received to second terminal, wherein the first file reception notice includes the file identification of first file and described The dialogue identifier of target dialogue.
Second aspect, the embodiment of the invention provides a kind of document handling methods, are applied to second terminal, the method packet It includes:
If receiving the first file reception notice of server transmission, the files-designated of the first file is shown in target dialogue Know, wherein the first file reception notice includes the file identification of first file and the dialogue mark of the target dialogue Know;
According to the file identification of first file, the content-data of first file is obtained;
According to the file identification of first file, the corresponding template number of first file is searched in template database According to;
The content-data of first file is added to the template data, the first file after forming integration;
The first file after showing the integration.
The third aspect, the embodiment of the invention provides a kind of document handling methods, are applied to server, the method packet It includes:
Receive the file identification for the first file that first terminal is sent, the content-data and target dialogue of first file Dialogue identifier;
It sends the first file reception to notify to second terminal, so that the second terminal receives first file reception and leads to Know, and show the file identification of the first file in target dialogue, wherein the first file reception notice includes described first The dialogue identifier of the file identification of file and the target dialogue.
Fourth aspect, the embodiment of the invention provides a kind of terminal, the terminal includes: memory, processor and storage On the memory and the computer program that can run on the processor;The processor executes the computer program The document handling method of Shi Shixian as described in relation to the first aspect.
5th aspect, the embodiment of the invention provides a kind of terminal, the terminal includes: memory, processor and storage On the memory and the computer program that can run on the processor;The processor executes the computer program Document handling method of the Shi Shixian as described in second aspect.
6th aspect, the embodiment of the invention provides a kind of server, the terminal includes: memory, processor and deposits Store up the computer program that can be run on the memory and on the processor;The processor executes the computer journey The document handling method as described in the third aspect is realized when sequence.
7th aspect, the embodiment of the invention provides a kind of computer readable storage medium, the computer-readable storage It is stored with computer program on medium, file process as described in relation to the first aspect is realized when the computer sequence is executed by processor The step of method.
In the embodiment of the present invention, it can be previously provided with template database in terminal, be stored with for creating file extremely A few template data.When terminal receives document creation request or file reception request, the content of file can be only received Data, and corresponding template data is called in local template database.In this way, terminal can be by template data and content number It is shown according to integration.In the embodiment of the present invention, terminal provides the template data calling function in immediate communication tool, this process In, terminal does not need the relevant treatment operations that file can be realized by the third-party application except immediate communication tool, file Operations real-time display in current session such as creation, reception, update, simplify file process process, improve at file Manage efficiency.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, needed in being described below to the embodiment of the present invention Attached drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, For those of ordinary skill in the art, without any creative labor, it can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is the connection schematic diagram of document handling system applied by document handling method provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram for document handling method that one embodiment of the invention provides;
Fig. 3 a and Fig. 3 b be another embodiment of the present invention provides document handling method involved in display interface signal Figure;
Fig. 4 be another embodiment of the present invention provides a kind of document handling method flow diagram;
Fig. 5 is the schematic diagram of display interface involved in document handling method provided in an embodiment of the present invention;
Fig. 6 be another embodiment of the present invention provides a kind of document handling method flow diagram;
Fig. 7 is the schematic diagram of display interface involved in document handling method provided in an embodiment of the present invention;
Fig. 8 is a kind of flow diagram for document handling method that another embodiment provided in an embodiment of the present invention provides;
Fig. 9 is a kind of flow diagram for document handling method that another embodiment provided in an embodiment of the present invention provides;
Figure 10 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention;
Figure 11 is the structural schematic diagram of another terminal provided in an embodiment of the present invention;
Figure 12 is the structural schematic diagram of another terminal provided in an embodiment of the present invention;
Figure 13 is the structural schematic diagram of another terminal provided in an embodiment of the present invention;
Figure 14 is a kind of structural schematic diagram of server provided in an embodiment of the present invention;
Figure 15 is the structural schematic diagram of terminal provided in an embodiment of the present invention;
Figure 16 is the structural schematic diagram of server provided by the embodiment of the present invention.
Specific embodiment
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 description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a kind of document handling method, terminal and server, provided terminal includes first Terminal and second terminal.As shown in Figure 1, the document handling system may include: server 110, first terminal 120 and second Terminal 130, the first terminal 120 and the second terminal 130 with 110 communication connection of server.First terminal 120 and Two terminals 130 establish communication connection with server 110.
The present embodiment is mainly used in file process and transmitting-receiving operation in the dialogue of immediate communication tool.First terminal 120 utilize immediate communication tool with second terminal 130, initiate to talk with by server 110, eventually by first terminal 120 and second The dialogue that end 130 is participated in is as target dialogue.In the present embodiment, the participation terminal of target dialogue may include except described first Other terminals outside terminal 120 and the second terminal 130, therefore, the first terminal 120 of the first file of creation can be Any one terminal in whole terminals of the target dialogue is participated in, the second terminal 130 of first file is received It can be any one terminal in whole terminals of the participation target dialogue, be not construed as limiting.It below will be whole from first respectively End, second terminal and server introduce embodiment provided by the invention.
Referring to fig. 2, the flow diagram of the document handling method provided for one embodiment of the invention.The present embodiment is provided Document handling method be applied to first terminal, document handling method provided in this embodiment mainly comprises the steps that
Step 201, reception act on the document creation request of target dialogue;
First terminal 120 can receive the document creation request of user's triggering when displaying target is talked with.Specifically, can With in the display window of target dialogue be arranged document creation control, user can by clicking the modes such as document creation control, Document creation request is initiated to the first terminal 120.The document creation request may include the file identification of request creation, The file identification can include but is not limited to other attributes such as file type, document theme.
Step 202, according to the file identification of the first file, the corresponding mesh of first file is searched in template database Mark template data;
It is provided with template database in first terminal 120, at least one mould can be previously stored in the template database Plate data, each template data can correspond to a file type, such as common word, excel, html etc..Template data The each template data stored in library is shown as the file frame of corresponding file type, facilitates user in called display Check, add or modify content-data on the basis of this document frame, during this first terminal 120 do not need from The file of the corresponding types could be opened by exiting in current immediate communication tool and being connected to corresponding file application, save end The application setting at end and operating process.
First terminal 120 is after receiving the document creation request of user's triggering, according to indicated by document creation request The first file file identification, the corresponding target template data of first file are searched in template database.
Certainly, it is contemplated that the template data stored in the template database of first terminal 120 is limited, and first terminal 120 exists The local template data for not finding needs, can also request to server 110.Specifically, described look into template database After the step of looking for first file corresponding target template data, the method also includes:
If not finding the corresponding target template data of first file, template number is sent to the server 110 According to acquisition request;
Receive the target template data that the server 110 is returned based on the template data acquisition request.
If the corresponding template data of file required for the not stored user of first terminal 120 can be sent to server 110 Template data acquisition request, the template data acquisition request may include the type of the template data of request.The service After device 110 receives template data acquisition request, that is, the requested template data of first terminal 120 is returned to, so that first terminal The 120 use and storage template data.
In this way, can store the template data of active file in first terminal 120, certain not stored moulds are being needed It, can be to 110 request of server when plate data.Both the excessive EMS memory occupation for having avoided first terminal 120 in turn ensures The template data of one terminal 120 calls demand.
Step 203, reception are added to the content-data of the target template data;
After first terminal 120 finds corresponding target template data in template database, it can receive user and think Content-data to be added.
After first terminal 120 finds corresponding target template data in template database, it can receive user and think Content-data to be added.Input content data for the convenience of the user, first terminal 120 can first displaying target template data, side Just user directly adds content-data in the corresponding part of shown template data.
If step 204, receiving creation file and sending instruction, by the file identification of first file, be added to it is described The dialogue identifier of the content-data of target template data and the target dialogue is sent to server, so that the server is sent First file reception is notified to second terminal.
After first terminal 120 receives creation file transmission instruction, directly the complete file created can be sent to Server 110.For reduce transmission data total amount, first terminal 120 can only by the file identification of the first file, be added to mesh The dialogue identifier of the content-data and target dialogue of marking template data is sent to the server 110, to inform the server The content-data and the mesh where file creation operation of user's addition of the file identification, first terminal 120 of 110 this documents Mark dialogue.
Server 110 receives the file identification of the first file of the transmission of first terminal 120, is added to target template data Content and target dialogue dialogue identifier after, generate the first file reception notify to second terminal 130, first file reception Notice may include the file identification of the first file and the dialogue identifier of target dialogue, to notify second terminal 130 to receive The dialogue of the source of one file and first file.
In other embodiments, first file reception notice that the server 110 is sent can also include hair Part sends the identity information of terminal, so that the user of second terminal 130 can know the sender of first file.
The document handling method that the embodiments of the present invention provide, first terminal need to send text in immediate communication tool When part, template data can be locally being called, addition content-data can create required file.And after the completion of creating, directly The file type for connecing the content-data for the file that will be created, the dialogue identifier of target dialogue and the first file is sent to service Device can be notified corresponding second terminal to receive created file by server.First terminal is answered without being connected to third party With file, and the operation talked with and sent without complicated preservation file search is created, instant messaging is dramatically improved The convenience and timeliness of document processing operation in tool.
It is described to receive the content number for being added to the target template data on the basis of above-mentioned embodiment shown in Fig. 2 According to the step of before, the method also includes:
The target template data are shown in file display window;
The step of reception is added to the content-data of the target template data, comprising:
Receive the content-data for being added to the target template data shown in the file display window.
In present embodiment, first terminal 120 calls a file display window, and shows in this document display window Target template data, so that display interface shows the contents such as base panel frame, title, the chapters and sections of the first file.User can be straight It connects in file display window, corresponding shown target template data input corresponding content-data.
As shown in Figure 3a, it can be the display window where target dialogue, be provided with document creation control in the display window Part (as shown in K in figure), it may include listed files that this document, which creates in control, (as shown in L in figure).This document list can be with List of types for the file that can be created also may include the historical record of previous creation or received file, not limit It is fixed.
It as shown in Figure 3b, is the schematic diagram of file display window.This document display window can first displaying target template number According to (as described in M in figure), such as option theme, selected topic label, selected topic topic etc..In the white space of this document display window, Can receive the content-data (as shown in N in figure) of user's input, such as fill out option, opinion answer etc..By calling file Window indicating template data, and the content-data that user adds in shown template data is received, it can be more straight to user Sight, true Fileview and operating effect.
Referring to fig. 4, for another embodiment of the present invention provides document handling method flow diagram.The present embodiment is mentioned The document handling method of confession is applied to second terminal 130, and document handling method provided in this embodiment mainly comprises the steps that
If step 401, the first file reception notice for receiving server transmission, show the first file in target dialogue File identification;
Second terminal 130 receives the first file reception notice that server 110 is sent, and the first file reception notice can To include the file identification of the first file and the dialogue identifier of target dialogue.Second terminal shows described in target dialogue frame The file identification of one file, to prompt the user of second terminal 130, there are the first file to be received and first files Essential information.
In addition, if first file reception notice further includes that file sends terminal, i.e., the identity of the described first terminal 120 Information can also show that the transmission terminal of first file is the first terminal in the target dialogue frame of second terminal 130 120。
As shown in figure 5, second terminal 130 shown in target dialogue received first file file identification, may be used also To include the identity information for sending terminal, i.e. head portrait, the pet name of the first user etc. of first terminal 120.Second terminal 130 can be with File is directly checked in the dialog box, or continues the first user session with first terminal 120.
Step 402, according to the file identification of first file, obtain the content-data of first file;
Second terminal 130 shows the file identification of the first file to be received, to prompt user to receive.According to first text The file identification file reception of part is requested, the content-data of available first file of second terminal 130.The second terminal 130 obtain the first files content-data mode can there are two types of:
First, 110 active transmission content-data of server.The content-data of first file can include by server 110 In the first file reception notice, it is sent to the second terminal 130 together.The second terminal 130 receives first text When part notifies, the content-data of first file ready to receive.
Second, second terminal 130 actively obtains content-data.If second terminal 130, which receives, acts on first text The file reception of part is requested, and sends content-data acquisition request to the server 110;
Receive the content number for first file that the server 110 is returned based on the content-data acquisition request According to.
In view of, there may be multiple files, second terminal 130 may not be needed to receive all files in target dialogue Content-data.Therefore the mark of the first indicated file can be notified according to the first file reception by adding user, be chosen whether Receive the content-data of first file.If the file reception that 130 user of second terminal triggers first file is requested, second Terminal 130 requests the content-data of first file to the server 110.If the user of second terminal 130 does not need to receive Reception request can be rejected or not triggered to the content-data of first file.It is sent in this way, first sending documentary information Second terminal 130, then by the scheme of user's selectivity reception content file, file processing state can be effectively prompted immediately, And effectively reduce the occupancy of unnecessary file download operation and terminal storage memory.
Step 403, according to the file identification of first file, it is corresponding that first file is searched in template database Template data;
It is provided with template database in second terminal 130, at least one mould can be previously stored in the template database Plate data, each template data can correspond to a file type, such as common word, excel, html etc..Template data The each template data stored in library is shown as the file frame of corresponding file type, facilitates user in called display Check, add or modify content-data on the basis of this document frame, during this second terminal 130 do not need from The file of the corresponding types could be opened by exiting in current immediate communication tool and being connected to corresponding file application, save end The application setting at end and operating process.
Second terminal 130 is after receiving the file reception request of user's triggering, according to the file identification of first file, The corresponding target template data of first file are searched in template database.
In addition, the template data stored in the template database of second terminal 130 is limited, second terminal 130 it is local not The template data of needs is found, it can also be to the template data of 110 request of server.Specifically, described in template number After the step of searching the corresponding target template data of first file in library, the method also includes:
If not finding the corresponding target template data of first file, template number is sent to the server 110 According to acquisition request;
Receive the target template data that the server 110 is returned based on the template data acquisition request.
If the corresponding template data of file required for the not stored user of second terminal 130 can be sent to server 110 Template data acquisition request, the template data acquisition request may include the type of the template data of request.The service After device 110 receives template data acquisition request, that is, the requested template data of second terminal 130 is returned to, so that second terminal The 130 use and storage template data.
In this way, can store the template data of active file in second terminal 130, certain not stored moulds are being needed It, can be to 110 request of server when plate data.Both the excessive EMS memory occupation for having avoided second terminal 130 in turn ensures The template data of two terminals 130 calls demand.
The content-data of first file is added to the target template data by step 404, and the after forming integration One file;
The first file after step 405, the display integration.
After second terminal 130 obtains content-data and the target template data of the first file, content-data is added to mesh It marks in template data, to be integrated into complete first file, and shows the first file after the integration.Specifically, second terminal 130 file display window can be called to show the integration after the first file, to reach preferable file display effect.
Above-mentioned document handling method provided in this embodiment, second terminal 130 can directly know in target dialogue to File is received, and without being connected to third-party application, passes through the scheme of template data and content-data integration display, Neng Gouda To the effect of same display file.In this way, storing template data in second terminal 130, do not need every time from server 110 obtain, and reduce data exchange total amount.
On the basis of the embodiment described in above-mentioned Fig. 4, the embodiment of the invention also provides another specific embodiment, institutes The method of stating add second terminal to received file modify the process of update.As shown in fig. 6, whole shown in Fig. 4 After step, the method also includes following steps:
If step 601 receives the modification operation for acting on the content-data, modify to the content-data, And save modified content-data;
Second terminal 130 calls the template data of the first file, and is added to content-data and shows with template data integration Show, to facilitate user to check the particular content of first file.If desired user modifies to the content-data of the first file, The modification operation for acting on content-data shown by second terminal 130 can be applied, and save modified content-data.
If step 602, the modification file for receiving the first file after being directed to integration send instruction, by first file File identification, the modified content-data and the target dialogue dialogue identifier be sent to the server so that The server sends the first file update notification to the first terminal, wherein the first file update notification includes institute State the file identification of the first file and the dialogue identifier of the target dialogue.
The user of second terminal 130, if confirmation is sent, can trigger second terminal 130 after modifying content-data Modification file send instruction, to indicate that modified content-data is sent to first terminal 120 by the second terminal 130. The dialogue identifier of the file identification of first file, modified content-data and target dialogue is sent to by second terminal 130 Server 110.The server can then send the first file update notification to the first terminal, to notify first terminal to exist Updated first file to be received.
As shown in fig. 7, after second terminal 130 sends updated content-data to server 110, by first server 110 are sent to first terminal 120, can all show that this document updates in the target dialogue of first terminal 120 and second terminal 130 Prompt information.
Similar, after first terminal 120 receives the first file update notification of the transmission of server 110, in target dialogue The file identification of the first file of update is also shown in frame.If desired the user of first terminal 120 obtains updated content number According to then from first terminal 120 to the updated content-data of 110 request of server.
In present embodiment, second terminal can by after the first file after received integration shows, receive user's Modification operation, and the modification content saved is sent to server after user modifies confirmation, so that server reminds the needle Modification operation to the first file.Second terminal, can be conveniently to the received text of institute without being connected to third-party application Part is modified, and can be sent directly in current session after modifying confirmation, without other preservation and searches the behaviour talked with Make, optimizes the document processing operation in immediate communication tool.
Referring to Fig. 8, for another embodiment of the present invention provides document handling method flow diagram.The present embodiment is mentioned The document handling method of confession is applied to server, and document handling method provided in this embodiment mainly comprises the steps that
Step 801, receive first terminal send the file identification of the first file, the content-data of first file and The dialogue identifier of target dialogue;
First terminal is localling create the first file, receives the content-data of user's addition.First terminal confirmation has created Cheng Hou is sent to server.To reduce transmitting/receiving file total amount, first terminal is only by the file identification of the first file, described first The content-data of file and the dialogue identifier of target dialogue are sent to server, are received by server, record this file reception Operation.
Step 802, the first file reception of transmission are notified to second terminal, so that the second terminal receives first text Part receives notice, and the file identification of the first file is shown in target dialogue.
After server receives the file identification for the first file that first terminal is sent, for notifying second terminal is generated One file reception notice, first file reception notice may include the file identification of the first file and the dialogue mark of target dialogue Know.First file reception call is sent to the second terminal by server, after second terminal receives the notice, in mesh The file identification of first file is shown in mark dialogue, there are the first files to be received to prompt the user of second terminal.
The document handling method that the embodiments of the present invention provide, server execute first terminal between second terminal File interaction operation, in the file for the newly created first content data and corresponding first file for receiving first terminal transmission After mark and the dialogue identifier of target dialogue, the first file reception notice is generated to inform the phase of the second terminal file to be received Close information.Necessary information transmit-receive is only carried out between terminal and server, no longer transmits fixed template data, and directly inform The source of the received file of second terminal is talked with, and the convenience and timeliness of file process in immediate communication tool are improved.
On the basis of the above embodiments, the step of the first file reception of the transmission is notified to the second terminal it Afterwards, the method can also include:
Receive the content-data acquisition request that the second terminal is sent;
The content-data of first file is sent to the second terminal.
In present embodiment, after server receives the content-data of the first file of first terminal transmission, not directly The content-data of first file is sent to first terminal, but first by the dialogue of the file identification of the first file and target dialogue First terminal is issued in transmission, is determined whether to receive the content-data by first terminal.Server is receiving second terminal hair After the content-data acquisition request sent, then the content-data of the first file is sent to the second terminal.In this way, can be effective Second terminal is avoided to receive unwanted content file, the defect for causing the EMS memory occupation of second terminal more, while can also be with Unnecessary data interaction between second terminal and server is reduced, thread is saved.
On the basis of the above embodiments, the step of the first file reception of the transmission is notified to the second terminal it Afterwards, the method also includes:
Receive file identification, modified content-data and the target pair of the first file that the second terminal is sent The dialogue identifier of words;
The first file update notification is sent to the first terminal, so that the first terminal receives first file more It newly notifies, and shows the file identification of first file in the target dialogue.
Second terminal to received first file content-data modify after, by modified content send clothes Business device.After server receives, wherein to first terminal, the first file update notification includes the first file update notification of generation The file identification of first file and the dialogue identifier of the target dialogue.In this way, first terminal can know update file Essential information and source dialogue, then determine whether to receive the modified content-data.First terminal is if it is determined that receive The modified content-data, then to the server request modified content-data.
In this way, server in time by two terminals to creation, modification and update of the file in target dialogue etc. operate and When be prompted to counterpart terminal, improve the convenience and timeliness of file interaction between terminal.
In addition, the content-data of the file identification for receiving the first file that first terminal is sent, first file Before the step of the dialogue identifier of target dialogue, the method also includes:
Receive the template data acquisition request that the first terminal is sent;
The corresponding target template data of the template data acquisition request are sent to the first terminal.
Alternatively, after the step of the first file reception of the transmission is notified to second terminal, the method also includes:
Receive the template data acquisition request that second terminal is sent;
The corresponding target template data of the template data acquisition request are sent to the second terminal.
Server end is stored with the various template data of user's needs, in the template database of first terminal and second terminal Also it is stored with template data.Since the memory of terminal limits, first terminal and second terminal are only stored with the common template in part Data.It, can be with when template data required for first terminal and/or second terminal are not found in local template database Template data acquisition request is sent to server.Server is based on the received template data acquisition request of institute, eventually to described first Template data required for end and/or second terminal return.
In this way, both having avoided the excessive EMS memory occupation of first terminal 120, the template data of first terminal 120 is in turn ensured Calling demand.The specific implementation process of document handling method provided in an embodiment of the present invention may refer to earlier figures 2 and Fig. 4 institute The specific implementation process for the document handling method that the embodiment shown provides, this is no longer going to repeat them.
It is a kind of document handling method provided in an embodiment of the present invention referring to Fig. 9, this document processing method can be applied to Document handling system shown in FIG. 1.As shown in figure 9, the method mainly comprises the steps that
Step 901, first terminal receive the document creation request for acting on target dialogue;
Step 902, first terminal search first file according to the file identification of the first file in template database Corresponding target template data;
Step 903, the first terminal receive the content-data for being added to the target template data;
If step 904, first terminal receive creation, file sends instruction, by the file identification of first file, adds The dialogue identifier of the content-data and the target dialogue that are added to the target template data is sent to server;
First terminal 120 can receive the document creation request of user's triggering when displaying target is talked with, and document creation is asked Seek the file identification of the first file including request creation.First terminal is according to the file identification of first file, in template number According to searching the corresponding target template data of first file in library.User can according to the target template data of the first file, Corresponding content-data is added, first terminal receives and saves the content-data of user's addition.First terminal confirms in user to be created After building the end of file, the creation file for triggering first terminal sends instruction.First terminal sends according to first file and indicates, can The complete file created is directly sent to server 110.For the total amount for reducing transmission data, first terminal 120 can be with Only by the file identification of the first file, the dialogue identifier of the content-data and target dialogue that are added to target template data is sent to The server 110, to inform the content of user's addition of the file identification, first terminal 120 of described 110 this document of server Target dialogue where data and file creation operation.In this way, being to complete the creation of the first file and send to operate.
Step 905, the server receive the file identification of first file, are added to the target template data The dialogue identifier of content-data and the target dialogue;
Step 906, the server send the first file reception and notify to the second terminal, wherein first text Part, which receives, notifies the dialogue identifier of file identification and the target dialogue including first file to the second terminal;
Server 110 receives the file identification of the first file of the transmission of first terminal 120, is added to target template data Content and target dialogue dialogue identifier after, generate the first file reception notify to second terminal 130, first file reception Notice may include the file identification of the first file and the dialogue identifier of target dialogue, to notify second terminal 130 to receive The dialogue of the source of one file and first file.
Step 907, the second terminal receive the first file reception notice;
Step 908, the second terminal show the file identification of first file in the target dialogue;
If step 909, the second terminal receive and act on the file reception of the file identification of first file and ask It asks, obtains the content-data of first file;
Step 910, the second terminal according to the file identification of first file, searched in template database described in The corresponding target template data of first file;
The corresponding content-data of first file is added to the target template number by step 911, the second terminal According to, formed integration after the first file;
Step 912, the second terminal show the first file after the integration.
Second terminal 130 receives the first file reception notice that server 110 is sent, and institute is shown in target dialogue frame The file identification of the first file is stated, there are the first file to be received and first texts to prompt the user of second terminal 130 The essential information of part.Second terminal 130 shows the file identification of the first file to be received, to prompt user to receive.If receiving Act on the file identification file reception request of first file to user, second terminal 130 to server request this The content-data of one file.
Template database is also equipped in second terminal 130, second terminal 130 is receiving first terminal 120 via service When the first file that device 110 is sent, the content-data of the first file, and the template being locally stored from second terminal 130 are only received The corresponding template data of the first file is called in database.
After second terminal 130 obtains content-data and the target template data of the first file, content-data is added to mesh It marks in template data, to be integrated into complete first file, and shows the first file after the integration.
In this way, being to complete second terminal to receive file and show the operation of the file.
If step 913, the second terminal receive the modification operation for acting on the content-data, save modified Content-data;
If step 914, the second terminal receive the modification file transmission instruction for the first file after integration, will The dialogue identifier of the file identification of first file, the modified content-data and the target dialogue is sent to described Server;
Step 915, the server send the first file update notification to the first terminal.
Second terminal 130 calls the template data of the first file, and is added to content-data and shows with template data integration Show, to facilitate user to check the particular content of first file.If desired user modifies to the content-data of the first file, The modification operation for acting on content-data shown by second terminal 130 can be applied, and save modified content-data.
The user of second terminal 130, if confirmation is sent, can trigger second terminal 130 after modifying content-data Modification file send instruction, to indicate that modified content-data is sent to first terminal 120 by the second terminal 130. The dialogue identifier of the file identification of first file, modified content-data and target dialogue is sent to by second terminal 130 Server 110.
File identification, modified content-data of the server 110 in the first file for receiving the transmission of second terminal 130 After the dialogue identifier of target dialogue, the first file update notification can be generated, and the first file update notification is sent to One terminal 120.First file update notification may include the file identification of the first file and the dialogue identifier of target dialogue, to accuse Know first terminal 120 received new file source dialogue and corresponding specific file.
The document handling method that the embodiments of the present invention provide, dialogue participation terminal can be in the instant messaging utilized The operation such as carry out the reception of file in tool, check, modify, sending, do not need to be connected to corresponding file process apply it is upper, and With in the interactive process of server only for the content-data that may be changed rather than complete file, reduce terminal with Data interaction total amount between server, improves file interaction efficiency.File more new state in dialogue notifies in time, into one Step improves the timeliness that user sends and obtains file.The specific implementation of document handling method provided in an embodiment of the present invention Journey may refer to the specific implementation process of the document handling method of the offer of embodiment shown in above-mentioned Fig. 2 to 8, not another herein One repeats.
On the basis of the above embodiments, document processing operation of the every reception of server, can store up in server memory The corresponding file identification of current file processing operation, content-data, target dialogue, operation object etc., with facilitate first terminal or The user of person's second terminal searches history process record.
On the basis of the above embodiments, the scheme that background devices binding updates can also be added.The first terminal and/ Or second terminal can apply for binding respective background devices to server, to carry out the behaviour of data real-time update or backup Make.For example, first terminal is by one file of the every transmitting-receiving of server, the first background devices of first terminal binding can be timely The automatic file for obtaining transmitting-receiving.Bind background devices arrive server, can with it is timely automated obtain dialog procedure in part or One class file of person, and other subsequent operations, such as the calculating of quantity statistics, performance etc. are done according to acquired file, it does not limit It is fixed.
File process scheme of the invention makes the document even applicating cooperation work in the dialogue of immediate communication tool simple It is easy-to-use, reach good user experience.It is frequently necessary to exchange data in the application of work, for example user is allowed to fill in personal information Deng doing user investigation, user feedback etc.;Or need to cooperate with, for example allow everybody to register in more people dialogue, allow everybody to determine one The certain small application using logic of the needs such as a the time of meeting.These practical scenes become very simple under the action of the present invention It is single easy-to-use.Template data is a description Doctype, the particular content of document.Such as the data field name of a list, class Type, length etc., also the UI including data field is laid out.The template of one HTML type then includes specific HTML code, including HMTL, CSS, JAVASCRIPT etc..Content-data then describes the specific data of template filling.
It is separated when the template data and content-data of document, the data volume of each file transmission can be reduced in this way.? When showing document, the window of client can be embedded in a document display module according to template type, and display module is responsible for document Display and editor.For example the template of HMTL type will be embedded in a html browser.Such structure enables a client to prop up The Doctype of multiplicity is held, leaves leeway for extended function.
In the present invention, the display of document and editor do not need to call third-party application, do not need network connection and arrive outside, Such as webpage is opened, and it not needing additional user yet and logs in, do not need additional step and repeat to share, have speed fast, step is few, Simply, safety, the good advantage of user experience.
It is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention, the terminal can be above-mentioned referring to Figure 10 The first terminal that embodiment provides.As shown in Figure 10, the terminal 1000 includes:
Request receiving module 1001, for receiving the document creation request for acting on target dialogue, wherein the file wound Build the file identification that request includes the first file of request creation;
First searching module 1002 searches institute for the file identification according to first file in template database State the corresponding target template data of the first file, wherein at least one template data is previously stored in the template database;
Content-data receiving module 1003, for receiving the content-data for being added to the target template data;
First sending module 1004, if instruction is sent for receiving creation file, by the files-designated of first file Know, the dialogue identifier of the content-data and the target dialogue that are added to the target template data is sent to server so that The server sends the first file reception and notifies to the second terminal, wherein the first file reception notice includes institute State the file identification of the first file and the dialogue identifier of the target dialogue.
Optionally, as shown in figure 11, the terminal 1000 can also include:
First template data request module 1005, if for not finding the corresponding target template number of first file According to server transmission template data acquisition request;
First template data receiving module 1006 is returned for receiving the server based on the template data acquisition request The target template data returned.
Optionally, the terminal 1000 further includes the first display module 1007, and first display module 1007 is used for:
The target template data are shown in file display window;
The content-data receiving module 1003 is used for:
Receive the content-data for being added to the target template data shown in the file display window.
Referring to Figure 12, for another embodiment of the present invention provides terminal 1200 structural schematic diagram, the terminal can be Second terminal in above-described embodiment.As shown in figure 12, a kind of terminal 1200, comprising:
Second display module 1201, if the first file reception notice for receiving server transmission, in the mesh The file identification of display first file in mark dialogue, wherein the first file reception notice includes the text of the first file The dialogue identifier of part mark and target dialogue;
Content-data obtains module 1202, if acting on the file of the file identification of first file for receiving and connecing Request is received, the content-data of first file is obtained;
Second searching module 1203 searches institute for the file identification according to first file in template database State the corresponding template data of the first file;
Data Integration module 1204 is formed for the content-data of first file to be added to the template data The first file after integration;
Second display module 1201 is also used to:
The first file after showing the integration.
Optionally, the participation object of the target dialogue further includes first terminal;
As shown in figure 13, the terminal 1300 can also include:
Modify preserving module 1205, for after showing the first file after the integration, if receive act on it is described The modification of content-data operates, and saves modified content-data;
Second sending module 1206, if the modification file for receiving the first file after being directed to integration sends request, The dialogue identifier of the file identification of first file, the modified content-data and the target dialogue is sent to institute Server is stated, so that the server sends the first file update notification to the first terminal, wherein first text Part update notification includes that the dialogue identifier of target dialogue described in the file identification of first file is sent to the first terminal.
Optionally, the content-data obtains module 1202 and is used for:
If receiving the file reception request for acting on the file identification of first file, sends content-data acquisition and ask It asks to the server;
Receive the content-data for first file that the server is returned based on the content-data acquisition request.
As shown in figure 13, the terminal 1200 can also include:
Second template data request module 1207, if for not finding the corresponding target template number of first file According to server transmission template data acquisition request;
Second template data receiving module 1208 is returned for receiving the server based on the template data acquisition request The target template data returned.
It is a kind of structural schematic diagram of server 1400 provided in an embodiment of the present invention, the server referring to Figure 14 1400 can be server applied by document handling method provided by the above embodiment.As shown in figure 14, a kind of server 1400, comprising:
Third receiving module 1401, the file identification of first file for receiving first terminal, first text The content-data of part and the dialogue identifier of target dialogue;
Third sending module 1402 is notified to the second terminal for sending the first file reception, so that described second Terminal receives the first file reception notice, and the file identification of the first file is shown in target dialogue, wherein first text It includes the file identification of first file and the dialogue identifier of target dialogue that part, which receives notice,.
Optionally, the third receiving module 1401 is also used to:
Receive the content-data acquisition request that the second terminal is sent;
The third sending module 1402 is also used to:
The content-data of first file is sent to the second terminal.
Optionally, the third receiving module 1401 is also used to:
Receive file identification, modified content-data and the target pair of the first file that the second terminal is sent The dialogue identifier of words;
The third sending module 1402 is also used to:
Receive file identification, modified content-data and the target pair of the first file that the second terminal is sent The dialogue identifier of words.
Optionally, the third receiving module 1401 is also used to:
Receive the template data acquisition request that the first terminal is sent;
Third sending module 1402 is also used to:
The corresponding target template data of the template data acquisition request are sent to the first terminal.
Optionally, the third receiving module 1401 is also used to:
Receive the template data acquisition request that second terminal is sent;
Third sending module 1402 is also used to:
The corresponding target template data of the template data acquisition request are sent to the second terminal.
Referring to Figure 15, Figure 15 be another embodiment of the present invention provides terminal 1500 structural schematic diagram, which can be with For first terminal involved in document handling method provided by the above embodiment or second terminal.It as shown in figure 15, is realization A kind of terminal of each embodiment of the present invention, which includes but is not limited to: radio frequency unit 1501, network module 1502, Audio output unit 1503, sensor 1505, document handling unit 1506, user input unit 1507, connects input unit 1504 The components such as mouth unit 1508, memory 1509, processor 1510 and power supply 1511.It will be understood by those skilled in the art that figure The restriction of the not structure paired terminal of terminal structure shown in 15, terminal may include than illustrating more or fewer components, or Person combines certain components or different component layouts.In embodiments of the present invention, terminal includes but is not limited to mobile phone, plate Computer, laptop, palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, when the terminal is first terminal,
Processor 1510, is used for:
Receive the document creation request for acting on target dialogue, wherein the document creation request includes request creation The file identification of first file;
According to the file identification of first file, the corresponding target mould of first file is searched in template database Plate data, wherein at least one template data is previously stored in the template database;
Receive the content-data for being added to the target template data;
If receiving creation file sends instruction, by the file identification of first file, it is added to the target template The dialogue identifier of the content-data of data and the target dialogue is sent to server, so that the server sends the first file Notice is received to the second terminal, wherein the first file reception notice include first file file identification and The dialogue identifier of the target dialogue.
Optionally, the processor 1510 is also used to:
If not finding the corresponding target template data of first file, template data is sent to the server and is obtained Take request;
Receive the target template data that the server is returned based on the template data acquisition request.
Optionally, the processor 1510 is also used to:
The target template data are shown in file display window;
Receive the content-data for being added to the target template data shown in the file display window.
When the terminal 1500 is second terminal, the processor 1510 is used for:
If receiving the first file reception notice of server transmission, first file is shown in the target dialogue File identification, wherein first file reception notice includes the file identification of the first file and the dialogue mark of target dialogue Know;
According to first file, the content-data of first file is obtained;
According to the file identification of first file, the corresponding template number of first file is searched in template database According to;
The content-data of first file is added to the template data, the first file after forming integration;
The first file after showing the integration.
Optionally, the processor 1510 is also used to:
After the step of the first file after the display integration, the method also includes:
If receiving the modification operation for acting on the content-data, modify to the content-data, and save and repair Content-data after changing;
If the modification file received for the first file after integration sends instruction, by the files-designated of first file The dialogue identifier of knowledge, the modified content-data and the target dialogue is sent to the server, so that the service Device sends the first file update notification to the first terminal, wherein the first file update notification includes first text The dialogue identifier of the file identification of part and the target dialogue.
Optionally, the processor 1510 is also used to:
If receiving the file reception request for acting on the file identification of first file, sends content-data acquisition and ask It asks to the server;
Receive the content-data for first file that the server is returned based on the content-data acquisition request.
Optionally, the processor 1510 is also used to:
If not finding the corresponding target template data of first file, template data is sent to the server and is obtained Take request;
Receive the target template data that the server is returned based on the template data acquisition request.
Terminal provided by aforementioned present invention can execute the step of counterpart terminal executes in above method embodiment, no longer It repeats.
It should be understood that the embodiment of the present invention in, radio frequency unit 1501 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 1510 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 1501 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 1501 can also by wireless communication system and network and other Equipment communication.
Terminal provides wireless broadband internet by network module 1502 for user and accesses, and such as user is helped to receive and dispatch electricity Sub- mail, browsing webpage and access streaming video etc..
Audio output unit 1503 can be received by radio frequency unit 1501 or network module 1502 or in memory The audio data stored in 1509 is converted into audio signal and exports to be sound.Moreover, audio output unit 1503 can be with Audio output relevant to the specific function that terminal 1500 executes is provided (for example, call signal receives sound, message sink sound Etc.).Audio output unit 1503 includes loudspeaker, buzzer and receiver etc..
Input unit 1504 is for receiving audio or video signal.Input unit 1504 may include graphics processor (Graphics Processing Unit, GPU) 15041 and microphone 15042, graphics processor 15041 are captured in video In mode or image capture mode by image capture apparatus (such as camera) obtain static images or video image data into Row processing.Treated, and picture frame can be with file process on document handling unit 1506.After the processing of graphics processor 15041 Picture frame can store in memory 1509 (or other storage mediums) or via radio frequency unit 1501 or network module 1502 are sent.Microphone 15042 can receive sound, and can be audio data by such acoustic processing.Processing Audio data afterwards can be converted in the case where telephone calling model to be sent to communication base station via radio frequency unit 1501 Format output.
Terminal 1500 further includes at least one sensor 1505, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment light The light and shade of line adjusts the brightness of file process panel 15061, proximity sensor can terminal 1500 in one's ear when, close file Handle panel 15061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, it is (such as horizontal to can be used to identify terminal posture Vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Sensor 1505 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, humidity Meter, thermometer, infrared sensor etc., details are not described herein.
Document handling unit 1506 is used for file process information input by user or is supplied to the information of user.At file Managing unit 1506 may include file process panel 15061, can use liquid crystal file handler (Liquid Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) configure text Part handles panel 15061.
User input unit 1507 can be used for receiving the number or character information of input, and generates and set with the user of terminal It sets and the related key signals of function control inputs.Specifically, user input unit 1507 include touch panel 15071 and its His input equipment 15072.Touch panel 15071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 15071 or in touch panel Operation near 15071).Touch panel 15071 may include both touch detecting apparatus and touch controller.Wherein, it touches The touch orientation of detection device detection user is touched, and detects touch operation bring signal, transmits a signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 1510, It receives the order that processor 1510 is sent and is executed.Furthermore, it is possible to using resistance-type, condenser type, infrared ray and surface The multiple types such as sound wave realize touch panel 15071.In addition to touch panel 15071, user input unit 1507 can also include Other input equipments 15072.Specifically, other input equipments 15072 can include but is not limited to physical keyboard, function key (ratio Such as volume control button, switch key), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 15071 can be covered on file process panel 15061, when touch panel 15071 detects After arriving touch operation on it or nearby, processor 1510 is sent to determine the type of touch event, is followed by subsequent processing device 1510 provide corresponding visual output according to the type of touch event on file process panel 15061.Although in Figure 15, touching Control panel 15071 and file process panel 15061 are to output and input function as two independent components come realize terminal, But in some embodiments it is possible to touch panel 15071 and file process panel 15061 are integrated and are realized the input of terminal And output function, specifically herein without limitation.
Interface unit 1508 is the interface that external device (ED) is connect with terminal 1500.For example, external device (ED) may include wired Or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 1508 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and By one or more elements that the input received is transferred in terminal 1500 or can be used in terminal 1500 and external dress Data are transmitted between setting.
Memory 1509 can be used for storing software program and various data.Memory 1509 can mainly include storage program Area and storage data area, wherein storing program area can application program needed for storage program area, at least one function (such as Sound-playing function, image player function etc.) etc.;Storage data area, which can be stored, uses created data (ratio according to mobile phone Such as audio data, phone directory) etc..In addition, memory 1509 may include high-speed random access memory, it can also include non- Volatile memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.
Processor 1510 is the control centre of terminal, using the various pieces of various interfaces and the entire terminal of connection, By running or execute the software program and/or module that are stored in memory 1509, and calls and be stored in memory 1509 Interior data execute the various functions and processing data of terminal, to carry out integral monitoring to terminal.Processor 1510 may include One or more processing units;Preferably, processor 1510 can integrate application processor and modem processor, wherein answer With the main processing operation system of processor, user interface and application program etc., modem processor mainly handles wireless communication. It is understood that above-mentioned modem processor can not also be integrated into processor 1510.
Terminal 1500 can also include the power supply 1511 (such as battery) powered to all parts, it is preferred that power supply 1511 Can be logically contiguous by power-supply management system and processor 1510, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
In addition, terminal 1500 includes some unshowned functional modules, details are not described herein.
It is the structure chart of server provided in an embodiment of the present invention, as shown in figure 16, server 1600 referring to Figure 16, Figure 16 It include: transceiver 1601, bus interface and processor 1602, in which:
Transceiver, 1601 for receive the file identification of the first file of first terminal transmission, first file it is interior Hold the dialogue identifier of data and target dialogue;
Processor 1602, for generating the first file reception notice, wherein the first file reception notice includes described The dialogue identifier of the file identification of first file and the target dialogue;
The transceiver 1601 is also used to: being sent the first file reception and is notified to second terminal, so that the second terminal The first file reception notice is received, and shows the file identification of the first file in target dialogue.
Optionally, the transceiver 1601 is also used to:
Receive file identification, modified content-data and the target pair of the first file that the second terminal is sent The dialogue identifier of words;
The first file update notification is sent to the first terminal, so that the first terminal receives first file more It newly notifies, and shows the file identification of first file in the target dialogue, wherein the first file update notification The dialogue identifier of file identification and the target dialogue including first file.
Optionally, the transceiver 1601 is also used to: receiving the template data acquisition request that the first terminal is sent;
The corresponding target template data of the template data acquisition request are sent to the first terminal.
Optionally, the transceiver 1601 is also used to: receiving the template data acquisition request that second terminal is sent;
The corresponding target template data of the template data acquisition request are sent to the second terminal.
In embodiments of the present invention, server 1600 further include: memory 1603.In Figure 16, bus architecture be can wrap The bus and bridge of any number of interconnection are included, the one or more processors and memory 1603 specifically represented by processor 1602 The various circuits of the memory of representative link together.Bus architecture can also will such as peripheral equipment, voltage-stablizer and power tube Various other circuits of reason circuit or the like link together, and these are all it is known in the art, therefore, herein no longer to it It is described further.Bus interface provides interface.Transceiver 1601 can be multiple element, that is, include transmitter and reception Machine provides the unit for communicating over a transmission medium with various other devices.Processor 1602 be responsible for management bus architecture and Common processing, memory 1603 can store the used data when executing operation of processor 1602.
Server 1600 provided in an embodiment of the present invention can execute the first file between first terminal and second terminal File identification, the dialogue identifier of target dialogue, the first file content-data etc. interactive operation.The embodiment of the present invention can be with The step of server in above method embodiment can execute is executed, is repeated no more.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each process of above-mentioned document handling method embodiment, and energy when being executed by processor Reach identical technical effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as only Read memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form belongs within protection of the invention.

Claims (27)

1. a kind of document handling method, which is characterized in that be applied to first terminal, which comprises
Receive the document creation request for acting on target dialogue, wherein the document creation request includes the first of request creation The file identification of file;
According to the file identification of first file, the corresponding target template number of first file is searched in template database According to, wherein at least one template data is previously stored in the template database;
Receive the content-data for being added to the target template data;
If receiving creation file sends instruction, by the file identification of first file, it is added to the target template data Content-data and the dialogue identifier of the target dialogue be sent to server so that the server sends the first file reception It notifies to second terminal, wherein file identification and the target of the first file reception notice including first file The dialogue identifier of dialogue.
2. the method according to claim 1, wherein described search first file pair in template database After the step of target template data answered, the method also includes:
If not finding the corresponding target template data of first file, template data acquisition is sent to the server and is asked It asks;
Receive the target template data that the server is returned based on the template data acquisition request.
3. the method according to claim 1, wherein described receive the content for being added to the target template data Before the step of data, the method also includes:
The target template data are shown in file display window;
The step of reception is added to the content-data of the target template data, comprising:
Receive the content-data for being added to the target template data shown in the file display window.
4. a kind of document handling method, which is characterized in that be applied to second terminal, which comprises
If receiving the first file reception notice of server transmission, the file identification of the first file is shown in target dialogue, Wherein, the first file reception notice includes the file identification of first file and the dialogue identifier of the target dialogue;
According to the file identification of first file, the content-data of first file is obtained;
According to the file identification of first file, the corresponding template data of first file is searched in template database;
The content-data of first file is added to the template data, the first file after forming integration;
The first file after showing the integration.
5. according to the method described in claim 4, it is characterized in that, the step of the first file after the display integration it Afterwards, the method also includes:
If receiving the modification operation for acting on the content-data, modify to the content-data, and after saving modification Content-data;
If receive for integration after the first file modification file send instruction, by the file identification of first file, The dialogue identifier of the modified content-data and the target dialogue is sent to the server, so that the server is sent out Send the first file update notification to first terminal, wherein the first file update notification includes the file of first file The dialogue identifier of mark and the target dialogue.
6. according to the method described in claim 4, it is characterized in that, the file identification according to first file, obtains The step of content-data of first file, comprising:
If receiving the file reception request for acting on the file identification of first file, content-data acquisition request is sent extremely The server;
Receive the content-data for first file that the server is returned based on the content-data acquisition request.
7. according to the method described in claim 4, it is characterized in that, the file identification according to first file, in mould After the step of searching the corresponding target template data of first file in plate database, the method also includes:
If not finding the corresponding target template data of first file, template data acquisition is sent to the server and is asked It asks;
Receive the target template data that the server is returned based on the template data acquisition request.
8. a kind of document handling method, which is characterized in that be applied to server, which comprises
Receive file identification, the content-data of first file and pair of target dialogue of the first file that first terminal is sent Words mark;
The first file reception is sent to notify to second terminal, so that the second terminal receives the first file reception notice, And the file identification of the first file is shown in target dialogue, wherein the first file reception notice includes first text The dialogue identifier of the file identification of part and the target dialogue.
9. document handling method according to claim 8, which is characterized in that the first file reception of the transmission is notified to institute After the step of stating second terminal, the method also includes:
Receive the content-data acquisition request that the second terminal is sent;
The content-data of first file is sent to the second terminal.
10. according to the method described in claim 8, it is characterized in that, the first file reception of the transmission is notified to described second After the step of terminal, the method also includes:
Receive the file identification of the first file that the second terminal is sent, modified content-data and the target dialogue Dialogue identifier;
The first file update notification is sent to the first terminal, is led to so that the first terminal receives first file and updates Know, and show the file identification of first file in the target dialogue, wherein the first file update notification includes The file identification of first file and the dialogue identifier of the target dialogue.
11. according to the method described in claim 8, it is characterized in that, the text for receiving the first file that first terminal is sent Before the step of dialogue identifier of part mark, the content-data of first file and target dialogue, the method also includes:
Receive the template data acquisition request that the first terminal is sent;
The corresponding target template data of the template data acquisition request are sent to the first terminal.
12. according to the method described in claim 8, it is characterized in that, the first file reception of the transmission is notified to second terminal The step of after, the method also includes:
Receive the template data acquisition request that second terminal is sent;
The corresponding target template data of the template data acquisition request are sent to the second terminal.
13. a kind of terminal characterized by comprising
Request receiving module, for receiving the document creation request for acting on target dialogue, wherein the document creation request packet Include the file identification of the first file of request creation;
First searching module searches first text for the file identification according to first file in template database The corresponding target template data of part, wherein at least one template data is previously stored in the template database;
Content-data receiving module, for receiving the content-data for being added to the target template data;
First sending module by the file identification of first file, is added to if sending instruction for receiving creation file The content-data of the target template data and the dialogue identifier of the target dialogue are sent to server, so that the server It sends the first file reception to notify to second terminal, wherein the first file reception notice includes the text of first file The dialogue identifier of part mark and the target dialogue.
14. terminal according to claim 13, which is characterized in that the terminal further include:
First template data request module, if for not finding the corresponding target template data of first file, to institute It states server and sends template data acquisition request;
First template data receiving module, the target returned for receiving the server based on the template data acquisition request Template data.
15. terminal according to claim 13, which is characterized in that the terminal further includes the first display module, and described One display module is used for:
The target template data are shown in file display window;
The content-data receiving module is used for:
Receive the content-data for being added to the target template data shown in the file display window.
16. a kind of terminal characterized by comprising
Second display module, if the first file reception notice for receiving server transmission, shows in the target dialogue Show the file identification of first file, wherein the first file reception notice includes the file identification and mesh of the first file Mark the dialogue identifier of dialogue;
Content-data obtains module, for the file identification according to first file, obtains the content number of first file According to;
Second searching module searches first text for the file identification according to first file in template database The corresponding template data of part;
Data Integration module, for the content-data of first file to be added to the template data, after forming integration First file;
The display module is also used to:
The first file after showing the integration.
17. terminal according to claim 13, which is characterized in that the terminal further include:
Preserving module is modified, for acting on the content-data if receiving after showing the first file after the integration Modification operation, modify to the content-data, and save modified content-data;
Second sending module, if the modification file for receiving the first file after being directed to integration sends request, by described the The dialogue identifier of the file identification of one file, the modified content-data and the target dialogue is sent to the service Device, so that the server sends the first file update notification to first terminal, wherein the first file update notification The dialogue identifier of target dialogue described in file identification including first file.
18. terminal according to claim 16, which is characterized in that the content-data obtains module and is used for:
If receiving the file reception request for acting on the file identification of first file, content-data acquisition request is sent extremely The server;
Receive the content-data for first file that the server is returned based on the content-data acquisition request.
19. terminal according to claim 16, which is characterized in that the terminal further include:
Second template data request module, if for not finding the corresponding target template data of first file, to institute It states server and sends template data acquisition request;
Second template data receiving module, the target returned for receiving the server based on the template data acquisition request Template data.
20. a kind of server characterized by comprising
Third receiving module, the content-data of the file identification of the first file for receiving first terminal, first file With the dialogue identifier of target dialogue;
Third sending module is notified for sending the first file reception to second terminal, so that described in second terminal reception First file reception notifies, and the file identification of the first file is shown in target dialogue, wherein first file reception is logical Know the dialogue identifier of file identification and target dialogue including first file.
21. server according to claim 20, which is characterized in that the third receiving module is also used to:
Receive the content-data acquisition request that the second terminal is sent;
The third sending module is also used to:
The content-data of first file is sent to the second terminal.
22. server according to claim 20, which is characterized in that the third receiving module is also used to:
Receive the file identification of the first file that the second terminal is sent, modified content-data and the target dialogue Dialogue identifier;
The third sending module is also used to:
Receive the file identification of the first file that the second terminal is sent, modified content-data and the target dialogue Dialogue identifier.
23. server according to claim 20, which is characterized in that the third receiving module is also used to:
Receive the template data acquisition request that the first terminal is sent;
Third sending module is also used to:
The corresponding target template data of the template data acquisition request are sent to the first terminal.
24. server according to claim 20, which is characterized in that the third receiving module is also used to:
Receive the template data acquisition request that second terminal is sent;
Third sending module is also used to:
The corresponding target template data of the template data acquisition request are sent to the second terminal.
25. a kind of terminal, which is characterized in that including memory, processor and be stored on the memory and can be at the place The computer program run on reason device, the processor are realized when executing the computer program as any in claims 1 to 3 Document handling method described in.
26. a kind of terminal, which is characterized in that including memory, processor and be stored on the memory and can be at the place The computer program run on reason device, the processor are realized when executing the computer program as any in claim 4 to 7 Document handling method described in.
27. a kind of server, which is characterized in that including memory, processor and be stored on the memory and can be described The computer program run on processor, the processor are realized when executing the computer program such as claim 8 to 12 institute The document handling method stated.
CN201810995649.XA 2018-08-29 2018-08-29 File processing method, terminal and server Active CN109165197B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810995649.XA CN109165197B (en) 2018-08-29 2018-08-29 File processing method, terminal and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810995649.XA CN109165197B (en) 2018-08-29 2018-08-29 File processing method, terminal and server

Publications (2)

Publication Number Publication Date
CN109165197A true CN109165197A (en) 2019-01-08
CN109165197B CN109165197B (en) 2021-07-27

Family

ID=64893114

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810995649.XA Active CN109165197B (en) 2018-08-29 2018-08-29 File processing method, terminal and server

Country Status (1)

Country Link
CN (1) CN109165197B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110765094A (en) * 2019-10-24 2020-02-07 重庆紫光华山智安科技有限公司 File creation method, device, system and storage medium
CN111857810A (en) * 2020-07-30 2020-10-30 上海妙一生物科技有限公司 Front-end development file creating method and device and electronic equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060170948A1 (en) * 2005-02-03 2006-08-03 Canon Kabushiki Kaisha Document processing apparatus, document processing method and program
CN102404250A (en) * 2011-12-13 2012-04-04 华为技术有限公司 Method, device and system for transmitting files to users of instant message system
US20140149854A1 (en) * 2012-11-26 2014-05-29 Hon Hai Precision Industry Co., Ltd. Server and method for generating object document
CN104090759A (en) * 2014-06-26 2014-10-08 湖北安标信息技术有限公司 Template file based data filling method
KR20150106615A (en) * 2014-03-12 2015-09-22 에스케이플래닛 주식회사 Messenger service system, method and apparatus for displaying information during voice call waiting in the system
CN105224516A (en) * 2015-09-28 2016-01-06 北京橙鑫数据科技有限公司 Graph text information generation method and device
CN105871706A (en) * 2016-06-13 2016-08-17 珠海佳米科技有限公司 File transmission method and file transmission system
CN106155470A (en) * 2015-04-21 2016-11-23 阿里巴巴集团控股有限公司 A kind of audio file generation method and device
WO2017151456A1 (en) * 2016-03-04 2017-09-08 Microsoft Technology Licensing, Llc Managing messages between users for collaborative editing of electronic documents
CN107579911A (en) * 2017-10-18 2018-01-12 韩家佳 Instant communicating method, communication terminal and computer-readable medium
CN107809447A (en) * 2016-09-08 2018-03-16 腾讯科技(深圳)有限公司 A kind of processing method and relevant device of file transmission

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060170948A1 (en) * 2005-02-03 2006-08-03 Canon Kabushiki Kaisha Document processing apparatus, document processing method and program
CN102404250A (en) * 2011-12-13 2012-04-04 华为技术有限公司 Method, device and system for transmitting files to users of instant message system
US20140149854A1 (en) * 2012-11-26 2014-05-29 Hon Hai Precision Industry Co., Ltd. Server and method for generating object document
KR20150106615A (en) * 2014-03-12 2015-09-22 에스케이플래닛 주식회사 Messenger service system, method and apparatus for displaying information during voice call waiting in the system
CN104090759A (en) * 2014-06-26 2014-10-08 湖北安标信息技术有限公司 Template file based data filling method
CN106155470A (en) * 2015-04-21 2016-11-23 阿里巴巴集团控股有限公司 A kind of audio file generation method and device
CN105224516A (en) * 2015-09-28 2016-01-06 北京橙鑫数据科技有限公司 Graph text information generation method and device
WO2017151456A1 (en) * 2016-03-04 2017-09-08 Microsoft Technology Licensing, Llc Managing messages between users for collaborative editing of electronic documents
CN105871706A (en) * 2016-06-13 2016-08-17 珠海佳米科技有限公司 File transmission method and file transmission system
CN107809447A (en) * 2016-09-08 2018-03-16 腾讯科技(深圳)有限公司 A kind of processing method and relevant device of file transmission
CN107579911A (en) * 2017-10-18 2018-01-12 韩家佳 Instant communicating method, communication terminal and computer-readable medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘永立、周莉: ""Java操作Word模板实现动态数据输出"", 《电脑编程技巧与维护》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110765094A (en) * 2019-10-24 2020-02-07 重庆紫光华山智安科技有限公司 File creation method, device, system and storage medium
CN110765094B (en) * 2019-10-24 2020-08-11 重庆紫光华山智安科技有限公司 File creation method, device, system and storage medium
CN111857810A (en) * 2020-07-30 2020-10-30 上海妙一生物科技有限公司 Front-end development file creating method and device and electronic equipment

Also Published As

Publication number Publication date
CN109165197B (en) 2021-07-27

Similar Documents

Publication Publication Date Title
CN104639672B (en) The method and apparatus for carrying out domain name mapping
CN104618217B (en) Share method, terminal, server and the system of resource
CN103702297B (en) Short message enhancement, apparatus and system
CN104142868B (en) Establish the method and device of connection
CN107391768B (en) Webpage data processing method, device and equipment and computer readable storage medium
CN109445894A (en) A kind of screenshot method and electronic equipment
CN107102904A (en) Exchange method and device based on mixed application
WO2014206143A1 (en) Method, apparatus and device for displaying number of unread messages
CN103279574A (en) Method, device and terminal device for loading explorer pictures
CN103886198B (en) Method, terminal, server and the system that a kind of data process
CN105530222B (en) Connection method for building up between multiple terminals, device and system
CN104699501B (en) A kind of method and device for running application program
CN110177177A (en) Message back method, mobile terminal and computer readable storage medium
CN107786424A (en) Audio/video communication method, terminal and server
CN105630846A (en) Head portrait updating method and apparatus
CN107704363A (en) Freeze screen monitoring method, mobile terminal and computer-readable recording medium
CN104660769B (en) A kind of methods, devices and systems for adding associated person information
CN108320148A (en) A kind of resource transfers method and relevant device
CN106293738A (en) The update method of a kind of facial expression image and device
CN104516890B (en) Method for processing business, device and electronic equipment
CN103491421B (en) Content displaying method, device and intelligent television
CN109491670A (en) A kind of page display method and terminal device
CN108009031A (en) The control method and mobile terminal of a kind of application program
CN107765954A (en) A kind of application icon update method, mobile terminal and server
CN107992615A (en) A kind of network address recommends method, server and terminal

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