JP4880552B2 - Date identification method, date identification program, and product information processing apparatus - Google Patents

Date identification method, date identification program, and product information processing apparatus Download PDF

Info

Publication number
JP4880552B2
JP4880552B2 JP2007240048A JP2007240048A JP4880552B2 JP 4880552 B2 JP4880552 B2 JP 4880552B2 JP 2007240048 A JP2007240048 A JP 2007240048A JP 2007240048 A JP2007240048 A JP 2007240048A JP 4880552 B2 JP4880552 B2 JP 4880552B2
Authority
JP
Japan
Prior art keywords
date
day
attribute
information
january
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.)
Expired - Fee Related
Application number
JP2007240048A
Other languages
Japanese (ja)
Other versions
JP2009070283A (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 JP2007240048A priority Critical patent/JP4880552B2/en
Publication of JP2009070283A publication Critical patent/JP2009070283A/en
Application granted granted Critical
Publication of JP4880552B2 publication Critical patent/JP4880552B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、商品発注を行う上で過去の商品発注履歴を参考にするためにその参考にする参考日を特定する日付特定方法、参考日を特定する日付特定機能をコンピュータに実行させる日付特定プログラム、および、特定された参考日の商品発注履歴を履歴データベースから取得する商品発注用情報処理装置に関する。   The present invention relates to a date specifying method for specifying a reference date for reference in order to refer to a past product order history in ordering a product, and a date specifying program for causing a computer to execute a date specifying function for specifying a reference date. Further, the present invention relates to a product ordering information processing apparatus that acquires a product order history of a specified reference date from a history database.

店舗における商品発注業務では、廃棄品を少なくし、かつ、在庫が不足している状態を減少させるべく、適切な量だけ商品を発注することが大切である。そこで、商品発注業務においては、発注する商品の量や品目を決定するために、商品を発注する発注日と同様の条件にある過去の商品発注履歴が参考となる。一例として、特許文献1には、商品の発注量を決定する際に用いられる、日、月、週、曜日、時刻または気候の共通性など予測を行いたい時期に類似する過去の対応時期における売上実績に基づいて売上予測を算出する売上予測装置が記載されている(特許文献1の請求項1および15)。   In ordering goods at a store, it is important to place an order for an appropriate amount of goods in order to reduce the amount of waste and reduce the shortage of inventory. Therefore, in the product ordering business, in order to determine the quantity and items of products to be ordered, the past product order history under the same conditions as the order date for ordering products is used as a reference. As an example, Patent Document 1 describes sales in a past corresponding period similar to the period when it is desired to make a prediction, such as commonality of day, month, week, day of week, time, or climate, which is used when determining the order quantity of a product. A sales forecasting device that calculates a sales forecast based on actual results is described (claims 1 and 15 of Patent Document 1).

特開2003−162619公報JP 2003-162619 A

特許文献1に記載されているように、商品発注業務において過去の商品発注履歴を参考にする場合、発注日に対しなるべく同じ条件にある日の商品発注履歴を参考にすることが重要である。そこで、商品発注履歴の参考とする参考日として、発注日と同月同週同曜日であって年数だけを変更した過去の一日を採用することが有効である。特に、発注日の約一年前であって同月同週同曜日である「前年同曜日」は商品発注履歴を参考にする上でよく用いられている。   As described in Patent Document 1, when referring to a past product ordering history in a product ordering operation, it is important to refer to a product ordering history on a date under the same conditions as possible with respect to the ordering date. Therefore, it is effective to adopt a past day that is the same day of the same month as the reference date and changes only the number of years as a reference date for reference of the product order history. In particular, “same day of the previous year”, which is about the same year as the order day and the same day of the same month, is often used to refer to the product order history.

しかし、一年は365日(閏年であれば366日)であり、一週間を構成する7日では割り切れないため、発注日の月日と参考日の月日が一致しないことがある。それゆえに、発注日と同月同週同曜日である発注日以前の一日が参考日として適切でない場合が生じる。   However, the year is 365 days (366 days if it is a leap year), and since it is not divisible by 7 days constituting a week, the date of the order date may not match the date of the reference date. Therefore, a day before the order date, which is the same week of the same month as the order date, may not be appropriate as the reference date.

例えば、発注日2007年1月9日に対する前年同曜日(発注日の前年かつ同月同週同曜日である日)を参考日とする場合を考える。2007年1月9日は、2007年1月であって日曜日が1回経過した第1週目の火曜日である。発注日の前年であり、「1月、日曜日が1回経過した第1週目、火曜日」という条件を満たす日は、2006年1月3日である。すなわち、発注日(2007年1月9日)に対する参考日として2006年1月3日が設定される。しかし、発注日の月日と参考日の月日とは、月日にして6日分の差がある。この場合、発注日(2007年1月9日)に対する参考日(2006年1月3日)の商品発注履歴よりも、発注日(2007年1月9日)と同月同曜日かつ異なる週である2006年1月10日の商品発注履歴のほうが商品発注の参考になるといえる。このように、発注日に対する過去の同月同週同曜日の日が商品発注履歴の参考日とする上で好ましいとはいえない場合がある。   For example, consider a case in which the same day of the previous year as of January 9, 2007 (the day before the order date and the same week of the same month) is used as the reference date. January 9, 2007 is Tuesday of the first week in January 2007, when Sunday has passed once. The day before the order date is January 3, 2006, which satisfies the condition “January, Sunday, 1st week, 1st Tuesday, Tuesday”. That is, January 3, 2006 is set as a reference date for the order date (January 9, 2007). However, there is a difference of 6 days between the date of ordering date and the date of reference date. In this case, it is the same day as the order date (January 9, 2007) and a different week from the product order history on the reference date (January 3, 2006) with respect to the order date (January 9, 2007). It can be said that the product order history of January 10, 2006 is a reference for product orders. As described above, the day of the same week of the same month in the past with respect to the order date may not be preferable for the reference date of the product order history.

本発明の目的は、商品発注を行う際に参考とする過去の商品発注履歴について、発注日に対する好ましい参考日を設定することである。   An object of the present invention is to set a preferred reference date for an order date with respect to a past product order history used as a reference when placing a product order.

本発明の日付特定方法は、(A)情報を入力するための入力手段と情報を出力する出力手段とを備えるコンピュータが、当該入力手段から入力された発注日としてのY年M月D日が何曜日にあたるかを特定する曜日特定情報と、Y年M月D日がY年M月の第何週目にあたるかを特定する情報として、Y 年M 月1日からY 年M 月D 日までの期間において特定曜日が登場する回数を採用した週特定情報と、を生成して記憶部に記憶する第1の過程と、(B)前記コンピュータが、前記記憶部に記憶された週特定情報および曜日特定情報に基づいて、前記発注日以前で当該発注日と同月の当該週特定情報および当該曜日特定情報により定まるY年M月D日を参考日として算出して前記記憶部に記憶する第2の過程と、(C)前記コンピュータが、前記記憶部に予め記憶されている条件に基づいて規定されるM月D日を含む許容期間にM月D日が含まれるか否かを判定し、当該許容期間に含まれると判定した場合、前記記憶部に記憶された参考日を前記出力手段に出力させる第3の過程と、を備える。 Date particular method of the invention, a computer and an output means for outputting the input means and information for entering (A) information, Y 1 year M 1 month D as order date inputted from the input means and day of the week specific information that a day to identify whether corresponds to what day of the week, as the information Y 1 year M 1 January D 1 day to determine whether the hit in the first week of Y 1 year M 1 January, Y 1 year M 1 January and week specifying information that employs a number of times to appear a certain day in a period from 1 day to 1 year M 1 January D 1 day Y, the first step of generated and stored in the storage unit, (B) the computer but on the basis of the week specified information stored in the storage unit and the day of the week a particular information, the order date previously determined by the order date and the week specifying information and the day of the week a particular information month Y 2 years M 2 February D 2 Calculate the day as a reference date and store it in the storage unit A second step, or (C) the computer, M 2 May D 2 days is included in the allowable period including M 1 January D 1 day is defined based on the conditions stored in advance in the storage unit A third step of causing the output means to output the reference date stored in the storage unit when it is determined whether or not it is included in the permissible period.

本発明の日付特定プログラムは、情報を入力するための入力手段と、情報を出力する出力手段と、を備えるコンピュータにインストールされ、当該コンピュータに、(A)前記入力手段から入力された発注日としてのY年M月D日が何曜日にあたるかを特定する曜日特定情報と、Y年M月D日がY年M月の第何週目にあたるかを特定する情報として、Y 年M 月1日からY 年M 月D 日までの期間において特定曜日が登場する回数を採用した週特定情報と、を生成する機能と、(B)前記発注日以前で当該発注日と同月の前記週特定情報および前記曜日特定情報により定まるY年M月D日を参考日として算出する機能と、(C)M月D日がM月D日を含む所定の許容期間に含まれるか否かを判定し、当該許容期間に含まれると判定した場合、前記出力手段に前記参考日を出力させる機能と、を実行させる。 The date specifying program of the present invention is installed in a computer including an input means for inputting information and an output means for outputting information, and (A) the order date input from the input means is input to the computer. and day of the week specific information Y 1 year M 1 January D 1 day to determine whether corresponds to what day of the week, information Y 1 year M 1 January D 1 day to determine whether the hit in the first week of Y 1 year M 1 January as a function of generating a, and a week specific information which adopted a number of times a particular day of the week appears in the period from 1 year M 1 January Y up to one year M 1 January D 1 day Y, (B) the order date a function of calculating a previously determined by the week specifying information and the day of the week a particular information of the order date and month Y 2 years M 2 February D 2 days as a reference date, (C) M 2 may D 2 days M 1 month whether it included in a predetermined allowable period including the day D It determines, when it is determined to be included in the allowable periods, the function to output the reference date to the output means, is executed.

本発明の商品発注用情報処理装置は、情報を入力するための入力部を備え、(A)前記入力部から入力された発注日としてのY年M月D日が何曜日にあたるかを特定する曜日特定情報と、Y年M月D日がY年M月の第何週目にあたるかを特定する情報として、Y 年M 月1日からY 年M 月D 日までの期間において特定曜日が登場する回数を採用した週特定情報と、を生成する処理と、(B)前記発注日以前で当該発注日と同月の前記週特定情報および前記曜日特定情報により定まるY年M月D日を参考日として算出する処理と、(C)M月D日がM月D日を含む所定の許容期間に含まれるか否かを判定し、当該許容期間に含まれると判定した場合、日付と対応付けて商品発注履歴を記憶する履歴データベースから前記参考日に対応する商品発注履歴を取得する処理と、を実行する。 Or merchandise ordering information processing apparatus of the present invention comprises an input unit for inputting information, (A) Y 1 year M 1 January D 1 day as order date inputted from the input section corresponds to what day and day of the week specific information to identify the, as the information Y 1 year M 1 January D 1 day to determine whether the hit in the first week of Y 1 year M 1 January, Y 1 year from January 1, Y 1 year M M January and week specifying information employing a number of times a particular day of the week appears in a period of up to D 1 day, and generating a, (B) the week specifying information and the day of the month and the order date earlier in the order date a process of calculating the determined Y 2 years M 2 February D 2 days by the specific information as a reference date, whether (C) M 2 may D 2 days is within a predetermined allowable period including January D 1 day M If it is determined that the product is included in the allowable period, the product order history is recorded in association with the date. And the process of acquiring the goods order history corresponding to the reference date from the history database that, for the execution.

本発明によれば、クライアント装置201は、入力手段から入力された発注日(Y年M月D日)と同月同週同曜日にあたる日を参考日(Y年M月D日)として算出し、この参考日の月日(M月D日)が発注日の月日(M月D日)を含む所定の許容期間に含まれていれば、その参考日が出力手段から出力されるので、商品発注を行う際に参考とする過去の商品発注履歴について、発注日に対する好ましい参考日を設定することができる。 According to the present invention, client device 201 includes an input unit inputted from the order date (Y 1 year M 1 January D 1 day) and the month same week same day the strike day Reference Date (Y 2 years M 2 February D 2 calculated as day), long as date of this reference date (M 2 February D 2 days) is included in the predetermined allowable period including the date of order date (M 1 January D 1 day), the reference date Is output from the output means, it is possible to set a preferred reference date for the order date for the past product order history used as a reference when placing a product order.

本発明の実施の一形態を図1ないし図7に基づいて説明する。   An embodiment of the present invention will be described with reference to FIGS.

図1は、商品発注システム100全体の模式図である。本実施の形態の商品発注システム100は、履歴サーバとしてのサーバ装置101と商品発注用情報処理装置としてのクライアント装置201とが公衆回線網301を介してデータ通信自在に接続されて構成されている。   FIG. 1 is a schematic diagram of the entire product ordering system 100. The product ordering system 100 according to the present embodiment is configured such that a server device 101 as a history server and a client device 201 as an information processing device for product ordering are connected via a public line network 301 so as to be able to perform data communication. .

サーバ装置101は、いわゆるサーバクライアントシステムを構築するサーバであり、本部51に設置されている。サーバ装置101は、履歴データベース151および日付属性記憶部としての日付属性データベース152に対してアクセス可能である。履歴データベース151は、日付と店舗を特定する店舗コードとに対応付けて、各店舗52が本部51に送信した商品発注業務における発注内容を商品発注履歴として記憶している。商品発注履歴は、商品を特定する商品コードや各商品の発注数などの各種の商品発注情報により構成される。日付属性データベース152は、日付とその日付の属性とを対応付けて記憶している。この日付属性データベース152については、図4に基づいて後述する。   The server device 101 is a server for constructing a so-called server client system, and is installed in the headquarters 51. The server apparatus 101 can access the history database 151 and the date attribute database 152 as a date attribute storage unit. The history database 151 stores the order contents in the product ordering work transmitted from each store 52 to the head office 51 as the product order history in association with the date and the store code for specifying the store. The product order history is composed of various product order information such as a product code for specifying a product and the number of orders for each product. The date attribute database 152 stores a date and an attribute of the date in association with each other. The date attribute database 152 will be described later with reference to FIG.

クライアント装置201は、デスクトップ型のパーソナルコンピュータであり、店舗52に設置されている。クライアント装置201は、情報を表示する表示部としての表示装置207と、情報を入力するための入力部としての入力装置208を備え、店舗52に構成される店舗内ネットワーク55に接続されている。   The client device 201 is a desktop personal computer and is installed in the store 52. The client device 201 includes a display device 207 as a display unit for displaying information and an input device 208 as an input unit for inputting information, and is connected to an in-store network 55 configured in the store 52.

店舗52では、このクライアント装置201と、ドロワ53aとこれに載置される商品販売データ処理を実行するPOS端末53aとで構成される複数のPOSレジ53と、店舗52内の機器を統括管理するストアコントローラ54とが店舗内ネットワーク55によって互いにデータ通信自在に接続し、LAN(Local Area Network)を構成している。クライアント装置201およびストアコントローラ54は通信機能を備え、店舗内ネットワーク55および公衆回線網301を介してサーバ装置101とデータ通信を行うことが可能である。   In the store 52, a plurality of POS registers 53 including the client device 201, a drawer 53a, and a POS terminal 53a that executes product sales data processing mounted thereon, and the devices in the store 52 are managed in an integrated manner. The store controller 54 is connected to each other via a store network 55 so as to be able to communicate with each other, and constitutes a LAN (Local Area Network). The client device 201 and the store controller 54 have a communication function, and can perform data communication with the server device 101 via the in-store network 55 and the public line network 301.

このように構成される商品発注システム100では、各店舗52での商品発注が行われる。各店舗52に設置されるクライアント装置201には商品発注の内容をサーバ装置101に送信して商品発注を行うプログラムがインストールされており、店員は、クライアント装置201を操作することよって商品発注が実現される。   In the product ordering system 100 configured as described above, product ordering is performed at each store 52. The client device 201 installed in each store 52 is installed with a program for sending product order contents to the server device 101 and placing a product order. The store clerk operates the client device 201 to implement the product order. Is done.

本実施の形態の商品発注システム100では、クライアント装置201から入力された商品発注情報はサーバ装置101に送信される。サーバ装置101は、HDD105(図2参照)に格納されているプログラムの記載内容に従って、受信した商品発注情報に基づいて各問屋および各商社に伝達する発注処理を行い、また、この受信した商品発注情報を発注日および発注を行った店舗52の店舗コードに対応付けて商品発注履歴として履歴データベース151に登録する。   In the product ordering system 100 of the present embodiment, product ordering information input from the client device 201 is transmitted to the server device 101. The server apparatus 101 performs an ordering process to be transmitted to each wholesaler and each trading company based on the received product ordering information in accordance with the contents of the program stored in the HDD 105 (see FIG. 2). The information is registered in the history database 151 as a product order history in association with the order date and the store code of the store 52 where the order was placed.

また、本実施の形態の商品発注システム100では、クライアント装置201を操作して商品発注を行う店員に対し、履歴データベース151から取得した発注日に対応する参考日の商品発注履歴を示して商品発注内容を決定する際の支援を行う。   Further, in the product ordering system 100 according to the present embodiment, the sales orderer who operates the client apparatus 201 to place a product order shows the product order history on the reference date corresponding to the order date acquired from the history database 151 and orders the product. Provide assistance in determining content.

すなわち、クライアント装置201は、本部51に設置されるサーバ装置101に対して、商品発注履歴を要求する要求命令を送信する際に、過去のどの日の商品発注履歴を取得するかを特定するために参考にすべき参考日も併せて送信する。参考日は、基本的には、商品発注を行う発注日に対する発注日以前の同月同週同曜日が設定される。しかし、参考日の月日が発注日の月日を含む所定の許容期間に含まれていない場合、クライアント装置201に備わる表示装置207には、参考日を含む前後の期間を示すリスト表示(図6参照)や、この表示された期間の中から一の日を選択するよう促すメッセージ等が表示される。そして、表示装置207に表示された指示に従って店員が入力装置208から参考日とすべき日付を入力すると、クライアント装置201は、入力された日付を参考日として設定する。クライアント装置201は、設定された参考日の商品発注履歴をクライアント装置201に送信するよう要求する要求命令をサーバ装置101に送信し、サーバ装置101から送信される参考日の商品販売履歴の受信を待機する。サーバ装置101から送信される参考日の商品販売履歴を受信すると、クライアント装置201は、受信した商品発注履歴を表示装置207に表示したり、商品発注量を決定する図示しない商品発注システムに適用したりする。   That is, when the client apparatus 201 transmits a request command for requesting a merchandise order history to the server apparatus 101 installed in the headquarters 51, the client apparatus 201 specifies which date the merchandise order history is acquired in the past. The reference date that should be referred to is also sent. The reference date is basically set to the same day of the same month in the same month before the order date relative to the order date for placing the product order. However, if the reference date is not included in the predetermined allowable period including the order date, the display device 207 provided in the client apparatus 201 displays a list indicating the periods before and after the reference date (see FIG. 6) or a message prompting the user to select one day from the displayed period. When the clerk inputs a date to be used as a reference date from the input device 208 in accordance with the instruction displayed on the display device 207, the client device 201 sets the input date as a reference date. The client apparatus 201 transmits a request command for requesting the client apparatus 201 to transmit the commodity order history of the set reference date to the client apparatus 201, and receives the commodity sales history of the reference date transmitted from the server apparatus 101. stand by. When receiving the merchandise sales history of the reference date transmitted from the server apparatus 101, the client apparatus 201 displays the received merchandise order history on the display device 207 or applies it to a merchandise ordering system (not shown) that determines the merchandise order quantity. Or

なお、クライアント装置201は、参考日の月日が許容期間に含まれている場合でも、発注日と参考日との日付属性(図4参照)が異なる場合、表示装置207にリスト表示を行って、入力装置208から入力される日付を参考日として設定する。   Note that the client device 201 displays a list on the display device 207 if the date attribute (see FIG. 4) differs between the order date and the reference date even if the reference date is included in the allowable period. The date input from the input device 208 is set as a reference date.

上記の処理は、クライアント装置201のCPU203が実行する商品発注履歴取得処理によって実現される。商品発注履歴取得処理の流れについては、図5に基づいて後述する。   The above process is realized by a product order history acquisition process executed by the CPU 203 of the client device 201. The flow of the product order history acquisition process will be described later with reference to FIG.

図2は、サーバ装置101のハードウェア構成を示すブロック図である。サーバ装置101は、第1の情報処理部としてのマイクロコンピュータ109を備える。マイクロコンピュータ109は、各種演算処理を実行して各部を制御するCPU102を主体に構成されている。CPU102には、コンピュータプログラムを含む固定データを固定的に記憶するROM103と、可変データを書き換え自在に記憶するRAM104と、各種プログラムをインストールするHDD105と、LCDやCRT等の表示装置106と、キーボードやポインティングデバイス等から構成される入力装置107と、通信インターフェース108とがシステムバスSB1を介して接続されている。   FIG. 2 is a block diagram illustrating a hardware configuration of the server apparatus 101. The server apparatus 101 includes a microcomputer 109 serving as a first information processing unit. The microcomputer 109 is mainly configured by a CPU 102 that executes various arithmetic processes and controls each unit. The CPU 102 includes a ROM 103 for fixedly storing fixed data including a computer program, a RAM 104 for storing variable data in a rewritable manner, an HDD 105 for installing various programs, a display device 106 such as an LCD or CRT, a keyboard, An input device 107 composed of a pointing device or the like and a communication interface 108 are connected via a system bus SB1.

HDD105には、基本OS及び各種のアプリケーションプログラムがインストールされている。このような基本OSや各種のアプリケーションプログラムは、その全部又は一部がRAM104にコピーされて用いられる。   A basic OS and various application programs are installed in the HDD 105. Such a basic OS and various application programs are used by copying all or part of them to the RAM 104.

通信インターフェース108は、サーバ装置101とクライアント装置201との間のデータ通信を実現させる。この場合のデータ通信に用いるプロトコルは、特に限定されるわけではないが、通信自体は暗号化してなされる。   The communication interface 108 realizes data communication between the server device 101 and the client device 201. The protocol used for data communication in this case is not particularly limited, but the communication itself is encrypted.

図3は、クライアント装置201のハードウェア構成を示すブロック図である。クライアント装置201は、第2の情報処理部としてのマイクロコンピュータ222を備える。222は、CPU203を主体に構成されている。CPU203には、ROM204と、RAM205と、HDD206と、LCD等から構成されている表示装置207と、キーボードやポインティングデバイス、表示装置207に積層配置されるタッチパネル等から構成されている入力装置208と、通信インターフェース209とがシステムバスSB2を介して接続されている。CPU203は、各種情報処理を実行する過程で、演算結果や処理結果をRAM205やHDD206に記憶する。また、ROM204には、参考日が発注日に対応しているか否かを判断するための判断基準となる許容期間を規定する条件を記憶している。この条件は、一例として、許容期間を発注日の月日の3日前から4日後までの期間と規定するものである。このように、ROM204、RAM205およびHDD206は、各種データを固定的もしくは可変的に記憶する記憶部としての役割を果たす。   FIG. 3 is a block diagram illustrating a hardware configuration of the client apparatus 201. The client device 201 includes a microcomputer 222 as a second information processing unit. 222 is configured mainly by the CPU 203. The CPU 203 includes a ROM 204, a RAM 205, an HDD 206, a display device 207 configured with an LCD, an input device 208 configured with a keyboard, a pointing device, a touch panel stacked on the display device 207, and the like. A communication interface 209 is connected via the system bus SB2. The CPU 203 stores calculation results and processing results in the RAM 205 and the HDD 206 in the course of executing various information processing. In addition, the ROM 204 stores a condition that defines an allowable period serving as a determination criterion for determining whether or not the reference date corresponds to the order date. As an example, this condition defines the allowable period as a period from 3 days before to 4 days after the order date. As described above, the ROM 204, the RAM 205, and the HDD 206 serve as a storage unit that stores various data fixedly or variably.

HDD206にはコンピュータプログラム、各種表示フレーム及び各種情報等が記憶保存されており、コンピュータプログラム等は、その全部又は一部がクライアント装置201の起動時にRAM205にコピーされて使用される。   A computer program, various display frames, various information, and the like are stored and stored in the HDD 206, and all or a part of the computer program is copied to the RAM 205 when the client device 201 is activated.

通信インターフェース209は、サーバ装置101とクライアント装置201との間のデータ通信を実現させる。   The communication interface 209 realizes data communication between the server device 101 and the client device 201.

図4は、日付属性データベース152のデータ構造を示す模式図である。日付属性データベース152は、年152aおよび1月1日から12月31日までの月日152bに対応させて日付属性152cおよび日付名152dを蓄積するデータベースである。   FIG. 4 is a schematic diagram showing the data structure of the date attribute database 152. The date attribute database 152 is a database that stores the date attribute 152c and the date name 152d in association with the year 152a and the date 152b from January 1st to December 31st.

日付属性152cは、年152aおよび月日152bにより定まる年月日が、法定されている休日、休日であると本部51が独自に定めた準休日、および、休日および準休日以外の通常日のいずれであるかを示す属性であり、コードデータの態様で日付属性データベース152に格納されている。準休日としては、一例として、正月三が日を含む年始年末、ゴールデンウィーク、お盆などに該当する日を採用することができる。この日付属性データベース152に記憶されている日付属性152cは、HDD206に格納されているプログラムによって実現されるCPU203が実行する処理により変更することが可能である。   The date attribute 152c indicates whether the date determined by the year 152a and the date 152b is a legal holiday, a quasi-holiday uniquely determined by the headquarters 51 as a holiday, or a normal day other than a holiday or quasi-holiday Is stored in the date attribute database 152 in the form of code data. As a semi-holiday, for example, a day corresponding to New Year's 3rd, including New Year's Day, Golden Week, or Bon Festival can be adopted. The date attribute 152 c stored in the date attribute database 152 can be changed by processing executed by the CPU 203 realized by a program stored in the HDD 206.

日付名152dは、年152aおよび月日152bにより定まる年月日がどのような日であるかを示す名称であり、テキストデータの態様で日付属性データベース152に格納されている。日付名152dは、例えば、1月1日に対する「元日」、1月2日および1月3日に対する「正月三が日」、などである。   The date name 152d is a name indicating what kind of date is the year, month, and day determined by the year 152a and the month 152b, and is stored in the date attribute database 152 in the form of text data. The date name 152d is, for example, “New Year's Day” for January 1, “New Year 3 is Sunday” for January 2, and January 3.

図5は、クライアント装置201のCPU203が実行する商品発注履歴取得処理の流れを示すフローチャートである。クライアント装置201のCPU203は、HDD206に格納されているプログラムの記述に従って、以下に述べる商品発注履歴取得処理を実行する。   FIG. 5 is a flowchart showing a flow of product order history acquisition processing executed by the CPU 203 of the client device 201. The CPU 203 of the client device 201 executes a product order history acquisition process described below in accordance with the description of the program stored in the HDD 206.

クライアント装置201のCPU203は、入力装置208から発注日および商品発注履歴を参照する過去の年(参照年)が入力されると、商品発注履歴取得処理を開始する。つまり、発注日および参照年の入力は、商品発注履歴取得処理の開始のトリガーとなる。ここで、入力装置208から発注日としてY年M月D日が入力されたとする。また、参照年の指定では、x年前の参考日の商品発注履歴を参照するよう入力指定されたとする。 The CPU 203 of the client device 201 starts the product order history acquisition process when the order date and the past year (reference year) referring to the product order history are input from the input device 208. That is, the input of the order date and the reference year triggers the start of the product order history acquisition process. Here, the Y 1 year M 1 January D 1 day as order date from the input device 208 is input. Further, in the designation of the reference year, it is assumed that the input is designated so as to refer to the merchandise order history on the reference date x years ago.

クライアント装置201のCPU203は、商品発注履歴取得処理を開始すると、まず、入力された発注日が何曜日にあたるかを特定する曜日特定情報wd1と、発注日が第何週目にあたるかを特定する週特定情報wn1とを求める(ステップS101)。すなわち、CPU203は、発注日としてY年M月D日が入力された場合、Y、MおよびDを、ツェラーの公式
h=y+[y/4]−[y/100]+[y/400]+[(13m+8)/5]+d (mod 7)
(但し、y:年、m:月、d:日、[]:床関数。また、m=1もしくはm=2である場合、yの代わりに(y−1)を、mの代わりに(m+12)を用いる。)
に適用して数値hを算出し、曜日特定情報wd1として数値hを採用する。なお、ツェラーの公式を適用した結果算出されるhは0〜6のいずれかの整数値であり、h=0は日曜日に、h=1は月曜日に、h=2は火曜日に、h=3は水曜日に、h=4は木曜日に、h=5は金曜日に、h=6は土曜日に、それぞれ対応している。また、CPU203は、Y年M月1日からY年M月D日までの期間の各日においてツェラーの公式を適用し、この期間に含まれる日曜日(h=0)の登場回数をカウントし、週特定情報wn1としてこのカウント回数を採用する。
When starting the product order history acquisition process, the CPU 203 of the client device 201 first specifies the day-of-week specifying information wd1 for specifying what day the input order date is and the week of the order date. Week specific information wn1 is obtained (step S101). That, CPU 203, when Y 1 year M 1 January D 1 day as order date is input, Y 1, M 1 and D 1, Zeller's congruence h = y + [y / 4 ] - [y / 100] + [Y / 400] + [(13m + 8) / 5] + d (mod 7)
(However, y: year, m: month, d: day, []: floor function. When m = 1 or m = 2, (y-1) is replaced with y instead of ( m + 12) is used.)
And the numerical value h is calculated, and the numerical value h is adopted as the day-of-week specifying information wd1 . In addition, h calculated as a result of applying the Zeller formula is an integer value of 0 to 6, h = 0 is Sunday, h = 1 is Monday, h = 2 is Tuesday, h = 3 Corresponds to Wednesday, h = 4 corresponds to Thursday, h = 5 corresponds to Friday, and h = 6 corresponds to Saturday. In addition, CPU203 is, appeared Sunday (h = 0) to apply the official Zeller in each day of the period from January 1, Y 1 year M to 1 year M January D 1 day Y, is included in this period The number of times is counted, and this number of times of count is adopted as the week specifying information wn1 .

例えば、2007年1月9日(火曜日)における曜日特定情報wd1は2となり、同じく2007年1月9日(火曜日)における週特定情報wn1は1となる。 For example, the day specifying information wd1 on January 9, 2007 (Tuesday) is 2, and the week specifying information wn1 on January 9, 2007 (Tuesday) is also 1.

続く処理として、クライアント装置201のCPU203は、入力装置208から入力された参照年における参考日を算出する(ステップS102)。すなわち、CPU203は、まず、(Y−x)年M月1日の曜日特定情報wd2および週特定情報wn2を算出し、続いて、ステップS101で算出した週特定情報wd1および曜日特定情報wn1を用い、Y年M月1日よりも((wn1+7wd1)−(wn2+7wd2))日後のY年M月D日を参考日として算出する。 As a subsequent process, the CPU 203 of the client device 201 calculates a reference date in the reference year input from the input device 208 (step S102). That, CPU 203, first, (Y 1 -x) calculating the day of the week specified information w d2 and weekly specific information w n2 year M 1 January, followed by weekly specific information w d1 and day calculated in Step S101 using specific information w n1, than the Y 2-year M 1 January - the ((w n1 + 7w d1) (w n2 + 7w d2)) days after the Y 2-year M 2 may D 2 days is calculated as the reference date.

例えば、発注日2007年1月9日(火曜日)に対する参考日として、発注日の一年前の同月同週同曜日(いわゆる前年同曜日)を算出する場合、CPU203は、(2007−1)年1月9日についてツェラーの公式を適用し、曜日特定情報wd2=0および週特定情報wn2=1を算出する。そして、発注日2007年1月9日についての曜日特定情報wd1=2およびwn1=1を用いて、Y年M月D日として、(2007−1)年1月1日の((2+7×1)−(0+7×1))日後である2006年1月3日を参考日として算出する。 For example, when calculating the same day of the same month the same week before the order date (so-called the same day of the previous year) as a reference date for the order date January 9, 2007 (Tuesday), the CPU 203 calculates (2007-1) year. Applying Zeller's formula for January 9, calculate day-of-week specific information w d2 = 0 and week-specific information w n2 = 1. Then, using the day of the week specific information w d1 = 2 and w n1 = 1 for the order date January 9, 2007, as a two-year M 2 May D 2 days Y, January 1 (2007-1) years January (2006), which is ((2 + 7 × 1) − (0 + 7 × 1)) days later, is calculated as a reference date.

続く処理として、クライアント装置201のCPU203は、ステップS102で算出した参考日の月日であるM月D日が、発注日の月日であるM月D日を中心とする所定の許容期間に含まれるか否かを判定する(ステップS103)。この許容期間は、ROM204やRAM205などの記憶部に記憶されている条件に基づいて規定される。例えば、許容期間は、M月D日の3日前からM月D日の4日後までの期間に規定される。 As subsequent processing, CPU 203 of the client apparatus 201, M 2 May D 2 days a month of the calculated reference date in step S102 is a predetermined around the M 1 January D 1 day a month of order date It is determined whether it is included in the allowable period (step S103). This allowable period is defined based on conditions stored in a storage unit such as the ROM 204 or the RAM 205. For example, the allowable period is defined during the period from 3 days before the January D 1 day M until after 4 days of M January D 1 day.

ステップS103における処理においてM月D日がこの許容期間に含まれないと判定した場合(ステップS103のN)、クライアント装置201のCPU203は、処理をステップS107(後述)に移す。 If the processing in step S103 M 2 May D 2 days is determined not included in this allowable time (N in step S103), the CPU203 of the client device 201 shifts the processing to step S107 (described later).

これに対し、ステップS103における処理においてM月D日がこの許容期間に含まれると判定した場合(ステップS103のY)、クライアント装置201のCPU203は、続く処理として、サーバ装置101に発注日(Y年M月D日)および参考日(Y年M月D日)のそれぞれの日付属性152cおよび日付名152dを取得する(ステップS104)。より詳細には、クライアント装置201のCPU203は、サーバ装置101に発注日および参考日を送信し、サーバ装置101から送信される発注日および参考日のそれぞれの日付属性152cおよび日付名152dの受信を待機している。サーバ装置101のCPU102は、クライアント装置201から送信される発注日および参考日を受信すると、日付属性データベース152に問い合わせを行って発注日および参考日に対する日付属性152cおよび日付名152dを取得してクライアント装置201に向けて送信する。クライアント装置201のCPU203は、サーバ装置101から送信される日付属性152cおよび日付名152dを受信すると、続く処理として、発注日の日付属性152cと参考日の日付属性152cとが同じであるか否かを判定する(ステップS105)。ステップS105における処理において、発注日の日付属性152cと参考日の日付属性152cとが同じであると判定した場合(ステップS105のY)、クライアント装置201のCPU203は、処理をステップS110に移す。これに対し、ステップS105における処理において、発注日の日付属性152cと参考日の日付属性152cとが異なると判定した場合(ステップS105のN)、クライアント装置201のCPU203は、処理をステップS107に移す。 In contrast, when it is determined that M 2 May D 2 days is included in the allowable period in the process in the step S103 (Y in step S103), as CPU203 continues processing of the client apparatus 201, order date to the server device 101 (Y 1 year M 1 January D 1 day) and the reference date (Y 2 years M 2 May D 1 day) to get each of the date attribute 152c and date name 152d of the (step S104). More specifically, the CPU 203 of the client apparatus 201 transmits the order date and the reference date to the server apparatus 101, and receives the date attribute 152c and the date name 152d of each of the order date and the reference date transmitted from the server apparatus 101. Waiting. When the CPU 102 of the server apparatus 101 receives the order date and the reference date transmitted from the client apparatus 201, the CPU 102 inquires the date attribute database 152 to acquire the date attribute 152c and the date name 152d for the order date and the reference date, and acquires the client name. Transmit to the device 201. When receiving the date attribute 152c and the date name 152d transmitted from the server apparatus 101, the CPU 203 of the client apparatus 201 determines whether the date attribute 152c of the order date and the date attribute 152c of the reference date are the same as subsequent processing. Is determined (step S105). In the process in step S105, when it is determined that the date attribute 152c of the order date and the date attribute 152c of the reference date are the same (Y in step S105), the CPU 203 of the client device 201 moves the process to step S110. On the other hand, when it is determined in the process in step S105 that the date attribute 152c of the order date is different from the date attribute 152c of the reference date (N in step S105), the CPU 203 of the client device 201 moves the process to step S107. .

ステップS103のNもしくはステップS105のNに続く処理として、クライアント装置201のCPU203は、参考日を含む所定期間の日付のリストを表示装置207に表示する(ステップS107)。つまり、クライアント装置201のCPU203は、ステップS102で算出した参考日の月日(M月D日)が発注日の月日(M月D日)を含む許容期間に含まれない場合、もしくは、参考日の月日が発注日の月日を含む許容期間であっても発注日の日付属性152cと参考日の日付属性152cとが異なる場合、ステップS107に示す処理を行う。 As processing subsequent to N in step S103 or N in step S105, the CPU 203 of the client device 201 displays a list of dates for a predetermined period including the reference date on the display device 207 (step S107). That, CPU 203 of the client apparatus 201, if the date of the reference date calculated at step S102 (M 2 February D 2 days) is not included in the allowable period including the date of order date (M 1 January D 1 day) Alternatively, if the date attribute 152c of the order date is different from the date attribute 152c of the reference date even if the date of the reference date is an allowable period including the date of the order date, the process shown in step S107 is performed.

図6は、クライアント装置201のCPU203が表示装置207に表示する表示画面401の一例を示す模式図である。なお、図6は、2007年1月9日に対する一年前の同月同週同曜日(前年同曜日)の選択を表示装置207と対面する店員に促す画面表示の一例を示している。   FIG. 6 is a schematic diagram illustrating an example of a display screen 401 displayed on the display device 207 by the CPU 203 of the client device 201. FIG. 6 shows an example of a screen display that prompts the store clerk facing the display device 207 to select the same day of the same week the same month of the previous year as of January 9, 2007 (the same day of the previous year).

クライアント装置201のCPU203は、ステップS107で実行する処理において、図6に示すような表示画面401を表示装置207に表示する。表示画面401は、表示画面401の中央に配置され中核をなす日付リスト402と、表示画面401の上方に配置され表示装置207に対面する店員に指示を促すメッセージ部403と、表示画面401の下方に配置され表示画面401における説明の補足を行う脚注部404とから構成される。   The CPU 203 of the client device 201 displays a display screen 401 as shown in FIG. 6 on the display device 207 in the process executed in step S107. The display screen 401 includes a central date list 402 arranged at the center of the display screen 401, a message unit 403 arranged above the display screen 401 and prompting a store clerk facing the display device 207, and below the display screen 401 And a footnote unit 404 that supplements the explanation on the display screen 401.

日付リスト402は、日付フィールド402aおよび日付名フィールド402cからなる二列のフィールドで構成されている表である。この日付リスト402には、発注日に対応する参考日402d(図6では1月3日(火))を含みこれを中心とする約二週間分の日付(図6では12月27日(火)〜1月10日(火))が日付フィールド402aに表示され、各々の日付に対応した日付名が日付名フィールド402cに表示される。日付名フィールド402cに表示される日付名はサーバ装置101がアクセス可能な日付属性データベース152に記憶されている日付名152dである。クライアント装置201のCPU203は、サーバ装置101に対して日付フィールド402aに表示する日付名152dを取得してクライアント装置201に送信するよう要求する要求命令を送信した後に、サーバ装置101から送信される日付名152dを受信することで日付名152dを取得する。   The date list 402 is a table composed of two columns of fields including a date field 402a and a date name field 402c. The date list 402 includes a reference date 402d (January 3 (Tuesday) in FIG. 6) corresponding to the order date, and a date for about two weeks (December 27 (Tuesday in FIG. 6). ) To January 10 (Tue)) are displayed in the date field 402a, and the date name corresponding to each date is displayed in the date name field 402c. The date name displayed in the date name field 402c is the date name 152d stored in the date attribute database 152 accessible by the server apparatus 101. The CPU 203 of the client apparatus 201 transmits a request command for requesting the server apparatus 101 to acquire the date name 152d to be displayed in the date field 402a and transmit it to the client apparatus 201, and then transmits the date transmitted from the server apparatus 101. The date name 152d is acquired by receiving the name 152d.

