JP5375256B2 - Form creation device, form creation method, and form creation program - Google Patents

Form creation device, form creation method, and form creation program Download PDF

Info

Publication number
JP5375256B2
JP5375256B2 JP2009078628A JP2009078628A JP5375256B2 JP 5375256 B2 JP5375256 B2 JP 5375256B2 JP 2009078628 A JP2009078628 A JP 2009078628A JP 2009078628 A JP2009078628 A JP 2009078628A JP 5375256 B2 JP5375256 B2 JP 5375256B2
Authority
JP
Japan
Prior art keywords
data
keyword
hierarchy
layout
hierarchical
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2009078628A
Other languages
Japanese (ja)
Other versions
JP2010231527A (en
Inventor
友章 佐川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2009078628A priority Critical patent/JP5375256B2/en
Publication of JP2010231527A publication Critical patent/JP2010231527A/en
Application granted granted Critical
Publication of JP5375256B2 publication Critical patent/JP5375256B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、リポジトリまたはデータベースから情報を抽出し、帳票を作成する帳票作成装置、帳票作成方法及び帳票作成プログラムに関する。   The present invention relates to a form creation device, a form creation method, and a form creation program that extract information from a repository or a database and create a form.

データベースのレコードに含まれる複数のフィールドから必要なフィールドを選択し、選択されたフィールドと新たに追加された追加フィールドとで所望する帳票に対応する帳票データベースを作成し、この作成された帳票データベースと、帳票のレイアウトが定義されたレイアウト定義とを参照して帳票を作成する帳票作成装置が知られている(例えば、特許文献1参照)。   A required field is selected from a plurality of fields included in a database record, and a form database corresponding to a desired form is created using the selected field and a newly added field, and the created form database and A form creation device that creates a form with reference to a layout definition in which a form layout is defined is known (see, for example, Patent Document 1).

この帳票作成装置は、参照元のデータベースに含まれていない新規フィールドを帳票データベースに追加したり、レイアウト定義に定義されているデータを変更したりすることができる。この帳票作成装置を用いることにより、利用者が帳票のレイアウトを変更したり、帳票へ新たなデータを追加したりすることが可能となる。   This form creation device can add a new field that is not included in the reference source database to the form database or change data defined in the layout definition. By using this form creation device, the user can change the layout of the form or add new data to the form.

特開2000−99595号公報JP 2000-99595 A

しかし、特許文献1に記載の帳票作成装置は帳票データベースを作成するための定義が必要であり、利用者は帳票データベースを作成するための定義とレイアウト定義の両方を作成しなければならない。更に、レイアウト定義の構成が複雑であり、利用者にとってレイアウト定義を作成または編集することは容易ではない。   However, the form creation device described in Patent Document 1 requires a definition for creating a form database, and the user must create both a definition for creating the form database and a layout definition. Furthermore, the layout definition configuration is complicated, and it is not easy for the user to create or edit the layout definition.

本発明は、上記問題点に鑑みてなされたものであり、リポジトリまたはデータベースから抽出された情報(データ)に基づいて作成される帳票について、帳票のレイアウトを容易に変更することができ、リポジトリまたはデータベースに登録されていない情報(データ)を帳票に容易に追加することができる帳票作成装置、帳票作成方法及び帳票作成プログラムを提供することを目的とする。   The present invention has been made in view of the above problems, and for a form created based on information (data) extracted from a repository or database, the layout of the form can be easily changed. An object is to provide a form creation device, a form creation method, and a form creation program that can easily add information (data) not registered in a database to a form.

上記目的を達成するため、本発明に係る帳票作成装置は、複数の階層に階層化され、下位の階層のデータが上位の階層のデータに紐付けられているデータと、各階層に割り当てられたキーワードとを記憶するデータ記憶手段と、
複数のセルを含むレイアウトデータを記憶するレイアウト記憶手段と、
各階層に割り当てられたキーワードが連結された階層キーワードとデータとを入力する入力手段と、
前記入力手段によって入力された階層キーワードとデータとを、個々に、前記レイアウト記憶手段に記憶されているレイアウトデータに含まれる複数のセルの中のいずれかに設定するレイアウト編集手段と、
前記レイアウト編集手段によって設定された階層キーワードに含まれる各キーワードが示す最も上位の階層のデータを指定する指定手段と、
前記レイアウト編集手段によって階層キーワードが設定された各セルについて、当該階層キーワードに含まれるキーワードが示す最も下位の階層に属し、かつ、前記指定手段によって指定されたデータに紐付けられているデータを前記データ記憶手段から読み出し、当該階層キーワードを当該読み出されたデータに置き換える置換手段と、
前記置換手段によって全ての階層キーワードがデータに置き換えられたレイアウトデータに基づいて、帳票を生成する帳票生成手段と、
を備えることを特徴とする。
In order to achieve the above object, the form creation device according to the present invention is hierarchized into a plurality of hierarchies, data in which lower hierarchies are linked to data in upper hierarchies, and assigned to each hierarchy Data storage means for storing keywords;
Layout storage means for storing layout data including a plurality of cells;
An input means for inputting a hierarchical keyword and data obtained by concatenating keywords assigned to each hierarchy;
Layout editing means for individually setting the hierarchy keyword and data input by the input means to any one of a plurality of cells included in the layout data stored in the layout storage means;
Designating means for designating data of the highest hierarchy indicated by each keyword included in the hierarchical keyword set by the layout editing means;
For each cell in which a hierarchical keyword is set by the layout editing means, the data belonging to the lowest hierarchy indicated by the keyword included in the hierarchical keyword and associated with the data specified by the specifying means is the data Replacement means for reading from the data storage means and replacing the hierarchical keyword with the read data;
A form generating means for generating a form based on the layout data in which all the hierarchical keywords are replaced with data by the replacing means;
It is characterized by providing.

また、本発明に係る帳票作成方法は、複数の階層に階層化され、下位の階層のデータが上位の階層のデータに紐付けられているデータに基づいて帳票を作成する帳票作成方法であって、
前記データの各階層に割り当てられたキーワードが連結された階層キーワードと、データとが入力される入力工程と、
入力された前記階層キーワードと前記データとを、個々に、レイアウト記憶手段に記憶されているレイアウトデータに含まれる複数のセルの中のいずれかに設定するレイアウト編集工程と、
設定された前記階層キーワードに含まれる各キーワードが示す最も上位の階層のデータが指定される指定工程と、
前記階層キーワードが設定された各セルについて、当該階層キーワードに含まれるキーワードが示す最も下位の階層に属し、かつ、指定された前記データに紐付けられているデータをデータ記憶手段から読み出し、当該階層キーワードを当該読み出されたデータに置き換える置換工程と、
全ての階層キーワードがデータに置き換えられたレイアウトデータに基づいて、帳票を生成する帳票生成工程と、
を備えることを特徴とする。
The form creation method according to the present invention is a form creation method for creating a form based on data that is hierarchized into a plurality of hierarchies and data in a lower hierarchy is linked to data in an upper hierarchy. ,
An input process in which a hierarchical keyword in which keywords assigned to each hierarchical level of the data are connected and data is input;
A layout editing step in which the input hierarchical keyword and the data are individually set to any one of a plurality of cells included in layout data stored in layout storage means;
A designation step in which data of the highest hierarchy indicated by each keyword included in the set hierarchy keyword is designated;
For each cell in which the hierarchy keyword is set, data belonging to the lowest hierarchy indicated by the keyword included in the hierarchy keyword and associated with the specified data is read from the data storage means, and the hierarchy A replacement step of replacing the keyword with the read data;
A form generation process for generating a form based on layout data in which all hierarchical keywords are replaced with data,
It is characterized by providing.

また、本発明に係る帳票作成プログラムは、コンピュータを、
複数の階層に階層化され、下位の階層のデータが上位の階層のデータに紐付けられているデータと、各階層に割り当てられたキーワードとを記憶するデータ記憶手段と、
複数のセルを含むレイアウトデータを記憶するレイアウト記憶手段と、
各階層に割り当てられたキーワードが連結された階層キーワードとデータとを入力する入力手段と、
前記入力手段によって入力された階層キーワードとデータとを、個々に、前記レイアウト記憶手段に記憶されているレイアウトデータに含まれる複数のセルの中のいずれかに設定するレイアウト編集手段と、
前記レイアウト編集手段によって設定された階層キーワードに含まれる各キーワードが示す最も上位の階層のデータを指定する指定手段と、
前記レイアウト編集手段によって階層キーワードが設定された各セルについて、当該階層キーワードに含まれるキーワードが示す最も下位の階層に属し、かつ、前記指定手段によって指定されたデータに紐付けられているデータを前記データ記憶手段から読み出し、当該階層キーワードを当該読み出されたデータに置き換える置換手段と、
前記置換手段によって全ての階層キーワードがデータに置き換えられたレイアウトデータに基づいて、帳票を生成する帳票生成手段と、
して機能させる。
Further, the form creation program according to the present invention includes a computer,
Data storage means for storing data that is hierarchized into a plurality of hierarchies, in which data of lower hierarchies are linked to data of upper hierarchies, and keywords assigned to the respective hierarchies;
Layout storage means for storing layout data including a plurality of cells;
An input means for inputting a hierarchical keyword and data obtained by concatenating keywords assigned to each hierarchy;
Layout editing means for individually setting the hierarchy keyword and data input by the input means to any one of a plurality of cells included in the layout data stored in the layout storage means;
Designating means for designating data of the highest hierarchy indicated by each keyword included in the hierarchical keyword set by the layout editing means;
For each cell in which a hierarchical keyword is set by the layout editing means, the data belonging to the lowest hierarchy indicated by the keyword included in the hierarchical keyword and associated with the data specified by the specifying means is the data Replacement means for reading from the data storage means and replacing the hierarchical keyword with the read data;
A form generating means for generating a form based on the layout data in which all the hierarchical keywords are replaced with data by the replacing means;
And make it work.

本発明によれば、リポジトリまたはデータベースから抽出された情報(データ)に基づいて作成される帳票について、帳票のレイアウトを容易に変更することができ、リポジトリまたはデータベースに登録されていない情報(データ)を帳票に容易に追加することができる。   According to the present invention, it is possible to easily change the layout of a form created based on information (data) extracted from a repository or database, and information (data) that is not registered in the repository or database. Can be easily added to the form.

本発明の実施形態に係る帳票作成装置の一例を示す図である。It is a figure which shows an example of the form creation apparatus which concerns on embodiment of this invention. 3つの階層に階層化されたデータの階層構成の一例を示す図である。It is a figure which shows an example of the hierarchical structure of the data hierarchized into three hierarchies. 階層化されたデータの間の関連を示すテーブルの一例を示す図である。It is a figure which shows an example of the table which shows the relationship between the hierarchical data. レイアウトデータの一例を示す図である。It is a figure which shows an example of layout data. 図3のテーブルと図4のレイアウトデータに基づいて生成される帳票の一例を示す図である。FIG. 5 is a diagram illustrating an example of a form generated based on the table of FIG. 3 and the layout data of FIG. 4. 図4のレイアウトデータとは異なるレイアウトデータの例を示す図である。FIG. 5 is a diagram illustrating an example of layout data different from the layout data of FIG. 4. 図3のテーブルと図6のレイアウトデータに基づいて生成される帳票の一例を示す図である。It is a figure which shows an example of the form produced | generated based on the table of FIG. 3, and the layout data of FIG. 帳票作成処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a form creation process. 4つの階層に階層化されたデータの階層構成の一例を示す図である。It is a figure which shows an example of the hierarchical structure of the data hierarchized into four hierarchies. 第4の階層に属するデータと上位の階層に属するデータの間の関連を示すテーブルの一例を示す図である。It is a figure which shows an example of the table which shows the relationship between the data which belongs to the 4th hierarchy, and the data which belongs to an upper hierarchy. データが4つの階層に階層化されている場合のレイアウトデータの一例を示す図である。It is a figure which shows an example of the layout data in case data are hierarchized into four hierarchies. 図3のテーブルと図10のテーブルと図11のレイアウトデータに基づいて生成される帳票の一例を示す図である。FIG. 12 is a diagram illustrating an example of a form generated based on the table in FIG. 3, the table in FIG. 10, and the layout data in FIG. 11.

以下、本発明の実施形態に係る帳票作成装置について図面を参照しながら説明する。   Hereinafter, a form creation apparatus according to an embodiment of the present invention will be described with reference to the drawings.

本発明の実施形態に係る帳票作成装置10は、図1に示すように、CPU(Central Processing Unit)11と、メモリ12と、記憶装置13と、入力装置14と、表示装置15と、印刷装置16とを備えている。   As shown in FIG. 1, a form creation apparatus 10 according to an embodiment of the present invention includes a CPU (Central Processing Unit) 11, a memory 12, a storage device 13, an input device 14, a display device 15, and a printing device. 16.

CPU11は、メモリ12に記憶されている各種のプログラムを実行する。CPU11が帳票を作成するためのプログラムを実行することにより、帳票作成装置10としての機能が実現される。   The CPU 11 executes various programs stored in the memory 12. The function as the form creation device 10 is realized by the CPU 11 executing a program for creating a form.

メモリ12は、例えば、RAM(Random Access Memory)やROM(Read Only Memory)等を有している。メモリ12は、帳票を作成するためのプログラムや様々なデータを記憶する。   The memory 12 includes, for example, a RAM (Random Access Memory) and a ROM (Read Only Memory). The memory 12 stores a program for creating a form and various data.

記憶装置13は、例えば、ハードディスク、RAID(Redundant Arrays of Inexpensive Disks)、DVD(Digital Versatile Disc)等の光ディスク装置、磁気テープ装置等を有している。例えば、記憶装置13がデータベースに格納されるデータを記憶し、CPU11がデータベースを管理するためのプログラムを実行することにより、データベースが構成される。   The storage device 13 includes, for example, a hard disk, an optical disk device such as a RAID (Redundant Array of Inexpensive Disks), a DVD (Digital Versatile Disc), a magnetic tape device, and the like. For example, the storage device 13 stores data stored in the database, and the CPU 11 executes a program for managing the database, thereby configuring the database.

入力装置14は、キーボードやマウス等を有している。入力装置14は、帳票作成者が入力する各種の指示やデータを受け付け、CPU11に伝える。
表示装置15は、ディスプレイを有している。表示装置15は、CPU11の指示により、各種のガイダンスや作成された帳票等を表示する。
印刷装置16は、CPU11の指示により、例えば、作成された帳票を印刷する。
The input device 14 has a keyboard, a mouse, and the like. The input device 14 receives various instructions and data input by the form creator and transmits them to the CPU 11.
The display device 15 has a display. The display device 15 displays various types of guidance, created forms, and the like according to instructions from the CPU 11.
The printing device 16 prints the created form, for example, according to an instruction from the CPU 11.

本実施形態に係る帳票作成装置10は、データベースから抽出された情報(データ)に基づいて帳票を作成する。データベースに格納されるデータは、図1の記憶装置13に記憶されている。
帳票を作成する対象となる情報(データ)は、複数の階層に階層化されている。
図2は、3つの階層に階層化されたデータの階層構成の一例を示す。第1の階層はORDER(注文番号)というキーワードに対応するデータ群で構成される。第2の階層は、DATE(帳票の発行日)とOWNER(お客様氏名)とITEM(商品の品目)というキーワードにそれぞれ対応する3つのデータ群で構成される。また、第3の階層は、NAME(商品名)とAMOUNT(発注数)とINFO(備考)というキーワードにそれぞれ対応する3つのデータ群で構成される。
The form creation device 10 according to the present embodiment creates a form based on information (data) extracted from a database. Data stored in the database is stored in the storage device 13 of FIG.
Information (data) that is a target for creating a form is hierarchized into a plurality of hierarchies.
FIG. 2 shows an example of a hierarchical structure of data hierarchized into three hierarchies. The first hierarchy is composed of a data group corresponding to the keyword ORDER (order number). The second hierarchy is composed of three data groups respectively corresponding to the keywords DATE (date of issue of the form), OWNER (customer name), and ITEM (item of the product). The third hierarchy is composed of three data groups corresponding to the keywords NAME (product name), AMOUNT (number of orders), and INFO (remarks).

第2の階層のDATEとOWNERとITMEにそれぞれ属するデータは、第1の階層のORDERに属するデータに紐付けられている(関連づけられている)。また、第3の階層のNAMEとAMOUNTとINFOにそれぞれ属するデータは第2の階層のITEMに属するデータに紐付けられている(関連づけられている)。   Data belonging to the second level DATE, OWNER, and ITME, respectively, is associated (associated) with data belonging to the first level ORDER. Further, data belonging to NAME, AMOUNT, and INFO in the third hierarchy is associated with (associated with) data belonging to the ITEM in the second hierarchy.

データの階層関係は、例えば、ORDER.DATAやORDER.ITEM.NAMEのように、各階層に割り当てられたキーワードを連結した階層キーワードを用いて示される。
例えば、階層キーワードORDER.DATAは、キーワードORDERの示す階層が第1の階層であり、キーワードDATAの示す階層が第1の階層の下位の第2の階層であることを意味する。
また、階層キーワードORDER.ITEM.NAMEは、キーワードNAMEが示す階層は、キーワードITEMが示す第2の階層の下位の第3の階層であることを意味する。なお、キーワードITEMが示す階層は、第1の階層の下位の第2の階層である。
図2の例では、第3の階層が最も下位の階層である。
The hierarchical relationship of data is, for example, ORDER. DATA and ORDER. ITEM. Like NAME, it is shown by using a hierarchical keyword obtained by concatenating keywords assigned to each hierarchical level.
For example, the hierarchical keyword ORDER. DATA means that the hierarchy indicated by the keyword ORDER is the first hierarchy, and the hierarchy indicated by the keyword DATA is the second hierarchy lower than the first hierarchy.
In addition, the hierarchical keyword ORDER. ITEM. NAME means that the hierarchy indicated by the keyword NAME is a third hierarchy lower than the second hierarchy indicated by the keyword ITEM. Note that the hierarchy indicated by the keyword ITEM is a second hierarchy lower than the first hierarchy.
In the example of FIG. 2, the third hierarchy is the lowest hierarchy.

階層化されたデータの間の関連は、図3(A)と図3(B)に示すように、テーブルで表現される。
図3(A)のORDER表101と図3(B)のITEM表102はデータベースに登録されている。なお、データベースに格納されたデータは、記憶装置13に記録されている。
CPU11は、ORDER表101とITEM表102に基づいて帳票を作成する。
The relationship between the hierarchized data is represented by a table as shown in FIGS. 3 (A) and 3 (B).
The ORDER table 101 in FIG. 3A and the ITEM table 102 in FIG. 3B are registered in the database. Note that data stored in the database is recorded in the storage device 13.
The CPU 11 creates a form based on the ORDER table 101 and the ITEM table 102.

ORDER表101は、第3の階層に属するデータが紐付けられていない(関連づけられていない)第2の階層に属するデータについて、第1の階層に属するデータと第2の階層に属するデータの間の関連を示す。
例えば、図3(A)に示すデータ「2009年3月10日」は、キーワードDATEが示す第2の階層に属し、キーワードORDERが示す第1の階層に属するデータ「CD_3103」に紐付けられている。同様に、データ「山田太郎」は、キーワードOWNERが示す第2の階層に属し、キーワードORDERが示す第1の階層に属するデータ「CD_3103」に紐付けられている。
データ「2009年3月23日」は、キーワードDATEが示す第2の階層に属し、キーワードORDERが示す第1の階層に属するデータ「CD_3104」に紐付けられている。同様に、データ「田中一郎」は、キーワードOWNERが示す第2の階層に属し、キーワードORDERが示す第1の階層に属するデータ「CD_3104」に紐付けられている。
The ORDER table 101 shows the relationship between the data belonging to the first hierarchy and the data belonging to the second hierarchy with respect to the data belonging to the second hierarchy to which the data belonging to the third hierarchy is not linked (not associated). Shows the relationship.
For example, the data “March 10, 2009” shown in FIG. 3A is associated with the data “CD — 3103” belonging to the second hierarchy indicated by the keyword DATE and belonging to the first hierarchy indicated by the keyword ORDER. Yes. Similarly, the data “Taro Yamada” belongs to the second hierarchy indicated by the keyword OWNER, and is associated with the data “CD — 3103” belonging to the first hierarchy indicated by the keyword ORDER.
The data “March 23, 2009” is associated with data “CD — 3104” belonging to the second hierarchy indicated by the keyword DATE and belonging to the first hierarchy indicated by the keyword ORDER. Similarly, the data “Ichiro Tanaka” belongs to the second hierarchy indicated by the keyword OWNER, and is associated with the data “CD — 3104” belonging to the first hierarchy indicated by the keyword ORDER.

ITME表102は、第3の階層に属するデータが紐付けられている(関連づけられている)第2の階層に属するデータについて、第1の階層に属するデータと第2の階層に属するデータの間の関連、および第2の階層に属するデータと第3の階層に属するデータの間の関連を示す。
図3(B)に示す「001」〜「005」という5個のデータは、キーワードITEMが示す第2の階層に属し、キーワードORDERが示す第1の階層に属するデータ「CD_3103」に紐付けられている。
In the ITME table 102, the data belonging to the second hierarchy to which the data belonging to the third hierarchy is linked (associated) is related to the data belonging to the first hierarchy and the data belonging to the second hierarchy. , And the relationship between data belonging to the second hierarchy and data belonging to the third hierarchy.
The five pieces of data “001” to “005” shown in FIG. 3B belong to the second hierarchy indicated by the keyword ITEM and are associated with the data “CD — 3103” belonging to the first hierarchy indicated by the keyword ORDER. ing.

また、例えば、データ「ストレージサーバ」は、キーワードNAMEが示す第3の階層に属し、キーワードITEMが示す第2の階層に属するデータ「001」に紐付けられている。なお、データ「001」は、キーワードORDERが示す第1の階層に属するデータ「CD_3103」に紐付けられているので、結局データ「ストレージサーバ」は、第1の階層に属するデータ「CD_3103」に紐付けられていることになる。
同様に、データ「5」は、キーワードAMOUNTが示す第3の階層に属し、キーワードITEMが示す第2の階層に属するデータ「001」に紐付けられている。なお、データ「5」もデータ「001」を介して第1の階層に属するデータ「CD_3103」に紐付けられている。
Further, for example, the data “storage server” is associated with the data “001” belonging to the third hierarchy indicated by the keyword NAME and belonging to the second hierarchy indicated by the keyword ITEM. Since the data “001” is linked to the data “CD — 3103” belonging to the first hierarchy indicated by the keyword ORDER, the data “storage server” is linked to the data “CD — 3103” belonging to the first hierarchy after all. It will be attached.
Similarly, the data “5” is associated with the data “001” belonging to the third hierarchy indicated by the keyword AMOUNT and belonging to the second hierarchy indicated by the keyword ITEM. The data “5” is also linked to the data “CD — 3103” belonging to the first hierarchy via the data “001”.

データ「梱包後、直納します。」は、キーワードINFOが示す第3の階層に属し、キーワードITEMが示す第2の階層に属するデータ「003」に紐付けられている。なお、データ「梱包後、直納します。」はデータ「003」を介して第1の階層に属するデータ「CD_3103」に紐付けられている。   The data “I will deliver directly after packing” is associated with data “003” belonging to the third hierarchy indicated by the keyword INFO and belonging to the second hierarchy indicated by the keyword ITEM. The data “I will deliver directly after packing” is linked to the data “CD — 3103” belonging to the first hierarchy via the data “003”.

CPU11は、レイアウトデータに基づいて帳票上に固定文字列とデータベース(ORDER表101とITEM表102)に登録されているデータを配置する。レイアウトデータも、図1の記憶装置13に記憶されている。
レイアウトデータは、図4に示すように、複数のセル(ます目)が縦横に並んだ構造を有している。各セルには、固定文字列等のデータまたは上述した階層キーワードを設定することができる。キーワードの先頭には符号「$」が付される。CPU11は先頭の符号「$」によって固定文字列とキーワードとを識別する。
例えば、図4では、「注文明細書」、「注文番号」、「発光日」、「お客様氏名」という固定文字列と、「$ORDER」、「$ORDER.DATE」、「$ORDER.ITEM.NAME」等の階層キーワードとがレイアウトデータ201の各セルに設定されている。
The CPU 11 arranges fixed character strings and data registered in the database (ORDER table 101 and ITEM table 102) on the form based on the layout data. Layout data is also stored in the storage device 13 of FIG.
As shown in FIG. 4, the layout data has a structure in which a plurality of cells (cells) are arranged vertically and horizontally. Data such as a fixed character string or the hierarchical keyword described above can be set in each cell. A symbol “$” is attached to the head of the keyword. The CPU 11 identifies the fixed character string and the keyword by the leading code “$”.
For example, in FIG. 4, a fixed character string of “order specification”, “order number”, “light emission date”, “customer name”, “$ ORDER”, “$ ORDER.DATE”, “$ ORDER.ITEM. A hierarchical keyword such as “NAME” is set in each cell of the layout data 201.

CPU11は、ORDER表101、ITEM表102、およびレイアウトデータ201に基づいて図5に示す帳票301を生成する。
CPU11は、キーワードORDERが示す階層に属するデータが指定されると、階層キーワードが設定されている各セルについて、各階層キーワードに含まれるキーワードが示す最も下位の階層に属し、かつ、指定されたデータに紐付けられているデータをORDER表101とITEM表102から読み出し、各階層キーワードを読み出されたデータに置き換える。
たとえば、CPU11は、データ「CD_3103]が指定されると、階層キーワード「$ORDER.ITEM.NAME」が設定されているセルについて、キーワードNAMEが示す第3の階層に含まれるデータ「ストレージサーバ」、「小型デスクトップPC」、「ノートPC」、「大型モニター TYPE A」、「大型モニター TYPE B」という5つのデータをITME表102から読み出し、階層キーワード「$ORDER.ITEM.NAME」をこれらのデータに置き換える。
The CPU 11 generates a form 301 shown in FIG. 5 based on the ORDER table 101, the ITEM table 102, and the layout data 201.
When the data belonging to the hierarchy indicated by the keyword ORDER is designated, the CPU 11 belongs to the lowest hierarchy indicated by the keyword included in each hierarchical keyword for each cell in which the hierarchical keyword is set, and the designated data The data associated with is read from the ORDER table 101 and the ITEM table 102, and each hierarchical keyword is replaced with the read data.
For example, when the data “CD — 3103” is designated, the CPU 11 sets the data “storage server” included in the third tier indicated by the keyword NAME for the cell in which the hierarchical keyword “$ ORDER.ITEM.NAME” is set. Five data of “small desktop PC”, “notebook PC”, “large monitor TYPE A” and “large monitor TYPE B” are read from the ITME table 102, and the hierarchical keyword “$ ORDER.ITEM.NAME” is used as these data. replace.

