Embodiment
The embodiment of the present invention provides the control module of a kind of data sharing method and system, window, can realize the data sharing between window, makes user without the operation of interrupting window, just can upgrade the data of this window.
Please refer to Fig. 1, in the embodiment of the present invention, embodiment of data sharing method comprises:
101,, when basic data data have renewal, the control module of first window synchronously upgrades basic data data in the control module that is buffered in Second Window;
In the present embodiment, when basic data data have renewal, the control module of first window can synchronously upgrade basic data data in the control module that is buffered in Second Window, in actual applications, these basic data data can for back-up system business use comparatively fixing, and conventional data, for example: in accounting system, basic data data can comprise: subject data, voucher word, in JXC System, basic data data can comprise: supplier, client, commodity, warehouse, basic data data can also be for needing this locality to search for generally user, drop-down menu, business operation, while making single process, the data that need to often call, for example: bookkeeping voucher, buying order, sales slip, requisition slip, report query etc.
102, the control module of first window upgrades the basic data sign in the control module of Second Window, while making user open the 3rd window, the control module of the 3rd window obtains basic data data according to the basic data sign of the sign correspondence of the 3rd window.
In the present embodiment, the control module of first window can upgrade the basic data sign in the control module of Second Window, whether wherein this basic data sign is used to indicate basic data data renewal, in actual applications, when user opens the 3rd window, the control module of the 3rd window obtains basic data data according to the basic data sign of the sign correspondence of the 3rd window.
It should be noted that, the control module of the window in the embodiment of the present invention is processor (CPU, Central Processing Unit) call the object that the source code of this window presents, be buffered in the data in data-carrier store that are stored in that the data of the control module of window can read for this window control unit.
In the present embodiment, when basic data data have renewal, the control module of first window synchronously upgrades basic data data in the control module that is buffered in Second Window, the control module of first window upgrades basic data sign, while making user open the 3rd window, the control module of the 3rd window obtains basic data data according to the basic data sign of the sign correspondence of the 3rd window, realized like this data sharing between window, make user without the operation of interrupting window, just can upgrade the data of this window.
For the ease of understanding, below with an instantiation to being described in the data sharing method of the embodiment of the present invention, refer to Fig. 2, in the embodiment of the present invention, another embodiment of data sharing method comprises:
201, the control module of Second Window identifies the window of basic data data correlation, the object of formation base Data Identification array;
In the present embodiment, the control module of Second Window can identify the window of basic data data correlation, the object of formation base Data Identification array, wherein, basic data sign array comprises: the basic data sign of the sign correspondence of the sign of the window of basic data data correlation and window, the 3rd window is the window with basic data data correlation, for example, the window of basic data data correlation comprises: C1, C2, C3, basic data data are Data1, when Data1 does not upgrade, the basic data sign of the sign correspondence of window is set to false, the basic data sign array now generating is Data1Related={C1:false, C2:false, C3:false}.
202, whether the control module judgement basis data of first window has renewal, if so, performs step 203, if not, performs step 209;
In the present embodiment, whether the control module judgement basis data of first window has renewal, if there is renewal, perform step 203, if do not upgrade, perform step 209, in actual applications, the control module storage basic data data of first window, after user modifies to these basic data data or upgrades in first window, the control module of first window can have renewal by judgement basis data.
203, the control module of first window synchronously upgrades basic data data in the control module that is buffered in Second Window;
In the present embodiment, when in step 202, basic data data have renewal, the control module of first window can synchronously upgrade basic data data in the control module that is buffered in Second Window, in actual applications, these basic data data can for back-up system business use comparatively fixing, and conventional data, for example: in accounting system, basic data data can comprise: subject data, voucher word, in JXC System, basic data data can comprise: supplier, client, commodity, warehouse, basic data data can also be for needing this locality to search for generally user, drop-down menu, business operation, while making single process, the data that need to often call, for example: bookkeeping voucher, buying order, sales slip, requisition slip, report query etc.
204, the control module of first window upgrades the basic data sign in the control module of Second Window;
In the present embodiment, the control module of first window can upgrade the basic data sign in the control module of Second Window, for example, basic data sign array in the control module of Second Window is Data1Related={C1:false, C2:false, C3:false}, the control module of first window identifies false by basic data and upgrades, basic data sign array after upgrading in the control module of Second Window is Data1Related={C1:true, C2:true, C3:true}.
205, when user opens the 3rd window, in the control module judgement basis Data Identification array of the 3rd window, whether there is the sign of self, if having, perform step 206, if do not have, perform step 210;
In the present embodiment, when user opens the 3rd window, the control module of the 3rd window can judge in the basic data sign array in the control module of Second Window, whether there is the sign of self, for example, the 3rd window be designated C1, basic data sign array is Data1Related={C1:true, C2:true, C3:true}, now the control module of the 3rd window is determined in the basic data sign array in the control module of Second Window the sign of self, performs step 206.
206, in the control module judgement basis Data Identification array of the 3rd window, whether the basic data of the sign correspondence of the 3rd window sign has renewal, if there is renewal, performs step 207, if do not upgrade, performs step 209;
In the present embodiment, the control module of the 3rd window can judge whether the basic data sign in the basic data sign array in the control module of Second Window has renewal, for example, the 3rd window be designated C1, basic data sign array is Data1Related={C1:true, C2:true, C3:true}, the basic data that wherein C1 is corresponding is designated true, and the control module of the 3rd window determines that basic data sign has renewal, performs step 207.
It should be noted that, whether basic data sign is used to indicate basic data data renewal, and basic data sign can, for numeral, character, array or object, not limit herein.
207, the control module of the 3rd window obtains the basic data data at the control module buffer memory of Second Window again;
In the present embodiment, at the control module judgement basis Data Identification of step 206 the 3rd window, have after renewal, the control module of the 3rd window can obtain the basic data data at the control module buffer memory of Second Window again.
208, the control module of first window upgrades basic data sign corresponding to the 3rd window ID in the basic data sign array in the control module of Second Window;
In the present embodiment, after step 207, the control module of first window can upgrade basic data sign corresponding to the 3rd window ID in the basic data sign array in the control module of Second Window, for example, the 3rd window be designated C1, basic data sign array is Data1Related={C1:true, C2:true, C3:true}, the control module of first window makes true corresponding to C1 into false, basic data sign array after renewal is Data1Related={C1:false, C2:true, C3:true}.
209,, when user opens the 3rd window, the control module of the 3rd window presents the content in the 3rd window;
In the present embodiment, when in step 202 or step 206, the determination result is NO, if user opens the 3rd window, the control module of the 3rd window directly presents the content in the 3rd window.
210, the control module of the 3rd window reads the basic data data of buffer memory in the control module of Second Window;
211, the control module of Second Window inserts the sign of the 3rd window in basic data sign array.
In the present embodiment, in step 205, in judgement basis Data Identification array, there is no the sign of the 3rd window, the control module of the 3rd window can read the basic data data of buffer memory in the control module of Second Window, and then the control module of Second Window can identify the sign of inserting the 3rd window in array in basic data.
It should be noted that, first window and the 3rd window are the subwindow under Second Window.
In the present embodiment, the control module of Second Window identifies the window of basic data data correlation, the object of formation base Data Identification array, whether the control module judgement basis data of first window has renewal, and when having renewal, the control module of first window synchronously upgrades basic data data in the control module that is buffered in Second Window, and the basic data sign in the control module of Second Window is upgraded, when user opens the 3rd window, the variation that the control module of the 3rd window identifies by basic data comes judgement basis data whether to have renewal, and when basic data data have renewal, the control module of the 3rd window can read the basic data data under the control module that is buffered in Second Window again, like this, when user opens the window of each basic data data correlation, and when basic data Data Update, the window of each basic data data correlation can be independent read the basic data data under the control module that is buffered in Second Window, realized the data sharing between window, make user without the operation of interrupting window, just can upgrade the data of this window, thereby reduced user's refresh operation.
Below to describing for carrying out the control module of window of the embodiment of the present invention of above-mentioned data sharing method, please refer to Fig. 3, embodiment of control module of window in the embodiment of the present invention, during control module that the control module of this window is first window, comprising:
Judge module 301 and update module 302;
Whether judge module 301, have renewal for judgement basis data;
Update module 302, for when judgment result is that of judge module 301 is, synchronously upgrades basic data data in the control module that is buffered in Second Window;
Update module 302, also upgrades for the basic data sign to the control module of Second Window, and while making user open the 3rd window, the control module of the 3rd window obtains basic data data according to the basic data sign of the sign correspondence of the 3rd window.
In the present embodiment, whether judge module 301 judgement basis datas have renewal, update module 302 is when judgment result is that of judge module 301 is, synchronously upgrade basic data data in the control module that is buffered in Second Window, and the basic data sign in the control module of Second Window is upgraded, while making user open the 3rd window, the control module of the 3rd window obtains basic data data according to the basic data sign of the sign correspondence of the 3rd window, realized like this data sharing between window, make user without the operation of interrupting window, just can upgrade the data of this window.
In order better to understand the above embodiments, the alternately data interactive mode in the control module of window is described between the modules below control module of window being comprised, refer to equally Fig. 3, another embodiment of the control module of window in the embodiment of the present invention, when the control module of window is the control module of first window, comprising:
Judge module 301 and update module 302.
Whether judge module 301 judgement basis datas have renewal, whether the control module judgement basis data of first window has renewal, if there is renewal, judged result is sent to update module 302, if less than renewal and when user opens the 3rd window, judged result is informed to the control module of the 3rd window, make the control module of the 3rd window directly present the content in the 3rd window, in actual applications, the control module storage basic data data of first window, after user modifies to these basic data data or upgrades in first window, the control module of first window can have renewal by judgement basis data.
Update module 302 receives judgment result is that while being of judge module 301, synchronously upgrade basic data data in the control module that is buffered in Second Window, in actual applications, these basic data data can for back-up system business use comparatively fixing, and conventional data, for example: in accounting system, basic data data can comprise: subject data, voucher word, in JXC System, basic data data can comprise: supplier, client, commodity, warehouse, basic data data can also be for needing this locality to search for generally user, drop-down menu, business operation, while making single process, the data that need to often call, for example: bookkeeping voucher, buying order, sales slip, requisition slip, report query etc.
Basic data sign in the control module of 302 pairs of Second Windows of update module is upgraded, while making user open the 3rd window, the control module of the 3rd window obtains this basic data data according to the basic data sign of the sign correspondence of the 3rd window, for example, basic data sign array in the control module of Second Window is Data1Related={C1:false, C2:false, C3:false}, update module 302 identifies false by basic data and upgrades, basic data sign array after upgrading in the control module of Second Window is Data1Related={C1:true, C2:true, C3:true}, when user opens the 3rd window, the control module of the 3rd window obtains this basic data data according to basic data sign true corresponding to the sign C1 of the 3rd window.
Then update module 302 is after the 3rd window obtains these basic data data, basic data sign corresponding to the 3rd window ID in basic data sign array in the control module of Second Window upgraded, wherein, basic data sign array comprises: the basic data sign of the sign correspondence of the sign of the window of basic data data correlation and window, the 3rd window is the window with basic data data correlation, for example, the 3rd window be designated C1, basic data sign array is Data1Related={C1:true, C2:true, C3:true}, the control module of first window makes true corresponding to C1 into false, basic data sign array after renewal is Data1Related={C1:false, C2:true, C3:true}.
In the present embodiment, whether the control module of window has renewal by judging unit 301 judgement basis datas, and when basic data data have renewal, updating block 302 synchronously upgrades basic data data in the control module that is buffered in Second Window, and the basic data sign in the control module of Second Window is upgraded, while making user open the 3rd window, the control module of the 3rd window obtains this basic data data according to the basic data sign of the sign correspondence of the 3rd window, like this, when user opens the window of each basic data data correlation, and when basic data Data Update, the window of each basic data data correlation can be independent read the basic data data under the control module that is buffered in Second Window, realized the data sharing between window, make user without the operation of interrupting window, just can upgrade the data of this window, thereby reduced user's refresh operation.
Below to describing for carrying out the control module of window of the embodiment of the present invention of above-mentioned data sharing method, refer to Fig. 4, embodiment of control module of window in the embodiment of the present invention, during control module that the control module of window is Second Window, comprising:
Cache module 401 and update module 402;
Cache module 401, for buffer memory basic data data;
Update module 402, for receiving the basic data data after the renewal that the control module of first window sends, and be synchronously updated in cache module 401, make the control module of the 3rd window obtain basic data data according to the basic data sign of the sign correspondence of the 3rd window in the control module of Second Window.
In the present embodiment, cache module 401 buffer memory basic data data, basic data data after the renewal that the control module of update module 402 reception first windows sends, and be synchronously updated in cache module 401, make the control module of the 3rd window obtain basic data data according to the basic data sign of the sign correspondence of the 3rd window in the control module of Second Window, realized like this data sharing between window, make user without the operation of interrupting window, just can upgrade the data of this window.
In order better to understand the above embodiments, the alternately data interactive mode in the control module of window is described between the modules below control module of window being comprised, refer to Fig. 5, another embodiment of the control module of window in the embodiment of the present invention, when the control module of window is the control module of Second Window, comprising:
Cache module 501, execution module 502 and update module 503.
Cache module 501 buffer memory basic data data.
The window of 502 pairs of basic data data correlations of execution module identifies, the object of formation base Data Identification array, wherein, basic data sign array comprises: the basic data sign of the sign correspondence of the sign of the window of basic data data correlation and window, the 3rd window is the window with basic data data correlation, for example, the window of basic data data correlation comprises: C1, C2, C3, basic data data are Data1, when Data1 does not upgrade, the basic data sign of the sign correspondence of window is set to false, the basic data sign array that now execution module 403 generates is Data1Related={C1:false, C2:false, C3:false}.
Basic data data after the renewal that the control module of update module 503 reception first windows sends, and be synchronously updated in cache module 501, make the control module of the 3rd window obtain basic data data according to the basic data sign of the sign correspondence of the 3rd window in the control module of Second Window, in actual applications, these basic data data can for back-up system business use comparatively fixing, and conventional data, for example: in accounting system, basic data data can comprise: subject data, voucher word, in JXC System, basic data data can comprise: supplier, client, commodity, warehouse, basic data data can also be for needing this locality to search for generally user, drop-down menu, business operation, while making single process, the data that need to often call, for example: bookkeeping voucher, buying order, sales slip, requisition slip, report query etc.
It should be noted that, first window and the 3rd window are the subwindow under Second Window.
In the present embodiment, cache module 501 buffer memory basic data data, the window of 502 pairs of basic data data correlations of execution module identifies, the object of formation base Data Identification array, basic data data after the renewal that the control module of update module 503 reception first windows sends, and be synchronously updated in cache module 501, make the control module of the 3rd window obtain basic data data according to the basic data sign of the sign correspondence of the 3rd window in the control module of Second Window, like this when user opens the window of each basic data data correlation, and when basic data Data Update, the window of each basic data data correlation can be independent read the basic data data under the control module that is buffered in Second Window, realized the data sharing between window, make user without the operation of interrupting window, just can upgrade the data of this window, thereby reduced user's refresh operation.
Below to describing for carrying out the control module of window of the embodiment of the present invention of above-mentioned data sharing method, its basic logical structure is with reference to figure 6, embodiment of control module of window in the embodiment of the present invention, when the control module of window is the control module of the 3rd window, comprising:
Acquisition module 601;
Acquisition module 601, when opening the 3rd window user, obtains basic data data according to the basic data sign of the sign correspondence of the 3rd window in the control module of Second Window;
Wherein, basic data data buffer storage is in the control module of Second Window.
In the present embodiment, when user opens the 3rd window, acquisition module 601 obtains basic data data according to the basic data sign of the sign correspondence of the 3rd window in the control module of Second Window, wherein, basic data data buffer storage is in the control module of Second Window, realize like this data sharing between window, made user without the operation of interrupting window, just can upgrade the data of this window.
In order better to understand the above embodiments, the alternately data interactive mode in the control module of window is described between the modules below control module of window being comprised, refer to Fig. 7, another embodiment of the control module of window in the embodiment of the present invention, when the control module of window is the control module of the 3rd window, comprising:
The first judge module 701, acquisition module 702 and the second judge module 703.
When user opens the 3rd window, the first judge module 701 judges in the basic data sign array in the control module of Second Window, whether there is the sign of self, and when there is no self identification, judged result is sent to acquisition module 702, when having self identification, judged result is sent to the second judge module 703, wherein basic data sign array comprises: the basic data sign of the sign correspondence of the sign of the window of basic data data correlation and window, the 3rd window is the window with basic data data correlation, for example, the 3rd window be designated C1, basic data sign array is Data1Related={C1:true, C2:true, C3:true}, now in the basic data sign array in the control module of first judge module 701 definite Second Windows, there is the sign of self.
Acquisition module 702 is when receiving the first judge module 701 and send that the determination result is NO, in the control module of Second Window, read the basic data data of buffer memory, and inform that the control module of Second Window inserts the sign of the 3rd window in basic data sign array.
The second judge module 703 is when judgment result is that of receiving that the first judge module 701 sends is, whether the basic data sign in judgement basis Data Identification array has renewal, if there is renewal, judged result is informed to acquisition module 702, if do not upgrade, judged result is informed to the control module of the 3rd window, make when user opens the 3rd window, the control module of the 3rd window presents the content in the 3rd window, for example, the 3rd window be designated C1, basic data sign array is Data1Related={C1:true, C2:true, C3:true}, the basic data that wherein C1 is corresponding is designated true, the control module of the 3rd window determines that basic data sign has renewal.
It should be noted that, whether basic data sign is used to indicate basic data data renewal, and basic data sign can, for numeral, character, array or object, not limit herein.
Acquisition module 702 receives judgment result is that while being of the second judge module 703 transmissions, again obtain the basic data data at the control module buffer memory of Second Window, and inform that the control module of first window upgrades basic data sign corresponding to the 3rd window ID in the basic data sign array in Second Window.
In the present embodiment, the control module of window is by the first judge module 701, when user opens the 3rd window, the first judge module 701 judges in the basic data sign array in the control module of Second Window, whether there is the sign of self, the second judge module 703 is when judgment result is that of receiving that the first judge module 701 sends is, whether the basic data sign in judgement basis Data Identification array has renewal, if there is renewal, acquisition module 702 obtains the basic data data at the control module buffer memory of Second Window again, like this when user opens the window of each basic data data correlation, and when basic data Data Update, the window of each basic data data correlation can be independent read the basic data data under the control module that is buffered in Second Window, realized the data sharing between window, make user without the operation of interrupting window, just can upgrade the data of this window, thereby reduced user's refresh operation.
To describing for carrying out the data-sharing systems of the embodiment of the present invention of above-mentioned data sharing method, refer to Fig. 8 below, embodiment of data-sharing systems in the embodiment of the present invention, comprising:
The control module 803 of the control module 801 of first window, the control module 802 of Second Window and the 3rd window;
The control module 801 of Second Window, for buffer memory basic data data;
The control module 802 of first window, for when basic data data have renewal, synchronously upgrades basic data data in the control module that is buffered in Second Window, and the basic data sign in the control module of Second Window is upgraded;
The control module 803 of the 3rd window, when opening the 3rd window user, obtains basic data data according to the basic data sign of the sign correspondence of the 3rd window.
In the present embodiment, the control module 801 buffer memory basic data data of Second Window, when basic data data have renewal, the control module 802 of first window synchronously upgrades basic data data in the control module that is buffered in Second Window, and the basic data sign in the control module of Second Window is upgraded, when user opens the 3rd window, the control module 803 of the 3rd window obtains basic data data according to the basic data sign of the sign correspondence of the 3rd window, realized like this data sharing between window, make user without the operation of interrupting window, just can upgrade the data of this window.
In order better to understand the above embodiments, the alternately data interactive mode in data-sharing systems is described between the unit below data-sharing systems being comprised, please consult equally Fig. 8, in the embodiment of the present invention, another embodiment of data-sharing systems comprises:
The control module 803 of the control module 801 of first window, the control module 802 of Second Window and the 3rd window;
The window of 801 pairs of basic data data correlations of control module of Second Window identifies, and the object of formation base Data Identification array, wherein, basic data sign array comprises: the basic data sign of the sign correspondence of the sign of the window of basic data data correlation and window, the 3rd window is the window with basic data data correlation, for example, the window of basic data data correlation comprises: C1, C2, C3, basic data data are Data1, when Data1 does not upgrade, the basic data sign of the sign correspondence of window is set to false, the basic data sign array now generating is Data1Related={C1:false, C2:false, C3:false}.
Whether the control module 801 judgement basis datas of first window have renewal, in actual applications, the control module 801 storage basic data data of first window, after user modifies to these basic data data or upgrades in first window, the control module 801 of first window can have renewal by judgement basis data.
If there is renewal, the control module 801 of first window synchronously upgrades basic data data in the control module 802 that is buffered in Second Window, if do not upgrade, when user opens the 3rd window, judged result is informed to the control module 803 of the 3rd window, now the control module 803 of the 3rd window presents the content in the 3rd window, in actual applications, these basic data data can for back-up system business use comparatively fixing, and conventional data, for example: in accounting system, basic data data can comprise: subject data, voucher word, in JXC System, basic data data can comprise: supplier, client, commodity, warehouse, basic data data can also be for needing this locality to search for generally user, drop-down menu, business operation, while making single process, the data that need to often call, for example: bookkeeping voucher, buying order, sales slip, requisition slip, report query etc.
The control module 801 of first window is synchronous to be upgraded in the control module 802 that is buffered in Second Window after basic data data, basic data sign in the control module 802 of 801 pairs of Second Windows of control module of first window is upgraded, for example, basic data sign array in the control module 802 of Second Window is Data1Related={C1:false, C2:false, C3:false}, the control module 801 of first window identifies false by basic data and upgrades, in the control module 802 of the Second Window after renewal, basic data sign array is Data1Related={C1:true, C2:true, C3:true}.
When user opens the 3rd window, the sign that whether has self in the control module 803 judgement basis Data Identification arrays of the 3rd window, for example, the 3rd window be designated C1, basic data sign array is Data1Related={C1:true, C2:true, C3:true}, now has the sign of self in the basic data sign array in the control module 802 of control module 803 definite Second Windows of the 3rd window.
If there is no self identification, the control module 803 of the 3rd window reads the basic data data of buffer memory in the control module 802 of Second Window, and the control module 802 of informing Second Window do not have the sign of the 3rd window, now the control module 802 of Second Window inserts the sign of the 3rd window in basic data sign array.
If there is self identification, in the control module judgement basis Data Identification array of the 3rd window, whether the basic data of the sign correspondence of the 3rd window sign has renewal, for example, the 3rd window be designated C1, basic data sign array is Data1Related={C1:true, C2:true, C3:true}, the basic data that wherein C1 is corresponding is designated true, the control module 803 of the 3rd window determines that basic data sign has renewal, if there is renewal, the control module 803 of the 3rd window obtains the basic data data at control module 802 buffer memorys of Second Window again, then the control module 803 of the 3rd window informs that the control module 801 of first window has obtained the basic data data of buffer memory again.
It should be noted that, whether basic data sign is used to indicate basic data data renewal, and basic data sign can, for numeral, character, array or object, not limit herein.
Then the control module 801 of first window upgrades basic data sign corresponding to the 3rd window ID in the basic data sign array in the control module of Second Window, for example, the 3rd window be designated C1, basic data sign array is Data1Related={C1:true, C2:true, C3:true}, the control module 801 of first window makes true corresponding to C1 into false, basic data sign array after renewal is Data1Related={C1:false, C2:true, C3:true}.
It should be noted that, first window and the 3rd window are the subwindow under Second Window.
In the present embodiment, the window of 802 pairs of basic data data correlations of control module of Second Window identifies, the object of formation base Data Identification array, whether the control module 801 judgement basis datas of first window have renewal, and when having renewal, the control module 801 of first window synchronously upgrades basic data data in the control module 802 that is buffered in Second Window, and the basic data sign in the control module 802 of Second Window is upgraded, when user opens the 3rd window, the variation that the control module 803 of the 3rd window identifies by basic data comes judgement basis data whether to have renewal, and when basic data data have renewal, the control module 803 of the 3rd window can read the basic data data under the control module 802 that is buffered in Second Window again, like this, when user opens the window of each basic data data correlation, and when basic data Data Update, the window of each basic data data correlation can be independent read the basic data data under the control module 802 that is buffered in Second Window, realized the data sharing between window, make user without the operation of interrupting window, just can upgrade the data of this window, thereby reduced user's refresh operation.
The above, above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.