JP2008146378A - Data processor and program - Google Patents

Data processor and program Download PDF

Info

Publication number
JP2008146378A
JP2008146378A JP2006333219A JP2006333219A JP2008146378A JP 2008146378 A JP2008146378 A JP 2008146378A JP 2006333219 A JP2006333219 A JP 2006333219A JP 2006333219 A JP2006333219 A JP 2006333219A JP 2008146378 A JP2008146378 A JP 2008146378A
Authority
JP
Japan
Prior art keywords
data
period
input
item
transition table
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
JP2006333219A
Other languages
Japanese (ja)
Inventor
Chikashi Sasaki
史 佐々木
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2006333219A priority Critical patent/JP2008146378A/en
Publication of JP2008146378A publication Critical patent/JP2008146378A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To easily prepare a transition table for checking time series transition. <P>SOLUTION: This data processor 1 having a function as a spread sheet tool P1 for performing chart output on the basis of table data accepts the input of information relating to items extracted from a record file 46 in which data are stored for every item and the extraction period of the data relating to those items by a transition table wizard dialog P2 for displaying a dialog picture at a display part, and for accepting an operation from an input part, and calculates a time series period divided within the extraction period on the basis of information relating to the extraction period input by a transition table wizard engine P3, and prepares data components by extracting and totaling data relating to the items input in each time series period from a record file 46, and generates table data for outputting the transition table by combining the data components. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、データ処理装置及びプログラムに関する。   The present invention relates to a data processing apparatus and a program.

従来、PC(Personal Computer)等の情報機器を用いた事務処理においては、データベースなどに格納された情報に基づいて表計算を行うことで、ユーザが指定するデータに対して時系列的な推移を調べるための推移表を作成することが知られている。   Conventionally, in office work using information equipment such as a PC (Personal Computer), a time series transition is performed on data specified by the user by performing a spreadsheet based on information stored in a database or the like. It is known to create a transition table for examination.

例えば、特許文献1には、ユーザが所望する期間を会計期間とし、その会計期間内のユーザが所望する期間を作表対象期間とした会計業務のための各種表を作成する会計処理システムに関する技術が開示されている。
特開2002−197248号公報
For example, Patent Document 1 discloses a technique relating to an accounting processing system for creating various tables for accounting work in which a period desired by a user is an accounting period and a period desired by the user within the accounting period is a tabulation target period. Is disclosed.
JP 2002-197248 A

しかしながら、上述した従来技術では、特定のデータ構造に特化されており、特定の事務処理(例えば会計処理)のみを行うようにシステム構成やソフトウエアが専用化されている。このため、この専用化されたシステムを利用する場合は、推移表を作成して時系列的なデータ変動を調べる際に、その推移表に出力するデータの種類やレイアウト等が専用化されている特定の事務処理に係るものに制約される。また、任意のデータに対して時系列的な推移を調べる場合は、その専用化されたシステムやソフトウエアのカスタマイズ等を行う必要があり、時間もコストもかかるため、非常に煩雑なことであった。   However, the above-described conventional technology is specialized in a specific data structure, and the system configuration and software are dedicated so as to perform only specific business processing (for example, accounting processing). For this reason, when using this dedicated system, when creating a transition table and examining time-series data fluctuations, the type and layout of the data to be output to the transition table are dedicated. Limited to those related to specific paperwork. In addition, when examining time-series transitions for arbitrary data, it is necessary to customize the dedicated system and software, which is time consuming and expensive, which is very complicated. It was.

本発明の課題は、時系列的な推移を調べるための推移表の作成を容易にすることである。   An object of the present invention is to facilitate creation of a transition table for examining time-series transitions.

請求項1に記載の発明は、テーブルデータに基づいた帳票を出力する帳票出力手段を有するデータ処理装置において、
項目毎にデータが格納されたレコードデータを記憶する記憶手段と、
前記記憶手段に記憶されるレコードデータから抽出する項目及び当該項目に係るデータの抽出期間に関する情報の入力を受け付ける入力手段と、
前記入力された抽出期間に関する情報に基づいて、当該抽出期間内で分割された時系列期間を算出する期間算出手段と、
前記算出された時系列期間内毎に、前記記憶手段に記憶されたレコードデータから前記入力された項目に係るデータを抽出して集計するデータ部品を生成するデータ部品生成手段と、
当該データ部品生成手段で生成された時系列期間毎のデータ部品を組み合わせて、前記入力された項目に係るデータの時系列の推移を出力するためのテーブルデータを生成する推移表テーブルデータ生成手段と、
を備えることを特徴とする。
The invention according to claim 1 is a data processing apparatus having a form output means for outputting a form based on table data.
Storage means for storing record data in which data is stored for each item;
An input means for receiving input of information relating to an item to be extracted from record data stored in the storage means and an extraction period of data relating to the item;
A period calculation means for calculating a time-series period divided within the extraction period based on the input information about the extraction period;
For each calculated time-series period, data component generation means for generating data parts for extracting and tabulating data related to the input items from record data stored in the storage means;
A transition table table data generation means for generating table data for outputting a time series transition of data related to the input item by combining data parts for each time series period generated by the data part generation means; ,
It is characterized by providing.

請求項2に記載の発明は、請求項1に記載の発明において、前記記憶手段は、前記推移表テーブルデータ生成手段における前記時系列期間毎のデータ部品の組み合わせに係るテンプレートデータを予め記憶し、
前記推移表テーブルデータ作成手段は、前記テンプレートデータに基づいて前記時系列期間毎のデータ部品を組み合わせることを特徴とする。
The invention according to claim 2 is the invention according to claim 1, wherein the storage means stores in advance template data related to a combination of data parts for each time-series period in the transition table table data generation means,
The transition table table data creation means combines data parts for each time series period based on the template data.

請求項3に記載の発明は、請求項1又は2に記載の発明において、前記入力手段は、前記データの抽出に関する情報として、前記抽出期間内で分割する単位期間を含む情報の入力を受け付け、
前記期間算出手段は、前記入力された単位期間に基づいて前記時系列期間を算出することを特徴とする。
The invention according to claim 3 is the invention according to claim 1 or 2, wherein the input means accepts input of information including a unit period divided within the extraction period as information relating to the extraction of the data,
The period calculation means calculates the time series period based on the input unit period.

請求項4に記載の発明は、請求項1〜3のいずれか一項に記載の発明において、前記入力手段は、前記データの抽出に関する情報として、前記抽出期間の終了時を含む情報の入力を受け付け、
前記期間算出手段は、前記入力された抽出期間の終了時から遡るように前記時系列期間を算出することを特徴とする。
According to a fourth aspect of the present invention, in the invention according to any one of the first to third aspects, the input means inputs information including the end of the extraction period as information relating to the extraction of the data. Accept,
The period calculation means calculates the time series period so as to go back from the end of the input extraction period.

請求項5に記載の発明は、項目毎にデータが格納されたレコードデータを記憶する記憶手段、テーブルデータに基づいた帳票を出力する帳票出力手段を有するデータ処理装置のコンピュータを、
前記記憶手段に記憶されるレコードデータから抽出する項目及び当該項目に係るデータの抽出期間に関する情報の入力を受け付ける入力手段、
前記入力された抽出期間に関する情報に基づいて、当該抽出期間内で分割された時系列期間を算出する期間算出手段、
前記算出された時系列期間内毎に、前記記憶手段に記憶されたレコードデータから前記入力された項目に係るデータを抽出して集計するデータ部品を生成するデータ部品生成手段、
当該データ部品生成手段で生成された時系列期間毎のデータ部品を組み合わせて、前記入力された項目に係るデータの時系列の推移を出力するためのテーブルデータを生成する推移表テーブルデータ生成手段、
として機能させるプログラムである。
The invention according to claim 5 is a computer of a data processing apparatus having storage means for storing record data in which data is stored for each item, and form output means for outputting a form based on table data.
Input means for accepting input of an item to be extracted from record data stored in the storage means and information relating to an extraction period of data relating to the item;
A period calculating means for calculating a time-series period divided within the extraction period based on the input information regarding the extraction period;
Data component generating means for generating data parts for extracting and summing up data relating to the input items from record data stored in the storage means for each calculated time-series period;
A transition table table data generation unit that generates table data for outputting a time series transition of data related to the input item by combining data components for each time series period generated by the data component generation unit,
It is a program that functions as

本発明によれば、項目毎にデータが蓄積されたレコードデータからいずれかの項目のデータを抽出して作成されるテーブルデータに基づいて推移表を作成する際に、抽出する項目及び当該項目に係るデータの抽出期間を入力することで、この入力されたデータに基づいて時系列区間毎にデータを抽出して集計するデータ部品を生成し、当該データ部品を組み合わせることにより、入力された項目に係るデータの時系列の推移を出力するためのテーブルデータを生成する構成であるため、データ部品を組み合わせるだけで推移表を出力するためのテーブルデータを生成することができ、いずれかの項目に係るデータの時系列的な推移を調べるための推移表を容易に作成することができる。   According to the present invention, when creating a transition table based on table data created by extracting data of any item from record data in which data is accumulated for each item, the item to be extracted and the item By inputting the data extraction period, the data items to be extracted and aggregated for each time-series section based on the input data are generated, and the data items are combined to input items. Since it is a configuration that generates table data for outputting time-series transition of such data, it is possible to generate table data for outputting a transition table simply by combining data parts. A transition table for examining time-series transition of data can be easily created.

