JP7291264B2 - Computational processing device, computational processing method and computational processing program - Google Patents

Computational processing device, computational processing method and computational processing program Download PDF

Info

Publication number
JP7291264B2
JP7291264B2 JP2022046184A JP2022046184A JP7291264B2 JP 7291264 B2 JP7291264 B2 JP 7291264B2 JP 2022046184 A JP2022046184 A JP 2022046184A JP 2022046184 A JP2022046184 A JP 2022046184A JP 7291264 B2 JP7291264 B2 JP 7291264B2
Authority
JP
Japan
Prior art keywords
calculation
item
characteristic
master
value
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
JP2022046184A
Other languages
Japanese (ja)
Other versions
JP2022084807A (en
Inventor
英晴 永井
剛光 上野
Original Assignee
株式会社オービック
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
Priority claimed from JP2017213248A external-priority patent/JP7048263B2/en
Application filed by 株式会社オービック filed Critical 株式会社オービック
Priority to JP2022046184A priority Critical patent/JP7291264B2/en
Publication of JP2022084807A publication Critical patent/JP2022084807A/en
Application granted granted Critical
Publication of JP7291264B2 publication Critical patent/JP7291264B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Description

本発明は、計算処理装置、計算処理方法および計算処理プログラムに関する。 The present invention relates to a computation processing device, a computation processing method, and a computation processing program.

特許文献1には、「鉄鋼選定の画面では、クライアントが鉄鋼選定に必要な項目を含む所定の条件を入力さえすれば、該当する鉄鋼を選定できるようになされている(図3、図4、段落「0050」参照)。重量計算の画面についても、鋼材選定の場合と同様に、サイズ等の条件を入力すれば、その重量が算出されるようになされている(図3、段落「0054」参照)」点が開示されている。 In Patent Document 1, "On the steel selection screen, if the client inputs predetermined conditions including items necessary for steel selection, the corresponding steel can be selected (Figs. 3, 4, See paragraph "0050"). Regarding the weight calculation screen, as in the case of steel material selection, if you enter conditions such as size, the weight will be calculated (see Fig. 3, paragraph "0054"). ing.

特開2002-24562号公報JP-A-2002-24562

しかしながら、鋼材の重量計算は、既定となる公式はあるものの、複雑化している公式も存在し、公式パターンごとに計算プログラムを組む必要があるという問題点があった。これは、鋼材の重量計算以外の例、例えば木材の体積計算についても同様である。また、公式をマスタ化して対応したケースもあるが、マスタ化の際にプログラム作成と同様のレベルの設定が必要であり、設定の難易度が高いという問題点があった。 However, in the weight calculation of steel materials, although there are fixed formulas, there are also complicated formulas, and there is a problem that it is necessary to create a calculation program for each formula pattern. This also applies to examples other than the weight calculation of steel, such as the volume calculation of lumber. In addition, there are cases where formulas are mastered to deal with them, but when mastering, it is necessary to set the same level as the program creation, and there is a problem that the setting is highly difficult.

本発明は、上記に鑑みてなされたものであって、公式による計算式を容易に設定可能とする計算処理装置、計算処理方法および計算処理プログラムを提供することを目的とする。 SUMMARY OF THE INVENTION It is an object of the present invention to provide a calculation processing device, a calculation processing method, and a calculation processing program that enable easy setting of formula calculation formulas.

上述した課題を解決し、目的を達成するために、本発明に係る計算処理装置は、制御部と記憶部とを備えた計算処理装置であって、制御部は、品種をキーとし、演算子と、少なくとも商品変動特性又は品番に固有の特性である品番固定特性とをそれぞれ項目として区分する項目区分と、を関連付けた計算定義マスタを記憶部に設定する計算定義設定手段と、計算定義マスタにおける、演算子と、演算子に関連付けられる項目区分に対応する項目識別子とを、計算定義マスタのレコード内で連結して文字列を作成し、計算定義マスタの各レコードで作成された文字列それぞれを、計算定義マスタのレコード順に従い連結して計算式を作成する計算式作成手段と、品番固有特性に対応する項目識別子と、項目識別子に対応する特性値とを関連付けて記憶部に設定される特性設定マスタから、入力された品番に対応する特性値を取得し、取得した特性値を用いて計算式による計算を行う計算処理手段と、を備えることを特徴とする。 In order to solve the above-described problems and achieve the object, a computer processing device according to the present invention is a computer processing device comprising a control unit and a storage unit, wherein the control unit uses a product type as a key, an operator Calculation definition setting means for setting, in a storage unit, a calculation definition master associated with at least product variable characteristics or product number fixed characteristics, which are characteristics unique to product numbers, as items, respectively; , operator and the item identifier corresponding to the item classification associated with the operator are concatenated in the calculation definition master record to create a character string, and each character string created in each record of the calculation definition master is , calculation formula creation means for creating a calculation formula by concatenating in accordance with the record order of the calculation definition master; and characteristics set in the storage unit by associating item identifiers corresponding to product number unique characteristics and characteristic values corresponding to the item identifiers. and a calculation processing means for acquiring characteristic values corresponding to the input product number from the setting master and performing calculation by a formula using the acquired characteristic values.

また、本発明に係る計算処理装置においては、計算定義設定手段は、少なくとも商品変動特性、品番固定特性、又は、品種に固定の特性である品種固定特性が入力される項目区分と、演算子とを関連付けた計算定義マスタを記憶部に設定することを特徴とする。 In addition, in the calculation processing device according to the present invention, the calculation definition setting means includes at least item categories for inputting product fluctuation characteristics, product number fixed characteristics, or product type fixed characteristics, which are characteristics fixed to product types, and an operator. is set in the storage unit.

また、本発明に係る計算処理装置においては、制御部は、計算式作成手段により作成した計算式を、演算子と項目識別子とを用いて表示させる画面を生成する画面生成手段をさらに備えることを特徴とする。 Further, in the calculation processing device according to the present invention, the control unit further comprises screen generation means for generating a screen for displaying the calculation formula created by the calculation formula creation means using the operator and the item identifier. Characterized by

また、本発明に係る計算処理装置においては、画面生成手段は、特性設定マスタから取得した、入力された品番に対応する特性値を、計算式の、特性値に対応する項目識別子と置き換えた計算式を表示させる画面をさらに生成することを特徴とする。 Further, in the calculation processing device according to the present invention, the screen generation means performs a calculation in which the characteristic value corresponding to the input product number acquired from the characteristic setting master is replaced with the item identifier corresponding to the characteristic value in the calculation formula. It is characterized by further generating a screen for displaying the formula.

また、本発明に係る計算処理装置においては、計算定義設定手段は、少なくとも商品変動特性、品番固定特性、計算式において優先して計算を実行する範囲を指定するための括弧の開始位置および終了位置を示すダミー、又は、演算子のみを指定するレコードであることを示すダミーが入力される項目区分と、演算子とを関連付けた計算定義マスタを記憶部に設定することを特徴とする。 In addition, in the calculation processing device according to the present invention, the calculation definition setting means includes at least the product fluctuation characteristic, the product number fixed characteristic, the start position and the end position of the parenthesis for specifying the range in which the calculation is preferentially executed in the calculation formula or a dummy indicating that it is a record specifying only an operator, and a calculation definition master in which the operator is associated with the item classification is set in the storage unit.

また、本発明に係る計算処理装置においては、計算定義設定手段は、少なくとも商品変動特性、品番固定特性、計算定義マスタにおいて定義される計算式に対応する公式で使用される固定値、計算式に対して端数処理を指定する情報、又は、計算式に対して累乗計算を指定する情報が入力される項目区分と、演算子とを関連付けた計算定義マスタを記憶部に設定することを特徴とする。 Further, in the calculation processing device according to the present invention, the calculation definition setting means includes at least product fluctuation characteristics, product number fixed characteristics, fixed values used in formulas corresponding to calculation formulas defined in the calculation definition master, A calculation definition master that associates an item classification for inputting information specifying rounding or information specifying power calculation for a calculation formula with an operator is set in a storage unit. .

また、本発明に係る計算処理方法は、制御部と記憶部とを備えた計算処理装置で実行される計算処理方法であって、制御部で実行される、品種をキーとし、演算子と、少なくとも商品変動特性又は品番に固定の特性である品番固定特性が入力される項目区分と、を関連付けた計算定義マスタを記憶部に設定する計算定義設定ステップと、計算定義マスタにおける、演算子と、演算子に関連付けられる項目区分に対応する項目識別子とを、計算定義マスタのレコード内で連結して文字列を作成し、計算定義マスタの各レコードで作成された文字列それぞれを、計算定義マスタのレコード順に従い連結して計算式を作成する計算式作成ステップと、品番固定特性に対応する項目識別子と、項目識別子に対応する特性値とを関連付けて記憶部に設定される特性設定マスタから、入力された品番に対応する特性値を取得し、取得した特性値を用いて計算式による計算を行う計算処理ステップと、を含むことを特徴とする。 Further, a calculation processing method according to the present invention is a calculation processing method executed by a calculation processing device having a control unit and a storage unit, wherein the type is used as a key, an operator is executed by the control unit, a calculation definition setting step of setting in a storage unit a calculation definition master associated with at least a product variable characteristic or a product number fixed characteristic that is a characteristic fixed to a product number, and an operator in the calculation definition master; The item identifier corresponding to the item class associated with the operator is concatenated in the record of the calculation definition master to create a character string, and each character string created in each record of the calculation definition master is added to the calculation definition master. A calculation formula creation step for creating a calculation formula by concatenating according to the order of records, an item identifier corresponding to a fixed part number characteristic, and a characteristic setting master set in a storage unit in association with a characteristic value corresponding to the item identifier. and a calculation processing step of obtaining a characteristic value corresponding to the product number obtained and performing calculation by a calculation formula using the obtained characteristic value.

また、本発明に係る計算処理プログラムは、制御部と記憶部とを備えた情報処理装置に実行させるための計算処理プログラムであって、制御部で実行させるための、品種をキーとし、演算子と、少なくとも商品変動特性又は品番に固定の特性である品番固定特性が入力される項目区分と、を関連付けた計算定義マスタを記憶部に設定する計算定義設定ステップと、計算定義マスタにおける、演算子と、演算子に関連付けられる項目区分に対応する項目識別子とを、計算定義マスタのレコード内で連結して文字列を作成し、計算定義マスタの各レコードで作成された文字列それぞれを、計算定義マスタのレコード順に従い連結して計算式を作成する計算式作成ステップと、品番固定特性に対応する項目識別子と、項目識別子に対応する特性値とを関連付けて記憶部に設定される特性設定マスタから、入力された品番に対応する特性値を取得し、取得した特性値を用いて計算式による計算を行う計算処理ステップと、を含むことを特徴とする。 Further, a calculation processing program according to the present invention is a calculation processing program to be executed by an information processing apparatus having a control unit and a storage unit. A calculation definition setting step of setting a calculation definition master associated with at least a product variable characteristic or a product number fixed characteristic that is a characteristic fixed to a product number in a storage unit, and an operator in the calculation definition master and the item identifier corresponding to the item class associated with the operator are concatenated in the record of the calculation definition master to create a character string, and each character string created in each record of the calculation definition master is added to the calculation definition From the characteristic setting master that is set in the storage unit by associating the item identifier corresponding to the item number fixed characteristic and the characteristic value corresponding to the item identifier with a calculation formula creation step that creates a calculation formula by concatenating according to the record order of the master and a calculation processing step of obtaining a characteristic value corresponding to the input product number and performing calculation by a calculation formula using the obtained characteristic value.

本発明によれば、公式による計算式が容易に設定可能となるという効果を奏する。 According to the present invention, it is possible to easily set a formula calculation formula.

図1は、実施形態に係る計算処理装置に適用可能なハードウェア構成の例を示すブロック図である。1 is a block diagram illustrating an example of a hardware configuration applicable to a computing device according to an embodiment; FIG. 図2は、実施形態に係る計算処理装置の機能を説明するための機能ブロック図である。FIG. 2 is a functional block diagram for explaining functions of the computational processing device according to the embodiment. 図3は、実施形態に適用可能な品種別特性定義マスタの例を示す図である。FIG. 3 is a diagram showing an example of a product-specific characteristic definition master applicable to the embodiment. 図4は、実施形態に適用可能なカテゴリ別特性設定マスタの例を示す図である。FIG. 4 is a diagram showing an example of a categorized property setting master applicable to the embodiment. 図5は、実施形態に適用可能な品番マスタの例を示す図である。FIG. 5 is a diagram showing an example of a product number master applicable to the embodiment. 図6は、実施形態に適用可能な品種マスタの例を示す図である。FIG. 6 is a diagram showing an example of a product type master applicable to the embodiment. 図7は、実施形態に適用可能な単位マスタの例を示す図である。FIG. 7 is a diagram illustrating an example of a unit master applicable to the embodiment; 図8は、実施形態に係る計算定義に使用可能な項目を一覧で示す図である。FIG. 8 is a diagram showing a list of items that can be used for calculation definition according to the embodiment. 図9は、実施形態に係る計算定義マスタの例を示す図である。FIG. 9 is a diagram illustrating an example of a calculation definition master according to the embodiment; 図10は、実施形態に係る計算定義マスタの第1の適用例について説明するための図である。FIG. 10 is a diagram for explaining a first application example of the calculation definition master according to the embodiment; 図11は、計算定義マスタの編集を行うための画面である計算定義マスタメンテ画面の例を示す図である。FIG. 11 is a diagram showing an example of a calculation definition master maintenance screen, which is a screen for editing the calculation definition master. 図12は、実施形態に係る式チェック画面の例を示す図である。FIG. 12 is a diagram illustrating an example of a formula check screen according to the embodiment; 図13は、実施形態に適用可能な拡張された式チェック画面の例を示す図である。FIG. 13 is a diagram illustrating an example of an extended formula check screen applicable to the embodiment; 図14は、実施形態に適用可能な、計算式マスタによる計算を行うための情報を入力する入力画面の例を示す図である。FIG. 14 is a diagram illustrating an example of an input screen for inputting information for performing calculation using the calculation formula master, which is applicable to the embodiment. 図15は、実施形態に係る計算処理を示す一例のフローチャートである。FIG. 15 is an exemplary flowchart illustrating calculation processing according to the embodiment. 図16は、実施形態に係る計算定義マスタの第2の適用例について説明するための図である。FIG. 16 is a diagram for explaining a second application example of the calculation definition master according to the embodiment. 図17は、実施形態に係る計算定義マスタの第2の適用例について説明するための図である。FIG. 17 is a diagram for explaining a second application example of the calculation definition master according to the embodiment; 図18は、実施形態に係る計算定義マスタの第3の適用例について説明するための図である。FIG. 18 is a diagram for explaining a third application example of the calculation definition master according to the embodiment; 図19は、実施形態に係る計算定義マスタの第3の適用例について説明するための図である。FIG. 19 is a diagram for explaining a third application example of the calculation definition master according to the embodiment; 図20は、実施形態に係る計算定義マスタの第3の適用例について説明するための図である。FIG. 20 is a diagram for explaining a third application example of the calculation definition master according to the embodiment. 図21は、実施形態に係る計算定義マスタの第3の適用例について説明するための図である。FIG. 21 is a diagram for explaining a third application example of the calculation definition master according to the embodiment; 図22は、実施形態に係る計算定義マスタの第3の適用例について説明するための図である。FIG. 22 is a diagram for explaining a third application example of the calculation definition master according to the embodiment; 図23は、実施形態に係る計算定義マスタの第3の適用例について説明するための図である。FIG. 23 is a diagram for explaining a third application example of the calculation definition master according to the embodiment;

以下に、本発明に係る計算処理装置、計算処理方法および計算処理プログラムの実施形態を、図面に基づいて詳細に説明する。なお、本実施形態によりこの発明が限定されるものではない。 BEST MODE FOR CARRYING OUT THE INVENTION Below, embodiments of a calculation processing device, a calculation processing method, and a calculation processing program according to the present invention will be described in detail based on the drawings. In addition, this invention is not limited by this embodiment.

[1.概要]
鋼材の重量計算や、木材の体積計算などは、既定となる公式はあるものの、複雑化している公式も存在し、公式パターンごとに計算プログラムを組む必要があった。また、公式をマスタ化して対応したケースもあるが、マスタ化の際にプログラム作成と同様のレベルの設定が必要であり、設定の難易度が高い。さらに、これらの場合において、作成された計算プログラムやマスタの設定と公式との比較は、プログラムや設定を解読しながらの確認となり、一定のスキルを必要とする。さらにまた、丸太などのような自然物は、長さによる先細りを考慮して、長さにより公式を変動させる必要がある場合があり、公式に対する単純な設定のパターン化のみでは、対応が難しかった。
[1. overview]
Although there are pre-determined formulas for calculating the weight of steel materials and calculating the volume of wood, there are also complex formulas, and it was necessary to create a calculation program for each formula pattern. In addition, there are cases where formulas are mastered to cope with them, but when mastering, it is necessary to set the same level as program creation, and the difficulty of setting is high. Furthermore, in these cases, comparing the created calculation program or master settings with the formulas requires a certain level of skill, as confirmation is made while deciphering the programs and settings. Furthermore, natural objects such as logs may need to vary the formula depending on the length in consideration of the taper due to length, and it was difficult to deal with it only with a simple pattern of setting for the formula.

そこで、本実施形態では、品種という商品グループ毎に、公式に近い形で計算式のマスタを設定可能とした。このとき、長さなど商品により変動する商品変動特性値を、計算式を適用する際の閾値として用いて、同一の商品であっても長さなど商品変動特性値の違いにより公式が変動する場合に対応可能とした。それと共に、重量といった複数の計算が必要となる場合を考慮し、計算結果として意図する単位の種別毎に公式を持てるようにした。 Therefore, in the present embodiment, it is possible to set a master calculation formula in a form close to a formula for each product group called product type. At this time, if the product variation characteristic value that varies depending on the product such as length is used as a threshold value when applying the formula, the formula will change due to the difference in the product variation characteristic value such as length even for the same product It is possible to correspond to At the same time, considering the case where multiple calculations such as weight are required, we made it possible to have a formula for each type of unit intended as a calculation result.

また、マスタに設定した各計算式では、品種毎に固有の特性である品種固有特性(比重など)、品番毎に固有の特性である品番固有特性(固定寸法など)、変動寸法や取扱数量といった入力値、および、固定値である固定係数を、計算数として使用可能とした。さらに、計算式中の任意のタイミングで実行可能な端数処理や累乗計算と、括弧演算子による優先計算とを使用可能とした。さらにまた、設定内容から導かれる計算式、および、計算式に各値を代入した場合の式を画面に表示させ、計算式を容易に確認可能とした。 In addition, in each calculation formula set in the master, characteristics unique to each product type (specific gravity, etc.), characteristics unique to each product number (fixed dimensions, etc.), variable dimensions, handling quantity, etc. Input values and fixed coefficients, which are fixed values, can be used as calculation numbers. Furthermore, rounding and exponentiation calculations that can be executed at arbitrary timing in calculation formulas and priority calculations using parentheses operators are made available. Furthermore, the calculation formula derived from the setting contents and the formula when each value is substituted into the calculation formula are displayed on the screen so that the calculation formula can be easily confirmed.

[2.構成]
本実施形態に係る計算処理装置の構成について説明する。図1は、実施形態に係る計算処理装置に適用可能なハードウェア構成の例を示す。図1において、計算処理装置10は、CPU(Central Processing Unit)1000と、ROM(Read Only Memory)1001と、RAM(Random Access Memory)1002と、グラフィックI/F(インタフェース)1003と、ストレージ1004と、入出力I/F1005と、通信I/F1006とを含み、これら各部がバス1010により互いに通信可能に接続される。このように、実施形態に係る計算処理装置10は、一般的なコンピュータを用いて構成できる。
[2. composition]
The configuration of the computational processing device according to this embodiment will be described. FIG. 1 shows an example of a hardware configuration applicable to a computing device according to an embodiment. In FIG. 1, the calculation processing device 10 includes a CPU (Central Processing Unit) 1000, a ROM (Read Only Memory) 1001, a RAM (Random Access Memory) 1002, a graphic I/F (interface) 1003, and a storage 1004. , an input/output I/F 1005 , and a communication I/F 1006 , which are connected to each other by a bus 1010 so as to be able to communicate with each other. In this way, the computing device 10 according to the embodiment can be configured using a general computer.

ストレージ1004は、ハードディスクドライブやフラッシュメモリといった不揮発性の記憶媒体であって、CPU1000が動作するためのプログラムや、各種のデータが記憶される。CPU1000は、ストレージ1004やROM1001に記憶されるプログラムに従い、RAM1002をワークメモリとして用いて、この計算処理装置10の全体の動作を制御する。 The storage 1004 is a nonvolatile storage medium such as a hard disk drive or flash memory, and stores programs for the operation of the CPU 1000 and various data. The CPU 1000 uses the RAM 1002 as a work memory according to programs stored in the storage 1004 and the ROM 1001 to control the overall operation of the computing device 10 .

グラフィックI/F1003は、CPU1000によりプログラムに従い生成された表示制御信号を、ディスプレイ1020が対応可能な画像信号に変換して出力する。これにより、プログラムに従った画面をディスプレイ1020上に表示させることができる。 A graphic I/F 1003 converts a display control signal generated by the CPU 1000 according to a program into an image signal compatible with the display 1020 and outputs the image signal. Thereby, a screen according to the program can be displayed on display 1020 .

入出力I/F1005は、外部機器との間でデータの入出力を行うインタフェースである。入出力I/F1005としては、例えばUSB(Universal Serial Bus)を適用できる。図1の例では、入出力I/F1005に対して、ユーザ操作に応じた制御信号を出力する入力デバイス1021が接続されている。入力デバイス1021からユーザ操作に応じて出力された制御信号は、入出力I/F1005を介してCPU1000に送られる。 The input/output I/F 1005 is an interface for inputting/outputting data with an external device. As the input/output I/F 1005, for example, a USB (Universal Serial Bus) can be applied. In the example of FIG. 1, the input/output I/F 1005 is connected to an input device 1021 that outputs control signals according to user operations. A control signal output from the input device 1021 according to a user's operation is sent to the CPU 1000 via the input/output I/F 1005 .

入力デバイス1021は、キーボードやポインティングデバイスを適用できる。これに限らず、入力デバイス1021として、表示デバイスと一体的に構成されたタッチパネルを適用させてもよいし、音声入力を行うマイクロホンを適用させてもよい。入力デバイス1021としてマイクロホンを適用させる場合、入出力I/F1005は、アナログ音声信号をディジタル音声信号に変換するA/D変換器を含む。また、入出力I/F1005に対して、出力デバイスとしてプリンタやスピーカを接続することができる。出力デバイスとしてスピーカを適用させる場合、入出力I/F1005は、ディジタル音声信号をアナログ音声信号に変換するD/A変換器を含む。 A keyboard or pointing device can be applied to the input device 1021 . Not limited to this, as the input device 1021, a touch panel configured integrally with a display device may be applied, or a microphone for voice input may be applied. When a microphone is applied as the input device 1021, the input/output I/F 1005 includes an A/D converter that converts analog audio signals into digital audio signals. A printer or speaker can be connected as an output device to the input/output I/F 1005 . When a speaker is applied as an output device, input/output I/F 1005 includes a D/A converter that converts digital audio signals into analog audio signals.

通信I/F1006は、CPU1000の指示に従い、LAN(Local Area Network)やインターネットといったネットワークに対する通信を行う。 A communication I/F 1006 performs communication with a network such as a LAN (Local Area Network) or the Internet according to instructions from the CPU 1000 .

図2は、実施形態に係る計算処理装置10の機能を説明するための機能ブロック図である。図2において、計算処理装置10は、制御部110と、記憶部120と、入出力I/F(インタフェース)部130と、通信I/F140部とを含む。これら制御部110、記憶部120、入出力I/F部130および通信I/F部140のうち、制御部110、入出力I/F部130および通信I/F部140は、CPU1000上で動作する計算処理プログラムが実行することで構成される。記憶部120は、例えばストレージ1004の所定の記憶領域が用いられる。 FIG. 2 is a functional block diagram for explaining functions of the computing device 10 according to the embodiment. 2, the computing device 10 includes a control unit 110, a storage unit 120, an input/output I/F (interface) unit 130, and a communication I/F 140 unit. Of these control unit 110 , storage unit 120 , input/output I/F unit 130 and communication I/F unit 140 , control unit 110 , input/output I/F unit 130 and communication I/F unit 140 operate on CPU 1000 . It is configured by executing a calculation processing program that A predetermined storage area of the storage 1004 is used for the storage unit 120, for example.

なお、制御部110、記憶部120、入出力I/F部130および通信I/F部140の一部または全部を、互いに協働して動作するハードウェア回路により構成することも可能である。 Part or all of control unit 110, storage unit 120, input/output I/F unit 130, and communication I/F unit 140 can be configured by hardware circuits that operate in cooperation with each other.

記憶部120は、品種別特性定義マスタ121と、カテゴリ別特性設定マスタ122と、品番マスタ123と、品種マスタ124と、単位マスタ125と、計算定義マスタ126と、の各マスタが記憶される。以下では、これら各マスタは、複数の項目を含むレコードによるテーブルとして構成されるものとする。各マスタの詳細については、後述する。 The storage unit 120 stores a product type characteristic definition master 121, a category property setting master 122, a product number master 123, a product type master 124, a unit master 125, and a calculation definition master 126. Below, each of these masters is configured as a table with records containing multiple items. Details of each master will be described later.

制御部110は、マスタ管理部111と、計算定義設定部112と、計算式作成部113と、計算処理部114と、画面生成部115と、を含む。 Control unit 110 includes master management unit 111 , calculation definition setting unit 112 , calculation formula creation unit 113 , calculation processing unit 114 , and screen generation unit 115 .

マスタ管理部111は、記憶部120に記憶される各マスタの管理を行う。例えば、マスタ管理部111は、記憶部120に記憶される各マスタから、要求された条件に適合するデータを抽出する。また例えば、マスタ管理部111は、要求に従い、各マスタの情報の更新や、新規のレコードの追加などを行う。 The master management unit 111 manages each master stored in the storage unit 120 . For example, the master management unit 111 extracts data that meets the requested conditions from each master stored in the storage unit 120 . Further, for example, the master management unit 111 updates information of each master, adds a new record, etc., according to a request.

計算式定義設定部112は、計算定義マスタ126に対して計算式の要素を設定し、計算式を定義する。すなわち、計算式定義設定部112は、品種と、商品の構成に用いられる特性であって商品において変動する特性である商品変動特性に対する閾値である商品変動特性閾値と、単位と、をキーとし、演算子と、少なくとも商品変動特性と品番に固有の特性である品番固定特性とをそれぞれ項目として区分する項目区分と、を関連付けた計算定義マスタ126を記憶部120に設定する。 The calculation formula definition setting unit 112 sets the elements of the calculation formula in the calculation definition master 126 and defines the calculation formula. That is, the calculation formula definition setting unit 112 uses, as keys, a product type, a product variation characteristic threshold value that is a threshold value for product variation characteristics that are characteristics used in product configuration and that vary in the product, and a unit, A calculation definition master 126 is set in the storage unit 120, in which operators are associated with item classifications that classify at least product variable characteristics and product number fixed characteristics, which are characteristics unique to product numbers, as items.

計算式作成部113は、計算式定義設定部112に設定された計算式の要素に基づき計算式を作成する。すなわち、計算定義マスタ126における、演算子と、演算子に関連付けられる項目区分に対応する項目識別子(厚み、幅、外形、など)とを、計算定義マスタ126のレコード内で連結して文字列を作成し、計算定義マスタ126の各レコードで作成された文字列それぞれを、計算定義マスタ126のレコード順に従い連結して計算式を作成する。 The calculation formula creation unit 113 creates a calculation formula based on the elements of the calculation formula set in the calculation formula definition setting unit 112 . That is, operators in the calculation definition master 126 and item identifiers (thickness, width, external shape, etc.) corresponding to the item categories associated with the operators are concatenated in the records of the calculation definition master 126 to form character strings. Each character string created in each record of the calculation definition master 126 is concatenated according to the record order of the calculation definition master 126 to create a calculation formula.

計算処理部114は、計算式作成部113で作成された計算式に入力値を適用し、当該計算式による数値計算を行う。すなわち、計算処理部114は、品番固有特性に対応する項目識別子と、項目識別子に対応する特性値とを関連付けて記憶部120に設定されるカテゴリ別特性設定マスタ122から、入力された品番に対応する特性値を取得し、取得した特性値を用いて計算式による計算を行う。 The calculation processing unit 114 applies an input value to the calculation formula created by the calculation formula creation unit 113, and performs numerical calculation using the calculation formula. That is, the calculation processing unit 114 associates the item identifier corresponding to the product number unique characteristic and the characteristic value corresponding to the item identifier from the category-specific characteristic setting master 122 set in the storage unit 120, corresponding to the input product number. Then, the obtained characteristic value is used to perform calculation using the formula.

画面生成部115は、ディスプレイ1020に画面を表示させるための画面情報を生成する。例えば、画面生成部115は、計算式定義設定部112による計算式の要素の設定を行うための画面や、計算式作成部113が作成した計算式を確認するための画面をディスプレイ1020に表示させるための画面情報を生成する。また、画面生成部115は、計算式作成部113が作成した計算式に従った計算を実行させるための入力値と、当該入力値に応じた計算結果とを表示させる画面をディスプレイ1020に表示させるための画面情報を生成する。 Screen generator 115 generates screen information for displaying a screen on display 1020 . For example, the screen generation unit 115 causes the display 1020 to display a screen for setting elements of the calculation formula by the calculation formula definition setting unit 112 and a screen for checking the calculation formula created by the calculation formula creation unit 113. Generate screen information for In addition, the screen generation unit 115 causes the display 1020 to display an input value for executing calculation according to the calculation formula created by the calculation formula creation unit 113 and a calculation result corresponding to the input value. Generate screen information for

計算処理装置10において、入出力I/F130部は、入力装置150および出力装置151が接続される。入力装置150は、例えば図1における入力デバイス1021に対応し、入出力I/F部130は、入出力I/F1005を制御して、入力デバイス1021から出力された制御信号に応じた入力データを生成し、制御部110に渡す。出力装置151は、例えば図1におけるディスプレイ1020であって、入出力I/F部130は、グラフィックI/F1003を制御して、CPU1000により生成された表示制御信号を画像信号に変換してディスプレイ1020に供給する。 In the calculation processing device 10, the input/output I/F 130 is connected to the input device 150 and the output device 151. FIG. The input device 150 corresponds to, for example, the input device 1021 in FIG. generated and passed to the control unit 110 . The output device 151 is, for example, the display 1020 in FIG. supply to

通信I/F部140は、図1における通信I/F1006を制御して、ネットワーク30に対する通信を行う。 Communication I/F section 140 controls communication I/F 1006 in FIG. 1 to perform communication with network 30 .

計算処理装置10は、通信I/F部140の制御により、ネットワーク30を介してサーバ20との間で通信を行うことができる。なお、記憶部120に記憶される各マスタは、サーバ20に記憶させてもよい。 The computing device 10 can communicate with the server 20 via the network 30 under the control of the communication I/F unit 140 . Note that each master stored in the storage unit 120 may be stored in the server 20 .

計算処理装置10における実施形態に係る各機能を実現するための計算処理プログラムは、インストール可能な形式または実行可能な形式のファイルでコンピュータにて読み取り可能な記録媒体に記録して提供される。このコンピュータで読み取り可能な記録媒体としては、メモリーカード、USB(Universal Serial Bus)メモリ、SD(Secure Digital)カード、フレキシブルディスク、光磁気ディスク、ROM、EPROM(Erasable Programmable Read Only Memory)、EEPROM(登録商標)(Electrically Erasable and Programmable Read Only Memory)、CD(Compact Disk)、MO(Magneto-Optical disk)、DVD(Digital Versatile Disk)、および、Blu-ray(登録商標) Discなどの任意の可搬用の物理媒体を含むものとする。したがって、本明細書で以下に説明するような処理または処理方法を実行するためのプログラムを格納した記録媒体もまた本発明を構成することとなる。 A calculation processing program for realizing each function according to the embodiment in the calculation processing device 10 is provided by being recorded in a computer-readable recording medium as a file in an installable format or an executable format. Examples of computer-readable recording media include memory cards, USB (Universal Serial Bus) memories, SD (Secure Digital) cards, flexible disks, magneto-optical disks, ROMs, EPROMs (Erasable Programmable Read Only Memory), EEPROMs (registered Trademark) (Electrically Erasable and Programmable Read Only Memory), CD (Compact Disk), MO (Magneto-Optical disk), DVD (Digital Versatile Disk), and Blu-ray (registered trademark) Disc for any portable use shall include physical media. Therefore, a recording medium storing a program for executing the processing or processing method described below also constitutes the present invention.

これに限らず、当該計算処理プログラムを、インターネットなどのネットワークに接続されたコンピュータ上に格納し、当該ネットワークを介してダウンロードさせることにより提供してもよい。また、当該計算処理プログラムをインターネットなどのネットワークを経由して提供または配布するように構成してもよい。 Alternatively, the calculation processing program may be stored on a computer connected to a network such as the Internet, and may be provided by being downloaded via the network. Also, the calculation processing program may be configured to be provided or distributed via a network such as the Internet.

当該計算処理プログラムは、制御部110(マスタ管理部111、計算定義設定部112、計算式作成部113、計算処理部114および画面生成部115)、入出力I/F部130および通信I/F部140を含むモジュール構成となっている。実際のハードウェアとしては、CPU1000がROM1001などの記憶媒体から当該計算処理プログラムを読み出して実行することにより、上述した各部がRAM1002などの主記憶装置上にロードされ、制御部110(マスタ管理部111、計算定義設定部112、計算式作成部113、計算処理部114および画面生成部115)、入出力I/F部130および通信I/F部140が主記憶装置上に生成されるようになっている。 The calculation processing program includes control unit 110 (master management unit 111, calculation definition setting unit 112, calculation formula creation unit 113, calculation processing unit 114, and screen generation unit 115), input/output I/F unit 130, and communication I/F It has a module configuration including the unit 140 . As actual hardware, the CPU 1000 reads out the calculation processing program from a storage medium such as the ROM 1001 and executes it, so that each unit described above is loaded onto the main storage device such as the RAM 1002, and the control unit 110 (master management unit 111 , calculation definition setting unit 112, calculation formula creation unit 113, calculation processing unit 114, and screen generation unit 115), input/output I/F unit 130, and communication I/F unit 140 are generated on the main storage device. ing.

また、「プログラム」とは、任意の言語または記述方法にて記述されたデータ処理方法であり、ソースコードまたはバイナリコード等の形式を問わない。なお、「プログラム」は必ずしも単一的に構成されるものに限られず、複数のモジュールやライブラリとして分散構成されるものや、OS(Operating System)に代表される別個のプログラムと協働してその機能を達成するものをも含む。 A "program" is a data processing method written in any language or writing method, regardless of the format such as source code or binary code. Note that the "program" is not necessarily limited to a single component, but may be distributed as multiple modules or libraries, or cooperating with a separate program represented by an OS (Operating System). It also includes things that accomplish a function.

[3.実施形態に係る各マスタの詳細]
次に、図3~図7を用いて、上述した各マスタ(品種別特性定義マスタ121、カテゴリ別特性設定マスタ122、品番マスタ123、品種マスタ124、単位マスタ125および計算定義マスタ126)について、より詳細に説明する。
[3. Details of each master according to the embodiment]
Next, with reference to FIGS. 3 to 7, for each of the above-described masters (product-specific characteristic definition master 121, category-specific characteristic setting master 122, product number master 123, product type master 124, unit master 125, and calculation definition master 126), A more detailed description will be given.

図3は、実施形態に適用可能な品種別特性定義マスタ121の例を示す。品種別特性定義マスタ121は、レコードに「品種」、「カテゴリ区分」、「行NO」および「特性」の各項目を含み、項目「品種」で特定されるグループがどのような共通要素により構成および分類されるかを定義するためのマスタである。 FIG. 3 shows an example of the product-specific characteristic definition master 121 applicable to the embodiment. The record of the product-specific characteristic definition master 121 includes the items of "product type", "category division", "line number", and "characteristic", and what common elements constitute the group identified by the item "product type". and is the master for defining what is classified.

例えば、品種「板鋼」のグループに属する品番は、「比重」、「厚み」、「幅」および「長さ」という特性を持つ。これらの特性のうち、「比重」は、板鋼の全体で共通する数値となり、品種単位で固定された特性(品種固定特性)である。一方、「厚み」および「幅」といった固定寸法は、品番毎に固定の特性(品番固定特性)となる。また、「長さ」は、板鋼が切断されることにより個体毎に異なる値となる特性(商品変動特性)である。 For example, a product number belonging to the group of product type "plate steel" has characteristics of "specific gravity", "thickness", "width" and "length". Among these characteristics, "specific gravity" is a numerical value that is common to all plate steels, and is a characteristic that is fixed for each product type (fixed product type characteristic). On the other hand, fixed dimensions such as "thickness" and "width" are fixed characteristics (product number fixed characteristics) for each product number. "Length" is a characteristic (merchandise variation characteristic) that has a different value for each steel plate as it is cut.

図3において、項目「品種」として、「板鋼」、「パイプ」および「丸太」の3つの品種が設定されている。項目「カテゴリ区分」は、品種の特性を示すためのカテゴリ区分を設定する。図3の例では、項目「カテゴリ区分」は、「品種固定特性」、「品番固定特性」および「商品変動特性」の3つの特性が特性のカテゴリとして区分され設定されている。また、各品種は、少なくとも「品番固定特性」および「商品変動特性」の2つの特性が設定される。 In FIG. 3, three types of "plate steel", "pipe" and "log" are set as the item "type". The item "category classification" sets the category classification for indicating the characteristics of the variety. In the example of FIG. 3, the item "category division" is set by classifying three characteristics, "variety fixed characteristic", "product number fixed characteristic", and "merchandise variable characteristic", as characteristic categories. Moreover, at least two characteristics, ie, the “product number fixed characteristic” and the “merchandise variable characteristic” are set for each product type.

カテゴリ区分のうち、項目「品種固定特性」は、品種に対して固定である特性を示す。項目「品番固定特性」は、品種内での品番に対して固定である特性を示す。例えば、ある品種に対してサイズなどの特性が異なる複数の規格が存在する場合、これら複数の規格それぞれに対して異なる品番が付与される。項目「商品変動特性」は、商品毎に異なる特性を示す。項目「行NO」は、品番に対して複数の特性が定義される場合に、これら複数の特性を識別するための番号を示す。項目「特性」は、特性の内容が設定される項目であって、項目「カテゴリ区分」に設定される各特性を識別するための項目識別子である。 Among the category divisions, the item "variety-fixed characteristics" indicates characteristics that are fixed with respect to the variety. The item "product number fixed characteristic" indicates a characteristic that is fixed with respect to the product number within the product type. For example, if there are multiple standards with different characteristics such as size for a certain product type, different product numbers are assigned to each of these multiple standards. The item "product variation characteristics" indicates characteristics that differ for each product. The item "row NO" indicates a number for identifying multiple characteristics when multiple characteristics are defined for a product number. The item "characteristic" is an item in which the content of the characteristic is set, and is an item identifier for identifying each characteristic set in the item "category classification".

一例として、品種「板鋼」は、品種固定特性、品番固定特性および商品変動特性の3つのカテゴリ区分が設定される。品種固定特性は、特性として「比重」のみが設定され、行NOが「1」に設定されている。品番固定特性は、特性として「厚み」および「幅」の2つが設定され、行NOが「2」に設定されている。すなわち、品種「板鋼」は、「厚み」および「幅」が異なる複数の規格を含むことができる。また、商品変動特性は、特性として「長さ」が設定され、行NOが「1」に設定されている。 As an example, for the product type “steel plate”, three category divisions are set: type fixed characteristic, product number fixed characteristic, and product variable characteristic. As for the type fixed characteristic, only "specific gravity" is set as a characteristic, and row No. is set to "1". As for the product number fixed characteristic, two characteristics of "thickness" and "width" are set, and the row No. is set to "2". That is, the product "plate steel" can include multiple standards with different "thickness" and "width". In addition, the product variation characteristic has "length" set as a characteristic and row No. set to "1".

別の例として、品種「丸太」は、品番固定特性および商品変動特性の2つのカテゴリ区分が設定される。このように、品種は、カテゴリ区分として品種固定特性を含まない設定も可能である。 As another example, the product type "log" is set into two categories: product number fixed characteristics and commodity variable characteristics. In this way, it is also possible to set the product type so as not to include the fixed product characteristics as a category division.

図4は、実施形態に適用可能なカテゴリ別特性設定マスタ122の例を示す。カテゴリ別特性設定マスタ122は、図3を用いて説明した品種別特性定義マスタ121において区分される各カテゴリ(品種固定特性→品番固定特性→商品変動特性)において、特性の具体的な内容を管理するためのマスタである。カテゴリ別特性設定マスタ122は、各カテゴリおよび特性を、品種毎に管理できる。 FIG. 4 shows an example of a categorical property settings master 122 applicable to embodiments. The category-specific characteristic setting master 122 manages the specific contents of the characteristics in each category (variety fixed characteristic→product number fixed characteristic→product fluctuation characteristic) classified in the product-specific characteristic definition master 121 described using FIG. It is a master for The categorical characteristic setting master 122 can manage each category and characteristic for each product type.

図4の例では、カテゴリ別特性設定マスタ122は、レコードに「カテゴリ区分」、「カテゴリコード」、「特性」、「特性数値」の各項目を含む。なお、図4において、右端の列は、カテゴリ区分に対する説明であって、カテゴリ別特性設定マスタ122を構成する情報として含まれなくて良い。 In the example of FIG. 4, the categorical characteristic setting master 122 includes items of "category division", "category code", "characteristic", and "characteristic value" in the record. In FIG. 4, the rightmost column is a description of the category classification, and does not have to be included as information constituting the characteristic setting master 122 for each category.

項目「カテゴリ区分」は、図3の品種別特性定義マスタ121における項目「カテゴリ区分」に対応する。カテゴリ別特性設定マスタ122においては、項目「カテゴリ区分」に対し、上述した「品種固定特性」、「品番固定特性」および「商品変動特性」の3つのカテゴリのうち、カテゴリ「品種固定特性」およびカテゴリ「品番固定特性」が設定される。 The item "category division" corresponds to the item "category division" in the product-specific characteristic definition master 121 in FIG. In the characteristic setting master by category 122, for the item "category classification", among the above three categories of "variety fixed characteristic", "product number fixed characteristic" and "merchandise variable characteristic", categories "variety fixed characteristic" and The category "Part number fixed characteristics" is set.

項目「カテゴリコード」は、品種および品番を特定するための情報が設定される。より具体的には、カテゴリ区分が「品種固定特性」のレコードにおいては品種(品種名)が設定され、カテゴリ区分が「品番固定特性」のレコードにおいては品番(品番名)が設定される。 The item "category code" is set with information for specifying the product type and product number. More specifically, the type (variety name) is set in the record with the category classification of "variety fixed characteristic", and the product number (product number name) is set in the record with the category classification of "product number fixed characteristic".

また、カテゴリ別特性設定マスタ122において、項目「カテゴリコード」に設定される文字列に含まれる品種、および、カテゴリ区分について、品種別特性定義マスタ121の項目「行NO」に設定された値に応じてレコードが作成される。図4の例では、カテゴリ別特性設定マスタ122に対し、品種「板鋼」は、品種固定特性について行NOに設定された値「1」(図3参照)に応じて1つのレコードが作成される。また、品番固定特性について行NOに設定された値「1」および「2」(図3参照)に応じて、カテゴリコードが共通の2つのレコードが作成されている。 In addition, in the category-specific characteristic setting master 122, the product type and category classification included in the character string set in the item "category code" are set to the values set in the item "row NO" of the product-specific characteristic definition master 121. A record is created accordingly. In the example of FIG. 4, one record is created in the category-specific property setting master 122 for the product type "steel plate" according to the value "1" (see FIG. 3) set in the row No. for the product type fixed property. be. Also, two records with a common category code are created according to the values "1" and "2" (see FIG. 3) set in the row NO for the product number fixed characteristic.

項目「特性」は、図3の品種別特性定義マスタ121における項目「特性」に対応し、そのレコードの項目「カテゴリ区分」および項目「カテゴリコード」に対応する特性の内容が設定される。また、項目「特性数値」は、項目「特性」に設定される特性に対して具体的な数値を設定する。 The item "characteristic" corresponds to the item "characteristic" in the product-specific characteristic definition master 121 of FIG. 3, and the contents of the characteristic corresponding to the item "category division" and item "category code" of the record are set. Further, in the item "characteristic numerical value", a specific numerical value is set for the characteristic set in the item "characteristic".

図4の例では、カテゴリ区分が「品種固定特性」、カテゴリコードが「板鋼」の特性「比重」に対して、特性数値「7.85(Kg/1m3)」が設定されている。また、カテゴリ区分「品番固定特性」について、カテゴリコード「板鋼 914×1829×6」が共通する2つのレコードの特性「厚み」および「幅」に対して、それぞれ特性数値「6.0mm」および「914mm」が設定されている。 In the example of FIG. 4, the characteristic numerical value "7.85 (Kg/1m 3 )" is set for the characteristic "specific gravity" with the category classification "variety fixed characteristic" and the category code "plate steel". In addition, regarding the category classification "product number fixed characteristics", the characteristic values "6.0 mm" and "914 mm" is set.

図4の別の例では、カテゴリ区分が「品種固定特性」、カテゴリコードが「丸太」には、品種固定特性が未設定である(図3参照)。また、カテゴリ区分「品番固定特性」について、カテゴリコード「丸太 D50」および「丸太 D55」の特性「直径」に対して、それぞれ特性数値「50cm」および「55cm」が設定されている。 In another example of FIG. 4, the category classification is "variety fixed characteristics" and the category code is "logs", but the variety fixed characteristics are not set (see FIG. 3). Also, for the category classification "product number fixed characteristics", characteristic numerical values "50 cm" and "55 cm" are set for the characteristic "diameter" of the category codes "log D50" and "log D55", respectively.

図5は、実施形態に適用可能な品番マスタ123の例を示す。品番マスタ123は、レコードに「品番コード(CD)」、「品番名」、「品種」および「員数単位」の各項目を含む。項目「品番コード」は、品番を識別する品番識別情報が設定される。 FIG. 5 shows an example of the product number master 123 applicable to the embodiment. The product number master 123 includes items of "product number code (CD)", "product number name", "variety" and "quantity unit" in its records. The item "product number code" is set with product number identification information for identifying the product number.

項目「品番名」は、品番に付与された名前が設定される。なお、項目「品番名」は、図4のカテゴリ別特性設定マスタ122の項目「カテゴリコード」における値(「板鋼 914×1829×6」など)が設定される。項目「品種」は、図3の品種別特性定義マスタ121における項目「品種」に対応し、項目「品番コード」で識別される品番の品種が設定される。項目「員数単位」は、項目「品番コード」で識別される商品の個体を計数する際の単位(例えば「枚」、「本」)が設定される。 The item "product number name" is set with a name assigned to the product number. The item "product number name" is set to the value (such as "plate steel 914×1829×6") in the item "category code" of the property setting master 122 for each category shown in FIG. The item "product type" corresponds to the item "product type" in the product-specific characteristic definition master 121 of FIG. 3, and the product type of the product number identified by the item "product number code" is set. The item "quantity unit" is set with a unit (for example, "sheet" or "book") for counting individual products identified by the item "product number code".

図6は、実施形態に適用可能な品種マスタ124の例を示す。品種マスタ124は、レコードに「品種コード(CD)」、「品種名」および「換算単位」の各項目を含む。項目「品種コード」は、品種を識別する品種識別情報が設定される。項目「品種名」は、品種コードにより識別される品種の名前が設定される。なお、項目「品種名」は、図3の品種別特性定義マスタ121および図5の品番マスタ123における項目「品種」における値(この例では「板鋼」、「パイプ」および「丸太」)が設定される。項目「換算単位」は、項目「品種コード」で示される品種に対する計算を行った計算結果に用いる単位(例えば「Kg」、「m」)が設定される。 FIG. 6 shows an example of the product type master 124 applicable to the embodiment. A record of the product type master 124 includes items of “product type code (CD)”, “product type name”, and “conversion unit”. The item "product code" is set with product identification information for identifying the product. The item "variety name" is set with the name of a variety identified by a variety code. Note that the item "product name" has a value (in this example, "plate steel", "pipe" and "log") in the item "product type" in the product-specific characteristic definition master 121 of FIG. 3 and the product number master 123 of FIG. set. The item "conversion unit" is set with a unit (for example, "Kg" or "m 3 ") used for the calculation result of the product type indicated by the item "product code".

図7は、実施形態に適用可能な単位マスタ125の例を示す。単位マスタ125は、単位を管理するマスタであって、「単位コード(CD)」、「単位名」および「単位区分」の各項目を含む。項目「単位コード」は、単位を識別するための単位識別情報が設定される。項目「単位名」は、単位の表示名が設定される(この例では、「Kg」、「m3」、「枚」、「本」)。項目「単位区分」は、単位の区分が設定される(この例では、「重量」、「体積」、「員数」)。 FIG. 7 shows an example of a unit master 125 applicable to the embodiment. The unit master 125 is a master for managing units and includes items of "unit code (CD)", "unit name" and "unit class". The item "unit code" is set with unit identification information for identifying the unit. In the item "unit name", display names of units are set (in this example, "Kg", "m 3 ", "sheets", and "books"). In the item "unit division", unit divisions are set (in this example, "weight", "volume", and "number of pieces").

[4.実施形態に係る計算定義]
次に、実施形態に係る計算定義について説明する。実施形態では、重量計算、あるいは、体積計算などを行うための計算式を、計算定義マスタ126を用いて定義する。この、計算定義マスタ126による計算式の定義は、品種毎に行う。このとき、同一品種でも異なる複数の計算を行う場合などを想定する必要がある。例えば、品種「丸太」では、商品変動特性値(長さ)によって計算の方法が異なる場合がある。そのため、実施形態では、計算定義マスタ126に対し、品種と、商品変動特性値に対する閾値と、計算結果に対する単位区分と、をキーとして設定する。ここで、キーとして設定される商品変動特性値に対する閾値は、その定義が適用される下限値(定義適用下限値)である。
[4. Calculation definition according to the embodiment]
Next, calculation definitions according to the embodiment will be described. In the embodiment, calculation formulas for weight calculation or volume calculation are defined using the calculation definition master 126 . The calculation formula definition by the calculation definition master 126 is performed for each product type. At this time, it is necessary to assume a case where a plurality of different calculations are performed even for the same product type. For example, for the product type "log", the calculation method may differ depending on the product variation characteristic value (length). Therefore, in the embodiment, the product type, the threshold value for the product variation characteristic value, and the unit division for the calculation result are set as keys in the calculation definition master 126 . Here, the threshold for the commodity variation characteristic value set as a key is the lower limit to which the definition is applied (definition application lower limit).

図8は、実施形態に係る計算定義に使用可能な項目を一覧で示す。図8に項目区分にて示されるように、実施形態に係る計算定義には、「品種固定特性」、「品番固定特性」、「商品変動特性数値」、「員数」、「その他固定値」、「端数処理開始/終了」、「累乗開始/終了」および「ダミー」の各項目を使用可能である。これら各項目は、計算定義マスタ126のレコードに対して1つが設定され、そのレコードに定義される項目を区分する。 FIG. 8 shows a list of items that can be used for calculation definition according to the embodiment. As shown in the item divisions in FIG. 8, the calculation definitions according to the embodiment include "variety fixed characteristics", "part number fixed characteristics", "merchandise variation characteristic numerical values", "quantity", "other fixed values", The items "Rounding Start/End", "Power Start/End" and "Dummy" are available. One of these items is set for each record of the calculation definition master 126 to classify the items defined in that record.

図8に示される各項目について説明する。項目「品種固定特性」は、計算定義マスタ126に対し、図4のカテゴリ別特性設定マスタ122の項目「カテゴリ区分」が「品種固定特性」(カテゴリ区分=2:品種)であるレコードにおける設定値(特性、特性値)を設定する。項目「品種固定特性」を含むレコードに設定される値としては、特性および特性値として、例えば物質比重およびその値が想定される。 Each item shown in FIG. 8 will be described. The item "variety fixed characteristic" is set to the calculation definition master 126 in the record in which the item "category classification" of the characteristic setting master by category 122 in FIG. Set (characteristic, characteristic value). As values to be set in a record containing the item "variety fixed characteristics", for example, material specific gravity and its value are assumed as characteristics and characteristic values.

項目「品番固定特性」は、同様に、計算定義マスタ126に対し、図4のカテゴリ別特性設定マスタ122の項目「カテゴリ区分」が「品番固定特性」(カテゴリ区分=0:品番)であるレコードにおける設定値(特性、特性値)を設定する。項目「品番固定特性」を含むレコードに設定される値としては、例えば厚み、幅、直径といった品番毎に固定の寸法が想定される。 Similarly, for the calculation definition master 126, the item "fixed product number" is a record in which the item "category classification" of the property setting master by category 122 in FIG. Set the setting value (characteristic, characteristic value) in . As values to be set in the record including the item "product number fixed characteristics", for example, fixed dimensions such as thickness, width, and diameter are assumed for each product number.

項目「商品変動特性数値」は、計算定義マスタ126に対し、商品毎に変動する特性値(商品変動特性値)に対するユーザによる入力値を設定する。項目「商品変動特性数値」に設定される商品変動特性値としては、長さなどの、商品毎、入力毎に変更される可能性がある寸法が想定される。項目「員数」は、同様に、ユーザにより入力値が適用される。項目「員数」に適用される値としては、本数、枚数といった物流上の数量が想定される。 The item “product variation characteristic value” sets a value input by the user to the calculation definition master 126 for a characteristic value (product variation characteristic value) that varies for each product. As the product variation characteristic value set in the item "product variation characteristic value", a dimension such as length that may be changed for each product and for each input is assumed. For the item "quantity", similarly, an input value is applied by the user. As a value applied to the item "quantity", a physical distribution quantity such as the number of pieces and the number of sheets is assumed.

項目「その他固定値」は、計算定義マスタ126において定義される計算式に対応する公式で使用される固定係数などの値を設定する。 The item “other fixed values” sets values such as fixed coefficients used in formulas corresponding to calculation formulas defined in the calculation definition master 126 .

項目「端数処理開始/終了」は、計算定義マスタ126に対し、計算式に対する端数処理を設定する。項目「端数処理開始/終了」は、計算式において端数処理の開始位置に配置した場合は、端数処理方法を指定する。指定される端数処理方法としては、四捨五入、切り上げ、切り捨て、が想定されるが、これらに限定されるものではない。また、項目「端数処理開始/終了」は、計算式において端数処理の終了位置に配置した場合は、端数処理の結果における有効小数桁を指定する。 The item “start/end of rounding” sets the rounding of the calculation formula in the calculation definition master 126 . The item "start/end of rounding" specifies the rounding method when placed at the start position of rounding in the formula. Rounding methods specified include, but are not limited to, rounding, rounding up, and rounding down. Also, when the item "start/end of rounding" is placed at the end position of rounding in the formula, it specifies the significant decimal places in the result of rounding.

項目「累乗開始/終了」は、計算定義マスタ126に対し、計算式に対する累乗計算の開始位置、終了位置および累乗根を設定する。累乗根は、累乗計算の終了位置において指定される。 The item “start/end of exponentiation” sets the start position, end position, and root of exponentiation calculation for the calculation formula in the calculation definition master 126 . Roots are specified at the end of the power calculation.

項目「ダミー」は、計算定義マスタ126に対し、計算式内において優先して計算を実行する範囲を指定する括弧(括弧演算子)の開始位置および終了位置や、演算子のみを指定するレコードを設定する。 The item "dummy" is for the calculation definition master 126, the start position and end position of parentheses (bracket operators) that specify the range in which calculation is preferentially executed in the calculation formula, and records that specify only operators. set.

[5.実施形態に係る計算定義マスタの具体例]
次に、実施形態に係る計算定義マスタ126について、より具体的に説明する。記憶部120は、複数の計算定義マスタ126を設定することができる。例えば、計算定義マスタ126は、キー項目における項目「品種コード」、「変動特性閾値」および「計算結果」の異なる組み合わせ毎に設定できる。以下では、特に記載の無い限り、計算定義マスタ126は、記憶部120に記憶される複数の計算定義マスタ126のうち任意の1つを指すものとする。
[5. Specific example of calculation definition master according to embodiment]
Next, the calculation definition master 126 according to the embodiment will be described more specifically. The storage unit 120 can set a plurality of calculation definition masters 126 . For example, the calculation definition master 126 can be set for each different combination of items "variety code", "variation characteristic threshold" and "calculation result" in the key items. Below, unless otherwise specified, the calculation definition master 126 refers to any one of the plurality of calculation definition masters 126 stored in the storage unit 120 .

図9は、実施形態に係る計算定義マスタ126の例を示す。計算定義マスタ126は、レコードに、「品種コード」、「変動特性閾値」、「計算結果」、「連番」、「項目区分」、「括弧他Start」、「演算子」、「項目値コード(CD)」、「定数」および「括弧他End」の各項目を含む。 FIG. 9 shows an example of the calculation definition master 126 according to the embodiment. The calculation definition master 126 has a record that includes “variety code”, “variation characteristic threshold value”, “calculation result”, “serial number”, “item classification”, “brackets and other Start”, “operator”, “item value code (CD)”, “constant” and “brackets, etc. End”.

これらのうち、「品種コード」、「変動特性閾値」、「計算結果」および「連番」の各項目は、計算定義マスタ126のキー項目であって、項目「品種コード」、「変動特性閾値」および「計算結果」は、当該計算定義マスタ126の全レコードで共通の値が設定される。項目「連番」は、レコードの順に従い増加する値が設定される。例えば、計算式作成部113(図2参照)は、これら項目「品種コード」、「変動特性閾値」および「計算結果」の値に従い、計算対象となる公式を特定できる。 Among these items, the items "variety code", "variation characteristic threshold", "calculation result" and "serial number" are key items of the calculation definition master 126, and the items "variety code" and "variation characteristic threshold ” and “calculation result” are set to common values in all records of the calculation definition master 126 . The item "serial number" is set to a value that increases according to the order of the records. For example, the calculation formula creating unit 113 (see FIG. 2) can specify the formula to be calculated according to the values of these items "variety code", "variation characteristic threshold" and "calculation result".

項目「品種コード」は、図6の品種マスタ124の項目「品種コード」または項目「品種名」の値が設定され、この計算定義マスタ126が計算を行う商品の品種が特定される。項目「変動特性閾値」は、商品変動特性値に対する閾値が設定される。項目「品種コード」および後述する項目「計算結果」が同一の計算定義マスタ126が複数存在する場合に、計算に用いる計算定義マスタ126を、入力された商品変動特性値と、この項目「変動特性閾値」に設定された値と、に基づき特定する。 The item "variety code" is set to the value of the item "variety code" or "variety name" of the variety master 124 in FIG. In the item "variation characteristic threshold", a threshold value for product variation characteristic values is set. When there are a plurality of calculation definition masters 126 with the same item "variety code" and the item "calculation result" (to be described later), the calculation definition master 126 to be used for the calculation is determined based on the input product variation characteristic value and the item "variation characteristic specified based on the value set in "threshold".

項目「計算結果」は、当該計算定義マスタ126に定義される計算式による計算結果の単位が設定される。 For the item “calculation result”, the unit of the calculation result by the calculation formula defined in the calculation definition master 126 is set.

計算定義マスタ126の各項目のうち、項目「項目区分」、ならびに、左から右へ向けて順に並べられる項目「括弧他Start」、「演算子」、「項目値コード(CD)」、「定数」および「括弧他End」は、計算式を示す文字列である式文字列を作成するための各要素が設定される。項目「項目区分」は、図8を用いて説明した、実施形態に係る計算定義に使用可能な項目が設定される。 Of the items in the calculation definition master 126, the item "item classification", and the items "brackets and other Start", "operator", "item value code (CD)", and "constant ” and “Bracket and other End” are set with respective elements for creating a formula character string that is a character string indicating a calculation formula. The item "item classification" is set with items that can be used for the calculation definition according to the embodiment described with reference to FIG.

項目「括弧他Start」および項目「括弧他End」は、それぞれ、括弧計算または累乗計算といった、計算式において優先して計算される範囲の開始位置および終了位置を指定するための、優先範囲指定演算子を設定する。括弧計算の開始位置は、項目「括弧他Start」の値を値「(」とすることで設定され、終了位置は、項目「括弧他End」の値を値「)」とすることで設定される。累乗計算の開始位置は、項目「括弧他Start」の値を「累乗開始(」とすることで設定される。累乗計算の終了位置は、項目「括弧他End」の値を、「)」と累乗根とを組み合わせた値(例えば「)2乗」)とすることで設定される。 The items "brackets other Start" and "brackets other End" are priority range specification operations, such as parenthesis calculations or power calculations, for specifying the start and end positions of ranges that are preferentially calculated in formulas. set child. The start position of the parenthesis calculation is set by setting the value of the item “Brackets Start” to the value “(”, and the end position is set by setting the value of the item “Brackets etc. End” to the value “)”. be. The start position of the power calculation is set by setting the value of the item "Parentheses Start" to "Power start (". The end position of the power calculation is set by setting the value of the item "Parentheses End" to ")". It is set by setting a value (for example, “ ) squared”) in combination with a radical.

また、項目「括弧他Start」および項目「括弧他End」は、それぞれ、端数処理の開始位置および終了位置を設定する。この場合、項目「括弧他Start」は、端数処理の開始位置と共に、端数処理の種類を設定する。また、項目「括弧他End」は、端数処理の終了位置と共に、端数処理の桁数を設定する。 Also, the item “parentheses Start” and the item “brackets End” set the start position and end position of rounding, respectively. In this case, the item "parenthesis, etc. Start" sets the type of rounding together with the starting position of rounding. The item "brackets, etc. End" sets the end position of rounding and the number of digits for rounding.

項目「演算子」は、四則演算を示す記号(例えば「+」、「-」、「×」および「÷」)が設定される。 The item "operator" is set with symbols indicating the four arithmetic operations (for example, "+", "-", "x" and "÷").

項目「項目値コード」は、そのレコードのキー項目「品種コード」の値と、項目「項目区分」の値とに基づき、図3を用いて説明した品種別特性定義マスタ121から特定された項目「特性」の値が設定される。項目「定数」は、そのレコードの項目「項目区分」の値が「固定値」である場合に値が設定される項目である。 The item "item value code" is an item specified from the product-specific characteristic definition master 121 described using FIG. The "characteristic" value is set. The item "constant" is an item whose value is set when the value of the item "item classification" of the record is "fixed value".

ここで、図2を参照し、計算式作成部113は、計算定義マスタ126の各レコード内においては、項目「括弧他Start」、「演算子」、「項目値コード」、「定数」および「括弧他End」の値を、計算定義マスタ126における並び順に従い、左から右に連結して文字列を生成する。さらに、計算式作成部113は、各レコードにおいて生成した各文字列を、各レコードの項目「連番」の順に連結し、最終的な計算式を表す式文字列を生成する。 Here, with reference to FIG. 2, the calculation formula creation unit 113 creates items “brackets and other Start”, “operator”, “item value code”, “constant” and “ Parentheses and other End” values are concatenated from left to right according to the order in the calculation definition master 126 to generate a character string. Further, the calculation formula creation unit 113 concatenates each character string generated in each record in the order of the item “serial number” of each record to generate a formula character string representing the final calculation formula.

なお、計算定義マスタ126において、「括弧他Start」、「演算子」および「括弧他End」の各項目に設定される括弧、累乗根、演算子は、例えば後述する計算定義マスタメンテ画面において表示させるための文字列である。計算処理部114は、例えば、これら「括弧他Start」、「演算子」および「括弧他End」の各項目に設定される文字列に応じた計算を実行するための関数を備える。計算処理部114は、計算定義マスタ126から、これら「括弧他Start」、「演算子」および「括弧他End」の各項目に設定される文字列を取得すると共に、上述した、公式に当てはめる各数値を取得する。計算処理部114は、取得した各文字列および数値を当該関数に渡し、これら各文字列および数値による当該関数による計算を実行する。 In the calculation definition master 126, parentheses, radical roots, and operators set in the respective items of "parentheses, etc. Start", "operator," and "parentheses, etc. End" are displayed, for example, on the calculation definition master maintenance screen to be described later. is a string for The calculation processing unit 114 includes, for example, functions for executing calculations according to the character strings set in the items of “parentheses, etc. Start”, “operator,” and “parentheses, etc. End”. Calculation processing unit 114 acquires the character strings set in each of the items “Parenthesis Start”, “Operator”, and “Parenthesis End” from calculation definition master 126, and also obtains each character string to be applied to the above formula. Get a numeric value. The calculation processing unit 114 passes each acquired character string and numerical value to the function, and executes calculation by the function using each character string and numerical value.

[6.実施形態の第1の適用例]
図10を用いて、実施形態に係る計算定義マスタ126の第1の適用例について説明する。第1の適用例は、計算定義マスタ126を板鋼の重量計算に適用した例である。図10(a)は、板鋼の重量計算を行うための公式を示す。板鋼の重量は、計算式「(厚み×幅×長さ×比重)/定数」を公式として計算される。ここで、定数は、単位換算のための値であって、厚み、幅および長さの単位が「mm」、比重の単位が「Kg/1m3」であり、計算結果として必要な単位が「Kg」である場合、定数は、図10(a)の例のように「1,000,000」となる。
[6. First application example of the embodiment]
A first application example of the calculation definition master 126 according to the embodiment will be described with reference to FIG. A first application example is an example in which the calculation definition master 126 is applied to steel plate weight calculation. FIG. 10(a) shows a formula for calculating the weight of steel plate. The weight of steel plate is calculated using the formula "(thickness x width x length x specific gravity)/constant". Here, the constant is a value for unit conversion, the unit of thickness, width and length is "mm", the unit of specific gravity is "Kg/1m 3 ", and the unit required as a result of calculation is "Kg", the constant is "1,000,000" as in the example of FIG. 10(a).

図10(b)は、図10(a)の公式に対応する計算式を定義する計算定義マスタ126aの例を示す。図10(b)の例では、キー項目中の項目「品種コード」の値「板鋼」と、項目「変動特性閾値」の値「0」と、項目「計算結果」の値「Kg」とに従い図10(a)の公式が特定される。ここで、板鋼の重量計算の場合、商品変動特性値(長さ)に関わらず単一の公式が適用されるため、項目「変動特性閾値」は、無視できる。なお、公式が、分子あるいは分母に複数の項を含む分数式で表される場合、当該複数の項の全体に対して、開始括弧および閉じ括弧が暗黙的に設定されるものとする。 FIG. 10(b) shows an example of calculation definition master 126a that defines a calculation formula corresponding to the formula of FIG. 10(a). In the example of FIG. 10(b), the value "plate steel" of the item "variety code" in the key items, the value "0" of the item "variation characteristic threshold", and the value "Kg" of the item "calculation result" , the formula of FIG. 10(a) is specified. Here, in the case of steel plate weight calculation, since a single formula is applied regardless of the product variation characteristic value (length), the item "variation characteristic threshold" can be ignored. When a formula is represented by a fractional expression that includes multiple terms in the numerator or denominator, the opening parenthesis and the closing parenthesis are implicitly set for the entirety of the multiple terms.

特定された公式および項目「項目区分」の値に従い、項目「連番」が「0」のレコード(以下、連番「0」のレコードなどと記述する)において、項目「括弧他Start」に値「(」、項目「項目コード」に値「厚み」がそれぞれ設定され、連番「1」のレコードにおいて、項目「演算子」に値「×」、項目「項目コード」に値「幅」がそれぞれ設定される。また、連番「2」のレコードにおいて、項目「演算子」に値「×」、項目「項目コード」に値「比重」がそれぞれ設定される。 According to the specified formula and the value of the item "item classification", in the record whose item "serial number" is "0" (hereinafter referred to as the record with the serial number "0" etc.), "(", the value "thickness" is set for the item "item code", and the value "x" is set for the item "operator" and the value "width" is set for the item "item code" in the record with the serial number "1". Also, in the record with the serial number "2", the value "x" is set in the item "operator" and the value "weight" is set in the item "item code".

連番「3」のレコードにおいて、項目「演算子」に値「×」が設定される。このレコードは、商品変動特性値のレコードであって、計算に用いる値は、後述する入力画面においてユーザにより入力されるため、当該レコードの項目「項目値コード」は、空欄とされている。連番「4」のレコードは、ダミーのレコードであって、項目「括弧他End」に値「)」が設定される。連番「5」のレコードは、固定値のレコードであって、項目「演算子」に値「÷」が設定され、項目「定数」に、公式において規定される固定値としての値「1,000,000」が設定される。 In the record with the serial number "3", the value "x" is set in the item "operator". This record is a record of product variation characteristic values, and the value used for calculation is input by the user on an input screen to be described later, so the item "item value code" of the record is blank. The record with the serial number “4” is a dummy record, and the value “)” is set in the item “Parentheses End”. The record with the serial number "5" is a fixed value record, the value "÷" is set in the item "operator", and the values "1, 000,000” is set.

図10(c)は、図10(b)の計算定義マスタ126aに対して、品番名「板鋼 914×1829×6」の板鋼を想定して具体的な数値を代入した例を示す。図10(c)の例では、図10(b)の計算定義マスタ126aにおける項目「項目値コード」および「定数」を纏めて、公式に当てはめる数値としている。例えば計算処理部114は、連番「0」~「2」の各レコードでは、項目「品種コード」および項目「項目区分」の値に従い、図4のカテゴリ別特性設定マスタ122からそれぞれ対応する値「6」(厚み)、「914」(幅)および「7.85」(比重)を取得し、公式に当てはめる数値として設定する。また、連番「3」の、商品変動特性のレコードでは、ユーザにより入力された値「1,000」(長さ)が公式に当てはめる数値として設定される。さらに、連番「5」の固定値のレコードでは、公式に従い値「1,000,000」が設定される。 FIG. 10(c) shows an example in which specific numerical values are assigned to the calculation definition master 126a of FIG. In the example of FIG. 10C, the items "item value code" and "constant" in the calculation definition master 126a of FIG. For example, the calculation processing unit 114 selects corresponding values from the category-specific characteristic setting master 122 of FIG. "6" (thickness), "914" (width) and "7.85" (specific gravity) are obtained and set as numerical values to be applied to the formula. Also, in the record of product fluctuation characteristics with the serial number "3", the value "1,000" (length) input by the user is set as the numerical value to be applied to the formula. Furthermore, in the fixed value record with the serial number "5", the value "1,000,000" is set according to the formula.

図11は、計算定義マスタ126の編集を行うための画面である計算定義マスタメンテ画面200の例を示す。図2を参照し、計算定義設定部112は、記憶部120に設定される各マスタを参照して、計算定義マスタメンテ画面200を表示するための各情報を取得し、画面生成部115に渡す。画面生成部115は、計算定義設定部112から渡された情報に基づき画面情報を生成し、生成した画面情報を、入出力I/F部130を介して例えばディスプレイ1020である出力装置151に渡し、当該ディスプレイ1020に計算定義マスタメンテ画面200を表示させる。 FIG. 11 shows an example of a calculation definition master maintenance screen 200, which is a screen for editing the calculation definition master 126. As shown in FIG. Referring to FIG. 2, the calculation definition setting unit 112 refers to each master set in the storage unit 120, acquires each information for displaying the calculation definition master maintenance screen 200, and passes it to the screen generation unit 115. . The screen generation unit 115 generates screen information based on the information passed from the calculation definition setting unit 112, and passes the generated screen information to the output device 151 such as the display 1020 via the input/output I/F unit 130. , causes the display 1020 to display the calculation definition master maintenance screen 200 .

図11において、計算定義マスタメンテ画面200は、入力部210、211および212と、マスタ表示部213と、ボタン214と、を含む。なお、図11に示す計算定義マスタメンテ画面200は、図10(b)を用いて説明した、板鋼の重量計算を行うための計算定義マスタ126aの編集を行う、重量計算定義マスタメンテ画面を想定している。 11, calculation definition master maintenance screen 200 includes input sections 210 , 211 and 212 , master display section 213 , and button 214 . Note that the calculation definition master maintenance screen 200 shown in FIG. 11 is a weight calculation definition master maintenance screen for editing the calculation definition master 126a for calculating the weight of steel plates, which has been described with reference to FIG. I assume.

入力部210、211および212は、計算定義マスタ126のキー項目である「品種コード」、「変動特性閾値」および「計算結果」の各項目に対する設定を行うために設けられる。 Input sections 210 , 211 and 212 are provided for setting items of “variety code”, “variation characteristic threshold” and “calculation result” which are key items of the calculation definition master 126 .

入力部210は、項目「品種コード」に設定する値を入力するための入力領域2101と、入力領域2101に入力された値に対応する品種を表示するための表示領域2102とを含む。入力領域2101は、図6に示した品種マスタ124の項目「品種コード」に設定された値が入力される。入力領域2101に対する入力は、ユーザが手動にて行ってもよいし、ユーザに、品種コードの一覧を含むドロップダウンリストから選択させてもよい。例えば、計算定義設定部112が品種マスタ124を参照して品種コードの一覧を取得し、取得した品種コードの一覧を画面生成部115に渡す。画面生成部115は、この品種コードの一覧に基づきドロップダウンリストなどを生成し、表示領域2102に表示させる。 The input unit 210 includes an input area 2101 for inputting a value to be set in the item “product code” and a display area 2102 for displaying the product corresponding to the value entered in the input area 2101 . In the input area 2101, the value set in the item "product code" of the product master 124 shown in FIG. 6 is input. Input to the input area 2101 may be performed manually by the user, or may be selected from a drop-down list containing a list of breed codes. For example, the calculation definition setting unit 112 obtains a list of product type codes by referring to the product type master 124 and passes the obtained list of product type codes to the screen generation unit 115 . The screen generation unit 115 generates a drop-down list or the like based on this list of product codes, and displays it in the display area 2102 .

また、計算定義設定部112は、品種マスタ124を参照し、項目「品種名」から、入力領域2101に入力された値に対応する値を取得し、取得した値を、画面生成部115により表示領域2102に表示させる。図11の例では、入力領域2101に対して商品コード「ITA」が入力され、表示領域2102に、商品コード「ITA」に品種マスタ124において関連付けられる品種名「板鋼」が表示されている。 Further, the calculation definition setting unit 112 refers to the product type master 124, acquires the value corresponding to the value input in the input area 2101 from the item “product type name”, and displays the acquired value by the screen generation unit 115. It is displayed in area 2102 . In the example of FIG. 11, the product code "ITA" is input to the input area 2101, and the product name "plate steel" associated with the product code "ITA" in the product master 124 is displayed in the display area 2102. FIG.

入力部211は、項目「変動特性閾値」に設定する値(商品変動特性閾値)を入力するための入力領域2111と、入力領域2111に入力された値に対応する単位を表示するための表示領域2112とを含む。変動特性閾値は、商品変動特性値(「長さ」など)に応じて適用される公式が異なる場合の、商品変動特性値に対する閾値である。商品変動特性値によって公式が変わらない場合は、変動特性閾値として値「0」が入力される。また、計算定義設定部112は、カテゴリ別特性設定マスタ122を参照して、入力領域2101に入力された品種コードが示す品種に対して予め定められた単位を表示領域2112に表示させる。図11の例では、入力領域2111に対して値「0.00」が入力され、表示領域2112に、入力領域2101に入力された品種コードに対応する単位名「mm」が表示されている。 The input unit 211 includes an input area 2111 for inputting a value (commodity variation threshold) to be set in the item “variation threshold”, and a display area for displaying a unit corresponding to the value input to the input area 2111. 2112. The variation characteristic threshold is a threshold for the product variation characteristic value when different formulas are applied depending on the product variation characteristic value (such as “length”). If the product variation characteristic value does not change the formula, the value "0" is entered as the variation characteristic threshold. The calculation definition setting unit 112 also refers to the characteristic setting master by category 122 and causes the display area 2112 to display a predetermined unit for the product type indicated by the product code input to the input area 2101 . In the example of FIG. 11, the value "0.00" is input to the input area 2111, and the unit name "mm" corresponding to the product code input to the input area 2101 is displayed in the display area 2112. FIG.

入力部212は、項目「計算結果」に設定する値(単位コード)を入力するための入力領域2121と、入力領域2121に入力された値に対応する単位(計算結果単位)を表示するための表示領域2122とを含む。入力領域2121は、図7に示した単位マスタ125の項目「単位コード」に設定された値が入力される。入力領域2121に対する入力は、ユーザが手動にて行ってもよいし、ユーザに、ドロップダウンリストから選択させてもよい。例えば、計算定義設定部112が単位マスタ125を参照して単位コードの一覧を取得し、取得した単位名コードの一覧を画面生成部115に渡す。画面生成部115は、この品種コードの一覧に基づきドロップダウンリストを作成し、表示領域2122に表示させる。図11の例では、入力領域2121に対して単位コード「13」が入力され、表示領域2122は、単位コード「13」に単位マスタ125において関連付けられる単位名「Kg」が表示されている。 The input unit 212 includes an input area 2121 for inputting a value (unit code) to be set in the item “calculation result” and a unit for displaying the unit (calculation result unit) corresponding to the value input in the input area 2121. and a display area 2122 . In the input area 2121, the value set in the item "unit code" of the unit master 125 shown in FIG. 7 is input. Input to the input area 2121 may be performed manually by the user, or may be selected from a drop-down list by the user. For example, the calculation definition setting unit 112 refers to the unit master 125 to obtain a list of unit codes, and passes the obtained list of unit name codes to the screen generation unit 115 . The screen generator 115 creates a drop-down list based on this list of product codes and displays it in the display area 2122 . In the example of FIG. 11, the unit code "13" is input to the input area 2121, and the unit name "Kg" associated with the unit code "13" in the unit master 125 is displayed in the display area 2122. FIG.

マスタ表示部213は、計算定義マスタ126における項目「連番」、および、項目「連番」の右側の各項目(項目「項目区分」、項目「括弧他Start」、「演算子」、「項目値コード(CD)」、「定数」および「括弧他End」)が、それぞれ設定された値を含めて表示される。 The master display unit 213 displays the item "serial number" in the calculation definition master 126 and each item on the right side of the item "serial number" (item "item classification", item "brackets and other Start", "operator", "item Value Code (CD)", "Constant" and "Bracket Other End") are displayed including the set values.

計算定義設定部112は、入力領域2101、2111および2121に入力された「品種コード」、「変動特性閾値」および「計算結果」の各値をキーとして、記憶部120に設定される計算定義マスタ126から、キーに対応する計算定義マスタ126を特定する。画面生成部115は、計算定義設定部112により特定された計算定義マスタ126の項目「連番」と、項目「項目区分」と、項目「括弧他Start」、「演算子」、「項目値コード(CD)」、「定数」および「括弧他End」とに設定された各値を、マスタ表示部213の対応するレコードおよび項目に表示させる。 Calculation definition setting unit 112 uses the values of “variety code”, “variation characteristic threshold value” and “calculation result” input in input areas 2101, 2111 and 2121 as keys to create a calculation definition master set in storage unit 120. 126, identify the calculation definition master 126 that corresponds to the key. The screen generation unit 115 generates the item “serial number”, the item “item classification”, the items “brackets and other Start”, the “operator”, and the “item value code” of the calculation definition master 126 specified by the calculation definition setting unit 112. (CD)”, “constant”, and “brackets, etc. End” are displayed in the corresponding records and items of the master display section 213. FIG.

また、画面生成部115は、計算定義設定部112が入力されたキーに対応する計算定義マスタ126を記憶部120から特定できなかった場合、マスタ表示部213に、各レコードが空欄とされた計算定義マスタ126を表示させる。これは、例えば新規の計算定義マスタ126を設定する場合に該当する。この場合、ユーザは、入力装置150を操作して、マスタ表示部213に表示された計算定義マスタ126の各欄に対し、値を直接的に設定することができる。 Further, when the calculation definition setting unit 112 cannot identify the calculation definition master 126 corresponding to the input key from the storage unit 120, the screen generation unit 115 displays the calculation data in which each record is blank in the master display unit 213. Display the definition master 126 . This applies, for example, when setting a new calculation definition master 126 . In this case, the user can operate the input device 150 to directly set values for each column of the calculation definition master 126 displayed on the master display section 213 .

図11の例では、マスタ表示部213は、図10(b)の計算定義マスタ126aにおいて、連番「0」~「5」に対応する各レコードの、項目「項目区分」と、項目「括弧他Start」、「演算子」、「項目値コード」、「定数」および「括弧他End」に設定された値が、それぞれレコードおよび項目が対応する位置に表示されている。 In the example of FIG. 11, the master display unit 213 displays the item "item classification" and the item "parenthesis The values set in "Other Start", "Operator", "Item Value Code", "Constant" and "Bracket Other End" are displayed at positions corresponding to the record and the item, respectively.

例えば、計算定義設定部112は、計算定義マスタメンテ画面200の各入力部210~212、および、マスタ表示部213に入力および表示される情報に応じて、記憶部120に設定される、対応する計算定義マスタ126を更新する。これに限らず、計算定義設定部112は、計算定義マスタメンテ画面200の各入力部210~212、および、マスタ表示部213に入力および表示される情報をRAM1002などに一時的に記憶し、所定のトリガに応じて、記憶した情報に基づき記憶部120に記憶される計算定義マスタ126を更新してもよい。 For example, the calculation definition setting unit 112 is set in the storage unit 120 according to the information input and displayed in the input units 210 to 212 of the calculation definition master maintenance screen 200 and the master display unit 213. Update calculation definition master 126 . Not limited to this, the calculation definition setting unit 112 temporarily stores information input and displayed in the input units 210 to 212 of the calculation definition master maintenance screen 200 and the master display unit 213 in the RAM 1002 or the like, , the calculation definition master 126 stored in the storage unit 120 may be updated based on the stored information.

計算定義マスタメンテ画面200において、ボタン214は、当該計算定義マスタメンテ画面200において定義される計算式を確認するためのボタンである。図12は、実施形態に係る、ボタン214を操作することで表示される式チェック画面300の例を示す。式チェック画面300は、表示領域310および311と、ボタン312とを含む。 A button 214 on the calculation definition master maintenance screen 200 is a button for confirming the calculation formula defined on the calculation definition master maintenance screen 200 . FIG. 12 shows an example of a formula check screen 300 displayed by operating button 214, according to an embodiment. Formula check screen 300 includes display areas 310 and 311 and button 312 .

表示領域310は、計算定義マスタメンテ画面200において設定された計算式が表示される。上述したように、計算式作成部113(図2参照)は、計算定義マスタメンテ画面200のマスタ表示部213に表示される項目「括弧他Start」、「演算子」、「項目値コード」、「定数」および「括弧他End」に設定される値を、各レコード内においては、各項目の値をレコード内での並び順に従い左から右に連結して文字列を生成する。さらに、計算式作成部113は、各レコードにおいて作成した各文字列を、各レコードの項目「連番」の順に連結し、最終的な計算式を表す式文字列を生成する。画面生成部115は、計算式作成部113により作成された式文字列を、表示領域310に表示させる。 A display area 310 displays the calculation formula set in the calculation definition master maintenance screen 200 . As described above, the calculation formula creating unit 113 (see FIG. 2) displays the items “Parentheses and others Start”, “Operator”, “Item value code”, and In each record, the values set in the "constant" and "brackets, etc. End" are concatenated from left to right according to the order of arrangement in the record to generate a character string. Further, the calculation formula creation unit 113 connects each character string created in each record in the order of the item "serial number" of each record to generate a formula character string representing the final calculation formula. The screen generator 115 causes the display area 310 to display the formula character string created by the calculation formula creator 113 .

より具体的には、図11を参照し、計算式作成部113は、連番「0」のレコードの項目「括弧他Start」に設定される値「(」の右に項目「項目値コード」に設定される値「厚み」を連結し、文字列「(厚み」を生成する。連番「1」のレコードの項目「演算子」に設定される値「×」の右に項目「項目値コード」に設定される値「幅」を連結し、文字列「×幅」を生成する。この処理を、連番「2」~「5」の各レコードにおいて実行し、文字列「×比重」、「×長さ」、「)」および「÷1,000,000」をそれぞれ生成する。 More specifically, referring to FIG. 11, the calculation formula creation unit 113 adds the item "item value code" to the right of the value "(" set in the item "parentheses and other Start" of the record with the serial number "0". Concatenate the value "thickness" set in the "thickness" to generate the character string "(thickness". The item "item value The value "width" set in "code" is concatenated to generate the character string "x width".This process is executed for each record with serial numbers "2" to "5" to generate the character string "x specific gravity". , “× length”, “)” and “÷1,000,000” respectively.

なお、計算式作成部113は、項目「項目区分」に値「商品変動特性」が設定される連番「3」のレコードでは、入力領域2101に入力された品種コードに基づき品種マスタ124および品種別特性定義マスタ121を参照し、品種コードに対応するカテゴリ区分「商品変動特性」に対応する項目「特性」の値(この例では「長さ」)を取得する。計算式作成部113は、この取得したカテゴリ区分「商品変動特性」に対応する項目「特性」の値を、項目「項目値コード」の値と見做して、項目「演算子」に設定される値「×」の右に連結する。 Note that, in the record with the serial number “3” in which the value “product variation characteristics” is set in the item “item classification”, the calculation formula creating unit 113 calculates the product type master 124 and the product type based on the product code entered in the input area 2101 . The type characteristic definition master 121 is referred to, and the value (in this example, "length") of the item "characteristic" corresponding to the category classification "merchandise variation characteristic" corresponding to the type code is obtained. The calculation formula creation unit 113 regards the value of the item "characteristic" corresponding to the acquired category classification "product variation characteristic" as the value of the item "item value code", and sets it to the item "operator". concatenate to the right of the value "x"

計算式作成部113は、連番「0」~「5」の各レコードにおいて生成された文字列を、連番順に連結して、最終的な計算式を作成する。図11の例では、連番「0」~「5」の各文字列「(厚み」、「×幅」、「×比重」、「×長さ」、「)」および「÷1,000,000」を連結し、図12において表示領域310に表示される、計算式を表す式文字列「(厚み×幅×比重×長さ)÷[定数 1,000,000]」を作成する。なお、この式文字列に含まれる「[定数」および「]」の各文字列は、項目「定数」に応じて、制御部110により補われる。 The calculation formula creation unit 113 creates a final calculation formula by concatenating the character strings generated in the records with the serial numbers "0" to "5" in the order of the serial numbers. In the example of FIG. 11, each character string of serial numbers "0" to "5" "(thickness", "x width", "x specific gravity", "x length", ")" and "÷1,000, 000” to create a formula character string “(thickness×width×specific gravity×length)÷[constant 1,000,000]” displayed in the display area 310 in FIG. Note that each character string of "[constant]" and "]" included in this expression character string is supplemented by the control unit 110 according to the item "constant".

式チェック画面300において、表示領域311は、表示領域310に表示される計算式に具体的な数値を当て嵌めた計算式が表示される。例えば、計算式作成部113は、他の画面、例えば商品の受注入力を行う受注入力画面にて入力装置150から入力された品番コードと商品変動特性値とを取得する。計算式作成部113は、取得した品番コードに基づき品番マスタ123およびカテゴリ別特性設定マスタ122を参照して、当該品番コードに対応する、カテゴリ区分「品種固定特性」における特性数値と、カテゴリ区分「品番固定特性」における特性数値とを取得する。 In the formula check screen 300 , a display area 311 displays a calculation formula obtained by applying specific numerical values to the calculation formula displayed in the display area 310 . For example, the calculation formula creation unit 113 acquires the product number code and the product variation characteristic value input from the input device 150 on another screen, for example, an order entry screen for entering an order for products. Based on the acquired product number code, the calculation formula creation unit 113 refers to the product number master 123 and the category-specific property setting master 122, and calculates the property numerical values in the category classification “variety fixed characteristics” corresponding to the product number code, and the category classification “ Acquire the characteristic numerical value in "Product number fixed characteristic".

図12の例では、計算式作成部113は、他の画面に入力された、例えば品番コード「ITA_914×1829×6」が入力される。計算処理部114は、品番マスタ123を参照し、入力された品番コード「ITA_914×1829×6」に対応する品番名「板鋼 914×1829×6」および品種「板鋼」を取得する。計算処理部114は、カテゴリ別特性設定マスタ122を参照して、取得した品種「板鋼」に対応する特性「比重」と、特性数値「7.85(Kg/1m3)」とを取得する。同様に、計算処理部114は、カテゴリ別特性設定マスタ122を参照して、取得した品番名「板鋼 914×1829×6」に対応する特性「厚み」および「幅」と、それぞれに対応する特性数値「6.0mm」および「914mm」を取得する。 In the example of FIG. 12, the calculation formula creating unit 113 receives, for example, the product number code "ITA_914×1829×6" that was input on another screen. The calculation processing unit 114 refers to the product number master 123 and acquires the product number name “steel plate 914×1829×6” and the product type “steel plate” corresponding to the input product number code “ITA_914×1829×6”. The calculation processing unit 114 refers to the property setting master by category 122, and acquires the property “specific gravity” and the property numerical value “7.85 (Kg/1m 3 )” corresponding to the acquired product type “plate steel”. . Similarly, the calculation processing unit 114 refers to the property setting master by category 122, and the properties “thickness” and “width” corresponding to the acquired product number name “plate steel 914×1829×6” and Obtain the characteristic values "6.0 mm" and "914 mm".

また、計算式作成部113は、当該他の画面に入力された商品変動特性値(この例では「1,000mm」)を取得する。 In addition, the calculation formula creation unit 113 acquires the product variation characteristic value (“1,000 mm” in this example) input to the other screen.

これに限らず、例えば計算定義マスタメンテ画面200におけるボタン214に対する操作に応じて、画面生成部115により、品番コードと商品変動特性値とを入力するための品番入力画面を表示させるようにしてもよい。品番入力画面において、品番コードの入力は、入力装置150からユーザが手動にて行ってもよいし、画面生成部115が品番マスタ123を参照してドロップダウンリストなどを生成し、ユーザに、このドロップダウンリストから選択させてもよい。計算式作成部113は、品番入力画面に入力された品番コードに基づき品番マスタ123およびカテゴリ別特性設定マスタ122を参照して、入力された品番コードに対応する、カテゴリ区分「品種固定特性」における特性数値と、カテゴリ区分「品番固定特性」における特性数値とを取得する。 Not limited to this, for example, a product number input screen for inputting a product number code and a product variation characteristic value may be displayed by the screen generation unit 115 in response to an operation on the button 214 on the calculation definition master maintenance screen 200. good. On the product number input screen, the user may manually enter the product number code from the input device 150, or the screen generation unit 115 may refer to the product number master 123 to generate a drop-down list or the like, and prompt the user to enter this code. You may choose from a drop-down list. The calculation formula creating unit 113 refers to the product number master 123 and the category-specific property setting master 122 based on the product number code entered on the product number input screen, and calculates the Acquire the characteristic numerical value and the characteristic numerical value in the category classification "product number fixed characteristic".

計算式作成部113は、取得した特性「厚み」、「幅」および「比重」に設定された各値「6.0mm」および「914mm」と、商品変動特性値「7.85(Kg/1m3)」とを、表示領域310に表示される計算式の対応する文字列とそれぞれ置き換えて、計算式を作成する。表示領域311には、このようにして作成された計算式「(6*914*7.85*1,000)/1,000,000」が表示される。なお、この例では、文字列式における演算子「×」を、「*」に置き換えて計算式を表示させている。 The calculation formula creation unit 113 calculates the values “6.0 mm” and “914 mm” set for the acquired characteristics “thickness”, “width” and “specific gravity” and the product variation characteristic value “7.85 (Kg/1m 3 )” is replaced with the corresponding character string of the calculation formula displayed in the display area 310 to create the calculation formula. The display area 311 displays the calculation formula "(6*914*7.85*1,000)/1,000,000" thus created. In this example, the calculation formula is displayed by replacing the operator "x" in the character string formula with "*".

ユーザは、これら表示領域310および311の表示により、計算定義マスタメンテ画面200において設定された計算式が意図したものであるか否かを容易に判定可能である。 The display of these display areas 310 and 311 allows the user to easily determine whether or not the calculation formula set on the calculation definition master maintenance screen 200 is intended.

式チェック画面300において、ボタン312は、式チェック画面300を拡大または縮小するためのボタンである。図12に示される式チェック画面300の状態でボタン312を操作することで、式チェック画面300が拡張され、計算式に関するさらに詳細な情報を表示させることができる。 A button 312 on the formula check screen 300 is a button for enlarging or reducing the formula check screen 300 . By operating a button 312 in the state of the formula check screen 300 shown in FIG. 12, the formula check screen 300 can be expanded and more detailed information regarding the calculation formula can be displayed.

図13は、実施形態に適用可能な、式チェック画面300においてボタン312が操作されることで表示される、拡張された式チェック画面300’の例を示す。なお、図13において、上述した図12と共通する部分には同一の符号を付して、詳細な説明を省略する。 FIG. 13 shows an example of an extended formula check screen 300' displayed by operating the button 312 on the formula check screen 300, which is applicable to the embodiment. In addition, in FIG. 13, the same reference numerals are assigned to the same parts as in FIG. 12 described above, and detailed description thereof will be omitted.

式チェック画面300’は、上述した式チェック画面300に対して、入力部216、217および218と、表示部220と、特性値表示部230とが追加されている。 A formula check screen 300 ′ is obtained by adding input sections 216 , 217 and 218 , a display section 220 , and a characteristic value display section 230 to the formula check screen 300 described above.

入力部216は、入力領域2161と、表示領域2162とを含む。入力領域2161は、品番コードを入力するための領域であって、初期値として、上述した他の画面(例えば受注入力画面)や、品番入力画面に入力された品番コードが表示されている。入力領域2161において、品番コードの入力は、ユーザが手動にて行ってもよいし、ユーザに、品番コードの一覧を含むドロップダウンリストから選択させてもよい。例えば、計算定義設定部112が品番マスタ123を参照して品番コードの一覧を取得し、取得した品番コードの一覧を画面生成部115に渡す。画面生成部115は、この品番コードの一覧に基づきドロップダウンリストなどを生成し、表示させる。表示領域2162は、入力領域2161に表示される品番コードに対応する品番名が表示される。 Input unit 216 includes an input area 2161 and a display area 2162 . An input area 2161 is an area for inputting a product number code, and as an initial value, the product number code input on the above-described other screen (for example, the order input screen) or the product number input screen is displayed. In the input area 2161, the user may manually enter the product number code, or the user may select from a drop-down list containing a list of product number codes. For example, the calculation definition setting unit 112 refers to the product number master 123 to acquire a list of product number codes, and passes the acquired product number code list to the screen generation unit 115 . The screen generation unit 115 generates and displays a drop-down list or the like based on the list of product number codes. A display area 2162 displays a product number name corresponding to the product number code displayed in the input area 2161 .

入力部217は、入力領域2171と、表示領域2172とを含む。入力領域2171は、商品変動特性の値を入力する領域である。入力領域2171は、初期値として、上述した他の画面(例えば受注入力画面)や、品番入力画面に入力された商品変動特性値が表示されている。 Input unit 217 includes an input area 2171 and a display area 2172 . The input area 2171 is an area for inputting the value of product variation characteristics. An input area 2171 displays, as an initial value, the product variation characteristic value input on the other screen (for example, the order input screen) or the product number input screen.

入力部218は、入力領域2181と、表示領域2182とを含む。入力領域2181は、計算結果の単位を示す単位コードを入力するための領域であって、初期値として、図11を用いて説明した入力領域2121に入力された単位コードが表示される。入力領域2181において、単位コードの入力は、ユーザが手動にて行ってもよいし、ユーザに、単位コードの一覧を含むドロップダウンリストから選択させてもよい。例えば、計算定義設定部112が単位マスタ125を参照して単位コードの一覧を取得し、取得した単位コードの一覧を画面生成部115に渡す。画面生成部115は、この単位コードの一覧に基づきドロップダウンリストなどを生成し、表示させる。表示領域2182は、入力領域2181に表示される単位コードに対応する単位名が表示される。 Input unit 218 includes an input area 2181 and a display area 2182 . The input area 2181 is an area for inputting a unit code indicating the unit of the calculation result, and displays the unit code input in the input area 2121 described with reference to FIG. 11 as an initial value. In input area 2181, the user may enter the unit code manually, or the user may select from a drop-down list containing a list of unit codes. For example, the calculation definition setting unit 112 refers to the unit master 125 to obtain a list of unit codes, and passes the obtained list of unit codes to the screen generation unit 115 . The screen generation unit 115 generates and displays a drop-down list or the like based on this list of unit codes. A display area 2182 displays a unit name corresponding to the unit code displayed in the input area 2181 .

表示部220は、品種コードを表示するための表示領域2201と、表示領域2201に表示される品種コードに対応する品種を表示する表示領域2202とを含む。表示領域2201は、図11の入力領域2101に入力された値が表示される。また、表示領域2202は、表示領域2201に入力された値に対応する品種名が表示される。表示領域2201は、表示される値の変更が不可とされる。 The display unit 220 includes a display area 2201 for displaying the product code and a display area 2202 for displaying the product corresponding to the product code displayed in the display area 2201 . A display area 2201 displays the values input to the input area 2101 in FIG. A display area 2202 displays the product name corresponding to the value input to the display area 2201 . In the display area 2201, the displayed value cannot be changed.

特性値表示部230は、カテゴリ別特性設定マスタ122における「カテゴリ区分」、「特性」および「特性数値」の各項目を含み、これら各項目に対し、入力領域2161に入力される品番コードに対応して設定された各値が表示される。例えば、画面生成部115は、計算処理部114が上述した表示領域311に計算式を表示させる際に取得した特性および特性数値を、カテゴリ区分に対応付けて、特性値表示部230に表示させる。 Characteristic value display section 230 includes the items of “category division”, “characteristic” and “characteristic value” in characteristic setting master by category 122, and corresponds to the item code entered in input area 2161 for each of these items. Each value set by For example, the screen generation unit 115 causes the characteristic value display unit 230 to display the characteristics and characteristic numerical values acquired when the calculation processing unit 114 displays the calculation formula in the display area 311 described above in association with the category division.

この特性値表示部230の表示により、表示領域310に表示される計算式と、表示部311に表示される具体的な数値による計算式との対応を容易に確認可能である。 By displaying the characteristic value display section 230, it is possible to easily confirm the correspondence between the calculation formula displayed in the display area 310 and the calculation formula based on the specific numerical values displayed in the display section 311. FIG.

また、特性値表示部230において、項目「特性数値」に設定される各値を変更可能とすることができる。この場合も、上述の計算定義マスタメンテ画面200の例と同様に、計算定義設定部112は、式チェック画面300’の特性値表示部230において変更された値に応じて、記憶部120に設定される、対応する計算定義マスタ126を更新する。これに限らず、計算定義設定部112は、式チェック画面300’の特性値表示部230に入力および表示される情報をRAM1002などに一時的に記憶し、所定のトリガに応じて、記憶した情報に基づき記憶部120に記憶される計算定義マスタ126を更新してもよい。 Also, in the characteristic value display section 230, each value set in the item "characteristic numerical value" can be changed. Also in this case, similarly to the example of the calculation definition master maintenance screen 200 described above, the calculation definition setting unit 112 sets in the storage unit 120 according to the value changed in the characteristic value display unit 230 of the formula check screen 300′. update the corresponding calculation definition master 126. Not limited to this, the calculation definition setting unit 112 temporarily stores information input and displayed in the characteristic value display unit 230 of the formula check screen 300′ in the RAM 1002 or the like, and stores the stored information in response to a predetermined trigger. Calculation definition master 126 stored in storage unit 120 may be updated based on.

ボタン312は、式チェック画面300’を図12の式チェック画面300に切り替えるためのボタンである。 A button 312 is a button for switching the formula check screen 300' to the formula check screen 300 of FIG.

[7.計算定義マスタに従った計算例]
次に、実施形態に係る計算定義マスタ126に従った計算の例について説明する。ここでは、図10(a)~図10(c)を用いて説明した、板鋼の重量計算を行うための計算定義マスタ126aを例にとって説明する。
[7. Calculation example according to the calculation definition master]
Next, an example of calculation according to the calculation definition master 126 according to the embodiment will be described. Here, the calculation definition master 126a for calculating the weight of plate steel, which has been described with reference to FIGS. 10(a) to 10(c), will be described as an example.

図14は、実施形態に適用可能な、計算式マスタ126による計算を行うための情報を入力する入力画面の例を示す。図14に例示される入力画面400は、商品の移動に係る計算を行うための移動入力の画面例である。入力画面400は、品番コードを入力するための入力部410と、商品変動特性値を入力するための入力部411と、員数を入力するための入力部412とを含む。また、入力画面400は、計算結果を表示するための表示部413をさらに含む。図14の例では、計算結果が「資産数量」として示されている。さらにまた、入力画面400は、再計算を指示するためのボタン420と、式チェックを実行するためのボタン421とをさらに含む。 FIG. 14 shows an example of an input screen for inputting information for calculation by the calculation formula master 126, which is applicable to the embodiment. An input screen 400 illustrated in FIG. 14 is an example of a movement input screen for performing calculations related to movement of products. The input screen 400 includes an input section 410 for inputting the product number code, an input section 411 for inputting the product variation characteristic value, and an input section 412 for inputting the quantity. Input screen 400 further includes display unit 413 for displaying the calculation result. In the example of FIG. 14, the calculation result is indicated as "asset quantity". Furthermore, the input screen 400 further includes a button 420 for instructing recalculation and a button 421 for executing formula check.

入力部410は、品番コードを入力するための入力領域4101と、入力領域4101に入力された品番コードに対応する品番名を表示するための表示領域4102とを含む。入力領域4101は、図5に示した品番マスタ123の項目「品番コード(CD)」に設定された値が入力される。入力領域4101に対する入力は、ユーザが手動にて行ってもよいし、ユーザに、品番コードの一覧を含むドロップダウンリストから選択させてもよい。例えば、計算処理部114が品番マスタ123を参照して品番コードの一覧を取得し、取得した品番コードの一覧を画面生成部115に渡す。画面生成部115は、この品番コードの一覧に基づきドロップダウンリストなどを生成し、表示領域4101に表示させる。 The input unit 410 includes an input area 4101 for inputting a product number code and a display area 4102 for displaying the product number name corresponding to the product number code input to the input area 4101 . In the input area 4101, the value set in the item "product number code (CD)" of the product number master 123 shown in FIG. 5 is inputted. Input to the input area 4101 may be performed manually by the user, or may be selected from a drop-down list containing a list of product number codes. For example, the calculation processing unit 114 refers to the product number master 123 to acquire a list of product number codes, and passes the acquired product number code list to the screen generation unit 115 . The screen generation unit 115 generates a drop-down list or the like based on this product number code list, and displays it in the display area 4101 .

また、計算処理部114は、品番マスタ123を参照し、項目「品番名」から入力領域4101に入力された値に対応する値を取得し、画面生成部115に渡す。画面生成部115は、計算処理部114から渡された品番名の値を表示領域4102に表示させる。図14の例では、入力領域4101に対して品番コード「ITA_914×1829×6」が入力され、表示領域4102に、品番コード「ITA_914×1829×6」に品番マスタ123において関連付けられる品番名「板鋼 914×1829×6」が表示されている。 The calculation processing unit 114 also refers to the product number master 123 , acquires the value corresponding to the value input in the input area 4101 from the item “product number name”, and passes it to the screen generation unit 115 . The screen generation unit 115 displays the product number name value passed from the calculation processing unit 114 in the display area 4102 . In the example of FIG. 14, the product number code "ITA_914×1829×6" is input to the input area 4101, and the product number name "plate" associated with the product number code "ITA_914×1829×6" in the product number master 123 is displayed in the display area 4102. Steel 914×1829×6” is displayed.

入力部411は、項目「商品変動特性値」に設定する値を入力するための入力領域4111と、入力領域4111に入力された値に対応する単位を表示するための表示領域4112とを含む。計算処理部114は、カテゴリ別特性設定マスタ122を参照して、入力領域4101に入力された品番コードに対応する品種に対して予め定められた単位を取得し、取得した単位を画面生成部115に渡す。画面生成部115は、計算処理部114から渡された単位を表示領域4112に表示させる。図14の例では、入力領域4111に対して値「1,000,000.00」が入力され、表示領域4112に、入力領域4101に入力された品番コードに対応する品種に対応する単位「mm」が表示されている。 The input unit 411 includes an input area 4111 for inputting a value to be set in the item “product variation characteristic value” and a display area 4112 for displaying a unit corresponding to the value input to the input area 4111. Calculation processing unit 114 refers to property setting master 122 by category, acquires a predetermined unit for the product type corresponding to the product number code entered in input area 4101 , and displays the acquired unit to screen generation unit 115 . pass to The screen generation unit 115 displays the units passed from the calculation processing unit 114 on the display area 4112 . In the example of FIG. 14, the value "1,000,000.00" is input to the input area 4111, and the unit "mm ” is displayed.

入力部412は、員数を設定する値を入力するための入力領域4121と、入力領域4121に入力された値に対応する単位を表示するための表示領域4122とを含む。計算処理部114は、品番マスタ123の項目「員数単位」を参照して、入力領域4101に入力された品番コードに対応する値を取得し、取得した当該値を画面生成部115に渡す。画面生成部115は、計算処理部114から渡された、品番コードに対応する当該値を表示領域4122に表示させる。図14の例では、入力領域4121に対して値「100」が入力され、表示領域4122に、入力領域4101に入力された品番コードに対応する単位「枚」が表示されている。 The input unit 412 includes an input area 4121 for inputting a value for setting the quantity, and a display area 4122 for displaying the unit corresponding to the value input to the input area 4121 . The calculation processing unit 114 refers to the item “quantity unit” of the product number master 123 to acquire the value corresponding to the product number code entered in the input area 4101 and passes the acquired value to the screen generation unit 115 . The screen generation unit 115 displays the value corresponding to the product number code passed from the calculation processing unit 114 on the display area 4122 . In the example of FIG. 14, the value "100" is input to the input area 4121, and the display area 4122 displays the unit "pieces" corresponding to the product number code input to the input area 4101. FIG.

表示部413は、表示領域4131および4132を含む。表示領域4131は、入力部410、411および412に入力された値に基づく計算結果が表示される。表示領域4132は、表示領域4131に表示される値に対する単位が表示される。計算処理部114は、入力領域4101に入力された品番コードに基づき品番マスタ123を参照して項目「品種」の値を取得し、取得した項目「品種」の値に基づきさらに品種マスタ124を参照して、取得した項目「品種」の値に対応する、項目「換算単位」の値を取得し、取得した当該値を画面生成部115に渡す。画面生成部115は、計算処理部114から渡された、項目「換算単位」の当該値を、表示領域4132に表示させる。 Display unit 413 includes display areas 4131 and 4132 . Display area 4131 displays the calculation results based on the values input to input sections 410 , 411 and 412 . A display area 4132 displays units for values displayed in the display area 4131 . The calculation processing unit 114 refers to the product number master 123 based on the product number code entered in the input area 4101 to obtain the value of the item "product type", and further references the product type master 124 based on the obtained value of the item "product type". Then, the value of the item “conversion unit” corresponding to the value of the acquired item “variety” is acquired, and the acquired value is passed to the screen generation unit 115 . The screen generation unit 115 causes the display area 4132 to display the value of the item “conversion unit” passed from the calculation processing unit 114 .

入力画面400において、ボタン420は、入力画面400の各入力領域4101、4111および4121に入力された値に従い計算処理部114に再計算を指示するための、換算数量再計算ボタンである。例えば、各入力領域4101、4111および4121に入力する入力値を変更した場合に、このボタン420を操作することで計算処理部114は、変更された入力値を用いて再計算を行う。 On the input screen 400 , a button 420 is a conversion amount recalculation button for instructing the calculation processing unit 114 to recalculate according to the values input to the input areas 4101 , 4111 and 4121 of the input screen 400 . For example, when the input values to be input to the input areas 4101, 4111, and 4121 are changed, operating this button 420 causes the calculation processing unit 114 to perform recalculation using the changed input values.

ボタン421は、式チェックを指示するための式チェックボタンである。画面生成部115は、ボタン421に対する操作に応じて、図12を用いて説明した式チェック画面300を表示させる。画面生成部115は、この場合においても、式チェック画面300のボタン312の操作に応じて、式チェック画面300の表示を、図13に示した式チェック画面300’に切り替える。なお、入力画面400からこの式チェック画面300’に遷移した場合は、入力領域2161、2171および2181、ならびに、特性値表示部230に表示される値は変更できず、閲覧のみとなる。 A button 421 is a formula check button for instructing formula check. The screen generator 115 displays the formula check screen 300 described with reference to FIG. 12 in response to the operation on the button 421 . Even in this case, the screen generator 115 switches the display of the formula check screen 300 to the formula check screen 300' shown in FIG. Note that when the input screen 400 transitions to the formula check screen 300', the values displayed in the input areas 2161, 2171 and 2181 and the characteristic value display section 230 cannot be changed and can only be viewed.

図15は、実施形態に係る計算処理を示す一例のフローチャートである。この図15のフローチャートによる処理の実行に先立って、ユーザは、上述の入力画面400における入力領域4101、4111および4121に対して、品番コード、商品変動特性値および員数をそれぞれ入力する。入力領域4101、4111および4121に対する入力が完了すると、図15のフローチャートによる処理が開始される。 FIG. 15 is an exemplary flowchart illustrating calculation processing according to the embodiment. Prior to the execution of the processing according to the flowchart of FIG. 15, the user inputs the product number code, product variation characteristic value and quantity to the input areas 4101, 4111 and 4121 on the input screen 400 described above. When the input to the input areas 4101, 4111 and 4121 is completed, the processing according to the flowchart of FIG. 15 is started.

ステップS10で、計算処理部114は、計算実行時に、入力画面400の各入力領域4101、4111および4121に入力された、品番コード(商品コード)、商品変動特性値および員数をそれぞれ受け取る。また、計算処理部114は、表示領域4132に表示される項目「換算単位」の値を、計算結果に対する単位として取得する。 In step S10, the calculation processing unit 114 receives the product number code (product code), the product variation characteristic value, and the quantity, which were input to the input areas 4101, 4111, and 4121 of the input screen 400 when executing the calculation. Further, the calculation processing unit 114 acquires the value of the item “conversion unit” displayed in the display area 4132 as the unit for the calculation result.

次のステップS11で、計算処理部114は、ステップS10で取得した品番コードに基づき品番マスタ123を参照し、項目「品番名」および「品種」から、当該品番コードに対応する品番名および品種を特定する。計算処理部114は、品種マスタ124を参照し、項目「品種コード」から、特定した品種に対応する品種コードを特定する。また、計算処理部114は、品種別特性定義マスタ121を参照し、項目「カテゴリ区分」から、特定した品種に対応するカテゴリ区分を取得する。ここでは、計算処理部114は、少なくとも、品種に対応するカテゴリ区分「品番固定特性」の項目「特性」の値を特定する。計算処理部114は、当該品種に対応するカテゴリ区分が「品種固定特性」をさらに含む場合、対応する項目「特性」の値をさらに特定する。 In the next step S11, the calculation processing unit 114 refers to the product number master 123 based on the product number code acquired in step S10, and from the items "product number name" and "product type", determines the product number name and product type corresponding to the product number code. Identify. The calculation processing unit 114 refers to the product type master 124 and identifies the product type code corresponding to the identified product type from the item “product type code”. Further, the calculation processing unit 114 refers to the product-specific characteristic definition master 121 and acquires the category classification corresponding to the identified product type from the item “category classification”. Here, the calculation processing unit 114 specifies at least the value of the item "characteristic" of the category classification "product number fixed characteristic" corresponding to the product type. If the category classification corresponding to the product type further includes "variety fixed characteristics", calculation processing unit 114 further specifies the value of the corresponding item "characteristics".

次のステップS12で、計算処理部114は、対象となる計算定義マスタ126を特定する。すなわち、計算処理部114は、ステップS11における品種コード特定の際に特定した品種(R100)と、ステップS10において取得した計算結果単位(R101)と、ステップS10で取得した商品変動特性値(R102)に対する閾値判定とに基づき、対象となる計算定義マスタ126を特定する。 In the next step S12, the calculation processing unit 114 identifies the target calculation definition master 126. FIG. That is, the calculation processing unit 114 determines the product type (R100) specified when specifying the product type code in step S11, the calculation result unit (R101) acquired in step S10, and the product variation characteristic value (R102) acquired in step S10. The target calculation definition master 126 is specified based on the threshold value determination for .

ステップS12における、商品変動特性値に対する閾値判定について説明する。例えば、記憶部120に品種と計算結果単位とが一致する複数の計算定義マスタ126が記憶されている場合、計算処理部114は、この複数の計算定義マスタ126それぞれから、キー項目である項目「変動特性閾値」の値(変動特性閾値)を取得する。計算処理部114は、取得した複数の変動特性閾値のうち、ステップS10で取得した商品変動特性値以下であって、且つ、最大の変動特性閾値を特定する。計算処理部114は、この特定された変動特性閾値が設定される計算定義マスタ126を、対象の計算特定マスタ126として記憶部120に記憶される複数の計算定義マスタ126から特定する。 The threshold determination for the product variation characteristic value in step S12 will be described. For example, if the storage unit 120 stores a plurality of calculation definition masters 126 that match the product type and calculation result unit, the calculation processing unit 114 retrieves the key item “ Acquire the value of "variation characteristic threshold" (variation characteristic threshold). The calculation processing unit 114 identifies the largest variation threshold that is equal to or less than the product variation characteristic value acquired in step S10 among the plurality of acquired variation thresholds. Calculation processing unit 114 identifies calculation definition master 126 to which the identified variation characteristic threshold is set from a plurality of calculation definition masters 126 stored in storage unit 120 as target calculation identification master 126 .

次のステップS13で、計算処理部114は、ステップS12で特定された対象の計算定義マスタ126を記憶部120から取得する。すなわち、上述のステップS10~ステップS12において、計算定義マスタ126におけるキー項目である項目「品種」、「変動特性閾値」および「計算結果(計算結果単位)」が特定されている(R103、R104、R105)。計算処理部114は、この特定されたキー項目の値に基づき、記憶部120に記憶される複数の計算定義マスタ126から、対象の計算定義マスタ126を取得する。 In the next step S13, the calculation processing unit 114 acquires from the storage unit 120 the target calculation definition master 126 specified in step S12. That is, in the steps S10 to S12 described above, the key items in the calculation definition master 126, namely, the items "variety", "variation characteristic threshold", and "calculation result (calculation result unit)" are specified (R103, R104, R105). The calculation processing unit 114 acquires the target calculation definition master 126 from the plurality of calculation definition masters 126 stored in the storage unit 120 based on the value of the specified key item.

次のステップS14で、計算処理部114は、ステップS13で取得した対象の計算定義マスタ126に対して、項目区分毎に数値をマッピングする。 In the next step S14, the calculation processing unit 114 maps numerical values for each item classification to the target calculation definition master 126 acquired in step S13.

より具体的には、計算処理部114は、対象の計算定義マスタ126を駆動表として、ステップS11で特定された、品種固定特性および品番固定特性の各特性の値をカテゴリ別特性設定マスタ122から取得する(R106)。計算処理部114は、取得した各値を、対象の計算定義マスタ126の当該各値に対応する項目「項目値コード」の値に関連付ける。また、計算処理部114は、ステップS10で入力画面400において入力領域4111に入力された商品変動特性値を計算定義マスタ126における項目「項目区分」の値「商品変動特性」に対応する値として保持する(R107)。さらに、計算処理部114は、ステップS10で入力画面400において入力領域4121に入力された員数の値を、計算定義マスタ126に定義される計算式による計算結果に対する乗数として保持する(R108)。さらにまた、計算処理部114は、ステップS13で取得した計算定義マスタ126の項目「定数」に設定される固定値、および、項目「括弧他Start」および「括弧他End」に設定される端数処理の設定値を保持する(R109)。 More specifically, the calculation processing unit 114 uses the target calculation definition master 126 as a driving table to obtain the value of each characteristic of the product type fixed characteristic and the product number fixed characteristic specified in step S11 from the characteristic setting master by category 122. Acquire (R106). The calculation processing unit 114 associates each acquired value with the value of the item “item value code” corresponding to each value in the target calculation definition master 126 . Further, the calculation processing unit 114 holds the product variation characteristic value input to the input area 4111 on the input screen 400 in step S10 as a value corresponding to the value "product variation characteristic" of the item "item classification" in the calculation definition master 126. (R107). Further, the calculation processing unit 114 holds the value of the quantity input in the input area 4121 on the input screen 400 in step S10 as a multiplier for the calculation result by the formula defined in the calculation definition master 126 (R108). Furthermore, the calculation processing unit 114 determines the fixed value set in the item "constant" of the calculation definition master 126 acquired in step S13, and the rounding value set in the items "parentheses Start" and "parentheses End". is held (R109).

次のステップS15で、計算処理部114は、計算定義マスタ126の項目「括弧他Start」、「演算子」、「項目値コード」、「定数」および「括弧他End」の値を、レコード内の並び順、および、各レコードの項目「連番」の順に連結し、計算式を表す式文字列を作成する。計算処理部114は、作成した式文字列に、ステップS14でマッピングした各数値を適用させて、当該式文字列による計算式の計算を実行する。計算処理部114は、計算式による計算結果に対して、ステップS14で保持されている員数を乗じて、最終的な計算結果を算出する。この計算結果は、図14に示した入力画面400の表示領域4131に表示される。 In the next step S15, the calculation processing unit 114 stores the values of the items “Parentheses Start”, “Operator”, “Item value code”, “Constant” and “Parentheses End” of the calculation definition master 126 in the record. , and the order of the item "serial number" of each record to create a formula character string that represents the calculation formula. The calculation processing unit 114 applies each numerical value mapped in step S14 to the created expression string, and executes calculation of the calculation expression using the expression string. The calculation processing unit 114 multiplies the calculation result by the calculation formula by the number of members held in step S14 to calculate the final calculation result. This calculation result is displayed in the display area 4131 of the input screen 400 shown in FIG.

なお、入力画面400において換算数量再計算を指示するボタン420が操作された場合には、計算処理部114は、図15のフローチャートのステップS10からの処理を再度実行する。また、式チェックを指示するボタン421が操作された場合には、計算処理部114は、ステップS15で作成した式文字列と、当該式文字列に対してステップS14でマッピングした各数値を適用させた計算式とを画面生成部115に渡す。 Note that when the button 420 for instructing recalculation of the converted quantity is operated on the input screen 400, the calculation processing unit 114 executes the processing from step S10 of the flowchart of FIG. 15 again. Further, when the button 421 for instructing expression check is operated, the calculation processing unit 114 applies the expression character string created in step S15 and each numerical value mapped in step S14 to the expression character string. The calculated formula is passed to the screen generation unit 115 .

なお、計算処理部114は、必要に応じて、ステップS15で算出した計算結果に対して単位換算を行うことができる。単位換算は、例えばユーザ操作により指示される。 Note that the calculation processing unit 114 can perform unit conversion on the calculation result calculated in step S15 as necessary. Unit conversion is instructed, for example, by a user operation.

上述した図15のフローチャートによる各処理を、図10(b)を用いて説明した、板鋼の重量計算を行うための計算定義マスタ126aを例にとって、より具体的に説明する。 Each process according to the flowchart of FIG. 15 described above will be described more specifically, taking as an example the calculation definition master 126a for calculating the weight of the steel plate, which has been described with reference to FIG. 10B.

図15のフローチャートによる処理の実行に先立って、ユーザは、上述の入力画面400における入力領域4101、4111および4121に対して、品番コード「ITA_914×1829×6」、商品変動特性値「1,000,000.00」および員数「100」をそれぞれ入力する。入力領域4101、4111および4121に対する入力が完了すると、図15のフローチャートによる処理が開始される。 Prior to the execution of the process according to the flowchart of FIG. , 000.00” and the number of members “100” respectively. When the input to the input areas 4101, 4111 and 4121 is completed, the processing according to the flowchart of FIG. 15 is started.

ステップS10で、計算処理部114は、計算実行時に、入力画面400の各入力領域4101、4111および4121に入力された、品番コード「ITA_914×1829×6」、商品変動特性値「1,000.00」および員数「100」をそれぞれ受け取る。また、計算処理部114は、表示領域4132に表示される項目「換算単位」の値「Kg」を、計算結果に対する単位として取得する。 In step S10, the calculation processing unit 114 calculates the product number code "ITA_914×1829×6" and the product variation characteristic value "1,000. 00” and the number of members “100” respectively. Further, the calculation processing unit 114 acquires the value “Kg” of the item “conversion unit” displayed in the display area 4132 as the unit for the calculation result.

次のステップS11で、計算処理部114は、ステップS10で取得した品番コード「ITA_914×1829×6」に基づき品番マスタ123を参照し、項目「品番名」および「品種」から、当該品番コードに対応する品番名「板鋼 914×1829×6」および品種「板鋼」を特定する。計算処理部114は、品種マスタ124を参照し、項目「品種コード」から、特定した品種「板鋼」に対応する品種コード「ITA」を特定する。また、計算処理部114は、品種別特性定義マスタ121を参照し、項目「カテゴリ区分」から、特定した品種「板鋼」に対応するカテゴリ区分「品種固定特性」および「品番固定特性」を取得する。また、計算処理部114は、取得したカテゴリ区分「品種固定特性」に対応する特性「比重」と、カテゴリ区分「品番固定特性」に対応する特性「厚み」および「幅」とを取得する。 In the next step S11, the calculation processing unit 114 refers to the product number master 123 based on the product number code "ITA_914×1829×6" acquired in step S10, and from the items "product number name" and "product type", The corresponding product number name “steel plate 914×1829×6” and type “steel plate” are specified. The calculation processing unit 114 refers to the product type master 124 and identifies the product type code “ITA” corresponding to the identified product type “plate steel” from the item “product type code”. Further, the calculation processing unit 114 refers to the product-specific property definition master 121, and acquires the category classification “fixed product type characteristics” and “fixed product number characteristics” corresponding to the specified product type “plate steel” from the item “category classification”. do. The calculation processing unit 114 also acquires the characteristic "specific gravity" corresponding to the acquired category classification "variety fixed characteristic" and the characteristics "thickness" and "width" corresponding to the category classification "product number fixed characteristic".

次のステップS12で、計算処理部114は、対象となる計算定義マスタ126aを特定する。すなわち、計算処理部114は、ステップS11における品種コード特定の際に特定した品種「板鋼」と、ステップS10において取得した計算結果単位「Kg」と、ステップS10で取得した商品変動特性値「1,000.00」に対する閾値判定とに基づき、対象となる計算定義マスタ126を特定する。 In the next step S12, the calculation processing unit 114 identifies the target calculation definition master 126a. That is, the calculation processing unit 114 calculates the product type “plate steel” specified when the product type code is specified in step S11, the calculation result unit “Kg” acquired in step S10, and the product fluctuation characteristic value “1 , 000.00”, the target calculation definition master 126 is identified.

計算処理部114は、記憶部120に記憶される複数の計算定義マスタ126から、品種「板鋼」と計算結果単位「Kg」とが一致する計算定義マスタ126aを特定し、特定した計算定義マスタ126aから、キー項目である項目「変動特性閾値」の値「0」を取得する。この場合、1つの計算定義マスタ126aしか取得されておらず、当該計算定義マスタ126aにおける項目「変動特性閾値」の値が「0」であり、ステップS10で取得した商品変動特性値が「1,000.00」であるため、変動特性閾値は、「0」に特定される。計算定義マスタ126aは、この条件に合致しているため、対象の計算定義マスタ126aとして特定される。次のステップS13で、計算処理部114は、ステップS12で特定された対象の計算定義マスタ126aを記憶部120から取得する。 Calculation processing unit 114 identifies calculation definition master 126a in which product type “steel plate” and calculation result unit “Kg” match from a plurality of calculation definition masters 126 stored in storage unit 120, and selects the identified calculation definition master. From 126a, the value "0" of the key item "variation characteristic threshold" is obtained. In this case, only one calculation definition master 126a is acquired, the value of the item "variation characteristic threshold" in the calculation definition master 126a is "0", and the commodity variation characteristic value acquired in step S10 is "1, 000.00”, the variability threshold is specified as “0”. Since the calculation definition master 126a meets this condition, it is identified as the target calculation definition master 126a. In the next step S13, the calculation processing unit 114 acquires from the storage unit 120 the target calculation definition master 126a specified in step S12.

次のステップS14で、計算処理部114は、ステップS13で取得した対象の計算定義マスタ126aに対して、項目区分毎に数値をマッピングする。 In the next step S14, the calculation processing unit 114 maps numerical values for each item category to the target calculation definition master 126a acquired in step S13.

より具体的には、計算処理部114は、対象の計算定義マスタ126aを駆動表として、ステップS11で特定された、品種固定特性「比重」の値「7.85」と、品番固定特性「厚み」および「幅」の各値「6」および「914」とをカテゴリ別特性設定マスタ122から取得する。計算処理部114は、取得した比重の値「7.85」と、厚みおよび幅の各値「6」および「914」とを、対象の計算定義マスタ126aの当該各値に対応する項目「項目値コード」の値「比重」、「厚み」および「幅」にそれぞれ関連付ける。 More specifically, using the target calculation definition master 126a as a drive table, the calculation processing unit 114 calculates the value "7.85" of the product type fixed characteristic "specific gravity" and the product number fixed characteristic "thickness" specified in step S11. and "Width" values "6" and "914" are obtained from the property setting master 122 for each category. The calculation processing unit 114 stores the obtained specific gravity value “7.85” and the thickness and width values “6” and “914” as items corresponding to the respective values in the target calculation definition master 126a. Value Code” values “Specific Gravity”, “Thickness” and “Width”, respectively.

また、計算処理部114は、ステップS10で入力画面400において入力領域4111に入力された商品変動特性値「1,000.00」を計算定義マスタ126aにおける項目「項目区分」の値「商品変動特性」に対応する値として保持する。さらに、計算処理部114は、ステップS10で入力画面400において入力領域4121に入力された員数の値「100」を、計算定義マスタ126aに定義される計算式による計算結果に対する乗数として保持する。さらにまた、計算処理部114は、ステップS13で取得した計算定義マスタ126aの項目「定数」に設定される固定値「1,000,000」を保持する。計算定義マスタ126aにおいては、端数処理は設定されていないため、端数処理の設定値は保持されない。 Further, the calculation processing unit 114 converts the commodity fluctuation characteristic value "1,000.00" input in the input area 4111 on the input screen 400 in step S10 into the value "commodity fluctuation characteristic" of the item "item classification" in the calculation definition master 126a. " is retained as a value corresponding to ". Further, the calculation processing unit 114 holds the value "100" of the number of pieces inputted in the input area 4121 on the input screen 400 in step S10 as a multiplier for the calculation result by the calculation formula defined in the calculation definition master 126a. Furthermore, the calculation processing unit 114 holds the fixed value "1,000,000" set in the item "constant" of the calculation definition master 126a acquired in step S13. Since rounding is not set in the calculation definition master 126a, the set value for rounding is not held.

次のステップS15で、計算処理部114は、計算定義マスタ126aの項目「括弧他Start」、「演算子」、「項目値コード」、「定数」および「括弧他End」の値を、レコード内の並び順、および、各レコードの項目「連番」の順に連結し、計算式を表す式文字列「(厚み×幅×比重×長さ)÷定数」を作成する。計算処理部114は、作成した式文字列「(厚み×幅×比重×長さ)÷定数」に、ステップS14でマッピングした各数値を適用させて計算式「(6×914×7.85×1,000.00)÷1,000,000」を作成し、当該計算式の計算を実行する。この例では、計算結果として値「43.0494」が得られる。計算処理部114は、例えばRAM1002あるいはストレージ1004に計算結果を格納する。 In the next step S15, the calculation processing unit 114 puts the values of the items "brackets and others Start", "operator", "item value code", "constant" and "brackets and others End" of the calculation definition master 126a into the record. and the order of the item "serial number" of each record to create a formula character string "(thickness x width x specific gravity x length)/constant" representing the calculation formula. The calculation processing unit 114 applies each numerical value mapped in step S14 to the created formula character string "(thickness x width x specific gravity x length)/constant" to obtain the calculation formula "(6 x 914 x 7.85 x 1,000.00)÷1,000,000" and execute the calculation of the formula. In this example, the value "43.0494" is obtained as a calculation result. The calculation processing unit 114 stores calculation results in the RAM 1002 or the storage 1004, for example.

計算処理部114は、計算式による計算結果に対して、ステップS14で保持されている員数「100」を乗じて、最終的な計算結果「4304.94Kg」を算出する。この計算結果は、図14に示した入力画面400の表示領域4131に表示される。 The calculation processing unit 114 multiplies the calculation result by the calculation formula by the number of pieces "100" held in step S14 to calculate the final calculation result "4304.94 kg". This calculation result is displayed in the display area 4131 of the input screen 400 shown in FIG.

[8.実施形態の第2の適用例]
図16および図17を用いて、実施形態に係る計算定義マスタ126の第2の適用例について説明する。第2の適用例は、計算定義マスタ126を管材(パイプ)の重量計算に適用した例である。図16(a)は、パイプの重量計算を行うための公式を示す。パイプ(管材)1m当たりの重量は、計算式「((外形-厚み)×厚み×3.1416×比重)/定数」を公式として計算される。定数は、厚み、幅および長さの単位が「mm」、比重の単位が「Kg/1m3」であり、計算結果として必要な単位が「Kg」である場合、図16(a)の例のように「1,000」となる。
[8. Second application example of the embodiment]
A second application example of the calculation definition master 126 according to the embodiment will be described with reference to FIGS. 16 and 17. FIG. A second application example is an example in which the calculation definition master 126 is applied to calculation of the weight of a pipe material (pipe). FIG. 16(a) shows the formula for calculating the weight of the pipe. The weight per 1 m of pipe (tubing material) is calculated using the formula “((outer shape−thickness)×thickness×3.1416×specific gravity)/constant”. For the constant, the unit of thickness, width and length is "mm", the unit of specific gravity is "Kg/1m 3 ", and the unit required as a result of calculation is "Kg". becomes "1,000".

図16(b)は、図16(a)の公式に対応する計算式を定義する計算定義マスタ126bの例を示す。図16(b)の例では、キー項目中の項目「品種コード」の値「パイプ」と、項目「変動特性閾値」の値「0」と、項目「計算結果」の値「Kg」に従い図16(a)の公式が特定される。 FIG. 16(b) shows an example of calculation definition master 126b that defines a calculation formula corresponding to the formula in FIG. 16(a). In the example of FIG. 16(b), the value "pipe" of the item "variety code" in the key items, the value "0" of the item "variation characteristic threshold", and the value "Kg" of the item "calculation result" are used. The formula for 16(a) is specified.

図16(b)において、特定された公式および項目「項目区分」の値に従い、連番「0」~「8」のレコードに、図16(a)の公式の順に従い、「項目区分」、「括弧他Start」、「演算子」、「項目値コード」、「定数」および「括弧他End」の各項目の値が設定されている。 In FIG. 16(b), according to the specified formula and the value of the item "item classification", in the records with serial numbers "0" to "8", according to the order of the formula in FIG. 16(a), "item classification" Values are set for each of the items "brackets, etc. Start", "operator," "item value code," "constant," and "brackets, etc. End".

図16(b)において、連番「0」は、項目「項目区分」が値「ダミー」とされ、項目「括弧他Start」に値「(」が設定される。 In FIG. 16B, the serial number “0” has the item “item classification” set to the value “dummy” and the item “brackets, etc. Start” set to the value “(”.

連番「1」~「3」は、それぞれ項目「項目区分」が値「品番固定特性」に設定されている。連番「1」は、項目「括弧他Start」に値「(」が設定され、項目「項目値コード」に値「外径」が設定される。連番「2」は、項目「演算子」に値「-」が設定され、項目「項目値コード」に値「厚み」が設定され、項目「括弧他End」に、連番「1」の項目「括弧他Start」の値「(」と対となる値「)」が設定される。連番「3」は、項目「演算子」に値「×」が設定され、項目「項目値コード」に値「厚み」が設定される。 For serial numbers "1" to "3", the item "item classification" is set to the value "product number fixed characteristic". For the serial number "1", the value "(" is set in the item "parentheses and other Start", and the value "outer diameter" is set in the item "item value code". ” is set to the value “-”, the item “Item Value Code” is set to the value “Thickness”, and the item “Parentheses End” is set to the value “(” of the item “Parentheses Start” with the serial number “1” For the serial number "3", the value "x" is set in the item "operator" and the value "thickness" is set in the item "item value code".

連番「4」は、項目「項目区分」に値「固定値」が設定され、項目「演算子」に値「×」が設定され、項目「定数」に値「3.1416」が設定される。連番「5」は、項目「項目区分」に値「品種固定特性」が設定され、項目「演算子」に値「×」が設定され、項目「項目値コード」に値「比重」が設定される。連番「6」は、項目「項目区分」に値「商品変動特性」が設定され、項目「演算子」に値「×」が設定される。 For serial number "4", the value "fixed value" is set in the item "item classification", the value "x" is set in the item "operator", and the value "3.1416" is set in the item "constant". be. For the serial number "5", the value "fixed breed characteristic" is set in the item "item classification", the value "x" is set in the item "operator", and the value "gravity" is set in the item "item value code". be done. For the serial number "6", the item "item classification" is set to the value "merchandise variation characteristics" and the item "operator" is set to the value "x".

連番「7」は、項目「項目区分」が値「ダミー」とされ、項目「括弧他End」に、連番「0」の項目「括弧他Start」の値「(」と対となる値「)」が設定される。 The serial number "7" has the item "item classification" set to the value "dummy", and the item "brackets, etc. End" has a value paired with the value "(" of the item "brackets, etc. Start" of the serial number "0". ")" is set.

連番「0」および「7」の括弧の対、ならびに、連番「1」および「2」の括弧の対に示されるように、計算定義マスタ126bにおいては、多重の括弧演算を設定可能である。また、連番「2」および「3」に示されるように、同一の項目区分および項目値コードを複数設定することも可能である。 Multiple parenthesis operations can be set in the calculation definition master 126b, as shown in the pair of parentheses with serial numbers "0" and "7" and the pair of parentheses with serial numbers "1" and "2". be. It is also possible to set a plurality of identical item classifications and item value codes, as indicated by serial numbers "2" and "3".

図16(c)は、図16(b)の計算定義マスタ126bに対して、品番名「パイプ 165.0×5.0」のパイプ(管材)を想定して具体的な数値を代入した例を示す。例えば計算処理部114は、連番「1」~「3」および「5」の各レコードでは、項目「品種コード」および項目「項目区分」の値に従い、図4のカテゴリ別特性設定マスタ122からそれぞれ対応する値「165」(外径)、「5」(厚み)および「7.85」(比重)を取得し、公式に当てはめる数値として設定する。厚みを示す値「5」は、連番「2」および「3」において繰り返し用いられている。また、連番「6」の、商品変動特性のレコードでは、ユーザにより入力された値「1,000」(長さ)が公式に当てはめる数値として設定される。さらに、連番「8」の固定値のレコードでは、公式に従い値「1,000,000」が設定される。 FIG. 16(c) is an example of substituting specific numerical values for the calculation definition master 126b of FIG. indicates For example, the calculation processing unit 114, for each record with serial numbers "1" to "3" and "5", according to the values of the item "variety code" and the item "item classification", The corresponding values of "165" (outer diameter), "5" (thickness) and "7.85" (specific gravity) are obtained and set as numerical values to be applied to the formula. The value "5" indicating the thickness is repeated in the serial numbers "2" and "3". Also, in the record of product fluctuation characteristics with the serial number "6", the value "1,000" (length) input by the user is set as the numerical value to be applied to the formula. Furthermore, in the fixed value record with the serial number "8", the value "1,000,000" is set according to the formula.

図11を用いて説明した計算定義マスタメンテ画面200は、この計算定義マスタ126bに対しても同様に適用可能であるので、ここでの詳細な説明を省略する。 The calculation definition master maintenance screen 200 described with reference to FIG. 11 is similarly applicable to this calculation definition master 126b, so detailed description thereof will be omitted here.

図17は、図16(b)および図16(c)に対応する式チェック画面300の例を示す。なお、図17において、上述した図12と共通する部分には同一の符号を付して、詳細な説明を省略する。また、ここでは、式チェック画面300は、上述した計算定義マスタメンテ画面200のボタン214に対する操作に応じて表示された画面であるものとする。 FIG. 17 shows an example of the formula check screen 300 corresponding to FIGS. 16(b) and 16(c). In addition, in FIG. 17, the same reference numerals are assigned to the same parts as in FIG. 12 described above, and detailed description thereof will be omitted. Also, here, the formula check screen 300 is assumed to be a screen displayed in response to the operation of the button 214 of the calculation definition master maintenance screen 200 described above.

計算式作成部113は、上述した計算定義マスタメンテ画面200に係る図12の式チェック画面300における説明と同様に、計算定義マスタ126bの各項目「括弧他Start」、「演算子」、「項目値コード」、「定数」および「括弧他End」に設定される値を、各レコードにおいてはレコード内での並び順に従い左から右に連結して文字列を作成する。さらに、計算式作成部113は、各レコードにおいて作成した各文字列を、各レコードの項目「連番」の順に連結し、最終的な計算式を表す式文字列を生成する。式チェック画面300の表示領域310には、このようにして作成された式文字列「((外径-厚み)×厚み×[定数 3.1416]×比重×長さ)/[定数 1,000,000]」が表示されている。 The calculation formula creating unit 113 checks the items of the calculation definition master 126b such as "parentheses and other Start", "operator", and "item A character string is created by concatenating the values set in "value code", "constant", and "brackets, etc. End" from left to right in each record according to the order of arrangement in the record. Further, the calculation formula creation unit 113 connects each character string created in each record in the order of the item "serial number" of each record to generate a formula character string representing the final calculation formula. In the display area 310 of the formula check screen 300, the formula character string thus created "((outer diameter - thickness) x thickness x [constant 3.1416] x specific gravity x length) / [constant 1,000 , 000]” is displayed.

式チェック画面300において、表示領域311は、表示領域310に表示される計算式に具体的な数値を当て嵌めた計算式が表示される。例えば、計算式作成部113は、上述と同様に画面生成部115により表示された品番入力画面に入力された品番コードに基づき、品番マスタ123およびカテゴリ別特性設定マスタ122を参照して、入力された品番コードに対応する、カテゴリ区分「品種固定特性」における特性数値と、カテゴリ区分「品番固定特性」における特性数値とを取得する。 In the formula check screen 300 , a display area 311 displays a calculation formula obtained by applying specific numerical values to the calculation formula displayed in the display area 310 . For example, the calculation formula creation unit 113 refers to the product number master 123 and the category-specific property setting master 122 based on the product number code input on the product number input screen displayed by the screen generation unit 115 in the same manner as described above. Acquire the characteristic numerical value in the category classification "variety fixed characteristic" and the characteristic numerical value in the category classification "product number fixed characteristic" corresponding to the product number code.

図17の例では、品番入力画面に対して、例えば品番コード「PA_165.0×5.0」が入力される。計算式作成部113は、品番マスタ123を参照し、入力された品番コード「PA_165.0×5.0」に対応する品番名「パイプ 165.0×5.0」および品種「パイプ」を取得する。計算式作成部113は、カテゴリ別特性設定マスタ122を参照して、取得した品種「パイプ」に対応する特性「比重」と、特性数値「7.85(Kg/1m3)」とを取得する。同様に、計算式作成部113は、カテゴリ別特性設定マスタ122を参照して、取得した品番名「パイプ 165.0×5.0」に対応する特性「厚み」および「外径」と、それぞれに対応する特性数値「5mm」および「165mm」とを取得する。 In the example of FIG. 17, for example, a product number code "PA_165.0×5.0" is input to the product number input screen. The calculation formula creation unit 113 refers to the product number master 123 and acquires the product number name “pipe 165.0×5.0” and the product type “pipe” corresponding to the input product number code “PA_165.0×5.0”. do. The calculation formula creation unit 113 refers to the categorical property setting master 122 and acquires the property “specific gravity” and the property numerical value “7.85 (Kg/1m 3 )” corresponding to the acquired product type “pipe”. . Similarly, the calculation formula creation unit 113 refers to the property setting master by category 122, and the properties “thickness” and “outer diameter” corresponding to the acquired product number name “pipe 165.0×5.0”, and Acquire the characteristic numerical values "5 mm" and "165 mm" corresponding to .

また、計算式作成部113は、品番入力画面に入力された商品変動特性値(この例では「1,000mm」)を取得する。 Also, the calculation formula creation unit 113 acquires the product variation characteristic value (“1,000 mm” in this example) input on the product number input screen.

計算式作成部113は、取得した特性「外径」、「厚み」および「比重」に設定された各値「5mm」、「165mm」および「7.85(Kg/1m3)」と、商品変動特性値「1,000」とを、表示領域310に表示される計算式の対応する文字列とそれぞれ置き換えて、計算式を作成する。表示領域311には、このようにして作成された計算式「((165-5)*5*3.1416*7.85*1,000)/1,000,000」が表示される。 The calculation formula creation unit 113 calculates the values “5 mm”, “165 mm” and “7.85 (Kg/1 m 3 )” set for the acquired characteristics “outer diameter”, “thickness” and “specific gravity”, and the product A calculation formula is created by replacing the variation characteristic value “1,000” with the corresponding character string of the calculation formula displayed in the display area 310 . The display area 311 displays the calculation formula "((165-5)*5*3.1416*7.85*1,000)/1,000,000" created in this way.

例えば、計算処理部114がこの計算式に従い計算を実行した場合、計算結果として値「19.729248」が得られる。計算処理部114は、この計算結果を、例えばRAM1002あるいはストレージ1004に格納する。 For example, when the calculation processing unit 114 executes calculation according to this formula, the value "19.729248" is obtained as the calculation result. The calculation processing unit 114 stores this calculation result in the RAM 1002 or the storage 1004, for example.

[9.実施形態の第3の適用例]
図18乃至図23を用いて、実施形態に係る計算定義マスタ126の第3の適用例について説明する。第3の適用例は、計算定義マスタ126を丸太の体積計算に適用した例である。丸太は、自然物であって、「長さ」に応じた先細りを考慮する必要がある。したがって、この第3の適用例においては、計算に用いる公式を「長さ」に応じて切り替える。より具体的には、先細りを考慮しない場合と、先細りを考慮した場合との2つの計算定義マスタ126を用意する。入力された商品変動特性値としての「長さ」に対して閾値判定を行い、判定結果に応じて、2つの計算定義マスタ126のうち何れを用いるかを特定する。以下では、「長さ」に対する閾値を「6m」として説明を行う。
[9. Third application example of the embodiment]
A third application example of the calculation definition master 126 according to the embodiment will be described with reference to FIGS. 18 to 23. FIG. A third application example is an example in which the calculation definition master 126 is applied to log volume calculation. A log is a natural product, and it is necessary to consider tapering according to "length". Therefore, in this third application example, the formula used for calculation is switched according to the "length". More specifically, two calculation definition masters 126 are prepared, one for the case where the taper is not considered and the other for the case where the taper is considered. Threshold value determination is performed on the "length" as the input product variation characteristic value, and which of the two calculation definition masters 126 is to be used is specified according to the determination result. In the following description, the threshold for "length" is assumed to be "6 m".

図18を用いて、実施形態の第3の適用例に係る、先細りを考慮しない場合の丸太の体積計算を行うための公式および計算定義マスタ126について説明する。図18(a)は、先細りを考慮しない場合(「長さ」が6m未満)に丸太の体積計算を行うための公式を示す。この場合、丸太の体積は、計算式「(直径×直径×長さ)/定数」を公式として計算される。ここで、「直径」の単位が「cm」、「長さ」の単位が「m」であり、計算結果の単位が「m3」とし定数が「10,000」であるものとする。また、丸太の体積計算の場合、計算結果に対して小数第3位で端数処理(例えば四捨五入)を行うものとする。 A formula and calculation definition master 126 for calculating the volume of a log without considering tapering according to the third application example of the embodiment will be described with reference to FIG. 18 . FIG. 18(a) shows the formula for log volume calculation when taper is not taken into account ("length" is less than 6 m). In this case, the volume of the log is calculated using the formula “(diameter×diameter×length)/constant”. Here, it is assumed that the unit of "diameter" is "cm", the unit of "length" is "m", the unit of the calculation result is "m 3 ", and the constant is "10,000". Also, in the case of log volume calculation, the calculation result is rounded to the third decimal place (for example, rounded off).

図18(b)は、図18(a)の公式に対応する計算式を定義する計算定義マスタ126c1の例を示す。図18(b)の例では、キー項目中の項目「品種コード」の値「丸太」と、項目「変動特性閾値」の値「0」と、項目「計算結果」の値「cm3」とに従い図18(a)の公式が特定される。 FIG. 18(b) shows an example of calculation definition master 126c 1 that defines a calculation formula corresponding to the formula of FIG. 18(a). In the example of FIG. 18B, the value "log" of the item "variety code" among the key items, the value "0" of the item "variation characteristic threshold", and the value "cm 3 " of the item "calculation result" The formula of FIG. 18(a) is specified according to.

特定された公式および項目「項目区分」の値に従い、連番「0」のレコードは、端数処理を設定するためのレコードであって、項目「括弧他Start」に、端数処理の開始位置を示す値「端数四捨五入(」が設定される。連番「1」のレコードにおいて、項目「括弧他Start」に値「(」、項目「項目値コード」に値「直径」が設定される。連番「2」のレコードにおいて、項目「演算子」に値「×」、項目「項目値コード」に値「直径」がそれぞれ設定される。連番「3」のレコードは、項目「演算子」に値「×」が設定される。このレコードは、商品変動特性値のレコードであって、計算に用いる値は、後述する入力画面においてユーザにより入力されるため、当該レコードの項目「項目値コード」は、空欄とされている。 According to the specified formula and the value of the item "item classification", the record with the serial number "0" is a record for setting rounding, and the item "brackets, etc. Start" indicates the starting position of rounding. The value "round off (" is set. In the record with the serial number "1", the value "(" is set in the item "parentheses, etc. Start" and the value "diameter" is set in the item "item value code". The serial number In record "2", the value "x" is set in the item "operator" and the value "diameter" is set in the item "item value code". A value of "x" is set in. This record is a record of product variation characteristic values, and the value used for calculation is entered by the user on an input screen, which will be described later. is left blank.

連番「4」のレコードは、ダミーのレコードであって、項目「括弧他End」に、連番「1」のレコードの項目「括弧他Start」の値「(」と対になる値「)」が設定される。連番「5」のレコードは、固定値のレコードであって、項目「演算子」に値「÷」が設定され、項目「定数」に、公式において規定される値「10,000」が設定される。連番「6」のレコードは、連番「0」のレコードと対となる、端数処理を設定するためのレコードであって、項目「括弧他End」に、端数処理の終了位置と桁数を示す値「)端数処理終了(3桁)」が設定される。 The record with the serial number "4" is a dummy record, and the item "parentheses End" has the value "(" of the item "parentheses Start" of the record with the serial number "1" and the value ") ” is set. The record with the serial number “5” is a record with a fixed value, the value “÷” is set in the item “operator”, and the value “10,000” defined in the formula is set in the item “constant”. be done. The record with the serial number “6” is a record for setting rounding, which is paired with the record with the serial number “0”. The indicated value ") end of rounding (3 digits)" is set.

図19を用いて、実施形態の第3の適用例に係る、先細りを考慮する場合の丸太の体積計算を行うための公式および計算定義マスタ126について説明する。図19(a)は、先細りを考慮する場合(「長さ」が6m以上)に丸太の体積計算を行うための公式を示す。この場合、丸太の体積は、計算式「([直径+{(長さ-4)/2}]^2×長さ)/定数」を公式として計算される。ここで、「直径」の単位が「cm」、「長さ」の単位が「m」であり、計算結果の単位が「m3」とし定数が「10,000」であるものとする。また、図18(a)の公式と同様に、計算結果に対して小数第3位で四捨五入による端数処理が行われるものとする。さらに、図19(a)から分かるように、この公式は、3重括弧(分数の分子全体に対する括弧を含めると4重括弧)と、値「2」を累乗根とする累乗計算とが含まれる。 A formula and a calculation definition master 126 for calculating the volume of a log in consideration of tapering according to the third application example of the embodiment will be described with reference to FIG. 19 . FIG. 19(a) shows a formula for calculating the volume of a log when taper is taken into account ("length" is 6 m or more). In this case, the volume of the log is calculated using the formula “([diameter+{(length−4)/2}]̂2×length)/constant”. Here, it is assumed that the unit of "diameter" is "cm", the unit of "length" is "m", the unit of the calculation result is "m 3 ", and the constant is "10,000". Also, as with the formula in FIG. 18A, the calculation result is rounded off to the third decimal place. Furthermore, as can be seen from FIG. 19(a), this formula includes triple brackets (quadruple brackets including the brackets for the entire numerator of the fraction) and a power calculation with the value "2" as the power root. .

図19(b)は、図19(a)の公式に対応する計算式を定義する計算定義マスタ126c2の例を示す。図19(b)の例では、キー項目中の項目「変動特性閾値」に値「6」が設定され、キー項目中の項目「品種コード」の値「丸太」と、項目「変動特性閾値」の値「6」と、項目「計算結果」の値「m3」とに従い図19(a)の公式が特定される。 FIG. 19(b) shows an example of calculation definition master 126c 2 that defines a calculation formula corresponding to the formula of FIG. 19(a). In the example of FIG. 19B, the value "6" is set in the item "variation characteristic threshold" in the key items, and the value "log" in the item "variety code" in the key items and the item "variation characteristic threshold" The formula in FIG. 19(a) is specified according to the value "6" of the item "calculation result" and the value "m 3 " of the item "calculation result".

特定された公式および項目「項目区分」の値に従い、連番「0」のレコードは、端数処理を設定するためのレコードであって、項目「括弧他Start」に、端数処理の開始位置を示す値「端数四捨五入(」が設定される。連番「1」のレコードは、項目「項目区分」の値「累乗」に従い、累乗計算の開始位置を設定するためのレコードであって、項目「括弧他Start」に、累乗計算の開始位置を示す値「累乗開始(」が設定される。 According to the specified formula and the value of the item "item classification", the record with the serial number "0" is a record for setting rounding, and the item "brackets, etc. Start" indicates the starting position of rounding. The value "round off (" is set. The record with the serial number "1" is a record for setting the start position of the power calculation according to the value "power" of the item "item classification". A value "start of power (") indicating the start position of the power calculation is set in "Other Start".

連番「2」のレコードにおいて、項目「項目値コード」に値「直径」が設定される。連番「3」のレコードは、ダミーのレコードであって、項目「演算子」に値「+」が設定される。連番「4」のレコードは、ダミーのレコードであって、項目「括弧他Start」に値「(」が設定される。 In the record with the serial number “2”, the value “diameter” is set in the item “item value code”. The record with the serial number “3” is a dummy record, and the value “+” is set in the item “operator”. The record with the serial number “4” is a dummy record, and the value “(” is set in the item “parentheses and others Start”.

連番「5」のレコードは、項目「括弧他Start」に値「(」が設定される。このレコードは、商品変動特性値のレコードであって、計算に用いる値は、入力画面においてユーザにより入力されるため、当該レコードの項目「項目値コード」は、空欄とされている。 In the record with the serial number “5”, the value “(” is set in the item “Bracket and other Start”. Since it is entered, the item "item value code" of the record is left blank.

連番「6」のレコードは、固定値のレコードであって、項目「演算子」に値「-」が設定され、項目「定数」に、公式において規定される値「4」が設定される。また、このレコードにおいて、項目「括弧他End」に、連番「5」の項目「括弧他Start」に設定される値「(」と対となる値「)」が設定される。連番「7」のレコードは、固定値のレコードであって、項目「演算子」に値「÷」が設定され、項目「定数」に、公式において規定される値「2」が設定される。また、このレコードにおいて、項目「括弧他End」に、連番「4」の項目「括弧他Start」に設定される値「(」と対となる値「)」が設定される。 The record with the serial number "6" is a record with a fixed value, the value "-" is set in the item "operator", and the value "4" defined in the formula is set in the item "constant". . Also, in this record, the value "(" set in the item "parentheses Start" of the serial number "5" and the value ")" paired with the item "parentheses End" are set. The record with the serial number "7" is a record with a fixed value, the value "÷" is set in the item "operator", and the value "2" defined in the formula is set in the item "constant". . Also, in this record, a value ")" paired with the value "(" set in the item "parentheses Start" of the serial number "4" is set in the item "parentheses End".

連番「8」のレコードは、項目「項目区分」の値「累乗」に従い、連番「1」のレコードで開始位置が設定された累乗計算の終了位置および累乗根を設定するためのレコードであって、項目「括弧他End」に、累乗計算の終了位置および累乗根を示す値「)2乗」が設定される。 The record with the serial number "8" is a record for setting the end position and the radical root of the power calculation whose start position was set in the record with the serial number "1" according to the value "power" of the item "item classification". , and the value ") square" indicating the end position of the power calculation and the power root is set in the item "brackets, etc. End".

連番「9」のレコードは、項目「演算子」に値「×」が設定される。このレコードは、商品変動特性値のレコードであって、計算に用いる値は、入力画面においてユーザにより入力されるため、当該レコードの項目「項目値コード」は、空欄とされている。連番「10」のレコードは、固定値のレコードであって、項目「演算子」に値「÷」が設定され、項目「定数」に、公式において規定される値「10,000」が設定される。連番「11」のレコードは、連番「0」のレコードと対となる、端数処理を設定するためのレコードであって、項目「括弧他End」に、端数処理の終了位置と桁数を示す値「)端数処理終了(3桁)」が設定される。 For the record with the serial number “9”, the value “x” is set in the item “operator”. This record is a record of product variation characteristic values, and the value used for calculation is input by the user on the input screen, so the item "item value code" of the record is blank. The record with the serial number "10" is a record with a fixed value, the value "÷" is set in the item "operator", and the value "10,000" defined in the formula is set in the item "constant". be done. The record with the serial number "11" is a record for setting rounding, which is paired with the record with the serial number "0". The indicated value ") end of rounding (3 digits)" is set.

上述した計算定義マスタ126c1および126c2のうち何れを用いるかは、上述した表示領域311への計算式の表示のための品番入力画面、あるいは、計算式マスタ126による計算を行うための情報を入力する入力画面400に対して入力される商品変動特性値に応じて決定される。 Which one of the calculation definition masters 126c 1 and 126c 2 is used depends on whether the product number input screen for displaying the calculation formula in the display area 311 or the information for performing the calculation by the calculation formula master 126 is displayed. It is determined according to the product variation characteristic value input to the input screen 400 for input.

計算定義マスタ126c1および126c2は、項目「品種」および項目「計算結果」の値が一致する。この場合、図15のフローチャートのステップS12において説明したように、計算処理部114は、計算定義マスタ126c1および126c2のそれぞれから、項目「変動特性閾値」の値を取得する。計算処理部114は、取得した各変動特性閾値のうち、「入力された商品変動特性値以下であって、且つ、最大の変動特性閾値」の条件を満たす変動特性閾値を特定する。 Calculation definition masters 126c 1 and 126c 2 match in the values of the item "variety" and the item "calculation result". In this case, as described in step S12 of the flowchart of FIG. 15, the calculation processing unit 114 acquires the value of the item "variation characteristic threshold" from each of the calculation definition masters 126c1 and 126c2 . The calculation processing unit 114 identifies a variation characteristic threshold that satisfies the condition of "the maximum variation characteristic threshold that is equal to or less than the input product variation characteristic value" among the acquired variation characteristic thresholds.

一例として、商品変動特性値として値「5」が入力された場合には、計算定義マスタ126c2の項目「変動特性閾値」に設定される値「6」は、入力された商品変動特性値を超えるため、条件を満たさない。一方、計算定義マスタ126c1の項目「変動特性閾値」に設定される値「0」がこの条件を満たすため、計算処理部114は、当該計算定義マスタ126c1を選択する。 As an example, when the value "5" is input as the product variation characteristic value, the value "6" set in the item "variation characteristic threshold" of the calculation definition master 126c2 is the input product variation characteristic value. Because it exceeds, the condition is not satisfied. On the other hand, since the value "0" set in the item "variation characteristic threshold" of the calculation definition master 126c1 satisfies this condition, the calculation processing unit 114 selects the calculation definition master 126c1 .

別の例として、商品変動特性値として値「8」が入力された場合には、計算定義マスタ126c1および126c2の何れも、項目「変動特性閾値」に設定された値(それぞれ「0」および「6」)が入力された値「8」以下となる。一方、計算定義マスタ126c1および126c2では、項目「変動特性閾値」の値が計算定義マスタ126c2の方が大きいので、計算処理部114は、計算定義マスタ126c2を選択する。 As another example, when the value "8" is input as the product variation characteristic value, both the calculation definition masters 126c1 and 126c2 are set to the values set in the item "variation characteristic threshold" (each "0" and "6") is less than or equal to the input value "8". On the other hand, in the calculation definition masters 126c 1 and 126c 2 , the calculation definition master 126c 2 has a larger value of the item "variation characteristic threshold", so the calculation processing unit 114 selects the calculation definition master 126c 2 .

図20は、商品変動特性値として閾値「6」以下の値「5」が入力されて選択された、図18(b)の計算定義マスタ126c1に対して、品番名「丸太 D55」の丸太を想定して具体的な数値を代入した例を示す。 FIG. 20 shows the calculation definition master 126c 1 in FIG. An example in which specific numerical values are substituted on the assumption that

例えば計算処理部114は、連番「0」のレコードでは、項目「括弧他Start」の値に従い、端数処理の開始およびその方法を指示する値「端数四捨五入(」が設定される。連番「1」および「2」の各レコードでは、項目「品種コード」および項目「項目区分」の値に従い、図4のカテゴリ別特性設定マスタ122から対応する値「55」(直径)を取得し、公式に当てはめる数値として設定する。直径を示す値「55」は、連番「1」および「2」において繰り返し用いられている。また、連番「3」の、商品変動特性のレコードでは、ユーザにより入力された値「5」(長さ)が公式に当てはめる数値として設定される。さらに、連番「5」の固定値のレコードでは、公式に従い値「10,000」が設定される。 For example, in the record with the serial number “0”, the calculation processing unit 114 sets a value “rounding off (”), which indicates the start and method of rounding, in accordance with the value of the item “parentheses and others Start”. 1” and “2”, the corresponding value “55” (diameter) is obtained from the categorical characteristic setting master 122 in FIG. The value "55" indicating the diameter is used repeatedly in the serial numbers "1" and "2".In addition, in the serial number "3" record of product fluctuation characteristics, the user The input value "5" (length) is set as the numerical value applied to the formula, and the fixed value record with the serial number "5" is set to the value "10,000" according to the formula.

図11を用いて説明した計算定義マスタメンテ画面200は、この計算定義マスタ126c1に対しても同様に適用可能であるので、ここでの詳細な説明を省略する。 The calculation definition master maintenance screen 200 described with reference to FIG. 11 is similarly applicable to this calculation definition master 126c 1 , so detailed description is omitted here.

図21は、図18(b)および図20に対応する式チェック画面300の例を示す。なお、図21において、上述した図12と共通する部分には同一の符号を付して、詳細な説明を省略する。また、ここでは、式チェック画面300は、上述した計算定義マスタメンテ画面200のボタン214に対する操作に応じて表示された画面であるものとする。 FIG. 21 shows an example of the formula check screen 300 corresponding to FIGS. 18(b) and 20. FIG. In addition, in FIG. 21, the parts common to those in FIG. 12 described above are denoted by the same reference numerals, and detailed description thereof will be omitted. Also, here, the formula check screen 300 is assumed to be a screen displayed in response to the operation of the button 214 of the calculation definition master maintenance screen 200 described above.

計算式作成部113は、上述した計算定義マスタメンテ画面200に係る図12の式チェック画面300における説明と同様に、計算定義マスタ126c1の各項目「括弧他Start」、「演算子」、「項目値コード」、「定数」および「括弧他End」に設定される値を、各レコードにおいてはレコード内での並び順に従い左から右に連結して文字列を作成する。さらに、計算式作成部113は、各レコードにおいて作成した各文字列を、各レコードの項目「連番」の順に連結し、最終的な計算式を表す式文字列を生成する。式チェック画面300の表示領域310には、このようにして作成された式文字列「四捨五入((直径×直径×長さ)/[定数 10,000],3桁)」が表示されている。文字列式の末尾の「3桁」は、端数処理の桁数を示している。 Calculation formula creation unit 113, similar to the description of formula check screen 300 of FIG . The values set in "item value code", "constant", and "brackets, etc. End" are concatenated from left to right in each record according to the order of arrangement in the record to create a character string. Further, the calculation formula creation unit 113 connects each character string created in each record in the order of the item "serial number" of each record to generate a formula character string representing the final calculation formula. In the display area 310 of the formula check screen 300, the formula character string "rounding off ((diameter*diameter*length)/[constant 10,000], 3 digits)" is displayed. The "three digits" at the end of the string expression indicates the number of digits for rounding.

式チェック画面300において、表示領域311は、表示領域310に表示される計算式に具体的な数値を当て嵌めた計算式が表示される。例えば、計算式作成部113は、上述と同様に画面生成部115により表示された品番入力画面に入力された品番コードに基づき、品番マスタ123およびカテゴリ別特性設定マスタ122を参照して、入力された品番コードに対応する、カテゴリ区分「品種固定特性」における特性数値と、カテゴリ区分「品番固定特性」における特性数値とを取得する。 In the formula check screen 300 , a display area 311 displays a calculation formula obtained by applying specific numerical values to the calculation formula displayed in the display area 310 . For example, the calculation formula creation unit 113 refers to the product number master 123 and the category-specific property setting master 122 based on the product number code input on the product number input screen displayed by the screen generation unit 115 in the same manner as described above. Acquire the characteristic numerical value in the category classification "variety fixed characteristic" and the characteristic numerical value in the category classification "product number fixed characteristic" corresponding to the product number code.

図21の例では、品番入力画面に対して、例えば品番コード「LOG_D55」が入力される。計算式作成部113は、品番マスタ123を参照し、入力された品番コード「LOG_D55」に対応する品番名「丸太 D55」および品種「丸太」を取得する。計算式作成部113は、カテゴリ別特性設定マスタ122を参照して、取得した品番名「丸太 D55」に対応する特性「直径」と、対応する特性数値「55cm」とを取得する。なお、品種「丸太」においては、品種固定特性が未設定であり、対応する特性も取得されない。 In the example of FIG. 21, for example, a product number code "LOG_D55" is input to the product number input screen. The calculation formula creation unit 113 refers to the product number master 123 and acquires the product number name “log D55” and the product type “log” corresponding to the input product number code “LOG_D55”. The calculation formula creation unit 113 refers to the property setting master by category 122 to acquire the property “diameter” corresponding to the acquired product number name “log D55” and the corresponding property value “55 cm”. It should be noted that the type fixed characteristic is not set for the type "log", and the corresponding characteristic is not acquired.

また、計算式作成部113は、品番入力画面に入力された商品変動特性値(この例では「5」)を取得する。 In addition, the calculation formula creation unit 113 acquires the product variation characteristic value (“5” in this example) input on the product number input screen.

計算式作成部113は、取得した特性「直径」に設定された値「55cm」と、商品変動特性値「5」とを、表示領域310に表示される計算式の対応する文字列とそれぞれ置き換えて、計算式を作成する。表示領域311には、このようにして作成された計算式「ROUND((55*55*5)/10,000,3)」が表示される。計算式の末尾の「3」は、端数処理の桁数を示している。 The calculation formula creation unit 113 replaces the acquired value “55 cm” set for the characteristic “diameter” and the product variation characteristic value “5” with the corresponding character strings in the calculation formula displayed in the display area 310. to create a formula. The display area 311 displays the calculation formula "ROUND ((55*55*5)/10,000,3)" thus created. "3" at the end of the formula indicates the number of digits for rounding.

例えば、計算処理部114がこの計算式に従い計算を実行した場合、端数処理を含まない計算結果として値「1.5125」が得られ、これに小数3桁の四捨五入による端数処理を施して、値「1.513」が最終的な計算結果として得られる。計算処理部114は、この計算結果を、例えばRAM1002あるいはストレージ1004に格納する。 For example, when the calculation processing unit 114 executes calculation according to this formula, the value “1.5125” is obtained as a calculation result that does not include rounding, and this is rounded off to three decimal places to obtain the value “1.5125”. "1.513" is obtained as the final calculation result. The calculation processing unit 114 stores this calculation result in the RAM 1002 or the storage 1004, for example.

図22は、商品変動特性値として閾値「6」を超える値「8」が入力されて選択された、図19(b)の計算定義マスタ126c2に対して、品番名「丸太 D55」の丸太を想定して具体的な数値を代入した例を示す。 FIG. 22 shows the calculation definition master 126c 2 of FIG. An example in which specific numerical values are substituted on the assumption that

例えば計算処理部114は、連番「2」のレコードでは、項目「品種コード」および項目「項目区分」の値に従い、図4のカテゴリ別特性設定マスタ122から対応する値「55」(直径)を取得し、公式に当てはめる数値として設定する。連番「5」および「9」のレコードは、商品変動特性のレコードであって、それぞれ、ユーザにより入力された値「8」が、公式に当てはめる商品変動特性値として設定される。 For example, in the record with the serial number “2”, the calculation processing unit 114 selects the corresponding value “55” (diameter) from the categorical characteristic setting master 122 in FIG. and set it as a numerical value to be applied to the formula. Records with serial numbers "5" and "9" are records of product variation characteristics, and the value "8" input by the user is set as the product variation characteristic value to be officially applied.

図11を用いて説明した計算定義マスタメンテ画面200は、この計算定義マスタ126c2に対しても同様に適用可能であるので、ここでの詳細な説明を省略する。 The calculation definition master maintenance screen 200 described with reference to FIG. 11 is similarly applicable to this calculation definition master 126c2, so detailed description thereof will be omitted here.

図23は、図19(b)および図22に対応する式チェック画面300の例を示す。なお、図23において、上述した図12と共通する部分には同一の符号を付して、詳細な説明を省略する。また、ここでは、式チェック画面300は、上述した計算定義マスタメンテ画面200のボタン214に対する操作に応じて表示された画面であるものとする。 FIG. 23 shows an example of the formula check screen 300 corresponding to FIGS. 19(b) and 22. FIG. In addition, in FIG. 23, the parts common to those in FIG. 12 described above are denoted by the same reference numerals, and detailed description thereof will be omitted. Also, here, the formula check screen 300 is assumed to be a screen displayed in response to the operation of the button 214 of the calculation definition master maintenance screen 200 described above.

計算式作成部113は、上述した計算定義マスタメンテ画面200に係る図12の式チェック画面300における説明と同様に、計算定義マスタ126c2の各項目「括弧他Start」、「演算子」、「項目値コード」、「定数」および「括弧他End」に設定される値を、各レコードにおいてはレコード内での並び順に従い左から右に連結して文字列を作成する。さらに、計算式作成部113は、各レコードにおいて作成した各文字列を、各レコードの項目「連番」の順に連結し、最終的な計算式を表す式文字列を生成する。式チェック画面300の表示領域310には、このようにして作成された式文字列「四捨五入((直径+((長さ-[定数 4])/[定数 2]))^2×長さ/[定数 10,000],3桁)」が表示されている。 Calculation formula creation unit 113, similar to the description of formula check screen 300 of FIG . The values set in "item value code", "constant", and "brackets, etc. End" are concatenated from left to right in each record according to the order of arrangement in the record to create a character string. Further, the calculation formula creation unit 113 connects each character string created in each record in the order of the item "serial number" of each record to generate a formula character string representing the final calculation formula. In the display area 310 of the formula check screen 300, the formula character string created in this way "Round ((diameter + ((length - [constant 4])/[constant 2]))^2 x length/ [constant 10,000], 3 digits)” is displayed.

式チェック画面300において、表示領域311は、表示領域310に表示される計算式に具体的な数値を当て嵌めた計算式が表示される。例えば、計算式作成部113は、上述と同様に画面生成部115により表示された品番入力画面に入力された品番コードに基づき、品番マスタ123およびカテゴリ別特性設定マスタ122を参照して、入力された品番コードに対応する、カテゴリ区分「品種固定特性」における特性数値と、カテゴリ区分「品番固定特性」における特性数値とを取得する。 In the formula check screen 300 , a display area 311 displays a calculation formula obtained by applying specific numerical values to the calculation formula displayed in the display area 310 . For example, the calculation formula creation unit 113 refers to the product number master 123 and the category-specific property setting master 122 based on the product number code input on the product number input screen displayed by the screen generation unit 115 in the same manner as described above. Acquire the characteristic numerical value in the category classification "variety fixed characteristic" and the characteristic numerical value in the category classification "product number fixed characteristic" corresponding to the product number code.

図23の例では、品番入力画面に対して、例えば品番コード「LOG_D55」が入力される。計算式作成部113は、品番マスタ123を参照し、入力された品番コード「LOG_D55」に対応する品番名「丸太 D55」および品種「丸太」を取得する。計算式作成部113は、カテゴリ別特性設定マスタ122を参照して、取得した品番名「丸太 D55」に対応する特性「直径」と、対応する特性数値「55cm」とを取得する。なお、品種「丸太」においては、品種固定特性が未設定であり、対応する特性も取得されない。 In the example of FIG. 23, for example, a product number code "LOG_D55" is input to the product number input screen. The calculation formula creation unit 113 refers to the product number master 123 and acquires the product number name “log D55” and the product type “log” corresponding to the input product number code “LOG_D55”. The calculation formula creation unit 113 refers to the property setting master by category 122 to acquire the property “diameter” corresponding to the acquired product number name “log D55” and the corresponding property value “55 cm”. It should be noted that the type fixed characteristic is not set for the type "log", and the corresponding characteristic is not acquired.

また、計算式作成部113は、品番入力画面に入力された商品変動特性値(この例では「8」)を取得する。 In addition, the calculation formula creation unit 113 acquires the product variation characteristic value (“8” in this example) input on the product number input screen.

計算式作成部113は、取得した特性「直径」に設定された値「55cm」と、商品変動特性値「5」とを、表示領域310に表示される計算式の対応する文字列とそれぞれ置き換えて、計算式を作成する。表示領域311には、このようにして作成された計算式「ROUND((55+((8-4)/2))^2*8)/10,000,3)」が表示される。 The calculation formula creation unit 113 replaces the acquired value “55 cm” set for the characteristic “diameter” and the product variation characteristic value “5” with the corresponding character strings in the calculation formula displayed in the display area 310. to create a formula. The display area 311 displays the calculation formula "ROUND((55+((8-4)/2))^2*8)/10,000,3)" thus created.

例えば、計算処理部114がこの計算式に従い計算を実行した場合、端数処理を含まない計算結果として値「2.5992」が得られ、これに小数3桁の四捨五入による端数処理を施して、値「2.599」が最終的な計算結果として得られる。計算処理部114は、この計算結果を、例えばRAM1002あるいはストレージ1004に格納する。 For example, when the calculation processing unit 114 executes the calculation according to this formula, the value “2.5992” is obtained as a calculation result that does not include rounding, and this is rounded off to three decimal places to obtain the value "2.599" is obtained as the final calculation result. The calculation processing unit 114 stores this calculation result in the RAM 1002 or the storage 1004, for example.

このように、実施形態では、各レコードに、計算式を構成する括弧、演算子、値といった各要素を項目区分毎に設定した計算定義マスタ126を、品種毎に設定して、重量計算や体積計算を行うようにしている。そのため、品種に属する品番の商品の重量計算や体積計算を行う計算式の確認や設定、不正箇所の指摘などを容易に行うことが可能となる。 As described above, in the embodiment, the calculation definition master 126, in which each element such as parentheses, operators, and values that make up the calculation formula is set for each item category, is set for each type of record, and weight calculation and volume calculation are performed. I am trying to do the calculations. Therefore, it is possible to easily confirm and set the calculation formula for weight calculation and volume calculation of the product of the product number belonging to the product type, and to point out the illegal part.

また、商品毎に変動する商品変動特性値に対して閾値判定を行い、判定結果に応じた計算定義マスタ126の切り替えを可能としている。そのため、例えば丸太のような、長さによって異なる公式が適用される商品に対する計算を容易に実行できる。 In addition, it is possible to perform threshold determination on product fluctuation characteristic values that fluctuate for each product, and switch the calculation definition master 126 according to the determination result. Therefore, calculations can be easily performed for commodities, such as logs, for which different formulas are applied depending on the length.

[10.他の実施形態]
本発明は、上述した実施形態以外にも、特許請求の範囲に記載した技術的思想の範囲内において種々の異なる実施形態にて実施されてよいものである。
[10. Other embodiments]
The present invention may be implemented in various different embodiments other than the embodiments described above within the scope of the technical idea described in the claims.

例えば、実施形態において説明した各処理のうち、自動にて行われるものとして説明した処理の全部または一部を手動にて行うこともでき、あるいは、手動にて行われるものとして説明した処理の全部または一部を公知の方法で自動にて行うこともできる。 For example, among the processes described in the embodiments, all or part of the processes described as being performed automatically can be manually performed, or all of the processes described as being performed manually Alternatively, a part can be automatically performed by a known method.

また、本明細書中や図面中で示した処理手順、制御手順、具体的名称、各処理の登録データや検索条件などのパラメータを含む情報、画面例、マスタ構成については、特記する場合を除いて任意に変更することができる。 In addition, unless otherwise specified, the processing procedures, control procedures, specific names, information including parameters such as registration data and search conditions for each process, screen examples, and master configurations shown in this specification and drawings can be changed arbitrarily.

さらに、上述では、実施形態に係る計算処理装置10が1のコンピュータにより構成されるように説明したが、これはこの例に限定されない。すなわち、実施形態に係る計算処理装置10は、複数のコンピュータを統合的に運用するシステムにて構成することもできる。 Furthermore, in the above description, the calculation processing apparatus 10 according to the embodiment is configured by one computer, but this is not limited to this example. That is, the computation processing apparatus 10 according to the embodiment can also be configured by a system that operates a plurality of computers in an integrated manner.

さらにまた、装置の分散・統合の具体的形態は図示するものに限られず、その全部または一部を、各種の付加等に応じてまたは機能負荷に応じて、任意の単位で機能的または物理的に分散・統合して構成することができる。すなわち、上述した実施形態を任意に組み合わせて実施してもよく、実施形態を選択的に実施してもよい。 Furthermore, the specific forms of distribution and integration of devices are not limited to those shown in the drawings, and all or part of them can be functionally or physically arranged in arbitrary units according to various additions or functional loads. It can be configured by distributing and integrating into In other words, the embodiments described above may be arbitrarily combined and implemented, or the embodiments may be selectively implemented.

本発明は、特に、鉄鋼、木材、建材の業界において有用である。 The present invention is particularly useful in the steel, wood and building material industries.

10 計算処理装置
110 制御部
112 計算定義設定部
113 計算式作成部
114 計算処理部
115 画面生成部
120 記憶部
121 品種別特性定義マスタ
122 カテゴリ別特性設定マスタ
123 品番マスタ
124 品種マスタ
125 単位マスタ
126,126a,126b,126c1,126c2 計算定義マスタ
200 計算定義マスタメンテ画面
300,300’ 式チェック画面
400 入力画面
1000 CPU
1002 RAM
1004 ストレージ
1020 ディスプレイ
10 Calculation processing device 110 Control unit 112 Calculation definition setting unit 113 Calculation formula creation unit 114 Calculation processing unit 115 Screen generation unit 120 Storage unit 121 Product-specific characteristic definition master 122 Category-specific property setting master 123 Product number master 124 Product master 125 Unit master 126 , 126a, 126b, 126c 1 , 126c 2 calculation definition master 200 calculation definition master maintenance screen 300, 300' formula check screen 400 input screen 1000 CPU
1002 RAMs
1004 Storage 1020 Display

Claims (8)

制御部と記憶部とを備えた計算処理装置であって、
前記制御部は、
品種をキーとし、演算子と、少なくとも商品変動特性又は品番に固定の特性である品番固定特性が入力される項目区分と、を関連付けた計算定義マスタを前記記憶部に設定する計算定義設定手段と、
前記計算定義マスタにおける、前記演算子と、該演算子に関連付けられる前記項目区分に対応する項目識別子とを、該計算定義マスタのレコード内で連結して文字列を作成し、該計算定義マスタの各レコードで作成された該文字列それぞれを、該計算定義マスタのレコード順に従い連結して計算式を作成する計算式作成手段と、
前記品番固定特性に対応する前記項目識別子と、該項目識別子に対応する特性値とを関連付けて前記記憶部に設定される特性設定マスタから、入力された前記品番に対応する該特性値を取得し、取得した該特性値を用いて前記計算式による計算を行う計算処理手段と、
を備えることを特徴とする計算処理装置。
A computing device comprising a control unit and a storage unit,
The control unit
Calculation definition setting means for setting, in the storage unit, a calculation definition master in which a product type is used as a key, and an operator is associated with at least a product variable characteristic or a product number fixed characteristic, which is a characteristic fixed to a product number. ,
Create a character string by concatenating the operator and the item identifier corresponding to the item category associated with the operator in the calculation definition master in the record of the calculation definition master, calculation formula creation means for creating a calculation formula by concatenating each of the character strings created in each record according to the record order of the calculation definition master;
Acquiring the characteristic value corresponding to the input part number from the characteristic setting master set in the storage unit by associating the item identifier corresponding to the part number fixed characteristic and the characteristic value corresponding to the item identifier. , calculation processing means for performing calculation according to the formula using the obtained characteristic value;
A calculation processing device comprising:
前記計算定義設定手段は、
少なくとも前記商品変動特性、前記品番固定特性、又は、前記品種に固定の特性である品種固定特性が入力される項目区分と、前記演算子とを関連付けた前記計算定義マスタを前記記憶部に設定すること、
を特徴とする請求項1に記載の計算処理装置。
The calculation definition setting means is
setting in the storage unit the calculation definition master that associates the operator with the item classification into which at least the product variable characteristic, the product number fixed characteristic, or the product type fixed characteristic that is a characteristic fixed to the product type is input, and the operator; matter,
2. The calculation processing device according to claim 1, characterized by:
前記制御部は、
前記計算式作成手段により作成した前記計算式を、前記演算子と前記項目識別子とを用いて表示させる画面を生成する画面生成手段をさらに備えること、
を特徴とする請求項1又は請求項2に記載の計算処理装置。
The control unit
further comprising screen generation means for generating a screen for displaying the calculation formula created by the calculation formula creation means using the operator and the item identifier;
3. The calculation processing device according to claim 1 or 2, characterized by:
前記画面生成手段は、
前記特性設定マスタから取得した、入力された前記品番に対応する前記特性値を、前記計算式の、該特性値に対応する前記項目識別子と置き換えた計算式を表示させる画面をさらに生成すること、
を特徴とする請求項3に記載の計算処理装置。
The screen generation means is
further generating a screen for displaying a calculation formula in which the characteristic value corresponding to the input product number acquired from the characteristic setting master is replaced with the item identifier corresponding to the characteristic value in the calculation formula;
4. The computing device according to claim 3, characterized by:
前記計算定義設定手段は、
少なくとも前記商品変動特性、前記品番固定特性、前記計算式において優先して計算を実行する範囲を指定するための括弧の開始位置および終了位置を示すダミー、又は、演算子のみを指定するレコードであることを示すダミーが入力される項目区分と、前記演算子とを関連付けた前記計算定義マスタを前記記憶部に設定すること、
を特徴とする請求項1から請求項4のうち、いずれか一項に記載の計算処理装置。
The calculation definition setting means is
A record that specifies at least the product variable characteristics, the product number fixed characteristics, a dummy indicating the start position and the end position of parentheses for specifying the range in which calculation is preferentially executed in the calculation formula, or only an operator. setting, in the storage unit, the calculation definition master that associates an item category into which a dummy indicating that the operator is input and the operator;
5. The computing device according to any one of claims 1 to 4, characterized by:
前記計算定義設定手段は、
少なくとも前記商品変動特性、前記品番固定特性、前記計算定義マスタにおいて定義される計算式に対応する公式で使用される固定値、前記計算式に対して端数処理を指定する情報、又は、前記計算式に対して累乗計算を指定する情報が入力される項目区分と、前記演算子とを関連付けた前記計算定義マスタを前記記憶部に設定すること、
を特徴とする請求項1から請求項5のうち、いずれか一項に記載の計算処理装置。
The calculation definition setting means is
At least the commodity fluctuation characteristics, the product number fixed characteristics, a fixed value used in a formula corresponding to the calculation formula defined in the calculation definition master, information specifying rounding for the calculation formula, or the calculation formula setting, in the storage unit, the calculation definition master that associates the item classification in which information designating power calculation for is input with the operator,
6. The computing device according to any one of claims 1 to 5, characterized by:
制御部と記憶部とを備えた計算処理装置で実行される計算処理方法であって、
前記制御部で実行される、
品種をキーとし、演算子と、少なくとも商品変動特性又は品番に固定の特性である品番固定特性が入力される項目区分と、を関連付けた計算定義マスタを前記記憶部に設定する計算定義設定ステップと、
前記計算定義マスタにおける、前記演算子と、該演算子に関連付けられる前記項目区分に対応する項目識別子とを、該計算定義マスタのレコード内で連結して文字列を作成し、該計算定義マスタの各レコードで作成された該文字列それぞれを、該計算定義マスタのレコード順に従い連結して計算式を作成する計算式作成ステップと、
前記品番固定特性に対応する前記項目識別子と、該項目識別子に対応する特性値とを関連付けて前記記憶部に設定される特性設定マスタから、入力された前記品番に対応する該特性値を取得し、取得した該特性値を用いて前記計算式による計算を行う計算処理ステップと、
を含むことを特徴とする計算処理方法。
A calculation processing method executed by a calculation processing device having a control unit and a storage unit,
executed by the control unit;
a calculation definition setting step of setting, in the storage unit, a calculation definition master that associates a product type as a key with an operator and at least a product variable characteristic or an item classification in which a product number fixed characteristic that is a characteristic fixed to a product number is entered; ,
Create a character string by concatenating the operator and the item identifier corresponding to the item category associated with the operator in the calculation definition master in the record of the calculation definition master, a calculation formula creation step of creating a calculation formula by concatenating each of the character strings created in each record according to the record order of the calculation definition master;
Acquiring the characteristic value corresponding to the input part number from the characteristic setting master set in the storage unit by associating the item identifier corresponding to the part number fixed characteristic and the characteristic value corresponding to the item identifier. , a calculation processing step of performing calculation according to the formula using the obtained characteristic value;
A calculation processing method, comprising:
制御部と記憶部とを備えた情報処理装置に実行させるための計算処理プログラムであって、
前記制御部で実行させるための、
品種をキーとし、演算子と、少なくとも商品変動特性又は品番に固定の特性である品番固定特性が入力される項目区分と、を関連付けた計算定義マスタを前記記憶部に設定する計算定義設定ステップと、
前記計算定義マスタにおける、前記演算子と、該演算子に関連付けられる前記項目区分に対応する項目識別子とを、該計算定義マスタのレコード内で連結して文字列を作成し、該計算定義マスタの各レコードで作成された該文字列それぞれを、該計算定義マスタのレコード順に従い連結して計算式を作成する計算式作成ステップと、
前記品番固定特性に対応する前記項目識別子と、該項目識別子に対応する特性値とを関連付けて前記記憶部に設定される特性設定マスタから、入力された前記品番に対応する該特性値を取得し、取得した該特性値を用いて前記計算式による計算を行う計算処理ステップと、
を含むことを特徴とする計算処理プログラム。
A calculation processing program to be executed by an information processing device having a control unit and a storage unit,
for execution by the control unit,
a calculation definition setting step of setting, in the storage unit, a calculation definition master that associates a product type as a key with an operator and at least a product variable characteristic or an item classification in which a product number fixed characteristic that is a characteristic fixed to a product number is entered; ,
Create a character string by concatenating the operator and the item identifier corresponding to the item category associated with the operator in the calculation definition master in the record of the calculation definition master, a calculation formula creation step of creating a calculation formula by concatenating each of the character strings created in each record according to the record order of the calculation definition master;
Acquiring the characteristic value corresponding to the input part number from the characteristic setting master set in the storage unit by associating the item identifier corresponding to the part number fixed characteristic and the characteristic value corresponding to the item identifier. , a calculation processing step of performing calculation according to the formula using the obtained characteristic value;
A calculation processing program comprising:
JP2022046184A 2017-11-02 2022-03-23 Computational processing device, computational processing method and computational processing program Active JP7291264B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022046184A JP7291264B2 (en) 2017-11-02 2022-03-23 Computational processing device, computational processing method and computational processing program

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2017213248A JP7048263B2 (en) 2017-11-02 2017-11-02 Computational processing equipment, computational processing method and computational processing program
JP2022046184A JP7291264B2 (en) 2017-11-02 2022-03-23 Computational processing device, computational processing method and computational processing program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2017213248A Division JP7048263B2 (en) 2017-11-02 2017-11-02 Computational processing equipment, computational processing method and computational processing program

Publications (2)

Publication Number Publication Date
JP2022084807A JP2022084807A (en) 2022-06-07
JP7291264B2 true JP7291264B2 (en) 2023-06-14

Family

ID=87885309

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022046184A Active JP7291264B2 (en) 2017-11-02 2022-03-23 Computational processing device, computational processing method and computational processing program

Country Status (1)

Country Link
JP (1) JP7291264B2 (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000090152A (en) 1998-09-10 2000-03-31 Hitachi Information Systems Ltd Price calculating method and recording medium recorded with program thereof
JP2001101290A (en) 1999-09-30 2001-04-13 Fujitsu Ltd Device and method for calculating charge and recording medium
JP2003036413A (en) 2001-07-25 2003-02-07 Nec Corp System and method for simulating price
JP2003296418A (en) 2002-03-29 2003-10-17 Fujitsu Ltd Method and device of commodity management and computer program
JP2004133506A (en) 2002-10-08 2004-04-30 Fujitsu Ltd Best-before date management method and bet-before date management system
JP2012141873A (en) 2011-01-05 2012-07-26 Hitachi Systems Ltd Contained chemical substance management system
JP2013077095A (en) 2011-09-29 2013-04-25 Toshiba Corp Sql creation device, sql creation method and sql creation program
JP2014162101A (en) 2013-02-25 2014-09-08 Teraoka Seiko Co Ltd Label issuing device
JP2017178574A (en) 2016-03-31 2017-10-05 日本電気株式会社 Inspection processing device, inspection system, commodity master registration device, inspection processing method and program

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000090152A (en) 1998-09-10 2000-03-31 Hitachi Information Systems Ltd Price calculating method and recording medium recorded with program thereof
JP2001101290A (en) 1999-09-30 2001-04-13 Fujitsu Ltd Device and method for calculating charge and recording medium
JP2003036413A (en) 2001-07-25 2003-02-07 Nec Corp System and method for simulating price
JP2003296418A (en) 2002-03-29 2003-10-17 Fujitsu Ltd Method and device of commodity management and computer program
JP2004133506A (en) 2002-10-08 2004-04-30 Fujitsu Ltd Best-before date management method and bet-before date management system
JP2012141873A (en) 2011-01-05 2012-07-26 Hitachi Systems Ltd Contained chemical substance management system
JP2013077095A (en) 2011-09-29 2013-04-25 Toshiba Corp Sql creation device, sql creation method and sql creation program
JP2014162101A (en) 2013-02-25 2014-09-08 Teraoka Seiko Co Ltd Label issuing device
JP2017178574A (en) 2016-03-31 2017-10-05 日本電気株式会社 Inspection processing device, inspection system, commodity master registration device, inspection processing method and program

Also Published As

Publication number Publication date
JP2022084807A (en) 2022-06-07

Similar Documents

Publication Publication Date Title
Porouhan et al. Process and deviation exploration through Alpha-algorithm and Heuristic miner techniques
US8875301B2 (en) Software license incompatibility determination
JP2013246644A (en) Software object correction support device, software object correction support method and program
JP4477531B2 (en) Data import method and data import apparatus
JP7291264B2 (en) Computational processing device, computational processing method and computational processing program
JP2003298579A5 (en)
JP7048263B2 (en) Computational processing equipment, computational processing method and computational processing program
JP4995009B2 (en) POD screen generation device and program thereof
JP6994845B2 (en) Work scenario creation device, work support system, work support method, and work scenario creation program
KR101726120B1 (en) Program editing device, program editing method and computer readable recoding medium for recording program editing program
TW201327211A (en) System and method for automatically generating measuring program codes
WO2014108994A1 (en) Project data creation device
US8489608B2 (en) Method for defining data categories
JPH10198741A (en) Table data processor and its program recording medium
JP2016157419A (en) Check business processing apparatus, check business processing method and check business processing program
JP7510872B2 (en) Sales allocation device, sales allocation method, and sales allocation program
JP7530308B2 (en) Data analysis support device, data analysis support method and data analysis support program
JP7300286B2 (en) Revision execution device, revision execution method and revision execution program
TWI792057B (en) Computer-implemented systems and methods for digitizing attachment data
JP2020134974A (en) Product management device, product management method, and product management program
JP2020134983A (en) Legal document review support system, legal document review support program, and method for operating legal document review support system
JP2734535B2 (en) Form output device
KR940002483B1 (en) Method and apparatus for file recovery
JP2015036910A (en) Document file creation device, document file creation method, and document file creation program
JPH0454635A (en) Screen specification defining method and business processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220323

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: 20230509

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230602

R150 Certificate of patent or registration of utility model

Ref document number: 7291264

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150