JP2016033799A - Program generation device, information processing device, control method, and program - Google Patents

Program generation device, information processing device, control method, and program Download PDF

Info

Publication number
JP2016033799A
JP2016033799A JP2014157179A JP2014157179A JP2016033799A JP 2016033799 A JP2016033799 A JP 2016033799A JP 2014157179 A JP2014157179 A JP 2014157179A JP 2014157179 A JP2014157179 A JP 2014157179A JP 2016033799 A JP2016033799 A JP 2016033799A
Authority
JP
Japan
Prior art keywords
program
input control
data
data items
generating
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.)
Granted
Application number
JP2014157179A
Other languages
Japanese (ja)
Other versions
JP6032250B2 (en
Inventor
暢彦 藤原
Nobuhiko Fujiwara
暢彦 藤原
早苗 間山
Sanae Mayama
早苗 間山
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.)
Canon Marketing Japan Inc
Canon IT Solutions Inc
Original Assignee
Canon Marketing Japan Inc
Canon IT Solutions Inc
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 Canon Marketing Japan Inc, Canon IT Solutions Inc filed Critical Canon Marketing Japan Inc
Priority to JP2014157179A priority Critical patent/JP6032250B2/en
Publication of JP2016033799A publication Critical patent/JP2016033799A/en
Application granted granted Critical
Publication of JP6032250B2 publication Critical patent/JP6032250B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a mechanism for selecting more suitable input control, and a mechanism for generating a program for selecting more suitable input control, in response to a data amount of a selection object.SOLUTION: A program generation device for generating a program for selecting a data item to be displayed by using input control has a data table storing data items to be selected, and definition information for defining input control to be used in accordance with the number of data items. Further, the program generation device generates an acquisition program for generating a program code for acquiring data items and the number of the data items from the data table, generates an input control determination program for determining input control corresponding to the number of data items on the basis of the definition information stored in definition information storage means, and generates a screen program for displaying data items in a selectable manner by using the determined input control.SELECTED DRAWING: Figure 5

Description

本発明は、プログラム生成装置、情報処理装置、制御方法、およびプログラムに関する。   The present invention relates to a program generation device, an information processing device, a control method, and a program.

アプリケーション画面やウェブ画面などで、データを選択する際、プルタウンリストやコンボボックスなどが入力コントロールとして利用されている。   When selecting data on application screens or web screens, pull-down lists and combo boxes are used as input controls.

これら入力コントロールは、想定されるデータ長やデータ量に適した入力コントロールを設計段階で決定し画面が開発される。   These input controls are developed by determining the input control suitable for the assumed data length and data amount at the design stage.

しかし、運用中にデータが変化により選択する項目に増減が発生すると、当初定めた入力コントロールではユーザの利便性を損ねる可能性があり、場合によってはプログラムの修正が発生する。   However, if an increase or decrease occurs in an item to be selected due to a change in data during operation, there is a possibility that the user's convenience may be impaired by the initially set input control, and in some cases, the program is corrected.

例えば、選択対象のデータが1件しかないのにプルダウンリストで選択したり、選択対象のデータが50件もあるのにコンボボックスにより選択をしたりするケースが、利便性が悪いと考えられる。   For example, when there is only one data to be selected, it is considered that the case of selecting from a pull-down list or selecting from a combo box when there are 50 data to be selected is not convenient.

特許文献1には、プルダウンリストに着目し、プルダウンリストを桁毎に分割する、分割しないが自動判別され、短い選択リストから目的の数値を容易に選択する仕組みが提案されている。   Patent Document 1 proposes a mechanism that pays attention to a pull-down list and divides the pull-down list for each digit and automatically determines whether the pull-down list is not divided and easily selects a target numerical value from a short selection list.

特開2008−052386号公報JP 2008-052386 A

特許文献1によれば、データの内容に応じてプログラムを修正することなくコンボボックスを複数に分割し、容易に選択入力できるようになっているが、入力コントロールとしてのコンボボックスの入力を容易にすることにとどまる。   According to Patent Document 1, the combo box is divided into a plurality of parts without correcting the program in accordance with the contents of the data and can be selected and input easily. However, it is easy to input the combo box as an input control. Staying in to do.

そこで本発明は、選択対象のデータ量に応じて、より適した入力コントロールが選択される仕組みを提供することを目的とする。また、選択対象のデータ量に応じて、より適した入力コントロールを選択するプログラムを生成する仕組を提供することを目的とする。   Therefore, an object of the present invention is to provide a mechanism for selecting a more suitable input control according to the amount of data to be selected. It is another object of the present invention to provide a mechanism for generating a program for selecting a more suitable input control according to the amount of data to be selected.

入力コントロールを利用して表示されるデータ項目を選択するプログラムを生成するプログラム生成装置であって、前記選択されるデータ項目を記憶したデータテーブルを記憶するデータテーブル記憶手段と、前記データテーブル記憶手段に記憶されたデータ項目の数に対応して利用される入力コントロールが定義された定義情報を記憶する定義情報記憶手段と、前記データテーブルからデータ項目およびデータ項目の件数を取得するプログラムコードを生成するデータ項目取得プログラム生成手段と、前記データ項目の件数に対応する入力コントロールを、前記定義情報記憶手段に記憶された定義情報に基づいて決定する入力コントロール判定プログラムを生成する入力コントロール判定プログラム生成手段と、前記入力コントロール判定プログラムによって決定される入力コントロールを利用して前記データ項目を選択可能に表示する画面プログラムを生成する画面プログラム生成手段とを有する。   A program generation device for generating a program for selecting a data item to be displayed by using an input control, the data table storage unit storing a data table storing the selected data item, and the data table storage unit A definition information storage means for storing definition information in which input controls used corresponding to the number of data items stored in the memory are defined, and a program code for acquiring the number of data items and the number of data items from the data table are generated. Data item acquisition program generating means for generating, and input control determination program generating means for generating an input control determination program for determining input control corresponding to the number of data items based on definition information stored in the definition information storage means And the input control determination By using the input controls that are determined by the program and a screen program generating means for generating a screen program for selectably displaying the data item.

本発明によれば、本発明は、選択対象のデータ量に応じて、より適した入力コントロールが選択される仕組みを提供することができる。また、選択対象のデータ量に応じて、より適した入力コントロールを選択するプログラムを生成する仕組みを提供することができる。   According to the present invention, the present invention can provide a mechanism in which a more suitable input control is selected according to the amount of data to be selected. Further, it is possible to provide a mechanism for generating a program for selecting a more suitable input control according to the data amount to be selected.

本発明の一実施形態を示すプログラム生成装置の構成を示すブロック図である。It is a block diagram which shows the structure of the program production | generation apparatus which shows one Embodiment of this invention. 本発明の一実施形態を示すプログラム生成装置のハードウェア構成の一例を示すブロック図である。It is a block diagram which shows an example of the hardware constitutions of the program production | generation apparatus which shows one Embodiment of this invention. 本発明の一実施形態を示すプログラム生成装置のコード生成部107によって生成したコードを利用したアプリケーションシステムの全体構成の一例を示す図である。It is a figure which shows an example of the whole structure of the application system using the code produced | generated by the code production | generation part 107 of the program production | generation apparatus which shows one Embodiment of this invention. 本発明の一実施形態を示すプログラム生成装置における第1の制御処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the 1st control processing procedure in the program generator which shows one Embodiment of this invention. 本発明の一実施形態を示すプログラム生成装置におけるコード生成処理の制御処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the control processing procedure of the code generation process in the program generation apparatus which shows one Embodiment of this invention. 本発明の一実施形態を示すプログラム生成装置により生成されたコードが画面を生成する処理の制御手順の一例を示すフローチャートである。It is a flowchart which shows an example of the control procedure of the process which the code produced | generated by the program production | generation apparatus which shows one Embodiment of this invention produces | generates a screen. 本発明の一実施形態を示すプログラム生成装置により生成されたコードによって表示された画面に表示するデータのテーブルイメージの一例を示す図である。It is a figure which shows an example of the table image of the data displayed on the screen displayed by the code produced | generated by the program production | generation apparatus which shows one Embodiment of this invention. 本発明の一実施形態を示すプログラム生成装置の開発管理画面の一例を示す図である。It is a figure which shows an example of the development management screen of the program production | generation apparatus which shows one Embodiment of this invention. 本発明の一実施形態を示すプログラム生成装置により生成されたコードによって表示された画面の一例を示す図である。It is a figure which shows an example of the screen displayed with the code produced | generated by the program production | generation apparatus which shows one Embodiment of this invention. 本発明の一実施形態を示すプログラム生成装置によって生成されたプログラムの一例を示す図である。It is a figure which shows an example of the program produced | generated by the program production | generation apparatus which shows one Embodiment of this invention. 本発明の一実施形態を示すプログラム生成装置によって生成された画面プログラムの一例を示す図である。It is a figure which shows an example of the screen program produced | generated by the program production | generation apparatus which shows one Embodiment of this invention. 本発明の一実施形態を示すコード生成処理の機能構成の一例を示す図である。It is a figure which shows an example of the function structure of the code generation process which shows one Embodiment of this invention.

以下、図を参照して本発明のアプリケーション開発システムについて説明する。   The application development system of the present invention will be described below with reference to the drawings.

図1は、本発明の一実施形態を示すプログラム生成装置の構成を示すブロック図である。   FIG. 1 is a block diagram showing a configuration of a program generation apparatus showing an embodiment of the present invention.

図において、101は入力装置で、キーボードやマウス等のポインティングデバイス等に相当し、業務仕様情報(データ項目のデータベースへの配置とデータ項目間の関係、即ちあるデータがどのような条件のもとにどのようなデータから求められるかを示す情報等)の入力を行うことが可能である。   In the figure, reference numeral 101 denotes an input device, which corresponds to a pointing device such as a keyboard or a mouse, and has business specification information (arrangement of data items in a database and the relationship between data items, that is, under what conditions certain data is It is possible to input information indicating what kind of data is to be obtained.

102は、表示装置で、CRT、LCD等で構成され、業務仕様情報の入力画面や該入力画面から入力された業務仕様情報、生成されたプログラムコード等を表示可能である。104は、ハードディスク等の外部記憶装置で、入力された業務仕様(データベース上の複数のテーブルをそれぞれ定義した定義情報)を記憶するための入出力テーブル109、入力されたデータベースへ接続するための接続情報を記憶するログイン情報110、生成するウェブアプリケーションのアプリケーション名111(開発者が任意に設定可能)、生成されたプログラムコード(JSPコード112、サーブレット(Servlet)コード113、Beanコード114等)を記憶するものである。   Reference numeral 102 denotes a display device, which includes a CRT, an LCD, and the like, and can display a business specification information input screen, business specification information input from the input screen, a generated program code, and the like. Reference numeral 104 denotes an external storage device such as a hard disk, an input / output table 109 for storing input business specifications (definition information defining each of a plurality of tables on the database), and a connection for connecting to the input database Login information 110 for storing information, application name 111 of a web application to be generated (can be arbitrarily set by a developer), and generated program code (JSP code 112, servlet code 113, bean code 114, etc.) To do.

103は処理装置で、CPU、RAM、ROM等から構成され、CPUがROM、外部記憶装置104又はその他の記憶媒体に格納されるプログラムをRAM上にロードして実行することにより実現されるものであり、画面制御部105、コード生成部、107を備える。   A processing unit 103 includes a CPU, a RAM, a ROM, and the like, and is realized by the CPU loading and executing a program stored in the ROM, the external storage device 104, or other storage medium on the RAM. And includes a screen control unit 105, a code generation unit 107.

画面制御部105は、入力装置101から業務仕様情報の入力を行うために表示装置102の画面(不図示)を制御する業務仕様記述部106を有する。   The screen control unit 105 includes a business specification description unit 106 that controls a screen (not shown) of the display device 102 in order to input business specification information from the input device 101.

コード生成部107は、入力装置101から入力された又は外部記憶装置104から読み出された業務仕様情報に基づいてプログラムコード(JSPコード112、サーブレットコード113、Beanコード114)を生成し、外部記憶装置104に記憶させる。   The code generation unit 107 generates a program code (JSP code 112, servlet code 113, bean code 114) based on the business specification information input from the input device 101 or read from the external storage device 104, and external storage Store in the device 104.

108は全体制御部で、画面制御部105、コード生成部107等の各部の制御を行う。   An overall control unit 108 controls each unit such as the screen control unit 105 and the code generation unit 107.

なお、実施例によれば、処理装置103が外部記憶装置104を有するように構成されているが、外部記憶装置104は、処理装置103とは異なる外部サーバであってもよい。また、クラウドコンピューティングを利用する場合は、外部記憶装置140に記憶される情報がクラウド上に記憶されるようにしてもよい。また、処理装置103の有する画面制御部105、コード生成部107、および全体制御部108の一部または全てをクラウド上に持たせるようにしてもよい。   According to the embodiment, the processing device 103 is configured to include the external storage device 104, but the external storage device 104 may be an external server different from the processing device 103. When using cloud computing, information stored in the external storage device 140 may be stored on the cloud. Further, some or all of the screen control unit 105, the code generation unit 107, and the overall control unit 108 included in the processing apparatus 103 may be provided on the cloud.

また、入力装置101および表示装置102は、処理装置103に直接接続して処理装置へ入力したり表示したりするようにしてもよいし、開発端末(不図示)に接続して、開発端末経由で処理装置103にアクセスするようにしてもよい。   Further, the input device 101 and the display device 102 may be directly connected to the processing device 103 to input or display on the processing device, or may be connected to a development terminal (not shown) via the development terminal. The processor 103 may be accessed at

図2は、本発明の一実施形態を示すプログラム生成装置のハードウェア構成の一例を示すブロック図である。   FIG. 2 is a block diagram illustrating an example of a hardware configuration of the program generation device according to the embodiment of the present invention.

図1と同一のものには同一の符号を付してある。図2に示すように、図1に示したプログラム生成装置は、パーソナルコンピュータ等で実現可能である。   The same components as those in FIG. 1 are denoted by the same reference numerals. As shown in FIG. 2, the program generation device shown in FIG. 1 can be realized by a personal computer or the like.

CPU201は、ROM203あるいは外部記憶装置104に記憶されている制御プログラムに基づいて、システムバスに接続されている各種デバイスとのアクセスを総括的に制御する構成となっている。   The CPU 201 is configured to comprehensively control access to various devices connected to the system bus based on a control program stored in the ROM 203 or the external storage device 104.

システムバスには、CPU201の主メモリ、ワークエリア等として機能するRAM202が接続されている。ROM203あるいは外部記憶装置104には、CPU101の制御プログラムであるBIOS(Basic Input / Output System)やオペレーティングシステム(以下、「OS」という。)プログラム、処理装置(コンピュータ)103が実行する処理を実現するために必要な各種プログラム等が記載されている。   The system bus is connected to a RAM 202 that functions as a main memory, work area, and the like for the CPU 201. The ROM 203 or the external storage device 104 implements a process executed by a BIOS (Basic Input / Output System), an operating system (hereinafter referred to as “OS”) program, and a processing device (computer) 103 which are control programs of the CPU 101. Various programs necessary for this purpose are described.

CPU201は、処理の実行に際して必要な各種プログラム等をRAM202にロードして、当該プログラム等を実行することで図1に示した全体制御部108の機能及び各種機能を実現するものである。   The CPU 201 implements the functions and various functions of the overall control unit 108 shown in FIG. 1 by loading various programs necessary for execution of processing into the RAM 202 and executing the programs.

外部記憶装置104は、上述した各種プログラムとして、図示しないブートプログラム、各種アプリケーションプログラム、フォントデータ、ユーザファイル等を記憶可能である。   The external storage device 104 can store a boot program (not shown), various application programs, font data, user files, and the like as the various programs described above.

CPU201は、例えば、RAM202内の表示情報用領域へアウトラインフォントの展開(ラスタライズ)処理を実行することにより、表示装置102上でWYSIWYGを可能としている。また、CPU201は、表示装置102上のマウスカーソル(不図示)等で指示されたコマンドに基づいて、登録された種々なウィンドウを開き、種々のデータ処理を実行する。   For example, the CPU 201 performs WYSIWYG on the display device 102 by executing outline font rasterization processing on a display information area in the RAM 202. Further, the CPU 201 opens various registered windows based on commands instructed by a mouse cursor (not shown) on the display device 102 and executes various data processing.

図3は、本発明の一実施形態を示すプログラム生成装置のコード生成部107によって生成したコードを利用したアプリケーションシステムの全体構成の一例を示す図である。   FIG. 3 is a diagram illustrating an example of the overall configuration of an application system that uses the code generated by the code generation unit 107 of the program generation apparatus according to the embodiment of the present invention.

クライアント301およびサーバ304がネットワークを介して通信可能に接続されている。クライアント301からの要求に応じて、処理装置103で生成されたプログラムの動作するサーバ304から画面の表示情報がクライアント301に送信される。   A client 301 and a server 304 are communicably connected via a network. In response to a request from the client 301, screen display information is transmitted to the client 301 from the server 304 on which the program generated by the processing device 103 operates.

具体的には、コード生成部107によって生成されたサーブレット、JSP、およびBeanは、それぞれ実行可能な状態で、サーバ304側のアプリケーションサーバ306上に配置される。   Specifically, the servlet, JSP, and Bean generated by the code generation unit 107 are arranged on the application server 306 on the server 304 side in an executable state.

このWebアプリケーションシステムは、クライアント301からWebブラウザ302によって利用される。Webブラウザ302からJSP309にアクセスすることにより、HTMLページ303を生成し、クライアント301側に送信する。そして、Webブラウザ302上には、JSP309から送信されるHTMLページ303が表示される。   This web application system is used from the client 301 by the web browser 302. By accessing the JSP 309 from the Web browser 302, an HTML page 303 is generated and transmitted to the client 301 side. Then, an HTML page 303 transmitted from the JSP 309 is displayed on the Web browser 302.

また、Webブラウザ302からのリクエストは、HTTP経由でサーバ304側に送信される。サーバ304にはHTTPサーバ305とアプリケーションサーバ306があり、アプリケーションサーバ306にはサーブレット307やJSP309の実行環境が含まれている。   A request from the Web browser 302 is transmitted to the server 304 side via HTTP. The server 304 includes an HTTP server 305 and an application server 306, and the application server 306 includes an execution environment for the servlet 307 and the JSP 309.

サーバ304側にリクエストが送信されると、リクエストに応じて該当するサーブレット307が起動される。サーブレット307は、対応するBean308に処理を要求する。さらに、Bean308は、サーブレット307からの要求に応じてDBアクセスオブジェクト310a、内部データベース311a、外部データベース311bにアクセスし、その処理結果をBean308内に保持する。   When a request is transmitted to the server 304 side, the corresponding servlet 307 is activated according to the request. The servlet 307 requests the corresponding Bean 308 to perform processing. Further, the Bean 308 accesses the DB access object 310a, the internal database 311a, and the external database 311b in response to a request from the servlet 307, and holds the processing result in the Bean 308.

次に、サーブレット307からJSP309にBean308を渡し、JSP309を呼び出す。JSP309は、Bean308で保持する処理結果を参照して、HTMLページを生成し、クライアント301側に返送する。クライアント301側に返送されたHTMLページはWebブラウザ302上に表示される。   Next, the Bean 308 is passed from the servlet 307 to the JSP 309 and the JSP 309 is called. The JSP 309 refers to the processing result held by the Bean 308, generates an HTML page, and returns it to the client 301 side. The HTML page returned to the client 301 is displayed on the Web browser 302.

サーブレット307は、Webブラウザ302からのリクエストの受け付け、Bean308への処理要求、およびJSP309への呼び出しという、それぞれの間をつなぎ、制御する役割を持つ。JSP309は、HTMLページを出力するための表示に関する処理を受け持ち、Bean308はデータベース311a、311bへのアクセス等の業務に関する処理を受け持つ。   The servlet 307 has a role of controlling the connection between the reception of a request from the Web browser 302, the processing request to the Bean 308, and the call to the JSP 309. The JSP 309 is responsible for processing related to display for outputting an HTML page, and the Bean 308 is responsible for processing related to operations such as access to the databases 311a and 311b.

なお、Bean308やJSP309を利用せずにサーブレット307のみで(又は、サーブレット307やBean308を利用せずにJSP309のみで)、Webブラウザ302からのリクエストを処理することは可能であるが、Bean308やJSP309を利用してそれぞれの役割を明確に分離することで、機能分担を簡潔に把握することができる。   Although it is possible to process a request from the Web browser 302 using only the servlet 307 without using the Bean 308 or JSP 309 (or using only the JSP 309 without using the servlet 307 or Bean 308), the Bean 308 or JSP 309 can be processed. By clearly separating each role using the function, it is possible to grasp the functional division in a concise manner.

なお、Bean308は、内部データベースアクセス用のBeanと外部データベースアクセス用のBeanに分けて実装してもよい。   Note that the Bean 308 may be separately implemented as a Bean for internal database access and a Bean for external database access.

図4は、本発明の一実施形態を示すプログラム生成装置における第1の制御処理手順の一例を示すフローチャートである。   FIG. 4 is a flowchart showing an example of a first control processing procedure in the program generation device showing an embodiment of the present invention.

図1に示した処理装置103の全体制御部108の動作に対応する。なお、S401〜S405は各ステップを示す。   This corresponds to the operation of the overall control unit 108 of the processing apparatus 103 shown in FIG. In addition, S401-S405 shows each step.

まず、全体制御部108が起動されると、ステップS401において、入力装置101からオペレータの指示により選択された処理(モード)が生成(モード)か入力(モード)かを判定し、入力モードが選択されたと判定した場合(N)には、ステップS402に進み、全体制御部108は、画面制御部105を起動する。   First, when the overall control unit 108 is activated, in step S401, it is determined whether the processing (mode) selected by the operator's instruction from the input device 101 is generation (mode) or input (mode), and the input mode is selected. When it is determined that it has been performed (N), the process proceeds to step S402, and the overall control unit 108 activates the screen control unit 105.

起動された画面制御部105は、ステップS403において、業務仕様記述部106により業務仕様入力画面(詳細は図8に示す)を表示させ、オペレータからの業務仕様の一形態である表示項目の設定やレイアウト、入力コントロール種別などの設定を受け付け、入出力テーブル109をとして外部記憶装置104に格納し、処理を終了する。   In step S403, the activated screen control unit 105 causes the business specification description unit 106 to display a business specification input screen (details are shown in FIG. 8), and sets display items that are forms of business specifications from the operator. Settings such as the layout and input control type are accepted, the input / output table 109 is stored in the external storage device 104, and the process ends.

一方、ステップS401において、入力装置101からオペレータの指示により選択されたモードが生成モードであると判定した場合には、ステップS404に進み、全体制御部108は、外部記憶装置104に格納された入出力テーブル109を読み出し、該読み出した入出力テーブル内の業務仕様情報に基づいてコード生成を行う。コード生成(プログラム生成)処理の詳細については、図5に示す。   On the other hand, if it is determined in step S401 that the mode selected by the operator's instruction from the input device 101 is the generation mode, the process proceeds to step S404, and the overall control unit 108 receives the input stored in the external storage device 104. The output table 109 is read, and code generation is performed based on the business specification information in the read input / output table. Details of the code generation (program generation) process are shown in FIG.

そして、ステップS405において、全体制御部108は、生成されたコードを、オペレータの指示により表示装置102に表示したり、外部記憶装置104に書き込む出力処理したりして処理を終了する。   In step S <b> 405, the overall control unit 108 displays the generated code on the display device 102 in accordance with an instruction from the operator, or performs an output process of writing to the external storage device 104, and ends the process.

図5は、本発明の一実施形態を示すプログラム生成装置におけるコード生成処理の制御処理手順の一例を示すフローチャートである。   FIG. 5 is a flowchart showing an example of the control processing procedure of the code generation processing in the program generation device showing an embodiment of the present invention.

ステップS501〜ステップS502は、開発者によって操作される処理であり、ステップS503からステップS513は、プログラム生成装置による処理である。開発者は、管理者端末から操作を行ってもよいし、プログラム生成装置に直接アクセスして操作を行ってもよい。   Steps S501 to S502 are processes operated by the developer, and steps S503 to S513 are processes performed by the program generation apparatus. The developer may perform an operation from an administrator terminal, or may perform an operation by directly accessing the program generation device.

ステップS501で、開発者より画面項目の入力コントロールとデータ件数閾値の対応関係の定義の入力を受付け、ステップS502で、開発管理画面のプログラム生成処理ボタンの押下を受付ける。開発者が操作する開発管理画面について、図8を利用して説明する。   In step S501, the input of definition of the correspondence between the screen item input control and the data number threshold is received from the developer, and in step S502, the press of the program generation processing button on the development management screen is received. A development management screen operated by the developer will be described with reference to FIG.

図8は、本発明の一実施形態を示すプログラム生成装置の開発管理画面の一例を示す図である。   FIG. 8 is a diagram showing an example of a development management screen of the program generation device showing an embodiment of the present invention.

開発管理画面801は、図4のステップS403で、起動される業務仕様入力画面に相当する。項目設定810では、表示される項目に関する設定を行い、入力コントロール種類設定820では、表示する入力コントロールとその条件に関する設定を行う。   The development management screen 801 corresponds to the business specification input screen activated in step S403 in FIG. In the item setting 810, settings relating to items to be displayed are performed, and in the input control type setting 820, settings relating to input controls to be displayed and conditions thereof are performed.

項目名811では、画面に表示する項目名(例えば「機器区分」)を入力する。取得先812では、表示対象となるデータの取得元のデータベースを指定する。項目名811は、当該指定されたデータベースに格納されている項目である。   In the item name 811, an item name (for example, “device classification”) to be displayed on the screen is input. The acquisition source 812 specifies a database from which data to be displayed is acquired. The item name 811 is an item stored in the designated database.

レイアウト補正813は、入力コントロール種類設定820で決定した内容の例外処理を指定するものである。種類814には、入力コントロールを入力し、文字数815には、表示される文字列の制限を入力する。レイアウト補正813にチェックが入っている場合に設定が有効となり、チェックが外れていると無効となる。   The layout correction 813 designates exception processing with the content determined in the input control type setting 820. In the type 814, input control is input, and in the number of characters 815, the restriction on the character string to be displayed is input. The setting is valid when the layout correction 813 is checked, and invalid when the check is removed.

ここでは、種類814に「ラジオボタン」、文字数815に「30文字以上の場合コンボボックス」と設定されているので、入力コントロール820の設定によりラジオボタンが表示されるような場合であってもコンボボックスが表示されるようになる。   Here, since the type 814 is set to “radio button” and the number of characters 815 is set to “combo box for 30 or more characters”, the combo box is displayed even if the radio button is displayed by the setting of the input control 820. A box will be displayed.

なお、レイアウト補正813において「ラジオボタン」「30」「コンボボックス」は開発者によって任意に指定可能である。例えば、表示される文字数ではなく、表示される文字列の長さが所定の長さを超える場合に、コンボボックスに切り替えるように設定することもできる。   In the layout correction 813, “radio button”, “30”, and “combo box” can be arbitrarily designated by the developer. For example, it can be set to switch to a combo box when the length of a displayed character string exceeds a predetermined length, not the number of characters to be displayed.

入力コントロール1から入力コントロール3(821〜823)では、件数FROM824と件数TO825を指定し、表示される入力コントロールの種類826を設定する。件数とは、入力コントロールによって選択されるために参照する項目が取得元のテーブル(図7)に記憶されている件数であり、記憶された件数に応じて、入力コントロールの種類が切り替わるようになっている。   In the input control 1 to the input control 3 (821 to 823), the number of cases FROM 824 and the number of cases TO825 are designated, and the type of input control 826 to be displayed is set. The number of items is the number of items that are referred to in order to be selected by the input control and stored in the acquisition source table (FIG. 7), and the type of input control is switched according to the number of stored items. ing.

入力コントロール1(821)の場合、コードマスタに記憶された件数が1件から3件の間であれば機器区分の入力コントロールがラジオボタンとなる。同様に入力コントロール2(822)の場合、件数が4件から10件の間であれば、コンボボックスとなり、入力コントロール3(823)の場合、件数が11件以上であれば、ダイアログとなる。   In the case of the input control 1 (821), if the number stored in the code master is between 1 and 3, the input control for the device classification is a radio button. Similarly, in the case of the input control 2 (822), if the number of cases is between 4 and 10, it becomes a combo box. In the case of the input control 3 (823), if the number of cases is 11 or more, it becomes a dialog.

保存830を押下すると、入力した内容を定義情報として入出力テーブル(定義情報記憶手段)に保存する。入出力テーブルは、データベースとしてテーブル形式で保存してもよいし、ファイルとして保存してもよい。開く840を押下すると、過去に記憶した定義情報を開くことができる。プログラム生成850を押下するとプログラムの自動生成が開始される。図5の説明に戻る。   When the save 830 is pressed, the input content is saved as definition information in an input / output table (definition information storage means). The input / output table may be saved as a database in a table format or as a file. When the open 840 is pressed, definition information stored in the past can be opened. When the program generation 850 is pressed, automatic program generation is started. Returning to the description of FIG.

ステップS503では、開発管理画面からプログラム生成要求を受信すると、ステップS504に進み、開発管理画面で設定された項目設定情報および入力コントロール種類設定情報である定義情報を入出力テーブルから読み込み、ステップS505で入力された内容に不備がないかどうかのエラーチェックを行う。なお、エラーチェックは、開発管理画面上で、保存830やプログラム生成850が押下された時に実行されるようにしてもよい。   In step S503, when a program generation request is received from the development management screen, the process proceeds to step S504, where item setting information and definition information which is input control type setting information set in the development management screen are read from the input / output table, and in step S505. Perform an error check to see if there are any deficiencies in the entered content. The error check may be executed when the save 830 or the program generation 850 is pressed on the development management screen.

エラーチェックの内容は、入力コントロール種類設定820で設定された件数FROM824と件数TOの範囲に重複や矛盾がないか、種類826の同じコントロールが指定されていないか等のチェックを行い、ステップS506で、エラーがあればステップS507で開発管理画面にエラーを表示して処理を終了する。   The content of the error check is to check whether there is no overlap or contradiction in the range of the number FROM 824 and the number TO set in the input control type setting 820, and whether the same control of the type 826 is specified, and in step S506. If there is an error, the error is displayed on the development management screen in step S507, and the process is terminated.

エラーが無かった場合は、ステップS508に進み、定義情報の取得元812で指定されたデータベースからデータ件数を取得するプログラムを生成する(図10の1001、データ項目取得プログラム)。   If there is no error, the process advances to step S508 to generate a program for acquiring the number of data items from the database designated by the definition information acquisition source 812 (1001, data item acquisition program in FIG. 10).

ステップS509では、選択値を取得元812のテーブルからデータを取得するプログラムを生成する(図10の1004)。   In step S509, a program for acquiring data from the table of the selection value acquisition source 812 is generated (1004 in FIG. 10).

ステップS510では、定義情報のレイアウト補正813情報をもとに、レイアウト補正にチェックがあるかどうかを判定し、チェックがあった場合は、ステップS511に、チェックが無かった場合は、ステップS512に進む。   In step S510, based on the layout correction 813 information of the definition information, it is determined whether or not layout correction is checked. If there is a check, the process proceeds to step S511. If there is no check, the process proceeds to step S512. .

ステップS511では、レイアウト補正813情報で設定された情報に基づいて、レイアウト補正判定を行うプログラムを生成する(図10の1005、補正プログラム)。   In step S511, a program for performing layout correction determination is generated based on the information set in the layout correction 813 information (1005 in FIG. 10, correction program).

ステップS512では、入力コントロール種類設定820を元に、表示する入力コントロールを判定するプログラムを生成する(図10の1002〜1003、入力コントロール判定プログラム)。   In step S512, a program for determining the input control to be displayed is generated based on the input control type setting 820 (1002 to 1003 in FIG. 10, input control determination program).

ステップS513では、ステップS503〜ステップS512で生成された表示するコントロール種類を制御するためのプログラムを含んだ画面プログラム(図11)を生成し処理を終了する。プログラム(コード)生成処理の概念について図12を利用して説明する。   In step S513, a screen program (FIG. 11) including a program for controlling the control type to be displayed generated in steps S503 to S512 is generated, and the process ends. The concept of the program (code) generation process will be described with reference to FIG.

図12は、本発明の一実施形態を示すコード生成処理の機能構成の一例を示す図である。   FIG. 12 is a diagram illustrating an example of a functional configuration of the code generation process according to an embodiment of the present invention.

本実施形態におけるアプリケーションプログラムの自動生成システムから本発明を実施するにおいて、必要となるリソースを抽出して説明する。   In implementing this invention from the application program automatic generation system in this embodiment, the necessary resources are extracted and described.

図は、実施形態におけるアプリケーション生成を行う部分の構成を示すブロック図であり、図1と同一のものには同一の符号を付してある。   FIG. 1 is a block diagram showing a configuration of a part that generates an application in the embodiment, and the same components as those in FIG. 1 are denoted by the same reference numerals.

コード生成部107は、入出力テーブル109に格納された定義情報(図8で定義)に基づき、画面項目や表示する入力コントロールに関する情報を取得し、プログラムテンプレート1205(不図示)のファイルに当てはめる形で、プログラム207を自動生成する。   Based on the definition information (defined in FIG. 8) stored in the input / output table 109, the code generation unit 107 acquires information about screen items and input controls to be displayed and applies them to a file of a program template 1205 (not shown). Thus, the program 207 is automatically generated.

なお、このプログラム207は、図1に示したJSPコード112、Servelet113、Beanコード114のいずれか又は全てを含む。   The program 207 includes any or all of the JSP code 112, Servlet 113, and Bean code 114 shown in FIG.

プログラムテンプレートとは、生成するアプリケーションプログラムのプログラム構造が定められており、このテンプレートに開発管理画面で定義された定義情報を埋め込むことによって、例えば図10および図11に示すようなアプリケーションプログラム(ソースコード)を生成することができるようになっている。   The program template defines the program structure of the application program to be generated. By embedding definition information defined on the development management screen in this template, for example, an application program (source code as shown in FIGS. 10 and 11). ) Can be generated.

図6は、本発明の一実施形態を示すプログラム生成装置により生成されたコードが画面を生成する処理の制御手順の一例を示すフローチャートである。   FIG. 6 is a flowchart illustrating an example of a control procedure of a process in which a code generated by the program generation apparatus according to the embodiment of the present invention generates a screen.

ステップS601でサーバ304がクライアント301のWebブラウザ302から画面表示要求を受信する。   In step S <b> 601, the server 304 receives a screen display request from the Web browser 302 of the client 301.

ステップS602で画面項目に表示する選択値を図7に示すデータテーブルから取得し、データの件数をカウントする。   In step S602, the selection value to be displayed on the screen item is acquired from the data table shown in FIG. 7, and the number of data is counted.

ステップS603では、データ件数と閾値をもとに、使用する入力コントロールを決定する。具体的には、ステップS512で生成された入力コントロール判定プログラムが、ステップS602で取得した選択値の件数と入力コントロール種類設定820とから画面項目の入力コントロール種類を決定する。データテーブルについて図7を利用して説明する。   In step S603, the input control to be used is determined based on the number of data items and the threshold value. Specifically, the input control determination program generated in step S512 determines the input control type of the screen item from the number of selection values acquired in step S602 and the input control type setting 820. The data table will be described with reference to FIG.

図7は、本発明の一実施形態を示すプログラム生成装置により生成されたコードによって表示された画面に表示するデータのテーブルイメージの一例を示す図である。   FIG. 7 is a diagram illustrating an example of a table image of data displayed on a screen displayed by a code generated by the program generation device according to the embodiment of the present invention.

内部データベース311aもしくは外部データベース311bにコードマスタとして記憶されており、図8の取得元812で指定されるテーブルである。または、外部記憶装置104に記憶されるようにしてもよい。(データテーブル記憶手段)   8 is a table stored as a code master in the internal database 311a or the external database 311b and designated by the acquisition source 812 in FIG. Alternatively, it may be stored in the external storage device 104. (Data table storage means)

機器区分は、機器名称を特定可能なように一意な値(番号)が機器名称に対応して付与されている。機器名称は、画面に記載されている名称が、機器名称として画面に表示される。表示されるデータ項目は入力コントロールによって選択されるようになっている。   The device classification is assigned a unique value (number) corresponding to the device name so that the device name can be specified. As the device name, the name described on the screen is displayed on the screen as the device name. The displayed data item is selected by the input control.

例としてテーブル701からテーブル704の4つのテーブルを記載しているが、実際に利用される際は、これら4つの内1つが参照される。   As an example, four tables of the table 701 to the table 704 are described, but when actually used, one of these four is referred to.

テーブル701が取得元のデータテーブルであった場合、選択値の件数は3件となり、入力コントロール種類設定820の設定により、対応する入力コントロールは「ラジオボタン」となる。   When the table 701 is the data table of the acquisition source, the number of selection values is 3, and the corresponding input control becomes a “radio button” according to the setting of the input control type setting 820.

同様にテーブル702が取得元のデータテーブルであった場合、選択値の件数が10件であり、対応する入力コントロールは「コンボボックス」となる。テーブル703の場合、15件で「ダイアログ」となる。   Similarly, when the table 702 is an acquisition source data table, the number of selection values is 10, and the corresponding input control is a “combo box”. In the case of the table 703, 15 cases result in “dialog”.

テーブルが704の場合は、選択値の件数が3件であるので、入力コントロールは「ラジオボタン」となるのであるが、合計の文字列が30文字を超え、レイアウト補正の条件に合致するので「コンボボックス」となる。これにより、例えば選択項目を横に並べて表示するようなラジオボタンであった場合の、文字列が長すぎると選択項目を表示しきれないという問題を防ぐことができる。図6の説明に戻る。   When the table is 704, since the number of selection values is 3, the input control is a “radio button”. However, since the total character string exceeds 30 characters and matches the layout correction conditions, Combo box ". Thereby, for example, in the case of a radio button that displays selection items side by side, it is possible to prevent the problem that the selection items cannot be displayed if the character string is too long. Returning to the description of FIG.

ステップS604で、選択値を図7のデータテーブルから取得し、ステップS605に進む。   In step S604, the selection value is acquired from the data table of FIG. 7, and the process proceeds to step S605.

ステップS605では、レイアウト補正813にチェックがされているかを確認し、チェックされていた場合はステップS606に進み、チェックされていなかった場合はステップS609に進む。   In step S605, it is confirmed whether or not the layout correction 813 is checked. If it is checked, the process proceeds to step S606, and if it is not checked, the process proceeds to step S609.

ステップS606では、入力コントロールが補正の対象であるかどうかの判定をし、対象であればステップS607に進み、対象でなければステップS609に進む。入力コントロールの対象とは、種類814で設定された内容であり、本実施形態では「ラジオボタン」が対象となる。   In step S606, it is determined whether or not the input control is a correction target. If it is a target, the process proceeds to step S607, and if not, the process proceeds to step S609. The target of the input control is the content set in the type 814, and the “radio button” is the target in this embodiment.

ステップS607では、選択値の総文字数が所定値より多いかどうかの判定をし、多ければステップS608に進み、多くなければ(収まっていれば)ステップS609に進む。入力コントロールの対象とは、文字数815で設定された内容であり、「文字列が30文字以上」ということになる。例えば取得元のデータテーブルが704であった場合、選択値の総文字数が34文字となるので、所定値より多いことになる。   In step S607, it is determined whether or not the total number of characters in the selection value is greater than a predetermined value. If there are more characters, the process proceeds to step S608, and if not greater (if it does not fit), the process proceeds to step S609. The target of input control is the content set with the number of characters 815, which means that “a character string is 30 characters or more”. For example, when the data table of the acquisition source is 704, the total number of characters of the selection value is 34 characters, which is larger than the predetermined value.

ステップS608では、文字数815で設定された内容に従って、入力コンポーネントをラジオボタンからコンボボックスに変更して、ステップS609に進む。   In step S608, the input component is changed from a radio button to a combo box according to the content set with the number of characters 815, and the process proceeds to step S609.

ステップS609では、ステップS604で取得した選択値をステップS602から608の処理で決定した入力コンポーネントの形式でHTMLを生成し、画面を表示する端末へ送信し(表示制御)、処理を終了する。   In step S609, HTML is generated from the selection value acquired in step S604 in the format of the input component determined in the processing in steps S602 to 608, is transmitted to the terminal that displays the screen (display control), and the processing is terminated.

図9は、本発明の一実施形態を示すプログラム生成装置により生成されたコードによって表示された画面の一例を示す図である。   FIG. 9 is a diagram showing an example of a screen displayed by a code generated by the program generation device showing an embodiment of the present invention.

ステップS609で生成されたHTMLが表示されたものであり、機器登録マスタメンテナンス画面となっている。   The HTML generated in step S609 is displayed and is a device registration master maintenance screen.

画面910、920、930(930−1、930−2)は、それぞれテーブル701、702と704、703を表示したものである。   Screens 910, 920, and 930 (930-1, 930-2) display tables 701, 702, 704, and 703, respectively.

機器登録マスタメンテナンス910はデータテーブルがテーブル701の場合の表示例である。機器区分911には、テーブル701に登録された3つの項目がラジオボタンで選択可能に表示されている。型番912は、ユーザが任意に書き込みできる領域である(922、932も同様)。登録913が押下されると、データベース(不図示)に登録される。   The device registration master maintenance 910 is a display example when the data table is the table 701. In the device classification 911, three items registered in the table 701 are displayed so as to be selectable by radio buttons. The model number 912 is an area where the user can write arbitrarily (the same applies to 922 and 932). When registration 913 is pressed, it is registered in a database (not shown).

機器登録マスタメンテナンス920はデータテーブル702および704の場合の表示例である。機器区分921には、データ項目を選択可能にコンボボックスが表示されており、テーブル702の場合は表示件数が10件のため、テーブル704の場合は文字数が34のためレイアウト補正されて表示される。   The device registration master maintenance 920 is a display example in the case of the data tables 702 and 704. In the device category 921, a combo box is displayed so that data items can be selected. In the case of the table 702, the number of display items is 10, and in the case of the table 704, the number of characters is 34, so that the layout is corrected and displayed. .

コンボボックスとは、選択リストのことで、ドロップダウンリストやプルダウンメニューなどの総称を指す。   A combo box is a selection list and is a generic term for a drop-down list, a pull-down menu, and the like.

機器登録マスタメンテナンス930(930−1、930−2)データテーブルがテーブル703の場合の表示例である。930−1で何も入力されていない状態で選択933を押下すると、930−2にダイアログ938が表示される。そこで例えば「001」を選択して検索936を押下すると、930−1に戻り、機器区分931に「001」と入力され、選択933の近傍に「デスクトップPC(省スペース型)」と表示される。
This is a display example when the device registration master maintenance 930 (930-1, 930-2) data table is a table 703. When the selection 933 is pressed while nothing is input in 930-1, a dialog 938 is displayed in 930-2. Therefore, for example, when “001” is selected and the search 936 is pressed, the display returns to 930-1, “001” is input to the device category 931, and “Desktop PC (space-saving type)” is displayed near the selection 933. .

図10は、本発明の一実施形態を示すプログラム生成装置によって生成されたプログラムの一例を示す図である。   FIG. 10 is a diagram showing an example of a program generated by the program generation device showing an embodiment of the present invention.

1001は、図5のステップS508で生成された「データ件数を取得するプログラム」に対応する。   Reference numeral 1001 corresponds to the “program for acquiring the number of data items” generated in step S508 of FIG.

1002および1003は、ステップS512で生成された「表示する入力コントロールを判定するプログラム」に対応する。   Reference numerals 1002 and 1003 correspond to the “program for determining input control to be displayed” generated in step S512.

1004は、ステップS509で生成された「選択値を取得するプログラム」に対応する。   Reference numeral 1004 corresponds to the “program for acquiring a selection value” generated in step S509.

1005は、ステップS511で生成された「レイアウト補正判定を行うプログラム」に対応する。   Reference numeral 1005 corresponds to the “program for performing layout correction determination” generated in step S511.

図11は、本発明の一実施形態を示すプログラム生成装置によって生成された画面プログラムの一例を示す図である。   FIG. 11 is a diagram showing an example of a screen program generated by the program generation device showing an embodiment of the present invention.

図5のステップS513で生成された画面プログラムの一例であり、1101は機器登録マスタメンテナンス910画面を表示する画面プログラムであり、1102は、920画面を表示する画面プログラムであり、1103は、930−1画面を表示する画面プログラムである。   5 is an example of the screen program generated in step S513 in FIG. 5. 1101 is a screen program that displays a device registration master maintenance 910 screen, 1102 is a screen program that displays a 920 screen, and 1103 is 930-1. It is a screen program that displays a screen.

以上、一実施形態について示したが、本発明は、例えば、システム、装置、方法、プログラムもしくは記録媒体等としての実施態様をとることが可能であり、具体的には、複数の機器から構成されるシステムに適用しても良いし、また、一つの機器からなる装置に適用しても良い。   Although one embodiment has been described above, the present invention can take an embodiment as, for example, a system, apparatus, method, program, or recording medium, and specifically includes a plurality of devices. The present invention may be applied to a system including a single device.

また、本発明におけるプログラムは、本発明に示すフローチャートの処理方法をコンピュータが実行可能なプログラムであり、本発明の記憶媒体はコンピュータが実行可能なプログラムが記憶されている。なお、本発明におけるプログラムは各装置の処理方法ごとのプログラムであってもよい。   The program according to the present invention is a program that can be executed by a computer according to the processing method of the flowchart shown in the present invention. The storage medium according to the present invention stores a program that can be executed by a computer. The program in the present invention may be a program for each processing method of each device.

以上のように、前述した実施形態の機能を実現するプログラムを記録した記録媒体を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記録媒体に格納されたプログラムを読出し実行することによっても、本発明の目的が達成されることは言うまでもない。   As described above, a recording medium that records a program that implements the functions of the above-described embodiments is supplied to a system or apparatus, and a computer (or CPU or MPU) of the system or apparatus stores the program stored in the recording medium. It goes without saying that the object of the present invention can also be achieved by executing the reading.

この場合、記録媒体から読み出されたプログラム自体が本発明の新規な機能を実現することになり、そのプログラムを記憶した記録媒体は本発明を構成することになる。   In this case, the program itself read from the recording medium realizes the novel function of the present invention, and the recording medium storing the program constitutes the present invention.

プログラムを供給するための記録媒体としては、例えば、フレキシブルディスク、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、CD−R、DVD−ROM、磁気テープ、不揮発性のメモリカード、ROM、EEPROM、シリコンディスク、ソリッドステートドライブ等を用いることができる。   As a recording medium for supplying the program, for example, a flexible disk, hard disk, optical disk, magneto-optical disk, CD-ROM, CD-R, DVD-ROM, magnetic tape, nonvolatile memory card, ROM, EEPROM, silicon A disk, solid state drive, or the like can be used.

また、コンピュータが読み出したプログラムを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムの指示に基づき、コンピュータ上で稼働しているOS(オペレーティングシステム)等が実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。   Further, by executing the program read by the computer, not only the functions of the above-described embodiments are realized, but also an OS (operating system) operating on the computer based on an instruction of the program is actually It goes without saying that a case where the function of the above-described embodiment is realized by performing part or all of the processing and the processing is included.

さらに、記録媒体から読み出されたプログラムが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPU等が実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。   Furthermore, after the program read from the recording medium is written to the memory provided in the function expansion board inserted into the computer or the function expansion unit connected to the computer, the function expansion board is based on the instructions of the program code. It goes without saying that the case where the CPU or the like provided in the function expansion unit performs part or all of the actual processing and the functions of the above-described embodiments are realized by the processing.

また、本発明は、複数の機器から構成されるシステムに適用しても、1つの機器からなる装置に適用してもよい。また、本発明は、システムあるいは装置にプログラムを供給することによって達成される場合にも適応できることは言うまでもない。この場合、本発明を達成するためのプログラムを格納した記録媒体を該システムあるいは装置に読み出すことによって、そのシステムあるいは装置が、本発明の効果を享受することが可能となる。   Further, the present invention may be applied to a system composed of a plurality of devices or an apparatus composed of a single device. Needless to say, the present invention can be applied to a case where the present invention is achieved by supplying a program to a system or apparatus. In this case, by reading a recording medium storing a program for achieving the present invention into the system or apparatus, the system or apparatus can enjoy the effects of the present invention.

さらに、本発明を達成するためのプログラムをネットワーク上のサーバ、データベース等から通信プログラムによりダウンロードして読み出すことによって、そのシステムあるいは装置が、本発明の効果を享受することが可能となる。   Furthermore, by downloading and reading a program for achieving the present invention from a server, database, etc. on a network using a communication program, the system or apparatus can enjoy the effects of the present invention.

なお、上述した各実施形態およびその変形例を組み合わせた構成も全て本発明に含まれるものである。   In addition, all the structures which combined each embodiment mentioned above and its modification are also included in this invention.

101 入力装置
102 表示装置
103 処理装置
104 外部記憶装置
105 画面制御部
106 業務仕様記述部
107 コード生成部
108 全体制御部
109 入出力テーブル
112 JSPコード
113 サーブレットコード
114 Beanコード
DESCRIPTION OF SYMBOLS 101 Input device 102 Display apparatus 103 Processing apparatus 104 External storage device 105 Screen control part 106 Business specification description part 107 Code generation part 108 Overall control part 109 Input / output table 112 JSP code 113 Servlet code 114 Bean code

そこで本発明は、選択対象のデータ量に応じて、より適した入力コントロールが選択される仕組みを提供することを目的とする Therefore, an object of the present invention is to provide a mechanism for selecting a more suitable input control according to the amount of data to be selected .

表示されるデータ項目の数に対応して利用される入力コントロールが複数定義された定義情報を記憶する定義情報記憶手段を有し、前記データ項目およびデータ項目の件数を取得し、前記データ項目の件数に対応する入力コントロールを、前記定義情報記憶手段に記憶された定義内容に基づいて決定し、前記決定した入力コントロールを利用して前記データ項目を選択可能に表示する The input control used corresponding to the number of displayed data items has definition information storage means for storing a plurality of defined definition information , obtains the data items and the number of data items, An input control corresponding to the number of cases is determined based on the definition content stored in the definition information storage means, and the data items are displayed in a selectable manner using the determined input control .

本発明によれば、選択対象のデータ量に応じて、より適した入力コントロールが選択される仕組みを提供することができる According to the present invention, it is possible to provide a mechanism for selecting a more suitable input control according to the data amount to be selected .

Claims (8)

入力コントロールを利用して表示されるデータ項目を選択するプログラムを生成するプログラム生成装置であって、
前記選択されるデータ項目を記憶したデータテーブルを記憶するデータテーブル記憶手段と、
前記データテーブル記憶手段に記憶されたデータ項目の数に対応して利用される入力コントロールが定義された定義情報を記憶する定義情報記憶手段と、
前記データテーブルからデータ項目およびデータ項目の件数を取得するプログラムコードを生成するデータ項目取得プログラム生成手段と、
前記データ項目の件数に対応する入力コントロールを、前記定義情報記憶手段に記憶された定義情報に基づいて決定する入力コントロール判定プログラムを生成する入力コントロール判定プログラム生成手段と、
前記入力コントロール判定プログラムによって決定される入力コントロールを利用して前記データ項目を選択可能に表示する画面プログラムを生成する画面プログラム生成手段と、
を有することを特徴とするプログラム生成装置。
A program generation device for generating a program for selecting a data item to be displayed using an input control,
Data table storage means for storing a data table storing the selected data items;
Definition information storage means for storing definition information in which input controls used corresponding to the number of data items stored in the data table storage means are defined;
A data item acquisition program generating means for generating a program code for acquiring a data item and the number of data items from the data table;
An input control determination program generating means for generating an input control determination program for determining an input control corresponding to the number of data items based on the definition information stored in the definition information storage means;
Screen program generating means for generating a screen program for selectively displaying the data items using the input control determined by the input control determination program;
A program generation apparatus comprising:
前記入力コントロールは、少なくともラジオボタンおよびコンボボックスを含むものであって、
前記コントロール判定プログラムによってラジオボタンと判定された場合であっても、前記ラジオボタンに表示される前記データ項目の文字数の合計が所定の数を超える場合には、入力コントロールをコンボボックスに決定する補正プログラムを生成する補正プログラム生成手段と、
を更に有することを特徴とする請求項1記載のプログラム生成装置。
The input control includes at least a radio button and a combo box,
Even when it is determined that the control determination program is a radio button, if the total number of characters of the data items displayed on the radio button exceeds a predetermined number, a correction for determining the input control as a combo box Correction program generating means for generating a program;
The program generation device according to claim 1, further comprising:
前記定義情報記憶手段に記憶された入力コントロールの定義情報を設定可能な入力コントロール定義手段を更に有することを特徴とする請求項1または2に記載のプログラム生成装置。   3. The program generation apparatus according to claim 1, further comprising input control definition means capable of setting definition information of the input control stored in the definition information storage means. 入力コントロールを利用して表示されるデータ項目を選択する情報処理装置であって、
前記選択されるデータ項目を記憶したデータテーブルを記憶するデータテーブル記憶手段と、
前記データテーブル記憶手段に記憶されたデータ項目の数に対応して利用される入力コントロールが定義された定義情報を記憶する定義情報記憶手段と、
前記データテーブルからデータ項目およびデータ項目の件数を取得するデータ項目取得手段と、
前記データ項目の件数に対応する入力コントロールを、前記定義情報記憶手段に記憶された定義情報に基づいて決定する入力コントロール判定手段と、
前記入力コントロール判定手段よって決定される入力コントロールを利用して前記データ項目を選択可能に表示する画面を生成する画面生成手段と、
を有することを特徴とする情報処理装置。
An information processing apparatus for selecting a data item to be displayed using an input control,
Data table storage means for storing a data table storing the selected data items;
Definition information storage means for storing definition information in which input controls used corresponding to the number of data items stored in the data table storage means are defined;
Data item acquisition means for acquiring the number of data items and data items from the data table;
Input control determination means for determining an input control corresponding to the number of data items based on definition information stored in the definition information storage means;
Screen generating means for generating a screen for selectively displaying the data items using the input control determined by the input control determining means;
An information processing apparatus comprising:
選択されるデータ項目を記憶したデータテーブルを記憶するデータテーブル記憶手段と、
前記データテーブル記憶手段に記憶されたデータ項目の数に対応して利用される入力コントロールが定義された定義情報を記憶する定義情報記憶手段とを有する、前記入力コントロールを利用して表示されるデータ項目を選択するプログラムを生成するプログラム生成装置の制御方法であって、
前記データテーブルからデータ項目およびデータ項目の件数を取得するプログラムコードを生成するデータ項目取得プログラム生成ステップと、
前記データ項目の件数に対応する入力コントロールを、前記定義情報記憶手段に記憶された定義情報に基づいて決定する入力コントロール判定プログラムを生成する入力コントロール判定プログラム生成ステップと、
前記入力コントロール判定プログラムによって決定される入力コントロールを利用して前記データ項目を選択可能に表示する画面プログラムを生成する画面プログラム生成ステップと、
を有することを特徴とするプログラム生成装置。
Data table storage means for storing a data table storing data items to be selected;
Data displayed using the input control, including definition information storage means for storing definition information in which the input control used corresponding to the number of data items stored in the data table storage means is defined. A method for controlling a program generation device for generating a program for selecting an item, comprising:
A data item acquisition program generation step for generating a program code for acquiring a data item and the number of data items from the data table;
An input control determination program generating step for generating an input control determination program for determining an input control corresponding to the number of data items based on definition information stored in the definition information storage unit;
A screen program generation step for generating a screen program for selectively displaying the data items using the input control determined by the input control determination program;
A program generation apparatus comprising:
選択されるデータ項目を記憶したデータテーブルを記憶するデータテーブル記憶手段と、
前記データテーブル記憶手段に記憶されたデータ項目の数に対応して利用される入力コントロールが定義された定義情報を記憶する定義情報記憶手段とを有する、前記入力コントロールを利用して表示されるデータ項目を選択する情報処理装置の制御方法であって、
前記データテーブルからデータ項目およびデータ項目の件数を取得するデータ項目取得ステップと、
前記データ項目の件数に対応する入力コントロールを、前記定義情報記憶手段に記憶された定義情報に基づいて決定する入力コントロール判定ステップと、
前記入力コントロール判定ステップよって決定される入力コントロールを利用して前記データ項目を選択可能に表示する画面を生成する画面生成ステップと、
を有することを特徴とする情報処理装置。
Data table storage means for storing a data table storing data items to be selected;
Data displayed using the input control, including definition information storage means for storing definition information in which the input control used corresponding to the number of data items stored in the data table storage means is defined. An information processing apparatus control method for selecting an item, comprising:
A data item acquisition step for acquiring the number of data items and data items from the data table;
An input control determination step for determining an input control corresponding to the number of data items based on the definition information stored in the definition information storage means;
A screen generation step for generating a screen for selectively displaying the data item using the input control determined by the input control determination step;
An information processing apparatus comprising:
選択されるデータ項目を記憶したデータテーブルを記憶するデータテーブル記憶手段と、
前記データテーブル記憶手段に記憶されたデータ項目の数に対応して利用される入力コントロールが定義された定義情報を記憶する定義情報記憶手段とを有する、入力コントロールを利用して表示されるデータ項目を選択するプログラムを生成するプログラム生成装置で読み取り可能なプログラムであって、
前記プログラム生成装置を、
前記データテーブルからデータ項目およびデータ項目の件数を取得するプログラムコードを生成するデータ項目取得プログラム生成手段と、
前記データ項目の件数に対応する入力コントロールを、前記定義情報記憶手段に記憶された定義情報に基づいて決定する入力コントロール判定プログラムを生成する入力コントロール判定プログラム生成手段と、
前記入力コントロール判定プログラムによって決定される入力コントロールを利用して前記データ項目を選択可能に表示する画面プログラムを生成する画面プログラム生成手段と、
を有することを特徴とするプログラム生成装置として機能させるためのプログラム。
Data table storage means for storing a data table storing data items to be selected;
Data items displayed using input controls, including definition information storage means for storing definition information in which input controls used corresponding to the number of data items stored in the data table storage means are defined. A program readable by a program generation device for generating a program for selecting
The program generation device;
A data item acquisition program generating means for generating a program code for acquiring a data item and the number of data items from the data table;
An input control determination program generating means for generating an input control determination program for determining an input control corresponding to the number of data items based on the definition information stored in the definition information storage means;
Screen program generating means for generating a screen program for selectively displaying the data items using the input control determined by the input control determination program;
A program for causing a program generation apparatus to function.
選択されるデータ項目を記憶したデータテーブルを記憶するデータテーブル記憶手段と、前記データテーブル記憶手段に記憶されたデータ項目の数に対応して利用される入力コントロールが定義された定義情報を記憶する定義情報記憶手段とを有し、前記入力コントロールを利用して表示されるデータ項目を選択する情報処理装置で読み取り可能なプログラムあって、
前記情報処理装置を、
前記データテーブルからデータ項目およびデータ項目の件数を取得するデータ項目取得手段と、
前記データ項目の件数に対応する入力コントロールを、前記定義情報記憶手段に記憶された定義情報に基づいて決定する入力コントロール判定手段と、
前記入力コントロール判定手段よって決定される入力コントロールを利用して前記データ項目を選択可能に表示する画面を生成する画面生成手段と、
を有することを特徴とする情報処理装置として機能させるためのプログラム。
Data table storage means for storing a data table storing selected data items, and definition information defining input controls used corresponding to the number of data items stored in the data table storage means are stored. A program readable by an information processing apparatus for selecting a data item to be displayed using the input control.
The information processing apparatus;
Data item acquisition means for acquiring the number of data items and data items from the data table;
Input control determination means for determining an input control corresponding to the number of data items based on definition information stored in the definition information storage means;
Screen generating means for generating a screen for selectively displaying the data items using the input control determined by the input control determining means;
A program for causing a computer to function as an information processing apparatus.
JP2014157179A 2014-07-31 2014-07-31 Program generating apparatus, information processing apparatus, control method, and program Active JP6032250B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014157179A JP6032250B2 (en) 2014-07-31 2014-07-31 Program generating apparatus, information processing apparatus, control method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014157179A JP6032250B2 (en) 2014-07-31 2014-07-31 Program generating apparatus, information processing apparatus, control method, and program

Publications (2)

Publication Number Publication Date
JP2016033799A true JP2016033799A (en) 2016-03-10
JP6032250B2 JP6032250B2 (en) 2016-11-24

Family

ID=55452648

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014157179A Active JP6032250B2 (en) 2014-07-31 2014-07-31 Program generating apparatus, information processing apparatus, control method, and program

Country Status (1)

Country Link
JP (1) JP6032250B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019067400A (en) * 2017-10-02 2019-04-25 フィッシャー−ローズマウント システムズ,インコーポレイテッド Systems and methods for graphical display configuration design verification in process plant
CN110333922A (en) * 2019-05-23 2019-10-15 平安科技(深圳)有限公司 Query interface setting method, device, computer equipment and storage medium
US11704010B2 (en) 2017-10-02 2023-07-18 Fisher-Rosemount Systems, Inc. Systems and methods for supporting multi-language display view capabilities in a process control plant

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003015874A (en) * 2001-02-27 2003-01-17 Microsoft Corp Expert system for generating user interface
JP2008046849A (en) * 2006-08-15 2008-02-28 Fujitsu Ltd Method for displaying gui component of selection system, and display control device therefor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003015874A (en) * 2001-02-27 2003-01-17 Microsoft Corp Expert system for generating user interface
JP2008046849A (en) * 2006-08-15 2008-02-28 Fujitsu Ltd Method for displaying gui component of selection system, and display control device therefor

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JPN6016024991; 福本丈晃 外3名: 'ガイドラインに則したGUIレイアウトの自動調整手法' レクチャーノート/ソフトウェア学34 ソフトウェア工学の基礎XV , 20081130, p.117-122, 株式会社近代科学社 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019067400A (en) * 2017-10-02 2019-04-25 フィッシャー−ローズマウント システムズ,インコーポレイテッド Systems and methods for graphical display configuration design verification in process plant
US11704010B2 (en) 2017-10-02 2023-07-18 Fisher-Rosemount Systems, Inc. Systems and methods for supporting multi-language display view capabilities in a process control plant
JP7414392B2 (en) 2017-10-02 2024-01-16 フィッシャー-ローズマウント システムズ,インコーポレイテッド System and method for graphical display configuration design verification in process plants
CN110333922A (en) * 2019-05-23 2019-10-15 平安科技(深圳)有限公司 Query interface setting method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
JP6032250B2 (en) 2016-11-24

Similar Documents

Publication Publication Date Title
US9952819B2 (en) Method and system of automated generation of user form interface
US10353999B2 (en) Information processing system, server apparatus, control method, and storage medium
US20100318894A1 (en) Modifications to Editable Elements of Web Pages Rendered in Word Processor Applications
JP4893108B2 (en) Information processing apparatus, information processing method, and computer program
US20140047368A1 (en) Application development tool
US10182169B2 (en) Information processing apparatus, information processing method, and non-transitory recording medium
JP6032250B2 (en) Program generating apparatus, information processing apparatus, control method, and program
CN114072787A (en) System and method for fast data entry to facilitate document review
US20190386873A1 (en) Information processing apparatus for outputting data acquired from server, information processing method, and storage medium
JP7014960B2 (en) Information processing equipment, servers, their processing methods and programs
US20160320948A1 (en) Document and object manipulation
US20180143794A1 (en) Information processing apparatus, information processing system, and information processing method
US10484569B2 (en) Information processing apparatus, recording medium, and control method for displaying information by a browser
JP6532587B1 (en) Document file management system, management server, document file management method, and document file management program
JP2020091333A (en) Display control method, device, and program
JP2005301967A (en) Program execution system and execution method utilizing simultaneous click of both left and right buttons of mouse
JP6973132B2 (en) Information processing equipment, information processing methods and information processing programs
JP2007299233A (en) Customizing device, customizing method, and customizing program
JP6725706B2 (en) Analysis support system and method
JP6588304B2 (en) Information processing apparatus, information processing method, and program
JP2020107020A (en) Program, information processor, and processing method
JP2021000424A (en) Computer program, server device, terminal device, program generation method, and method
JP2020119409A (en) Program, information processing apparatus, and processing method
JP2015212907A (en) Output system, terminal device, program and output method
JP2022091584A (en) Information providing method, information providing apparatus, information providing program, and recording medium

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160630

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160705

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160902

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20161010

R150 Certificate of patent or registration of utility model

Ref document number: 6032250

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250