以下、実施の形態について図1〜図17を参照して説明する。なお、この実施の形態は、最も好ましい一形態を示すものであり、特にこの形態に限定するものではない。   Hereinafter, embodiments will be described with reference to FIGS. This embodiment shows the most preferable form, and is not particularly limited to this form.

先ず、PC(Personal Computer)やWS(Work Station)などの情報機器であるデータ処理装置の構成について、機能的構成を模式的に示すブロック図である図1(a)を参照して詳細に説明する。図1(a)に示すように、データ処理装置1は、CPU10、入力部20、表示部30、記憶部40、印刷部50及び通信部60を備えた構成され、各部はバス70により接続される。   First, the configuration of a data processing apparatus which is an information device such as a PC (Personal Computer) or WS (Work Station) will be described in detail with reference to FIG. 1A which is a block diagram schematically showing a functional configuration. To do. As shown in FIG. 1A, the data processing apparatus 1 includes a CPU 10, an input unit 20, a display unit 30, a storage unit 40, a printing unit 50, and a communication unit 60, and each unit is connected by a bus 70. The

CPU10(Central Processing Unit)は、特に図示しない内蔵RAM(Random Access Memory)やROM(Read Only Memory)などを有し、記憶部40やROMに格納されているプログラムデータをRAMに展開して順次実行することで、当該プログラムとの協働によりデータ処理装置1の各部の処理動作を統括的に制御する機能部である。   The CPU 10 (Central Processing Unit) has a built-in RAM (Random Access Memory), ROM (Read Only Memory), etc., not shown, and program data stored in the storage unit 40 or ROM is expanded into the RAM and sequentially executed. By doing so, it is a functional unit that comprehensively controls the processing operation of each unit of the data processing device 1 in cooperation with the program.

入力部20は、マウスなどのポインティングデバイスやキーボードなどであって、ポインティングデバイスの操作やキー操作などの操作指示を受け付け、それに応じた操作信号をCPU10に出力する。   The input unit 20 is a pointing device such as a mouse or a keyboard, and receives an operation instruction such as an operation of the pointing device or a key operation, and outputs an operation signal corresponding to the operation instruction to the CPU 10.

表示部30は、LCD(Liquid Crystal Display)やCRT(Cathode-Ray Tube)などのディスプレイであり、CPU10から入力される表示信号に従った画像を表示する。   The display unit 30 is a display such as an LCD (Liquid Crystal Display) or a CRT (Cathode-Ray Tube), and displays an image according to a display signal input from the CPU 10.

記憶部40は、磁気的又は光学的記憶媒体、半導体等の不揮発性メモリ等(例えばHDD(Hard Disk Drive)など)であり、CPU10からの指示に基づいて、データの読み書きが可能な構成である。記憶部40には、後述する各種アプリケーションプログラム、データファイル又は項目毎にデータを格納するレコードデータが記憶されている。   The storage unit 40 is a magnetic or optical storage medium, a non-volatile memory such as a semiconductor (for example, an HDD (Hard Disk Drive), etc.), and has a configuration capable of reading and writing data based on an instruction from the CPU 10. . The storage unit 40 stores various application programs (to be described later), data files, or record data for storing data for each item.

印刷部50は、熱転写方式、電子写真方式、インクジェット方式などの画像形成方式で紙などの記録媒体に画像形成を行うプリンタであって、CPU10から入力されるプリントデータに基づいたプリント出力を行う。   The printing unit 50 is a printer that forms an image on a recording medium such as paper by an image forming method such as a thermal transfer method, an electrophotographic method, and an ink jet method, and performs print output based on print data input from the CPU 10.

通信部60は、特に図示しない他の情報機器とデータ通信を行うための通信回路や当該他の情報機器と接続するための通信インターフェイスを有し、CPU10の制御の下、データ通信を行う機能部である。具体的には、通信部60は、インターネットやLANLocal Area Network)等を用いたネットワーク通信やUSB(Universal Serial Bus)、IEEE1394(Institute of Electrical and Electronic Engineers 1394)等のデータ通信を行う。   The communication unit 60 has a communication circuit for performing data communication with other information devices (not shown) and a communication interface for connection with the other information devices, and a functional unit that performs data communication under the control of the CPU 10. It is. Specifically, the communication unit 60 performs network communication using the Internet or a LAN Local Area Network (USB), data communication such as USB (Universal Serial Bus), IEEE 1394 (Institute of Electrical and Electronic Engineers 1394).

なお、本実施の形態ではデータ処理装置1単体での構成を例示するが、データ処理装置1は、通信部60を介して他の情報機器と接続し、当該他の情報機器からレコードデータを取得する構成であってもよく、装置構成は特に本実施の形態に限定するものではない。具体的には、データ処理システムの構成を例示する図1(b)に示すように、データ処理装置1とレコードデータを記憶するデータベース2とがLANなどである通信ネットワークNを介して接続されるデータ処理システム100であってもよい。   In this embodiment, the configuration of the data processing apparatus 1 alone is exemplified, but the data processing apparatus 1 is connected to another information device via the communication unit 60 and acquires record data from the other information device. The device configuration is not particularly limited to the present embodiment. Specifically, as shown in FIG. 1B illustrating the configuration of the data processing system, the data processing device 1 and the database 2 storing the record data are connected via a communication network N such as a LAN. The data processing system 100 may be used.

ここで、記憶部40に記憶されるデータについて図2を参照して説明する。図2(a)は、記憶部40に記憶されるデータを模式的に示す概念図である。図2(a)に示すように、記憶部40に記憶されるデータは、CPU10が読み出して順次実行することで各種データ処理を行うプログラムデータである表計算プログラム41、推移表ウイザードプログラム42、推移表ウイザードエンジンプログラム43、帳票自動作成エンジンプログラム44、当該プログラムデータが参照するデータファイルであるテンプレートファイル45、項目毎にデータを格納するレコードファイル46などがある。   Here, data stored in the storage unit 40 will be described with reference to FIG. FIG. 2A is a conceptual diagram schematically showing data stored in the storage unit 40. As shown in FIG. 2A, the data stored in the storage unit 40 is a spreadsheet program 41, a transition table wizard program 42, a transition table, which is a program data that is read and sequentially executed by the CPU 10 to perform various data processing. There are a table wizard engine program 43, a form automatic creation engine program 44, a template file 45 which is a data file referred to by the program data, a record file 46 for storing data for each item, and the like.

この記憶部40に記憶されるデータによるソフトウエア構成については、データ処理装置1が実行するソフトウエアの構成を模式的に示す図2(b)のとおりである。表計算ツールP1は、CPU10が表計算プログラム41を実行することで実現する、いわゆる表計算機能であり、スプレッドシート(テーブルデータ)の縦横に並んだマス目(セル)に入力された数値や計算ルールを分析し、演算結果を表形式で表示部30からの画面出力又は印刷部50からのプリント出力などを行う。   The software configuration based on the data stored in the storage unit 40 is as shown in FIG. 2B schematically showing the configuration of the software executed by the data processing device 1. The spreadsheet tool P1 is a so-called spreadsheet function realized by the CPU 10 executing the spreadsheet program 41, and numerical values and computations input to cells (cells) arranged vertically and horizontally in a spreadsheet (table data). The rules are analyzed, and the calculation results are output in a table format from the display unit 30 or from the printing unit 50.

推移表ウイザードダイアログP2は、CPU10が推移表ウイザードプログラム42を実行して後述する処理を行うことで実現する機能であり、表の雛形に関するテーブルデータを含むテンプレートファイル45を読み込んで、表示部30に対話形式の入力画面(ウイザード設定画面)を表示し、その表の雛形に埋め込むデータの入力を入力部20から受け付ける。   The transition table wizard dialog P2 is a function realized by the CPU 10 executing the transition table wizard program 42 and performing processing described later. The transition table wizard dialog P2 reads the template file 45 including the table data related to the table template, and displays it on the display unit 30. An interactive input screen (wizard setting screen) is displayed, and input of data to be embedded in the table template is accepted from the input unit 20.

推移表ウイザードエンジンP3は、CPU10が推移表ウイザードエンジンプログラム43を実行して後述する処理を行うことで実現する機能であり、推移表ウイザードダイアログP2で入力されたデータに基づいて、テンプレートファイル45に含まれる表の雛形となるテーブルデータの各セルにデータを埋め込み、表計算ツールP1で使用するためのテーブルデータを生成する。   The transition table wizard engine P3 is a function that is realized by the CPU 10 executing the transition table wizard engine program 43 and performing processing described later. The transition table wizard engine P3 stores the transition table wizard engine P3 in the template file 45 based on the data input in the transition table wizard dialog P2. Data is embedded in each cell of the table data that is a model of the included table, and table data to be used by the spreadsheet tool P1 is generated.