CPU11は、レイアウトデータ201に設定されている全ての階層キーワードをデータベースから読み出したデータに置き換えた後、このレイアウトデータ201に基づいて、図5に示す帳票を生成する。   The CPU 11 replaces all hierarchical keywords set in the layout data 201 with data read from the database, and then generates a form shown in FIG. 5 based on the layout data 201.

本実施形態では、帳票のレイアウトを容易に変更することができる。
例えば、CPU11が、レイアウトデータ201ではなく、図6に示すレイアウトデータ202に基づいて帳票を生成すると、図7に示す帳票302が生成される。
In the present embodiment, the layout of the form can be easily changed.
For example, when the CPU 11 generates a form based on the layout data 202 shown in FIG. 6 instead of the layout data 201, a form 302 shown in FIG. 7 is generated.

レイアウトデータ202は、レイアウトデータ201と比べて、階層キーワード「$ORDER.ITEM.NAME」と「$ORDER.ITEM.AMOUNT」の設定されたセルの位置が入れ替えられ、固定文字列「発行日」と「お客様氏名」、及び階層キーワード「$ORDER.DATE」と「$ORDER.OWNER」の設定されたセルが変更されている。
このため、生成された帳票302のレイアウトは、図5の帳票301と異なっている。
Compared with the layout data 201, the layout data 202 is replaced with the position of the cell where the hierarchical keywords “$ ORDER.ITEM.NAME” and “$ ORDER.ITEM.AMOUNT” are set, and a fixed character string “issue date” is displayed. A cell in which “customer name” and hierarchical keywords “$ ORDER.DATE” and “$ ORDER.OWNER” are set is changed.
For this reason, the layout of the generated form 302 is different from that of the form 301 in FIG.