メッセージ部403は、表示装置207に対面する店員に、日付リスト402に表示されている期間の中から参考日として一の日を選択するよう促す旨を表示するテキスト表示である。図6に示す例では、2007年1月9日に対する前年同曜日を店員に選択させるために、メッセージ部403には「1月9日(火)の前年同曜日候補です。 *以下の候補から選択(タッチ)してください。」と表示されている。   The message unit 403 is a text display that displays a message for urging the store clerk facing the display device 207 to select one day as a reference day from the periods displayed in the date list 402. In the example shown in FIG. 6, in order to make the store clerk select the same day of the previous year as of January 9, 2007, the message section 403 displays “candidate of the same day of the previous year on Tuesday, January 9th. Please select (touch). ”Is displayed.

脚注部404は、表示装置207に対面する店員に対する付加的な情報である。図6に示す例では、それまでの処理で算出した参考日が2006年1月3日であることから、脚注部404には「現在の候補日1月3日は「正月三が日」として登録されています。」と表示されている。   The footnote unit 404 is additional information for a store clerk facing the display device 207. In the example shown in FIG. 6, since the reference date calculated in the process so far is January 3, 2006, the current candidate date January 3 is registered as “New Year 3 is Sunday” in the footnote section 404. It is. Is displayed.

図5に基づく説明に戻る。ステップS107に示す処理に続く処理として、クライアント装置201のCPU203は、入力装置208から参考日とすべき日付の入力を待機し(ステップS108)。入力装置208からの日付の入力は、キーボードによる入力や、ポインティングデバイスおよび表示装置207に積層配置されるタッチパネルからのタッチ指定により行われる。入力装置208から参考日とすべき日付が入力されると(ステップS108のY)、クライアント装置201のCPU203は、商品発注履歴の参考とする参考日として入力装置208から入力された日付を適用する(ステップS109)。   Returning to the description based on FIG. As processing subsequent to the processing shown in step S107, the CPU 203 of the client device 201 waits for input of a date to be used as a reference date from the input device 208 (step S108). The date input from the input device 208 is performed by keyboard input or by touch designation from a touch panel arranged on the pointing device and the display device 207. When a date to be used as a reference date is input from the input device 208 (Y in step S108), the CPU 203 of the client device 201 applies the date input from the input device 208 as a reference date to be used as a reference for the product order history. (Step S109).

続く処理として、クライアント装置201のCPU203は、ステップS102で算出した参考日もしくはステップS109で適用した参考日とともに、サーバ装置101に参考日に対応する商品販売履歴を送信するよう要求する要求命令を送信し、サーバ装置101から送信される参考日の商品発注履歴を受信して参考日の商品発注履歴を取得し、商品発注履歴取得処理を終了する(ステップS110)。サーバ装置101のCPU102は、クライアント装置201から送信される参考日を受信すると、履歴データベース151に問い合わせを行って参考日に対応する商品販売履歴を取得しクライアント装置201に送信する。   As a subsequent process, the CPU 203 of the client device 201 transmits a request command for requesting the server device 101 to transmit a merchandise sales history corresponding to the reference date together with the reference date calculated in step S102 or the reference date applied in step S109. Then, the product order history of the reference date transmitted from the server device 101 is received, the product order history of the reference date is acquired, and the product order history acquisition process is terminated (step S110). When the CPU 102 of the server apparatus 101 receives the reference date transmitted from the client apparatus 201, the CPU 102 inquires the history database 151 to acquire the product sales history corresponding to the reference date and transmits it to the client apparatus 201.

図7は、商品発注システム100における発注日に対する参考日を設定する過程の具体例を示す説明図である。以下、図7に示す具体例に基づいて、商品発注システム100における発注日に対する参考日を特定する過程について説明する。これらの例において、参考日が発注日に対応しているか否かを判断するための判断基準となる許容期間は、発注日の月日の3日前から4日後までの期間と規定されているとする。   FIG. 7 is an explanatory diagram showing a specific example of the process of setting a reference date for the order date in the product ordering system 100. Hereinafter, a process of identifying a reference date for an order date in the product order system 100 will be described based on a specific example shown in FIG. In these examples, the permissible period that is a criterion for determining whether or not the reference date corresponds to the order date is defined as a period from 3 days before to 4 days after the order date To do.

1.発注日2007年2月21日の2年前の参考日を設定する過程(case.1)
クライアント装置201のCPU203は、商品発注履歴取得処理(図5参照)のステップS101の処理を実行して、発注日2007年2月21日が、2007年2月における日曜日を3回過ぎた第3週目の水曜日であることを特定する。続いて、クライアント装置201のCPU203は、ステップS102の処理を実行して、2007年2月の2年前である2005年2月の日曜日を3回過ぎた第3週目の水曜日である2005年2月23日を参考日として算出する。この参考日の月日である2月23日は、発注日の月日である2月21日を中心とする許容期間(2月18日〜2月25日)に含まれ、かつ、発注日および参考日のいずれもその日付属性が通常日であるため、クライアント装置201のCPU203は、商品発注履歴取得処理をステップS103のY、S104、S105のYの順に進めて、ステップS110において参考日(2005年2月23日)における商品発注履歴を履歴データベース151から取得する。
1. Process of setting a reference date two years before the order date February 21, 2007 (case.1)
The CPU 203 of the client apparatus 201 executes the process of step S101 of the merchandise order history acquisition process (see FIG. 5), and the order date February 21, 2007 has passed the Sunday in February 2007 three times. Specify that it is Wednesday of the week. Subsequently, the CPU 203 of the client apparatus 201 executes the process of step S102, and is the third week of Wednesday 2005, which is three times past the Sunday of February 2005, which is two years before February 2007. February 23 is calculated as a reference date. February 23, which is the date of this reference date, is included in the allowable period (February 18 to February 25) centered on February 21, which is the order date, and the order date. Since the date attribute of both the reference date and the reference date is a normal date, the CPU 203 of the client device 201 proceeds with the product order history acquisition processing in the order of Y in step S103, S104, and Y in step S105. The product order history as of February 23, 2005) is acquired from the history database 151.

2.発注日2007年2月9日の2年前の参考日を設定する過程(case.2)
クライアント装置201のCPU203は、商品発注履歴取得処理(図5参照)のステップS101の処理を実行して、発注日2007年2月9日が、2007年2月における日曜日を1回過ぎた第1週目の金曜日であることを特定する。続いて、クライアント装置201のCPU203は、ステップS102の処理を実行して、2007年2月の2年前である2005年2月の日曜日を1回過ぎた第1週目の金曜日である2005年2月11日を参考日として算出する。この参考日の月日である2月11日は、発注日の月日である2月9日を中心とする許容期間(2月6日〜2月13日)に含まるものの、発注日は平日であるのに対し参考日は休日であって日付属性が異なる。そこで、クライアント装置201のCPU203は、商品発注履歴取得処理をステップS103のY、S104、S105のNの順に進めた後、ステップS107に示す処理を実行して参考日(2005年2月11日)を含む前後一週間の2005年2月4日〜2月18日の期間を表示装置207に表示する。そして、クライアント装置201のCPU203は、入力装置208から入力された日付を商品発注履歴の参考日として設定し、ステップS110においてその入力された日付の商品発注履歴を履歴データベース151から取得する。
2. The process of setting the reference date two years before the order date February 9, 2007 (case.2)
The CPU 203 of the client apparatus 201 executes the process of step S101 of the merchandise order history acquisition process (see FIG. 5), and the order date February 9, 2007 is the first in which the Sunday in February 2007 has passed once. Specify that it is Friday of the week. Subsequently, the CPU 203 of the client device 201 executes the process of step S102, and is 2005, which is the first week after passing the Sunday of February 2005, which is two years before February 2007. February 11 is calculated as a reference date. The reference date, February 11, is included in the allowable period (February 6-February 13) centered on February 9, which is the order date, but the order date is Whereas it is a weekday, the reference date is a holiday and has different date attributes. Therefore, the CPU 203 of the client apparatus 201 advances the product order history acquisition process in the order of Y in step S103, N in step S104, and N in step S105, and then executes the process shown in step S107 to perform a reference date (February 11, 2005). The display device 207 displays the period from February 4, 2005 to February 18, 2005, one week before and after. Then, the CPU 203 of the client device 201 sets the date input from the input device 208 as the reference date of the product order history, and acquires the product order history of the input date from the history database 151 in step S110.

3.発注日2007年1月18日の1年前の参考日を設定する過程(case.3)
クライアント装置201のCPU203は、商品発注履歴取得処理(図5参照)のステップS101の処理を実行して、発注日2007年1月18日が、2007年1月における日曜日を2回過ぎた第2週目の木曜日であることを特定する。続いて、クライアント装置201のCPU203は、ステップS102の処理を実行して、2007年1月の1年前である2006年1月の日曜日を2回過ぎた第2週目の木曜日である2006年1月12日を参考日として算出する。この参考日の月日である1月12日は、発注日の月日である1月18日を中心とする許容期間(1月15日〜1月22日)に含まれないため、クライアント装置201のCPU203は、商品発注履歴取得処理をステップS103のNに進めた後、ステップS107に示す処理を実行して参考日(2006年1月12日)を含む前後一週間の2006年1月5日〜1月19日の期間を表示装置207に表示する。そして、クライアント装置201のCPU203は、入力装置208から入力された日付をステップS109において商品発注履歴の参考日として設定し、ステップS110においてその入力された日付の商品発注履歴を履歴データベース151から取得する。
3. Process of setting a reference date one year before January 18, 2007 (case.3)
The CPU 203 of the client device 201 executes the process of step S101 of the merchandise order history acquisition process (see FIG. 5), and the order date January 18, 2007 is the second time that the Sunday in January 2007 has passed twice. Specify that it is Thursday of the week. Subsequently, the CPU 203 of the client device 201 executes the process of step S102, and is 2006, which is the second week Thursday after the Sunday of January 2006, which is one year before January 2007. January 12 is calculated as a reference date. Since the reference date, January 12, is not included in the allowable period (January 15-January 22) centered on January 18, the order date, the client device. The CPU 203 of 201 advances the product order history acquisition process to N in step S103, and then executes the process shown in step S107 to execute the process shown in step S107 for one week before and after the reference date (January 12, 2006). The period from Sunday to January 19 is displayed on the display device 207. Then, the CPU 203 of the client device 201 sets the date input from the input device 208 as a reference date of the product order history in step S109, and acquires the product order history of the input date from the history database 151 in step S110. .

このように、本実施の形態の商品発注システム100によれば、クライアント装置201は、入力装置208から入力された発注日(Y年M月D日)と同月同週同曜日にあたる日を参考日(Y年M月D日)として算出し、この参考日の月日(M月D日)が発注日の月日(M月D日)を含む所定の許容期間に含まれていれば、クライアント装置201はその参考日における商品発注履歴を取得するので、商品発注を行う際に参考とする過去の商品発注履歴について、発注日に対する好ましい参考日を設定することができる。 Thus, according to the product ordering system 100 of the present embodiment, the client device 201, input device 208 is input from the order date (Y 1 year M 1 January D 1 day) and month corresponding to the week same day day calculated as the reference date (Y 2 years M 2 February D 2 days), the reference date month (M 2 February D 2 days) is given, including a date of order date (M 1 January D 1 day) If it is included in the allowable period, the client device 201 acquires the product order history on the reference date, and therefore sets a preferred reference date for the order date with respect to the past product order history used as a reference when placing the product order. be able to.

さらに、本実施の形態の商品発注システム100では、クライアント装置201は、算出した参考日の月日(M月D日)が発注日の月日(M月D日)を含む所定の許容期間に含まれていない場合、もしくは、参考日の月日が発注日の月日を含む所定の許容期間に含まれていても発注日の日付属性152cと参考日の日付属性152cとが異なる場合、参考日を中心とする所定の期間を表示装置207に表示して、店員に対し参考日とすべき日付の入力を促すので、商品発注を行う際に参考とする過去の商品発注履歴について、発注日に対するさらに好ましい参考日を設定することができる。 Furthermore, given the product ordering system 100 of the present embodiment, the client device 201, date of the calculated reference date (M 2 February D 2 days) contains date of order date (M 1 January D 1 day) The date attribute 152c of the order date and the date attribute 152c of the reference date are included even if the date of the reference date is included in a predetermined allowable period including the date of the order date. If they are different, a predetermined period centered on the reference date is displayed on the display device 207 to prompt the store clerk to enter a date that should be used as a reference date. A more preferable reference date for the order date can be set.

商品発注システム全体の模式図である。It is a schematic diagram of the whole product ordering system. サーバ装置のハードウェア構成を示すブロック図である。It is a block diagram which shows the hardware constitutions of a server apparatus. クライアント装置のハードウェア構成を示すブロック図である。It is a block diagram which shows the hardware constitutions of a client apparatus. 日付属性データベースのデータ構造を示す模式図である。It is a schematic diagram which shows the data structure of a date attribute database. クライアント装置のCPUが実行する商品発注履歴取得処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the merchandise order history acquisition process which CPU of a client apparatus performs. クライアント装置のCPUが表示装置に表示する表示画面の一例を示す模式図である。It is a schematic diagram which shows an example of the display screen which CPU of a client apparatus displays on a display apparatus. 商品発注システムにおける発注日に対する参考日を設定する過程の具体例を示す説明図である。It is explanatory drawing which shows the specific example of the process which sets the reference date with respect to the order date in a goods ordering system.

符号の説明Explanation of symbols

151…履歴データベース、152…日付属性データベース(日付属性記憶部)、201…クライアント装置(商品発注用情報処理装置)、204…ROM(記憶部)、205…RAM(記憶部)、206…HDD(記憶部)、207…表示装置(表示部)、208…入力装置(入力手段)、402…日付リスト   151 ... History database, 152 ... Date attribute database (date attribute storage unit), 201 ... Client device (product ordering information processing device), 204 ... ROM (storage unit), 205 ... RAM (storage unit), 206 ... HDD ( Storage unit), 207... Display device (display unit), 208... Input device (input means), 402.

Claims (9)

情報を入力するための入力手段と情報を出力する出力手段とを備えるコンピュータが、当該入力手段から入力された発注日としてのY年M月D日が何曜日にあたるかを特定する曜日特定情報と、Y年M月D日がY年M月の第何週目にあたるかを特定する情報として、Y 年M 月1日からY 年M 月D 日までの期間において特定曜日が登場する回数を採用した週特定情報と、を生成して記憶部に記憶する第1の過程と、
前記コンピュータが、前記記憶部に記憶された週特定情報および曜日特定情報に基づいて、前記発注日以前で当該発注日と同月の当該週特定情報および当該曜日特定情報により定まるY年M月D日を参考日として算出して前記記憶部に記憶する第2の過程と、
前記コンピュータが、前記記憶部に予め記憶されている条件に基づいて規定されるM月D日を含む許容期間にM月D日が含まれるか否かを判定し、当該許容期間に含まれると判定した場合、前記記憶部に記憶された参考日を前記出力手段に出力させる第3の過程と、
を備える日付特定方法。
Days on which the computer and output means for outputting the input means and information for inputting information to identify whether the Y 1 year M 1 January D 1 day as order date inputted from the input means corresponds to what day and specific information, Y 1 year M 1 May D as the information one day to identify whether the hit to the first week of Y 1 year M 1 January, Y 1 year M 1 January Y 1 year from 1 day M 1 January D 1 A first process of generating and storing in a storage unit week specific information adopting the number of times a specific day of the week appears in a period up to a day ;
Y 2 years M February determined by the week specifying information and the day specifying information in the same month as the order date before the order date based on the week specifying information and day specifying information stored in the storage unit A second step of calculating D2 as a reference date and storing it in the storage unit;
The computer determines whether or not include February D 2 days M in advance tolerance period based on the stored condition including M 1 January D 1 day defined in the storage unit, the allowable period A third step of causing the output means to output the reference date stored in the storage unit,
A date identification method comprising:
前記第3の過程において、前記コンピュータが、M月D日が前記許容期間に含まれないと判定した場合、各種情報を表示する表示部に前記参考日を含む所定期間の中から一の日を選択するよう促す旨の表示を行い、前記入力手段から入力された日付を前記出力手段に出力させる工程を含む、請求項1記載の日付特定方法。 In the third step, the computer, when it is determined that the M 2 May D 2 days is not included in the allowable periods, one from among the predetermined period including the reference date on a display unit for displaying various information The date specifying method according to claim 1, further comprising a step of displaying a prompt to select a day and causing the output means to output the date input from the input means. 前記第3の過程において、前記コンピュータが、M月D日が前記許容期間に含まれると判定した場合、日付とその日付の属性とを対応付けて記憶する日付属性記憶部を参照して前記発注日に対応する第1の属性と前記参考日に対応する第2の属性との一致不一致を判定する第4の工程を含み、
前記コンピュータが、前記第4の工程における判定結果として前記第1の属性と前記第2の属性とが一致すると判定した場合、前記記憶部に記憶された参考日を前記出力手段に出力させる工程と、
前記コンピュータが、前記第4の工程における判定結果として前記第1の属性と前記第2の属性とが不一致であると判定した場合、各種情報を表示する表示部に前記参考日を含む所定期間の中から一の日を選択するよう促す旨の表示を行い、前記入力手段から入力された日付を前記出力手段に出力させる工程と、
を備える、請求項1または2記載の日付特定方法。
In the third step, the computer, when it is determined that the M 2 May D 2 days is included in the allowable period, with reference to the date attribute storage unit that stores in association with date and the attributes of that date Including a fourth step of determining whether or not the first attribute corresponding to the order date matches the second attribute corresponding to the reference date,
A step of causing the output means to output a reference date stored in the storage unit when the computer determines that the first attribute and the second attribute match as a determination result in the fourth step; ,
When the computer determines that the first attribute and the second attribute do not match as a determination result in the fourth step, a display unit that displays various information for a predetermined period including the reference date Displaying to prompt the user to select one of the days, and outputting the date input from the input means to the output means;
The date specifying method according to claim 1, further comprising:
情報を入力するための入力手段と、情報を出力する出力手段と、を備えるコンピュータにインストールされ、当該コンピュータに、
前記入力手段から入力された発注日としてのY年M月D日が何曜日にあたるかを特定する曜日特定情報と、Y年M月D日がY年M月の第何週目にあたるかを特定する情報として、Y 年M 月1日からY 年M 月D 日までの期間において特定曜日が登場する回数を採用した週特定情報と、を生成する機能と、
前記発注日以前で当該発注日と同月の前記週特定情報および前記曜日特定情報により定まるY年M月D日を参考日として算出する機能と、
月D日がM月D日を含む所定の許容期間に含まれるか否かを判定し、当該許容期間に含まれると判定した場合、前記出力手段に前記参考日を出力させる機能と、
を実行させる日付特定プログラム。
Installed in a computer comprising an input means for inputting information and an output means for outputting information;
And day specifying information Y 1 year M 1 January D 1 day as order date inputted from said input means to identify whether corresponding to what day, Y 1 year M 1 January D 1 day Y 1 year M 1 month as information for specifying whether corresponds to the number of the week, generates a, and a week specific information which adopted a number of times a particular day of the week appears in the period from 1 year M 1 January Y up to one year M 1 January D 1 day Y Function to
A function of calculating the order date previously determined by the week specifying information and the day of the week a particular information of the order date and month Y 2 years M 2 February D 2 days as a reference date,
M 2 February D 2 days it is determined whether included in a predetermined allowable period including January D 1 day M, if it is determined to be included in the allowable periods, to output the reference date to the output means Function and
Date specific program to run
月D日が前記許容期間に含まれないと判定した場合、各種情報を表示する表示部に前記参考日を含む所定期間の中から一の日を選択するよう促す旨の表示を行い、前記入力手段から入力された日付を前記出力手段に出力させる機能を前記コンピュータに実行させる、請求項4記載の日付特定プログラム。 If M 2 May D 2 days is judged not included in the allowable period, to display the prompting to select one day out of the predetermined period including the reference date on a display unit for displaying various information The date specifying program according to claim 4, wherein the computer executes a function of causing the output means to output a date input from the input means. 月D日が前記許容期間に含まれると判定した場合、日付とその日付の属性とを対応付けて記憶する日付属性記憶部を参照して前記発注日に対応する第1の属性と前記参考日に対応する第2の属性との一致不一致を判定する属性判定機能と、
前記属性判定機能による判定結果として前記第1の属性と前記第2の属性とが一致する場合、前記参考日として前記出力手段に出力させる機能と、
前記属性判定機能による判定結果として前記第1の属性と前記第2の属性とが不一致である場合、各種情報を表示する表示部に前記参考日を含む所定期間の中から一の日を選択するよう促す旨の表示を行い、前記入力手段から入力された日付を前記出力手段に出力させる機能と、
を前記コンピュータに実行させる、請求項4または5記載の日付特定プログラム。
If M 2 May D 2 days is determined to be included in the allowable periods, the first attribute corresponding to the order date by referring to the date attribute storage unit that stores in association with date and the attributes of that date An attribute determination function for determining a match / mismatch with the second attribute corresponding to the reference date;
A function for causing the output means to output as the reference date when the first attribute and the second attribute match as a determination result by the attribute determination function;
When the first attribute and the second attribute do not match as a result of determination by the attribute determination function, one day is selected from a predetermined period including the reference date on the display unit for displaying various information. A function for displaying the prompt to prompt and outputting the date input from the input means to the output means;
The date specifying program according to claim 4, wherein the computer is executed.
情報を入力するための入力部を備え、
前記入力部から入力された発注日としてのY年M月D日が何曜日にあたるかを特定する曜日特定情報と、Y年M月D日がY年M月の第何週目にあたるかを特定する情報として、Y 年M 月1日からY 年M 月D 日までの期間において特定曜日が登場する回数を採用した週特定情報と、を生成する処理と、
前記発注日以前で当該発注日と同月の前記週特定情報および前記曜日特定情報により定まるY年M月D日を参考日として算出する処理と、
月D日がM月D日を含む所定の許容期間に含まれるか否かを判定し、当該許容期間に含まれると判定した場合、日付と対応付けて商品発注履歴を記憶する履歴データベースから前記参考日に対応する商品発注履歴を取得する処理と、
を実行する商品発注用情報処理装置。
It has an input part for inputting information,
And day specifying information by the input unit Y 1 year M 1 January D 1 day as order date input from identifies whether corresponds to what day, Y 1 year M 1 January D 1 day Y 1 year M 1 month as information for specifying whether corresponds to the number of the week, generates a, and a week specific information which adopted a number of times a particular day of the week appears in the period from 1 year M 1 January Y up to one year M 1 January D 1 day Y Processing to
A process of calculating the order date previously determined by the week specifying information and the day of the week a particular information of the order date and month Y 2 years M 2 February D 2 days as a reference date,
If M 2 May D 2 days it is determined whether included in a predetermined allowable period including January D 1 day M, was determined to be included in the allowable period, stores the product order history in association with the date Processing to obtain a product order history corresponding to the reference date from a history database
An information processing apparatus for ordering goods.
各種情報を表示する表示部を備え、
月D日が前記許容期間に含まれないと判定した場合、前記表示部に前記参考日を含む所定期間の中から一の日を選択するよう促す旨の表示を行い、前記入力部から入力された日付に対応する商品発注履歴を取得する処理を実行する、
請求項7記載の商品発注用情報処理装置。
It has a display unit that displays various information,
If M 2 May D 2 days is judged not included in the allowable period, to display the prompting to select one day out of the predetermined period including the reference date on the display unit, the input unit Execute the process to obtain the product order history corresponding to the date entered from
The product ordering information processing apparatus according to claim 7.
各種情報を表示する表示部を備え、
月D日が前記許容期間に含まれると判定した場合、日付とその日付の属性とを対応付けて記憶する日付属性記憶部を参照して前記発注日に対応する第1の属性と前記参考日に対応する第2の属性との一致不一致を判定する属性判定処理と、
前記属性判定処理による判定結果として前記第1の属性と前記第2の属性とが一致する場合、前記参考日に対応する商品発注履歴を取得する処理と、
前記属性判定処理による判定結果として前記第1の属性と前記第2の属性とが不一致である場合、前記表示部に前記参考日を含む所定期間の中から一の日を選択するよう促す旨の表示を行い、前記入力部から入力された日付に対応する商品発注履歴を取得する処理と、
を実行する、請求項7または8記載の商品発注用情報処理装置。
It has a display unit that displays various information,
If M 2 May D 2 days is determined to be included in the allowable periods, the first attribute corresponding to the order date by referring to the date attribute storage unit that stores in association with date and the attributes of that date An attribute determination process for determining a match / mismatch with the second attribute corresponding to the reference date;
When the first attribute and the second attribute match as a determination result by the attribute determination process, a process for obtaining a product order history corresponding to the reference date;
When the first attribute and the second attribute do not match as a result of determination by the attribute determination process, the display unit is prompted to select one day from a predetermined period including the reference date. Processing for displaying and obtaining a product order history corresponding to the date input from the input unit;
The information processing apparatus for ordering merchandise according to claim 7 or 8, wherein:
JP2007240048A 2007-09-14 2007-09-14 Date identification method, date identification program, and product information processing apparatus Expired - Fee Related JP4880552B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007240048A JP4880552B2 (en) 2007-09-14 2007-09-14 Date identification method, date identification program, and product information processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007240048A JP4880552B2 (en) 2007-09-14 2007-09-14 Date identification method, date identification program, and product information processing apparatus

Publications (2)

Publication Number Publication Date
JP2009070283A JP2009070283A (en) 2009-04-02
JP4880552B2 true JP4880552B2 (en) 2012-02-22

Family

ID=40606440

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007240048A Expired - Fee Related JP4880552B2 (en) 2007-09-14 2007-09-14 Date identification method, date identification program, and product information processing apparatus

Country Status (1)

Country Link
JP (1) JP4880552B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5970409B2 (en) * 2013-04-11 2016-08-17 株式会社日立製作所 Purchase price negotiation support method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005242839A (en) * 2004-02-27 2005-09-08 Qualica Inc Store management system, method, and program
JP4596907B2 (en) * 2004-12-24 2010-12-15 中国電力株式会社 Power demand prediction support method, computer program, program storage medium, power demand prediction support device
JP2007141165A (en) * 2005-11-22 2007-06-07 Chugoku Electric Power Co Inc:The Reservation time guidance system, reservation time guidance method and program
JP5046520B2 (en) * 2006-01-10 2012-10-10 Necインフロンティア株式会社 Business day comparison report output method and system

Also Published As

Publication number Publication date
JP2009070283A (en) 2009-04-02

Similar Documents

Publication Publication Date Title
US20160071066A1 (en) Method, apparatus, and computer program product for scheduling appointments with deal offers
JPWO2019053821A1 (en) Order support system, order support program and order support method
JPH09231264A (en) On-line shopping support method and system
US20130054294A1 (en) Sales productivity system
US20150356496A1 (en) System and method for assigning employees to coverage and/or tasks based on schedule and preferences
WO2010068551A1 (en) Market reference price determination system and method
US20020049645A1 (en) Method, system and program for determining selling price, and computer-readable storage medium for storing the program
JP2006277362A (en) Lunch order system, method, and program
JP4880552B2 (en) Date identification method, date identification program, and product information processing apparatus
JP6283260B2 (en) Information providing apparatus, information providing method, and information providing program
US20220148104A1 (en) Computer implemented methods and systems for providing a marketplace for childcare related services between a plurality of first users, a plurality of second users, and a plurality of third users through a user interface and a graphical display
JP6087459B1 (en) Sales analysis apparatus, sales analysis method, and sales analysis program
JP2011150406A (en) Electronic commerce system and electronic commerce method
JP2013164707A (en) Consumable supply purchase management system
JP6928983B1 (en) Proxy work support program, proxy work support method, server, terminal device and system
JP4790085B1 (en) Sales price management device, sales price management system, sales price management method, and sales price management program
JP2019067103A (en) Information management device, information management method and program
US20180033038A1 (en) Information processing device, information processing method, program, and storage medium
JP2003132250A (en) Commodity ordering terminal device
JP6448148B1 (en) Impact estimation device, impact estimation method, and impact estimation program
US20220188926A1 (en) Management device, control method and storage media
JP6507924B2 (en) Work support system and program
JP2006154927A (en) Purchase-related matter support system using the internet
JP2016012309A (en) Demand prediction device and program
JP2021005175A (en) Product delivery service providing system, method, and program

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20091030

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20100201

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110125

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110201

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110404

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20111129

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20111201

R150 Certificate of patent or registration of utility model

Ref document number: 4880552

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20141209

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees