The content of the invention
Based on this, it is necessary to provide a kind of end message synchronous method for the convenience that can improve operation.
A kind of end message synchronous method, including:
Obtain information upload request;
User's mark and search condition information are extracted according to described information upload request;
Corresponding session object is obtained according to user mark;
By search condition information storage into the corresponding caching of the session object.
In one of the embodiments, methods described also includes:
Obtain session object;
Corresponding search condition information is extracted in the corresponding caching of the session object;
According to the corresponding data message of search condition acquisition of information extracted;
Obtain the corresponding terminal address of the session object;
The data message is sent to the terminal address.
In one of the embodiments, also include before the step of acquisition session object:
Obtain information and issue request;
Request is issued according to described information and extracts user's mark;
It is described acquisition session object the step of be:
Corresponding session object is obtained according to user mark.
In one of the embodiments, the corresponding data message of search condition acquisition of information extracted described in the basis
The step of before also include:
Detect whether the search condition information changes, if so, then continuing executing with what is extracted described in the basis
The step of search condition acquisition of information corresponding data message.
In one of the embodiments, before the step of mark acquisition corresponding session object according to the user also
Including:
Proof of identity is carried out according to user mark, if passing through, described identified according to the user is continued executing with and obtains
The step of taking corresponding session object.
In addition, there is a need to the end message sychronisation for providing a kind of convenience that can improve operation.
A kind of end message sychronisation, including:
Upload request acquisition module, for obtaining information upload request;
Search condition data obtaining module, for extracting user's mark and search condition information according to information upload request;
Session object acquisition module, for obtaining corresponding session object according to user mark;
Search condition information cache module, for search condition information storage is corresponding slow to the session object
In depositing.
In one of the embodiments, described device also issues module including data message, for obtaining session object,
Corresponding search condition information is extracted in the corresponding caching of the session object, is obtained according to the search condition information extracted
Corresponding data message is taken, the corresponding terminal address of the session object is obtained, the data message is sent to the terminal
Address.
In one of the embodiments, described device also include issue request receiving module, for obtain information issue please
Ask, issuing request according to described information extracts user's mark;
The data message issues module and is additionally operable to obtain corresponding session object according to user mark.
In one of the embodiments, described device also includes search condition information monitoring module, for detecting the inspection
Whether rope conditional information changes, if so, then calling the data message to issue module.
In one of the embodiments, described device also include proof of identity module, for according to the user identify into
Row proof of identity, if passing through, continues to call the session object acquisition module.
Above-mentioned end message synchronous method and device, the inspection corresponding with the page that it currently shows that first terminal is uploaded
Rope conditional information caching corresponding with session object, and search condition information is filling for the data message for the page that acquisition is currently shown
Slitting part, realizes data message synchronous with first terminal so that user can be cached when using second terminal by obtaining
In search condition information obtain the data message that the data message of the page that is currently shown with first terminal is consistent, it is automatic real
Multiple terminals is showed and has synchronously shown identical data message, without with artificially in second terminal by repeatedly clicking come same
Step, so as to improve the convenience of operation.
Embodiment
In one embodiment, as shown in figure 1, a kind of end message synchronous method, including:
Step S102, obtains information upload request.
Information upload request can be uploaded by first terminal.User can pass through the browser or GUI on first terminal
(Graphical User Interface, graphic user interface)Client-side program browses the related pages of ERP system, and according to
The content generation information upload request of the page.
In one embodiment, the trigger action of first terminal is can detect, and information upload is generated according to trigger action and is asked
Ask.
In the present embodiment, trigger action can be programmable button on first terminal, icon, the trigger action of link.
That is, user can automatically generate information upload request by some button pressed on first terminal.It is preferred that, first
Terminal can be mobile terminal, also can detect the shake operation of first terminal, and information upload request is generated according to shake operation.
In another embodiment, first terminal can also be periodically generated information upload request by plan target.
In another embodiment, whether the current browse webpage that also can detect first terminal changes, if so, then giving birth to
Into information upload request.Current browse webpage is the current page checked by browser or GUI client-side program of user, and its is right
Answer the list in corresponding ERP system.Predeterminable list monitor, when list changes, triggers renewal of the page event, from
And generate information upload request.
Step S104, user's mark and search condition information are extracted according to information upload request.
User's mark and search condition information are included in information upload request.User mark correspondence user is in ERP system
User profile.Search condition information includes at least one of chained address, the major key of data item and query statement.
Chained address is the corresponding chained address of the page for the ERP system that user is accessed by first terminal.Chained address
Can be first terminal browser address field in address, can be hidden by interface definition language, without show.
The page includes presentation layer and data Layer two parts, and presentation layer is the interface element defined by Interface Mark-up Language,
For example, various labels, CSS in HTML(Cascading Style Sheet, level CSS)CSS etc., data Layer is then
The data message for the data item that correspondence is taken out from database.The data message that the page passes through presentation layer display data layer.The page
By for defining the presentation layer at displaying interface and being separated for the data Layer for defining displaying content, the multiplexing of page definition can be improved
Property.
The major key of data item is the major key of data message corresponding data item in database in the list of the page.
For example, if the data message that shows of the list in the page is department information, including with<table>The 3 of tag definition
A specific data item in department information table in row data record, each row of data record correspondence database, then the page is corresponding
The major key of data item is the major key of 3 data.
The major key definable of data item is in the page, it is preferred that can be hidden by interface definition language, without aobvious
Show.
Query statement is the code for the data message that corresponding data Layer displaying is obtained in database, for example, SQL
(Structured Query Language, SQL)Sentence etc..Query statement can be script, can also be straight
Connect and be defined in the page, hidden by interface definition language, without showing.
That is, condition of the search condition information for the data message of the data Layer of the acquisition page.Pass through the retrieval bar
Part information can obtain the data message in the data Layer in the page.
Step S106, corresponding session object is obtained according to user's mark.
Session object is session objects, and session objects have corresponding relation with user's mark.User is accessing ERP
During system, ERP system, which can be generated in session objects corresponding with user's mark, session, can preserve user profile so that use
Family is when accessing ERP system, and information can obtain the preservation of the overall situation.
Step S108, by the storage of search condition information into the corresponding caching of session object.
In one embodiment, search condition information can be changed into the data knot such as character string, array, chained list or Hash table
Structure, then to be stored in the form of attribute in session object.In another embodiment, can also be by search condition information and user
The storage of mark correspondence is in the buffer.Search condition information produces mapping relations by user's mark and session object.
In the present embodiment, it can also be identified and carried out according to user before the step of user's mark obtains corresponding session object
Proof of identity, if passing through, continues executing with the step of obtaining corresponding session object according to user's mark.
Proof of identity can be carried out to user's mark by account number cipher, that is, need user close using account by first terminal
Code is logged in.
That is, user by first terminal when accessing ERP system, first terminal can be identified and worked as according to user
The corresponding search condition information of data message in the page of preceding access generates information upload request and uploaded.Receiving the inspection
After rope conditional information, identify that corresponding session object is corresponding to be stored by it and with user, it is achieved thereby that first terminal is shown
The synchronized upload of data.
In the present embodiment, as shown in Fig. 2 end message synchronous method also includes:
Step S202, obtains session object.
Step S204, extracts corresponding search condition information in the corresponding caching of session object.
Step S206, according to the corresponding data message of search condition acquisition of information extracted.
Step S208, obtains the corresponding terminal address of session object.
Step S210, data message is sent to terminal address.
In the present embodiment, user can receive the synchronous data message issued by second terminal.Set up with second terminal
During connection, second terminal corresponding user mark can be obtained, and is searched and the corresponding session object of user mark, then by the
The terminal address of two terminals is stored in the session object.
In the present embodiment, if search condition information is chained address, chained address is sent to terminal address correspondence
Second terminal.The browser of second terminal can show corresponding content of pages by loading the link.
In the present embodiment, if search condition information is the major key and/or query statement of data item, according to data item
Major key and/or query statement obtain corresponding data item, and the corresponding data of data item that the inquiry is obtained in database
Information is sent to second terminal with default data format.Second terminal can be received by GUI client-side program or browser should
Data message, and show corresponding page content by parsing the data format.
In the present embodiment, can be that stateless is connected with the connection of second terminal, before the step of obtaining session object
Information can also be obtained and issue request, issuing request according to information extracts user's mark.
In the present embodiment, the step of obtaining session object can be specially:Corresponding session object is obtained according to user's mark.
Stateless connection is i.e. without keeping the connection of connection status, and both sides are when no data communicates for connection, and connection can be kept
Off-state, for example, HTTP connections etc..When being connected with second terminal in stateless, second terminal can be by sending information
Issue request and pull synchronous data message.
In one embodiment, can be stateful connection with the connection of second terminal, according to the search condition extracted
Also include before the step of acquisition of information corresponding data message:
Whether detection search condition information changes, if so, then continuing executing with according to the search condition information extracted
The step of obtaining corresponding data message.
In the present embodiment, session object can be periodically traveled through, obtains whether the corresponding search condition information of session object is sent out
Then changing, if changing, second terminal is issued according to the search condition acquisition of information data message after renewal.
In one embodiment, monitor, the renewal dished out during monitor capture search condition information updating also can be set
Event, then obtains the corresponding search condition information of event and session object, and continue executing with according to the retrieval bar extracted
The step of part acquisition of information corresponding data message.
That is, after information upload request is received, extracted according to information upload request after search condition information,
If the search condition information uploaded is different from the search condition information stored in the caching of session object, immediately according to upload
The corresponding data message of search condition acquisition of information, and it is handed down to second terminal.
In an application scenarios, the examination & approval of operation flow can be notified to be sent on the mobile terminal of user by ERP system.
The corresponding data letter of part field of mobile terminal exposition data on the page by way of breviary, i.e. some data item
Breath, but the corresponding search condition information of the data item is still preserved on the page(The major key or query statement of data item).User Ke Tong
Cross mobile terminal and check the Notifications page.If user wishes to check the data of all fields of the corresponding data item of the Notifications page
Information, then can be by rocking mobile terminal, and triggering mobile terminal generates information upload request according to foregoing search condition information.
Then ERP system is logged in work computer, you can check what is issued on the browser or GUI client-side program of work computer
Contain the page of the data message of all fields of the corresponding data item of search condition information.
In one embodiment, as shown in figure 3, a kind of end message sychronisation, including:Upload request acquisition module
102nd, search condition data obtaining module 104, session object acquisition module 106 and search condition information cache module 108, its
In:
Upload request acquisition module 102, for obtaining information upload request.
Information upload request can be uploaded by first terminal.User can pass through the browser or GUI on first terminal
(Graphical User Interface, graphic user interface)Client-side program browses the related pages of ERP system, and according to
The content generation information upload request of the page.
In one embodiment, the trigger action of first terminal is can detect, and information upload is generated according to trigger action and is asked
Ask.
In the present embodiment, trigger action can be programmable button on first terminal, icon, the trigger action of link.
That is, user can automatically generate information upload request by some button pressed on first terminal.It is preferred that, first
Terminal can be mobile terminal, also can detect the shake operation of first terminal, and information upload request is generated according to shake operation.
In another embodiment, first terminal can also be periodically generated information upload request by plan target.
In another embodiment, whether the current browse webpage that also can detect first terminal changes, if so, then giving birth to
Into information upload request.Current browse webpage is the current page checked by browser or GUI client-side program of user, and its is right
Answer the list in corresponding ERP system.Predeterminable list monitor, when list changes, triggers renewal of the page event, from
And generate information upload request.
Search condition data obtaining module 104, for extracting user's mark and search condition letter according to information upload request
Breath.
User's mark and search condition information are included in information upload request.User mark correspondence user is in ERP system
User profile.Search condition information includes at least one of chained address, the major key of data item and query statement.
Chained address is the corresponding chained address of the page for the ERP system that user is accessed by first terminal.Chained address
Can be first terminal browser address field in address, can be hidden by interface definition language, without show.
The page includes presentation layer and data Layer two parts, and presentation layer is the interface element defined by Interface Mark-up Language,
For example, various labels, CSS in HTML(Cascading Style Sheet, level CSS)CSS etc., data Layer is then
The data message for the data item that correspondence is taken out from database.The data message that the page passes through presentation layer display data layer.The page
By for defining the presentation layer at displaying interface and being separated for the data Layer for defining displaying content, the multiplexing of page definition can be improved
Property.
The major key of data item is the major key of data message corresponding data item in database in the list of the page.
For example, if the data message that shows of the list in the page is department information, including with<table>The 3 of tag definition
A specific data item in department information table in row data record, each row of data record correspondence database, then the page is corresponding
The major key of data item is the major key of 3 data.
The major key definable of data item is in the page, it is preferred that can be hidden by interface definition language, without aobvious
Show.
Query statement is the code for the data message that corresponding data Layer displaying is obtained in database, for example, SQL
(Structured Query Language, SQL)Sentence etc..Query statement can be script, can also be straight
Connect and be defined in the page, hidden by interface definition language, without showing.
That is, condition of the search condition information for the data message of the data Layer of the acquisition page.Pass through the retrieval bar
Part information can obtain the data message in the data Layer in the page.
Session object acquisition module 106, for obtaining corresponding session object according to user's mark.
Session object is session objects, and session objects have corresponding relation with user's mark.User is accessing ERP
During system, ERP system, which can be generated in session objects corresponding with user's mark, session, can preserve user profile so that use
Family is when accessing ERP system, and information can obtain the preservation of the overall situation.
Search condition information cache module 108, for search condition information to be stored into the corresponding caching of session object.
In one embodiment, search condition information can be changed into the data knot such as character string, array, chained list or Hash table
Structure, then to be stored in the form of attribute in session object.In another embodiment, can also be by search condition information and user
The storage of mark correspondence is in the buffer.Search condition information produces mapping relations by user's mark and session object.
In the present embodiment, as shown in figure 4, end message sychronisation also includes proof of identity module 110, for basis
User's mark carries out proof of identity, if passing through, continues to call session object acquisition module 106.
Proof of identity module 110 can be used for carrying out proof of identity to user's mark by account number cipher, that is, need user to lead to
First terminal is crossed to log in using account number cipher.
That is, user by first terminal when accessing ERP system, first terminal can be identified and worked as according to user
The corresponding search condition information of data message in the page of preceding access generates information upload request and uploaded.Receiving the inspection
After rope conditional information, identify that corresponding session object is corresponding to be stored by it and with user, it is achieved thereby that first terminal is shown
The synchronized upload of data.
In the present embodiment, as shown in figure 4, end message sychronisation also issues module 112 including data message, it is used for
Session object is obtained, corresponding search condition information is extracted in the corresponding caching of the session object, is extracted according to described
The corresponding data message of search condition acquisition of information, obtain the corresponding terminal address of the session object, the data believed
Breath is sent to the terminal address.
In the present embodiment, user can receive the synchronous data message issued by second terminal.Set up with second terminal
During connection, second terminal corresponding user mark can be obtained, and is searched and the corresponding session object of user mark, then by the
The terminal address of two terminals is stored in the session object.
In the present embodiment, if search condition information is chained address, data message issues module 112 and then can be used for chain
Ground connection location is sent to the corresponding second terminal of terminal address.The browser of second terminal can be shown pair by loading the link
The content of pages answered.
In the present embodiment, if search condition information is the major key and/or query statement of data item, data message issues mould
Block 112 then can be used for obtaining corresponding data item in database according to the major key and/or query statement of data item, and this is looked into
Ask obtained data item corresponding data message and second terminal is sent to default data format.Second terminal can pass through GUI
Client-side program or browser receive the data message, and show corresponding page content by parsing the data format.
In the present embodiment, it with the connection of second terminal can be stateless connection.As shown in figure 4, end message is synchronous
Device also includes issuing request receiving module 114, and request is issued for obtaining information, and issuing request according to information extracts user's mark
Know.
In the present embodiment, data message issues module 112 and is additionally operable to obtain corresponding session object according to user's mark.
Stateless connection is i.e. without keeping the connection of connection status, and both sides are when no data communicates for connection, and connection can be kept
Off-state, for example, HTTP connections etc..When being connected with second terminal in stateless, second terminal can be by sending information
Issue request and pull synchronous data message.
In one embodiment, can be stateful connection with the connection of second terminal.End message sychronisation is also wrapped
Include search condition information and monitor module 116, for detecting whether the search condition information changes, if so, then calling institute
State data message and issue module 112.
In the present embodiment, search condition information monitors module 116 and can be used for periodically traveling through session object, obtains session pair
As whether corresponding search condition information changes, if changing, according to the search condition acquisition of information number after renewal
It is believed that ceasing and then issuing second terminal.
In one embodiment, search condition information monitors module 116 and can also be used to capture search condition by monitor
The update event dished out during information updating, then obtains the corresponding search condition information of event and session object, and continue to hold
The step of capable data message corresponding according to the search condition acquisition of information extracted.
That is, after information upload request is received, extracted according to information upload request after search condition information,
If the search condition information uploaded is different from the search condition information stored in the caching of session object, immediately according to upload
The corresponding data message of search condition acquisition of information, and it is handed down to second terminal.
Above-mentioned end message synchronous method and device, the inspection corresponding with the page that it currently shows that first terminal is uploaded
Rope conditional information caching corresponding with session object, and search condition information is filling for the data message for the page that acquisition is currently shown
Slitting part, realizes data message synchronous with first terminal so that user can be cached when using second terminal by obtaining
In search condition information obtain the data message that the data message of the page that is currently shown with first terminal is consistent, it is automatic real
Multiple terminals is showed and has synchronously shown identical data message, without with artificially in second terminal by repeatedly clicking come same
Step, so as to improve the convenience of operation.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only memory(Read-Only Memory, ROM)Or random access memory(Random Access
Memory, RAM)Deng.
Embodiment described above only expresses the several embodiments of the present invention, and it describes more specific and detailed, but simultaneously
Therefore the limitation to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for one of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention
Protect scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.