また、本実施形態では、データベースに登録されていないデータを容易に帳票に追加することができる。CPU11は、任意の固定文字列を個々のセルに設定することができるため、データベースに登録されていないデータ(文字列)を容易に帳票に追加することができる。   In the present embodiment, data that is not registered in the database can be easily added to the form. Since the CPU 11 can set an arbitrary fixed character string in each cell, data (character string) not registered in the database can be easily added to the form.

次に、帳票作成装置10における帳票作成処理の流れについて図8を参照しながら説明する。   Next, the flow of the form creation process in the form creation apparatus 10 will be described with reference to FIG.

帳票作成者は、表示装置15に表示されるレイアウトデータのイメージを見ながら入力装置14を用いて階層キーワードと固定文字列(データ)を入力する。
入力装置14は、図8の帳票作成処理に示すように、階層キーワードと固定文字列を受け付ける(ステップS101)。
CPU11は、入力装置14から階層キーワードと固定文字列を通知されると、記憶装置13からレイアウトデータを読み出し、入力された階層キーワードと固定文字列とを、個々に、レイアウトデータに含まれる複数のセルの中のいずれかに設定する(ステップS102)。
The form creator inputs a hierarchical keyword and a fixed character string (data) using the input device 14 while looking at an image of layout data displayed on the display device 15.
As shown in the form creation process of FIG. 8, the input device 14 receives a hierarchical keyword and a fixed character string (step S101).
When the CPU 11 is notified of the hierarchical keyword and the fixed character string from the input device 14, the CPU 11 reads the layout data from the storage device 13, and individually inputs the input hierarchical keyword and the fixed character string into the plurality of layout data. It is set to one of the cells (step S102).

