Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7163201B2 - Update data confirmation device and its control program - Google Patents
[go: Go Back, main page]

JP7163201B2 - Update data confirmation device and its control program - Google Patents

Update data confirmation device and its control program Download PDF

Info

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
Application number
JP2019005042A
Other languages
Japanese (ja)
Other versions
JP2020113160A (en
Inventor
貴史 今野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Tec Corp
Original Assignee
Toshiba Tec 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 Toshiba Tec Corp filed Critical Toshiba Tec Corp
Priority to JP2019005042A priority Critical patent/JP7163201B2/en
Publication of JP2020113160A publication Critical patent/JP2020113160A/en
Application granted granted Critical
Publication of JP7163201B2 publication Critical patent/JP7163201B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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.

特開2001-160183号公報Japanese Patent Application Laid-Open No. 2001-160183

本発明の実施形態が解決しようとする課題は、更新対象のデータを更新データで更新する前に、当該更新データの正当性を効率よく確認できる更新データ確認装置を提供しようとするものである。 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.

一実施形態である本部管理システムの概略構成図。1 is a schematic configuration diagram of a headquarters management system that is an embodiment; FIG. 単品マスタファイルに保存される単品レコードのデータ構造を示す模式図。Schematic diagram showing the data structure of a single-item record saved in a single-item master file. 分類マスタファイルに保存される分類レコードのデータ構造を示す模式図。Schematic diagram showing the data structure of a classification record saved in a classification master file. 単品更新データファイル又は分類更新データファイルに保存される単品更新レコード又は分類更新レコードのデータ構造を示す模式図。4 is a schematic diagram showing the data structure of a single item update record or classification update record stored in a single item update data file or classification update data file; FIG. ストアサーバが有する更新データ確認装置としての機能を説明するためのブロック図。FIG. 3 is a block diagram for explaining functions of a store server as an update data confirmation device; ストアサーバが有する設定テーブルの一例を示す模式図。4 is a schematic diagram showing an example of a setting table held by the store server; FIG. ストアサーバの要部回路構成を示すブロック図。FIG. 2 is a block diagram showing the main circuit configuration of the store server; ストアサーバのプロセッサが、制御プログラムに従って実行する情報処理の要部手順を示す流れ図。4 is a flow chart showing main procedures of information processing executed by the processor of the store server according to the control program; ストアサーバのプロセッサが、制御プログラムに従って実行する情報処理の要部手順を示す流れ図。4 is a flow chart showing main procedures of information processing executed by the processor of the store server according to the control program; 単品実施パターンテーブルの一例を示す模式図。FIG. 4 is a schematic diagram showing an example of a single-item execution pattern table; 分類実施パターンテーブルの一例を示す模式図。FIG. 4 is a schematic diagram showing an example of a classification execution pattern table; エラー報知のためのポップアップ画像の一例を示す模式図。FIG. 4 is a schematic diagram showing an example of a pop-up image for error notification; エラー報知のためのエラーリスト画像の一例を示す模式図。FIG. 4 is a schematic diagram showing an example of an error list image for error notification;

以下、更新対象のデータを更新データで更新する前に、当該更新データの正当性を効率よく確認できる更新データ確認装置の実施形態について、図面を用いて説明する。
なお、本実施形態では、客を店舗の利用状況等に応じた優待ランクによってランク分けし、優待ランク毎に商品の単価又は割引率を設定するようにした小売店の本部管理システムが例示される。すなわち本実施形態では、各商品を識別する識別コードと関連付けて、優待ランク別に単価又は割引率を設定したデータファイルのデータが更新対象のデータとなる。
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 headquarters management system 100 according to this embodiment. The headquarters management system 100 includes a store server 1 of POS systems 100A and 100B built in each retail store, a headquarters server 2, and a first network NW1. The first network NW1 connects each store server 1 and the head office server 2 so as to allow two-way communication. The first network NW1 is typically the Internet. The first network NW1 may be a closed network dedicated to the headquarters management system 100. FIG. The first network NW1 may include a mobile communication network.

各小売店の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 systems 100A and 100B of each retail store have the same basic configuration. That is, POS systems 100A and 100B include store server 1, POS terminal 3, and second network NW2. A second network NW2 connects the store server 1 and the POS terminal 3 so as to allow two-way communication. The second network NW2 is typically a LAN (Local Area Network). The second network NW2 may be a wired LAN or a wireless LAN.

POS端末3は、小売店の売場に設置される。POS端末3は、主に、商品の販売データを登録処理する機能と、決済を処理する機能と、を有する。ストアサーバ1は、小売店の管理事務所等に設置される。ストアサーバ1は、主に、各POS端末3での登録処理を一元的に制御する機能と、各POS端末3で登録処理された各商品の販売データから、店舗全体の売上、在庫等を管理する機能とを有する。 The POS terminal 3 is installed at the sales floor of the retail store. The POS terminal 3 mainly has a function of registering product sales data and a function of processing settlement. The store server 1 is installed in a management office or the like of a retail store. The store server 1 mainly has a function of centrally controlling registration processing at each POS terminal 3, and manages the sales, inventory, etc. of the entire store based on the sales data of each product registered at each POS terminal 3. have the function of

かかる構成のPOSシステム100A,100Bにおいて、ストアサーバ1は、単品マスタファイル4と分類マスタファイル5とを備えている。単品マスタファイル4は、単品毎に生成される複数の単品レコード4Rを保存するための記憶領域である。単品とは、商品の1品目を表す。分類マスタファイル5は、商品の分類毎に生成される複数の分類レコード5Rを保存するための記憶領域である。分類とは、商品の種類を表す。分類には、例えば食品、衣料品、日用品、家電製品等がある。分類は、上記の項目に限定されない。また、例えば食品は、生鮮食品、加工食品、飲料、菓子等に細分化されてもよい。衣料品、日用品、家電製品等についても同様である。 In the POS systems 100A and 100B having such a configuration, the store server 1 has a single-item master file 4 and a classification master file 5. FIG. The single item master file 4 is a storage area for storing a plurality of single item records 4R generated for each single item. A single item represents one item of merchandise. The classification master file 5 is a storage area for storing a plurality of classification records 5R generated for each product classification. Classification represents the type of product. Classifications include, for example, food, clothing, daily necessities, home electric appliances, and the like. Classification is not limited to the above items. Also, for example, food may be subdivided into fresh food, processed food, beverage, confectionery, and the like. The same applies to clothing, daily necessities, home electric appliances, and the like.

図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 single item record 4R. As shown in FIG. 2, the single item record 4R includes a single item code, a classification code, a single item name, a normal price, and a preferential price for each of the preferential treatment ranks 1 to p. The item code is a unique identification code set for each item. Many products have a product barcode obtained by converting the single product code of the product into a barcode. The classification code is an identification code representing the classification to which the product identified by the corresponding single item code belongs. A unique classification code is set in advance for each classification. The item name and regular price are the name of the product specified by the corresponding item code and the price at the time of regular sale. The preferential treatment ranks 1 to p are ranks for classifying customers from rank "1" to rank "p" according to the store's usage status and the like. The rank "p" is any integer greater than or equal to 2. Rank "p" is higher than rank "1". The preferential price is the price at which the product identified by the corresponding single-item code is sold to customers with corresponding preferential ranks 1 to p. The preferential price is lower than the normal price. The higher the preferential rank, the lower the preferential price. However, the price may be the same between successive preferential ranks.

図3は、分類レコード5Rのデータ構造を示す模式図である。図3に示すように、分類レコード5Rは、分類コード、分類名称及び優待ランク1~p別の優待割引率を含む。分類名称は、対応する分類コードで識別される分類の項目名である。優待割引率は、対応する優待ランク1~pの客に、対応する分類コードに属する商品を販売するときの割引率である。優待割引率は、優待ランクが上位になるほど大きくなる。ただし、連続する優待ランクの間では割引率が同一となる場合もあり得る。 FIG. 3 is a schematic diagram showing the data structure of the classification record 5R. As shown in FIG. 3, the classification record 5R includes a classification code, a classification name, and a preferential discount rate for each of the preferential treatment ranks 1 to p. The category name is the item name of the category identified by the corresponding category code. The preferential discount rate is the discount rate for selling products belonging to the corresponding classification code to customers with corresponding preferential treatment ranks 1 to p. The higher the preferential treatment rank, the higher the preferential discount rate. However, the discount rate may be the same between consecutive preferential treatment ranks.

ここに、単品マスタファイル4及び分類マスタファイル5は、各商品を識別する識別コードと関連付けて優待ランク別に単価又は割引率を設定した更新対象のデータを保存したデータファイルである。 Here, the single-item master file 4 and the classification master file 5 are data files storing data to be updated in which the unit price or discount rate is set for each preferential treatment rank in association with the identification code for identifying each product.

図1の説明に戻る。
本部サーバ2は、各小売店を統轄する本部に設置される。本部サーバ2は、単品更新データファイル6と分類更新データファイル7とを作成し、各小売店のストアサーバ1に配信する機能を有する。単品更新データファイル6は、単品マスタファイル4に保存されている単品レコード4Rを更新するための更新データを保存する。以下の説明では、当該更新データを単品更新レコード6Rと称する。分類更新データファイル7は、分類マスタファイル5に保存されている分類レコード5Rを更新するための更新データを保存する。以下の説明では、当該更新データを分類更新レコード7Rと称する。
Returning to the description of FIG.
The headquarters server 2 is installed in the headquarters which supervises each retail store. The headquarters server 2 has a function of creating a single item update data file 6 and a category update data file 7 and delivering them to the store server 1 of each retail store. The single item update data file 6 stores update data for updating the single item record 4R stored in the single item master file 4 . In the following description, the update data will be referred to as a single product update record 6R. The classification update data file 7 stores update data for updating the classification records 5R stored in the classification master file 5. FIG. In the following description, this update data will be referred to as a classification update record 7R.

単品更新レコード6R及び分類更新レコード7Rのデータ構造は共通である。図4は、単品更新レコード6R及び分類更新レコード7Rのデータ構造を示す模式図である。図4に示すように、単品更新レコード6R及び分類更新レコード7Rは、レコード種別値、コード、優待種別値及び優待ランク1~p別の優待データを含む。 The data structure of the single item update record 6R and the classification update record 7R is common. FIG. 4 is a schematic diagram showing the data structure of the single item update record 6R and the classification update record 7R. As shown in FIG. 4, the single-item update record 6R and the classification update record 7R include record type values, codes, preferential treatment type values, and preferential treatment data for each of the preferential treatment ranks 1 to p.

レコード種別値は、当該レコードが単品更新レコード6Rであるのか分類更新レコード7Rであるのかを識別するための値である。本実施形態では、単品更新レコード6Rを示す値を“1”とし、分類更新レコード7Rを示す値を“2”とする。 The record type value is a value for identifying whether the record is the single product update record 6R or the classification update record 7R. In this embodiment, the value indicating the single item update record 6R is set to "1", and the value indicating the classification update record 7R is set to "2".

コードは、当該レコードが単品更新レコード6Rであるときには単品コードであり、分類更新レコード7Rであるときには分類コードである。 The code is the single item code when the record is the single item update record 6R, and the classification code when the record is the classification update record 7R.

優待種別値は、当該レコードが単品更新レコード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 item update record 6R, and the preferential treatment ranks 1 to p when the record is the classification update record 7R. This is a value indicating that the other preferential treatment data is the preferential discount rate. In this embodiment, the preferential treatment type value indicating the preferential price is "1", and the preferential treatment type value indicating the preferential discount rate is "2".

優待ランク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 item update record 6R, and the preferential discount rate when the record is the classification update record 7R.

本部の担当者は、優待価格の変更又は優待割引率の変更に伴い、単品マスタファイル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 item master file 4 or the classification master file 5 due to a change in the preferential price or the preferential discount rate, the person in charge at the headquarters will use the headquarters server 2 to update the single item update record. Enter data required to construct 6R or Classification Update Record 7R. By doing so, the headquarters server 2 creates the single item update data file 6 or the classification update data file 7 storing the single item update record 6R or the classification update record 7R. The created single-item update data file 6 or classification update data file 7 is distributed from the head office server 2 to the store server 1 of each retail store via the first network NW1 at an appropriate timing. At that time, the single item update data file 6 or the classification update data file 7 is distributed as a data file in CSV format.

ストアサーバ1は、本部サーバ2から配信された単品更新データファイル6又は分類更新データファイル7の正当性を確認するためのエラーチェックを実行する。その結果、エラーが検出された場合、ストアサーバ1は、そのエラー内容を報知するための処理を実行する。ここに、ストアサーバ1は、更新データ確認装置としての機能を有する。 The store server 1 performs an error check to confirm the validity of the single item update data file 6 or the classification update data file 7 delivered from the headquarters server 2 . As a result, if an error is detected, the store server 1 executes processing for notifying the content of the error. Here, the store server 1 has a function as an update data confirmation device.

図5は、ストアサーバ1が有する更新データ確認装置としての機能を説明するためのブロック図である。図5に示すように、ストアサーバ1は、更新データ取得機能1A、設定テーブル管理機能1B、更新データチェック機能1C、マスタ更新機能1D及びエラー報知機能1Eを有する。 FIG. 5 is a block diagram for explaining the function of the store server 1 as an update data confirmation device. As shown in FIG. 5, the store server 1 has an update data acquisition function 1A, a setting table management function 1B, an update data check function 1C, a master update function 1D and an error notification function 1E.

更新データ取得機能1Aは、外部のシステムである本部サーバ2から第1のネットワークNW1を介して配信される単品更新データファイル6又は分類更新データファイル7を取得する。そして更新データ取得機能1Aは、本部サーバ2から取得したデータファイルが単品更新データファイル6であるのか分類更新データファイル7であるのかを識別し、その結果を設定テーブル管理機能1Bに通知する。また更新データ取得機能1Aは、単品更新データファイル6又は分類更新データファイル7を更新データチェック機能1Cへと渡す。 The update data acquisition function 1A acquires the single item update data file 6 or the classification update data file 7 distributed from the headquarters server 2, which is an external system, via the first network NW1. Then, the update data acquisition function 1A identifies whether the data file acquired from the headquarters server 2 is the single item update data file 6 or the classification update data file 7, and notifies the result to the setting table management function 1B. Also, the update data acquisition function 1A passes the single item update data file 6 or the classification update data file 7 to the update data check function 1C.

設定テーブル管理機能1Bは、設定テーブル8を管理する。設定テーブル8は、更新データの正当性を確認するためのエラーチェックの項目毎に、実行順位とエラー検出後の処理内容とを設定したデータテーブルである。 The setting table management function 1B manages the setting table 8. FIG. The setting table 8 is a data 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 update data.

図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 table management function 1B receives the notification from the update data acquisition function 1A and changes the implementation flag, notification flag, and continuation flag of the setting table 8. FIG. That is, when the data file acquired from the headquarters server 2 is the single item update data file 6, the setting table management function 1B sets the implementation flag, the notification flag, and the continuation flag to confirm the validity of the single item update data file 6. change to a state suitable for error checking. When the data file obtained from the headquarters server 2 is the classification update data file 7, the setting table management function 1B sets the implementation flag, the notification flag, and the continuation flag to confirm the validity of the classification update data file 7. Change to a state suitable for error checking.

更新データチェック機能1Cは、設定テーブル8のデータに基づいて、単品更新データファイル6又は分類更新データファイル7の正当性を確認するためのエラーチェックを実行する。具体的には、更新データチェック機能1Cは、連続番号の昇順に、実施フラグが“1”に設定されている項目名のエラーチェックを実行する。そしてエラーが検出されると、更新データチェック機能1Cは、報知フラグの値に応じて、エラー報知のための処理を実行する。また、更新データチェック機能1Cは、続行フラグの値に応じて、エラーチェックを継続するか否かを決定する。 The update data check function 1C executes an error check for confirming the validity of the single item update data file 6 or the classification update data file 7 based on the data in the setting table 8. FIG. Specifically, the update data check function 1C performs error checks on the item names for which the execution flag is set to "1" in ascending order of the serial number. When an error is detected, the update data check function 1C performs error notification processing according to the value of the notification flag. Also, the update data check function 1C determines whether to continue the error check according to the value of the continuation flag.

マスタ更新機能1Dは、更新データチェック機能1Cにより正当性が認められた単品更新データファイル6又は分類更新データファイル7のデータで、単品マスタファイル4又は分類マスタファイル5を更新する。 The master update function 1D updates the single item master file 4 or the classification master file 5 with the data of the single item update data file 6 or the classification update data file 7 whose validity is recognized by the update data check function 1C.

エラー報知機能1Eは、出力デバイス9を利用して、更新データチェック機能1Cによりエラーが検出されたことを報知するための処理を行う。出力デバイス9は、典型的には表示デバイスである。出力デバイス9は、表示デバイスと、印刷デバイス又は音声出力デバイスとを組み合わせてもよい。出力デバイスは、報知内容を示すデータをスマートフォン、タブレット端末等の情報端末に通知するための通信デバイスであってもよい。 The error notification function 1E uses the output device 9 to perform processing for notifying that an error has been detected by the update data check function 1C. Output device 9 is typically a display device. The output device 9 may combine a display device and a print device or an audio output device. The output device may be a communication device for notifying information terminals such as smartphones and tablet terminals of data indicating the content of notification.

ここで、図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 item update records 6R or classification update records 7R saved in the single item update data file 6 or classification update data file 7 is "0". Represents the process of checking whether The single item update data file 6 or the classification update data file 7 with the number of records of "0" is determined to be an error.

連続番号が「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 item update records 6R stored in the single item update data file 6 exceeds the upper limit. A single-item update data file 6 in which the number of single-item update records 6R exceeds the upper limit is determined to be an error. The upper limit value is an arbitrary value determined by the number of records in the single item master file 4 or the like.

連続番号が「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 classification update records 7R stored in the classification update data file 7 exceeds the upper limit. A classification update data file 7 in which the number of classification update records 7R exceeds the upper limit is determined as an error. The upper limit value is an arbitrary value determined by the number of records in the classification master file 5 or the like.

連続番号が「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 item update record 6R or the classification update record 7R. A single-item update record 6R or a classification update record 7R in which at least one item has more digits is determined to be an error. The number of digits is an arbitrary value determined for each data of record type value, code, preferential treatment type value, and preferential treatment ranks 1 to p.

連続番号が「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 item update record 6R or the classification update record 7R. In the case of this embodiment, among the single-item update records 6R included in the single-item update data file 6, a record whose record type value is not "1" is determined to be an error. Similarly, among the classification update records 7R included in the classification update data file 7, any record whose record type value is not "2" is determined to be an error.

連続番号が「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 item update record 6R or the classification update record 7R exists in the single item master file 4 or the classification master file 5. Represents the process of checking the . A single item update record 6R for a single item that does not exist in the single item master file 4 is determined to be an error. Similarly, a classification update record 7R for a classification that does not exist in the classification master file 5 is determined to be an error.

連続番号が「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 item update record 6R or the classification update record 7R saved in the single item master file 4 or the classification master file 5. Represents the process of checking whether there are multiple records. A single-item update record 6R whose single-item code overlaps with another single-item update record 6R is determined to be an error. Similarly, a classification update record 7R whose classification code overlaps with another classification update record 7R is determined to be an error.

連続番号が「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 item update record 6R or the classification update record 7R. A single item update record 6R or a category update record 7R in which data of at least one item is not a numerical value is determined as an error.

連続番号が「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 item update record 6R or the classification update record 7R. A single product update record 6R or a classification update record 7R having a data structure different from the format shown in FIG. 5 is determined to be an error.

連続番号が「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 item update record 6R. A single-item update record 6R in which at least one preferential rank data is "0" is determined to be an error.

連続番号が「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 item update record 6R is correct. As described above, among the preferential treatment ranks 1 to p, rank "p" is higher than rank "1", and the higher the preferential treatment rank, the lower the price. However, it does not straddle the fact that the price is the same between successive preferential treatment ranks. A single-item update record 6R in which the magnitude relationship of the data for each preferential rank 1 to p does not satisfy such conditions is determined to be an error.
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 classification update record 7R is correct. As described above, among the preferential treatment ranks 1 to p, the rank "p" is higher than the rank "1", and the higher the preferential treatment rank, the larger the preferential discount rate. However, it does not straddle the fact that the discount rate is the same between consecutive preferential treatment ranks. A classification update record 7R in which the magnitude relationship of the data of the preferential ranks 1 to p does not satisfy such conditions is determined as an error.
The item name "unauthorized discount rate" with the serial number "13" represents the process of checking whether or not the data for each preferential treatment rank 1 to p contained in the classification update record 7R are all the same value. A classification update record 7R in which the data of all the preferential ranks 1 to p have the same value is determined as an error.

図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 store server 1. As shown in FIG. The store server 1 comprises a processor 11 , main memory 12 , auxiliary storage device 13 , clock 14 , first communication interface 15 , second communication interface 16 , input device 17 , display device 18 and system transmission line 19 . The system transmission line 19 includes an address bus, a data bus, control signal lines and the like. The store server 1 connects the processor 11 , the main memory 12 , the auxiliary storage device 13 , the clock 14 , the first communication interface 15 , the second communication interface 16 , the input device 17 and the display device 18 to the system transmission line 19 . In the store server 1, a computer is composed of a processor 11, a main memory 12, an auxiliary storage device 13, and a system transmission line 19 connecting them.

プロセッサ11は、上記コンピュータの中枢部分に相当する。プロセッサ11は、オペレーティングシステム又はアプリケーションプログラムに従って、ストアサーバ1としての各種の機能を実現するべく各部を制御する。プロセッサ11は、例えばCPU(Central Processing Unit)である。 The processor 11 corresponds to the central portion of the computer. The processor 11 controls each part to implement various functions of the store server 1 according to an operating system or application program. The processor 11 is, for example, a CPU (Central Processing Unit).

メインメモリ12は、上記コンピュータの主記憶部分に相当する。メインメモリ12は、不揮発性のメモリ領域と揮発性のメモリ領域とを含む。メインメモリ12は、不揮発性のメモリ領域ではオペレーティングシステム又はアプリケーションプログラムを記憶する。アプリケーションプログラムは、エラーチェックを実施するためのロジックをプログラミングしたプログラムを含む。メインメモリ12は、プロセッサ11が各部を制御するための処理を実行する上で必要なデータを不揮発性又は揮発性のメモリ領域で記憶する場合もある。メインメモリ12は、揮発性のメモリ領域を、プロセッサ11によってデータが適宜書き換えられるワークエリアとして使用する。不揮発性のメモリ領域は、例えばROM(Read Only Memory)である。揮発性のメモリ領域は、例えばRAM(Random Access Memory)である。 The main memory 12 corresponds to the main memory portion of the computer. Main memory 12 includes a non-volatile memory area and a volatile memory area. The main memory 12 stores an operating system or application programs in a non-volatile memory area. Application programs include programs programmed with logic to perform error checking. The main memory 12 may store data necessary for the processor 11 to execute processing for controlling each part in a non-volatile or volatile memory area. The main memory 12 uses a volatile memory area as a work area in which data is appropriately rewritten by the processor 11 . The non-volatile memory area is, for example, ROM (Read Only Memory). A volatile memory area is, for example, a RAM (Random Access Memory).

補助記憶デバイス13は、上記コンピュータの補助記憶部分に相当する。例えばEEPROM(Electric Erasable Programmable Read-Only Memory)、HDD(Hard Disc Drive)、あるいはSSD(Solid State Drive)等が補助記憶デバイス13となり得る。補助記憶デバイス13は、プロセッサ11が各種の処理を行う上で使用するデータ、あるいはプロセッサ11での処理によって作成されたデータ等を保存する。補助記憶デバイス13は、上記のアプリケーションプログラムを記憶する場合もある。 The auxiliary storage device 13 corresponds to the auxiliary storage portion of the computer. For example, an EEPROM (Electric Erasable Programmable Read-Only Memory), HDD (Hard Disc Drive), SSD (Solid State Drive), or the like can be the auxiliary storage device 13 . The auxiliary storage device 13 stores data used by the processor 11 in performing various types of processing, data created by processing in the processor 11, and the like. The auxiliary storage device 13 may store the above application programs.

時計14は、ストアサーバ1の時刻情報源として、日付及び時刻を計時する。プロセッサ11は、時計14によって計時されている日付及び時刻を、現在の日時として取得する。 The clock 14 measures the date and time as a time information source for the store server 1 . The processor 11 acquires the date and time kept by the clock 14 as the current date and time.

第1通信インターフェース15は、第1のネットワークNW1を介して接続される本部サーバ2との間で、所定の通信プロトコルに従いデータの送信及び受信を行う。第2通信インターフェース16は、第2のネットワークNW2を介して接続される各POS端末3との間で、所定の通信プロトコルに従いデータの送信及び受信を行う。 The first communication interface 15 transmits and receives data according to a predetermined communication protocol with the headquarters server 2 connected via the first network NW1. The second communication interface 16 transmits and receives data according to a predetermined communication protocol with each POS terminal 3 connected via the second network NW2.

入力デバイス17は、データの入力に供せられるデバイスである。キーボード、スキャナ等が入力デバイス17に相当する。表示デバイス18は、データの表示に供せられるデバイスである。液晶ディスプレイ、有機EL(electroluminescence)ディスプレイ等が表示デバイス18に相当する。入力デバイス17と表示デバイス18とを兼用するデバイスとしてタッチパネルをストアサーバ1に設けてもよい。 The input device 17 is a device used for data input. A keyboard, scanner, or the like corresponds to the input device 17 . The display device 18 is a device used for displaying data. A liquid crystal display, an organic EL (electroluminescence) display, or the like corresponds to the display device 18 . A touch panel may be provided in the store server 1 as a device that serves both as the input device 17 and the display device 18 .

かかる構成のストアサーバ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 store server 1 having such a configuration, the display device 18 functions as the output device 9 . A single-item master file 4, a classification master file 5, and a setting table 8 are stored in the auxiliary storage device 13. FIG. The update data acquisition function 1A, the setting table management function 1B, the update data check function 1C, the master update function 1D and the error notification function 1E are executed by the processor 11 according to the control program stored in the main memory 12 or the auxiliary storage device 13. It is realized by executing As memory areas necessary for executing this information processing, the store server 1 includes an error buffer 121 in the main memory 12, a counter memory 122 for counting the number n, and a flag memory for storing a 1-bit first flag F1. 123, forming a flag memory 124 for storing a 1-bit second flag F2 and a flag memory 125 for storing a 1-bit third flag F3. The store server 1 also stores a single-item implementation pattern table 131 and a classification implementation pattern table 132 in the auxiliary storage device 13 . The uses of the error buffer 121, the counter memory 122, the flag memories 123 to 125, the single-item implementation pattern table 131, and the classification implementation pattern table 132 will be clarified in the explanation of operations to be given later.

図8及び図9は、ストアサーバ1のプロセッサ11が、上記制御プログラムに従って実行する情報処理の要部手順を示す流れ図である。以下、各図を用いて、ストアサーバ1の更新データ確認装置としての動作を説明する。なお、以下に説明する動作の内容は一例である。同様な結果を得ることが可能であればその手順及び内容は特に限定されるものではない。 8 and 9 are flow charts showing main procedures of information processing executed by the processor 11 of the store server 1 according to the control program. The operation of the store server 1 as an update data confirmation device will be described below with reference to the drawings. In addition, the content of the operation|movement demonstrated below is an example. The procedure and contents are not particularly limited as long as similar results can be obtained.

プロセッサ11は、時計14によって計時されている時刻が予め設定された時刻になると、本部サーバ1から単品更新データファイル6又は分類更新データファイル7が配信されているか否かを確認する。第1のネットワークNW1を介して単品更新データファイル6又は分類更新データファイル7が配信されていることを確認すると、プロセッサ11は、図8及び図9の流れ図に示す手順の処理を開始する。 When the time measured by the clock 14 reaches a preset time, the processor 11 confirms whether or not the single item update data file 6 or the classification update data file 7 has been delivered from the headquarters server 1 . After confirming that the single item update data file 6 or the classification update data file 7 has been delivered via the first network NW1, the processor 11 starts the processing of the procedures shown in the flow charts of FIGS.

プロセッサ11は、Act1として第1通信インターフェース15を介して受信したデータファイルを取得する。そしてプロセッサ11は、Act2としてそのデータファイルが単品更新データファイル6なのか分類更新データファイル7なのかを識別する。ここに、プロセッサ11は、Act1及びAct2の処理により、第1通信インターフェース15と協働して更新データ取得機能1Aを実現する。すなわちプロセッサ11は、取得手段を備えている。 The processor 11 acquires the data file received via the first communication interface 15 as Act1. Then, the processor 11 identifies whether the data file is the single item update data file 6 or the classification update data file 7 as Act 2 . Here, the processor 11 implements the update data acquisition function 1A in cooperation with the first communication interface 15 through the processing of Act1 and Act2. That is, the processor 11 has acquisition means.

Act2において、プロセッサ11は、単品更新データファイル6を取得した場合にはYESと判定し、Act3へと進む。プロセッサ11は、Act3として補助記憶デバイス13から単品実施パターンテーブル131を選択する。そしてプロセッサ11は、この単品実施パターンテーブル131のデータで、設定テーブル8の実施フラグ、報知フラグ及び続行フラグを変更する。 In Act2, the processor 11 determines YES when the single item update data file 6 is acquired, and proceeds to Act3. The processor 11 selects the single item execution pattern table 131 from the auxiliary storage device 13 as Act3. Then, the processor 11 changes the execution flag, the notification flag, and the continuation flag of the setting table 8 with the data of the single item execution pattern table 131 .

Act2において、プロセッサ11は、分類更新データファイル7を取得した場合にはNOと判定し、Act4へと進む。プロセッサ11は、Act4として補助記憶デバイス13から分類実施パターンテーブル132を選択する。そしてプロセッサ11は、この分類実施パターンテーブル132のデータで、設定テーブル8の実施フラグ、報知フラグ及び続行フラグを変更する。 In Act2, the processor 11 determines NO when the classification update data file 7 is acquired, and proceeds to Act4. The processor 11 selects the classification execution pattern table 132 from the auxiliary storage device 13 as Act4. Then, the processor 11 changes the execution flag, the notification flag, and the continuation flag of the setting table 8 with the data of the classification execution pattern table 132 .

図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 processor 11 implements the setting table management function 1B in cooperation with the auxiliary storage device 13 through the processing of Act3 and Act4. That is, the processor 11 has management means and change means.

Act3又はAct4の処理を終えると、プロセッサ11は、Act5としてエラーバッファ121をクリアする。またプロセッサ11は、Act6としてカウンタメモリ122の番号nを“0”にリセットする。 After completing the processing of Act3 or Act4, the processor 11 clears the error buffer 121 as Act5. The processor 11 also resets the number n of the counter memory 122 to "0" as Act6.

次いで、プロセッサ11は、Act7としてカウンタメモリ122の番号nを“1”だけカウントアップする。そしてプロセッサ11は、Act8として番号nが最大値N以下であるか否かを確認する。最大値Nは、設定テーブル8に設定されている連続番号の最大値である。すなわち本実施形態では、最大値Nは「13」である。 Next, the processor 11 counts up the number n of the counter memory 122 by "1" as Act7. Then, the processor 11 confirms whether or not the number n is equal to or less than the maximum value N as Act8. The maximum value N is the maximum value of serial numbers set in the setting table 8 . That is, in this embodiment, the maximum value N is "13".

番号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 processor 11 determines YES in Act8 and proceeds to Act9. The processor 11 sets the value of the execution flag associated with the number n of the setting table 8 as the value of the first flag F1 of the flag memory 123 in Act9. Similarly, the processor 11 sets the value of the notification flag associated with the number n of the setting table 8 as the value of the second flag F2 of the flag memory 124 in Act10. The processor 11 also sets the value of the continuation flag associated with the number n of the setting table 8 in Act 11 as the value of the third flag F3 of the flag memory 125 .

プロセッサ11は、Act12として第1フラグF1の値を調べる。第1フラグF1の値が“1”である場合、設定テーブル8の番号nに対応付けられた実施フラグは、対応する項目名のエラーチェックを実施することを指定する。プロセッサ11は、Act12においてYESと判定し、Act13へと進む。 The processor 11 checks the value of the first flag F1 as Act12. When the value of the first flag F1 is "1", the execution flag associated with the number n of the setting table 8 designates that the error check for the corresponding item name is to be executed. The processor 11 determines YES in Act12 and proceeds to Act13.

プロセッサ11は、Act13として設定テーブル8の番号nに対応付けられたロジック名を選択する。そしてプロセッサ11は、Act14として当該ロジック名のプログラムに従い、Act1において取得した単品更新データファイル6又は分類更新データファイル7のエラーチェックを開始する。 The processor 11 selects the logic name associated with the number n of the setting table 8 as Act13. Then, in Act 14, the processor 11 starts error checking of the single item update data file 6 or the classification update data file 7 acquired in Act 1 according to the program of the logic name.

プロセッサ11は、Act15としてエラーチェックを終了したか否かを確認する。エラーチェックを終了していない場合、プロセッサ11は、Act15においてNOと判定し、Act16へと進む。プロセッサ11は、Act16としてエラーを検出したか否かを確認する。エラーを検出していない場合、プロセッサ11は、Act16においてNOと判定し、Act15へと戻る。したがってプロセッサ11は、Act15及びAct16の処理により、エラーチェックを終了するかエラーが検出されるのを待ち受ける。 In Act 15, the processor 11 confirms whether or not the error check has ended. If the error check has not been completed, the processor 11 determines NO in Act15 and proceeds to Act16. The processor 11 confirms whether or not an error is detected in Act16. If no error is detected, the processor 11 determines NO in Act16 and returns to Act15. Therefore, the processor 11 waits until the error check is finished or an error is detected by the processing of Act15 and Act16.

この待ち受け状態において、エラーチェックが終了すると、プロセッサ11は、Act15においてYESと判定し、Act7へと戻る。すなわちプロセッサ11は、カウンタメモリ122の番号nをさらに“1”だけカウントアップする。そして番号nが最大値N以下である場合、プロセッサ11は、Act9乃至Act16の処理を、前述したのと同様に実行する。 In this standby state, when the error check ends, the processor 11 determines YES in Act15 and returns to Act7. That is, the processor 11 further counts up the number n of the counter memory 122 by "1". If the number n is equal to or less than the maximum value N, the processor 11 executes Act9 to Act16 in the same manner as described above.

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 processor 11 determines YES in Act16 and proceeds to Act17 in FIG. The processor 11 checks the value of the second flag F2 as Act17. When the value of the second flag F2 is "1", the notification flag associated with the number n in the setting table 8 designates outputting a pop-up indicating the content of the error. The processor 11 determines YES in Act17 and proceeds to Act18. In Act18, the processor 11 causes the display device 18 to display a pop-up image indicating the content of the error.

図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 store server 1 inputs the OK button BT1 through the input device 17. FIG.

表示デバイス18にポップアップ画像SC1を表示させたプロセッサ11は、Act19としてOKボタンBT1が入力されるのを待ち受ける。OKボタンBT1が入力されると、プロセッサ11は、Act19においてYESと判定し、Act21へと進む。 The processor 11 that causes the display device 18 to display the pop-up image SC1 waits for an input of the OK button BT1 as Act19. When the OK button BT1 is input, the processor 11 determines YES in Act19 and proceeds to Act21.

一方、第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 processor 11 determines NO in Act17 and proceeds to Act20. The processor 11 stores the data in which the error was detected in Act 20, ie, the data of the single item update record 6R or the classification update record 7R, in the error buffer 121. FIG. After that, the processor 11 proceeds to Act21.

このようにプロセッサ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 processor 11 advances to Act21 when the OK button BT1 of the popup image SC1 is input in Act19 or the error data is stored in the error buffer 121 in Act20. The processor 11 checks the value of the third flag F3 as Act21. When the value of the third flag F3 is "1", the continuation flag associated with the number n in the setting table 8 designates continuation of the error check. The processor 11 determines YES in Act21, and proceeds to Act15 in FIG. That is, the processor 11 continues the error check and waits for the error check to end or for an error to be detected.

一方、第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 processor 11 determines NO in Act21, and proceeds to Act22 in FIG.

このようにプロセッサ11は、設定テーブル8に設定されている連続番号の昇順に、単品更新データファイル6又は分類更新データファイル7のエラーチェックを実行する。そして、エラーが検出された場合、プロセッサ11は、報知フラグの値に従い、エラー内容を示すポップアップ画像SC1を表示デバイス18に表示させる。あるいは、プロセッサ11は、エラーが検出された単品更新レコード6R又は分類更新レコード7Rをエラーバッファ121に格納する。 In this way, the processor 11 performs an error check on the single item update data file 6 or the classification update data file 7 in ascending order of the serial numbers set in the setting table 8 . Then, when an error is detected, the processor 11 causes the display device 18 to display a pop-up image SC1 indicating the content of the error according to the value of the notification flag. Alternatively, the processor 11 stores in the error buffer 121 the single product update record 6R or the classification update record 7R in which the error was detected.

ここで、エラーが検出されたエラーチェックの項目に対して設定された続行フラグの値が“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 processor 11 determines NO in Act21 of FIG. 9, and proceeds to Act22 of FIG.

一方、続行フラグの値が“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 processor 11 determines NO in Act8, and proceeds to Act22.

プロセッサ11は、Act22としてエラーバッファ121に保存されている単品更新レコード6R又は分類更新レコード7Rのデータに基づき、エラーリストを出力する。具体的にはプロセッサ11は、単品更新レコード6R又は分類更新レコード7Rに含まれるコードと、そのコードから特定される単品名称又は分類名称と、エラー内容を表すデータとを一覧にしたエラーリスト画像を表示デバイス18に表示させる。 The processor 11 outputs an error list based on the data of the single item update record 6R or the classification update record 7R stored in the error buffer 121 as Act22. Specifically, the processor 11 creates an error list image listing the codes included in the single item update record 6R or the classification update record 7R, the item name or classification name specified from the code, and the data representing the error content. Display on the display device 18 .

図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 item master file 4 is also displayed. After confirming the error list L1, the operator determines whether or not to update the single item master file 4. FIG. Then, when executing, the operator inputs the decision button BT3 via the input device 17. If not, the operator presses the end button BT2 via the input device 17. FIG.

因みに、分類更新データファイル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 item update record 6R or the classification update record 7R is not stored in the error buffer 121, the error list L1 is blank. Alternatively, the error list L1 is omitted.

エラーリストの出力を制御したプロセッサ11は、Act23として確定ボタンBT3が入力されたか否かを確認する。確定ボタンBT3ではなく終了ボタンBT2が入力された場合には、プロセッサ11は、Act23においてNOと判定し、図8及び図9の流れ図に示す手順の処理を終了する。 The processor 11 that has controlled the output of the error list confirms in Act 23 whether or not the decision button BT3 has been input. When the end button BT2 is pressed instead of the confirm button BT3, the processor 11 determines NO in Act 23 and terminates the processing of the procedure shown in the flow charts of FIGS.

確定ボタン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 processor 11 determines YES in Act23 and proceeds to Act24. The processor 11 executes a process for updating the update target data with the update data as Act24. That is, when the single item update data file 6 has been received from the head office server 2 as update data, the processor 11 executes processing for updating the data of the single item master file 4 with the data of the valid single item update record 6R. . If the classification update data file 7 has been received from the headquarters server 2 as the update data, the processor 11 executes processing for updating the data of the classification master file 5 with the data of the valid classification update record 7R.
With this, the processor 11 completes the processing of the procedures shown in the flow charts of FIGS.

ここに、プロセッサ11は、Act5乃至Act16の処理により、更新データチェック機能1Cを実現する。またプロセッサ11は、Act17乃至Act22の処理を実行することにより、エラー報知機能1Eを実現する。またプロセッサ11は、Act23及びAct24の処理を実行することにより、マスタ更新機能1Dを実現する。すなわちプロセッサ11は、実行手段を備えている。 Here, the processor 11 implements the update data check function 1C through the processing of Act5 to Act16. Further, the processor 11 implements the error notification function 1E by executing the processes of Act17 to Act22. Also, the processor 11 realizes the master update function 1D by executing the processes of Act23 and Act24. That is, the processor 11 comprises execution means.

このように動作するストアサーバ1においては、本部サーバ2から単品更新データファイル6が配信されると、図10に示す単品実施パターンテーブル131によって、設定テーブル8の実施フラグ、報知フラグ及び続行フラグの値が変更される。そして先ず、番号「1」の実施フラグの値が“1”なので、項目名「レコード件数」のエラーチェックが実行される。その結果、エラーが検出されると、番号「1」の報知フラグの値が“1”なので、エラー内容を示すポップアップ画像が表示デバイス18に表示される。また、番号「1」の実行フラグの値が“0”なので、エラーチェックが終了する。 In the store server 1 operating in this manner, when the single item update data file 6 is delivered from the headquarters server 2, the single item implementation pattern table 131 shown in FIG. value is changed. First, since the value of the execution flag of number "1" is "1", an error check for the item name "number of records" is executed. As a result, when an error is detected, a pop-up image indicating the content of the error is displayed on the display device 18 because the value of the notification flag numbered "1" is "1". Also, since the value of the execution flag of number "1" is "0", the error check ends.

項目名「レコード件数」のエラーチェックにおいて、エラーが検出されなかった場合、番号「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 error buffer 121 when an error is detected. Since the value of the execution flag is "1", the error check continues even if an error is detected.

項目名「桁数違い」のエラーチェックが終了すると、番号「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 display device 18. FIG. Since the value of the execution flag is "1", the error check continues even if an error is detected.

以後、番号「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 error buffer 121 when an error is detected. Since the value of the execution flag is "1", the error check continues even if an error is detected.

一方、番号「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 item master file 4 is updated with the update data in the single item update data file 6. FIG.

次に、本部サーバ2から分類更新データファイル7が配信されると、図11に示す分類実施パターンテーブル132によって、設定テーブル8の実施フラグ、報知フラグ及び続行フラグの値が変更される。そして先ず、番号「1」の実施フラグの値が“1”なので、項目名「レコード件数」のエラーチェックが実行される。その結果、エラーが検出されると、番号「1」の報知フラグの値が“1”なので、エラー内容を示すポップアップ画像が表示デバイス18に表示される。また、番号「1」の実行フラグの値が“0”なので、エラーチェックが終了する。 Next, when the classification update data file 7 is delivered from the headquarters server 2, the values of the execution flag, the notification flag, and the continuation flag of the setting table 8 are changed by the classification execution pattern table 132 shown in FIG. First, since the value of the execution flag of number "1" is "1", an error check for the item name "number of records" is executed. As a result, when an error is detected, a pop-up image indicating the content of the error is displayed on the display device 18 because the value of the notification flag numbered "1" is "1". Also, since the value of the execution flag of number "1" is "0", the error check ends.

項目名「レコード件数」のエラーチェックにおいて、エラーが検出されなかった場合、番号「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 error buffer 121 when an error is detected. Since the value of the execution flag is "1", the error check continues even if an error is detected.

項目名「桁数違い」のエラーチェックが終了すると、番号「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 display device 18. FIG. Since the value of the execution flag is "1", the error check continues even if an error is detected.

以後、番号「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 error buffer 121 when an error is detected. Since the value of the execution flag is "1", the error check continues even if an error is detected.

一方、番号「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 error buffer 121. FIG. Here, when the operator touches the confirmation button BT3, the data in the classification master file 5 are updated with the update data in the classification update data file 7. FIG.

このように本実施形態によれば、単品マスタファイル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 preferential ranks 1 to p of the single-item record 4R set in the single-item master file 4 are changed to the preferential prices of the single-item update record 6R saved in the single-item update data file 6. The validity of the single item update data file 6 can be efficiently confirmed in the order of the error check items set in the setting table 8 before updating with the data for each of 1 to p. Similarly, the preferential discount rates for each of the preferential ranks 1 to p of the classification record 5R set in the classification master file 5 are obtained by using the data for each of the preferential ranks 1 to p of the classification update record 7R saved in the classification update data file 7. Before updating, the correctness of the classification update data file 7 can be efficiently confirmed in the order of the error check items set in the setting table 8. - 特許庁

そしてエラーチェックの結果、エラーが検出された場合、そのエラーチェックの項目毎に、エラーチェックを中断してエラーが検出されたことを報知するか、エラーチェックを終了するまでは報知せず、終了した段階でエラーデータの一覧を表示して報知するかを、設定テーブル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 item master file 4, is obtained, and when the classification update data file, which is the update data of the classification master file 5, is acquired, 7 can be changed depending on the value of the execution flag in the setting table 8 . Therefore, since unnecessary error checks are not executed, the validity of the single item update data file 6 or the classification update data file 7 can be confirmed more efficiently.

以上、更新対象のデータを更新データで更新する前に、当該更新データの正当性を効率よく確認できる更新データ確認装置の実施形態について説明したが、かかる実施形態はこれに限定されるものではない。 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 headquarters server 2 via the first communication interface 15 . Regarding this point, for example, the single item update data file 6 or the classification update data file 7 created by the head office server 2 is recorded in a computer-readable portable recording medium, and the recording medium connected to the store server 1 is recorded. The single item update data file 6 or the classification update data file 7 may be acquired by reading the data on the recording medium with a reading device.

前記実施形態では、ストアサーバ1が単品マスタファイル4と分類マスタファイル5とを備えた場合を例示した。他の実施形態としては、いずれか1台のPOS端末3が単品マスタファイル4と分類マスタファイル5とを備えてもよい。この場合、当該POS端末3が更新データ確認装置としての機能を有することとなる。 In the above embodiment, the case where the store server 1 has the single-item master file 4 and the classification master file 5 is exemplified. As another embodiment, any one POS terminal 3 may have the single-item master file 4 and the classification master file 5 . In this case, the POS terminal 3 functions as an update data confirmation device.

前記実施形態では、単品マスタファイル4及び分類マスタファイル5において単品コード別又は分類コード別に保存されている優待ランク1~p別の優待価格又は優待割引率を更新対象データとした。更新対象データは、これに限定されるものではない。例えば、製造日からの経過日数により価格又は割引率を変更する販売形態をとる場合、経過日数別の割引価格又は割引率が更新対象データとなる。また、学生割引、シニア割引等のように客層によって価格又は割引率を変更する販売形態をとる場合には、客層別の割引価格又は割引率が更新対象データとなる。 In the above embodiment, the data to be updated is the preferential price or preferential discount rate for each preferential rank 1 to p, which is stored for each item code or each classification code in the single item master file 4 and the classification master file 5 . Data to be updated is not limited to this. For example, when adopting a sales form in which the price or discount rate is changed according to the number of days that have passed since the date of manufacture, the discount price or discount rate for each number of days that have passed will be the data to be updated. Also, in the case of a sales form in which the price or discount rate is changed according to the customer segment, such as a student discount or senior discount, the discount price or discount rate for each customer segment is the data to be updated.

前記実施形態では、ストアサーバ1が、メインメモリ12または補助記憶デバイス13において制御プログラムを予め記憶しているものとして説明した。この点に関しては、例えばエラーチェックを実施する前に制御プログラムをストアサーバ1にインストールしてもよい。この場合、制御プログラムは、リムーバブルな記録媒体に記録して、あるいはネットワークを介した通信により、ストアサーバ1にインストールすることができる。記録媒体は、CD-ROM,メモリカード等のようにプログラムを記憶でき、かつストアサーバ1が読み取り可能であれば、その形態は問わない。 In the above embodiment, the store server 1 preliminarily stores the control program in the main memory 12 or the auxiliary storage device 13 . Regarding this point, for example, the control program may be installed in the store server 1 before executing the error check. In this case, the control program can be installed in the store server 1 by recording it on a removable recording medium or by communicating via a network. The recording medium may be of any form, such as a CD-ROM, memory card, etc., as long as it can store the program and is readable by the store server 1 .

この他、本発明のいくつかの実施形態を説明したが、これらの実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。これら新規な実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。これら実施形態及びその変形は、発明の範囲に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる。 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 LIST 1 store server 1A update data acquisition function 1B setting table management function 1C update data check function 1D master update function 1E error notification function 2 headquarters server 3 POS terminal 4 Single item master file 5 Classification master file 6 Single item update data file 7 Classification update data file 8 Setting table 9 Output device 11 Processor 12 Main memory 13 Auxiliary storage device 14 Clock 15 First communication interface 16 Second communication interface 17 Input device 18 Display device 121 Error buffer 131 Single item implementation pattern table 132 Classification implementation pattern table.

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
JP2019005042A 2019-01-16 2019-01-16 Update data confirmation device and its control program Active JP7163201B2 (en)

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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001160183A (en) 1999-12-03 2001-06-12 Toshiba Tec Corp Product sales data processing system

Patent Citations (1)

* Cited by examiner, † Cited by third party
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