上述した推移表ウイザードダイアログP2、推移表ウイザードエンジンP3で処理を行うことで、データ処理装置1では、レコードファイル46におけるいずれかの項目やその項目に関するデータの抽出期間を入力部20から受け付けて、入力された項目に関するデータの推移を表計算ツールP1の表計算機能を用いて表示するための推移表に関するテーブルデータを生成する。   By performing the processing in the transition table wizard dialog P2 and the transition table wizard engine P3 described above, the data processing apparatus 1 accepts any item in the record file 46 and the data extraction period from the input unit 20, Table data relating to the transition table for displaying the transition of data relating to the input item using the spreadsheet function of the spreadsheet tool P1 is generated.

帳票自動作成エンジンP4は、CPU10が帳票自動作成エンジンプログラム44を実行して後述する処理行うことで実現する機能であり、表計算ツールP1で使用するテーブルデータの各セルでレコードファイル46のデータを参照して帳票等の表を作成する際に、その各セルで指定されたデータをレコードファイル46から検索して代入する。   The form automatic creation engine P4 is a function realized by the CPU 10 executing the form automatic creation engine program 44 and performing processing described later. The data of the record file 46 is stored in each cell of the table data used by the spreadsheet tool P1. When creating a table such as a form by referring to the data, the data designated in each cell is retrieved from the record file 46 and substituted.

レコードファイル46としては、具体的にはその構成を模式的に示した図3(a)のような売上レコードファイル等がある。この図3(a)で例示するレコードファイル46は、売上レコードを各項目(フィールド)に格納するテーブルデータであり、いわゆる売上のデータベースファイルである。売上レコードファイルの各項目としては「伝票番号」、「商品名」、「販売店」、「担当者」、「単価」、「数量」、「伝票日付」などがあり、「伝票番号」等の項目がレコードのキーとして設定されている。   As the record file 46, specifically, there is a sales record file or the like as shown in FIG. The record file 46 illustrated in FIG. 3A is table data for storing a sales record in each item (field), and is a so-called sales database file. Each item in the sales record file includes "slip number", "product name", "dealer", "person in charge", "unit price", "quantity", "slip date", etc. The item is set as a record key.

上述した売上レコードファイルであるレコードファイル46にデータを格納した場合は、レコードファイル46のデータの内容を具体的に示した図3(b)のようになる。同図に示すように、例えば「伝票番号」が「00010」の売上レコードには、日付が「2006/07/31」に「ニンジン」、「ダイコン」、「ジャガイモ」が売り上げられた(販売店、担当者、単価、数量)ことが記録されている。   When the data is stored in the record file 46 which is the sales record file described above, the data contents of the record file 46 are specifically shown in FIG. As shown in the figure, for example, in a sales record with “slip number” “00010”, “carrot”, “radish” and “potato” were sold on the date “2006/07/31” (stores) , Person in charge, unit price, quantity).

ここで、表計算に用いられるテーブルデータ(表計算ツールP1や帳票自動作成エンジンP4で扱われるテーブルデータ)について図4を参照して説明する。図4は、テーブルデータのデータ構成を例示する概念図である。図4に示すように、表計算に用いられるテーブルデータは、文字や数値(例えば「伝票番号」等)、計算ルール(例えば「=COUNT(C13)」(セルC13に関するデータのカウント)等)、レコードファイル46の参照ルール(例えば「=伝票番号.売上レコード」(売上レコードファイルにおける伝票番号の参照)等)などが入力される「セル」(セルC11〜C23)が縦横に並んでおり、行毎にセルの属性を設定する「行属性」が設定されている。   Here, the table data used for the spreadsheet (table data handled by the spreadsheet tool P1 and the form automatic creation engine P4) will be described with reference to FIG. FIG. 4 is a conceptual diagram illustrating the data configuration of table data. As shown in FIG. 4, table data used for the table calculation includes characters and numerical values (for example, “slip number”), calculation rules (for example, “= COUNT (C13)” (counting of data regarding the cell C13), etc.), “Cells” (cells C11 to C23) into which reference rules of the record file 46 (for example, “= slip number. Sales record” (refer to the slip number in the sales record file)) and the like are input are arranged vertically and horizontally. A “row attribute” is set for setting the cell attribute for each cell.

テーブルデータで行毎に「行属性」として設定されるセルの属性とは、帳票自動作成エンジンP4がレコードファイル46のデータを参照するタイミングを指定するデータである。このセルの属性には、例えば図4に示すように、「タイトル」、「グループ」、「明細」などがある。属性として「タイトル」が設定されたセルは、レコードの先頭のみを参照するため、結果的に表のトップを表示する。また、「グループ」が設定されたセルは、レコード内のグループ化キー項目の値が変化した時にデータを参照するセルであり、本実施の形態のように特に設定されていない場合はレコードの先頭のデータを参照して表示する。また、「明細」が設定されたセルは、レコード内の明細毎にデータを参照して表示する。なお、セルの属性は、上述したように行毎に一括して設定してもよいが、セル毎に個別に設定してもよい。   The cell attribute set as “row attribute” for each row in the table data is data that specifies the timing at which the form automatic creation engine P4 refers to the data in the record file 46. Examples of cell attributes include “title”, “group”, “detail”, and the like, as shown in FIG. Since the cell with “title” set as the attribute refers only to the top of the record, the top of the table is displayed as a result. A cell in which “group” is set is a cell that refers to data when the value of the grouping key item in the record changes. If the value is not set as in the present embodiment, the start of the record Browse and display the data. A cell in which “detail” is set is displayed with reference to data for each detail in the record. In addition, although the attribute of a cell may be set collectively for every row as mentioned above, you may set individually for every cell.

また、レコードファイル46の参照ルールに関する部分(セルC13、C23)については、帳票自動作成エンジンP4を実行することで、図4に示すようなレコードファイル46から取得されたデータ(例えば「00010」や「ニンジン」等)がセル(セルC13〜C15、セルC23〜C25)に代入される。   Further, with respect to the part (cells C13 and C23) relating to the reference rule of the record file 46, by executing the form automatic creation engine P4, data (for example, “00010” or “0”) obtained from the record file 46 as shown in FIG. “Carrot” or the like is assigned to the cells (cells C13 to C15, cells C23 to C25).

次に、CPU10が実行して行う推移表ウイザードダイアログP2、推移表ウイザードエンジンP3の処理であり、推移表のレイアウト作成に関する処理について、図5を参照して説明する。図5は、データ処理装置1における推移表のレイアウト生成に関する動作を例示するフローチャートである。   Next, the transition table wizard dialog P2 and transition table wizard engine P3 executed by the CPU 10 will be described with reference to FIG. FIG. 5 is a flowchart illustrating an operation related to layout table layout generation in the data processing apparatus 1.

図5に示すように、推移表のレイアウト作成に関する処理が開始されると、推移表の雛形として使用するためのテンプレートファイル45や参照するレコードファイル46などの対象ファイルの選択を、ファイル追加の終了が指示されるまで入力部20の入力指示に基づいて行われる(ステップS11、S12)。   As shown in FIG. 5, when processing related to transition table layout creation is started, selection of a target file such as a template file 45 to be used as a transition table template or a record file 46 to be referenced is completed. Is performed based on the input instruction of the input unit 20 until the instruction is given (steps S11 and S12).

次いで、対象ファイルの追加選択が終了した後は、その選択された対象ファイルであるテンプレートファイル45における推移表の雛形に埋め込むデータの受け付けを行う入力画面(ウイザード設定画面)を起動するため、推移表ウイザード起動処理が開始される(ステップS13)。   Next, after the addition selection of the target file is finished, the transition table is started in order to activate an input screen (wizard setting screen) for accepting data to be embedded in the template of the transition table in the template file 45 that is the selected target file. The wizard activation process is started (step S13).

ここで、推移表ウイザード起動処理について、推移表ウイザード起動処理を例示するフローチャートである図6を参照して説明する。   Here, the transition table wizard activation process will be described with reference to FIG. 6 which is a flowchart illustrating the transition table wizard activation process.

図6に示すように、推移表ウイザード起動処理が開始されると、選択された推移表の雛形であるテンプレートファイル45から、推移表で項目ごとのデータ推移を分類して表示する分類項目領域に関するテンプレートの読み込み(ステップS131)、設定期間内で項目に係るデータをレコードファイル46から抽出して集計するデータ部品に関するテンプレートの読み込み(ステップS132)、推移表のタイトル表示などを行うタイトル領域に関するテンプレートの読み込みが行われ(ステップS133)、読み込まれたテンプレートに関するデータがCPU10のRAMなどに推移表テンプレートとして展開されて、推移表のレイアウト生成に関する作業領域が生成される(ステップS134)。   As shown in FIG. 6, when the transition table wizard activation process is started, a template item 45 that is a template of the selected transition table is used to classify and display data transitions for each item in the transition table. Reading of template (step S131), reading of template relating to data parts to be extracted and summed up from record file 46 within the set period (step S132), title area template for displaying title of transition table, etc. Reading is performed (step S133), and the data relating to the read template is expanded as a transition table template in the RAM of the CPU 10 or the like, and a work area relating to the layout generation of the transition table is generated (step S134).

ここで、CPU10のRAMなどに作業領域として生成される推移表テンプレートについて、図7、8を参照して説明する。図7は、推移表テンプレートTを例示する概念図であり、図8(a)は分類項目領域R2を例示する概念図であり、図8(b)はデータ部品Dnを例示する概念図である。   Here, a transition table template generated as a work area in the RAM of the CPU 10 will be described with reference to FIGS. FIG. 7 is a conceptual diagram illustrating the transition table template T, FIG. 8 (a) is a conceptual diagram illustrating the classification item region R2, and FIG. 8 (b) is a conceptual diagram illustrating the data part Dn. .

図7に示すように、ステップS134において作業領域として生成される推移表テンプレートTは、帳票タイトル領域R1、分類項目領域R2及び複数のデータ部品D1…Dnを組み合わせる領域であって、見出しとして集計期間を表示する見出し領域R3とその期間におけるデータの集計結果を表示する推移表データ表示領域R4とを有する推移表領域R5から構成される。   As shown in FIG. 7, the transition table template T generated as a work area in step S134 is an area that combines a form title area R1, a classification item area R2, and a plurality of data parts D1,. And a transition table region R5 having a transition table data display region R4 for displaying the result of data aggregation in that period.

図8(a)に示すように、分類項目領域R2は、レコードファイル46から抽出する項目に関するデータであり、入力部20からの入力に基づいて埋め込まれる「分類項目」、「日付項目」、「データ項目」などを有する。   As shown in FIG. 8A, the classification item region R2 is data related to items extracted from the record file 46, and is embedded with “classification items”, “date items”, “ Data item "and the like.

図8(b)に示すように、データ部品Dnは、見出し領域R3に集計期間を示す「開始日付」・「終了日付」、推移表データ表示領域R4にレコードファイル46からその集計期間内のデータを抽出する条件(例えば「=IF(AND(終了日付>=日付項目,開始日付<=日付項目),データ項目,0」等)とその抽出されたデータの合計を表示する計算式(例えば「=SUM(明細の座標)」等)などを有する。つまり、データ部品Dnは、「開始日付」から「終了日付」の期間でレコードファイル46のデータを集計して表示する部品である。推移表領域R5は、このデータ部品Dnを複数組み合わせることで、時系列期間ごとに集計されたデータを推移表として表示する構成である。   As shown in FIG. 8B, the data part Dn includes “start date” and “end date” indicating the total period in the header area R3, and data within the total period from the record file 46 in the transition table data display area R4. (For example, “= IF (AND (end date> = date item, start date <= date item), data item, 0”, etc.)) and a calculation expression (for example, “ In other words, the data part Dn is a part that aggregates and displays the data of the record file 46 during the period from the “start date” to the “end date”. The region R5 is configured to display data aggregated for each time series period as a transition table by combining a plurality of data parts Dn.

図6に戻り、推移表ウイザード起動処理の続きを説明する。
ステップS134に次いで、作業領域として生成された推移表レイアウトで入力部20からの入力に基づいて埋め込まれる項目一覧(上述した例では「分類項目」、「日付項目」、「データ項目」)が読み込まれ(ステップS135)、その項目と推移表を作成するためにレコードファイル46からデータを抽出する期間に関するデータ入力を受け付ける推移表ウイザードダイアログが表示部30に画面表示されて(ステップS136)、推移表ウイザード起動処理が終了する。
Returning to FIG. 6, the continuation of the transition table wizard activation process will be described.
Following step S134, a list of items (“category item”, “date item”, “data item” in the above example) embedded in the transition table layout generated as the work area based on the input from the input unit 20 is read. In step S135, a transition table wizard dialog for accepting data input relating to a period for extracting data from the record file 46 to create the item and transition table is displayed on the display unit 30 (step S136). The wizard activation process ends.

ここで、ステップS136で表示部30に表示されるダイアログ画面Gを図9(a)に例示する。図9(a)に示すように、ダイアログ画面Gには、ステップS135で読み込まれた項目一覧に基づいて、「分類項目」の入力を受け付ける分類項目入力領域In1、「日付項目」の入力を受け付ける日付項目入力領域In2、「データ項目」の入力を受け付けるデータ項目入力領域In3、期間に関するデータとして「終了日」、「期間単位」「期間数」などを受け付ける終了日入力領域In4、期間単位入力領域In5、期間数入力領域In6が表示される。   Here, FIG. 9A illustrates the dialog screen G displayed on the display unit 30 in step S136. As shown in FIG. 9A, the dialog screen G accepts an input of the “category item” classification item input area In1 and “date item” based on the item list read in step S135. Date item input area In2, data item input area In3 that accepts input of "data item", end date input area In4 that accepts "end date", "period unit", "number of periods", etc. as data related to the period, period unit input area In5 and the period number input area In6 are displayed.

図5に示すように、推移表ウイザード起動処理(ステップS13)に続いて、推移表ウイザードダイアログから上述した「分類項目」、「日付項目」、「データ項目」、「終了日」、「期間単位」、「期間数」等の入力が受け付けられ(ステップS14〜S19)、入力の内容を確定させる「OK」ボタンの押下などにより、入力内容は全てOKか否かが判定され(ステップS20)、OKである場合は入力された内容で推移表ウイザードエンジン処理が行われて(ステップS21)、終了する。   As shown in FIG. 5, following the transition table wizard activation process (step S13), the above-described “category item”, “date item”, “data item”, “end date”, “period unit” from the transition table wizard dialog ”,“ Number of periods ”and the like are accepted (steps S14 to S19), and it is determined whether or not the input contents are all OK by pressing the“ OK ”button for confirming the input contents (step S20). If it is OK, the transition table wizard engine process is performed with the input contents (step S21), and the process ends.

このステップS14〜S19で入力されるデータは、例えば図9(a)に示すようなものがある。「分類項目」では売上レコードファイルの項目が商品名を抽出する「商品名.売上レコード」が分類項目入力領域In1に入力される。「日付項目」では売上レコードから伝票日付の項目データを抽出する「伝票日付.売上レコード」が日付項目入力領域In2に入力される。「データ項目」では売上レコードファイルから単価や数量の項目データを抽出し、掛け合わせて売上を演算する「単価.売上レコード*数量.売上レコード」がデータ項目入力領域In3に入力される。「終了日」では抽出の最終日である「2006/09/30」が終了日入力領域In4に入力される。「期間単位」では一つのデータ部品が集計する期間である「月」が期間単位入力領域In5に入力される。「期間数」ではその期間単位で集計する期間の数、つまり、生成するデータ部品の数である「3」が期間数入力領域In6に入力される。   The data input in steps S14 to S19 is, for example, as shown in FIG. In “category item”, “item name.sales record” in which the item of the sales record file extracts the product name is input to the category item input area In1. In “date item”, “slip date.sales record” for extracting item data of the slip date from the sales record is input to the date item input area In2. In “data item”, item data such as unit price and quantity is extracted from the sales record file, and “unit price.sales record * quantity.sales record” for calculating the sales is input to the data item input area In3. In “End Date”, “2006/09/30”, which is the final date of extraction, is input to the end date input area In4. In “period unit”, “month”, which is a period for which one data component is tabulated, is input to the period unit input area In5. In “Number of periods”, the number of periods to be tabulated in the period unit, that is, “3” which is the number of data parts to be generated is input to the period number input area In6.

なお、このステップS14〜S19において、分類項目入力領域In1、日付項目入力領域In2、データ項目入力領域In3、終了日入力領域In4、期間単位入力領域In5、期間数入力領域In6で入力されるデータ型は、文字型、数値型、選択型などがあり、テンプレートファイル45の項目毎に予め設定されている。例えば、推移表ウイザードで設定するデータの概要を示す図9(b)で明らかなように、「文字型」又は「(正の)数値」や「1..年、2..半期、3..四半期、4..月、5..周、6..日」などのように予め設定されたものを選択するものがある。   In steps S14 to S19, the data types input in the classification item input area In1, the date item input area In2, the data item input area In3, the end date input area In4, the period unit input area In5, and the period number input area In6. There are a character type, a numerical type, a selection type, and the like, which are set in advance for each item of the template file 45. For example, as clearly shown in FIG. 9 (b) showing an outline of data set in the transition table wizard, “character type” or “(positive) numerical value”, “1 .. year, 2 .. half year, 3. Some of them select a preset one such as “quarter, 4. month, 5. lap, 6. day”.

ここで、推移表ウイザードエンジン処理について、そのフローチャートが例示された図10を参照して説明する。ステップS21において推移表ウイザードエンジン処理が開始されると、図10に示すように、推移表ウイザードダイアログで入力された設定データが読み取られ(ステップS211)、その設定データに基づいて、ステップS134において作業領域として生成された推移表テンプレートTの分類項目領域R2のデータを置換して項目表示に関するデータを生成する分類項目領域データ生成処理が行われる(ステップS212)。   Here, the transition table wizard engine process will be described with reference to FIG. When the transition table wizard engine process is started in step S21, as shown in FIG. 10, the setting data input in the transition table wizard dialog is read (step S211), and the operation is performed in step S134 based on the setting data. A classification item area data generation process for generating data related to item display by replacing the data of the classification item area R2 of the transition table template T generated as an area is performed (step S212).

この分類項目領域データ生成処理については図11(a)のフローチャートに例示されているとおりである。つまり、分類項目領域データ生成処理が開始されると、図11(a)に示すように、RAMの作業領域に生成された分類項目領域R2に関するテンプレートが取得され(ステップS2121)、その分類項目領域R2における「分類項目」が分類項目入力領域In1に入力された内容で置換され(ステップS2122)、同様に「日付項目」が日付項目入力領域In2に入力された内容、「データ項目」がデータ項目入力領域In3に入力された内容で置換されて(ステップS2123、S2124)終了する。   This classification item area data generation processing is as illustrated in the flowchart of FIG. That is, when the classification item area data generation process is started, a template related to the classification item area R2 generated in the work area of the RAM is acquired (step S2121), as shown in FIG. The “classification item” in R2 is replaced with the contents input in the classification item input area In1 (step S2122). Similarly, the “date item” is the content input in the date item input area In2, and the “data item” is the data item. The contents are replaced with the contents input in the input area In3 (steps S2123 and S2124), and the process ends.

分類項目領域データ生成処理(ステップS212)に次いで、日付演算処理(ステップS213)、データ部品の生成・マージ処理(ステップS214)が終了日入力領域In4で設定された終了日から期間数入力領域In6で設定された期間数分終了したと判定(ステップS215:YES)されるまで行われる。つまり、ステップS213〜S215では、期間数入力領域In6で設定された期間数分のループ処理が行われる。   Subsequent to the classification item area data generation process (step S212), the date calculation process (step S213) and the data component generation / merge process (step S214) from the end date set in the end date input area In4 to the period number input area In6 It is performed until it is determined that the number of periods set in step S1 has ended (step S215: YES). That is, in steps S213 to S215, a loop process is performed for the number of periods set in the period number input area In6.

日付演算処理については図11(b)のフローチャートに例示されているとおりである。具体的には、日付演算処理が開始されると、図11(b)に示すように、終了日入力領域In4や前回の日付演算処理で設定された期間の「終了日」が取得され(ステップS2131)、その取得された「終了日」が日付連番(具体的には表計算ツールP1で演算可能な日付数値)に変換されて「終了日付」として設定され(ステップS2132)、その「終了日付」から期間単位入力領域In5で設定された期間分の日付を減算した「開始日付」が設定され(ステップS2133)、その「開始日付」から一日減じた値が次回行われる日付期間演算処理の「終了日」として保存される(ステップS2134)。   The date calculation process is as illustrated in the flowchart of FIG. Specifically, when the date calculation process is started, as shown in FIG. 11B, the end date input area In4 and the “end date” of the period set in the previous date calculation process are acquired (step S2131), the acquired “end date” is converted into a date sequence number (specifically, a date value that can be calculated by the spreadsheet tool P1) and set as the “end date” (step S2132). A “start date” is set by subtracting the date for the period set in the period unit input area In5 from the “date” (step S2133), and a value obtained by subtracting one day from the “start date” is performed next time. Is stored as the “end date” (step S2134).

つまり、ステップS213〜S215のループ処理における日付演算処理では、日付条件の生成を例示する図13(a)で明らかなように、終了日入力領域In4で設定された「終了日」から、期間単位入力領域In5で設定された期間単位で、期間数入力領域In6で設定された期間数分だけ遡るように、「開始日付」と「終了日付」が演算される。   That is, in the date calculation process in the loop process of steps S213 to S215, as is clear from FIG. 13A illustrating the generation of the date condition, from the “end date” set in the end date input area In4, the period unit The “start date” and “end date” are calculated so as to go back by the number of periods set in the period number input area In6 in the period unit set in the input area In5.

データ部品の生成・マージ処理については図12のフローチャートに例示されているとおりである。具体的には、データ部品の生成・マージ処理が開始されると、図12に示すように、RAMの作業領域に生成されたデータ部品Dnに関するテンプレートが取得され、作業領域として生成された推移表領域R5において、現在処理中の期間に基づいたセル位置に取得されたデータ部品Dnがコピーされる(ステップS2141)。   The data component generation / merging process is as illustrated in the flowchart of FIG. Specifically, when the data component generation / merging process is started, as shown in FIG. 12, a template related to the data component Dn generated in the work area of the RAM is acquired, and the transition table generated as the work area is obtained. In the region R5, the acquired data part Dn is copied to the cell position based on the period currently being processed (step S2141).

この推移表領域R5においてデータ部品Dnをコピーするセル位置については、データ部品Dnの行属性と推移表領域R5の行属性が一致するセル位置であり、本実施の形態で示すように日付を遡るように処理する場合は、推移表領域R5の先頭列に挿入する位置となる。なお、既に推移表領域R5にコピーされているデータ部品は、セル位置とセル内容(他のセルを参照する際の情報等)がデータ部品Dnの挿入に基づいてシフトされることとなる。   The cell position where the data part Dn is copied in the transition table area R5 is a cell position where the row attribute of the data part Dn and the row attribute of the transition table area R5 match, and the date is traced back as shown in the present embodiment. In the case of processing in this way, the position is to be inserted into the first column of the transition table region R5. Note that the data part already copied to the transition table region R5 is shifted in cell position and cell content (information when referring to other cells) based on the insertion of the data part Dn.

次いで、そのコピーされたデータ部品Dnにおける「開始日付」と「終了日付」に日付演算処理で設定された「開始日付」と「終了日付」がセットされ(ステップS2142)、データ部品Dn内の各セルにおける他のセルを参照する際の情報が、推移表領域R5におけるコピーされたセル位置に基づいてセットされる(ステップS2143)。   Next, the “start date” and “end date” set in the date calculation process are set in the “start date” and “end date” of the copied data part Dn (step S2142), and each of the data parts Dn in the data part Dn is set. Information for referring to another cell in the cell is set based on the copied cell position in the transition table region R5 (step S2143).

このデータ部品Dn内の各セルにおける参照する際の情報のセットでは、例えば、図8(b)に例示した分類項目領域R2のセルを参照する「日付項目」、「データ項目」などは、生成されたデータ部品を例示する概念図である図13(b)に示すような分類項目領域R2の対応するセル位置を具体的に示す「$B$4」、「$C$4」などに置換される。   In the set of information at the time of reference in each cell in the data part Dn, for example, “date item”, “data item”, etc. that refer to the cell in the classification item region R2 illustrated in FIG. Replaced by “$ B $ 4”, “$ C $ 4”, etc. that specifically indicate the corresponding cell position of the classification item region R2 as shown in FIG. Is done.

また、図8(b)に例示した行属性がグループ内の「明細の座標」や行属性が明細内の「開始日付」、「終了日付」など、データ部品Dn内の他のセルを参照する部分は、図13(b)に示すようなデータ部品Dn内を参照する「D4」、「D1」、「D1」などに置換される。なお、この置換に際して、上述したデータ部品Dnの挿入に基づいたシフトで参照すべきセル座標のシフトを行わない部分(例えば分類項目領域R2のセルを参照する部分)については「$」などを付加して区別する。   In addition, the row attribute illustrated in FIG. 8B refers to other cells in the data part Dn, such as “detailed coordinates” in the group and row attributes “start date” and “end date” in the detail. The part is replaced with “D4”, “D1”, “D1”, and the like referring to the data part Dn as shown in FIG. At the time of this replacement, “$” or the like is added to a portion (for example, a portion that refers to a cell in the classification item region R2) where the cell coordinates to be referred to are not shifted by the shift based on the insertion of the data component Dn described above To distinguish.

つまり、データ処理装置1では、上述した分類項目領域データ生成処理を行うことで、生成された分類項目領域R2を例示する図14(a)に示すように、分類項目領域R2に関するテンプレートの内容が推移表ウイザードダイアログで入力された設定データに基づいて置換される。   That is, in the data processing device 1, by performing the above-described classification item region data generation processing, as shown in FIG. 14A illustrating the generated classification item region R2, the content of the template related to the classification item region R2 is changed. Replaced based on the setting data entered in the Transition Table Wizard dialog.

次いで、推移表ウイザードダイアログの終了日入力領域In4、期間単位入力領域In5、期間数入力領域In6で設定された期間に関する情報に基づいて日付演算処理、データ部品の生成・マージ処理を行うことで、分類項目領域R2とデータ部品D1の組合せを例示する図14(b)に示すように、時系列毎にデータを集計するデータ部品D1が生成されて推移表のレイアウト生成に関する作業領域でマージされる。   Next, by performing date calculation processing and data component generation / merging processing based on the information related to the period set in the end date input area In4, the period unit input area In5, and the period number input area In6 of the transition table wizard dialog, As shown in FIG. 14B exemplifying a combination of the classification item region R2 and the data component D1, a data component D1 that aggregates data for each time series is generated and merged in a work area related to layout table layout generation. .

また、この日付演算処理、データ部品の生成・マージ処理を期間数入力領域In6で設定された期間数分ループして行い、生成されたデータ部品を推移表のレイアウト生成を行う作業領域に挿入して組み合わせることで、データ部品を順次組み合わせる様子を例示する図14(c)に示すように、データ部品を時系列順に組み合わせて時系列の推移を出力するためのテーブルデータを生成する。   Further, this date calculation processing and data component generation / merging processing are performed in a loop for the number of periods set in the period number input area In6, and the generated data parts are inserted into the work area for generating the layout of the transition table. As shown in FIG. 14C illustrating how data parts are sequentially combined, table data for generating time-series transitions by combining data parts in time-series order is generated.

次いで、その生成されたテーブルデータにおいて、データ部品がレコードファイル46からデータを抽出する部分について、当該抽出データをレコードファイル46から検索する処理(ステップS216)、つまり、後述する帳票自動作成エンジンP4に関する処理が行われて終了する。   Next, in the generated table data, a process for searching the record file 46 for the extracted data from the record file 46 for the part from which the data part extracts data from the record file 46 (step S216), that is, the form automatic creation engine P4 described later. Processing is completed.

ここで、CPU10が実行して行う帳票自動作成エンジンP4に関する処理について図15を参照して説明する。図15は、データ処理装置1における帳票自動作成エンジン処理に関する動作を例示するフローチャートである。   Here, processing related to the automatic form creation engine P4 executed by the CPU 10 will be described with reference to FIG. FIG. 15 is a flowchart illustrating an operation related to the form automatic creation engine process in the data processing apparatus 1.

図15に示すように、帳票自動作成エンジン処理が開始されると、テーブルデータの行属性が読み取られ(ステップS31)、その読み取られた行属性に基づいて、処理を行う行の順位が設定される(ステップS32)。この行属性に基づいた行の処理順位については、他のセルから参照される参照元のセルを含む行から優先的に処理されるように設定される。例えば、レコードファイル46のデータを明細毎に参照する「明細」、レコード内のグループ化キー項目の値が変化した場合や「明細」などの他のセルの参照する「グループ」、単にレコードの先頭を参照して文字のみを表示する「タイトル」の順に設定される。   As shown in FIG. 15, when the form automatic creation engine process is started, the row attribute of the table data is read (step S31), and the rank of the row to be processed is set based on the read row attribute. (Step S32). The processing order of the rows based on the row attributes is set so that processing is performed preferentially from the row including the reference source cell referenced from other cells. For example, “detail” that refers to the data in the record file 46 for each detail, “group” that is referred to by other cells such as “detail” when the value of the grouping key item in the record changes, or simply the beginning of the record Are set in the order of “title” in which only characters are displayed.

次いで、その設定された処理順位に基づいて、最初の順位の行が処理対象行として設定され(ステップS33)、ステップS39において次の順位の処理対象行がないと判定される、つまり、最終順位の行の処理が終了したと判定されるまで、順位順にステップS34〜S38の各処理が行われる。   Next, based on the set processing rank, the first rank row is set as the processing target row (step S33), and it is determined in step S39 that there is no next ranking processing target row. Steps S34 to S38 are performed in the order of rank until it is determined that the processing of the current row has been completed.

この順位順の行に対する処理では、処理対象行がレコードファイル46を参照するか否かが判定され(ステップS34)、参照すると判定された場合(YES)はその参照するレコードファイルが設定され(ステップS35)、当該設定されたレコードファイルから全てのレコードが順次読み出されてセル単位の処理が行われ(ステップS36〜S38)、ステップS39の判定により次の順位の処理対象行の処理へ進む。ステップS34において、参照しないと判定された場合(NO)はそのままステップS39の判定へ進む。   In the processing for the rows in this order, it is determined whether or not the processing target row refers to the record file 46 (step S34). If it is determined to refer to the record file 46 (YES), the referenced record file is set (step S34). In step S35, all the records are sequentially read from the set record file and processed in units of cells (steps S36 to S38), and the process proceeds to the process target row of the next rank according to the determination in step S39. If it is determined in step S34 that the reference is not made (NO), the process directly proceeds to the determination in step S39.

ここで、セル単位の処理について、そのフローチャートを例示する図16を参照して説明する。セル単位の処理が開始されると、図16に示すように、処理対象行の先頭のセルが処理対象セルとして設定され(ステップS371)、ステップS378において次のセル情報が無いと判定される、つまり、対象行の最終セルまでのセルに対して順にステップS372〜S377の各処理が行われる。   Here, the processing in units of cells will be described with reference to FIG. 16 illustrating the flowchart. When processing in units of cells is started, as shown in FIG. 16, the first cell in the processing target row is set as the processing target cell (step S371), and it is determined in step S378 that there is no next cell information. That is, the processes in steps S372 to S377 are sequentially performed on the cells up to the last cell in the target row.

このセルに対する処理では、対象セル内のデータ読み出しと当該対象セルのセル座標(縦横のセル位置)の取得が行われ(ステップS372、S373)、その読み出されたデータにレコードファイルを参照するための当該レコードファイルの項目名に関するデータが含まれるか否かが判定される(ステップS374)。   In the process for this cell, the data in the target cell is read and the cell coordinates (vertical and horizontal cell positions) of the target cell are acquired (steps S372 and S373), and the record file is referred to the read data. It is determined whether or not data relating to the item name of the record file is included (step S374).

ステップS374において、レコードファイルを参照するためのデータが含まれると判定された場合(YES)は、ステップS36〜S37の処理で対象となっている現在のレコードにおいて、対象セルから読み出された項目名に関するデータが取得され(ステップS375)、その取得されたデータで対象セルのデータにおける項目名の部分が置換される(ステップS376)。つまり、対象セルにおけるレコードファイルを参照する部分がレコードファイルから抽出されたデータで置き換えられる。   If it is determined in step S374 that data for referring to the record file is included (YES), the item read from the target cell in the current record that is the target in the processing in steps S36 to S37. Data relating to the name is acquired (step S375), and the item name portion in the data of the target cell is replaced with the acquired data (step S376). That is, the part that refers to the record file in the target cell is replaced with the data extracted from the record file.

なお、ステップS374において、レコードファイルを参照するためのデータが含まれないと判定された場合(NO)は、対象セルから読み出されたデータがそのまま当該対象セルにセットされる(ステップS377)。   If it is determined in step S374 that data for referring to the record file is not included (NO), the data read from the target cell is set as it is in the target cell (step S377).

上述したように、生成されたテーブルデータを帳票自動作成エンジンP4で処理することで、当該生成されたテーブルデータにおけるレコードファイルを参照する部分については、当該レコードファイルから項目名などで検索して取得されたデータが代入される。   As described above, the generated table data is processed by the form automatic creation engine P4, and the part that refers to the record file in the generated table data is obtained by searching the record file by the item name or the like. The assigned data is substituted.

具体的には、帳票自動作成エンジンP4までの処理で作成されたテーブルデータを例示する図17に示すように、売上レコードファイルで該当する項目からデータを抽出することで、商品名の項目を参照する部分には「=”ニンジン”」などの商品名が代入され、日付の項目を参照する部分には「=”20060731」などの日付連番が代入され、単価*数量を参照する部分には「=98*150」などの数値データが代入される。   Specifically, as shown in FIG. 17 illustrating the table data created by the process up to the form automatic creation engine P4, the item of the product name is referred to by extracting data from the corresponding item in the sales record file. The product name such as “=“ carrot ”” is assigned to the part to be replaced, the date serial number such as “=” 20060731 ”is assigned to the part that refers to the date item, and the part that refers to the unit price * quantity is referred to. Numerical data such as “= 98 * 150” is substituted.

データ処理装置1は、この帳票自動作成エンジンP4で生成されたテーブルデータに基づいて、表計算ツールP1により各セルの演算を行うことで、表示部30による画面表示や印刷部50によるプリント出力で推移表を出力することができる。   The data processing apparatus 1 performs calculation of each cell by the spreadsheet tool P1 based on the table data generated by the form automatic creation engine P4, thereby enabling screen display by the display unit 30 and print output by the printing unit 50. A transition table can be output.

具体的には、図17に示すような推移表のテーブルデータに基づいて、表計算ツールP1による推移表の出力を行う場合は、帳票自動作成エンジンP4まで処理で作成されたテーブルデータに基づいて表示される推移表を例示する図18に示すような推移表が出力される。つまり、行属性が「タイトル」又は「グループ」の行について、「明細」などに含まれるデータをもとに演算された結果が推移表領域R5に出力される。   Specifically, when outputting the transition table by the spreadsheet tool P1 based on the table data of the transition table as shown in FIG. 17, it is based on the table data created by the processing up to the form automatic creation engine P4. A transition table as illustrated in FIG. 18 illustrating the displayed transition table is output. That is, for the row having the row attribute “title” or “group”, the result calculated based on the data included in “detail” or the like is output to the transition table region R5.

以上のように、テーブルデータに基づいた表(帳票等)を出力する表計算ツールP1としての機能を有するデータ処理装置1は、項目毎にデータが格納されたレコードファイル46を記憶する記憶部40と、記憶部40に記憶されるレコードファイル46から抽出する項目及び当該項目に係るデータの抽出期間に関する情報の入力を受け付ける入力部20とを有し、CPU10が実行する処理により、前記入力された抽出期間に関する情報に基づいて、当該抽出期間内で分割された時系列期間を算出し、前記算出された時系列区間毎に、記憶部40に記憶されたレコードファイル46から入力された項目に係るデータを抽出して集計するデータ部品Dnを生成し、その生成されたデータ部品Dnを組み合わせることで、時系列の推移を出力するためのテーブルデータを生成する構成である。   As described above, the data processing apparatus 1 having a function as the spreadsheet tool P1 that outputs a table (form etc.) based on the table data stores the record file 46 in which data is stored for each item. And an input unit 20 that receives input of information relating to an extraction period of data related to the item extracted from the record file 46 stored in the storage unit 40, and the input by the processing executed by the CPU 10 Based on the information about the extraction period, a time series period divided within the extraction period is calculated, and for each calculated time series section, an item input from the record file 46 stored in the storage unit 40 Generate data parts Dn to extract and aggregate data, and output the transition of time series by combining the generated data parts Dn It is configured to generate table data for.

このため、データ処理装置1は、項目毎にデータが蓄積されたレコードデータからいずれかの項目のデータを抽出して作成されるテーブルデータに基づいて推移表を作成する際に、時系列区間毎にデータを抽出して集計するデータ部品を組み合わせるだけで推移表を出力するためのテーブルデータを生成することができ、いずれかの項目に係るデータの時系列的な推移を調べるための推移表を容易に作成することができる。     Therefore, when the data processing device 1 creates the transition table based on the table data created by extracting the data of any item from the record data in which the data is accumulated for each item, the data processing device 1 Table data for outputting a transition table can be generated simply by combining data components that are extracted and aggregated into a data table, and a transition table for examining the time-series transition of data related to any item Can be easily created.

また、データ処理装置1は、推移表のレイアウトに関するデータであるテンプレートファイル45が予め記憶部40に記憶されており、このテンプレートファイル45に含まれるデータに基づく推移表テンプレートTの推移表領域R5においてデータ部品Dnを組み合わせることで、推移表を出力するためのテーブルデータを生成する構成である。   In the data processing apparatus 1, a template file 45 that is data related to the layout of the transition table is stored in the storage unit 40 in advance, and in the transition table region R 5 of the transition table template T based on the data included in the template file 45. In this configuration, data parts Dn are combined to generate table data for outputting a transition table.

このため、データ処理装置1は、テンプレートファイル45で出力する推移表のレイアウトを調整することができ、例えば、テンプレートファイル45における推移表領域R5の位置を調整することで、時系列データを表示する領域の調整を行うことができる。   For this reason, the data processing apparatus 1 can adjust the layout of the transition table output in the template file 45. For example, by adjusting the position of the transition table region R5 in the template file 45, the time-series data is displayed. The area can be adjusted.

また、データ処理装置1は、入力部20からの期間単位入力領域In5への入力により、抽出期間内で分割する単位期間の入力を受け付け、その入力された単位期間に基づいて日付演算処理を行う構成である。このため、データ処理装置1は、データ部品の時系列区間をユーザが設定する単位期間として設定することができ、ユーザが所望する期間毎に集計した推移表データを出力させることができる。   Further, the data processing device 1 receives an input of a unit period divided within the extraction period by an input to the period unit input area In5 from the input unit 20, and performs a date calculation process based on the input unit period. It is a configuration. For this reason, the data processing apparatus 1 can set the time series section of the data component as a unit period set by the user, and can output transition table data aggregated for each period desired by the user.

また、データ処理装置1は、入力部20からの終了日入力領域In4への入力により、抽出期間の終了時の入力を受け付け、その入力された終了時に基づいて、遡るように日付演算処理を行う構成である。このため、データ処理装置1は、ユーザが集計を所望する時点から以前の期間毎に集計した推移表データを出力させることができる。   Further, the data processing apparatus 1 accepts an input at the end of the extraction period by an input to the end date input area In4 from the input unit 20, and performs date calculation processing so as to go back based on the input end time. It is a configuration. For this reason, the data processing apparatus 1 can output the transition table data totaled for every previous period from the time when a user desires totalization.

なお、本実施の形態における記述は、データ処理装置1の一例を示すものであり、これに限定するものではない。本実施の形態における構成及び動作に関しては、適宜変更が可能なものである。   Note that the description in the present embodiment shows an example of the data processing apparatus 1 and is not limited to this. The configuration and operation in this embodiment can be changed as appropriate.

(a)は、データ処理装置1の機能的構成を模式的に示すブロック図であり、(b)は、データ処理システム100の構成を模式的に示すブロック図である。(A) is a block diagram schematically showing a functional configuration of the data processing apparatus 1, and (b) is a block diagram schematically showing a configuration of the data processing system 100. (a)は、記憶部40に記憶されるデータを模式的に示す概念図であり、(b)は、データ処理装置1が実行するソフトウエアの構成を模式的に示す概念図である。(A) is a conceptual diagram schematically showing data stored in the storage unit 40, and (b) is a conceptual diagram schematically showing a configuration of software executed by the data processing device 1. (a)は、レコードファイル46の構成を模式的に示す概念図であり、(b)は、レコードファイル46のデータ内容を具体的に例示する概念図である。(A) is a conceptual diagram schematically showing the configuration of the record file 46, and (b) is a conceptual diagram specifically illustrating the data contents of the record file 46. テーブルデータのデータ構成を例示する概念図である。It is a conceptual diagram which illustrates the data structure of table data. データ処理装置1における推移表のレイアウト生成に関する動作を例示するフローチャートである。5 is a flowchart illustrating an operation related to layout table layout generation in the data processing apparatus 1; 推移表ウイザード起動処理を例示するフローチャートである。It is a flowchart which illustrates a transition table wizard starting process. 推移表テンプレートTを例示する概念図である。4 is a conceptual diagram illustrating a transition table template T. FIG. (a)は、分類項目領域R2を例示する概念図であり、(b)は、データ部品Dnを例示する概念図である。(A) is a conceptual diagram which illustrates classification item field R2, and (b) is a conceptual diagram which illustrates data part Dn. (a)は、推移表ウイザードにおけるダイアログ画面Gを例示する概念図であり、(b)は、推移表ウイザードで設定するデータの概要を例示する概念図である。(A) is a conceptual diagram which illustrates the dialog screen G in a transition table wizard, (b) is a conceptual diagram which illustrates the outline | summary of the data set by a transition table wizard. 推移表ウイザードエンジン処理を例示するフローチャートである。It is a flowchart which illustrates a transition table wizard engine process. (a)は、分類項目領域データ生成処理を例示するフローチャートであり、(b)は、日付期間演算処理を例示するフローチャートである。(A) is a flowchart illustrating classification item region data generation processing, and (b) is a flowchart illustrating date period calculation processing. データ部品生成・マージ処理を例示するフローチャートである。It is a flowchart which illustrates a data components production | generation / merge process. (a)は、日付条件の生成を例示する概念図であり、(b)は、生成されたデータ部品を例示する概念図である。(A) is a conceptual diagram illustrating generation of date conditions, and (b) is a conceptual diagram illustrating generated data parts. (a)は、生成された分類項目領域R2を例示する概念図であり、(b)は、分類項目領域R2とデータ部品D1の組合せを例示する概念図であり、(c)は、データ部品を順次組み合わせる様子を例示する概念図である。(A) is a conceptual diagram illustrating the generated classification item region R2, (b) is a conceptual diagram illustrating a combination of the classification item region R2 and the data component D1, and (c) is a data component. It is a conceptual diagram which illustrates a mode that these are combined sequentially. データ処理装置1における帳票自動作成エンジン処理に関する動作を例示するフローチャートである。4 is a flowchart illustrating an operation related to a form automatic creation engine process in the data processing apparatus 1; セル単位の処理を例示するフローチャートである。It is a flowchart which illustrates the process of a cell unit. 帳票自動作成エンジンP4までの処理で作成されたテーブルデータを例示する概念図である。It is a conceptual diagram which illustrates the table data produced by the process to form automatic creation engine P4. 帳票自動作成エンジンP4まで処理で作成されたテーブルデータに基づいて表計算ツールP1により表示される推移表を例示する概念図である。It is a conceptual diagram which illustrates the transition table displayed by the spreadsheet tool P1 based on the table data created by the process up to the form automatic creation engine P4.

符号の説明Explanation of symbols

1 データ処理装置
2 データベース
N 通信ネットワーク
10 CPU
20 入力部
30 表示部
40 記憶部
41 表計算プログラム
42 推移表ウイザードプログラム
43 推移表ウイザードエンジンプログラム
44 帳票自動作成エンジンプログラム
45 テンプレートファイル
46 レコードファイル
50 印刷部
60 通信部
70 バス
100 データ処理システム
C11〜C25 セル
D1〜Dn データ部品
G ダイアログ画面
In1 分類項目入力領域
In2 日付項目入力領域
In3 データ項目入力領域
In4 終了日入力領域
In5 期間単位入力領域
In6 期間数入力領域
P1 表計算ツール
P2 推移表ウイザードダイアログ
P3 推移表ウイザードエンジン
P4 帳票自動作成エンジン
T 推移表テンプレート
R1 帳票タイトル領域
R2 分類項目領域
R3 見出し領域
R4 推移表データ表示領域
R5 推移表領域
1 Data processing device 2 Database N Communication network 10 CPU
20 Input unit 30 Display unit 40 Storage unit 41 Spreadsheet program 42 Transition table wizard program 43 Transition table wizard engine program 44 Automatic report creation engine program 45 Template file 46 Record file 50 Printing unit 60 Communication unit 70 Bus 100 Data processing system C11- C25 cells D1 to Dn Data part G Dialog screen In1 Classification item input area In2 Date item input area In3 Data item input area In4 End date input area In5 Period unit input area In6 Period number input area P1 Spreadsheet wizard P2 Transition table wizard dialog P3 Transition table wizard engine P4 Automatic document creation engine T Transition table template R1 Form title area R2 Classification item area R3 Heading area R4 Transition table data display area R5 Transition table area

Claims (5)

テーブルデータに基づいた帳票を出力する帳票出力手段を有するデータ処理装置において、
項目毎にデータが格納されたレコードデータを記憶する記憶手段と、
前記記憶手段に記憶されるレコードデータから抽出する項目及び当該項目に係るデータの抽出期間に関する情報の入力を受け付ける入力手段と、
前記入力された抽出期間に関する情報に基づいて、当該抽出期間内で分割された時系列期間を算出する期間算出手段と、
前記算出された時系列期間毎に、前記記憶手段に記憶されたレコードデータから前記入力された項目に係るデータを抽出して集計するデータ部品を生成するデータ部品生成手段と、
当該データ部品生成手段で生成された時系列期間毎のデータ部品を組み合わせて、前記入力された項目に係るデータの時系列の推移を出力するためのテーブルデータを生成する推移表テーブルデータ生成手段と、
を備えることを特徴とするデータ処理装置。
In a data processing apparatus having a form output means for outputting a form based on table data,
Storage means for storing record data in which data is stored for each item;
An input means for receiving input of information relating to an item to be extracted from record data stored in the storage means and an extraction period of data relating to the item;
A period calculation means for calculating a time-series period divided within the extraction period based on the input information about the extraction period;
For each of the calculated time series periods, data component generation means for generating data parts for extracting and summing up data relating to the input items from record data stored in the storage means;
A transition table table data generation means for generating table data for outputting a time series transition of data related to the input item by combining data parts for each time series period generated by the data part generation means; ,
A data processing apparatus comprising:
前記記憶手段は、前記推移表テーブルデータ生成手段における前記時系列期間毎のデータ部品の組み合わせに係るテンプレートデータを予め記憶し、
前記推移表テーブルデータ作成手段は、前記テンプレートデータに基づいて前記時系列期間毎のデータ部品を組み合わせることを特徴とする請求項1に記載のデータ処理装置。
The storage means stores in advance template data relating to a combination of data parts for each time-series period in the transition table table data generation means,
The data processing apparatus according to claim 1, wherein the transition table table data creation unit combines data parts for each time-series period based on the template data.
前記入力手段は、前記データの抽出に関する情報として、前記抽出期間内で分割する単位期間を含む情報の入力を受け付け、
前記期間算出手段は、前記入力された単位期間に基づいて前記時系列期間を算出することを特徴とする請求項1又は2に記載のデータ処理装置。
The input means accepts input of information including a unit period divided within the extraction period as information on the extraction of the data,
The data processing apparatus according to claim 1, wherein the period calculation unit calculates the time series period based on the input unit period.
前記入力手段は、前記データの抽出に関する情報として、前記抽出期間の終了時を含む情報の入力を受け付け、
前記期間算出手段は、前記入力された抽出期間の終了時から遡るように前記時系列期間を算出することを特徴とする請求項1〜3のいずれか一項に記載のデータ処理装置。
The input means accepts input of information including the end of the extraction period as information on extraction of the data,
The data processing apparatus according to claim 1, wherein the period calculation unit calculates the time-series period so as to go back from the end of the input extraction period.
項目毎にデータが格納されたレコードデータを記憶する記憶手段、テーブルデータに基づいた帳票を出力する帳票出力手段を有するデータ処理装置のコンピュータを、
前記記憶手段に記憶されるレコードデータから抽出する項目及び当該項目に係るデータの抽出期間に関する情報の入力を受け付ける入力手段、
前記入力された抽出期間に関する情報に基づいて、当該抽出期間内で分割された時系列期間を算出する期間算出手段、
前記算出された時系列期間内毎に、前記記憶手段に記憶されたレコードデータから前記入力された項目に係るデータを抽出して集計するデータ部品を生成するデータ部品生成手段、
当該データ部品生成手段で生成された時系列期間毎のデータ部品を組み合わせて、前記入力された項目に係るデータの時系列の推移を出力するためのテーブルデータを生成する推移表テーブルデータ生成手段、
として機能させるためのプログラム。
A storage means for storing record data in which data is stored for each item, a computer of a data processing apparatus having a form output means for outputting a form based on table data,
Input means for accepting input of an item to be extracted from record data stored in the storage means and information relating to an extraction period of data relating to the item;
A period calculating means for calculating a time-series period divided within the extraction period based on the input information regarding the extraction period;
Data component generating means for generating data parts for extracting and summing up data relating to the input items from record data stored in the storage means for each calculated time-series period;
A transition table table data generation unit that generates table data for outputting a time series transition of data related to the input item by combining data components for each time series period generated by the data component generation unit,
Program to function as.
JP2006333219A 2006-12-11 2006-12-11 Data processor and program Pending JP2008146378A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006333219A JP2008146378A (en) 2006-12-11 2006-12-11 Data processor and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006333219A JP2008146378A (en) 2006-12-11 2006-12-11 Data processor and program

Publications (1)

Publication Number Publication Date
JP2008146378A true JP2008146378A (en) 2008-06-26

Family

ID=39606490

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006333219A Pending JP2008146378A (en) 2006-12-11 2006-12-11 Data processor and program

Country Status (1)

Country Link
JP (1) JP2008146378A (en)

Similar Documents

Publication Publication Date Title
US8612428B2 (en) Image ranking based on popularity of associated metadata
US9880709B2 (en) System and method for creating and displaying previews of content items for electronic works
JP4869093B2 (en) Information processing apparatus and control method thereof
US8930809B2 (en) Editing apparatus and layout method, and storage medium
US20140282076A1 (en) Online Proofing
JP5424798B2 (en) METADATA SETTING METHOD, METADATA SETTING SYSTEM, AND PROGRAM
JP2006048539A (en) Information processor, its control method, and program
JP2021056659A (en) Information processing device, information processing method and information processing program
US20070300146A1 (en) Form output control apparatus, form output control method, and computer readable program
US20170154022A1 (en) Information processing apparatus, method for controlling the same, and storage medium
JP6072560B2 (en) Electronic magazine generation system, electronic magazine generation method, and electronic magazine generation program
JP4959501B2 (en) Information processing apparatus, information processing method, and program
US9830119B1 (en) Image processing apparatus for generating new document image and computer-readable non-transitory recording medium with image processing program stored thereon
JP2008146378A (en) Data processor and program
JP6927243B2 (en) Advertisement management device, advertisement creation support method and program
JP2017204311A (en) Information processing device, document management system, document management server, information processing method, and program therefor
JP2007328670A (en) Information processor, document processing method, storage medium, and program
JP2011243163A (en) Accounting processing system, accounting processing program and computer-readable recording medium with the same program recorded
JP2010026766A (en) Information processing apparatus, information processing method and program
JP2002366354A (en) Method, device, and program for generating program specification
KR20080007770A (en) Method for processing content publication in brog and the system thereof
WO2024192613A1 (en) Page generation method, page template generation method, and device
JP7381900B2 (en) Information processing system, its control method and program
US20240320275A1 (en) Information processing apparatus, non-transitory computer readable medium storing information processing program, and information processing method
JP7404943B2 (en) Information processing device and information processing program