CPU11は、各セルに階層キーワードと固定文字列が設定されたレイアウトデータを記憶装置13に記憶させる。   The CPU 11 causes the storage device 13 to store layout data in which hierarchical keywords and fixed character strings are set in each cell.

次に、帳票作成者は、入力装置14を用いて階層キーワードに含まれる各キーワードが示す最も上位の階層のデータを指定する。入力装置14は、階層キーワードに含まれる各キーワードが示す最も上位の階層のデータを受け付ける(ステップS103)。例えば、入力装置14は、図3(A)のORDER表101に示すデータ「OD_3103」を受け付ける。   Next, the form creator uses the input device 14 to specify the data of the highest hierarchy indicated by each keyword included in the hierarchy keyword. The input device 14 receives the data of the highest hierarchy indicated by each keyword included in the hierarchy keyword (step S103). For example, the input device 14 receives data “OD — 3103” shown in the ORDER table 101 in FIG.

CPU11は、入力装置14から、階層キーワードに含まれる各キーワードが示す最も上位の階層のデータを通知されると、記憶装置13から各セルに階層キーワードと固定文字列が設定されたレイアウトデータを読み出す。   When the CPU 11 is notified of the data of the highest hierarchy indicated by each keyword included in the hierarchical keyword from the input device 14, the CPU 11 reads layout data in which the hierarchical keyword and the fixed character string are set in each cell from the storage device 13. .

CPU11は、階層キーワードが設定されている各セルについて、各階層キーワードに含まれるキーワードが示す最も下位の階層に属し、かつ、指定されたデータに紐付けられているデータをORDER表101とITEM表102から読み出し、各階層キーワードを読み出されたデータに置き換える(ステップS104)。   For each cell in which a hierarchical keyword is set, the CPU 11 assigns data belonging to the lowest hierarchy indicated by the keyword included in each hierarchical keyword and associated with the specified data to the ORDER table 101 and the ITEM table. The data is read from 102, and each hierarchical keyword is replaced with the read data (step S104).

最後に、CPU11は、全ての階層キーワードがデータに置き換えられたレイアウトデータに基づいて、帳票を生成する(ステップS105)。
帳票作成者は、例えば、表示装置15に生成された帳票を表示させて、正しくレイアウトされたか否かを確認し、印刷装置16を用いて生成された帳票を紙に印刷する。
Finally, the CPU 11 generates a form based on the layout data in which all hierarchical keywords are replaced with data (step S105).
For example, the form creator displays the generated form on the display device 15 to check whether the form has been correctly laid out, and prints the generated form on the paper using the printing device 16.

なお、上記では、CPU11は、ステップS102において編集されたレイアウトデータを一旦記憶装置13に記憶させ、記憶装置13からそのレイアウトデータを読み出して、ステップS104を実行するとしたが、CPU11は、ステップS102において編集されたレイアウトデータを記憶装置13に記憶させず、メモリ13に保持したままでステップ104を実行するとしても良い。   In the above description, the CPU 11 temporarily stores the layout data edited in step S102 in the storage device 13, reads the layout data from the storage device 13, and executes step S104. However, the CPU 11 performs processing in step S102. The edited layout data may not be stored in the storage device 13 but may be executed in step 104 while being held in the memory 13.

図9は、4つの階層に階層化されたデータの階層構成の一例を示す。第1の階層から第3の階層までの構成は、図2に示した階層の構成と同一である。第3の階層にSUB(商品の副品目)というキーワードに対応するデータ群が付加され、更に、NAME(商品名)とAMOUNT(発注数)とINFO(備考)というキーワードにそれぞれ対応する3つのデータ群で構成される第4の階層が付加されている点が図2と異なる。なお、第4の階層のNAMEとAMOUNTとINFOにそれぞれ属するデータは第3の階層のSUBに紐付けられている(関連づけられている)。   FIG. 9 shows an example of a hierarchical structure of data hierarchized into four hierarchies. The configuration from the first hierarchy to the third hierarchy is the same as the hierarchy shown in FIG. A data group corresponding to the keyword SUB (product sub-item) is added to the third layer, and three data corresponding to the keywords NAME (product name), AMOUNT (number of orders), and INFO (remarks), respectively. The point where the 4th hierarchy comprised by a group is added differs from FIG. Note that the data belonging to the NAME, AMOUNT, and INFO of the fourth layer is associated (associated) with the SUB of the third layer.

第4の階層も、各階層に割り当てられたキーワードを連結した階層キーワードで表現される。
例えば、階層キーワードORDER.ITEM.SUB.NAMEは、キーワードNAMEが示す階層は、キーワードSUBが示す第3の階層の下位の第4の階層であることを意味する。なお、キーワードORDERが示す階層は最も上位の階層であり、キーワードITEMが示す階層は、第1の階層の下位の第2の階層である。キーワードSUBが示す第3の階層は、第2の階層の下位の階層である。
図9の例では、第4の階層が最も下位の階層である。
The fourth hierarchy is also expressed by a hierarchy keyword that is a concatenation of keywords assigned to each hierarchy.
For example, the hierarchical keyword ORDER. ITEM. SUB. NAME means that the hierarchy indicated by the keyword NAME is the fourth hierarchy lower than the third hierarchy indicated by the keyword SUB. Note that the hierarchy indicated by the keyword ORDER is the highest hierarchy, and the hierarchy indicated by the keyword ITEM is the second hierarchy that is lower than the first hierarchy. The third hierarchy indicated by the keyword SUB is a hierarchy below the second hierarchy.
In the example of FIG. 9, the fourth hierarchy is the lowest hierarchy.

第4の階層に属するデータと上位の階層に属するデータとの間の関連は、図10に示すSUB_ITEM表103で与えられる。
図3(A)のORDER表101と図3(B)のITEM表102と同様に、SUB表103もデータベースに登録されている。CPU11はORDER表101とITEM表102とSUB_ITEM表103に基づいて帳票を作成する。
The relationship between the data belonging to the fourth hierarchy and the data belonging to the upper hierarchy is given by the SUB_ITEM table 103 shown in FIG.
Similar to the ORDER table 101 in FIG. 3A and the ITEM table 102 in FIG. 3B, the SUB table 103 is also registered in the database. The CPU 11 creates a form based on the ORDER table 101, the ITEM table 102, and the SUB_ITEM table 103.

SUB_ITEM表103は、第3の階層に属するデータに紐付けられている第4の階層に属するデータについて、第1の階層に属するデータから第4の階層に属するデータまでの関連を示す。   The SUB_ITEM table 103 indicates the relationship from the data belonging to the first hierarchy to the data belonging to the fourth hierarchy for the data belonging to the fourth hierarchy linked to the data belonging to the third hierarchy.

キーワードITEMにより示される第2の階層に属するデータには、キーワードSUBにより示される第3の階層に属するデータが紐付けられているものと紐付けられていないものとがある。
例えば、図10のSUB_ITEM表103では、階層キーワードORDER.ITEMにより示される第2の階層に属するデータ「001」や「003」には、キーワードSUBにより示される第3の階層に属するデータは紐付けられていない。すなわち、第3の階層のデータは存在しない。SUB_ITEM表103では、キーワードITEMにより示される第2の階層に属するデータに、キーワードSUBにより示される第3の階層に属するデータが紐付けられていないことを、階層キーワードORDER.ITEM.SUBの欄に「NO」という符号を設定して示している。
更に、階層キーワードORDER.ITEM.SUBの欄に「NO」という符号が設定されているデータについては、第4の階層のデータが紐付けられていることは有り得ない。すなわち、その下位の第4の階層のデータは存在しない。そこで、SUB_ITEM表103では、第4の階層のデータが存在しない場合にも「NO」という符号が設定されている。
The data belonging to the second hierarchy indicated by the keyword ITEM includes data associated with the data belonging to the third hierarchy indicated by the keyword SUB and data not associated with the data.
For example, in the SUB_ITEM table 103 in FIG. The data “001” and “003” belonging to the second hierarchy indicated by the ITEM is not associated with the data belonging to the third hierarchy indicated by the keyword SUB. That is, there is no data in the third hierarchy. The SUB_ITEM table 103 indicates that the data belonging to the second hierarchy indicated by the keyword ITEM is not linked to the data belonging to the third hierarchy indicated by the keyword SUB. ITEM. A symbol “NO” is set in the SUB column.
Furthermore, the hierarchical keyword ORDER. ITEM. For data in which the code “NO” is set in the SUB field, it is impossible that the data in the fourth layer is linked. That is, there is no data in the fourth layer below. Therefore, in the SUB_ITEM table 103, the sign “NO” is set even when the data of the fourth layer does not exist.

一方、キーワードITEMにより示される第2の階層に属するデータに、キーワードSUBにより示される第3の階層に属するデータが紐付けられているものについては、例えば、SUB_ITEM表103の階層キーワードORDER.ITEM.SUBの欄にデータ「001」〜「004」等が設定されている。これらのデータは、階層キーワードORDER.ITEMにより示される第2の階層に属するデータ「002」や「001」に紐付けられている。   On the other hand, for data in which data belonging to the third hierarchy indicated by the keyword SUB is associated with data belonging to the second hierarchy indicated by the keyword ITEM, for example, the hierarchy keyword ORDER. ITEM. Data “001” to “004” and the like are set in the SUB column. These data are stored in the hierarchical keyword ORDER. It is associated with data “002” and “001” belonging to the second hierarchy indicated by ITEM.

更に、SUB_ITEM表103では、例えば、データ「CPU」は、キーワードNAMEが示す第4の階層に属し、キーワードSUBが示す第3の階層に属するデータ「001」に紐付けられている。なお、データ「001」は、キーワードITMEが示す第2の階層に属するデータ「002」に紐付けられており、キーワードITMEが示す第2の階層に属するデータ「002」は、更に、第1の階層に属するデータ「CD_3103」に紐付けられているので、結局データ「CPU」は、第1の階層に属するデータ「CD_3103」に紐付けられていることになる。   Further, in the SUB_ITEM table 103, for example, the data “CPU” is associated with the data “001” belonging to the fourth hierarchy indicated by the keyword NAME and belonging to the third hierarchy indicated by the keyword SUB. Note that the data “001” is linked to the data “002” belonging to the second hierarchy indicated by the keyword ITME, and the data “002” belonging to the second hierarchy indicated by the keyword ITME is further Since it is associated with the data “CD — 3103” belonging to the hierarchy, the data “CPU” is eventually associated with the data “CD — 3103” belonging to the first hierarchy.

同様に、データ「1」は、キーワードAMOUNTが示す第3の階層に属し、キーワードSUBが示す第3の階層に属するデータ「001」に紐付けられている。このため、データ「1」も第3の階層のデータ「001」と第2の階層のデータ「002」を介して第1の階層に属するデータ「CD_3103」に紐付けられている。
データ「2GHz」は、キーワードINFOが示す第4の階層に属し、キーワードSUBが示す第3の階層に属するデータ「001」に紐付けられている。なお、データ「2GHz」も第3の階層のデータ「001」と第2の階層のデータ「002」を介して第1の階層に属するデータ「CD_3103」に紐付けられている。
Similarly, the data “1” belongs to the third hierarchy indicated by the keyword AMOUNT and is associated with the data “001” belonging to the third hierarchy indicated by the keyword SUB. Therefore, the data “1” is also linked to the data “CD — 3103” belonging to the first hierarchy via the data “001” of the third hierarchy and the data “002” of the second hierarchy.
The data “2 GHz” belongs to the fourth hierarchy indicated by the keyword INFO, and is associated with the data “001” belonging to the third hierarchy indicated by the keyword SUB. Note that the data “2 GHz” is also linked to the data “CD — 3103” belonging to the first hierarchy via the data “001” of the third hierarchy and the data “002” of the second hierarchy.

図11は、データが4つの階層に階層化されている場合のレイアウトデータの一例を示す。データが4つの階層に階層化されている場合も、レイアウトデータの構成は、図4と図6に示したデータが3つの階層に階層化されている場合と同様である。
例えば、図11では、「注文明細書」、「注文番号」、「発光日」、「お客様氏名」という固定文字列と、「$ORDER」、「$ORDER.DATE」、「$ORDER.ITEM.SUB」、「$ORDER.ITEM.SUB.NAME」等の階層キーワードとがレイアウトデータ203の各セルに設定されている。
FIG. 11 shows an example of layout data when the data is hierarchized into four hierarchies. Even when the data is hierarchized into four hierarchies, the layout data configuration is the same as when the data shown in FIGS. 4 and 6 is hierarchized into three hierarchies.
For example, in FIG. 11, a fixed character string of “order specification”, “order number”, “light emission date”, “customer name”, “$ ORDER”, “$ ORDER.DATE”, “$ ORDER.ITEM. A hierarchical keyword such as “SUB” or “$ ORDER.ITEM.SUB.NAME” is set in each cell of the layout data 203.

CPU11は、ORDER表101、ITEM表102、SUB_ITEM表103およびレイアウトデータ203に基づいて図12に示す帳票303を生成する。
CPU11は、キーワードORDERが示す階層に属するデータが指定されると、階層キーワードが設定されている各セルについて、各階層キーワードに含まれるキーワードが示す最も下位の階層に属し、かつ、指定されたデータに紐付けられているデータをORDER表101とITEM表102とSUB_ITEM表103から読み出し、各階層キーワードを読み出されたデータに置き換える。ただし、その際、図10のSUB_ITEM表103に設定されている「NO」という符号は空白を示すデータに置き換える。
The CPU 11 generates a form 303 shown in FIG. 12 based on the ORDER table 101, the ITEM table 102, the SUB_ITEM table 103, and the layout data 203.
When the data belonging to the hierarchy indicated by the keyword ORDER is designated, the CPU 11 belongs to the lowest hierarchy indicated by the keyword included in each hierarchical keyword for each cell in which the hierarchical keyword is set, and the designated data The data associated with is read from the ORDER table 101, the ITEM table 102, and the SUB_ITEM table 103, and each hierarchical keyword is replaced with the read data. However, at that time, the symbol “NO” set in the SUB_ITEM table 103 in FIG. 10 is replaced with data indicating a blank.

たとえば、CPU11は、データ「CD_3103]が指定されると、階層キーワード「$ORDER.ITEM.SUB.NAME」が設定されているセルについて、キーワードNAMEが示す第4の階層に含まれるデータ「NO(空白)」、「CPU」、「メモリ」、「ハードディスク」、「DVDドライブ」、「NO(空白)」、「NO(空白)」、「NO(空白)」という8つのデータをSUB_ITEM表103から読み出して階層キーワード「$ORDER.ITEM.SUB.NAME」をこれらのデータに置き換える。   For example, when the data “CD — 3103” is designated, the CPU 11 sets the data “NO () included in the fourth hierarchy indicated by the keyword NAME for the cell in which the hierarchy keyword“ $ ORDER.ITEM.SUB.NAME ”is set. Eight data from the SUB_ITEM table 103 are “blank” ”,“ CPU ”,“ memory ”,“ hard disk ”,“ DVD drive ”,“ NO (blank) ”,“ NO (blank) ”,“ NO (blank) ”. Read and replace the hierarchical keyword “$ ORDER.ITEM.SUB.NAME” with these data.

CPU11は、レイアウトデータ203に設定されている全ての階層キーワードをORDER表101、ITEM表102およびSUB_ITEM表103に登録されているデータに置き換えた後、このレイアウトデータ203に基づいて、図12に示す帳票303を生成する。   The CPU 11 replaces all the hierarchical keywords set in the layout data 203 with data registered in the ORDER table 101, the ITEM table 102, and the SUB_ITEM table 103, and then, based on the layout data 203, shown in FIG. A form 303 is generated.

帳票303を生成するとき、CPU11は、下位の階層の複数のデータが紐付けられているデータについては、そのデータが配置される位置を、下位の階層の複数のデータが配置される位置との関係を考慮して決定する。
例えば、SUB_ITEM表103の階層キーワードORDER.ITEMに属するデータ「002」には、第3の階層に4つのデータ「001」〜「004」が紐付けられている。この場合、CPU11は、図12に示すように、帳票303を表示装置15に表示した場合、または帳票303を印刷装置16で印刷した場合に、4つのデータ「001」〜「004」の位置と釣り合いのとれる位置にデータ「002」を配置する。すなわち、帳票303を縦方向に見たとき、第3の階層のデータ「002」と「003」の位置の中間の位置となるように、第2の階層のデータ「002」を配置する。
更に、CPU11は、第2の階層のデータ「小型デスクトップPC]、「25」、「空白」も、第2の階層のデータ「002」と同様に、第3の階層の4つのデータ「001」〜「004」の位置と釣り合いのとれる位置に配置する。
When the form 303 is generated, the CPU 11 determines, for data linked with a plurality of data in a lower hierarchy, a position where the data is arranged and a position where a plurality of data in the lower hierarchy is arranged. Decide in consideration of the relationship.
For example, the hierarchical keyword ORDER. The data “002” belonging to the ITEM has four data “001” to “004” associated with the third hierarchy. In this case, as shown in FIG. 12, the CPU 11 displays the positions of the four data “001” to “004” when the form 303 is displayed on the display device 15 or when the form 303 is printed by the printing device 16. Data “002” is arranged at a balanced position. That is, when the form 303 is viewed in the vertical direction, the data “002” of the second hierarchy is arranged so that it is at a position intermediate between the positions of the data “002” and “003” of the third hierarchy.
Further, the CPU 11 determines that the data “001” of the third hierarchy is the same as the data “002” of the second hierarchy for the data “small desktop PC”, “25”, “blank” of the second hierarchy. It is arranged at a position that is balanced with the position of “004”.

