JP7163201B2 - Update data confirmation device and its control program - Google Patents
Update data confirmation device and its control program Download PDFInfo
- Publication number
- JP7163201B2 JP7163201B2 JP2019005042A JP2019005042A JP7163201B2 JP 7163201 B2 JP7163201 B2 JP 7163201B2 JP 2019005042 A JP2019005042 A JP 2019005042A JP 2019005042 A JP2019005042 A JP 2019005042A JP 7163201 B2 JP7163201 B2 JP 7163201B2
- Authority
- JP
- Japan
- Prior art keywords
- error
- item
- update data
- update
- classification
- 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.)
- Active
Links
Images
Landscapes
- Cash Registers Or Receiving Machines (AREA)
Description
本発明の実施形態は、更新データ確認装置及びコンピュータを当該更新データ確認装置として機能させるための制御プログラムに関する。 An embodiment of the present invention relates to an update data confirmation device and a control program for causing a computer to function as the update data confirmation device.
百貨店、チェーンストア、専門店等の比較的規模が大きい小売店の中には、客を店舗の利用状況等に応じた優待ランクによってランク分けし、優待ランク毎に商品の単価又は割引率を設定する販売形態をとっているところがある。この種の小売店では一般に、客が購入する商品の販売データを登録するための複数台のPOS(Point Of Sales)端末と、各POS端末で登録された販売データを店舗毎に集計するためのストアサーバと、を備えたPOSシステムが構築されている。そしてストアサーバには、各商品を識別する識別コードと関連付けて、優待ランク別に単価又は割引率を設定したデータファイルが備えられている。 Among relatively large-scale retail stores such as department stores, chain stores, and specialty stores, customers are ranked according to preferential ranks according to store usage status, etc., and unit prices or discount rates are set for each preferential rank. There are places that take the form of sales to do. In general, this type of retail store has a plurality of POS (Point Of Sales) terminals for registering sales data of products purchased by customers, and a POS (Point Of Sales) terminal for aggregating the sales data registered at each POS terminal for each store. A POS system comprising a store server is constructed. The store server is provided with a data file in which the unit price or discount rate is set for each preferential treatment rank in association with the identification code that identifies each product.
データファイルのデータ量は、店舗で販売される商品の品目数に比例する。このため、大量の商品を取り扱う店舗では、データ量が膨大なものとなる。このため、売価変更等に伴いデータファイルのデータを修正する際には、修正作業に大きな手間と多くの時間を要していた。 The amount of data in the data file is proportional to the number of product items sold at the store. For this reason, in a store that handles a large number of products, the amount of data becomes enormous. Therefore, when correcting the data in the data file due to a change in sales price or the like, the correction work required a great deal of time and effort.
そこで、データファイルを更新するための更新データは、POSシステムとは別のシステムで作成する。ストアサーバは、当該別システムから更新データを取り込み、その更新データに基づいてデータファイルのデータを更新する。このような手法をとることにより、データファイルの修正作業に要する手間が軽減され、時間が短縮されると考えられる。 Therefore, update data for updating the data file is created by a system other than the POS system. The store server fetches the update data from the other system and updates the data in the data file based on the update data. By adopting such a method, it is believed that the labor required for correcting the data file can be reduced, and the time can be shortened.
しかし、このような手法を有効に活用するためには、更新対象であるデータファイルのデータを修正する前に更新データの正当性を効率よく確認できる仕組みを構築する必要がある。 However, in order to make effective use of such a method, it is necessary to construct a mechanism for efficiently confirming the correctness of update data before correcting the data in the data file to be updated.
本発明の実施形態が解決しようとする課題は、更新対象のデータを更新データで更新する前に、当該更新データの正当性を効率よく確認できる更新データ確認装置を提供しようとするものである。 A problem to be solved by the embodiments of the present invention is to provide an update data confirmation device capable of efficiently confirming the correctness of update data before updating the data to be updated with the update data.
一実施形態において、更新データ確認装置は、取得手段と、管理手段と、実行手段とを備えている。取得手段は、更新対象のデータを更新するための更新データを保存したデータファイルを取得する。管理手段は、更新データの正当性を確認するためのエラーチェックの項目毎に、実行順位とエラー検出後の処理内容とを設定した設定テーブルを管理する。実行手段は、設定テーブルに設定された実行順位に従い項目のエラーチェックを実行し、エラーが検出されると当該項目に対して設定テーブルで設定されている処理内容に応じた処理を実行する。 In one embodiment, an update data confirmation device comprises acquisition means, management means, and execution means. The obtaining means obtains a data file storing update data for updating data to be updated. The management means manages a setting table in which the order of execution and the details of processing after error detection are set for each error check item for confirming the validity of the update data. The executing means executes an error check for the item in accordance with the execution order set in the setting table, and when an error is detected, executes a process corresponding to the processing content set in the setting table for the item.
以下、更新対象のデータを更新データで更新する前に、当該更新データの正当性を効率よく確認できる更新データ確認装置の実施形態について、図面を用いて説明する。
なお、本実施形態では、客を店舗の利用状況等に応じた優待ランクによってランク分けし、優待ランク毎に商品の単価又は割引率を設定するようにした小売店の本部管理システムが例示される。すなわち本実施形態では、各商品を識別する識別コードと関連付けて、優待ランク別に単価又は割引率を設定したデータファイルのデータが更新対象のデータとなる。
An embodiment of an update data confirmation device capable of efficiently confirming the validity of update data before updating data to be updated with update data will be described below with reference to the drawings.
In this embodiment, a retail store head office management system is exemplified in which customers are ranked according to preferential treatment ranks according to store usage conditions, etc., and the unit price or discount rate of products is set for each preferential treatment rank. . That is, in the present embodiment, the data to be updated is the data of the data file in which the unit price or discount rate is set for each preferential treatment rank in association with the identification code that identifies each product.
図1は、本実施形態である本部管理システム100の概略構成図である。本部管理システム100は、各小売店にそれぞれ構築されるPOSシステム100A、100Bのストアサーバ1と、本部サーバ2と、第1のネットワークNW1と、を含む。第1のネットワークNW1は、各ストアサーバ1と本部サーバ2とを、双方向通信自在に接続する。第1のネットワークNW1は、典型的にはインターネットである。第1のネットワークNW1は、本部管理システム100専用の閉域網であってもよい。第1のネットワークNW1は、モバイル通信網を含んでいてもよい。
FIG. 1 is a schematic configuration diagram of a
各小売店のPOSシステム100A、100Bは、基本的な構成を同一とする。すなわちPOSシステム100A、100Bは、ストアサーバ1と、POS端末3と、第2のネットワークNW2とを含む。第2のネットワークNW2は、ストアサーバ1とPOS端末3とを双方向通信自在に接続する。第2のネットワークNW2は、典型的にはLAN(Local Area Network)である。第2のネットワークNW2は、有線のLANであってもよいし、無線のLANであってもよい。
The
POS端末3は、小売店の売場に設置される。POS端末3は、主に、商品の販売データを登録処理する機能と、決済を処理する機能と、を有する。ストアサーバ1は、小売店の管理事務所等に設置される。ストアサーバ1は、主に、各POS端末3での登録処理を一元的に制御する機能と、各POS端末3で登録処理された各商品の販売データから、店舗全体の売上、在庫等を管理する機能とを有する。
The
かかる構成のPOSシステム100A,100Bにおいて、ストアサーバ1は、単品マスタファイル4と分類マスタファイル5とを備えている。単品マスタファイル4は、単品毎に生成される複数の単品レコード4Rを保存するための記憶領域である。単品とは、商品の1品目を表す。分類マスタファイル5は、商品の分類毎に生成される複数の分類レコード5Rを保存するための記憶領域である。分類とは、商品の種類を表す。分類には、例えば食品、衣料品、日用品、家電製品等がある。分類は、上記の項目に限定されない。また、例えば食品は、生鮮食品、加工食品、飲料、菓子等に細分化されてもよい。衣料品、日用品、家電製品等についても同様である。
In the
図2は、単品レコード4Rのデータ構造を示す模式図である。図2に示すように、単品レコード4Rは、単品コード、分類コード、単品名称、通常価格及び優待ランク1~p別の優待価格を含む。単品コードは、単品毎に設定される一意の識別コードである。多くの商品には、その商品の単品コードをバーコード化した商品バーコードが付されている。分類コードは、対応する単品コードで識別される商品が属する分類を表す識別コードである。各分類には、予め一意の分類コードが設定されている。単品名称及び通常価格は、対応する単品コードで特定される商品の品目名及び通常販売時の価格である。優待ランク1~pは、店舗の利用状況等に応じて客を、ランク“1”からランク“p”までランク分けするための順位である。ランク“p”は、2以上の任意の整数である。ランク“p”は、ランク“1”よりも上位となる。優待価格は、対応する優待ランク1~pの客に、対応する単品コードで識別される商品を販売するときの価格である。優待価格は、通常価格よりも低価格である。優待価格は、優待ランクが上位になるほど低価格となる。ただし、連続する優待ランクの間では価格が同一となる場合もあり得る。
FIG. 2 is a schematic diagram showing the data structure of the
図3は、分類レコード5Rのデータ構造を示す模式図である。図3に示すように、分類レコード5Rは、分類コード、分類名称及び優待ランク1~p別の優待割引率を含む。分類名称は、対応する分類コードで識別される分類の項目名である。優待割引率は、対応する優待ランク1~pの客に、対応する分類コードに属する商品を販売するときの割引率である。優待割引率は、優待ランクが上位になるほど大きくなる。ただし、連続する優待ランクの間では割引率が同一となる場合もあり得る。
FIG. 3 is a schematic diagram showing the data structure of the
ここに、単品マスタファイル4及び分類マスタファイル5は、各商品を識別する識別コードと関連付けて優待ランク別に単価又は割引率を設定した更新対象のデータを保存したデータファイルである。
Here, the single-
図1の説明に戻る。
本部サーバ2は、各小売店を統轄する本部に設置される。本部サーバ2は、単品更新データファイル6と分類更新データファイル7とを作成し、各小売店のストアサーバ1に配信する機能を有する。単品更新データファイル6は、単品マスタファイル4に保存されている単品レコード4Rを更新するための更新データを保存する。以下の説明では、当該更新データを単品更新レコード6Rと称する。分類更新データファイル7は、分類マスタファイル5に保存されている分類レコード5Rを更新するための更新データを保存する。以下の説明では、当該更新データを分類更新レコード7Rと称する。
Returning to the description of FIG.
The
単品更新レコード6R及び分類更新レコード7Rのデータ構造は共通である。図4は、単品更新レコード6R及び分類更新レコード7Rのデータ構造を示す模式図である。図4に示すように、単品更新レコード6R及び分類更新レコード7Rは、レコード種別値、コード、優待種別値及び優待ランク1~p別の優待データを含む。
The data structure of the single
レコード種別値は、当該レコードが単品更新レコード6Rであるのか分類更新レコード7Rであるのかを識別するための値である。本実施形態では、単品更新レコード6Rを示す値を“1”とし、分類更新レコード7Rを示す値を“2”とする。
The record type value is a value for identifying whether the record is the single
コードは、当該レコードが単品更新レコード6Rであるときには単品コードであり、分類更新レコード7Rであるときには分類コードである。
The code is the single item code when the record is the single
優待種別値は、当該レコードが単品更新レコード6Rであるときには、優待ランク1~p別の優待データが優待価格であることを示す値であり、分類更新レコード7Rであるときには、優待ランク1~p別の優待データが優待割引率であることを示す値である。本実施形態では、優待価格を示す優待種別値を“1”、優待割引率を示す優待種別値を“2”とする。
The preferential treatment type value is a value indicating that the preferential treatment data for each of the preferential treatment ranks 1 to p is the preferential treatment price when the record is the single
優待ランク1~p別の優待データは、当該レコードが単品更新レコード6Rであるときには優待価格であり、分類更新レコード7Rであるときには優待割引率である。
The preferential treatment data for each of the preferential treatment ranks 1 to p is the preferential price when the record is the single
本部の担当者は、優待価格の変更又は優待割引率の変更に伴い、単品マスタファイル4又は分類マスタファイル5のデータを修正する必要が生じた場合、本部サーバ2を利用して、単品更新レコード6R又は分類更新レコード7Rの構成に必要なデータを入力する。そうすることにより、本部サーバ2では、単品更新レコード6R又は分類更新レコード7Rを保存した単品更新データファイル6又は分類更新データファイル7が作成される。作成された単品更新データファイル6又は分類更新データファイル7は、適当なタイミングで、本部サーバ2から第1のネットワークNW1を介して各小売店のストアサーバ1へと配信される。その際、単品更新データファイル6又は分類更新データファイル7は、CSV形式のデータファイルとして配信される。
If it becomes necessary to modify the data in the single
ストアサーバ1は、本部サーバ2から配信された単品更新データファイル6又は分類更新データファイル7の正当性を確認するためのエラーチェックを実行する。その結果、エラーが検出された場合、ストアサーバ1は、そのエラー内容を報知するための処理を実行する。ここに、ストアサーバ1は、更新データ確認装置としての機能を有する。
The
図5は、ストアサーバ1が有する更新データ確認装置としての機能を説明するためのブロック図である。図5に示すように、ストアサーバ1は、更新データ取得機能1A、設定テーブル管理機能1B、更新データチェック機能1C、マスタ更新機能1D及びエラー報知機能1Eを有する。
FIG. 5 is a block diagram for explaining the function of the
更新データ取得機能1Aは、外部のシステムである本部サーバ2から第1のネットワークNW1を介して配信される単品更新データファイル6又は分類更新データファイル7を取得する。そして更新データ取得機能1Aは、本部サーバ2から取得したデータファイルが単品更新データファイル6であるのか分類更新データファイル7であるのかを識別し、その結果を設定テーブル管理機能1Bに通知する。また更新データ取得機能1Aは、単品更新データファイル6又は分類更新データファイル7を更新データチェック機能1Cへと渡す。
The update
設定テーブル管理機能1Bは、設定テーブル8を管理する。設定テーブル8は、更新データの正当性を確認するためのエラーチェックの項目毎に、実行順位とエラー検出後の処理内容とを設定したデータテーブルである。
The setting
図6は、設定テーブル8の一例を示す模式図である。図6に示すように、設定テーブル8は、“1”から始まる連続番号と関連づけて、項目名、実施フラグ、報知フラグ、続行フラグ及びロジック名を記述するための領域を備える。そして、項目名の領域には、番号“1”から昇順に、エラーチェックを実行する順番にしたがってそのエラーチェックの内容を表す項目名が記述される。 FIG. 6 is a schematic diagram showing an example of the setting table 8. As shown in FIG. As shown in FIG. 6, the setting table 8 has areas for describing item names, execution flags, notification flags, continuation flags, and logic names in association with serial numbers starting from "1". In the item name area, item names representing the contents of the error check are written in ascending order from number "1" according to the order in which the error check is executed.
実施フラグの領域には、対応する項目名のエラーチェックを実施するか否かを指定するための1ビットデータが記述される。本実施形態では、実施フラグは、エラーチェックを実施することを指定する場合に“1”、実施しないことを指定する場合に“0”となる。 In the execution flag area, 1-bit data for designating whether or not to execute the error check for the corresponding item name is described. In this embodiment, the implementation flag is "1" when specifying to implement an error check, and "0" when specifying not to implement it.
報知フラグの領域には、対応する項目名のエラーチェックを実施した結果、エラーを検出した場合の報知方法を指定するための1ビットデータが記述される。本実施形態では、報知フラグは、エラーが発生した時点でエラー内容を示すポップアップを出力して報知することを指定する場合に“1”、エラーチェック終了後にエラー内容を示すリストを出力して報知することを指定する場合に“0”となる。 In the notification flag area, 1-bit data for designating the notification method when an error is detected as a result of executing the error check for the corresponding item name is described. In this embodiment, the notification flag is set to "1" when specifying that a pop-up indicating the content of an error should be output and notified when an error occurs, and a list indicating the content of the error should be output and notified after the error check is completed. It is set to "0" when specifying that
続行フラグの領域には、対応する項目名のエラーチェックを実施した結果、エラーを検出した場合に、その後のエラーチェックを継続するか否かを設定するための1ビットデータが記述される。本実施形態では、続行フラグは、エラーチェックを継続することを指定する場合に“1”、継続しないことを指定する場合に“0”となる。 In the area of the continuation flag, 1-bit data for setting whether or not to continue the subsequent error check when an error is detected as a result of executing the error check for the corresponding item name is described. In this embodiment, the continuation flag is "1" when specifying to continue the error check, and "0" when specifying not to continue.
ロジック名の領域には、対応する項目名のエラーチェックを実施するためのロジックをプログラミングしたプログラムの名称が記述される。 In the logic name area, the name of the program in which the logic for executing the error check for the corresponding item name is programmed is described.
図5の説明に戻る。
設定テーブル管理機能1Bは、更新データ取得機能1Aからの通知を受けて、設定テーブル8の実施フラグ、報知フラグ及び続行フラグを変更する。すなわち設定テーブル管理機能1Bは、本部サーバ2から取得したデータファイルが単品更新データファイル6である場合には、実施フラグ、報知フラグ及び続行フラグを、単品更新データファイル6の正当性を確認するためのエラーチェックに適した状態に変更する。設定テーブル管理機能1Bは、本部サーバ2から取得したデータファイルが分類更新データファイル7である場合には、実施フラグ、報知フラグ及び続行フラグを、分類更新データファイル7の正当性を確認するためのエラーチェックに適した状態に変更する。
Returning to the description of FIG.
The setting
更新データチェック機能1Cは、設定テーブル8のデータに基づいて、単品更新データファイル6又は分類更新データファイル7の正当性を確認するためのエラーチェックを実行する。具体的には、更新データチェック機能1Cは、連続番号の昇順に、実施フラグが“1”に設定されている項目名のエラーチェックを実行する。そしてエラーが検出されると、更新データチェック機能1Cは、報知フラグの値に応じて、エラー報知のための処理を実行する。また、更新データチェック機能1Cは、続行フラグの値に応じて、エラーチェックを継続するか否かを決定する。
The update data check
マスタ更新機能1Dは、更新データチェック機能1Cにより正当性が認められた単品更新データファイル6又は分類更新データファイル7のデータで、単品マスタファイル4又は分類マスタファイル5を更新する。
The
エラー報知機能1Eは、出力デバイス9を利用して、更新データチェック機能1Cによりエラーが検出されたことを報知するための処理を行う。出力デバイス9は、典型的には表示デバイスである。出力デバイス9は、表示デバイスと、印刷デバイス又は音声出力デバイスとを組み合わせてもよい。出力デバイスは、報知内容を示すデータをスマートフォン、タブレット端末等の情報端末に通知するための通信デバイスであってもよい。
The
ここで、図6に表記されている項目名で特定されるエラーチェックの内容について説明する。
連続番号が「1」の項目名「レコード件数」は、単品更新データファイル6又は分類更新データファイル7に保存されている単品更新レコード6R又は分類更新レコード7Rの件数が“0”であるか否かをチェックする処理を表す。レコード件数が“0”の単品更新データファイル6又は分類更新データファイル7は、エラーと判定される。
Here, the contents of the error check specified by the item names shown in FIG. 6 will be described.
The item name "number of records" with the serial number "1" indicates whether the number of single
連続番号が「2」の項目名「単品件数超過」は、単品更新データファイル6に保存されている単品更新レコード6Rの件数が上限値を超えているか否かをチェックする処理を表す。単品更新レコード6Rの件数が上限値を超えている単品更新データファイル6は、エラーと判定される。上限値は、単品マスタファイル4のレコード件数等によって定まる任意の値である。
The item name "excess number of single items" with the serial number "2" indicates processing for checking whether or not the number of single
連続番号が「3」の項目名「分類件数超過」は、分類更新データファイル7に保存されている分類更新レコード7Rの件数が上限値を超えているか否かをチェックする処理を表す。分類更新レコード7Rの件数が上限値を超えている分類更新データファイル7は、エラーと判定される。上限値は、分類マスタファイル5のレコード件数等によって定まる任意の値である。
The item name "exceeding the number of classifications" with the serial number "3" indicates processing for checking whether or not the number of
連続番号が「4」の項目名「桁数違い」は、単品更新レコード6R又は分類更新レコード7Rの項目毎にデータの桁数をチェックする処理を表す。少なくとも1つの項目の桁数がオーバーしている単品更新レコード6R又は分類更新レコード7Rは、エラーと判定される。桁数は、レコード種別値、コード、優待種別値及び優待ランク1~pのデータ毎に定まる任意の値である。
The item name "number of digits" with the serial number of "4" represents the process of checking the number of digits for each item of the single
連続番号が「5」の項目名「レコード種別違い」は、単品更新レコード6R又は分類更新レコード7Rに含まれるレコード種別値をチェックする処理を表す。本実施形態の場合、単品更新データファイル6に含まれる単品更新レコード6Rの中でレコード種別値が“1”でないレコードは、エラーと判定される。同様に、分類更新データファイル7に含まれる分類更新レコード7Rの中でレコード種別値が“2”でないレコードは、エラーと判定される。
The item name "record type difference" with the serial number "5" indicates processing for checking the record type value included in the single
連続番号が「6」の項目名「マスタ無し」は、単品更新レコード6R又は分類更新レコード7Rで特定される単品又は分類のレコードが、単品マスタファイル4又は分類マスタファイル5に存在するか否かをチェックする処理を表す。単品マスタファイル4に存在しない単品の単品更新レコード6Rは、エラーと判定される。同様に、分類マスタファイル5に存在しない分類の分類更新レコード7Rは、エラーと判定される。
The item name "no master" with the serial number "6" indicates whether or not the single item or category record specified by the single
連続番号が「7」の項目名「コード重複」は、単品マスタファイル4又は分類マスタファイル5に保存されている単品更新レコード6R又は分類更新レコード7Rの中に、単品コード又は分類コードが重複する複数のレコードがあるか否かをチェックする処理を表す。他の単品更新レコード6Rと単品コードが重複する単品更新レコード6Rは、エラーと判定される。同様に、他の分類更新レコード7Rと分類コードが重複する分類更新レコード7Rは、エラーと判定される。
The item name "code duplication" with the serial number "7" indicates that the single item code or classification code is duplicated in the single
連続番号が「8」の項目名「数値以外」は、単品更新レコード6R又は分類更新レコード7Rの項目毎にデータが数値であるか否かをチェックする処理を表す。少なくとも1つの項目のデータが数値以外である単品更新レコード6R又は分類更新レコード7Rは、エラーと判定される。
The item name "non-numerical" with the serial number "8" indicates processing for checking whether or not the data is a numerical value for each item in the single
連続番号が「9」の項目名「フォーマット違い」は、単品更新レコード6R又は分類更新レコード7Rのフォーマットをチェックする処理を表す。図5に示したフォーマットとは異なるデータ構造の単品更新レコード6R又は分類更新レコード7Rは、エラーと判定される。
The item name "format difference" with the serial number "9" represents the process of checking the format of the single
連続番号が「10」の項目名「0円設定」は、単品更新レコード6Rの優待ランク1~p別のデータに“0”が設定されているか否かをチェックする処理を表す。少なくとも1つの優待ランクのデータが“0”である単品更新レコード6Rは、エラーと判定される。
The item name "set 0 yen" with the serial number "10" represents the process of checking whether "0" is set in the data for each of the preferential treatment ranks 1 to p in the single
連続番号が「11」の項目名「価格設定誤り」は、単品更新レコード6Rに含まれる優待ランク1~p別データの大小関係が正しいか否かをチェックする処理を表す。前述したように、優待ランク1~pは、ランク“1”よりもランク“p”の方が上位となり、優待価格は、優待ランクが上位になるほど低価格となる。ただし、連続する優待ランクの間で価格が同一となることを跨げるものではない。優待ランク1~p別データの大小関係がこのような条件を満たしていない単品更新レコード6Rは、エラーと判定される。
連続番号が「12」の項目名「割引率設定誤り」は、分類更新レコード7Rに含まれる優待ランク1~p別データの大小関係が正しいか否かをチェックする処理を表す。前述したように、優待ランク1~pは、ランク“1”よりもランク“p”の方が上位となり、優待割引率は、優待ランクが上位になるほど大きくなる。ただし、連続する優待ランクの間で割引率が同一となることを跨げるものではない。優待ランク1~p別データの大小関係がこのような条件を満たしていない分類更新レコード7Rは、エラーと判定される。
連続番号が「13」の項目名「割引率不正」は、分類更新レコード7Rに含まれる優待ランク1~p別のデータが全て等しい値であるか否かをチェックする処理を表す。全ての優待ランク1~pのデータが等しい値の分類更新レコード7Rは、エラーと判定される。
The item name "price setting error" with the serial number "11" represents the process of checking whether or not the magnitude relationship of the data classified by preferential treatment ranks 1 to p contained in the single
The item name "discount rate setting error" with the serial number "12" represents the process of checking whether or not the magnitude relationship of the data classified by preferential treatment ranks 1 to p contained in the
The item name "unauthorized discount rate" with the serial number "13" represents the process of checking whether or not the data for each
図7は、ストアサーバ1の要部回路構成を示すブロック図である。ストアサーバ1は、プロセッサ11、メインメモリ12、補助記憶デバイス13、時計14、第1通信インターフェース15、第2通信インターフェース16、入力デバイス17、表示デバイス18及びシステム伝送路19を備える。システム伝送路19は、アドレスバス、データバス、制御信号線等を含む。ストアサーバ1は、システム伝送路19に、プロセッサ11、メインメモリ12、補助記憶デバイス13、時計14、第1通信インターフェース15、第2通信インターフェース16、入力デバイス17及び表示デバイス18を接続する。ストアサーバ1では、プロセッサ11、メインメモリ12及び補助記憶デバイス13と、これらを接続するシステム伝送路19とによってコンピュータが構成される。
FIG. 7 is a block diagram showing the main circuitry of the
プロセッサ11は、上記コンピュータの中枢部分に相当する。プロセッサ11は、オペレーティングシステム又はアプリケーションプログラムに従って、ストアサーバ1としての各種の機能を実現するべく各部を制御する。プロセッサ11は、例えばCPU(Central Processing Unit)である。
The
メインメモリ12は、上記コンピュータの主記憶部分に相当する。メインメモリ12は、不揮発性のメモリ領域と揮発性のメモリ領域とを含む。メインメモリ12は、不揮発性のメモリ領域ではオペレーティングシステム又はアプリケーションプログラムを記憶する。アプリケーションプログラムは、エラーチェックを実施するためのロジックをプログラミングしたプログラムを含む。メインメモリ12は、プロセッサ11が各部を制御するための処理を実行する上で必要なデータを不揮発性又は揮発性のメモリ領域で記憶する場合もある。メインメモリ12は、揮発性のメモリ領域を、プロセッサ11によってデータが適宜書き換えられるワークエリアとして使用する。不揮発性のメモリ領域は、例えばROM(Read Only Memory)である。揮発性のメモリ領域は、例えばRAM(Random Access Memory)である。
The
補助記憶デバイス13は、上記コンピュータの補助記憶部分に相当する。例えばEEPROM(Electric Erasable Programmable Read-Only Memory)、HDD(Hard Disc Drive)、あるいはSSD(Solid State Drive)等が補助記憶デバイス13となり得る。補助記憶デバイス13は、プロセッサ11が各種の処理を行う上で使用するデータ、あるいはプロセッサ11での処理によって作成されたデータ等を保存する。補助記憶デバイス13は、上記のアプリケーションプログラムを記憶する場合もある。
The
時計14は、ストアサーバ1の時刻情報源として、日付及び時刻を計時する。プロセッサ11は、時計14によって計時されている日付及び時刻を、現在の日時として取得する。
The
第1通信インターフェース15は、第1のネットワークNW1を介して接続される本部サーバ2との間で、所定の通信プロトコルに従いデータの送信及び受信を行う。第2通信インターフェース16は、第2のネットワークNW2を介して接続される各POS端末3との間で、所定の通信プロトコルに従いデータの送信及び受信を行う。
The
入力デバイス17は、データの入力に供せられるデバイスである。キーボード、スキャナ等が入力デバイス17に相当する。表示デバイス18は、データの表示に供せられるデバイスである。液晶ディスプレイ、有機EL(electroluminescence)ディスプレイ等が表示デバイス18に相当する。入力デバイス17と表示デバイス18とを兼用するデバイスとしてタッチパネルをストアサーバ1に設けてもよい。
The
かかる構成のストアサーバ1は、表示デバイス18が出力デバイス9として機能する。補助記憶デバイス13には、単品マスタファイル4、分類マスタファイル5及び設定テーブル8が保存される。更新データ取得機能1A、設定テーブル管理機能1B、更新データチェック機能1C、マスタ更新機能1D及びエラー報知機能1Eは、メインメモリ12又は補助記憶デバイス13で記憶されている制御プログラムに従ってプロセッサ11が情報処理を実行することにより実現される。そして、この情報処理を実行する上で必要なメモリエリアとして、ストアサーバ1は、メインメモリ12にエラーバッファ121、番号nをカウントするカウンタメモリ122、1ビットの第1フラグF1を記憶するフラグメモリ123、1ビットの第2フラグF2を記憶するフラグメモリ124及び1ビットの第3フラグF3を記憶するフラグメモリ125を形成している。また、ストアサーバ1は、補助記憶デバイス13において、単品実施パターンテーブル131と分類実施パターンテーブル132とを記憶している。エラーバッファ121、カウンタメモリ122、フラグメモリ123~125、単品実施パターンテーブル131及び分類実施パターンテーブル132の用途については、後述する動作説明の中で明らかにする。
In the
図8及び図9は、ストアサーバ1のプロセッサ11が、上記制御プログラムに従って実行する情報処理の要部手順を示す流れ図である。以下、各図を用いて、ストアサーバ1の更新データ確認装置としての動作を説明する。なお、以下に説明する動作の内容は一例である。同様な結果を得ることが可能であればその手順及び内容は特に限定されるものではない。
8 and 9 are flow charts showing main procedures of information processing executed by the
プロセッサ11は、時計14によって計時されている時刻が予め設定された時刻になると、本部サーバ1から単品更新データファイル6又は分類更新データファイル7が配信されているか否かを確認する。第1のネットワークNW1を介して単品更新データファイル6又は分類更新データファイル7が配信されていることを確認すると、プロセッサ11は、図8及び図9の流れ図に示す手順の処理を開始する。
When the time measured by the
プロセッサ11は、Act1として第1通信インターフェース15を介して受信したデータファイルを取得する。そしてプロセッサ11は、Act2としてそのデータファイルが単品更新データファイル6なのか分類更新データファイル7なのかを識別する。ここに、プロセッサ11は、Act1及びAct2の処理により、第1通信インターフェース15と協働して更新データ取得機能1Aを実現する。すなわちプロセッサ11は、取得手段を備えている。
The
Act2において、プロセッサ11は、単品更新データファイル6を取得した場合にはYESと判定し、Act3へと進む。プロセッサ11は、Act3として補助記憶デバイス13から単品実施パターンテーブル131を選択する。そしてプロセッサ11は、この単品実施パターンテーブル131のデータで、設定テーブル8の実施フラグ、報知フラグ及び続行フラグを変更する。
In Act2, the
Act2において、プロセッサ11は、分類更新データファイル7を取得した場合にはNOと判定し、Act4へと進む。プロセッサ11は、Act4として補助記憶デバイス13から分類実施パターンテーブル132を選択する。そしてプロセッサ11は、この分類実施パターンテーブル132のデータで、設定テーブル8の実施フラグ、報知フラグ及び続行フラグを変更する。
In Act2, the
図6に示した設定テーブル8に対する単品実施パターンテーブル131の一例を図10に示し、分類実施パターンテーブル132の一例を図11に示す。図10及び図11に示すように、単品実施パターンテーブル131及び分類実施パターンテーブル132は、設定テーブル8からロジック名の項目を除外したものと一致する。そして単品実施パターンテーブル131は、単品更新データファイル6のエラーチェックには不要な項目名「分類件数超過」、「割引率設定誤り」及び「割引率不正」に対応付けられた実施フラグを“0”とし、その他の項目の実施フラグを“1”としている。また単品実施パターンテーブル131は、実施フラグを“1”とした項目のうち、項目名「レコード件数」、「単品件数超過」及び「レコード種別違い」の報知フラグを“1”とし、残りの項目の報知フラグを“0”としている。また単品実施パターンテーブル131は、実施フラグを“1”とした項目のうち、項目名「レコード件数」及び「単品件数超過」の続行フラグを“0”とし、残りの項目の続行フラグを“1”としている。 FIG. 10 shows an example of the single item implementation pattern table 131 for the setting table 8 shown in FIG. 6, and FIG. 11 shows an example of the classification implementation pattern table 132. As shown in FIG. As shown in FIGS. 10 and 11, the single item implementation pattern table 131 and the classification implementation pattern table 132 match the setting table 8 with the logic name item removed. In the single-item implementation pattern table 131, the execution flags associated with the item names "excessive number of classifications", "wrong discount rate setting", and "illegal discount rate", which are unnecessary for error checking of the single-item update data file 6, are set to "0". ”, and the execution flags of the other items are set to “1”. In the single-item execution pattern table 131, of the items whose execution flag is "1", the notification flags of the item names "number of records", "excess number of single items" and "wrong record type" are set to "1", and the remaining items are is set to "0". In the single-item implementation pattern table 131, among the items whose implementation flags are set to "1", the continuation flags of the item names "number of records" and "excess number of single items" are set to "0", and the continuation flags of the remaining items are set to "1". ”.
一方、分類実施パターンテーブル132は、分類更新データファイル7のエラーチェックには不要な項目名「単品件数超過」、「0円設定」及び「価格設定誤り」に対応付けられた実施フラグを“0”とし、その他の項目の実施フラグを“1”としている。また分類実施パターンテーブル132は、実施フラグを“1”とした項目のうち、項目名「レコード件数」、「分類件数超過」及び「レコード種別違い」の報知フラグを“1”とし、残りの項目の報知フラグを“0”としている。また分類実施パターンテーブル132は、実施フラグを“1”とした項目のうち、項目名「レコード件数」、及び「分類件数超過」の続行フラグを“0”とし、残りの項目の続行フラグを“1”としている。 On the other hand, in the classification execution pattern table 132, the execution flags associated with the item names "excess number of single items", "set at 0 yen" and "erroneous price setting" which are unnecessary for the error check of the classification update data file 7 are set to "0". ”, and the execution flags of the other items are set to “1”. In the classification execution pattern table 132, of the items whose execution flags are set to "1", the notification flags of the item names "number of records", "exceeded number of classifications", and "wrong record type" are set to "1", and the remaining items are is set to "0". Further, the classification execution pattern table 132 sets the continuation flags of the item names "number of records" and "exceeding the number of classifications" among the items whose execution flags are "1" to "0", and sets the continuation flags of the remaining items to "0". 1”.
ここに、プロセッサ11は、Act3及びAct4の処理により、補助記憶デバイス13と協働して設定テーブル管理機能1Bを実現する。すなわちプロセッサ11は、管理手段及び変更手段を備えている。
Here, the
Act3又はAct4の処理を終えると、プロセッサ11は、Act5としてエラーバッファ121をクリアする。またプロセッサ11は、Act6としてカウンタメモリ122の番号nを“0”にリセットする。
After completing the processing of Act3 or Act4, the
次いで、プロセッサ11は、Act7としてカウンタメモリ122の番号nを“1”だけカウントアップする。そしてプロセッサ11は、Act8として番号nが最大値N以下であるか否かを確認する。最大値Nは、設定テーブル8に設定されている連続番号の最大値である。すなわち本実施形態では、最大値Nは「13」である。
Next, the
番号nが最大値N以下である場合、プロセッサ11は、Act8においてYESと判定し、Act9へと進む。プロセッサ11は、Act9として設定テーブル8の番号nに対応付けられた実施フラグの値を、フラグメモリ123の第1フラグF1の値とする。同様にプロセッサ11は、Act10として設定テーブル8の番号nに対応付けられた報知フラグの値を、フラグメモリ124の第2フラグF2の値とする。またプロセッサ11は、Act11として設定テーブル8の番号nに対応付けられた続行フラグの値を、フラグメモリ125の第3フラグF3の値とする。
If the number n is equal to or less than the maximum value N, the
プロセッサ11は、Act12として第1フラグF1の値を調べる。第1フラグF1の値が“1”である場合、設定テーブル8の番号nに対応付けられた実施フラグは、対応する項目名のエラーチェックを実施することを指定する。プロセッサ11は、Act12においてYESと判定し、Act13へと進む。
The
プロセッサ11は、Act13として設定テーブル8の番号nに対応付けられたロジック名を選択する。そしてプロセッサ11は、Act14として当該ロジック名のプログラムに従い、Act1において取得した単品更新データファイル6又は分類更新データファイル7のエラーチェックを開始する。
The
プロセッサ11は、Act15としてエラーチェックを終了したか否かを確認する。エラーチェックを終了していない場合、プロセッサ11は、Act15においてNOと判定し、Act16へと進む。プロセッサ11は、Act16としてエラーを検出したか否かを確認する。エラーを検出していない場合、プロセッサ11は、Act16においてNOと判定し、Act15へと戻る。したがってプロセッサ11は、Act15及びAct16の処理により、エラーチェックを終了するかエラーが検出されるのを待ち受ける。
In
この待ち受け状態において、エラーチェックが終了すると、プロセッサ11は、Act15においてYESと判定し、Act7へと戻る。すなわちプロセッサ11は、カウンタメモリ122の番号nをさらに“1”だけカウントアップする。そして番号nが最大値N以下である場合、プロセッサ11は、Act9乃至Act16の処理を、前述したのと同様に実行する。
In this standby state, when the error check ends, the
Act15及びAct16の待ち受け状態において、エラーが検出された場合には、プロセッサ11は、Act16においてYESと判定し、図9のAct17へと進む。プロセッサ11は、Act17として第2フラグF2の値を調べる。第2フラグF2の値が“1”である場合、設定テーブル8の番号nに対応付けられた報知フラグは、エラー内容を示すポップアップを出力することを指定する。プロセッサ11は、Act17においてYESと判定し、Act18へと進む。プロセッサ11は、Act18としてエラー内容を示すポップアップ画像を表示デバイス18に表示させる。
If an error is detected in the standby states of Act15 and Act16, the
図12は、ポップアップ画像SC1の一例を示す模式図である。図12に示すようにポップアップ画像SC1には、エラー内容を表すメッセージM1と、OKボタンBT1とが表示される。メッセージM1を確認したストアサーバ1のオペレータは、入力デバイス17を介してOKボタンBT1を入力する。
FIG. 12 is a schematic diagram showing an example of the popup image SC1. As shown in FIG. 12, the pop-up image SC1 displays a message M1 representing error details and an OK button BT1. After confirming the message M1, the operator of the
表示デバイス18にポップアップ画像SC1を表示させたプロセッサ11は、Act19としてOKボタンBT1が入力されるのを待ち受ける。OKボタンBT1が入力されると、プロセッサ11は、Act19においてYESと判定し、Act21へと進む。
The
一方、第2フラグF2の値が“0”である場合には、設定テーブル8の番号nに対応付けられた報知フラグは、エラー内容を示すリストを出力することを指定する。プロセッサ11は、Act17においてNOと判定し、Act20へと進む。プロセッサ11は、Act20としてエラーが検出されたデータ、つまりは単品更新レコード6R又は分類更新レコード7Rのデータをエラーバッファ121に格納する。その後、プロセッサ11は、Act21へと進む。
On the other hand, when the value of the second flag F2 is "0", the notification flag associated with the number n of the setting table 8 designates output of a list indicating error details. The
このようにプロセッサ11は、Act19においてポップアップ画像SC1のOKボタンBT1が入力されるか、Act20においてエラーデータをエラーバッファ121に格納したならば、Act21へと進む。プロセッサ11は、Act21として第3フラグF3の値を調べる。第3フラグF3の値が“1”である場合、設定テーブル8の番号nに対応付けられた続行フラグは、エラーチェックを継続することを指定する。プロセッサ11は、Act21においてYESと判定し、図8のAct15へと進む。すなわちプロセッサ11は、エラーチェックを継続し、そのエラーチェックを終了するか、エラーが検出されるのを待ち受ける。
In this way, the
一方、第3フラグF3の値が“0”である場合には、設定テーブル8の番号nに対応付けられた続行フラグは、エラーチェックを継続しないことを指定する。プロセッサ11は、Act21においてNOと判定し、図8のAct22へと進む。
On the other hand, when the value of the third flag F3 is "0", the continuation flag associated with the number n in the setting table 8 specifies not to continue the error check. The
このようにプロセッサ11は、設定テーブル8に設定されている連続番号の昇順に、単品更新データファイル6又は分類更新データファイル7のエラーチェックを実行する。そして、エラーが検出された場合、プロセッサ11は、報知フラグの値に従い、エラー内容を示すポップアップ画像SC1を表示デバイス18に表示させる。あるいは、プロセッサ11は、エラーが検出された単品更新レコード6R又は分類更新レコード7Rをエラーバッファ121に格納する。
In this way, the
ここで、エラーが検出されたエラーチェックの項目に対して設定された続行フラグの値が“0”である場合、エラーチェックは継続しない。前述したように、プロセッサ11は、図9のAct21においてNOと判定し、図8のAct22へと進む。
Here, if the value of the continuation flag set for the error check item in which an error is detected is "0", the error check is not continued. As described above, the
一方、続行フラグの値が“1”である場合には、エラーチェックを継続する。こうして、全ての項目のエラーチェックを終了すると、番号nが最大値Nを超える。すなわちプロセッサ11は、Act8においてNOと判定し、Act22へと進む。
On the other hand, when the value of the continuation flag is "1", the error check is continued. In this way, the number n exceeds the maximum value N when the error check for all items is completed. That is, the
プロセッサ11は、Act22としてエラーバッファ121に保存されている単品更新レコード6R又は分類更新レコード7Rのデータに基づき、エラーリストを出力する。具体的にはプロセッサ11は、単品更新レコード6R又は分類更新レコード7Rに含まれるコードと、そのコードから特定される単品名称又は分類名称と、エラー内容を表すデータとを一覧にしたエラーリスト画像を表示デバイス18に表示させる。
The
図13は、単品更新データファイル6のエラーチェックを行った場合のエラーリスト画像SC2の一例を示す模式図である。エラーリスト画像SC2には、コード、名称及びエラー原因を一覧にしたエラーリストL1と、終了ボタンBT2と、確定ボタンBT3とが表示される。また、単品更新データファイル6によって更新されるデータファイルが単品マスタファイル4であることを示す情報「単品マスタ更新」も表示される。エラーリストL1を確認したオペレータは、単品マスタファイル4の更新を実行するか否かを判断する。そして実行する場合には、オペレータは、入力デバイス17を介して確定ボタンBT3を入力する。実行しない場合には、オペレータは、入力デバイス17を介して終了ボタンBT2を入力する。
FIG. 13 is a schematic diagram showing an example of the error list image SC2 when the single item update data file 6 is checked for errors. The error list image SC2 displays an error list L1 listing codes, names, and causes of errors, an end button BT2, and an enter button BT3. In addition, information "single item master update" indicating that the data file to be updated by the single item update data file 6 is the single
因みに、分類更新データファイル7のエラーチェックを行った場合のエラーリスト画像SC2では、情報「単品マスタ更新」が「分類マスタ更新」となる。また、エラーバッファ121に単品更新レコード6R又は分類更新レコード7Rが保存されていない場合には、エラーリストL1は空欄となる。あるいは、エラーリストL1は省略される。
Incidentally, in the error list image SC2 when the classification update data file 7 is checked for errors, the information "single item master update" becomes "classification master update". Further, when the single
エラーリストの出力を制御したプロセッサ11は、Act23として確定ボタンBT3が入力されたか否かを確認する。確定ボタンBT3ではなく終了ボタンBT2が入力された場合には、プロセッサ11は、Act23においてNOと判定し、図8及び図9の流れ図に示す手順の処理を終了する。
The
確定ボタンBT3が入力された場合には、プロセッサ11は、Act23においてYESと判定し、Act24へと進む。プロセッサ11は、Act24として更新対象データを更新データで更新するための処理を実行する。すなわち、更新データとして本部サーバ2から単品更新データファイル6を受信していた場合には、プロセッサ11は、単品マスタファイル4のデータを、正当な単品更新レコード6Rのデータで更新する処理を実行する。更新データとして本部サーバ2から分類更新データファイル7を受信していた場合には、プロセッサ11は、分類マスタファイル5のデータを、正当な分類更新レコード7Rのデータで更新する処理を実行する。
以上で、プロセッサ11は、図8及び図9の流れ図に示す手順の処理を終了する。
When the enter button BT3 is input, the
With this, the
ここに、プロセッサ11は、Act5乃至Act16の処理により、更新データチェック機能1Cを実現する。またプロセッサ11は、Act17乃至Act22の処理を実行することにより、エラー報知機能1Eを実現する。またプロセッサ11は、Act23及びAct24の処理を実行することにより、マスタ更新機能1Dを実現する。すなわちプロセッサ11は、実行手段を備えている。
Here, the
このように動作するストアサーバ1においては、本部サーバ2から単品更新データファイル6が配信されると、図10に示す単品実施パターンテーブル131によって、設定テーブル8の実施フラグ、報知フラグ及び続行フラグの値が変更される。そして先ず、番号「1」の実施フラグの値が“1”なので、項目名「レコード件数」のエラーチェックが実行される。その結果、エラーが検出されると、番号「1」の報知フラグの値が“1”なので、エラー内容を示すポップアップ画像が表示デバイス18に表示される。また、番号「1」の実行フラグの値が“0”なので、エラーチェックが終了する。
In the
項目名「レコード件数」のエラーチェックにおいて、エラーが検出されなかった場合、番号「2」の実施フラグの値が“1”なので、項目名「単品件数超過」のエラーチェックが実行される。この場合も、報知フラグの値が“1”であり、実行フラグの値が“0”なので、エラーが検出されると、ポップアップ画像SC1が表示されて、エラーチェックが終了する。 If no error is detected in the error check for the item name "number of records", the value of the execution flag of number "2" is "1", so the error check for the item name "number of single items exceeded" is executed. Also in this case, the value of the notification flag is "1" and the value of the execution flag is "0", so when an error is detected, the pop-up image SC1 is displayed and the error check ends.
エラーが検出されなかった場合、番号「3」の実施フラグの値が“0”なので、項目名「分類件数超過」のエラーチェックは実行されない。 If no error is detected, the value of the execution flag of number "3" is "0", so the error check for the item name "excessive number of classifications" is not executed.
続いて、番号「4」の実施フラグの値が“1”なので、項目名「桁数違い」のエラーチェックが実行される。この場合、報知フラグの値が“0”なので、エラーが検出されると、エラーデータがエラーバッファ121に格納される。実行フラグの値は“1”なので、エラーが検出されてもエラーチェックは継続される。
Subsequently, since the value of the execution flag of number "4" is "1", the error check for the item name "number of digits" is executed. In this case, since the value of the notification flag is "0", error data is stored in the
項目名「桁数違い」のエラーチェックが終了すると、番号「5」の実施フラグの値が“1”なので、項目名「レコード種別違い」のエラーチェックが実行される。この場合、報知フラグの値が“1”なので、エラーが検出されると、エラー内容を示すポップアップ画像が表示デバイス18に表示される。実行フラグの値は“1”なので、エラーが検出されてもエラーチェックは継続される。
When the error check for the item name "Number of Digits Wrong" is completed, the error check for the item name "Record Type Wrong" is executed because the execution flag value of number "5" is "1". In this case, since the value of the notification flag is "1", when an error is detected, a pop-up image showing the content of the error is displayed on the
以後、番号「6」、「7」、「8」、「9」、「10」及び「11」にそれぞれ対応した項目名のエラーチェックが順次実行される。これらの番号に対応した報知フラグの値はいずれも「0」なので、エラーが検出されると、エラーデータがエラーバッファ121に格納される。実行フラグの値は“1”なので、エラーが検出されてもエラーチェックは継続される。
After that, the error checks for the item names corresponding to the numbers "6", "7", "8", "9", "10" and "11" are sequentially executed. Since the values of the notification flags corresponding to these numbers are all "0", error data is stored in the
一方、番号「12」及び「13」にそれぞれ対応した実施フラグの値はいずれも“0”であるので、番号「11」の項目名「価格設定誤り」のエラーチェックが終了すると、エラーバッファ121に格納されているエラーデータに基づき、エラーリストL1を含むエラーリスト画像SC2が表示される。ここで、オペレータが確定ボタンBT3にタッチすると、単品マスタファイル4のデータが単品更新データファイル6の更新データによって更新される。
On the other hand, the execution flag values corresponding to numbers "12" and "13" are both "0". An error list image SC2 including an error list L1 is displayed based on the error data stored in . Here, when the operator touches the confirmation button BT3, the data in the single
次に、本部サーバ2から分類更新データファイル7が配信されると、図11に示す分類実施パターンテーブル132によって、設定テーブル8の実施フラグ、報知フラグ及び続行フラグの値が変更される。そして先ず、番号「1」の実施フラグの値が“1”なので、項目名「レコード件数」のエラーチェックが実行される。その結果、エラーが検出されると、番号「1」の報知フラグの値が“1”なので、エラー内容を示すポップアップ画像が表示デバイス18に表示される。また、番号「1」の実行フラグの値が“0”なので、エラーチェックが終了する。
Next, when the classification update data file 7 is delivered from the
項目名「レコード件数」のエラーチェックにおいて、エラーが検出されなかった場合、番号「2」の実施フラグの値が“0”なので、項目名「単品件数超過」のエラーチェックは実行されない。 If no error is detected in the error check for the item name "number of records", the error check for the item name "excess number of single items" is not executed because the execution flag value of number "2" is "0".
続いて、番号「3」の実施フラグの値が“1”なので、項目名「分類件数超過」のエラーチェックが実行される。この場合も、報知フラグの値が“1”であり、実行フラグの値が“0”なので、エラーが検出されると、ポップアップ画像SC1が表示されて、エラーチェックが終了する。 Subsequently, since the value of the execution flag of number "3" is "1", an error check for the item name "exceeded number of classifications" is executed. Also in this case, the value of the notification flag is "1" and the value of the execution flag is "0", so when an error is detected, the pop-up image SC1 is displayed and the error check ends.
エラーが検出されなかった場合、番号「4」の実施フラグの値が“1”なので、項目名「桁数違い」のエラーチェックが実行される。この場合、報知フラグの値が“0”なので、エラーが検出されると、エラーデータがエラーバッファ121に格納される。実行フラグの値は“1”なので、エラーが検出されてもエラーチェックは継続される。
If no error is detected, the value of the execution flag of number "4" is "1", so the error check for the item name "number of digits" is executed. In this case, since the value of the notification flag is "0", error data is stored in the
項目名「桁数違い」のエラーチェックが終了すると、番号「5」の実施フラグの値が“1”なので、項目名「レコード種別違い」のエラーチェックが実行される。この場合、報知フラグの値が“1”なので、エラーが検出されると、エラー内容を示すポップアップ画像が表示デバイス18に表示される。実行フラグの値は“1”なので、エラーが検出されてもエラーチェックは継続される。
When the error check for the item name "Number of Digits Wrong" is completed, the error check for the item name "Record Type Wrong" is executed because the execution flag value of number "5" is "1". In this case, since the value of the notification flag is "1", when an error is detected, a pop-up image showing the content of the error is displayed on the
以後、番号「6」、「7」、「8」及び「9」にそれぞれ対応した項目名のエラーチェックが順次実行される。これらの番号に対応した報知フラグの値はいずれも「0」なので、エラーが検出されると、エラーデータがエラーバッファ121に格納される。実行フラグの値は“1”なので、エラーが検出されてもエラーチェックは継続される。
After that, the error checks for the item names corresponding to the numbers "6", "7", "8" and "9" are sequentially executed. Since the values of the notification flags corresponding to these numbers are all "0", error data is stored in the
一方、番号「10」及び「11」にそれぞれ対応した実施フラグの値は“0”であるので、番号「9」の項目名「フォーマット違い」のエラーチェックが終了すると、番号「12」の項目名「割引率設定誤り」のエラーチェックが実行される。続いて、番号「13」の項目名「割引率不正」のエラーチェックも実行される。 On the other hand, the values of the execution flags corresponding to numbers "10" and "11" are "0". An error check for the name "discount rate setting error" is performed. Subsequently, an error check for the item name "unauthorized discount rate" of number "13" is also executed.
こうして、項目名「割引率不正」のエラーチェックが終了すると、エラーバッファ121に格納されているエラーデータに基づき、エラーリストL1を含むエラーリスト画像SC2が表示される。ここで、オペレータが確定ボタンBT3にタッチすると、分類マスタファイル5のデータが分類更新データファイル7の更新データによって更新される。
Thus, when the error check for the item name "unauthorized discount rate" is completed, an error list image SC2 including the error list L1 is displayed based on the error data stored in the
このように本実施形態によれば、単品マスタファイル4に設定されている単品レコード4Rの優待ランク1~p別優待価格を、単品更新データファイル6に保存されている単品更新レコード6Rの優待ランク1~p別データで更新する前に、単品更新データファイル6の正当性を、設定テーブル8に設定されたエラーチェックの項目順に効率よく確認することができる。同様に、分類マスタファイル5に設定されている分類レコード5Rの優待ランク1~p別優待割引率を、分類更新データファイル7に保存されている分類更新レコード7Rの優待ランク1~p別データで更新する前に、分類更新データファイル7の正当性を、設定テーブル8に設定されたエラーチェックの項目順に効率よく確認することができる。
As described above, according to the present embodiment, the preferential prices for each of the
そしてエラーチェックの結果、エラーが検出された場合、そのエラーチェックの項目毎に、エラーチェックを中断してエラーが検出されたことを報知するか、エラーチェックを終了するまでは報知せず、終了した段階でエラーデータの一覧を表示して報知するかを、設定テーブル8の報知フラグの値によって指定できる。したがって、エラーチェックの内容を考慮した報知方法を容易に設計できるメリットがある。 Then, if an error is detected as a result of the error check, for each error check item, interrupt the error check and notify that an error has been detected, or do not notify until the error check is completed, and end The value of the notification flag in the setting table 8 can be used to specify whether the list of error data should be displayed and notified when the error data is detected. Therefore, there is an advantage that a notification method can be easily designed in consideration of the content of error check.
その上、エラーが検出された場合、その時点でエラーチェックを終了するか継続するかについても、設定テーブル8の続行フラグの値によって指定できる。したがって、エラーチェックの内容を考慮し、エラーチェックを継続するか否かを容易に指定できるメリットもある。 In addition, when an error is detected, whether to end or continue the error check at that point can be specified by the value of the continuation flag in the setting table 8. FIG. Therefore, there is also the advantage that it is possible to easily specify whether or not to continue the error check in consideration of the contents of the error check.
また、設定テーブル8に設定されたエラーチェックの実施項目についても、単品マスタファイル4の更新データである単品更新データファイル6を取得した場合と、分類マスタファイル5の更新データである分類更新データファイル7とを取得した場合とで、設定テーブル8の実施フラグの値によって変更することができる。従って、不必要なエラーチェックが実行されることはないので、より効率よく単品更新データファイル6又は分類更新データファイル7の正当性を確認することができる。
Also, regarding the error check execution items set in the setting table 8, when the single item update data file 6, which is the update data of the single
以上、更新対象のデータを更新データで更新する前に、当該更新データの正当性を効率よく確認できる更新データ確認装置の実施形態について説明したが、かかる実施形態はこれに限定されるものではない。 Although the embodiment of the update data confirmation device capable of efficiently confirming the validity of the update data before updating the data to be updated with the update data has been described above, the embodiment is not limited to this. .
前記実施形態では、取得手段は、本部サーバ2から配信される単品更新データファイル6又は分類更新データファイル7を、第1通信インターフェース15を介して受信することにより取得する場合を例示した。この点に関しては、例えば、本部サーバ2で作成された単品更新データファイル6又は分類更新データファイル7を、コンピュータが読取可能な可搬型の記録媒体に記録し、ストアサーバ1に接続された記録媒体読取装置で、当該記録媒体のデータを読み取ることにより、単品更新データファイル6又は分類更新データファイル7を取得してもよい。
In the above-described embodiment, the acquisition means acquires the single item update data file 6 or the classification update data file 7 distributed from the
前記実施形態では、ストアサーバ1が単品マスタファイル4と分類マスタファイル5とを備えた場合を例示した。他の実施形態としては、いずれか1台のPOS端末3が単品マスタファイル4と分類マスタファイル5とを備えてもよい。この場合、当該POS端末3が更新データ確認装置としての機能を有することとなる。
In the above embodiment, the case where the
前記実施形態では、単品マスタファイル4及び分類マスタファイル5において単品コード別又は分類コード別に保存されている優待ランク1~p別の優待価格又は優待割引率を更新対象データとした。更新対象データは、これに限定されるものではない。例えば、製造日からの経過日数により価格又は割引率を変更する販売形態をとる場合、経過日数別の割引価格又は割引率が更新対象データとなる。また、学生割引、シニア割引等のように客層によって価格又は割引率を変更する販売形態をとる場合には、客層別の割引価格又は割引率が更新対象データとなる。
In the above embodiment, the data to be updated is the preferential price or preferential discount rate for each
前記実施形態では、ストアサーバ1が、メインメモリ12または補助記憶デバイス13において制御プログラムを予め記憶しているものとして説明した。この点に関しては、例えばエラーチェックを実施する前に制御プログラムをストアサーバ1にインストールしてもよい。この場合、制御プログラムは、リムーバブルな記録媒体に記録して、あるいはネットワークを介した通信により、ストアサーバ1にインストールすることができる。記録媒体は、CD-ROM,メモリカード等のようにプログラムを記憶でき、かつストアサーバ1が読み取り可能であれば、その形態は問わない。
In the above embodiment, the
この他、本発明のいくつかの実施形態を説明したが、これらの実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。これら新規な実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。これら実施形態及びその変形は、発明の範囲に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる。 Additionally, while several embodiments of the invention have been described, these embodiments have been presented by way of example and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, replacements, and modifications can be made without departing from the scope of the invention. These embodiments and modifications thereof are included in the scope of the invention, and are included in the scope of the invention described in the claims and equivalents thereof.
1…ストアサーバ、1A…更新データ取得機能、1B…設定テーブル管理機能、1C…更新データチェック機能、1D…マスタ更新機能、1E…エラー報知機能、2…本部サーバ、3…POS端末、4…単品マスタファイル、5…分類マスタファイル、6…単品更新データファイル、7…分類更新データファイル、8…設定テーブル、9…出力デバイス、11…プロセッサ、12…メインメモリ、13…補助記憶デバイス、14…時計、15…第1通信インターフェース、16…第2通信インターフェース、17…入力デバイス、18…表示デバイス、121…エラーバッファ、131…単品実施パターンテーブル、132…分類実施パターンテーブル。
REFERENCE SIGNS
Claims (6)
前記更新データの正当性を確認するためのエラーチェックの項目毎に、実行順位とエラー検出後の処理内容とを設定した設定テーブルを管理する管理手段と、
前記設定テーブルに設定された実行順位に従い前記項目のエラーチェックを実行し、エラーが検出されると当該項目に対して前記設定テーブルで設定されている処理内容に応じた処理を実行する実行手段と、
を具備する更新データ確認装置。 an acquisition means for acquiring a data file storing update data for updating data to be updated;
a management means for managing a setting table in which an execution order and details of processing after error detection are set for each error check item for confirming the validity of the update data;
execution means for executing an error check for the item according to the execution order set in the setting table, and executing a process corresponding to the processing content set in the setting table for the item when an error is detected; ,
An update data confirmation device comprising:
前記実行手段は、前記項目のエラーチェックを実行している過程で前記エラーが検出され、当該項目に対して前記設定テーブルで設定されている処理内容が、前記エラーが検出された時点で報知する処理である場合、前記エラーチェックを中断してエラーが検出されたことを報知する、請求項1記載の更新データ確認装置。 The processing content includes processing for notifying when an error is detected,
The execution means detects the error in the process of executing the error check of the item, and notifies the processing contents set in the setting table for the item at the time when the error is detected. 2. The update data confirmation device according to claim 1, wherein if it is processing, it interrupts said error check and notifies that an error has been detected.
前記実行手段は、前記項目のエラーチェックを実行している過程で前記エラーが検出され、当該項目に対して前記設定テーブルで設定されている処理内容が、前記エラーが検出された前記更新データを一覧で表示する処理である場合、エラーが検出された前記更新データをバッファに記憶し、前記エラーチェックを終了した段階で前記バッファに記憶された前記更新データを一覧で表示する、請求項1記載の更新データ確認装置。 the processing content includes processing for displaying a list of the update data in which an error is detected;
The execution means detects the error in the process of executing the error check of the item, and the processing content set in the setting table for the item is changed to the update data in which the error is detected. 2. The process of displaying a list, according to claim 1, wherein the update data in which an error is detected is stored in a buffer, and the update data stored in the buffer is displayed in a list when the error check is finished. update data confirmation device.
前記実行手段は、前記エラーが検出された時点で前記種別を確認し、エラーチェックを終了する設定の場合には、その時点でエラーチェックを終了し、継続する設定の場合には前記エラーチェックを継続する、請求項2又は3記載の更新データ確認装置。 The processing content includes a type for setting whether to end or continue the error check when the error is detected,
The execution means confirms the type when the error is detected, terminates the error check at that time if the setting is to end the error check, or terminates the error check if the setting is to continue. 4. The update data confirmation device according to claim 2 or 3, continuing.
前記取得手段により取得したデータファイルに基づいて前記情報を変更する変更手段、
をさらに具備する、請求項1記載の更新データ確認装置。 The setting table includes information specifying whether to execute an error check for each item,
changing means for changing the information based on the data file acquired by the acquiring means;
The update data verification device according to claim 1, further comprising:
前記更新対象のデータを更新するための更新データを保存したデータファイルを取得する取得手段、
前記更新データの正当性を確認するためのエラーチェックの項目毎に、実行順位とエラー検出後の処理内容とを設定した設定テーブルを管理する管理手段、及び、
前記設定テーブルに設定された実行順位に従い前記項目のエラーチェックを実行し、エラーが検出されると当該項目に対して前記設定テーブルで設定されている処理内容に応じた処理を実行する実行手段、
として機能させるための制御プログラム。 A computer of an update data confirmation device for confirming the validity of update data for updating data to be updated,
acquisition means for acquiring a data file storing update data for updating the data to be updated;
a management means for managing a setting table in which an order of execution and details of processing after error detection are set for each error check item for confirming the validity of the update data;
Execution means for executing an error check for the item according to the execution order set in the setting table, and executing a process corresponding to the processing content set in the setting table for the item when an error is detected;
A control program for functioning as
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2019005042A JP7163201B2 (en) | 2019-01-16 | 2019-01-16 | Update data confirmation device and its control program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2019005042A JP7163201B2 (en) | 2019-01-16 | 2019-01-16 | Update data confirmation device and its control program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2020113160A JP2020113160A (en) | 2020-07-27 |
| JP7163201B2 true JP7163201B2 (en) | 2022-10-31 |
Family
ID=71668039
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2019005042A Active JP7163201B2 (en) | 2019-01-16 | 2019-01-16 | Update data confirmation device and its control program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7163201B2 (en) |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2001160183A (en) | 1999-12-03 | 2001-06-12 | Toshiba Tec Corp | Product sales data processing system |
-
2019
- 2019-01-16 JP JP2019005042A patent/JP7163201B2/en active Active
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2001160183A (en) | 1999-12-03 | 2001-06-12 | Toshiba Tec Corp | Product sales data processing system |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2020113160A (en) | 2020-07-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6814302B2 (en) | Ordering support system, ordering support program and ordering support method | |
| JP7514987B2 (en) | Shopping support system, terminal device and program | |
| CN101965142A (en) | Shelf label display control device and shelf label display control method, and electronic shelf label system | |
| JP5631352B2 (en) | Coordinate list providing system and program | |
| US20190147476A1 (en) | Apparatus, system, and method for integrating point card | |
| JP5623600B1 (en) | Expiration date management device and expiration date management program | |
| JP7163201B2 (en) | Update data confirmation device and its control program | |
| US20190026713A1 (en) | Server for managing transaction settlement data from different types of point-of-sale devices | |
| JP2020166445A (en) | Information inquiry device, information inquiry method and information inquiry program | |
| JP5621359B2 (en) | Slip management system, control method, and program | |
| JP7708685B2 (en) | Batch price revision support device, batch price revision support method, and batch price revision support program | |
| US20140222509A1 (en) | Data editing device and program | |
| JP7066921B1 (en) | Warehouse product sales system, method and program | |
| JP2014052685A (en) | Data editing device and program | |
| JP6808661B2 (en) | Information processing equipment and programs | |
| JP5714037B2 (en) | Data editing apparatus and program | |
| JP5844293B2 (en) | Data editing apparatus and program | |
| JP7508504B2 (en) | Electronic Receipt System | |
| JP2022148549A (en) | Transaction support device and control program | |
| JP7387341B2 (en) | Information processing device and its control program | |
| JP7762183B2 (en) | Inventory management device, inventory management method, and inventory management program | |
| US20250131403A1 (en) | Information processing system and information processing method | |
| JP5815582B2 (en) | Product ordering device and program | |
| CN106548312B (en) | Terminal device, management device and management system | |
| JP7538311B2 (en) | Receipt image generating device and information processing program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20211013 |
|
| TRDD | Decision of grant or rejection written | ||
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20220913 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20220920 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20221019 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7163201 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |