JPH06332926A - Card type data base device - Google Patents

Card type data base device

Info

Publication number
JPH06332926A
JPH06332926A JP5146962A JP14696293A JPH06332926A JP H06332926 A JPH06332926 A JP H06332926A JP 5146962 A JP5146962 A JP 5146962A JP 14696293 A JP14696293 A JP 14696293A JP H06332926 A JPH06332926 A JP H06332926A
Authority
JP
Japan
Prior art keywords
data
group
card
storage position
data input
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.)
Pending
Application number
JP5146962A
Other languages
Japanese (ja)
Inventor
Tomohisa Yoshikawa
智久 吉川
Yoshihiro Inagi
義弘 稲木
Kozo Okuda
浩三 奥田
Kanji Toyokura
完治 豊倉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP5146962A priority Critical patent/JPH06332926A/en
Publication of JPH06332926A publication Critical patent/JPH06332926A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To provide a card type data base device for shortening the processing time of sum-up or retrieval and unnecessitating a large capacity memory while holding the format of a card suitable for the convenience of work. CONSTITUTION:Plural data input columns corresponding to the same item are collected in a group, and data for simultaneously instructing this group are prepared and stored in the high-order hierarchy of this group. Thus, the storage position of the instruction data instructing the relevant item inside card data is fixed rehardless of the number of the data input columns of the relevant item. Therefore, in the case of sum-up or retrieval, it is enough only to instruct the instruction data at the fixed position, and it is not necessary to read out all the data of the card. Namely, processing time is shortened.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、カ−ド型デ−タベ−ス
装置に関し、詳しくは、カ−ド型デ−タベ−スのデ−タ
構造の改良に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a card type data base apparatus, and more particularly to an improvement in the data structure of a card type data base.

【0002】[0002]

【従来の技術】カ−ド型デ−タベ−ス装置は、図1に例
示するように、複数の項目名と各項目名に対応される1
又は2以上のデ−タ入力欄を有するカ−ド(帳票)をデ
ィスプレイに表示して、各デ−タ入力欄へのデ−タ入力
を受け付けることで、帳票を電子的に作製するようにし
た装置である。
2. Description of the Related Art As shown in FIG. 1, a card type database apparatus has a plurality of item names and one item name corresponding to each item name.
Alternatively, by displaying a card (form) having two or more data input fields on the display and accepting data input to each data input field, the form can be electronically produced. It is a device.

【0003】特公昭64−5346号公報、特開平2−
23716号公報、特開平3−233775号公報、特
開平4−37953号公報等には、通常の日本語ワ−ド
プロセッサ機能を利用することで、カ−ドの様式(入出
力様式:図1に例示するイメ−ジ,デ−タの型等)を容
易に設計できるようにしたカ−ド型デ−タベ−ス装置が
開示されている。
Japanese Examined Patent Publication No. 64-5346, JP-A-2-
In Japanese Patent No. 23716, Japanese Patent Laid-Open No. 3-233775, Japanese Patent Laid-Open No. 4-37953, etc., a card style (input / output style: FIG. There is disclosed a card type data base device capable of easily designing the image, data type, etc. illustrated in FIG.

【0004】[0004]

【発明が解決しようとする課題】カ−ドのデ−タ入力欄
には、カ−ド1枚につき1つのデ−タ入力欄が設けられ
ている項目と、複数のデ−タ入力欄が設けられている項
目とがある。例えば、図1では、「納入先」「消費税」
「合計」の各項目には各々1つのデ−タ入力欄が設けら
れているが、「品名」「単価」「数量」「金額」の各項
目には各々4つのデ−タ入力欄が設けられている。
In the data input field of the card, there are one data input field for each card and a plurality of data input fields. There are items provided. For example, in Figure 1, "delivery destination""consumptiontax"
Each item of "total" has one data input field, but each item of "product name", "unit price", "quantity", and "amount" has four data input fields. Has been.

【0005】「納入先」は、当該カ−ドと非分離の項目
であり、デ−タ入力欄の数は1つが妥当である。また、
「消費税」及び「合計」は、当該カ−ドの「金額」のデ
−タ入力欄に記載されたデ−タ群からの算出結果を示す
項目であるため、これらもデ−タ入力欄の数は1つが妥
当であり、また、当該カ−ドと非分離でもある。
"Delivery destination" is an item that is not separated from the relevant card, and it is appropriate that the number of data input fields is one. Also,
Since "consumption tax" and "total" are items showing the calculation result from the data group described in the data input field of "amount" of the relevant card, these are also data input fields. It is reasonable that the number of is 1 and it is not separated from the card.

【0006】「品名」「単価」「数量」「金額」の各項
目は、当該カ−ドと非分離の項目ではなく、他のカ−ド
に転記し得る項目である。また、月単位で多数のカ−ド
から集計されたり、所望のデ−タを検索されたりする項
目である。したがって、これらの項目の1枚のカ−ド中
のデ−タ入力欄数は、集計や検索の見地からは必ずしも
4つである必要はないが、業務上の便宜(一括して取り
扱われる量等)を考慮して、3〜4件とされているもの
である。
The items "item name", "unit price", "quantity", and "amount" are not non-separable items from the relevant card, but can be transcribed to other cards. It is also an item that is aggregated from a large number of cards on a monthly basis and that desired data is retrieved. Therefore, the number of data input fields in one card of these items does not necessarily have to be four from the viewpoint of tabulation and retrieval, but it is convenient for business (amount handled collectively). Etc.) in consideration of 3 to 4 cases.

【0007】従来のカ−ド型デ−タベ−ス装置では、図
12に示すように、カ−ドの順番でメモリ内にデ−タが
格納されているとともに、各カ−ド中ではデ−タ入力欄
の順番(図1の例では、a,b1,c1,d1,e1,b2,c2,・・・,d
4,e4,f,gの順番)でデ−タが格納されている。また、2
件目以降のデ−タ入力欄(b2, 〜,e4 )にデ−タが入力
されなかった場合のように、(・・,e1,f,g )の順番で
格納されている場合もある。このため、集計処理や検索
処理に際しては、その都度、全デ−タを読み出す必要が
あり、処理に長時間を要している。
In the conventional card type data base apparatus, as shown in FIG. 12, the data is stored in the memory in the order of the cards and the data is stored in each card. -Order of input fields (in the example of Fig. 1, a, b1, c1, d1, e1, b2, c2, ..., d
The data is stored in the order of 4, e4, f, g). Also, 2
It may be stored in the order of (..., e1, f, g), as if no data was input to the data input fields (b2, ..., e4) after the first item. . Therefore, it is necessary to read all the data each time the totaling process or the search process is performed, and the process takes a long time.

【0008】処理時間を短縮するためには、「品名」等
の各項目について1枚のカ−ド中のデ−タ入力欄数を各
々1つにすればよい。しかし、画面上には、通常、1枚
のカ−ドのみが表示されるため、デ−タ入力欄の数を1
つにすると、入力時のオペレ−タの操作が煩雑になるば
かりでなく、入力後に画面上で確認することも難しくな
る。即ち、業務上の便宜が損なわれるという問題が生ず
る。
In order to reduce the processing time, the number of data input columns in one card for each item such as "product name" may be set to one. However, since only one card is usually displayed on the screen, the number of data input fields can be set to 1
If this is the case, not only will the operation of the operator at the time of input be complicated, but it will be difficult to confirm it on the screen after the input. That is, there arises a problem that convenience in business is impaired.

【0009】また、業務上の便宜を損なわないために、
図1のように3〜4件分のデ−タ入力欄を設けておき、
例えば、月単位でデ−タを分解して保存することで、検
索処理の所要時間を短縮する方式もあるが、この場合は
カ−ドが破壊されてしまうため、そのままでは、「消費
税」等との関係が不明になるという問題が生ずる。
Further, in order not to impair business convenience,
As shown in Fig. 1, 3 to 4 data input fields are provided,
For example, there is a method to reduce the time required for search processing by disassembling and saving the data on a monthly basis, but in this case, the card will be destroyed. The problem arises that the relationship with etc. becomes unclear.

【0010】また、「消費税」等との関係を明確にする
べく、例えば、リレ−ショナル型のデ−タベ−スのよう
に、必要な出力様式のためのファイルを各々作製する方
式では、大容量のメモリが必要になり、また、デ−タの
構造も複雑になる。本発明は、業務上の便宜を損なうこ
となく、集計処理や検索処理を短時間で行い得るカ−ド
型デ−タベ−ス装置を提供することを目的とする。
Further, in order to clarify the relationship with "consumption tax" and the like, for example, in the method of creating files for each required output format, such as a relational type database, A large capacity memory is required, and the data structure becomes complicated. SUMMARY OF THE INVENTION An object of the present invention is to provide a card type database device which can perform a totalization process and a search process in a short time without impairing business convenience.

【0011】[0011]

【課題を解決するための手段】本発明は、デ−タの格納
位置に階層レベルの概念を導入し、デ−タの格納位置を
レベル単位で纏め、下位レベルの格納位置のデ−タを指
示する場合には、該下位レベルを指示するように作製さ
れた上位レベルの指示デ−タを経由させることで、上記
の目的を達成したカ−ド型デ−タベ−ス装置である。
SUMMARY OF THE INVENTION The present invention introduces the concept of a hierarchical level to the storage location of data, collects the storage locations of data in level units, and stores the data of storage locations of lower levels. When instructing, the card-type data base apparatus achieves the above-mentioned object by passing through the instruction data of the higher level prepared so as to instruct the lower level.

【0012】即ち、本発明のカ−ド型デ−タベ−ス装置
は;項目名と各項目名に各々対応する1又は2以上のデ
−タ入力欄とを有するカ−ド様式に現在選択されている
カ−ドのデ−タを合成してディスプレイに表示する表示
制御手段;項目名と該項目名に対応するデ−タ入力欄と
をグル−プとして各グル−プの階層レベルを各々記憶し
ている階層レベル記憶手段;カ−ソルで指示される項目
名又はデ−タ入力欄の属するグル−プの階層レベルを、
該グル−プに含まれるデ−タ入力欄のデ−タの格納位置
の階層レベルとしてカウンタに設定し、メモリ内のデ−
タを読み出す毎に上記カウンタをカウントすることで、
当該階層レベルに指示を移す階層レベル指示手段;階層
レベルが非最上位であるグル−プの先頭のデ−タ入力欄
のデ−タの格納位置を指示するための指示デ−タを上記
各グル−プ毎に各々作製し、各指示デ−タの格納位置を
各々上位の階層レベルに設定する指示デ−タ作製手段;
階層レベルが同一である格納位置がメモリ内で連続し、
且つ、同一グル−プのデ−タ入力欄の各デ−タの格納位
置がメモリ内で連続するように、メモリ内のデ−タの格
納位置を制御する格納位置制御手段;入力モ−ドでデ−
タが入力された場合に於いてカ−ソルで指示されている
デ−タ入力欄の属するグル−プの階層レベルが非最上位
である場合は、該グル−プについて作製されている前記
指示デ−タに従って該グル−プの先頭のデ−タ入力欄の
デ−タの格納位置に指示を移し、さらに、該格納位置か
らの順番が上記先頭のデ−タ入力欄から上記カ−ソルで
指示されているデ−タ入力欄までの順番と同じである格
納位置に指示を移した後、該指示されている格納位置に
上記入力デ−タを格納する入力制御手段;検索モ−ドで
デ−タが入力された場合に於いてカ−ソルで指示されて
いる項目名又はデ−タ入力欄の属するグル−プの階層レ
ベルが非最上位である場合は、該グル−プについて作製
されている前記指示デ−タに従って該グル−プの先頭の
デ−タ入力欄のデ−タの格納位置に指示を移した後、該
指示されている格納位置から順番に当該グル−プのデ−
タを読み出して上記入力デ−タと比較して一致するデ−
タを探す処理を、各カ−ドについて順番に実行する検索
制御手段;を有する。
That is, the card-type data base apparatus of the present invention is currently selected in a card format having item names and one or more data input fields corresponding to each item name. Display control means for synthesizing the data of the displayed card and displaying it on the display; the item name and the data input column corresponding to the item name are grouped and the hierarchical level of each group is set. Hierarchical level storage means respectively stored; item names designated by the cursor or hierarchical levels of the group to which the data input field belongs,
The data is stored in the memory by setting it in the counter as a hierarchical level of the data storage position of the data input field included in the group.
By counting the above counter every time the data is read,
Hierarchical level instruction means for transferring an instruction to the hierarchical level; instruction data for instructing the storage location of the data in the data input field at the head of the group whose hierarchical level is not the highest level Instruction data producing means for producing each group and setting the storage position of each instruction data to a higher hierarchical level.
Storage locations with the same hierarchical level are consecutive in memory,
Further, a storage position control means for controlling the storage position of the data in the memory so that the storage positions of the respective data in the data input fields of the same group are continuous in the memory; input mode; So de
When the hierarchy level of the group to which the data input field indicated by the cursor belongs is not the highest level when the data is input, the above-mentioned instruction created for the group. According to the data, the instruction is moved to the data storage position in the data input field at the head of the group, and the order from the storage position is from the head data input field to the cursor. Input control means for storing the input data in the designated storage position after the instruction is moved to the storage position in the same order as the order up to the data input field designated by the above; When the data is input in, if the hierarchical level of the item name designated by the cursor or the group to which the data input field belongs is not the highest level, According to the above-mentioned instruction data that has been created, the data in the data input field at the head of the group is After transferring the instruction in the storage position of the data, the finger shown the sequentially from which storage position Group - flop de -
Read the data and compare it with the above input data
Search control means for sequentially executing processing for searching for each card.

【0013】上記に於いて、階層レベルは、2以上であ
る。例えば、階層レベルが3であれば、最下位の階層レ
ベルのグル−プの先頭のデ−タ入力欄のデ−タの格納位
置を指示するための指示デ−タは、中位の階層レベルの
指示デ−タと、最上位の階層レベルの指示デ−タの、合
計2つの指示デ−タが作製される。
In the above, the hierarchy level is 2 or more. For example, if the hierarchy level is 3, the instruction data for instructing the storage location of the data in the first data input field of the group of the lowest hierarchy level is the middle hierarchy level. 2 and the instruction data of the highest hierarchical level are created in total.

【0014】[0014]

【作用】複数のデ−タ入力欄を有する項目の何れかのデ
−タ入力欄(例:n番目のデ−タ入力欄)にデ−タが入
力されると、該デ−タは、当該項目の先頭(1番目)の
デ−タ入力欄を指示するように作製された指示デ−タに
よって指示される格納位置から(n−1)番目の格納位
置に格納される。
When data is input to any one of the items having a plurality of data input columns (eg, the nth data input column), the data is The data is stored in the (n-1) th storage position from the storage position indicated by the instruction data created so as to instruct the first (first) data input field of the item.

【0015】検索対象のデ−タが入力され、且つ、複数
のデ−タ入力欄を有する項目の項目名又は何れかのデ−
タ入力欄にカ−ソルが在る状態で検索が指令されると、
当該項目の先頭のデ−タ入力欄を指示するように作製さ
れた指示デ−タによって指示される格納位置から順番に
デ−タが読み出されて、上記検索対象のデ−タと比較さ
れ、また、この処理が、順番にカ−ドを変えて実行され
る。
The data to be searched is input and the item name of an item having a plurality of data input fields or any data.
When a search command is issued with a cursor in the data input field,
The data is read out in order from the storage position designated by the designation data created to designate the data input column at the head of the item, and is compared with the data to be searched. Also, this processing is executed by changing the card in order.

【0016】[0016]

【実施例】以下、本発明の実施例を説明する。図1はカ
−ドの様式を表示した状態を示し、括弧内の各符号は、
その符号の記載されたデ−タ入力欄に入力されるべきデ
−タを、図6(及び図12=従来のメモリマップ)との
対応で示す。
EXAMPLES Examples of the present invention will be described below. FIG. 1 shows a state in which the style of the card is displayed, and each symbol in parentheses is
The data to be entered in the data entry field in which the code is described is shown in correspondence with FIG. 6 (and FIG. 12 = conventional memory map).

【0017】図1に示すように、本カ−ドは納品伝票で
あり、項目名として「納入先」「消費税」「合計」と、
「品名」「単価」「数量」「金額」が設けられている。
前述のように、「納入先」「消費税」「合計」には、各
々1つのデ−タ入力欄が対応されており、また、「品
名」「単価」「数量」「金額」には、各々4つのデ−タ
入力欄が対応されている。
As shown in FIG. 1, this card is a delivery slip, and the item names are "delivery destination", "consumption tax", and "total".
"Product name", "Unit price", "Quantity" and "Amount" are provided.
As described above, one data entry field is associated with each of the "delivery destination", "consumption tax", and "total", and the "product name", "unit price", "quantity", and "amount" are: Four data input fields are associated with each.

【0018】図2,図6に示すように、上記「納入先」
「消費税」「合計」の各デ−タ入力欄に入力されるべき
デ−タ(a,f,g) の格納位置の階層レベルは「0」であ
る。また、上記「品名」「単価」「数量」「金額」の各
デ−タ入力欄に入力されるべきデ−タ(b1,b2, ・・・,e
3,e4) の格納位置の階層レベルは「1」ある。なお、図
2の各デ−タ(b,c,d,e) は、各々上記「品名」「単価」
「数量」「金額」の先頭のデ−タ入力欄に入力されるべ
きデ−タ(b1,c1,d1,e1) の格納位置を指示するように作
製された指示デ−タであり、階層レベルは「0」であ
る。
As shown in FIGS. 2 and 6, the "delivery destination" mentioned above.
The hierarchical level of the storage position of the data (a, f, g) to be entered in the respective data input fields of "consumption tax" and "total" is "0". In addition, the data (b1, b2, ..., e) that should be entered in the respective data input fields of the above "product name""unitprice""quantity""amount"
The hierarchical level of the storage location of 3, e4) is "1". In addition, each data (b, c, d, e) in Fig. 2 is the above "product name""unitprice".
Hierarchical instruction data created to indicate the storage location of the data (b1, c1, d1, e1) that should be entered in the data input fields at the beginning of "quantity" and "amount". The level is "0".

【0019】本装置は、図3のように、キ−ボ−ド,デ
ィスプレイ,プリンタを有するとともに、本体内には、
文書編集部,処理部,RAMを有する。文書編集部は、
一般的な日本語ワ−ドプロセッサの文書編集機能を有
し、さらに、デ−タベ−ス編集機能を有する。これは、
カ−ドの様式(入力様式,出力様式)の設計、項目名の
定義、デ−タの入力、デ−タの型(文字,数値,論理,
日付等)の定義、等を行う機能である。
This apparatus has a keyboard, a display and a printer as shown in FIG.
It has a document editing unit, a processing unit, and a RAM. The document editor
It has a document editing function of a general Japanese word processor, and further has a database editing function. this is,
Design of card style (input style, output style), definition of item name, data input, data type (character, number, logic,
It is a function to define (date etc.).

【0020】処理部では、文書編集部で設計されたカ−
ドの様式をRAMのカ−ドイメ−ジに格納する処理や、
逆に、RAMのカ−ドイメ−ジからカ−ドの様式を読み
出して、ディスプレイに表示したりプリンタからプリン
トアウトしたりするための処理が行われる。なお、カ−
ドの様式は、各カ−ドのデ−タとは別に格納されてお
り、出力時に定義に従って合成される。
In the processing section, the card designed in the document editing section is used.
Processing to store the card style in the card image of RAM,
On the contrary, the mode of the card is read from the card image in the RAM and displayed on the display or printed out from the printer. The car
The mode of the card is stored separately from the data of each card, and is synthesized according to the definition at the time of output.

【0021】また、処理部では、文書編集部でカ−ド様
式のデ−タ入力欄に入力されたデ−タをRAMのカ−ド
デ−タに格納する処理や、文書編集部で入力された集計
や検索に対応してRAMのカ−ドデ−タからデ−タを読
み出して集計したり検索したりする処理が行われる。
Further, in the processing section, the processing of storing the data inputted in the card-style data input field in the document editing section in the card data of the RAM and the input in the document editing section Corresponding to the totalization and retrieval performed, the data is read from the card data in the RAM and the processing of totaling and retrieval is performed.

【0022】以下、処理部で実行される処理のうち、デ
−タ入力時の処理と、デ−タ検索時の処理を、メモリマ
ップを参照しつつフロ−チャ−トに即して説明する。
Of the processing executed by the processing section, the processing at the time of data input and the processing at the time of data search will be described below in accordance with the flow chart with reference to the memory map. .

【0023】*デ−タ入力時の処理:図7,図8 具体例として、「品名」という項目の2番目の「デ−タ
入力欄」にカ−ソルを合わせて、「テレビ」というデ−
タを入力する場合を説明する。
* Processing at the time of inputting data: FIGS. 7 and 8 As a specific example, when the cursor is placed in the second "data input field" of the item "product name", the data "TV" is displayed. −
The case of inputting data will be described.

【0024】キ−ボ−ドから入力されたデ−タ「テレ
ビ」は、入力デ−タバッファに記憶される(S101)。ま
た、カレントカ−ドバッファには、現在選択中のカ−ド
(1件目のカ−ド=カ−ド番号0,図4参照)が記憶さ
れている(S103)。一方、カレント項目バッファにはカ−
ソル位置の項目番号1(図5参照)が記憶されており、
カレント行バッファにはカ−ソル位置の行番号1(図6
参照)が記憶されている(S105)。
The data "TV" input from the keyboard is stored in the input data buffer (S101). The current card buffer stores the currently selected card (first card = card number 0, see FIG. 4) (S103). On the other hand, the current item buffer is
The sol position item number 1 (see FIG. 5) is stored,
The line number 1 at the cursor position is stored in the current line buffer (see FIG. 6).
Is stored (S105).

【0025】この状態で、入力の終了を指示するキ−の
押下が検出されると(S107;YES)、レベルカウンタに、カ
レント項目バッファに記憶されている項目番号1の階層
レベル1(図5参照)が代入される(S111)。また、アド
レスバッファには、カレントカ−ドバッファに記憶され
ているカ−ド番号0の絶対アドレス(1件目のカ−ドデ
−タの先頭を示すアドレス)に、カレント項目バッファ
に記憶されている項目番号1を加えた値が記憶される。
換言すれば、アドレスバッファには、図6の1件目のカ
−ドの2番目のデ−タ(b) のアドレスが記憶される(S11
3)。
In this state, when the pressing of the key for instructing the end of the input is detected (S107; YES), the level counter indicates the hierarchical level 1 (FIG. 5) of the item number 1 stored in the current item buffer. (Reference) is substituted (S111). In the address buffer, the absolute address of the card number 0 stored in the current card buffer (the address indicating the head of the first card data) is stored in the current item buffer. The value to which item number 1 is added is stored.
In other words, the address buffer stores the address of the second data (b) of the first card in FIG. 6 (S11).
3).

【0026】次に、アドレスバッファで指示されるアド
レスのデ−タ(図6のデ−タ(b))が読み出される(S12
1)。当初、レベルカウンタは1であるため(S123;NO, 前
記S111参照)、ステップS125に進み、図6の1件目のカ
−ドの2番目のデ−タ(b) の相対アドレスを絶対アドレ
スに変換したアドレス(この場合は品名の先頭デ−タ(b
1)のアドレス)が、アドレスバッファに記憶される。ま
た、レベルカウンタがデクリメントされる(S127)。
Next, the data of the address designated by the address buffer (data (b) of FIG. 6) is read (S12).
1). Since the level counter is 1 at the beginning (S123; NO, see S111 above), the process proceeds to step S125, where the relative address of the second data (b) of the first card in FIG. 6 is an absolute address. Address converted to (in this case, the first data (b
The address 1) is stored in the address buffer. Further, the level counter is decremented (S127).

【0027】次に、再びステップS121が実行されてデ−
タが読み出される。この場合、品名の先頭デ−タ(b1)の
アドレスには、デ−タが無い。なお、この処理は、階層
レベルが3以上のデ−タ構造の場合を想定したものであ
る。次に、レベルカウンタが判定され、今度は、ステッ
プS131以降に進む。
Next, step S121 is executed again to delete the data.
Data is read. In this case, the address of the head data (b1) of the product name has no data. It should be noted that this processing is based on the assumption that the data structure has three or more hierarchical levels. Next, the level counter is determined, and this time, the process proceeds to step S131 and thereafter.

【0028】まず、アドレスバッファに記憶されている
アドレス(品名の先頭デ−タ(b1)のアドレス)に、カレ
ント行バッファの行番号1(前記S105参照)を加えたア
ドレス、換言すれば、品名の2番目のデ−タ(b2)のアド
レスに、入力デ−タバッファに記憶されているデ−タ
「テレビ」(前記S101参照)が格納される(S131)。
First, an address obtained by adding the line number 1 (see S105 above) of the current line buffer to the address stored in the address buffer (the address of the head data (b1) of the product name), in other words, the product name. The data "television" (see S101 above) stored in the input data buffer is stored in the address of the second data (b2) of the above (S131).

【0029】その後、図6の(b) の位置の品名デ−タ数
が、1増加するように補正される(S141)。また、単価,
数量,金額の各先頭デ−タの各相対アドレス(図6の
(c) 〜(e) のデ−タ)が、各々補正される(S143)。ここ
で、品名の先頭デ−タ(b1)の格納位置がデ−タ「テレ
ビ」の格納前に空欄であった場合は、補正による増加数
は2である。また、品名の先頭デ−タ(b1)の格納位置に
デ−タ「テレビ」の格納前に既にデ−タが格納されてい
た場合は、補正による増加数は1である。
After that, the number of item name data at the position of FIG. 6B is corrected so as to increase by 1 (S141). Also, the unit price,
Each relative address of each head data of quantity and amount (Fig. 6)
The data (c) to (e)) are corrected (S143). Here, if the storage position of the head data (b1) of the product name is blank before the storage of the data "TV", the number increased by the correction is 2. Further, if the data is already stored in the storage position of the head data (b1) of the product name before the data "TV" is stored, the increment number by the correction is one.

【0030】さらに、カ−ドインデックスデ−タの各絶
対アドレスが、各々補正される(S145)。この補正による
増加数も、上記ステップS143と同様である。このように
して、デ−タ入力時の処理が行われる。
Further, each absolute address of the card index data is corrected (S145). The number increased by this correction is also the same as in step S143 above. In this way, the processing at the time of data input is performed.

【0031】*デ−タ検索時の処理:図9〜図11 具体例として、「品名」という項目の項目名、又は、該
項目名に対応する「デ−タ入力欄」にカ−ソルを合わせ
て、「テレビ」というデ−タを検索する場合を説明す
る。
* Processing at the time of data retrieval: FIGS. 9 to 11 As a specific example, a cursor is placed on the item name of the item "product name" or the "data input field" corresponding to the item name. In addition, a case of retrieving data "TV" will be described.

【0032】カレント項目バッファには、カ−ソル位置
の項目番号1(図5参照)が記憶されており(S201)、ま
た、キ−ボ−ドから入力されたデ−タ「テレビ」は、入
力デ−タバッファに記憶される(S203)。この状態で、キ
−ボ−ドからの入力等によって検索モ−ドが設定される
と(S205;YES)、検索項目バッファには、カレント項目バ
ッファに記憶されている項目番号1が記憶され、検索デ
−タバッファには、入力デ−タバッファに記憶されてい
るデ−タ「テレビ」が記憶される(S211)。
In the current item buffer, the item number 1 (see FIG. 5) at the cursor position is stored (S201), and the data "TV" input from the keyboard is It is stored in the input data buffer (S203). In this state, when the search mode is set by inputting from the keyboard (S205; YES), the search item buffer stores the item number 1 stored in the current item buffer, The data "TV" stored in the input data buffer is stored in the search data buffer (S211).

【0033】次に、検索の開始を指示するキ−の押下が
検出されると(S213;YES)、カレントカ−ドバッファに、
1件目のカ−ドであるカ−ド番号0が記憶されるととも
に(S221)、検索カ−ドバッファに、カレントカ−ドバッ
ファの1件目のカ−ドであるカ−ド番号0が記憶される
(S223)。
Next, when the pressing of the key for instructing the start of the search is detected (S213; YES), the current card buffer is
The card number 0 which is the first card is stored (S221), and the card number 0 which is the first card of the current card buffer is stored in the search card buffer. Ru
(S223).

【0034】さらに、レベルカウンタに、検索項目バッ
ファに記憶されている項目番号1の階層レベル1(図5
参照)が代入される(S225)。また、アドレスバッファに
は、検索カ−ドバッファに記憶されているカ−ド番号0
の絶対アドレス(1件目のカ−ドデ−タの先頭を示すア
ドレス)に、検索項目バッファに記憶されている項目番
号1を加えた値が記憶される(S227)。こうして、アドレ
スバッファには、図6の1件目のカ−ドの2番目のデ−
タ(b) のアドレスが記憶される。
Further, in the level counter, the hierarchy level 1 of the item number 1 stored in the search item buffer (see FIG. 5).
(Reference) is substituted (S225). The address buffer stores the card number 0 stored in the search card buffer.
The value obtained by adding the item number 1 stored in the search item buffer to the absolute address (the address indicating the beginning of the first card data) is stored (S227). Thus, the address buffer stores the second data of the first card in FIG.
The address of data (b) is stored.

【0035】次に、アドレスバッファで指示されるアド
レスのデ−タ(図6のデ−タ(b))が読み出される(S23
1)。当初、レベルカウンタは1であるため(S233;NO, 前
記S225参照)、ステップS235に進み、図6の1件目のカ
−ドの2番目のデ−タ(b) の相対アドレスを絶対アドレ
スに変換したアドレス(この場合は品名の先頭デ−タ(b
1)のアドレス)が、アドレスバッファに記憶される。ま
た、レベルカウンタがデクリメントされる(S237)。
Next, the data of the address designated by the address buffer (data (b) of FIG. 6) is read (S23).
1). Initially, the level counter is 1 (S233; NO, refer to S225 above), so the flow proceeds to step S235, and the relative address of the second data (b) of the first card in FIG. Address converted to (in this case, the first data (b
The address 1) is stored in the address buffer. Further, the level counter is decremented (S237).

【0036】次に、再びステップS231が実行されてデ−
タが読み出される。この場合、品名の先頭デ−タ(b1)が
読みだされる。なお、この処理は、階層レベルが3以上
のデ−タ構造の場合にも対応し得るように実行されるも
のである。次に、レベルカウンタが判定され、今度は、
ステップS241以降に進む。
Next, step S231 is executed again to delete the data.
Data is read. In this case, the leading data (b1) of the product name is read. It should be noted that this processing is executed so as to be applicable to the case where the data structure has three or more hierarchical levels. Next, the level counter is determined, this time
Proceed to step S241 and subsequent steps.

【0037】まず、ステップS241で、行カウンタに0が
代入される。次に、ステップS251〜S259の処理が実行さ
れる。この処理は、「品名」の各デ−タ(図6のb1,b2,
b3,b4)を、検索デ−タバッファに記憶されているデ−タ
「テレビ」と、順次比較するための処理である。
First, in step S241, 0 is assigned to the row counter. Next, the processes of steps S251 to S259 are executed. This processing is performed by each data of "Product name" (b1, b2,
b3, b4) is a process for sequentially comparing the data "television" stored in the search data buffer.

【0038】まず、アドレスバッファのアドレスに、行
カウンタのカウント値(初回は、S241で代入された0)
を加えた値で指示されるアドレス(初回は品名の先頭デ
−タb1のアドレス) のデ−タが読み出されて、比較デ−
タバッファに記憶される(S251)。次に、この比較デ−タ
バッファのデ−タが、検索デ−タバッファに記憶されて
いるデ−タ「テレビ」と比較される(S253)。
First, the count value of the row counter is set to the address of the address buffer (the initial value is 0 substituted in S241).
The data of the address (the address of the first data b1 of the product name for the first time) designated by the value added with is read and the comparison data
Stored in the data buffer (S251). Next, the data in the comparison data buffer is compared with the data "TV" stored in the search data buffer (S253).

【0039】比較の結果、一致する場合(S255;YES)、即
ち、所望のデ−タが検索された場合には、該検索された
デ−タを出力するための処理が行われる(S261)。一方、
一致しない場合には、行カウンタがインクリメントされ
て(S257)、再びステップS251〜S255の処理が行われる。
これにより、図6の品名の2番目のデ−タb2が読み出さ
れて、同様に比較される。
As a result of the comparison, if they match (S255; YES), that is, if the desired data is retrieved, a process for outputting the retrieved data is performed (S261). . on the other hand,
If they do not match, the row counter is incremented (S257), and the processes of steps S251 to S255 are performed again.
As a result, the second data b2 of the product name in FIG. 6 is read and compared in the same manner.

【0040】こうして、図6の品名の各デ−タ(b1,b2,b
3,,b4)について、検索デ−タ「テレビ」との比較が終了
すると(S259;YES)、次にカ−ドについて同様の検索処理
を行うべく、検索カ−ドバッファに、次のカ−ド番号が
記憶される(S271)。その後、該次のカ−ドについて、上
記と同様にステップS225〜S259の処理が実行される。な
お、全てのカ−ドについての検索処理が終了しても、該
当するデ−タが見つからなかった場合は(S273;YES)、そ
の旨の出力が行われる(S281)。このようにして、デ−タ
検索時の処理が行われる。
Thus, each data (b1, b2, b) of the product name in FIG.
(3, b4), when the comparison with the search data "TV" is completed (S259; YES), the next card is stored in the search card buffer in order to perform the same search processing for the next card. The mode number is stored (S271). Then, for the next card, the processes of steps S225 to S259 are executed in the same manner as above. Even if the search processing for all the cards is completed, if the corresponding data is not found (S273; YES), an output to that effect is output (S281). In this way, the processing at the time of data retrieval is performed.

【0041】[0041]

【発明の効果】以上、本発明では、デ−タの格納位置に
階層レベルの概念を導入して格納位置をレベル単位で纏
めておき、デ−タ入力や検索のために下位レベルの格納
位置を指示する場合(複数のデ−タ入力欄を有する項目
を指示する場合)には、該下位レベルを指示するように
作製されて上位レベルに格納されている指示デ−タを経
由させている。即ち、同一の項目に対応する複数のデ−
タ入力欄をグル−プに纏め、該グル−プを一括して指示
するデ−タを作製して該グル−プの上位の階層に格納し
ておくことで、当該項目を指示するデ−タのカ−ドデ−
タ内に於ける格納位置を、当該項目のデ−タ入力欄の数
にかかわらず、不変にしている。
As described above, in the present invention, the concept of the hierarchical level is introduced to the storage position of the data, and the storage positions are grouped in level units, and the storage position of the lower level is used for data input and retrieval. (When instructing an item having a plurality of data input fields), the instruction data stored so as to instruct the lower level is stored in the upper level. . That is, a plurality of data corresponding to the same item
By grouping the data input fields into groups, creating data for collectively instructing the groups, and storing it in the upper hierarchy of the group, the data for instructing the relevant items can be obtained. Cardboard
The storage position in the data is unchanged regardless of the number of data input fields of the item.

【0042】このため、カ−ドの様式は業務上の便宜に
適した様式のままで、集計や検索等の処理時間を短縮で
きる。また、必要な出力様式のファイルを各々作製する
場合に比較して、メモリの容量も小さくて足りる。
For this reason, the card format can be reduced to the processing time such as totalization and retrieval while keeping the format suitable for business convenience. Further, the capacity of the memory can be small as compared with the case where each file of the required output format is created.

【図面の簡単な説明】[Brief description of drawings]

【図1】実施例のカ−ドの様式を示す図。FIG. 1 is a diagram showing a card format of an example.

【図2】デ−タの階層構造を示す図。FIG. 2 is a diagram showing a hierarchical structure of data.

【図3】実施例装置の構成を示すブロック図。FIG. 3 is a block diagram showing a configuration of an apparatus according to an embodiment.

【図4】カ−ドデ−タインデックスのメモリマップ。FIG. 4 is a memory map of a card data index.

【図5】定義デ−タのメモリマップ。FIG. 5 is a memory map of definition data.

【図6】カ−ドデ−タのメモリマップ。FIG. 6 is a memory map of card data.

【図7】デ−タ入力時の処理の一部を示すフロ−チャ−
ト。
FIG. 7 is a flowchart showing a part of the processing at the time of data input.
To.

【図8】デ−タ入力時の処理の残部を示すフロ−チャ−
ト。
FIG. 8 is a flowchart showing the rest of the processing when data is input.
To.

【図9】デ−タ検索時の処理の一部を示すフロ−チャ−
ト。
FIG. 9 is a flowchart showing a part of the processing at the time of data retrieval.
To.

【図10】デ−タ検索時の処理の一部を示すフロ−チャ
−ト。
FIG. 10 is a flowchart showing a part of the processing at the time of data retrieval.

【図11】デ−タ検索時の処理の残部を示すフロ−チャ
−ト。
FIG. 11 is a flowchart showing the rest of the processing at the time of data retrieval.

【図12】従来のカ−ドデ−タのメモリマップ。FIG. 12 is a memory map of conventional card data.

フロントページの続き (72)発明者 豊倉 完治 大阪府守口市京阪本通2丁目18番地 三洋 電機株式会社内Front Page Continuation (72) Inventor Kanji Toyokura 2-18 Keihan Hondori, Moriguchi City, Osaka Sanyo Electric Co., Ltd.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 項目名と各項目名に各々対応する1又は
2以上のデ−タ入力欄とを有するカ−ド様式に、現在選
択されているカ−ドのデ−タを合成して、ディスプレイ
に表示する表示制御手段と、 項目名と該項目名に対応するデ−タ入力欄とをグル−プ
として、各グル−プの階層レベルを各々記憶している階
層レベル記憶手段と、 カ−ソルで指示される項目名又はデ−タ入力欄の属する
グル−プの階層レベルを、該グル−プに含まれるデ−タ
入力欄のデ−タの格納位置の階層レベルとしてカウンタ
に設定し、メモリ内のデ−タを読み出す毎に上記カウン
タをカウントすることで、当該階層レベルに指示を移す
階層レベル指示手段と、 階層レベルが非最上位であるグル−プの先頭のデ−タ入
力欄のデ−タの格納位置を指示するための指示デ−タを
上記各グル−プ毎に各々作製し、各指示デ−タの格納位
置を各々上位の階層レベルに設定する指示デ−タ作製手
段と、 階層レベルが同一である格納位置がメモリ内で連続し、
且つ、同一グル−プのデ−タ入力欄の各デ−タの格納位
置がメモリ内で連続するように、メモリ内のデ−タの格
納位置を制御する格納位置制御手段と、 入力モ−ドでデ−タが入力された場合に於いてカ−ソル
で指示されているデ−タ入力欄の属するグル−プの階層
レベルが非最上位である場合は、該グル−プについて作
製されている前記指示デ−タに従って該グル−プの先頭
のデ−タ入力欄のデ−タの格納位置に指示を移し、さら
に、該格納位置からの順番が上記先頭のデ−タ入力欄か
ら上記カ−ソルで指示されているデ−タ入力欄までの順
番と同じである格納位置に指示を移した後、該指示され
ている格納位置に上記入力デ−タを格納する入力制御手
段と、 検索モ−ドでデ−タが入力された場合に於いてカ−ソル
で指示されている項目名又はデ−タ入力欄の属するグル
−プの階層レベルが非最上位である場合は、該グル−プ
について作製されている前記指示デ−タに従って該グル
−プの先頭のデ−タ入力欄のデ−タの格納位置に指示を
移した後、該指示されている格納位置から順番に当該グ
ル−プのデ−タを読み出して上記入力デ−タと比較して
一致するデ−タを探す処理を、各カ−ドについて順番に
実行する検索制御手段と、 を有するカ−ド型デ−タベ−ス装置。
1. The data of the currently selected card is combined in a card format having an item name and one or more data input fields corresponding to each item name. A display control means for displaying on the display, and a hierarchy level storage means for storing the hierarchy level of each group with the item name and the data input field corresponding to the item name as a group, The item name indicated by the cursor or the hierarchical level of the group to which the data input field belongs is stored in the counter as the hierarchical level of the data storage position of the data input field included in the group. By setting and counting the counter each time the data in the memory is read, the hierarchy level indicating means for moving the instruction to the relevant hierarchy level and the top data of the group whose hierarchy level is not the highest level. Instruction data for instructing the storage location of data in the data input field Is created for each of the above groups, and an instruction data creating means for setting the storage position of each instruction data to an upper hierarchical level and a storage position having the same hierarchical level are consecutive in the memory. Then
Further, a storage position control means for controlling the storage position of the data in the memory and an input mode so that the storage positions of the respective data in the data input fields of the same group are continuous in the memory. When the data is input in the mode, if the hierarchical level of the group to which the data input field specified by the cursor belongs is not the highest level, the group is created for that group. In accordance with the instruction data, the instruction is moved to the data storage position of the head data input field of the group, and the order from the storage position is from the head data input field. An input control means for storing the input data in the designated storage position after moving the designation to the storage position which is the same as the order up to the data input field designated by the cursor , Item name specified by the cursor when data is entered in the search mode When the hierarchical level of the group to which the data input field belongs is not the highest level, the data input field at the head of the group is in accordance with the instruction data prepared for the group. After the instruction is moved to the storage position of the data, the data of the group is sequentially read from the instructed storage position, and the same data is compared with the input data. A card-type data base apparatus having: search control means for sequentially executing a searching process for each card.
JP5146962A 1993-05-25 1993-05-25 Card type data base device Pending JPH06332926A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5146962A JPH06332926A (en) 1993-05-25 1993-05-25 Card type data base device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5146962A JPH06332926A (en) 1993-05-25 1993-05-25 Card type data base device

Publications (1)

Publication Number Publication Date
JPH06332926A true JPH06332926A (en) 1994-12-02

Family

ID=15419523

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5146962A Pending JPH06332926A (en) 1993-05-25 1993-05-25 Card type data base device

Country Status (1)

Country Link
JP (1) JPH06332926A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006302112A (en) * 2005-04-22 2006-11-02 Ohbayashi Corp File production method, file production system, file management system, file and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006302112A (en) * 2005-04-22 2006-11-02 Ohbayashi Corp File production method, file production system, file management system, file and program

Similar Documents

Publication Publication Date Title
US5765005A (en) Method for preparing form
JP2855207B2 (en) Form output device
JPH06332926A (en) Card type data base device
JP3145723B2 (en) Search and display device for holdings in museums
JPH09204449A (en) Parts list generation processor
JP3047400B2 (en) Data processing device
JP2798777B2 (en) Word processor
JP3354249B2 (en) Schedule management information input device
JP2760530B2 (en) Data search method
JPH05314108A (en) Document editor
JPH09330369A (en) Retrieval system for data base with document form
JP2834032B2 (en) Individual output method of the same attribute form
JPH09305355A (en) Device and method for information input
JPH0667945A (en) Electronic filing device
JPH025175A (en) Character processor
JPS63173163A (en) Information retriever
JPH06266487A (en) Information processor and help information presenting method
JPS62182966A (en) Kanji input unit
JPH11110396A (en) Printed matter production support system
JPH0916790A (en) Pattern editing system
JPS6177889A (en) Screen control system
JPH05274134A (en) Production system for screen operation manual
JPH0756950A (en) Electronic filing device
JP2003099703A (en) Information processor
JPH06187225A (en) Information processor