なお、上記実施形態では、データが3つの階層に階層化されている場合と、4つの階層に階層化されている場合とを示したが、データの階層の深さに特に制限はない。データが5つ若しくはそれ以上の数の階層に階層化されていても本発明を同様に適用することができる。
また、上記実施形態では、レイアウトデータに含まれるセルに設定するデータの例として固定文字列を示したが、静止画像や図面をレイアウトデータに含まれるセルに設定しても良い。
In the above embodiment, the case where the data is hierarchized into three hierarchies and the case where the data is hierarchized into four hierarchies are shown, but there is no particular limitation on the depth of the data hierarchies. The present invention can be similarly applied even when the data is hierarchized into five or more hierarchies.
In the above embodiment, a fixed character string is shown as an example of data set in a cell included in layout data. However, a still image or a drawing may be set in a cell included in layout data.

また、上記実施形態では、ORDER表101、ITEM表102、SUB_ITEM表103がデータベースに格納されている例を示したが、ORDER表101、ITEM表102、SUB_ITEM表103はリポジトリに格納されていても良い。   In the above embodiment, an example is shown in which the ORDER table 101, the ITEM table 102, and the SUB_ITEM table 103 are stored in the database. However, the ORDER table 101, the ITEM table 102, and the SUB_ITEM table 103 may be stored in the repository. good.

上記実施形態では、レイアウトデータ上ではキーワードと階層キーワードの先頭に符号「$」を付し、CPU11は先頭の符号「$」によって固定文字列とキーワードまたは階層キーワードとを識別するとしたが、キーワードと階層キーワードの先頭に符号「$」ではなく、符号「#」、符号「%」、または符号「&」等を付し、CPU11は先頭の符号「#」、符号「%」、または符号「&」等によって固定文字列とキーワードまたは階層キーワードとを識別しても良い。   In the embodiment described above, the keyword “$” is added to the head of the keyword and the hierarchical keyword on the layout data, and the CPU 11 identifies the fixed character string and the keyword or the hierarchical keyword by the head code “$”. At the beginning of the hierarchical keyword, not the code “$” but a code “#”, a code “%”, a code “&”, or the like is added, and the CPU 11 starts the code “#”, the code “%”, or the code “&”. The fixed character string and the keyword or the hierarchical keyword may be identified by “

また、上記実施形態では、階層キーワードにおけるキーワードの結合を、例えばORDER.ITEM.SUBの形式で示したが、階層キーワードにおけるキーワードの結合を、(ORDER)(ITEM)(SUB)、{ORDER}{ITEM}{SUB}、またはORDER_ITEM_SUB等異なる形式で表現しても良い。   Further, in the above embodiment, the keyword combination in the hierarchical keyword is, for example, ORDER. ITEM. Although shown in the SUB format, the combination of keywords in the hierarchical keyword may be expressed in different formats such as (ORDER) (ITEM) (SUB), {ORDER} {ITEM} {SUB}, or ORDER_ITEM_SUB.

また、上記実施形態では、1個の階層キーワードが複数のデータに置き換えられる場合に、これら複数のデータが帳票上で縦方向に連続して配置される例を示したが、これら複数のデータは、帳票上で横方向に連続して配置される等、他の形式で配置されても良い。   In the above embodiment, when one hierarchical keyword is replaced with a plurality of data, the plurality of data is arranged continuously in the vertical direction on the form. Alternatively, it may be arranged in other forms such as continuously arranged in the horizontal direction on the form.

本発明によれば、リポジトリまたはデータベースから抽出された情報(データ)に基づいて作成される帳票について、帳票のレイアウトを容易に変更し、また、リポジトリまたはデータベースに登録されていない情報(データ)を帳票に容易に追加することができる。   According to the present invention, for a form created based on information (data) extracted from a repository or database, the layout of the form can be easily changed, and information (data) not registered in the repository or database can be changed. Can be easily added to a form.

以上、本発明の実施形態について説明したが、設計上の都合やその他の要因によって必要となる様々な修正や組み合わせは、請求項に記載されている発明や発明の実施形態に記載されている具体例に対応する発明の範囲に含まれると理解されるべきである。   Although the embodiments of the present invention have been described above, various modifications and combinations necessary for design reasons and other factors are described in the inventions described in the claims and the specific embodiments described in the embodiments of the invention. It should be understood that it falls within the scope of the invention corresponding to the examples.

10…帳票作成装置
11…CPU
12…メモリ
13…記憶装置
14…入力装置
15…表示装置
16…印刷装置
101…ORDER表
102…ITEM表
103…SUB_ITME表
201、203、203…レイアウトデータ
301、302、303…帳票
10 ... Form creation device 11 ... CPU
DESCRIPTION OF SYMBOLS 12 ... Memory 13 ... Storage device 14 ... Input device 15 ... Display device 16 ... Printing device 101 ... ORDER table 102 ... ITEM table 103 ... SUB_ITME table 201, 203, 203 ... Layout data 301, 302, 303 ... Form

Claims (5)

