JP2005078503A - Client/server system with master data reflecting means, master data reflection method and program - Google Patents

Client/server system with master data reflecting means, master data reflection method and program Download PDF

Info

Publication number
JP2005078503A
JP2005078503A JP2003310232A JP2003310232A JP2005078503A JP 2005078503 A JP2005078503 A JP 2005078503A JP 2003310232 A JP2003310232 A JP 2003310232A JP 2003310232 A JP2003310232 A JP 2003310232A JP 2005078503 A JP2005078503 A JP 2005078503A
Authority
JP
Japan
Prior art keywords
master
client
server
storage unit
update
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.)
Withdrawn
Application number
JP2003310232A
Other languages
Japanese (ja)
Inventor
Kenichi Komata
憲一 小俣
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP2003310232A priority Critical patent/JP2005078503A/en
Publication of JP2005078503A publication Critical patent/JP2005078503A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To obtain coincidence between a master file in a server computer and the copy file content of the master file in a client computer when necessary while keeping the communication volume between a client and a server small. <P>SOLUTION: The server computer is provided with a server master storage part and a transaction data storage part, and the client computer is provided with a client master storage part having information obtained by copying information in the server master storage part. The server computer compares the content of the server master storage part and the content of the client master storage part when receiving transaction data from the client computer and registers the transaction data in the transaction data storage part in the case coincidence is found and extracts and transmits the difference between the content of the server master storage part and the content of the client master storage part to the client computer in the case no coincidence is found. The client computer updates the client master storage part on the basis of the received difference. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、サーバコンピュータにマスタファイルを備え、全てのクライアントコンピュータにそのコピーであるコピーファイルを備え、サーバコンピュータ上のマスタファイルが更新された後、クライアントコンピュータ上のコピーファイルをサーバコンピュータ上のマスタファイルに一致させる機能を有するクライアント/サーバシステム並びにクライアント/サーバシステムにおけるマスタデータ反映方法およびマスタデータ反映用プログラムに関するものである。 According to the present invention, a server computer is provided with a master file, and all client computers are provided with a copy file as a copy thereof. After the master file on the server computer is updated, the copy file on the client computer is transferred to the master on the server computer. The present invention relates to a client / server system having a function for matching a file, a master data reflection method and a master data reflection program in the client / server system.

全てのクライアントコンピュータ上のコピーファイルをサーバコンピュータのマスタファイルと一致させる機能を有するクライアント/サーバシステムでは、マスタファイルの更新が行われた場合、これと同じ更新をコピーファイルに対して行う必要がある。このようなとき従来は、サーバコンピュータにおいて取得されたマスタファイル更新履歴情報に基づいて定期的に更新の有無を確認し、更新されていれば、コピーファイルの更新を行う方法(例えば、特許文献1)がとられていた。具体的には、日次処理と呼ばれる、毎日定期的に実行される処理の一部として行われていた等である。この特許文献1のような方法では、マスタファイルの更新が行われて以降、定期的な更新処理がなされるまでの一定期間は、クライアント/サーバコンピュータ間ではファイルの内容が一致していないという問題点があった。したがって、この方法は、ある処理過程のある時点において、両ファイルが一致していることが必須とされるシステムには採用できないことになる。この問題点を回避する為、クライアントコンピュータでコピーファイルの参照の必要が発生したとき、参照の直前に、マスタファイルの更新の有無を確認し、更新が有れば、コピーファイルを更新する方法(例えば、特許文献2)がとられていた。 In a client / server system having a function of matching copy files on all client computers with the master file of the server computer, when the master file is updated, it is necessary to perform the same update on the copy file. . Conventionally, in such a case, a method of regularly checking whether there is an update based on the master file update history information acquired in the server computer, and updating the copy file if it has been updated (for example, Patent Document 1). ) Was taken. Specifically, it is performed as part of a process called a daily process, which is executed regularly every day. In the method as disclosed in Patent Document 1, the contents of the files do not match between the client / server computers for a certain period after the master file is updated until the periodic update processing is performed. There was a point. Therefore, this method cannot be adopted in a system in which it is essential that both files match at a certain point in a certain process. To avoid this problem, when a copy file needs to be referenced on the client computer, check whether the master file has been updated immediately before the reference, and if there is an update, update the copy file ( For example, Patent Document 2) has been taken.

特開平3−110643号公報(第4−5頁、第3図)Japanese Patent Laid-Open No. 3-110463 (page 4-5, FIG. 3)

特開平6−290098号公報(第5頁、図7)Japanese Patent Laid-Open No. 6-290098 (page 5, FIG. 7)

しかしながら、特許文献2の方法は、クライアント/サーバコンピュータ間で参照データの一致が保証される反面、クライアントコンピュータがコピーファイルの参照更新のつど、常にサーバコンピュータに更新状況を問い合わせるため、恒常的にクライアント/サーバコンピュータ間で通信が多発し、システムの処理効率を下げるという問題があった。
一方、ファイルの内容に基づいてある種のデータを作成し登録するような業務システムでは、i)クライアントコンピュータにおけるデータの作成過程でコピーファイルを何度も参照するが、サーバコンピュータのマスタファイルとの一致は、当該データが完成してサーバコンピュータに登録するときに保証されていれば良い、ii)ファイルの更新頻度は低く、データの登録時に前記両ファイルの不一致が検出される確率は低い、という二つの特性を持つ場合がある。例えば、商品マスタファイルの内容に基づいて、クライアントコンピュータにて販売データを作成し、サーバコンピュータに登録するシステムのような場合である。このようなシステムの場合、当該データ作成過程においては、ファイル内容は一致しているものと仮定してコピーファイルを何回か参照しながら処理を行い、当該データ完成後の登録時点で事後的に一致確認を行うようにすれば、両ファイル一致確認の為の通信量を大幅に削減できる。
本発明は、かかる考え方を取り入れることにより、上記i)、ii)の特性を持つシステムにおいて、クライアント/サーバコンピュータ間の通信量を低く保ちながら、サーバコンピュータのマスタファイルとクライアントコンピュータのコピーファイルの内容の一致が必要な時点で、その一致保証するクライアント/サーバシステム並びにクライアント/サーバシステムにおけるマスタデータ反映方法およびマスタデータ反映用プログラムを提供しようとするものである。
However, while the method of Patent Document 2 guarantees that the reference data matches between the client / server computer, the client computer always inquires the server computer about the update status every time the copy file is updated, so the client computer is constantly inquired about the update status. There has been a problem that communication between server computers frequently occurs and the processing efficiency of the system is lowered.
On the other hand, in business systems that create and register certain types of data based on the contents of the file, i) refer to the copy file many times during the data creation process on the client computer. It is sufficient that the match is guaranteed when the data is completed and registered in the server computer. Ii) The file update frequency is low, and the probability that a mismatch between the two files is detected at the time of data registration is low. May have two characteristics. For example, it is a case of a system in which sales data is created by a client computer based on the contents of a product master file and registered in a server computer. In the case of such a system, in the data creation process, it is assumed that the file contents are the same, and the process is performed while referring to the copy file several times. If the matching check is performed, the traffic for checking the matching of both files can be greatly reduced.
The present invention adopts such a concept, and in the system having the characteristics i) and ii), the contents of the master file of the server computer and the copy file of the client computer are maintained while keeping the communication amount between the client / server computer low. The client / server system, the master data reflecting method, and the master data reflecting program in the client / server system that guarantee the matching are provided at the time when matching is required.

本発明の第一のクライアント/サーバシステムは、少なくとも一台のクライアントコンピュータと一台のサーバコンピュータとからなるクライアント/サーバシステムであって、前記サーバコンピュータは、サーバマスタ記憶部と、取引データを格納する取引データ記憶部とを備え、前記少なくとも一台のクライアントコンピュータのそれぞれは、前記サーバマスタ記憶部内の情報を複写した情報を有するクライアントマスタ記憶部と、利用者から入力された取引データを、前記サーバコンピュータに送信するクライアントサイド・取引データ登録部とを備え、前記サーバコンピュータは、前記クライアントコンピュータから前記取引データを受信したときに、前記サーバマスタ記憶部と前記クライアントマスタ記憶部の内容の一致確認を行い、一致しているときには前記取引データを前記取引データ記憶部に登録するサーバサイド・取引データ登録部と、前記一致確認で一致していないことを確認したときには、前記サーバマスタ記憶部と前記クライアントマスタ記憶部との内容の差分抽出を行い、抽出されたクライアントマスタ更新用差分を前記クライアントコンピュータに送信するサーバサイド・クライアントマスタ更新部とを備え、前記クライアントコンピュータは、前記サーバコンピュータから受信した前記クライアントマスタ更新用差分に基づき前記クライアントマスタ記憶部を更新するクライアントサイド・クライアントマスタ更新部を備えている。
本発明の第2のクライアント/サーバシステムは、上記第1のクライアント/サーバシステムにおいて、前記少なくとも一台のクライアントコンピュータのうち少なくとも一台は、利用者から入力された前記サーバマスタ記憶部に対する更新情報を前記サーバコンピュータに送信するクライアントサイド・サーバマスタ更新部を備え、前記サーバコンピュータは、前記更新情報を受信して、該更新情報に基づき前記サーバマスタ記憶部を更新するサーバサイド・サーバマスタ更新部を備えている。
本発明の第3のクライアント/サーバシステムは、上記第1のクライアント/サーバシステムにおいて、前記サーバコンピュータは、前記サーバマスタ記憶部の情報が変更されるたびに更新履歴として、一件の更新履歴レコードを格納するマスタ更新履歴記憶部を備え、前記少なくとも一台のクライアントコンピュータのそれぞれは、前記クライアントマスタ記憶部の更新が完了した前記更新履歴レコードの数を格納するクライアントマスタ更新件数記憶部を備え、前記サーバサイド・取引データ登録部は、前記マスタ更新履歴記憶部の前記更新履歴レコードの数と前記クライアントマスタ更新件数記憶部の値の比較により前記サーバマスタ記憶部と前記クライアントマスタ記憶部の内容の一致確認を行い、前記サーバサイド・クライアントマスタ更新部は、前記マスタ更新履歴記憶部の前記更新履歴レコードの数と前記クライアントマスタ更新件数記憶部の値の差分に基づき前記マスタ更新履歴記憶部から更新履歴レコードを抽出することにより前記クライアントマスタ更新用差分を抽出し、前記クライアントサイド・サーバマスタ更新部は前記サーバコンピュータから受信した前記クライアントマスタ更新用差分に基づき前記クライアントマスタ記憶部を更新するとともに、前記マスタ更新履歴記憶部の前記更新履歴レコードの数を前記クライアントマスタ更新件数記憶部に記憶することを特徴とする。
本発明の第4のクライアント/サーバシステムは、上記第3のクライアント/サーバシステムにおいて、前記少なくとも一台のクライアントコンピュータのうち少なくとも一台には、利用者から入力された前記サーバマスタ記憶部にたいする前記更新情報を前記サーバコンピュータに送信する前記クライアントサイド・サーバマスタ更新部を備え、前記サーバコンピュータには、前記更新情報を受信して、該更新情報に基づき前記サーバマスタ記憶部を更新し、該更新の更新履歴を前記更新履歴レコードとして前記マスタ更新履歴記憶部に格納する前記サーバサイド・サーバマスタ更新部を備えている。
本発明の第5のクライアント/サーバシステムは、上記第3または大4のクライアント/サーバシステムにおいて、前記サーバマスタ記憶部には、識別子と該識別子に関連するデータからなるマスタレコードを格納し、前記マスタ更新履歴記憶部には、更新された前記マスタレコード対応に該マスタレコードの前記識別子を含む前記更新履歴レコードを格納し、前記取引データには少なくとも一つの前記マスタレコードの前記識別子を含み、前記サーバサイド・クライアントマスタ更新部は、前記クライアントマスタ更新用差分の各更新履歴レコードに含まれる前記識別子と前記取引データに含まれる前記識別子とで一致するものがない場合には、前記取引データを前記取引データ記憶部に格納することを特徴とする。
本発明の第1のクライアント/サーバシステムにおけるマスタデータ反映方法は、サーバマスタ記憶部と、取引データを格納する取引データ記憶部とを備える一台のサーバコンピュータと、前記サーバマスタ記憶部内の情報を複写した情報を有するクライアントマスタ記憶部を備える、少なくとも一台のクライアントコンピュータとからなるクライアント/サーバシステムにおいて、前記クライアントコンピュータが、利用者から入力された取引データを前記サーバコンピュータに送信するクライアントサイド・取引データ登録ステップと、前記サーバコンピュータが、前記クライアントコンピュータから前記取引データを受信したときに、前記サーバマスタ記憶部と前記クライアントマスタ記憶部の内容の一致確認を行い、一致しているときには前記取引データを前記取引データ記憶部に登録するサーバサイド・取引データ登録ステップと、前記サーバコンピュータが、前記一致確認で一致していないことを確認したときには、前記サーバマスタ記憶部と前記クライアントマスタ記憶部との内容の差分抽出を行い、抽出されたクライアントマスタ更新用差分を前記クライアントコンピュータに送信するサーバサイド・クライアントマスタ更新ステップと、前記クライアントコンピュータが、前記サーバコンピュータから受信した前記クライアントマスタ更新用差分に基づき前記クライアントマスタ記憶部を更新するクライアントサイド・クライアントマスタ更新ステップとを含んでいる。
本発明の第2のクライアント/サーバシステムにおけるマスタデータ反映方法は、前記第1のクライアント/サーバシステムにおけるマスタデータ反映方法において、前記少なくとも一台のクライアントコンピュータのうち少なくとも一台が、利用者から入力された前記サーバマスタ記憶部に対する更新情報を前記サーバコンピュータに送信するクライアントサイド・サーバマスタ更新ステップと、前記サーバコンピュータが、前記更新情報を受信して、該更新情報に基づき前記サーバマスタ記憶部を更新するサーバサイド・サーバマスタ更新ステップとを含んでいる。
本発明の第3のクライアント/サーバシステムにおけるマスタデータ反映方法は、前記第1のクライアント/サーバシステムにおけるマスタデータ反映方法において、前記サーバコンピュータには、前記サーバマスタ記憶部の情報が変更されるたびに更新履歴として、一件の更新履歴レコードを格納するマスタ更新履歴記憶部を備え、前記少なくとも一台のクライアントコンピュータのそれぞれは、前記クライアントマスタ記憶部の更新が完了した前記更新履歴レコードの数を格納するクライアントマスタ更新件数記憶部を備える前記クライアント/サーバシステムにおいて、前記サーバサイド・取引データ登録ステップでは、前記サーバコンピュータが、前記マスタ更新履歴記憶部の前記更新履歴レコードの数と前記クライアントマスタ更新件数記憶部の値の比較により前記サーバマスタ記憶部と前記クライアントマスタ記憶部の内容の一致確認を行い、前記サーバサイド・クライアントマスタ更新ステップでは、前記クライアントコンピュータが、前記マスタ更新履歴記憶部の前記更新履歴レコードの数と前記クライアントマスタ更新件数記憶部の値の差分に基づき前記マスタ更新履歴記憶部から更新履歴レコードを抽出することにより前記クライアントマスタ更新用差分を抽出し、前記クライアントサイド・サーバマスタ更新ステップでは、前記クライアントコンピュータが、前記サーバコンピュータから受信した前記クライアントマスタ更新用差分に基づき前記クライアントマスタ記憶部を更新するとともに、前記マスタ更新履歴記憶部の前記更新履歴レコードの数を前記クライアントマスタ更新件数記憶部に記憶することを特徴とする。
本発明の第4のクライアント/サーバシステムにおけるマスタデータ反映方法は、前記第3のクライアント/サーバシステムにおけるマスタデータ反映方法において、前記少なくとも一台のクライアントコンピュータのうち少なくとも一台が、利用者から入力された前記サーバマスタ記憶部にたいする前記更新情報を前記サーバコンピュータに送信する前記クライアントサイド・サーバマスタ更新ステップと、前記サーバコンピュータが、前記更新情報を受信して、該更新情報に基づき前記サーバマスタ記憶部を更新し、該更新の更新履歴を前記更新履歴レコードとして前記マスタ更新履歴記憶部に格納する前記サーバサイド・サーバマスタ更新ステップとを含んでいる。
本発明の第5のクライアント/サーバシステムにおけるマスタデータ反映方法は、前記第3または第4のクライアント/サーバシステムにおけるマスタデータ反映方法において、前記サーバマスタ記憶部には、識別子と該識別子に関連するデータからなるマスタレコードを格納し、前記マスタ更新履歴記憶部には、更新された前記マスタレコード対応に該マスタレコードの前記識別子を含む前記更新履歴レコードを格納し、前記取引データには少なくとも一つの前記マスタレコードの前記識別子を含む前記クライアント/サーバシステムにおいて、前記サーバサイド・クライアントマスタ更新ステップでは、前記サーバコンピュータが、前記クライアントマスタ更新用差分の各更新履歴レコードに含まれる前記識別子と前記取引データに含まれる前記識別子とで一致するものがない場合には、前記取引データを前記取引データ記憶部に格納することを特徴とする。
本発明の第1のプログラムは、サーバマスタ記憶部と取引データを格納する取引データ記憶部とを備え、前記サーバマスタ記憶部内の情報を複写した情報を有するクライアントマスタ記憶部を備える少なくとも一台のクライアントコンピュータと通信可能な一台のサーバコンピュータに、前記クライアントコンピュータから前記取引データを受信したときに、前記サーバマスタ記憶部と前記クライアントマスタ記憶部の内容の一致確認を行い、一致しているときには前記取引データを前記取引データ記憶部に登録するサーバサイド・取引データ登録手順と、前記一致確認で一致していないことを確認したときには、前記サーバマスタ記憶部と前記クライアントマスタ記憶部との内容の差分抽出を行い、抽出されたクライアントマスタ更新用差分を前記クライアントコンピュータに送信するサーバサイド・クライアントマスタ更新手順とを実行させる。
A first client / server system according to the present invention is a client / server system including at least one client computer and one server computer, and the server computer stores a server master storage unit and transaction data. Each of the at least one client computer includes a client master storage unit having information obtained by copying information in the server master storage unit, and transaction data input by a user. A client-side transaction data registration unit that transmits to the server computer, and when the server computer receives the transaction data from the client computer, the server master storage unit and the client master storage unit match confirmation The line The server-side transaction data registration unit that registers the transaction data in the transaction data storage unit when they match, and the server master storage unit and the client master when the match confirmation confirms that they do not match A server-side client master update unit that performs difference extraction of contents with the storage unit and transmits the extracted client master update difference to the client computer, wherein the client computer receives the client received from the server computer A client side client master update unit is provided for updating the client master storage unit based on the master update difference.
According to a second client / server system of the present invention, in the first client / server system, at least one of the at least one client computer is updated information on the server master storage unit input by a user. A server-side server master update unit that receives the update information and updates the server master storage unit based on the update information It has.
According to a third client / server system of the present invention, in the first client / server system, the server computer is configured as one update history record as an update history each time information in the server master storage unit is changed. Each of the at least one client computer includes a client master update number storage unit that stores the number of update history records that have been updated in the client master storage unit, The server side / transaction data registration unit is configured to compare the contents of the server master storage unit and the client master storage unit by comparing the number of update history records in the master update history storage unit and the value of the client master update number storage unit. The server side client is checked for a match. The star update unit extracts the update history record from the master update history storage unit based on the difference between the number of the update history records in the master update history storage unit and the value of the client master update number storage unit, thereby An update difference is extracted, and the client side server master update unit updates the client master storage unit based on the client master update difference received from the server computer, and the update history of the master update history storage unit The number of records is stored in the client master update number storage unit.
According to a fourth client / server system of the present invention, in the third client / server system, at least one of the at least one client computer has the server master storage unit input by a user. The client-side server master update unit that transmits update information to the server computer, the server computer receives the update information, updates the server master storage unit based on the update information, and updates the update The server-side server master update unit stores the update history as the update history record in the master update history storage unit.
According to a fifth client / server system of the present invention, in the third or fourth client / server system, the server master storage unit stores a master record including an identifier and data related to the identifier, The master update history storage unit stores the update history record including the identifier of the master record corresponding to the updated master record, and the transaction data includes the identifier of at least one master record, The server side client master update unit, when there is no match between the identifier included in each update history record of the difference for client master update and the identifier included in the transaction data, the transaction data It stores in a transaction data storage part.
The master data reflecting method in the first client / server system of the present invention comprises a server master storage unit, a server computer comprising a transaction data storage unit for storing transaction data, and information in the server master storage unit. In a client / server system including at least one client computer having a client master storage unit having copied information, the client computer transmits transaction data input from a user to the server computer. When the transaction data registration step and the server computer receive the transaction data from the client computer, the contents of the server master storage unit and the client master storage unit are checked for coincidence. The server-side transaction data registration step for registering the transaction data in the transaction data storage unit, and when the server computer confirms that they do not match in the match confirmation, the server master storage unit and the client A server-side client master update step of performing difference extraction of contents with the master storage unit and transmitting the extracted client master update difference to the client computer; and the client master received from the server computer by the client computer A client-side client master update step of updating the client master storage unit based on the update difference.
The master data reflecting method in the second client / server system of the present invention is the master data reflecting method in the first client / server system, wherein at least one of the at least one client computer is input by a user. A client-side server master update step for transmitting update information for the server master storage unit to the server computer; and the server computer receives the update information and stores the server master storage unit based on the update information. And a server side server master update step of updating.
The master data reflection method in the third client / server system according to the present invention is the master data reflection method in the first client / server system, in which the server computer changes the information in the server master storage unit. A master update history storage unit that stores one update history record as an update history, and each of the at least one client computer indicates the number of the update history records that have been updated in the client master storage unit. In the client / server system including a client master update number storage unit for storing, in the server side / transaction data registration step, the server computer updates the number of the update history records in the master update history storage unit and the client master update number. The server master storage unit and the client master storage unit confirm the contents by comparing the values in the number storage unit, and in the server side client master update step, the client computer is configured to store the master update history storage unit in the master update history storage unit. The client side server master is extracted by extracting the update history record from the master update history storage unit based on the difference between the number of update history records and the value of the client master update number storage unit, and the client side server master In the update step, the client computer updates the client master storage unit based on the client master update difference received from the server computer, and sets the number of update history records in the master update history storage unit And to store the compliant master maintenance count storage unit.
The master data reflection method in the fourth client / server system of the present invention is the master data reflection method in the third client / server system, in which at least one of the at least one client computer is input by a user. The client-side server master update step of transmitting the update information to the server master storage unit to the server computer, and the server computer receives the update information and based on the update information, the server master storage And the server side server master update step of storing the update history of the update in the master update history storage unit as the update history record.
The master data reflection method in the fifth client / server system of the present invention is the master data reflection method in the third or fourth client / server system, in which the server master storage unit is associated with an identifier and the identifier. A master record comprising data, and the master update history storage unit stores the update history record including the identifier of the master record corresponding to the updated master record, and the transaction data includes at least one transaction record In the client / server system including the identifier of the master record, in the server-side client master update step, the server computer includes the identifier and the transaction data included in each update history record of the client master update difference. Included in That if there is no match between the identifier is characterized by storing the transaction data in the transaction data storage unit.
A first program of the present invention includes a server master storage unit and a transaction data storage unit for storing transaction data, and includes at least one client master storage unit having information obtained by copying information in the server master storage unit. When the transaction data is received from the client computer to one server computer that can communicate with the client computer, the contents of the server master storage unit and the client master storage unit are checked for coincidence. When the server-side transaction data registration procedure for registering the transaction data in the transaction data storage unit and the match confirmation confirm that they do not match, the contents of the server master storage unit and the client master storage unit Difference extraction is performed and the extracted difference for client master update The executing a server-side client master maintenance procedures to be sent to the client computer.

以上説明したように、本発明には、i)クライアントコンピュータにおけるデータの作成過程でクライアントマスタ記憶部を何度も参照するが、クライアントマスタ記憶部との一致は、当該データが完成してサーバコンピュータに登録するときに保証されていれば良く、かつ、ii)ファイルの更新頻度は低く、データの登録時に前記両ファイルの不一致が検出される確率は低い、という二つの特性を持つシステムにおいて、クライアント/サーバコンピュータ間の通信量を低く保ちながら、サーバコンピュータのマスタファイルとクライアントコンピュータのコピーファイルの内容の一致が必要な時点で、その一致保証することができるという効果がある。 As described above, according to the present invention, i) the client master storage unit is referred to many times during the data creation process in the client computer. In a system that has two characteristics, that is, it is only required to be guaranteed at the time of registration, and ii) the file update frequency is low, and the probability that a mismatch between the two files is detected at the time of data registration is low. There is an effect that it is possible to guarantee the coincidence when the contents of the master file of the server computer and the contents of the copy file of the client computer need to be matched while keeping the communication volume between the server computers low.

図1を参照すると、本発明の最良の実施の形態は、少なくとも一台のクライアントコンピュータ200と1台のサーバコンピュータ100とが通信回線を解して接続されたクライアント/サーバシステムである。
図2を参照すると、本発明のクライアント/サーバシステムの実施形態では、図1のサーバコンピュータ100は、そのハードディスク等の記憶媒体(図示せず)内に、商品コードや商品名等、各クライアントコンピュータ200が参照する情報(マスタデータ)を格納したサーバマスタ記憶部101、サーバマスタ記憶部101の情報の更新履歴を格納したマスタ更新履歴記憶部102、サーバマスタ記憶部101の更新件数を記録するサーバマスタ更新件数記憶部103、サーバマスタ記憶部101に格納された商品についての受注情報等の取引データを格納する取引データ記憶部104を備えている。
図2のクライアントコンピュータ200は、図1の各クライアントコンピュータ200の一台を示すが、そのハードディスク等の記憶装置(図示せず)内に、サーバマスタ記憶部101のコピーであるクライアントマスタ記憶部201および、クライアントマスタ記憶部201の更新件数を記録するクライアントマスタ更新件数記憶部202を備える。さらにクライアントコンピュータ200は、その利用者にマンマシンインターフェースを与えるディスプレイ/キーボード/マウス等からなる入出力装置も備えている。
なお、サーバマスタ更新件数記憶部103とクライアントマスタ更新件数記憶部202には、初期値としてゼロが設定されている。
サーバコンピュータ100には、クライアントコンピュータ200からの依頼に基づいてサーバマスタ記憶部101の更新等を行うサーバサイド・サーバマスタ更新部111、クライアントコンピュータ200からの依頼に従い取引データ記憶部104に取引データの登録等をするサーバサイド・取引データ登録部113およびサーバサイド・取引データ登録部113がサーバマスタ記憶部101とクライアントマスタ記憶部201の不一致を後述の方法で検出したときにクライアントコンピュータ200にクライアントマスタ記憶部201の更新を依頼等するサーバサイド・クライアントマスタ更新部112を備える。
クライアントコンピュータ200には、利用者が入力した入出力装置からの情報に基づきサーバコンピュータ100にサーバマスタ記憶部101の更新を依頼等するクライアントサイド・サーバマスタ更新部211、サーバコンピュータ100の依頼に基づきクライアントマスタ記憶部201の更新等を行うクライアントサイド・クライアントマスタ更新部212、および利用者が入出力装置から入力した取引データを取引データ記憶部104に登録することを、サーバコンピュータ100に依頼等するクライアントサイド・取引データ登録部213クライアントサイド・取引データ登録部213を備える。
以上の各処理部の動作の詳細は後述する。なお、これらの各処理部は、各々が属するサーバコンピュータ100またはクライアントコンピュータ200の図示しないCPUが、図示しない記憶装置に記憶されたプログラムを読み出して実行することにより実現される。また、そのプログラムは、図示しない記録媒体から読み出してもよいし、図示しないインターネット等のコンピュータネットワークを介してダウンロードしてもよい。
なお、クライアントサイド・サーバマスタ更新部211は図1の特定のクライアントコンピュータ200だけに備え、その他のクライアントコンピュータ200には存在しない構成としても良い。
図3は、サーバマスタ記憶部101に格納されるデータの一例である。これは商品マスタファイルの例であり、商品コード、商品名および単価等の商品情報が格納される。本図の情報は、サーバマスタ記憶部101のコピーであるクライアントマスタ記憶部201にも格納されている。両記憶部の内容は当初一致しているが、サーバマスタ記憶部101が、クライアントサイド・サーバマスタ更新部211からの通知によりサーバサイド・サーバマスタ更新部111により更新されると、一時的に不一致となる。かかる更新は新商品の追加または商品の削除等のために行われる。この不一致は、後述のごとく、取引データ記憶部104に対する取引データの登録時に解消される。
図4は、マスタ更新履歴記憶部102に格納されるデータ(以降、更新履歴レコードという)の一例である。本図は図3のデータ例に対応した例となっている。図にあるごとく、サーバマスタ記憶部101が商品の追加、削除、価格変更等に伴って更新されると、更新のたびに更新された商品ごとに一レコードとして通番401、商品コード、追加/削除/更新の別を示す更新区分および更新後のデータ(更新区分が削除の場合は当該データは無い)が記憶される。ここに通番401は、1から始まる、各更新履歴レコードにふられる連続番号である。
図5は、取引データ記憶部104に格納される取引データの一例である。本図は図3のデータ例に対応した受注情報の例となっている。ここでは、取引データとして受注情報を例示している。本図のごとく、取引データは取引日付、取引先の識別子、受注した全ての商品コードおよびその個数等からなる。
以上の構成において、まず、利用者がクライアントコンピュータ200からサーバマスタ記憶部101の更新を行う場合の動作について図6を参照して説明する。ここで使用されるクライアントコンピュータ200は、クライアントサイド・サーバマスタ更新部211を備えたクライアントコンピュータ200である。
利用者により起動されると、クライアントコンピュータ200のクライアントサイド・サーバマスタ更新部211は、図8に例示するサーバマスタ記憶部更新画面を入出力装置に表示(ステップ601)した後、利用者が入出力装置で指定した更新に必要なデータである商品コード、商品名称、単価、更新区分等(以降、更新情報という)を読み取る(ステップ602)。その後、サーバコンピュータ100のサーバサイド・サーバマスタ更新部111に更新情報を送信する(ステップ603)。
サーバサイド・サーバマスタ更新部111はクライアントサイド・サーバマスタ更新部211から更新情報を受信し(ステップ604)、サーバマスタ記憶部101を更新する(ステップ605)と共に、マスタ更新履歴記憶部102に図4に示すごとき更新履歴を追加する(ステップ606)。最後に、サーバマスタ更新件数記憶部103に最後の(最大の通番を持つ)マスタ更新履歴記憶部102のレコードの通番401の値を格納する。
次に、利用者がクライアントコンピュータ200から取引データ記憶部104に取引データを登録する場合についての動作を、図7を参照して説明する。なお、かかる場合に使用するクライアントコンピュータ200は、図6のサーバマスタ記憶部101更新で使用したクライアントコンピュータ200と同一でも良いし、別でも良い。
利用者により起動されると、クライアントコンピュータ200のクライアントサイド・取引データ登録部213は図9に例示する販売取引データ登録画面を入出力装置に表示する(ステップ701)。クライアントサイド・取引データ登録部213は、利用者により画面の商品コード欄901から入力された商品コードおよび取引日付等を読み取る(ステップ702)と、当該商品コードをキーとしてクライアントマスタ記憶部201を検索して、指定された商品コードに対応した商品名称、単価を読み出し、販売取引データ登録画面に表示する(ステップ703)。表示された商品名称および単価を確認した利用者が商品の受注個数を画面の個数欄902に入力すると、クライアントサイド・取引データ登録部213はその値を読み取り(ステップ704)、上述で入力した取引データ(商品コード、その個数および取引日付等)及びクライアントマスタ更新件数記憶部202の値をサーバコンピュータ100のサーバサイド・クライアントマスタ更新部112に送信する(ステップ705)。ここで、ステップ702、703、704はステップ701で表示した画面によっては、複数回繰り返されることがある。例えば、図9の画面例であれば、利用者が複数の商品コード欄901に、順次商品コードを入力するたびにクライアントサイド・取引データ登録部213は上述のステップ702から704までを繰り返し、利用者により販売取引データ登録画面上の登録ボタン903が押下され、入力が終了したことを検出したときにステップ705に進む。
サーバサイド・取引データ登録部113は、かかる送信情報を受信(ステップ720)し、受信したクライアントマスタ更新件数記憶部202の値とサーバマスタ更新件数記憶部103の値を比較(ステップ721)し、同値であれば、取引データ記憶部104に取引データを登録して(ステップ722)、動作を終了する。
上述の比較(ステップ721)において同値で無い場合は、サーバサイド・クライアントマスタ更新部112が、マスタ更新履歴記憶部102を検索し、通番401の値が、サーバサイド・取引データ登録部113が受信したクライアントマスタ更新件数記憶部202の値より大きな値の更新履歴レコードを、クライアントマスタ記憶部201の更新に必要な更新履歴レコードとして抽出する(ステップ730)。次に、抽出した更新履歴レコード内の商品コードと取引データ内の商品コードが比較され(ステップ731)、一致した商品コードが存在しない場合は、取引データを取引データ記憶部104に登録する(ステップ732)。その後、抽出された更新履歴レコードおよびサーバマスタ更新件数記憶部103の値をクライアントサイド・クライアントマスタ更新部212に送信する(ステップ733)。
ステップ731の比較において抽出した更新履歴レコード内の商品コードと取引データ内の商品コードに一致するものが存在する場合は、取引データを取引データ記憶部104に登録することなく、抽出された更新履歴レコードとサーバマスタ更新件数記憶部103の値をクライアントコンピュータ200のクライアントサイド・クライアントマスタ更新部212に送信する(ステップ734)。このとき、同時に取引データの登録に失敗した旨の通知も行う(ステップ734)。抽出した更新履歴レコード内の商品コードと取引データ内の商品コードに一致するものが存在する場合に、取引データを取引データ記憶部104に登録しないのは、取引データ内で参照している商品の情報がサーバマスタ記憶部101において更新、削除(例えば、商品の削除、価格変更等)されている為、利用者が取引データの見直しを行う必要があるためである。
クライアントサイド・クライアントマスタ更新部212は、上述の送信情報を受信する(ステップ710)と、受信した更新履歴レコードに基づきクライアントマスタ記憶部201を更新(ステップ711)し、クライアントマスタ更新件数記憶部202の値を受信したサーバマスタ更新件数記憶部103の値に更新し(ステップ712)、動作を終了する。但し、サーバサイド・クライアントマスタ更新部112から取引データの登録に失敗した旨の通知を受けている場合(ステップ713)は、取引データで指定された商品の情報についてクライアントマスタ記憶部201の更新があった旨を、入出力装置の販売取引データ登録画面のエラーメッセージ表示欄904に表示する(ステップ733)。かかるエラーメッセージには、更新履歴レコードに基づき、更新のあった商品コードの一覧及びその更新内容を通知する。これを受け、クライアントサイド・サーバマスタ更新部211は商品コード入力をステップ702から再開する。再開後のステップ703で読み出されるクライアントマスタ記憶部201のデータは更新後の、価格変更等が反映されたものである。
上述の説明においてはサーバマスタ記憶部101およびクライアントマスタ記憶部201は、商品マスタファイルであることを例としたが、本発明の適用はそれに限らず、取引先の情報を格納した取引先マスタファイル、あるいはその他のマスタファイルでも良い。
なお、ステップ731の比較を省略し、ステップ730の後、常にステップ734に進むようにするようにしてもよい。また、本実施例においては、サーバマスタ更新件数記憶部103を設けたが、必ずしも設ける必要は無い。かかる場合は、サーバマスタ更新件数はマスタ更新履歴記憶部102内の更新履歴レコード中の通番の最大値を参照することで得られる。さらに、マスタ更新履歴記憶部102を備えないことも可能である。例えば、サーバマスタ記憶部101およびクライアントマスタ記憶部201の容量が小さく、サーバ/クライアント間の通信容量が大きなとき等は、マスタ更新履歴記憶部102を備えないこととして、取引データをクライアントコンピュータ200からサーバコンピュータ100に送信する際、同時にクライアントマスタ記憶部201の内容をサーバコンピュータ100に送信し、ステップ721およびステップ730にて、両マスタ記憶部を比較して差分の検出・抽出をしてもよい。
以上説明したように、本実施形態では、一つの取引データの登録に際し、クライアントコンピュータ200がクライアントマスタ記憶部201を何度参照している場合であっても、サーバマスタ記憶部101とクライアントマスタ記憶部201の一致確認の為のクライアント/サーバコンピュータ間の通信は発生せず、一致していない場合にのみ更新の為に一回(一往復)の通信が発生するのみである。したがって、取引データ登録が定常的に多量になされ、かつサーバマスタ記憶部101の更新頻度が高くないシステムにおいては、取引データ登録一回当たりのかかる通信回数は、極めて低い値となる。このように、本発明は、クライアント/サーバコンピュータ間の通信量を低く保ちながら、サーバコンピュータ100のサーバマスタ記憶部101とクライアントコンピュータ200のクライアントマスタ記憶部201の内容の一致が必要な時点で、その一致を保証することができるという効果がある。
さらに、本発明では、サーバマスタ記憶部101に更新があった場合においても、取引データ作成において参照したレコードが更新されていない限り、取引データを作成しなおす必要が無いという効果もある。
次に、本発明の実施の形態の変形例について説明する。
この変形例は、サーバコンピュータ100に複数個のサーバマスタ記憶部101を設けた構成とすることである。最初の実施形態では、サーバマスタ記憶部101は商品情報を格納した商品マスタファイルだけであったが、本変形例では、その他に取引先の情報を格納した取引先マスタ記憶部等その他のマスタ記憶部を設ける。設定するサーバマスタ記憶部101の数は2に限定されない。かかる構成では、サーバコンピュータ100のサーバマスタ記憶部101が複数個存在するのに対応して、クライアントコンピュータ200のクライアントマスタ記憶部201も同数設けられることになる。同時に、マスタ更新履歴記憶部102に格納される更新履歴レコードには、更新対象となったマスタ記憶部名が追加されることになる。その構成例は、図4ではなく、図11に示すごとくなる。当該図にあるごとく、サーバマスタ記憶部101の一つである商品マスタファイルが商品の追加、削除、価格などの変更に伴って更新されると、更新のたびに更新された商品ごとに一レコードとして商品コード、追加/削除/更新の別を示す更新区分、商品マスタの記憶部名および更新後のデータ(更新区分が削除の場合、当該データは無い)が記憶される。また、別のサーバマスタ記憶部101である取引マスタ記憶部が取引先の追加、削除、与信限度額等の変更に伴って更新されると、更新のたびに更新された取引先ごとに一レコードとして取引先コード、追加/削除/更新の別を示す更新区分、取引先マスタの記憶部名および更新後のデータ(更新区分が削除の場合、当該データは無い)が記憶される。その他のマスタファイルが設けられているときも同様である。その他の構成は最初の実施例と同様である。
以上の変形例での構成における、サーバマスタ記憶部101更新の動作を、図6を使用して説明する。本変形例による構成では、クライアントサイド・サーバマスタ更新部211はステップ601にて、最初に図10に例示する更新すべきマスタ記憶部の選択メニューを表示装置に表示し、利用者が記憶部選択ボタンの押下等により商品マスタファイルを選択した場合、図8に例示するような商品マスタ更新画面を表示する。商品マスタが選択されたときの動作は、最初の実施例で説明した通りである。取引先マスタが選択されたときは、取引先マスタ用の更新画面(図示せず)が表示され、次いで、利用者が当該画面より入出力装置で指定した更新情報(例えば、取引先名称、住所、与信限度額等)を読み取る(ステップ602)。その他のサーバマスタ記憶部101の場合でも同様の動作が実行される。その後、サーバコンピュータ100のサーバサイド・サーバマスタ更新部111に更新情報を送信する(ステップ603)のであるが、本実施例では送信される更新情報には、更新対象となるサーバマスタ記憶部101の名称も含まれる。
サーバサイド・サーバマスタ更新部111はクライアントサイド・サーバマスタ更新部211から更新情報を受信し(ステップ604)、更新情報にその名称が含まれるサーバマスタ記憶部101を更新する(ステップ605)と共に、マスタ更新履歴記憶部102に更新履歴を追加する(ステップ606)。かかる更新履歴には、図11に示すごとく、サーバマスタ記憶部101の名称が含まれている。最後に、サーバマスタ更新件数記憶部103に最後の(最大の通番を持つ)マスタ更新履歴記憶部102のレコードの通番401の値を格納する。
なお、クライアントサイド・サーバマスタ更新部211は、一つのメニューで、利用者に複数のサーバマスタ記憶部101の更新情報を入力させ、その更新情報を一括してサーバサイド・サーバマスタ更新部111に送信するように実現しても良い。この場合、サーバサイド・サーバマスタ更新部111は、ステップ605にて、更新情報にその名称が含まれるすべてのサーバマスタ記憶部101を更新することになる。
次に、利用者がクライアントコンピュータ200から取引データ記憶部104に取引データを登録する場合についての動作を、図7を参照して説明する。なお、本実施例においても、かかる場合に使用するクライアントコンピュータ200は、図6のサーバマスタ記憶部101更新で使用したクライアントコンピュータ200と同一でも良いし、別でも良い。
利用者により起動されると、クライアントコンピュータ200のクライアントサイド・取引データ登録部213は図9に例示する販売取引データ登録画面を入出力装置に表示する(ステップ701)。クライアントサイド・取引データ登録部213は、利用者により画面の商品コード欄901から入力された取引先コード、商品コード、その他のサーバマスタ記憶部101の検索コードおよび取引日付等を読み取る(ステップ702)と、当該商品コード、取引先コード、その他のサーバマスタ記憶部101の検索コードをキーとして、各々商品マスタ、取引先マスタ、その他のクライアントマスタ記憶部201を検索して、指定された取引先コード、商品コード等に対応した取引先名称、商品名称、単価等を読み出し、販売取引データ登録画面に表示する(ステップ703)。表示された取引先名称、商品名称および単価を確認した利用者が商品の受注個数を画面の個数欄902に入力すると、クライアントサイド・取引データ登録部213はその値を読み取り(ステップ704)、上述で入力した取引データ(取引先コード、商品コード、その他のサーバマスタ記憶部101検索コード、取引商品の個数および取引日付等)及びクライアントマスタ更新件数記憶部202の値をサーバコンピュータ100のサーバサイド・クライアントマスタ更新部112に送信する(ステップ705)。ここで、ステップ702、703、704はステップ701で表示した画面によっては、複数回繰り返されることがある。例えば、図9の画面例であれば、利用者が複数の商品コード欄901に、順次商品コードを入力するたびにクライアントサイド・取引データ登録部213は上述のステップ702から704までを繰り返し、利用者により販売取引データ登録画面上の登録ボタン903が押下され、入力が終了したことを検出したときにステップ705に進む。
サーバサイド・取引データ登録部113は、かかる送信情報を受信(ステップ720)し、受信したクライアントマスタ更新件数記憶部202の値とサーバマスタ更新件数記憶部103の値を比較(ステップ721)し、同値であれば、取引データ記憶部104に取引データを登録して(ステップ722)、動作を終了する。
上述の比較(ステップ721)において同値で無い場合は、サーバサイド・クライアントマスタ更新部112が、マスタ更新履歴記憶部102を検索し、通番1101の値が、サーバサイド・取引データ登録部113が受信したクライアントマスタ更新件数記憶部202の値より大きな値の更新履歴レコードを、クライアントマスタ記憶部201の更新に必要な更新履歴レコードとして抽出する(ステップ730)。抽出した更新履歴レコードには、複数のサーバマスタ記憶部101に対する更新レコードが含まれる。次に、抽出した各更新履歴レコード内の取引先コード、商品コードまたはその他のサーバマスタ記憶部101の検索コードが、取引データ内の同種のコードと比較され(ステップ731)、一致した取引先コード、商品コード、その他のサーバマスタ記憶部101検索コードが存在しない場合は、取引データを取引データ記憶部104に登録する(ステップ732)。その後、抽出された更新履歴レコードおよびサーバマスタ更新件数記憶部103の値をクライアントサイド・クライアントマスタ更新部212に送信する(ステップ733)。
ステップ731の比較において抽出した更新履歴レコード内の商品コードと取引データ内の商品コードに一致するものが存在する場合は、取引データを取引データ記憶部104に登録することなく、抽出された更新履歴レコードとサーバマスタ更新件数記憶部103の値をクライアントコンピュータ200のクライアントサイド・クライアントマスタ更新部212に送信する(ステップ734)。このとき、同時に取引データの登録に失敗した旨の通知も行う(ステップ734)。
クライアントサイド・クライアントマスタ更新部212は、上述の送信情報を受信する(ステップ710)と、受信した更新履歴レコードに基づきクライアントマスタ記憶部201を更新(ステップ711)する。更新履歴レコードが複数のサーバマスタ記憶部101名称を含んでいるときは、対応する全てのクライアントマスタ記憶部201を更新する。ついで、クライアントマスタ更新件数記憶部202の値を受信したサーバマスタ更新件数記憶部103の値に更新し(ステップ712)、動作を終了する。但し、サーバサイド・クライアントマスタ更新部112から取引データの登録に失敗した旨の通知を受けている場合(ステップ713)は、取引データで指定された取引先、商品等の情報についてクライアントマスタ記憶部201の更新があった旨を、入出力装置の販売取引データ登録画面のエラーメッセージ表示欄904に表示する(ステップ733)。かかるエラーメッセージには、更新履歴レコードに基づき、更新のあった取引先コード、商品コード、その他のサーバマスタ記憶部101検索コードの一覧及びその更新内容を通知する。これを受け、クライアントサイド・サーバマスタ更新部211は商品コード入力をステップ702から再開する。再開後のステップ703で読み出されるクライアントマスタ記憶部201のデータは更新後の、価格変更等が反映されたものである。
なお、ステップ731の比較を省略し、ステップ730の後、常にステップ734に進むようにするようにしてもよい。また、本実施例においては、サーバマスタ更新件数記憶部103を設けたが、必ずしも設ける必要は無い。かかる場合は、サーバマスタ更新件数はマスタ更新履歴記憶部102内の更新履歴レコード中の通番の最大値を参照することで得られる。さらに、マスタ更新履歴記憶部102を備えないことも可能である。例えば、サーバマスタ記憶部101およびクライアントマスタ記憶部201の容量が小さく、サーバ/クライアント間の通信容量が大きなとき等は、マスタ更新履歴記憶部102を備えないこととして、取引データをクライアントコンピュータ200からサーバコンピュータ100に送信する際、同時にクライアントマスタ記憶部201の内容をサーバコンピュータ100に送信し、ステップ721およびステップ730にて、両マスタ記憶部を比較して差分の検出・抽出をしてもよい。
以上説明したように、本変形例は、サーバマスタ記憶部101およびクライアントマスタ記憶部201を複数個設置した場合においても、最初の実施の形態と同様に、取引データ登録一回当たりのかかる通信回数を、極めて低い値とし、クライアント/サーバコンピュータ間の通信量を低く保ちながら、サーバコンピュータ100のサーバマスタ記憶部101とクライアントコンピュータ200のクライアントマスタ記憶部201の内容の一致が必要な時点で、その一致保証することが出来る効果がある。
Referring to FIG. 1, the best mode of the present invention is a client / server system in which at least one client computer 200 and one server computer 100 are connected via a communication line.
Referring to FIG. 2, in the embodiment of the client / server system of the present invention, the server computer 100 of FIG. 1 includes each client computer such as a product code and a product name in a storage medium (not shown) such as a hard disk. Server master storage unit 101 storing information (master data) referred to by 200, master update history storage unit 102 storing update history of information in server master storage unit 101, and server for recording the number of updates in server master storage unit 101 A master update number storage unit 103 and a transaction data storage unit 104 for storing transaction data such as order information for products stored in the server master storage unit 101 are provided.
A client computer 200 in FIG. 2 represents one of the client computers 200 in FIG. 1, but in a storage device (not shown) such as a hard disk, a client master storage unit 201 that is a copy of the server master storage unit 101. A client master update number storage unit 202 that records the number of updates in the client master storage unit 201 is provided. The client computer 200 further includes an input / output device such as a display / keyboard / mouse that provides a user with a man-machine interface.
In the server master update number storage unit 103 and the client master update number storage unit 202, zero is set as an initial value.
The server computer 100 includes a server-side server master update unit 111 that updates the server master storage unit 101 based on a request from the client computer 200, and stores transaction data in the transaction data storage unit 104 according to a request from the client computer 200. When the server-side / transaction data registration unit 113 and the server-side / transaction data registration unit 113 that perform registration detect a mismatch between the server master storage unit 101 and the client master storage unit 201 by the method described later, the client master 200 stores the client master A server-side client master update unit 112 that requests an update of the storage unit 201 is provided.
The client computer 200 includes a client-side server master update unit 211 that requests the server computer 100 to update the server master storage unit 101 based on information from the input / output device input by the user, based on a request from the server computer 100 Requests the server computer 100 to register the client side client master update unit 212 for updating the client master storage unit 201 and the transaction data input from the input / output device by the user in the transaction data storage unit 104 The client side / transaction data registration unit 213 includes a client side / transaction data registration unit 213.
Details of the operation of each processing unit will be described later. Each of these processing units is realized by the CPU (not shown) of the server computer 100 or the client computer 200 to which each processor belongs reads out and executes a program stored in a storage device (not shown). The program may be read from a recording medium (not shown) or downloaded via a computer network such as the Internet (not shown).
The client side server master update unit 211 may be provided only in the specific client computer 200 of FIG. 1 and may not exist in the other client computers 200.
FIG. 3 is an example of data stored in the server master storage unit 101. This is an example of a product master file, and stores product information such as a product code, a product name, and a unit price. The information in this figure is also stored in the client master storage unit 201 which is a copy of the server master storage unit 101. The contents of both storage units are the same at the beginning, but if the server master storage unit 101 is updated by the server side server master update unit 111 in response to a notification from the client side server master update unit 211, it temporarily becomes inconsistent. It becomes. Such an update is performed to add a new product or delete a product. This discrepancy is resolved when transaction data is registered in the transaction data storage unit 104, as will be described later.
FIG. 4 is an example of data stored in the master update history storage unit 102 (hereinafter referred to as an update history record). This figure is an example corresponding to the data example of FIG. As shown in the figure, when the server master storage unit 101 is updated as products are added, deleted, price changes, etc., the serial number 401, product code, added / deleted as one record for each updated product An update category indicating different types of update and data after update (there is no data when the update category is deleted) are stored. The serial number 401 is a serial number assigned to each update history record starting from 1.
FIG. 5 is an example of transaction data stored in the transaction data storage unit 104. This figure is an example of order information corresponding to the data example of FIG. Here, order information is illustrated as transaction data. As shown in the figure, the transaction data is composed of a transaction date, a business partner identifier, all received product codes, and the number of items.
In the above configuration, first, an operation when the user updates the server master storage unit 101 from the client computer 200 will be described with reference to FIG. The client computer 200 used here is a client computer 200 including a client side server master update unit 211.
When activated by the user, the client side server master update unit 211 of the client computer 200 displays the server master storage unit update screen illustrated in FIG. 8 on the input / output device (step 601), and then the user enters. The product code, product name, unit price, update classification, etc. (hereinafter referred to as update information), which are data necessary for the update designated by the output device, are read (step 602). Thereafter, the update information is transmitted to the server side server master updating unit 111 of the server computer 100 (step 603).
The server side server master update unit 111 receives the update information from the client side server master update unit 211 (step 604), updates the server master storage unit 101 (step 605), and stores the update information in the master update history storage unit 102. An update history as shown in FIG. 4 is added (step 606). Finally, the value of the serial number 401 of the record in the last master update history storage unit 102 (having the largest serial number) is stored in the server master update number storage unit 103.
Next, an operation when the user registers transaction data in the transaction data storage unit 104 from the client computer 200 will be described with reference to FIG. Note that the client computer 200 used in such a case may be the same as or different from the client computer 200 used for updating the server master storage unit 101 in FIG.
When activated by the user, the client side / transaction data registration unit 213 of the client computer 200 displays the sales transaction data registration screen illustrated in FIG. 9 on the input / output device (step 701). The client-side / transaction data registration unit 213 reads the product code and transaction date entered from the product code field 901 on the screen by the user (step 702), and searches the client master storage unit 201 using the product code as a key. The product name and unit price corresponding to the designated product code are read out and displayed on the sales transaction data registration screen (step 703). When the user who has confirmed the displayed product name and unit price inputs the number of orders for the product in the number field 902 of the screen, the client side / transaction data registration unit 213 reads the value (step 704), and the transaction entered above. The data (product code, the number and transaction date, etc.) and the value in the client master update number storage unit 202 are transmitted to the server side client master update unit 112 of the server computer 100 (step 705). Here, steps 702, 703, and 704 may be repeated a plurality of times depending on the screen displayed in step 701. For example, in the screen example of FIG. 9, each time a user sequentially inputs a product code into a plurality of product code fields 901, the client side / transaction data registration unit 213 repeats the above steps 702 to 704 for use. When the user presses the registration button 903 on the sales transaction data registration screen and detects that the input is completed, the process proceeds to step 705.
The server side / transaction data registration unit 113 receives the transmission information (step 720), compares the received value of the client master update number storage unit 202 with the value of the server master update number storage unit 103 (step 721), If it is the same value, the transaction data is registered in the transaction data storage unit 104 (step 722), and the operation is terminated.
In the above comparison (step 721), if the values are not the same, the server side / client master update unit 112 searches the master update history storage unit 102, and the value of the serial number 401 is received by the server side / transaction data registration unit 113. An update history record having a value larger than the value stored in the client master update count storage unit 202 is extracted as an update history record necessary for updating the client master storage unit 201 (step 730). Next, the product code in the extracted update history record is compared with the product code in the transaction data (step 731), and if there is no matching product code, the transaction data is registered in the transaction data storage unit 104 (step 732). Thereafter, the extracted update history record and the value of the server master update number storage unit 103 are transmitted to the client side client master update unit 212 (step 733).
If there is a match between the product code in the update history record extracted in the comparison in step 731 and the product code in the transaction data, the extracted update history is registered without registering the transaction data in the transaction data storage unit 104. The record and the value of the server master update number storage unit 103 are transmitted to the client side client master update unit 212 of the client computer 200 (step 734). At this time, notification that transaction data registration has failed is also made (step 734). The transaction data is not registered in the transaction data storage unit 104 when there is a match between the product code in the extracted update history record and the product code in the transaction data. This is because the information has been updated and deleted (for example, deletion of a product, price change, etc.) in the server master storage unit 101, and the user needs to review the transaction data.
Upon receiving the transmission information (step 710), the client side client master update unit 212 updates the client master storage unit 201 based on the received update history record (step 711), and the client master update number storage unit 202 Is updated to the value stored in the server master update number storage unit 103 (step 712), and the operation is terminated. However, if the server-side client master update unit 112 has received a notification that transaction data registration has failed (step 713), the client master storage unit 201 is updated for the product information specified in the transaction data. A message to the effect is displayed in the error message display field 904 of the sales transaction data registration screen of the input / output device (step 733). In the error message, a list of product codes that have been updated and the details of the update are notified based on the update history record. In response to this, the client side server master updating unit 211 resumes the product code input from step 702. The data in the client master storage unit 201 read in step 703 after resumption reflects the updated price change or the like.
In the above description, the server master storage unit 101 and the client master storage unit 201 are examples of product master files. However, the application of the present invention is not limited to this, and a supplier master file that stores supplier information. Or any other master file.
Note that the comparison in step 731 may be omitted, and the process may always proceed to step 734 after step 730. In this embodiment, the server master update number storage unit 103 is provided, but it is not always necessary to provide it. In such a case, the number of server master updates is obtained by referring to the maximum serial number in the update history record in the master update history storage unit 102. Further, the master update history storage unit 102 may not be provided. For example, when the server master storage unit 101 and the client master storage unit 201 have a small capacity and the server / client communication capacity is large, the master update history storage unit 102 is not provided. When transmitting to the server computer 100, the contents of the client master storage unit 201 may be transmitted to the server computer 100 at the same time, and in steps 721 and 730, the master storage units may be compared to detect and extract the difference. .
As described above, in this embodiment, even when the client computer 200 refers to the client master storage unit 201 many times when registering one transaction data, the server master storage unit 101 and the client master storage Communication between the client / server computer for confirmation of coincidence of the unit 201 does not occur, and only one communication (one round-trip) occurs for updating only when they do not coincide. Therefore, in a system in which transaction data registration is regularly performed in large quantities and the update frequency of the server master storage unit 101 is not high, the number of communications per transaction data registration is extremely low. As described above, the present invention maintains a low amount of communication between the client / server computers, and at the time when the contents of the server master storage unit 101 of the server computer 100 and the client master storage unit 201 of the client computer 200 need to match, There is an effect that the coincidence can be guaranteed.
Further, the present invention has an effect that even when the server master storage unit 101 is updated, it is not necessary to recreate transaction data unless the record referred to in transaction data creation is updated.
Next, a modification of the embodiment of the present invention will be described.
In this modification, the server computer 100 is provided with a plurality of server master storage units 101. In the first embodiment, the server master storage unit 101 is only a product master file storing product information. However, in this modification, other master storage such as a supplier master storage unit storing other supplier information is also available. Provide a part. The number of server master storage units 101 to be set is not limited to two. In such a configuration, the same number of client master storage units 201 of the client computer 200 are provided in correspondence with the existence of a plurality of server master storage units 101 of the server computer 100. At the same time, the name of the master storage unit to be updated is added to the update history record stored in the master update history storage unit 102. The configuration example is as shown in FIG. 11 instead of FIG. As shown in the figure, when the product master file, which is one of the server master storage units 101, is updated with changes in the addition, deletion, price, etc., one record for each updated product. As a product code, an update category indicating whether addition / deletion / update is performed, a storage name of the product master, and updated data (if the update category is deleted, there is no data) are stored. In addition, when the transaction master storage unit, which is another server master storage unit 101, is updated with the addition or deletion of a business partner or a change in the credit limit, etc., one record for each business partner updated at each update. Are stored as the supplier code, the update classification indicating the addition / deletion / update, the storage name of the supplier master, and the updated data (there is no data when the update classification is deleted). The same applies when other master files are provided. Other configurations are the same as those in the first embodiment.
The operation of updating the server master storage unit 101 in the configuration of the above modification will be described with reference to FIG. In the configuration according to this modification, the client side server master update unit 211 first displays the selection menu of the master storage unit to be updated exemplified in FIG. 10 on the display device in step 601, and the user selects the storage unit. When a product master file is selected by pressing a button or the like, a product master update screen as illustrated in FIG. 8 is displayed. The operation when the product master is selected is as described in the first embodiment. When the supplier master is selected, an update screen (not shown) for the supplier master is displayed, and then the update information (for example, supplier name, address, etc.) specified by the user on the input / output device from the screen. , Credit limit etc.) is read (step 602). The same operation is executed for other server master storage units 101. Thereafter, update information is transmitted to the server-side server master update unit 111 of the server computer 100 (step 603). In this embodiment, the update information to be transmitted includes the update information of the server master storage unit 101 to be updated. The name is also included.
The server side server master update unit 111 receives the update information from the client side server master update unit 211 (step 604), and updates the server master storage unit 101 whose name is included in the update information (step 605). An update history is added to the master update history storage unit 102 (step 606). The update history includes the name of the server master storage unit 101 as shown in FIG. Finally, the value of the serial number 401 of the record in the last master update history storage unit 102 (having the largest serial number) is stored in the server master update number storage unit 103.
The client-side server master update unit 211 allows a user to input update information of a plurality of server master storage units 101 using a single menu, and collectively sends the update information to the server-side server master update unit 111. You may implement | achieve so that it may transmit. In this case, the server-side server master updating unit 111 updates all the server master storage units 101 whose names are included in the update information in step 605.
Next, an operation when the user registers transaction data in the transaction data storage unit 104 from the client computer 200 will be described with reference to FIG. Also in this embodiment, the client computer 200 used in such a case may be the same as or different from the client computer 200 used for updating the server master storage unit 101 in FIG.
When activated by the user, the client side / transaction data registration unit 213 of the client computer 200 displays the sales transaction data registration screen illustrated in FIG. 9 on the input / output device (step 701). The client side / transaction data registration unit 213 reads the supplier code, the product code, the search code of the other server master storage unit 101, the transaction date, and the like input by the user from the product code column 901 on the screen (step 702). The product code, supplier code, and other server master storage unit 101 search codes are used as keys to search the product master, supplier master, and other client master storage units 201, respectively. The customer name, product name, unit price, etc. corresponding to the product code are read and displayed on the sales transaction data registration screen (step 703). When the user who has confirmed the displayed supplier name, product name, and unit price inputs the number of products ordered in the number field 902 of the screen, the client side / transaction data registration unit 213 reads the value (step 704), and The transaction data (customer code, product code, other server master storage unit 101 search code, number of transaction products, transaction date, etc.) and the value stored in the client master update number storage unit 202 are stored in the server side of the server computer 100. The data is transmitted to the client master update unit 112 (step 705). Here, steps 702, 703, and 704 may be repeated a plurality of times depending on the screen displayed in step 701. For example, in the screen example of FIG. 9, each time a user sequentially inputs a product code into a plurality of product code fields 901, the client side / transaction data registration unit 213 repeats the above steps 702 to 704 for use. When the user presses the registration button 903 on the sales transaction data registration screen and detects that the input is completed, the process proceeds to step 705.
The server side / transaction data registration unit 113 receives the transmission information (step 720), compares the received value of the client master update number storage unit 202 with the value of the server master update number storage unit 103 (step 721), If it is the same value, the transaction data is registered in the transaction data storage unit 104 (step 722), and the operation is terminated.
In the above comparison (step 721), if the values are not the same, the server side / client master update unit 112 searches the master update history storage unit 102, and the value of the serial number 1101 is received by the server side / transaction data registration unit 113 An update history record having a value larger than the value stored in the client master update count storage unit 202 is extracted as an update history record necessary for updating the client master storage unit 201 (step 730). The extracted update history record includes update records for a plurality of server master storage units 101. Next, the supplier code, product code or other search code in the server master storage unit 101 in each extracted update history record is compared with the same kind of code in the transaction data (step 731), and the matched supplier code If there is no product code or other server master storage unit 101 search code, the transaction data is registered in the transaction data storage unit 104 (step 732). Thereafter, the extracted update history record and the value of the server master update number storage unit 103 are transmitted to the client side client master update unit 212 (step 733).
If there is a match between the product code in the update history record extracted in the comparison in step 731 and the product code in the transaction data, the extracted update history is registered without registering the transaction data in the transaction data storage unit 104. The record and the value of the server master update number storage unit 103 are transmitted to the client side client master update unit 212 of the client computer 200 (step 734). At this time, notification that transaction data registration has failed is also made (step 734).
When the client-side / client master update unit 212 receives the transmission information described above (step 710), it updates the client master storage unit 201 based on the received update history record (step 711). When the update history record includes a plurality of server master storage unit 101 names, all corresponding client master storage units 201 are updated. Next, the value of the client master update number storage unit 202 is updated to the value of the received server master update number storage unit 103 (step 712), and the operation is terminated. However, if the server-side client master update unit 112 has received a notification that registration of transaction data has failed (step 713), the client master storage unit stores information on the business partner, product, etc. specified in the transaction data. The fact that 201 has been updated is displayed in the error message display field 904 of the sales transaction data registration screen of the input / output device (step 733). Based on the update history record, such an error message is notified of a list of updated supplier codes, product codes, other server master storage unit 101 search codes, and their update contents. In response to this, the client side server master updating unit 211 resumes the product code input from step 702. The data in the client master storage unit 201 read in step 703 after resumption reflects the updated price change or the like.
Note that the comparison in step 731 may be omitted, and the process may always proceed to step 734 after step 730. In this embodiment, the server master update number storage unit 103 is provided, but it is not always necessary to provide it. In such a case, the number of server master updates is obtained by referring to the maximum serial number in the update history record in the master update history storage unit 102. Further, the master update history storage unit 102 may not be provided. For example, when the server master storage unit 101 and the client master storage unit 201 have a small capacity and the server / client communication capacity is large, the master update history storage unit 102 is not provided. When transmitting to the server computer 100, the contents of the client master storage unit 201 may be transmitted to the server computer 100 at the same time, and in steps 721 and 730, the master storage units may be compared to detect and extract the difference. .
As described above, in this modification, even when a plurality of server master storage units 101 and client master storage units 201 are installed, the number of communication times per transaction data registration is the same as in the first embodiment. At a time when the contents of the server master storage unit 101 of the server computer 100 and the client master storage unit 201 of the client computer 200 need to be matched while keeping the communication amount between the client / server computer low. This has the effect of guaranteeing the coincidence.

図1は本発明が適用されるシステムの構成を示すブロック図である。FIG. 1 is a block diagram showing the configuration of a system to which the present invention is applied. 図2は本発明の実施の形態の構成を示すブロック図である。FIG. 2 is a block diagram showing the configuration of the embodiment of the present invention. 図3は、サーバマスタ記憶部およびクライアントマスタ記憶部の内容を示す図である。FIG. 3 is a diagram illustrating the contents of the server master storage unit and the client master storage unit. 図4は、マスタ更新履歴記憶部の内容を示す図である。FIG. 4 is a diagram illustrating the contents of the master update history storage unit. 図5は、取引データの一例を示す図である。FIG. 5 is a diagram illustrating an example of transaction data. 図6は、クライアントサイド・サーバマスタ更新部およびサーバサイド・サーバマスタ更新部によるサーバマスタ記憶部の更新の動作を示す流れ図である。FIG. 6 is a flowchart showing an operation of updating the server master storage unit by the client side server master update unit and the server side server master update unit. 図7は、クライアントサイド・取引データ更新部およびサーバサイド・取引データ更新部による取引データの登録、並びにサーバサイド・クライアントマスタ更新部およびクライアントサイド・クライアントマスタ更新部によるクライアントマスタ記憶部の更新の動作を示す流れ図である。FIG. 7 illustrates the registration of transaction data by the client side / transaction data update unit and the server side / transaction data update unit, and the update operation of the client master storage unit by the server side / client master update unit and the client side / client master update unit. It is a flowchart which shows. 図8は、サーバマスタ記憶部更新画面の例を示す図である。FIG. 8 is a diagram illustrating an example of the server master storage unit update screen. 図9は、販売取引データ登録画面の例を示す図である。FIG. 9 is a diagram illustrating an example of a sales transaction data registration screen. 図10は、実施の形態の変形例における、更新すべきマスタ記憶部の選択メニュの例を示す図である。FIG. 10 is a diagram illustrating an example of a selection menu of the master storage unit to be updated in the modification of the embodiment. 図11は、実施の形態の変形例における、マスタ更新履歴記憶部の内容を示す図である。FIG. 11 is a diagram illustrating the contents of the master update history storage unit in a modification of the embodiment.

符号の説明Explanation of symbols

100 サーバコンピュータ
101 サーバマスタ記憶部
102 マスタ更新履歴記憶部
103 サーバマスタ更新件数記憶部
104 取引データ記憶部
111 サーバサイド・サーバマスタ更新部
112 サーバサイド・クライアントマスタ更新部
113 サーバサイド・取引データ更新部
200 クライアントコンピュータ
201 クライアントマスタ記憶部
202 クライアントマスタ更新件数記憶部
211 クライアントサイド・サーバマスタ更新部
212 クライアントサイド・クライアントマスタ更新部
213 クライアントサイド・取引データ更新部
100 server computer 101 server master storage unit 102 master update history storage unit 103 server master update number storage unit 104 transaction data storage unit 111 server side server master update unit 112 server side client master update unit 113 server side transaction data update unit 200 Client Computer 201 Client Master Storage Unit 202 Client Master Update Number Storage Unit 211 Client Side / Server Master Update Unit 212 Client Side / Client Master Update Unit 213 Client Side / Transaction Data Update Unit

Claims (11)

少なくとも一台のクライアントコンピュータと一台のサーバコンピュータとからなるクライアント/サーバシステムであって、
前記サーバコンピュータは、
サーバマスタ記憶部と、取引データを格納する取引データ記憶部とを備え、
前記少なくとも一台のクライアントコンピュータのそれぞれは、
前記サーバマスタ記憶部内の情報を複写した情報を有するクライアントマスタ記憶部と、
利用者から入力された取引データを、前記サーバコンピュータに送信するクライアントサイド・取引データ登録部とを備え、
前記サーバコンピュータは、
前記クライアントコンピュータから前記取引データを受信したときに、前記サーバマスタ記憶部と前記クライアントマスタ記憶部の内容の一致確認を行い、一致しているときには前記取引データを前記取引データ記憶部に登録するサーバサイド・取引データ登録部と、
前記一致確認で一致していないことを確認したときには、前記サーバマスタ記憶部と前記クライアントマスタ記憶部との内容の差分抽出を行い、抽出されたクライアントマスタ更新用差分を前記クライアントコンピュータに送信するサーバサイド・クライアントマスタ更新部とを備え、
前記クライアントコンピュータは、
前記サーバコンピュータから受信した前記クライアントマスタ更新用差分に基づき前記クライアントマスタ記憶部を更新するクライアントサイド・クライアントマスタ更新部を備えることを特徴とするクライアント/サーバシステム。
A client / server system comprising at least one client computer and one server computer,
The server computer
A server master storage unit and a transaction data storage unit for storing transaction data;
Each of the at least one client computer is
A client master storage unit having information obtained by copying information in the server master storage unit;
A client side transaction data registration unit for transmitting transaction data input from a user to the server computer,
The server computer
When the transaction data is received from the client computer, the contents of the server master storage unit and the client master storage unit are checked for coincidence, and if they match, the server registers the transaction data in the transaction data storage unit Side and transaction data registration department,
A server that extracts a difference between the contents of the server master storage unit and the client master storage unit and transmits the extracted client master update difference to the client computer when it is confirmed by the match check that they do not match Side client master update unit,
The client computer is
A client / server system comprising a client-side client master update unit that updates the client master storage unit based on the client master update difference received from the server computer.
前記少なくとも一台のクライアントコンピュータのうち少なくとも一台は、
利用者から入力された前記サーバマスタ記憶部に対する更新情報を前記サーバコンピュータに送信するクライアントサイド・サーバマスタ更新部を備え、
前記サーバコンピュータは、
前記更新情報を受信して、該更新情報に基づき前記サーバマスタ記憶部を更新するサーバサイド・サーバマスタ更新部を備えることを特徴とする請求項1記載のクライアント/サーバシステム。
At least one of the at least one client computer is
A client-side server master update unit that transmits update information for the server master storage unit input by a user to the server computer,
The server computer
The client / server system according to claim 1, further comprising a server-side server master update unit that receives the update information and updates the server master storage unit based on the update information.
前記サーバコンピュータは、
前記サーバマスタ記憶部の情報が変更されるたびに更新履歴として、一件の更新履歴レコードを格納するマスタ更新履歴記憶部を備え、
前記少なくとも一台のクライアントコンピュータのそれぞれは、
前記クライアントマスタ記憶部の更新が完了した前記更新履歴レコードの数を格納するクライアントマスタ更新件数記憶部を備え、
前記サーバサイド・取引データ登録部は、前記マスタ更新履歴記憶部の前記更新履歴レコードの数と前記クライアントマスタ更新件数記憶部の値の比較により前記サーバマスタ記憶部と前記クライアントマスタ記憶部の内容の一致確認を行い、
前記サーバサイド・クライアントマスタ更新部は、前記マスタ更新履歴記憶部の前記更新履歴レコードの数と前記クライアントマスタ更新件数記憶部の値の差分に基づき前記マスタ更新履歴記憶部から更新履歴レコードを抽出することにより前記クライアントマスタ更新用差分を抽出し、
前記クライアントサイド・サーバマスタ更新部は前記サーバコンピュータから受信した前記 クライアントマスタ更新用差分に基づき前記クライアントマスタ記憶部を更新するとともに、前記マスタ更新履歴記憶部の前記更新履歴レコードの数を前記クライアントマスタ更新件数記憶部に記憶することを特徴とする請求項1記載のクライアント/サーバシステム。
The server computer
As the update history whenever the information of the server master storage unit is changed, a master update history storage unit that stores one update history record,
Each of the at least one client computer is
A client master update number storage unit that stores the number of the update history records that have been updated in the client master storage unit,
The server side / transaction data registration unit is configured to compare the contents of the server master storage unit and the client master storage unit by comparing the number of update history records in the master update history storage unit and the value of the client master update number storage unit. Check for a match
The server side client master update unit extracts an update history record from the master update history storage unit based on a difference between the number of the update history records in the master update history storage unit and a value of the client master update number storage unit. To extract the difference for updating the client master,
The client side server master update unit updates the client master storage unit based on the client master update difference received from the server computer, and sets the number of update history records in the master update history storage unit to the client master The client / server system according to claim 1, wherein the client / server system is stored in an update number storage unit.
前記少なくとも一台のクライアントコンピュータのうち少なくとも一台には、利用者から入力された前記サーバマスタ記憶部にたいする前記更新情報を前記サーバコンピュータに送信する前記クライアントサイド・サーバマスタ更新部を備え、
前記サーバコンピュータには、前記更新情報を受信して、該更新情報に基づき前記サーバマスタ記憶部を更新し、該更新の更新履歴を前記更新履歴レコードとして前記マスタ更新履歴記憶部に格納する前記サーバサイド・サーバマスタ更新部を備えることを特徴とする請求項3記載のクライアント/サーバシステム。
At least one of the at least one client computer includes the client-side server master update unit that transmits the update information for the server master storage unit input by a user to the server computer,
The server computer receives the update information, updates the server master storage unit based on the update information, and stores the update history of the update in the master update history storage unit as the update history record 4. The client / server system according to claim 3, further comprising a side server master update unit.
前記サーバマスタ記憶部には、識別子と該識別子に関連するデータからなるマスタレコードを格納し、
前記マスタ更新履歴記憶部には、更新された前記マスタレコード対応に該マスタレコードの前記識別子を含む前記更新履歴レコードを格納し、
前記取引データには少なくとも一つの前記マスタレコードの前記識別子を含み、
前記サーバサイド・クライアントマスタ更新部は、前記クライアントマスタ更新用差分の各更新履歴レコードに含まれる前記識別子と前記取引データに含まれる前記識別子とで一致するものがない場合には、前記取引データを前記取引データ記憶部に格納することを特徴とする請求項3または請求項4記載のクライアント/サーバシステム。
The server master storage unit stores a master record composed of an identifier and data related to the identifier,
The master update history storage unit stores the update history record including the identifier of the master record corresponding to the updated master record,
The transaction data includes at least one identifier of the master record;
The server side client master update unit, when there is no match between the identifier included in each update history record of the client master update difference and the identifier included in the transaction data, the transaction data 5. The client / server system according to claim 3, wherein the client / server system is stored in the transaction data storage unit.
サーバマスタ記憶部と、取引データを格納する取引データ記憶部とを備える一台のサーバコンピュータと、前記サーバマスタ記憶部内の情報を複写した情報を有するクライアントマスタ記憶部を備える、少なくとも一台のクライアントコンピュータとからなるクライアント/サーバシステムにおいて、
前記クライアントコンピュータが、利用者から入力された取引データを前記サーバコンピュータに送信するクライアントサイド・取引データ登録ステップと、
前記サーバコンピュータが、前記クライアントコンピュータから前記取引データを受信したときに、前記サーバマスタ記憶部と前記クライアントマスタ記憶部の内容の一致確認を行い、一致しているときには前記取引データを前記取引データ記憶部に登録するサーバサイド・取引データ登録ステップと、
前記サーバコンピュータが、前記一致確認で一致していないことを確認したときには、前記サーバマスタ記憶部と前記クライアントマスタ記憶部との内容の差分抽出を行い、抽出されたクライアントマスタ更新用差分を前記クライアントコンピュータに送信するサーバサイド・クライアントマスタ更新ステップと、
前記クライアントコンピュータが、前記サーバコンピュータから受信した前記クライアントマスタ更新用差分に基づき前記クライアントマスタ記憶部を更新するクライアントサイド・クライアントマスタ更新ステップとを含むことを特徴とするクライアント/サーバシステムにおけるマスタデータ反映方法。
At least one client comprising a server computer having a server master storage unit and a transaction data storage unit for storing transaction data, and a client master storage unit having information obtained by copying information in the server master storage unit In a client / server system consisting of computers,
A client-side transaction data registration step in which the client computer transmits transaction data input by a user to the server computer;
When the server computer receives the transaction data from the client computer, it confirms the contents of the server master storage unit and the client master storage unit, and if they match, stores the transaction data in the transaction data storage Server-side transaction data registration step to be registered in the department,
When the server computer confirms that there is no match in the match check, it extracts a difference between the contents of the server master storage unit and the client master storage unit, and uses the extracted client master update difference as the client A server-side client master update step to send to the computer;
Reflecting master data in a client / server system, wherein the client computer includes a client side client master update step of updating the client master storage unit based on the client master update difference received from the server computer Method.
前記少なくとも一台のクライアントコンピュータのうち少なくとも一台が、利用者から入力された前記サーバマスタ記憶部に対する更新情報を前記サーバコンピュータに送信するクライアントサイド・サーバマスタ更新ステップと、
前記サーバコンピュータが、前記更新情報を受信して、該更新情報に基づき前記サーバマスタ記憶部を更新するサーバサイド・サーバマスタ更新ステップとを含むことを特徴とする請求項6記載のクライアント/サーバシステムにおけるマスタデータ反映方法。
A client-side server master update step in which at least one of the at least one client computer transmits update information for the server master storage unit input by a user to the server computer;
7. The client / server system according to claim 6, further comprising a server-side server master update step in which the server computer receives the update information and updates the server master storage unit based on the update information. Method for reflecting master data.
前記サーバコンピュータには、
前記サーバマスタ記憶部の情報が変更されるたびに更新履歴として、一件の更新履歴レコードを格納するマスタ更新履歴記憶部を備え、
前記少なくとも一台のクライアントコンピュータのそれぞれは、
前記クライアントマスタ記憶部の更新が完了した前記更新履歴レコードの数を格納するクライアントマスタ更新件数記憶部を備える前記クライアント/サーバシステムにおいて、
前記サーバサイド・取引データ登録ステップでは、前記サーバコンピュータが、前記マスタ更新履歴記憶部の前記更新履歴レコードの数と前記クライアントマスタ更新件数記憶部の値の比較により前記サーバマスタ記憶部と前記クライアントマスタ記憶部の内容の一致確認を行い、
前記サーバサイド・クライアントマスタ更新ステップでは、前記クライアントコンピュータが、前記マスタ更新履歴記憶部の前記更新履歴レコードの数と前記クライアントマスタ更新件数記憶部の値の差分に基づき前記マスタ更新履歴記憶部から更新履歴レコードを抽出することにより前記クライアントマスタ更新用差分を抽出し、
前記クライアントサイド・サーバマスタ更新ステップでは、前記クライアントコンピュータが、前記サーバコンピュータから受信した前記クライアントマスタ更新用差分に基づき前記クライアントマスタ記憶部を更新するとともに、前記マスタ更新履歴記憶部の前記更新履歴レコードの数を前記クライアントマスタ更新件数記憶部に記憶することを特徴とする請求項6記載のするクライアント/サーバシステムにおけるマスタデータ反映方法。
The server computer includes
As the update history whenever the information of the server master storage unit is changed, a master update history storage unit that stores one update history record,
Each of the at least one client computer is
In the client / server system comprising a client master update number storage unit that stores the number of the update history records that have been updated in the client master storage unit,
In the server-side / transaction data registration step, the server computer compares the number of the update history records in the master update history storage unit with the value of the client master update number storage unit to compare the server master storage unit and the client master. Check the content of the storage unit,
In the server side client master update step, the client computer updates from the master update history storage unit based on a difference between the number of the update history records in the master update history storage unit and the value of the client master update number storage unit. Extracting the client master update difference by extracting a history record,
In the client side server master update step, the client computer updates the client master storage unit based on the client master update difference received from the server computer, and the update history record in the master update history storage unit 7. The method of reflecting master data in a client / server system according to claim 6, wherein the number is stored in said client master update number storage unit.
前記少なくとも一台のクライアントコンピュータのうち少なくとも一台が、利用者から入力された前記サーバマスタ記憶部にたいする前記更新情報を前記サーバコンピュータに送信する前記クライアントサイド・サーバマスタ更新ステップと、
前記サーバコンピュータが、前記更新情報を受信して、該更新情報に基づき前記サーバマスタ記憶部を更新し、該更新の更新履歴を前記更新履歴レコードとして前記マスタ更新履歴記憶部に格納する前記サーバサイド・サーバマスタ更新ステップとを含むことを特徴とする請求項8記載のクライアント/サーバシステムにおけるマスタデータ反映方法。
The client-side server master update step in which at least one of the at least one client computer transmits the update information for the server master storage unit input by a user to the server computer;
The server side in which the server computer receives the update information, updates the server master storage unit based on the update information, and stores an update history of the update in the master update history storage unit as the update history record 9. A master data reflection method in a client / server system according to claim 8, further comprising a server master update step.
前記サーバマスタ記憶部には、識別子と該識別子に関連するデータからなるマスタレコードを格納し、
前記マスタ更新履歴記憶部には、更新された前記マスタレコード対応に該マスタレコードの前記識別子を含む前記更新履歴レコードを格納し、
前記取引データには少なくとも一つの前記マスタレコードの前記識別子を含む前記クライアント/サーバシステムにおいて、
前記サーバサイド・クライアントマスタ更新ステップでは、前記サーバコンピュータが、前記クライアントマスタ更新用差分の各更新履歴レコードに含まれる前記識別子と前記取引データに含まれる前記識別子とで一致するものがない場合には、前記取引データを前記取引データ記憶部に格納することを特徴とする請求項8または請求項9記載のクライアント/サーバシステムにおけるマスタデータ反映方法。
The server master storage unit stores a master record composed of an identifier and data related to the identifier,
The master update history storage unit stores the update history record including the identifier of the master record corresponding to the updated master record,
In the client / server system, the transaction data includes the identifier of at least one of the master records,
In the server side client master update step, when the server computer has no match between the identifier included in each update history record of the client master update difference and the identifier included in the transaction data 10. The master data reflecting method in the client / server system according to claim 8, wherein the transaction data is stored in the transaction data storage unit.
サーバマスタ記憶部と取引データを格納する取引データ記憶部とを備え、前記サーバマスタ記憶部内の情報を複写した情報を有するクライアントマスタ記憶部を備える少なくとも一台のクライアントコンピュータと通信可能な一台のサーバコンピュータに、
前記クライアントコンピュータから前記取引データを受信したときに、前記サーバマスタ記憶部と前記クライアントマスタ記憶部の内容の一致確認を行い、一致しているときには前記取引データを前記取引データ記憶部に登録するサーバサイド・取引データ登録手順と、
前記一致確認で一致していないことを確認したときには、前記サーバマスタ記憶部と前記クライアントマスタ記憶部との内容の差分抽出を行い、抽出されたクライアントマスタ更新用差分を前記クライアントコンピュータに送信するサーバサイド・クライアントマスタ更新手順とを実行させるためのプログラム。

One server communicable with at least one client computer comprising a server master storage unit and a transaction data storage unit for storing transaction data, and a client master storage unit having information obtained by copying information in the server master storage unit On the server computer,
When the transaction data is received from the client computer, the contents of the server master storage unit and the client master storage unit are checked for coincidence, and if they match, the server registers the transaction data in the transaction data storage unit Side / transaction data registration procedure,
A server that extracts a difference between the contents of the server master storage unit and the client master storage unit and transmits the extracted client master update difference to the client computer when it is confirmed by the match check that they do not match A program for executing the side client master update procedure.

JP2003310232A 2003-09-02 2003-09-02 Client/server system with master data reflecting means, master data reflection method and program Withdrawn JP2005078503A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003310232A JP2005078503A (en) 2003-09-02 2003-09-02 Client/server system with master data reflecting means, master data reflection method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003310232A JP2005078503A (en) 2003-09-02 2003-09-02 Client/server system with master data reflecting means, master data reflection method and program

Publications (1)

Publication Number Publication Date
JP2005078503A true JP2005078503A (en) 2005-03-24

Family

ID=34412163

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003310232A Withdrawn JP2005078503A (en) 2003-09-02 2003-09-02 Client/server system with master data reflecting means, master data reflection method and program

Country Status (1)

Country Link
JP (1) JP2005078503A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005309968A (en) * 2004-04-23 2005-11-04 Kyosan Electric Mfg Co Ltd Newest information display system and train operation display system using it
JP2017215722A (en) * 2016-05-31 2017-12-07 Juki株式会社 Information management system, processing device, and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005309968A (en) * 2004-04-23 2005-11-04 Kyosan Electric Mfg Co Ltd Newest information display system and train operation display system using it
JP2017215722A (en) * 2016-05-31 2017-12-07 Juki株式会社 Information management system, processing device, and program

Similar Documents

Publication Publication Date Title
US7383289B2 (en) Updating and maintaining data in a multi-system network using asynchronous message transfer
US7853722B2 (en) Simplified application object data synchronization for optimized data storage
EP1629403B1 (en) Data importation and exportation for computing devices
EP2047382B1 (en) Two-way and multi-master synchronization over web syndications
JP4953549B2 (en) Data link system and method using encoded links
US8250102B2 (en) Remote storage and management of binary object data
US20190166216A1 (en) Information pushing method and device
US20040083426A1 (en) System and method for generating pre-populated forms
CN108846753B (en) Method and apparatus for processing data
US20050192949A1 (en) Document group analyzing apparatus, a document group analyzing method, a document group analyzing system, a program, and a recording medium
US9971779B2 (en) Automated data intake system
CN112380227B (en) Data synchronization method, device, equipment and storage medium based on message queue
US20100076937A1 (en) Feed processing
CN112988770B (en) Method, device, electronic equipment and storage medium for updating serial number
US11360944B2 (en) Reconciliation of data in a distributed system
CN111654522B (en) File synchronization method, file synchronization server and storage medium
US20080133543A1 (en) System and Method for Dynamic and On-Demand Data Transfer and Synchronization Between Isolated Networks
CN111858486A (en) File classification method and device
CN106886589B (en) Picture storage method, server and client
JP2005078503A (en) Client/server system with master data reflecting means, master data reflection method and program
US10728323B2 (en) Method and apparatus for operating infrastructure layer in cloud computing architecture
JP4272653B2 (en) Information linkage system
JP2002251348A (en) System and program for reading contents data
WO2016060551A1 (en) A method for mining electronic documents and system thereof
US7243158B1 (en) Method, system and computer program for identification of data and translation of data between storage locations

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20050314

A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20061107