複数の階層に階層化され、下位の階層のデータが上位の階層のデータに紐付けられているデータと、各階層に割り当てられたキーワードとを記憶するデータ記憶手段と、
複数のセルを含むレイアウトデータを記憶するレイアウト記憶手段と、
各階層に割り当てられたキーワードが連結された階層キーワードとデータとを入力する入力手段と、
前記入力手段によって入力された階層キーワードとデータとを、個々に、前記レイアウト記憶手段に記憶されているレイアウトデータに含まれる複数のセルの中のいずれかに設定するレイアウト編集手段と、
前記レイアウト編集手段によって設定された階層キーワードに含まれる各キーワードが示す最も上位の階層のデータを指定する指定手段と、
前記レイアウト編集手段によって階層キーワードが設定された各セルについて、当該階層キーワードに含まれるキーワードが示す最も下位の階層に属し、かつ、前記指定手段によって指定されたデータに紐付けられているデータを前記データ記憶手段から読み出し、当該階層キーワードを当該読み出されたデータに置き換える置換手段と、
前記置換手段によって全ての階層キーワードがデータに置き換えられたレイアウトデータに基づいて、帳票を生成する帳票生成手段と、
を備えることを特徴とする帳票作成装置。
Data storage means for storing data that is hierarchized into a plurality of hierarchies, in which data of lower hierarchies are linked to data of upper hierarchies, and keywords assigned to the respective hierarchies;
Layout storage means for storing layout data including a plurality of cells;
An input means for inputting a hierarchical keyword and data obtained by concatenating keywords assigned to each hierarchy;
Layout editing means for individually setting the hierarchy keyword and data input by the input means to any one of a plurality of cells included in the layout data stored in the layout storage means;
Designating means for designating data of the highest hierarchy indicated by each keyword included in the hierarchical keyword set by the layout editing means;
For each cell in which a hierarchical keyword is set by the layout editing means, the data belonging to the lowest hierarchy indicated by the keyword included in the hierarchical keyword and associated with the data specified by the specifying means is the data Replacement means for reading from the data storage means and replacing the hierarchical keyword with the read data;
A form generating means for generating a form based on the layout data in which all the hierarchical keywords are replaced with data by the replacing means;
A form creation device characterized by comprising:
上位の階層のデータに下位の階層の複数のデータを紐付けることができ、
前記置換手段は、前記階層キーワードに含まれるキーワードが示す最も下位の階層に属する複数のデータが前記指定手段によって指定されたデータに紐付けられている場合に、前記階層キーワードを当該複数のデータに置き換える、
ことを特徴とする請求項1に記載の帳票作成装置。
You can link multiple data in the lower hierarchy to the data in the upper hierarchy,
The replacement means replaces the hierarchical keyword with the plurality of data when a plurality of data belonging to the lowest hierarchy indicated by the keyword included in the hierarchical keyword is linked to the data specified by the specifying means. replace,
The form creation device according to claim 1.
前記レイアウトデータは、前記複数のセルが縦横に並んだ構造を有している、
ことを特徴とする請求項1又は2に記載の帳票作成装置。
The layout data has a structure in which the plurality of cells are arranged vertically and horizontally.
The form creation device according to claim 1 or 2.
複数の階層に階層化され、下位の階層のデータが上位の階層のデータに紐付けられているデータに基づいて帳票を作成する帳票作成方法であって、
前記データの各階層に割り当てられたキーワードが連結された階層キーワードと、データとが入力される入力工程と、
入力された前記階層キーワードと前記データとを、個々に、レイアウト記憶手段に記憶されているレイアウトデータに含まれる複数のセルの中のいずれかに設定するレイアウト編集工程と、
設定された前記階層キーワードに含まれる各キーワードが示す最も上位の階層のデータが指定される指定工程と、
前記階層キーワードが設定された各セルについて、当該階層キーワードに含まれるキーワードが示す最も下位の階層に属し、かつ、指定された前記データに紐付けられているデータをデータ記憶手段から読み出し、当該階層キーワードを当該読み出されたデータに置き換える置換工程と、
全ての階層キーワードがデータに置き換えられたレイアウトデータに基づいて、帳票を生成する帳票生成工程と、
を備えることを特徴とする帳票作成方法。
A form creation method for creating a form based on data that is hierarchized into a plurality of hierarchies and data in a lower hierarchy is linked to data in a higher hierarchy,
An input process in which a hierarchical keyword in which keywords assigned to each hierarchical level of the data are connected and data is input;
A layout editing step in which the input hierarchical keyword and the data are individually set to any one of a plurality of cells included in layout data stored in layout storage means;
A designation step in which data of the highest hierarchy indicated by each keyword included in the set hierarchy keyword is designated;
For each cell in which the hierarchy keyword is set, data belonging to the lowest hierarchy indicated by the keyword included in the hierarchy keyword and associated with the specified data is read from the data storage means, and the hierarchy A replacement step of replacing the keyword with the read data;
A form generation process for generating a form based on layout data in which all hierarchical keywords are replaced with data,
A form creation method characterized by comprising:
コンピュータを、
複数の階層に階層化され、下位の階層のデータが上位の階層のデータに紐付けられているデータと、各階層に割り当てられたキーワードとを記憶するデータ記憶手段と、
複数のセルを含むレイアウトデータを記憶するレイアウト記憶手段と、
各階層に割り当てられたキーワードが連結された階層キーワードとデータとを入力する入力手段と、
前記入力手段によって入力された階層キーワードとデータとを、個々に、前記レイアウト記憶手段に記憶されているレイアウトデータに含まれる複数のセルの中のいずれかに設定するレイアウト編集手段と、
前記レイアウト編集手段によって設定された階層キーワードに含まれる各キーワードが示す最も上位の階層のデータを指定する指定手段と、
前記レイアウト編集手段によって階層キーワードが設定された各セルについて、当該階層キーワードに含まれるキーワードが示す最も下位の階層に属し、かつ、前記指定手段によって指定されたデータに紐付けられているデータを前記データ記憶手段から読み出し、当該階層キーワードを当該読み出されたデータに置き換える置換手段と、
前記置換手段によって全ての階層キーワードがデータに置き換えられたレイアウトデータに基づいて、帳票を生成する帳票生成手段と、
して機能させるための帳票作成プログラム。
Computer
Data storage means for storing data that is hierarchized into a plurality of hierarchies, in which data of lower hierarchies are linked to data of upper hierarchies, and keywords assigned to the respective hierarchies;
Layout storage means for storing layout data including a plurality of cells;
An input means for inputting a hierarchical keyword and data obtained by concatenating keywords assigned to each hierarchy;
Layout editing means for individually setting the hierarchy keyword and data input by the input means to any one of a plurality of cells included in the layout data stored in the layout storage means;
Designating means for designating data of the highest hierarchy indicated by each keyword included in the hierarchical keyword set by the layout editing means;
For each cell in which a hierarchical keyword is set by the layout editing means, the data belonging to the lowest hierarchy indicated by the keyword included in the hierarchical keyword and associated with the data specified by the specifying means is the data Replacement means for reading from the data storage means and replacing the hierarchical keyword with the read data;
A form generating means for generating a form based on the layout data in which all the hierarchical keywords are replaced with data by the replacing means;
A form creation program to make it function.
JP2009078628A 2009-03-27 2009-03-27 Form creation device, form creation method, and form creation program Expired - Fee Related JP5375256B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009078628A JP5375256B2 (en) 2009-03-27 2009-03-27 Form creation device, form creation method, and form creation program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009078628A JP5375256B2 (en) 2009-03-27 2009-03-27 Form creation device, form creation method, and form creation program

Publications (2)

Publication Number Publication Date
JP2010231527A JP2010231527A (en) 2010-10-14
JP5375256B2 true JP5375256B2 (en) 2013-12-25

Family

ID=43047271

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009078628A Expired - Fee Related JP5375256B2 (en) 2009-03-27 2009-03-27 Form creation device, form creation method, and form creation program

Country Status (1)

Country Link
JP (1) JP5375256B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6398346B2 (en) * 2014-06-11 2018-10-03 富士通株式会社 Table generation method, program and apparatus, and form generation method, program and apparatus

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57150031A (en) * 1981-03-12 1982-09-16 Toshiba Corp Document producer
JPH11126226A (en) * 1997-10-22 1999-05-11 Casio Comput Co Ltd Slip producing device and storage medium
JP2008052603A (en) * 2006-08-25 2008-03-06 Canon Inc Table editing device and table editing method

Also Published As

Publication number Publication date
JP2010231527A (en) 2010-10-14

Similar Documents

Publication Publication Date Title
US20150169652A1 (en) Systems and methods for automated report generation
CN106095767A (en) Automatically generate the method and system of user's form interface
CN103593174A (en) Adaptable business object
JP2007066498A5 (en)
KR100567390B1 (en) Authoring method for interactive electronic technical manual and paper technical manual using logistics support analysis data
JP5375256B2 (en) Form creation device, form creation method, and form creation program
US10241899B2 (en) Test input information search device and method
Jelen et al. Excel 2013 pivot table data crunching
US20200301930A1 (en) Support system, storage medium, and method for presenting relationships of items
JP2009230260A (en) Media creation system
JP5901483B2 (en) Database system generator
JP2002032383A (en) Merchandise information database system
JP2011198296A (en) Program, device and method for generating spreadsheet
KR20090018481A (en) A system for composing report, a method & a system for providing a made-to-order report
JP7099071B2 (en) Information processing equipment and information processing programs
CN110618808A (en) Technical method for generating system Hxcel variable one-table-to-many table by intelligent management system
JP6131962B2 (en) Table synthesis apparatus and table synthesis program
JP2019219789A (en) Information processing apparatus and information processing program
Eaves et al. Prototyping an Electronic Edition of William Blake’s Manuscript of Vala, or the Four Zoas: A Progress Report
JP5252902B2 (en) Business document processing system
JP2018005306A (en) Information processing apparatus and information processing program
KR20160013482A (en) System and method for cube matrix contents generation
Gill Wordsworth and His Editors
JP2007108994A (en) Layout editing device and layout editing program
JP5644714B2 (en) Electronic device, display control method, display control program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120208

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130909

R150 Certificate of patent or registration of utility model

Ref document number: 5375256

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees