JP2018101240A - Cache management program, cache management apparatus, cache management method - Google Patents

Cache management program, cache management apparatus, cache management method Download PDF

Info

Publication number
JP2018101240A
JP2018101240A JP2016246212A JP2016246212A JP2018101240A JP 2018101240 A JP2018101240 A JP 2018101240A JP 2016246212 A JP2016246212 A JP 2016246212A JP 2016246212 A JP2016246212 A JP 2016246212A JP 2018101240 A JP2018101240 A JP 2018101240A
Authority
JP
Japan
Prior art keywords
master data
stored
version
storage unit
server
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
JP2016246212A
Other languages
Japanese (ja)
Inventor
明規 稲川
Akinori INAGAWA
明規 稲川
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.)
Miroku Jyoho Service Co Ltd
Original Assignee
Miroku Jyoho Service 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 Miroku Jyoho Service Co Ltd filed Critical Miroku Jyoho Service Co Ltd
Priority to JP2016246212A priority Critical patent/JP2018101240A/en
Priority to PCT/JP2017/045567 priority patent/WO2018117108A1/en
Publication of JP2018101240A publication Critical patent/JP2018101240A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units

Abstract

PROBLEM TO BE SOLVED: To keep master data up-to-date.SOLUTION: A client terminal 2 comprises: a determination unit 243 for determining whether or not master data is stored as cache information in a storage unit 23; and a display control unit 242 for displaying, in accordance with the determination that the master data is stored in the storage unit 23, the master data stored as the cache information in the storage unit 23 on a web page displayed on a display unit 21 when the version of the master data is the same as a version of the master data stored in a web application server 1, and displaying the master data stored in the web application server 1 on the web page when the version of the master data is older than the version of the master data stored in the web application server 1.SELECTED DRAWING: Figure 1

Description

本発明は、キャッシュ管理プログラム、キャッシュ管理装置及びキャッシュ管理方法に関する。   The present invention relates to a cache management program, a cache management apparatus, and a cache management method.

従来、クライアント端末において、ウェブアプリケーションにおける表示速度を向上させることを目的として、サーバから取得したデータをキャッシュデータとして記憶することが行われている。例えば、特許文献1には、HTML5において規定されているWebStorageやIndexedDBを利用してキャッシュデータを記憶することが開示されている。   Conventionally, in a client terminal, data acquired from a server is stored as cache data for the purpose of improving display speed in a web application. For example, Patent Document 1 discloses storing cache data using WebStorage and IndexedDB defined in HTML5.

特開2015−210663号公報JP 2015-210663 A

ところで、ウェブアプリケーションが仕訳情報等の入力が行われる会計に関するウェブアプリケーションである場合、仕訳に必要となる部門データ等のマスタデータをユーザに迅速に選択させるために、マスタデータをウェブページ上に表示させることがある。   By the way, if the web application is a web application related to accounting, where journal information is entered, the master data is displayed on the web page in order to prompt the user to select master data such as department data required for journal entry. There are things to do.

キャッシュデータとしてマスタデータを記憶させる場合には、常に最新の情報であることが求められるものの、特許文献1では、端末上にキャッシュデータとして記憶されているマスタデータを常に最新の状態に保つことについて考慮されておらず、最新の情報が維持されないという問題がある。   In the case of storing master data as cache data, although it is always required to be the latest information, in Patent Document 1, the master data stored as cache data on the terminal is always kept up-to-date. There is a problem that it is not considered and the latest information is not maintained.

そこで、本発明はこれらの点に鑑みてなされたものであり、マスタデータを最新の状態に保つことができるキャッシュ管理プログラム、キャッシュ管理装置及びキャッシュ管理方法を提供することを目的とする。   Therefore, the present invention has been made in view of these points, and an object thereof is to provide a cache management program, a cache management device, and a cache management method capable of keeping master data up-to-date.

本発明の第1の態様に係るキャッシュ管理プログラムは、コンピュータを、前記コンピュータの記憶部に、マスタデータがキャッシュ情報として記憶されているか否かを判定する判定部、及び前記マスタデータが前記記憶部に記憶されていると判定された場合において、前記マスタデータのバージョンが、前記コンピュータが接続可能なサーバに記憶されている前記マスタデータのバージョンと同じとき、前記記憶部に前記キャッシュ情報として記憶されているマスタデータを前記コンピュータの表示部に表示されるページに表示させ、前記マスタデータのバージョンが、前記サーバに記憶されている前記マスタデータのバージョンに比べて古いとき、前記サーバに記憶されている前記マスタデータを前記ページに表示させる表示制御部、として機能させる。   A cache management program according to a first aspect of the present invention includes a computer, a determination unit that determines whether master data is stored as cache information in the storage unit of the computer, and the master data is the storage unit If the version of the master data is the same as the version of the master data stored in a server to which the computer can be connected, it is stored as the cache information in the storage unit. Displayed on a page displayed on the display unit of the computer, and when the version of the master data is older than the version of the master data stored in the server, the master data is stored in the server. A display control unit for displaying the master data on the page; and To function Te.

前記キャッシュ管理プログラムは、前記コンピュータを、前記記憶部に、前記サーバに記憶されているマスタデータと同じバージョンのマスタデータが記憶されていない場合に、前記サーバに記憶されている前記マスタデータを取得する取得部、及び、取得された前記マスタデータを前記記憶部に記憶させる記憶制御部として機能させ、前記表示制御部は、前記記憶制御部によって前記記憶部に記憶された前記マスタデータを前記ページに表示させてもよい。   The cache management program acquires the master data stored in the server when the master data of the same version as the master data stored in the server is not stored in the storage unit. Functioning as a storage control unit that stores the acquired master data in the storage unit, and the display control unit stores the master data stored in the storage unit by the storage control unit in the page May be displayed.

前記キャッシュ管理プログラムは、前記コンピュータを、前記サーバに記憶されている前記マスタデータと、前記マスタデータのバージョンを示すバージョン情報とを取得する取得部、取得された前記マスタデータと、前記バージョン情報とを関連付けて前記記憶部に記憶させる記憶制御部として機能させ、前記表示制御部は、前記マスタデータが前記記憶部に記憶されていると前記判定部が判定した場合において、前記記憶部に記憶されている前記マスタデータに関連付けられている前記バージョン情報が示すバージョンが、前記サーバに記憶されている前記マスタデータに対応する前記バージョン情報が示すバージョンに比べて古い場合に、前記ページに、前記サーバに記憶されている前記マスタデータを表示させてもよい。   The cache management program includes the acquisition unit that acquires the master data stored in the server and version information indicating a version of the master data, the acquired master data, and the version information. The display control unit is stored in the storage unit when the determination unit determines that the master data is stored in the storage unit. When the version indicated by the version information associated with the master data is older than the version indicated by the version information corresponding to the master data stored in the server, the page is displayed on the server. The master data stored in the memory may be displayed.

前記キャッシュ管理プログラムは、前記コンピュータを、前記サーバに記憶されている前記マスタデータと、前記マスタデータのバージョンを示すバージョン情報とを取得する取得部、取得された前記マスタデータと、前記バージョン情報とを関連付けて前記記憶部に記憶させる記憶制御部として機能させ、前記表示制御部は、前記マスタデータが前記記憶部に記憶されていると前記判定部が判定した場合に、前記サーバにおいて、前記コンピュータから送信された、前記記憶部に記憶されている前記マスタデータに関連付けられているバージョン情報が示すバージョンが、前記サーバに記憶されている前記マスタデータに対応する前記バージョン情報が示すバージョンに比べて古いと判定された場合に、前記ページに、前記サーバに記憶されている前記マスタデータを表示させてもよい。   The cache management program includes the acquisition unit that acquires the master data stored in the server and version information indicating a version of the master data, the acquired master data, and the version information. Are associated with each other and stored in the storage unit. When the determination unit determines that the master data is stored in the storage unit, the display control unit includes the computer in the server. Compared to the version indicated by the version information corresponding to the master data stored in the server, the version indicated by the version information associated with the master data stored in the storage unit transmitted from If it is determined that it is old, it is stored in the server on the page. The master data is may be displayed.

前記判定部は、複数の前記マスタデータが前記キャッシュ情報として前記記憶部に記憶されているか否かを判定し、前記取得部は、複数の前記マスタデータが前記キャッシュ情報として前記記憶部に記憶されている場合に、複数の前記マスタデータのそれぞれに関連付けられている前記バージョン情報を前記サーバに一度に送信し、前記サーバから複数の前記マスタデータの少なくともいずれかを取得してもよい。
前記表示制御部は、前記マスタデータが前記記憶部に記憶されていないと判定された場合に、前記サーバに記憶されている前記マスタデータを前記ページに表示させてもよい。
The determination unit determines whether or not a plurality of master data is stored in the storage unit as the cache information, and the acquisition unit stores a plurality of master data in the storage unit as the cache information. The version information associated with each of the plurality of master data may be transmitted to the server at a time, and at least one of the plurality of master data may be acquired from the server.
The display control unit may display the master data stored in the server on the page when it is determined that the master data is not stored in the storage unit.

前記表示制御部は、前記マスタデータが前記記憶部に記憶されていると判定された場合において、当該マスタデータが破損しているとき、前記ページに、前記サーバに記憶されている前記マスタデータを表示させてもよい。   When it is determined that the master data is stored in the storage unit and the master data is damaged, the display control unit displays the master data stored in the server on the page. It may be displayed.

前記表示制御部は、前記ページに設けられている第1入力項目が選択されたことに応じて、前記マスタデータを前記ページに表示させ、前記判定部は、前記表示制御部が前記マスタデータを前記ページに表示させる場合に、当該マスタデータが前記キャッシュ情報として前記記憶部に記憶されているか否かを判定してもよい。   The display control unit displays the master data on the page in response to selection of a first input item provided on the page, and the determination unit displays the master data on the page. When displaying on the page, it may be determined whether the master data is stored in the storage unit as the cache information.

前記判定部は、前記表示制御部が第1マスタデータを前記ページに表示させる場合に、第1マスタデータが前記キャッシュ情報として前記記憶部に記憶されているか否かを判定するとともに、当該第1マスタデータの後に前記表示制御部によって表示される予定の第2マスタデータが前記キャッシュ情報として前記記憶部に記憶されているか否かを判定してもよい。   The determination unit determines whether or not the first master data is stored in the storage unit as the cache information when the display control unit displays the first master data on the page. It may be determined whether second master data scheduled to be displayed by the display control unit after the master data is stored in the storage unit as the cache information.

本発明の第2の態様に係るキャッシュ管理装置は、キャッシュを管理するキャッシュ管理装置であって、記憶部に、マスタデータがキャッシュ情報として記憶されているか否かを判定する判定部と、前記マスタデータが前記記憶部に記憶されていると判定された場合において、前記マスタデータのバージョンが、前記キャッシュ管理装置が接続可能なサーバに記憶されている前記マスタデータのバージョンと同じとき、前記キャッシュ管理装置の表示部に表示されるページに前記記憶部に前記キャッシュ情報として記憶されているマスタデータを表示させ、前記マスタデータのバージョンが、前記サーバに記憶されている前記マスタデータのバージョンに比べて古いとき、前記ページに、前記サーバに記憶されている前記マスタデータを表示させる表示制御部と、を備える。   A cache management device according to a second aspect of the present invention is a cache management device that manages a cache, wherein a determination unit that determines whether or not master data is stored as cache information in the storage unit; and the master When it is determined that data is stored in the storage unit, when the version of the master data is the same as the version of the master data stored in a server to which the cache management apparatus can be connected, the cache management The master data stored as the cache information in the storage unit is displayed on a page displayed on the display unit of the apparatus, and the version of the master data is compared with the version of the master data stored in the server When it is old, the master data stored in the server is displayed on the page. Comprising a display control unit that, the.

本発明の第3の態様に係るキャッシュ管理方法は、コンピュータが実行する、記憶部に、マスタデータがキャッシュ情報として記憶されているか否かを判定するステップと、前記マスタデータが前記記憶部に記憶されていると判定された場合において、前記マスタデータのバージョンが、前記コンピュータが接続可能なサーバに記憶されている前記マスタデータのバージョンと同じとき、前記コンピュータの表示部に表示されるページに前記記憶部に前記キャッシュ情報として記憶されているマスタデータを表示させ、前記マスタデータのバージョンが、前記サーバに記憶されている前記マスタデータのバージョンに比べて古いとき、前記ページに、前記サーバに記憶されている前記マスタデータを表示させるステップと、を備える。   A cache management method according to a third aspect of the present invention includes a step of determining whether master data is stored as cache information in a storage unit, which is executed by a computer, and storing the master data in the storage unit. When it is determined that the version of the master data is the same as the version of the master data stored in a server to which the computer can be connected, the page displayed on the display unit of the computer The master data stored as the cache information is displayed in the storage unit, and when the version of the master data is older than the version of the master data stored in the server, the master data is stored in the page. Displaying the master data being processed.

本発明によれば、マスタデータを最新の状態に保つことができるという効果を奏する。   According to the present invention, there is an effect that the master data can be kept in the latest state.

第1実施形態に係る表示制御システムの概要を示す図である。It is a figure which shows the outline | summary of the display control system which concerns on 1st Embodiment. 第1実施形態に係るクライアント端末の構成を示す図である。It is a figure which shows the structure of the client terminal which concerns on 1st Embodiment. 第1実施形態に係るクライアント端末における処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process in the client terminal which concerns on 1st Embodiment. 第1実施形態に係るウェブページの一例を示す図である。It is a figure which shows an example of the web page which concerns on 1st Embodiment. 第1実施形態に係るマスタデータ取得処理における処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the process in the master data acquisition process which concerns on 1st Embodiment. 第2実施形態に係るマスタデータ取得処理における処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the process in the master data acquisition process which concerns on 2nd Embodiment. 第2実施形態に係るバージョン確認情報を受信したときのウェブアプリサーバにおける処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process in the web application server when the version confirmation information which concerns on 2nd Embodiment is received.

<第1実施形態>
[ウェブアプリサーバ1の概要]
図1は、第1実施形態に係る表示制御システムSの概要を示す図である。
表示制御システムSは、ウェブアプリサーバ1と、ウェブアプリサーバ1と通信可能な表示制御装置としてのクライアント端末2とを備える。表示制御システムSは、クライアント端末2に、ウェブアプリサーバ1が提供するウェブページを表示させるシステムである。
<First Embodiment>
[Outline of Web Application Server 1]
FIG. 1 is a diagram illustrating an overview of a display control system S according to the first embodiment.
The display control system S includes a web application server 1 and a client terminal 2 as a display control device that can communicate with the web application server 1. The display control system S is a system that causes the client terminal 2 to display a web page provided by the web application server 1.

ウェブアプリサーバ1は、例えば、個人事業主や中小企業向けの会計サービスを提供するためのウェブアプリケーションをクライアント端末2に提供するサーバである。ウェブアプリサーバ1は、制御部と記憶部とを備えている。クライアント端末2は、例えば、個人事業主や中小企業が使用するコンピュータであり、パーソナルコンピュータ等である。   The web application server 1 is a server that provides the client terminal 2 with a web application for providing an accounting service for an individual business owner or a small business. The web application server 1 includes a control unit and a storage unit. The client terminal 2 is, for example, a computer used by an individual business owner or a small business, and is a personal computer or the like.

なお、図1の説明では、ウェブアプリサーバ1が、一のユーザが使用するクライアント端末2にサービスを提供する例を説明するが、ウェブアプリサーバ1は、複数のユーザのそれぞれが使用するクライアント端末2に対してサービスを提供してもよいものとする。   In the description of FIG. 1, an example in which the web application server 1 provides a service to the client terminal 2 used by one user will be described. However, the web application server 1 is a client terminal used by each of a plurality of users. 2 may provide a service.

クライアント端末2は、ユーザの操作に応じて、ウェブページの取得リクエストをウェブアプリサーバ1に送信する(図1の(1))。ウェブアプリサーバ1は、ウェブページの取得リクエストを受信すると、ウェブページをクライアント端末2に送信する(図1の(2))。ウェブページには、マスタデータを表示させるための情報が含まれている。   The client terminal 2 transmits a web page acquisition request to the web application server 1 in accordance with a user operation ((1) in FIG. 1). Upon receiving the web page acquisition request, the web application server 1 transmits the web page to the client terminal 2 ((2) in FIG. 1). The web page includes information for displaying the master data.

クライアント端末2は、受信したウェブページを表示する(図1の(3))。クライアント端末2は、ウェブページに表示させるマスタデータがキャッシュ情報として自身の記憶部に記憶されているか確認する(図1の(4))。また、クライアント端末2は、自身の記憶部にマスタデータが記憶されている場合に、当該マスタデータのバージョンが最新のバージョンであるかを確認する(図1の(5))。クライアント端末2は、自身の記憶部にマスタデータが記憶されていない場合、又は、記憶部に記憶されているマスタデータのバージョンが最新のバージョンではない場合に、ウェブアプリサーバ1にマスタデータの取得リクエストを送信する(図1の(6))。   The client terminal 2 displays the received web page ((3) in FIG. 1). The client terminal 2 checks whether the master data to be displayed on the web page is stored in its own storage unit as cache information ((4) in FIG. 1). Further, when the master data is stored in its own storage unit, the client terminal 2 checks whether the version of the master data is the latest version ((5) in FIG. 1). The client terminal 2 acquires the master data in the web application server 1 when the master data is not stored in its own storage unit or when the version of the master data stored in the storage unit is not the latest version. The request is transmitted ((6) in FIG. 1).

ウェブアプリサーバ1は、クライアント端末2からマスタデータの取得リクエストを受信すると、ウェブアプリサーバ1に記憶されている最新のマスタデータをクライアント端末2に送信する(図1の(7))。クライアント端末2は、最新のバージョンのマスタデータを取得してウェブページに表示させる(図1の(8))。このようにすることで、クライアント端末2は、ウェブページに表示させるマスタデータを最新の状態に保つことができる。   When receiving the master data acquisition request from the client terminal 2, the web application server 1 transmits the latest master data stored in the web application server 1 to the client terminal 2 ((7) in FIG. 1). The client terminal 2 acquires the latest version of the master data and displays it on the web page ((8) in FIG. 1). By doing in this way, the client terminal 2 can keep the master data displayed on a web page in the latest state.

[クライアント端末2の構成]
続いて、クライアント端末2の構成について説明する。図2は、第1実施形態に係るクライアント端末2の構成を示す図である。
[Configuration of client terminal 2]
Next, the configuration of the client terminal 2 will be described. FIG. 2 is a diagram illustrating a configuration of the client terminal 2 according to the first embodiment.

クライアント端末2は、表示部21と、入力部22と、記憶部23と、制御部24とを備える。
表示部21は、例えば、液晶ディスプレイや有機EL(Electro-Luminescence)ディスプレイ等により構成される。
入力部22は、例えば、キーボードやマウスであり、クライアント端末2のユーザから操作入力を受け付ける。
The client terminal 2 includes a display unit 21, an input unit 22, a storage unit 23, and a control unit 24.
The display unit 21 includes, for example, a liquid crystal display or an organic EL (Electro-Luminescence) display.
The input unit 22 is, for example, a keyboard or a mouse, and receives an operation input from the user of the client terminal 2.

記憶部23は、例えば、ROM(Read Only Memory)、RAM(Random Access Memory)及びハードディスク等の記憶媒体である。記憶部23は、制御部24が実行するプログラムを記憶する。また、記憶部23は、キャッシュ情報として、ウェブアプリサーバ1から取得したウェブページに表示させるマスタデータを記憶する。キャッシュ情報は、例えば、HTML5のIndexedDBによって記憶される。マスタデータは、当該マスタデータのバージョンを示すバージョン情報と関連付けて記憶部23に記憶されている。   The storage unit 23 is a storage medium such as a ROM (Read Only Memory), a RAM (Random Access Memory), and a hard disk, for example. The storage unit 23 stores a program executed by the control unit 24. Moreover, the memory | storage part 23 memorize | stores the master data displayed on the web page acquired from the web application server 1 as cache information. The cache information is stored by, for example, HTML5 IndexedDB. The master data is stored in the storage unit 23 in association with version information indicating the version of the master data.

制御部24は、例えばCPU(Central Processing Unit)である。制御部24は、記憶部23に記憶されている各種プログラムや、通信ネットワークを介して外部機器から取得したプログラムを実行することにより、クライアント端末2に係る機能を制御する。制御部24は、ページ取得部241、表示制御部242、判定部243、マスタデータ取得部244、及び記憶制御部245として機能する。   The control unit 24 is, for example, a CPU (Central Processing Unit). The control unit 24 controls functions related to the client terminal 2 by executing various programs stored in the storage unit 23 and programs acquired from external devices via a communication network. The control unit 24 functions as a page acquisition unit 241, a display control unit 242, a determination unit 243, a master data acquisition unit 244, and a storage control unit 245.

[クライアント端末における処理の流れ]
以下に、制御部24が備える機能の詳細について、クライアント端末2における処理の流れを示すフローチャートを参照しながら説明する。図3は、第1実施形態に係るクライアント端末2における処理の流れを示すフローチャートである。
[Processing flow at client terminal]
Hereinafter, details of functions provided in the control unit 24 will be described with reference to a flowchart showing a flow of processing in the client terminal 2. FIG. 3 is a flowchart showing the flow of processing in the client terminal 2 according to the first embodiment.

まず、ページ取得部241は、入力部22を介して、ウェブアプリケーションに対応するウェブページの取得操作を受け付けたことに応じて、ウェブアプリサーバ1から、ウェブアプリケーションに対応するウェブページを取得する(S10)。   First, the page acquisition unit 241 acquires a web page corresponding to the web application from the web application server 1 in response to receiving a web page acquisition operation corresponding to the web application via the input unit 22 ( S10).

例えば、ページ取得部241は、記憶部23に記憶されているブラウザプログラム(以下、ブラウザという。)によって実現される。例えば、ページ取得部241は、表示部21に表示されているブラウザの画面を介してウェブアプリサーバ1のアドレスを指定する操作を受け付ける。ページ取得部241は、ウェブアプリサーバ1のアドレスを指定する操作を受け付けると、ウェブページの取得リクエストをウェブアプリサーバ1に送信する。   For example, the page acquisition unit 241 is realized by a browser program (hereinafter referred to as a browser) stored in the storage unit 23. For example, the page acquisition unit 241 receives an operation for designating the address of the web application server 1 via a browser screen displayed on the display unit 21. When receiving an operation for designating an address of the web application server 1, the page acquisition unit 241 transmits a web page acquisition request to the web application server 1.

ウェブアプリサーバ1は、クライアント端末2からウェブページの取得リクエストを受信すると、ウェブアプリサーバ1の記憶部に記憶されているウェブページを取得する。ここで、ウェブページには、クライアント端末2の制御部24を、表示制御部242、判定部243、マスタデータ取得部244、及び記憶制御部245として機能させるキャッシュ管理プログラムが含まれている。   When receiving the web page acquisition request from the client terminal 2, the web application server 1 acquires the web page stored in the storage unit of the web application server 1. Here, the web page includes a cache management program that causes the control unit 24 of the client terminal 2 to function as the display control unit 242, the determination unit 243, the master data acquisition unit 244, and the storage control unit 245.

図4は、第1実施形態に係るウェブページ211の例を示す図である。図4に示すウェブページ211は、企業において発行された売上伝票に関する情報を入力するページである。図4に示すように、ウェブページ211には、情報の入力を受け付ける複数の入力項目が含まれている。複数の入力項目の少なくともいずれかは、複数のマスタデータのいずれかを選択して入力するためのマスタデータ入力項目(第1入力項目)である。   FIG. 4 is a diagram illustrating an example of the web page 211 according to the first embodiment. A web page 211 shown in FIG. 4 is a page for inputting information related to a sales slip issued by a company. As shown in FIG. 4, the web page 211 includes a plurality of input items that accept input of information. At least one of the plurality of input items is a master data input item (first input item) for selecting and inputting any of the plurality of master data.

ここで、マスタデータは、会計サービスを利用する企業において、会計情報に対して付与されるデータであり、更新頻度が低いデータである。例えば、マスタデータは、得意先コードや部門コードや取引区分コードである。これらのマスタデータを記憶部23に記憶させることにより、表示制御部242は、マスタデータをウェブページに表示させるタイミングとなった時点から、実際にマスタデータがウェブページに表示されるまでの時間を、ウェブアプリサーバ1から取得して表示させる場合に比べて短縮することができる。   Here, the master data is data given to the accounting information in a company that uses the accounting service, and is data with low update frequency. For example, the master data is a customer code, a department code, or a transaction classification code. By storing these master data in the storage unit 23, the display control unit 242 increases the time from when the master data is displayed on the web page to when the master data is actually displayed on the web page. It can be shortened compared with the case where it acquires from the web application server 1 and displays it.

なお、マスタデータは、企業の会計年度ごとに異なっていてもよい。この場合、例えば、マスタデータとしての部門コードは、企業の会計年度ごとに、記憶部23にキャッシュ情報として記憶されるようにしてもよい。   The master data may be different for each company fiscal year. In this case, for example, the department code as master data may be stored as cache information in the storage unit 23 for each fiscal year of the company.

図4に示す例では、得意先、部門、取引区分、商品コード、単位がマスタデータ入力項目である。マスタデータ入力項目が選択されると、マスタデータ表示領域211Aに、マスタデータが表示される。ユーザは、マスタデータ入力項目にマスタデータを入力する場合に、マスタデータ表示領域211Aに表示されているマスタデータを確認しながら入力すべきマスタデータを容易に選択することができる。   In the example shown in FIG. 4, the customer, department, transaction category, product code, and unit are the master data input items. When the master data input item is selected, the master data is displayed in the master data display area 211A. When inputting the master data in the master data input item, the user can easily select the master data to be input while confirming the master data displayed in the master data display area 211A.

図3に説明を戻す。ウェブアプリサーバ1は、取得したウェブページをクライアント端末2に送信する。
ページ取得部241は、ウェブアプリサーバ1からウェブページを受信することによりウェブページを取得する。
Returning to FIG. The web application server 1 transmits the acquired web page to the client terminal 2.
The page acquisition unit 241 acquires a web page by receiving the web page from the web application server 1.

ブラウザは、ページ取得部241が取得したウェブページに含まれるキャッシュ管理プログラムを実行する(S20)。これにより、制御部24は、表示制御部242、判定部243、マスタデータ取得部244及び記憶制御部245として動作する。   The browser executes a cache management program included in the web page acquired by the page acquisition unit 241 (S20). Thereby, the control unit 24 operates as a display control unit 242, a determination unit 243, a master data acquisition unit 244, and a storage control unit 245.

表示制御部242は、ページ取得部241が取得したウェブページをブラウザの画面に表示させる(S30)。表示制御部242は、入力部22を介してウェブページ内の操作を受け付ける(S40)。例えば、表示制御部242は、図4に示すウェブページ211に含まれている複数の項目のそれぞれに対する情報の入力を受け付ける。   The display control unit 242 displays the web page acquired by the page acquisition unit 241 on the browser screen (S30). The display control unit 242 receives an operation in the web page through the input unit 22 (S40). For example, the display control unit 242 receives input of information for each of a plurality of items included in the web page 211 illustrated in FIG.

続いて、判定部243は、入力部22を介したユーザの操作によって、マスタデータ入力項目が選択されたか否かを判定する(S50)。判定部243は、マスタデータ入力項目が選択されたと判定すると、S60に処理を移し、マスタデータ入力項目が選択されていないと判定すると、S40に処理を移す。   Subsequently, the determination unit 243 determines whether or not a master data input item is selected by a user operation via the input unit 22 (S50). If the determination unit 243 determines that the master data input item is selected, the process proceeds to S60. If the determination unit 243 determines that the master data input item is not selected, the process proceeds to S40.

判定部243、マスタデータ取得部244、及び記憶制御部245は、最新のマスタデータを取得するマスタデータ取得処理を実行する(S60)。ここで、取得対象のマスタデータは、マスタデータ入力項目に入力される候補となる複数のマスタデータである。図4に示すウェブページ211において、マスタデータ入力項目として取引区分が選択された場合、取得対象のマスタデータは、取引区分に入力される候補となる取引区分マスタとなる。   The determination unit 243, the master data acquisition unit 244, and the storage control unit 245 execute a master data acquisition process for acquiring the latest master data (S60). Here, the master data to be acquired is a plurality of master data that are candidates to be input to the master data input item. In the web page 211 shown in FIG. 4, when a transaction classification is selected as a master data input item, the master data to be acquired is a transaction classification master that is a candidate to be input to the transaction classification.

図5は、第1実施形態に係るマスタデータ取得処理における処理の流れを示すフローチャートである。上述したように、マスタデータ取得処理は、ウェブページに設けられているマスタデータ入力項目が選択され、表示制御部242が、当該項目に対応するマスタデータをウェブページに表示させる場合に実行される。   FIG. 5 is a flowchart showing a process flow in the master data acquisition process according to the first embodiment. As described above, the master data acquisition process is executed when a master data input item provided in a web page is selected and the display control unit 242 displays master data corresponding to the item on the web page. .

まず、判定部243は、ブラウザがキャッシュ管理に対応しているか否かを判定する(S610)。例えば、キャッシュ管理プログラムには、キャッシュ管理に用いられるIndexedDBに対応するブラウザの識別情報と、ブラウザのバージョンとを関連付けた対応情報が含まれている。判定部243は、ウェブページを表示しているブラウザの識別情報とバージョンとを特定する。判定部243は、キャッシュ管理プログラムに含まれている対応情報と、特定されたブラウザの識別情報及びバージョンとに基づいて、ブラウザがキャッシュ管理に対応しているか否かを判定する。判定部243は、ブラウザがキャッシュ管理に対応していると判定すると、S620に処理を移す。判定部243は、ブラウザがキャッシュ管理に対応していないと判定すると、S680に処理を移す。   First, the determination unit 243 determines whether or not the browser supports cache management (S610). For example, the cache management program includes correspondence information that associates browser identification information corresponding to the Indexed DB used for cache management and the browser version. The determination unit 243 specifies the identification information and version of the browser displaying the web page. The determination unit 243 determines whether or not the browser supports cache management based on the correspondence information included in the cache management program and the identified browser identification information and version. If the determination unit 243 determines that the browser supports cache management, the process proceeds to S620. If the determination unit 243 determines that the browser does not support cache management, the process proceeds to S680.

続いて、判定部243は、取得対象のマスタデータがキャッシュ情報として記憶部23に記憶されているか否かを判定する(S620)。判定部243は、マスタデータが記憶部23に記憶されていると判定すると、S630に処理を移し、マスタデータが記憶部23に記憶されていないと判定すると、S680に処理を移す。   Subsequently, the determination unit 243 determines whether or not the acquisition target master data is stored in the storage unit 23 as cache information (S620). If the determination unit 243 determines that the master data is stored in the storage unit 23, the determination unit 243 moves the process to S630. If the determination unit 243 determines that the master data is not stored in the storage unit 23, the determination unit 243 moves the process to S680.

続いて、マスタデータ取得部244は、取得対象のマスタデータが破損しているか否かを判定する(S630)。例えば、取得対象のマスタデータには、誤り検出情報が含まれており、マスタデータ取得部244は、取得対象のマスタデータに基づいて誤り検出情報を生成する。マスタデータ取得部244は、生成された誤り検出情報と、予めマスタデータに含まれている誤り検出情報とが一致する場合には、マスタデータが破損していないと判定する。マスタデータ取得部244は、生成された誤り検出情報と、予めマスタデータに含まれている誤り検出情報とが一致しない場合には、マスタデータが破損していると判定する。   Subsequently, the master data acquisition unit 244 determines whether or not the master data to be acquired is damaged (S630). For example, the master data to be acquired includes error detection information, and the master data acquisition unit 244 generates error detection information based on the master data to be acquired. The master data acquisition unit 244 determines that the master data is not damaged when the generated error detection information matches the error detection information included in the master data in advance. The master data acquisition unit 244 determines that the master data is damaged when the generated error detection information does not match the error detection information included in the master data in advance.

マスタデータ取得部244は、取得対象のマスタデータが破損していると判定すると、S680に処理を移し、取得対象のマスタデータが破損していないと判定すると、S640に処理を移す。このようにすることで、クライアント端末2は、マスタデータの破損時に、マスタデータをウェブアプリサーバ1から取得することができる。
続いて、マスタデータ取得部244は、取得対象のマスタデータと関連付けられて記憶部23に記憶されているマスタデータのバージョン情報を取得する(S640)。
If the master data acquisition unit 244 determines that the acquisition target master data is damaged, the process proceeds to S680. If the master data acquisition unit 244 determines that the acquisition target master data is not damaged, the process proceeds to S640. In this way, the client terminal 2 can acquire the master data from the web application server 1 when the master data is damaged.
Subsequently, the master data acquisition unit 244 acquires version information of the master data associated with the acquisition target master data and stored in the storage unit 23 (S640).

続いて、マスタデータ取得部244は、ウェブアプリサーバ1に記憶されている、取得対象のマスタデータに対応する最新のバージョン情報をウェブアプリサーバ1から取得する(S650)。例えば、マスタデータ取得部244は、取得対象のマスタデータの識別情報を含み、最新のバージョン情報の取得を要求するバージョン取得リクエストをウェブアプリサーバ1に送信する。ウェブアプリサーバ1は、バージョン取得リクエストを受信すると、当該リクエストに含まれているマスタデータの識別情報を取得し、当該マスタデータの最新のバージョン情報を取得する。ウェブアプリサーバ1は、最新のバージョン情報をクライアント端末2に送信する。マスタデータ取得部244は、ウェブアプリサーバ1が送信した最新のバージョン情報を受信する。   Subsequently, the master data acquisition unit 244 acquires the latest version information corresponding to the acquisition target master data stored in the web application server 1 from the web application server 1 (S650). For example, the master data acquisition unit 244 transmits to the web application server 1 a version acquisition request that includes the identification information of the master data to be acquired and requests acquisition of the latest version information. When receiving the version acquisition request, the web application server 1 acquires the identification information of the master data included in the request, and acquires the latest version information of the master data. The web application server 1 transmits the latest version information to the client terminal 2. The master data acquisition unit 244 receives the latest version information transmitted by the web application server 1.

続いて、マスタデータ取得部244は、S640及びS650において取得されたバージョン情報に基づいて、記憶部23に記憶されているマスタデータが最新のマスタデータであるか否かを判定する(S660)。具体的には、マスタデータ取得部244は、記憶部23から取得したバージョン情報が示すバージョンが、ウェブアプリサーバ1から取得したバージョン情報が示すバージョンに比べて古いか否かを判定する。マスタデータ取得部244は、記憶部23に記憶されているマスタデータが最新のマスタデータであると判定すると、S670に処理を移し、記憶部23に記憶されているマスタデータが最新のマスタデータではないと判定すると、S680に処理を移す。   Subsequently, the master data acquisition unit 244 determines whether or not the master data stored in the storage unit 23 is the latest master data based on the version information acquired in S640 and S650 (S660). Specifically, the master data acquisition unit 244 determines whether or not the version indicated by the version information acquired from the storage unit 23 is older than the version indicated by the version information acquired from the web application server 1. If the master data acquisition unit 244 determines that the master data stored in the storage unit 23 is the latest master data, the master data acquisition unit 244 proceeds to S670, and the master data stored in the storage unit 23 is not the latest master data. If it is determined that there is no, the process proceeds to S680.

S670において、マスタデータ取得部244は、取得対象のマスタデータを記憶部23から取得する。すなわち、マスタデータ取得部244は、ウェブアプリサーバ1に記憶されているマスタデータと同じバージョンのマスタデータが記憶部23に記憶されている場合に、記憶部23にキャッシュ情報として記憶されているマスタデータを取得する。   In S <b> 670, the master data acquisition unit 244 acquires the master data to be acquired from the storage unit 23. That is, the master data acquisition unit 244, when master data of the same version as the master data stored in the web application server 1 is stored in the storage unit 23, the master data stored as cache information in the storage unit 23 Get the data.

S680において、マスタデータ取得部244は、取得対象のマスタデータをウェブアプリサーバ1から取得する。マスタデータ取得部244は、ウェブアプリサーバ1に記憶されているマスタデータと同じバージョンのマスタデータが記憶部23に記憶されていない場合に、ウェブアプリサーバ1に記憶されているマスタデータを取得する。   In S680, the master data acquisition unit 244 acquires the master data to be acquired from the web application server 1. The master data acquisition unit 244 acquires master data stored in the web application server 1 when master data of the same version as the master data stored in the web application server 1 is not stored in the storage unit 23. .

ここで、ウェブアプリサーバ1に記憶されているマスタデータと同じバージョンのマスタデータが記憶部23に記憶されていない場合とは、ブラウザがキャッシュ管理に対応していない場合、取得対象のマスタデータが記憶部23に記憶されていない場合、記憶部23に記憶されているマスタデータが破損している場合、又は、記憶部23に記憶されているマスタデータのバージョンがウェブアプリサーバ1に記憶されている当該マスタデータの最新のバージョンに比べて古い場合のいずれかである。   Here, when the master data of the same version as the master data stored in the web application server 1 is not stored in the storage unit 23, the master data to be acquired is when the browser does not support cache management. If the data is not stored in the storage unit 23, the master data stored in the storage unit 23 is damaged, or the version of the master data stored in the storage unit 23 is stored in the web application server 1. It is either older than the latest version of the relevant master data.

例えば、マスタデータ取得部244は、取得対象のマスタデータの識別情報を含み、マスタデータの取得を要求するマスタ取得リクエストをウェブアプリサーバ1に送信する。ウェブアプリサーバ1は、マスタ取得リクエストを受信すると、当該リクエストに含まれているマスタデータの識別情報を取得し、当該マスタデータを取得するとともに、当該マスタデータのバージョン情報とを取得する。ウェブアプリサーバ1は、取得したマスタデータ及びバージョン情報をクライアント端末2に送信する。マスタデータ取得部244は、ウェブアプリサーバ1から送信されたマスタデータ及びバージョン情報を受信する。   For example, the master data acquisition unit 244 transmits the master acquisition request that includes the identification information of the master data to be acquired and requests acquisition of the master data to the web application server 1. When receiving the master acquisition request, the web application server 1 acquires identification information of the master data included in the request, acquires the master data, and acquires version information of the master data. The web application server 1 transmits the acquired master data and version information to the client terminal 2. The master data acquisition unit 244 receives master data and version information transmitted from the web application server 1.

続いて、記憶制御部245は、取得されたマスタデータとバージョン情報とを関連付けて記憶部23に記憶させる(S690)。   Subsequently, the storage control unit 245 associates the acquired master data with the version information and stores them in the storage unit 23 (S690).

図3に説明を戻す。表示制御部242は、ウェブページに設けられているマスタデータ入力項目が選択されたことに応じて、取得されたマスタデータを当該ウェブページのマスタデータ表示領域に表示する(S70)。   Returning to FIG. The display control unit 242 displays the acquired master data in the master data display area of the web page in response to selection of a master data input item provided on the web page (S70).

ここで、表示制御部242は、判定部243によって取得対象のマスタデータが記憶部23に記憶されていると判定された場合において、記憶部23に記憶されている当該マスタデータのバージョンが、ウェブアプリサーバ1に記憶されているマスタデータのバージョンと同じとき、記憶部23にキャッシュ情報として記憶されているマスタデータをウェブページに表示させる。   Here, when the determination unit 243 determines that the acquisition target master data is stored in the storage unit 23, the display control unit 242 determines that the version of the master data stored in the storage unit 23 is the web When the version of the master data stored in the application server 1 is the same, the master data stored as cache information in the storage unit 23 is displayed on the web page.

また、表示制御部242は、記憶部23に記憶されているマスタデータのバージョンが、ウェブアプリサーバ1に記憶されているマスタデータのバージョンに比べて古いとき、ウェブアプリサーバ1に記憶されているマスタデータをウェブページに表示させる。また、表示制御部242は、記憶部23に記憶されているマスタデータが破損しているとき、ウェブアプリサーバ1に記憶されているマスタデータをウェブページに表示させる。   Further, the display control unit 242 is stored in the web application server 1 when the version of the master data stored in the storage unit 23 is older than the version of the master data stored in the web application server 1. Display master data on a web page. Moreover, the display control part 242 displays the master data memorize | stored in the web application server 1 on a web page, when the master data memorize | stored in the memory | storage part 23 are damaged.

このようにすることで、ユーザは、マスタデータ入力項目にマスタデータを入力する場合に、ウェブページに表示されているマスタデータを確認しながら入力すべきマスタデータを選択することができる。   By doing in this way, the user can select the master data which should be input, confirming the master data currently displayed on the web page, when inputting master data into a master data input item.

続いて、表示制御部242は、ユーザから、ウェブページの表示を終了する表示終了操作を受け付けたか否かを判定する(S80)。表示制御部242は、表示終了操作を受け付けたと判定すると、本フローチャートに係る処理を終了し、表示終了操作を受け付けていないと判定すると、S40に処理を移す。   Subsequently, the display control unit 242 determines whether a display end operation for ending the display of the web page has been received from the user (S80). If the display control unit 242 determines that the display end operation has been received, the display control unit 242 ends the process according to this flowchart. If the display control unit 242 determines that the display end operation has not been received, the process proceeds to S40.

[変形例]
なお、第1実施形態において、判定部243は、表示制御部242がマスタデータをウェブページに表示させる場合、すなわち、マスタデータ入力項目が選択された場合に、当該マスタデータがキャッシュ情報として記憶部23に記憶されているか否かを判定したが、これに限らない。例えば、判定部243は、表示制御部242が第1マスタデータをウェブページに表示させる場合に、第1マスタデータがキャッシュ情報として記憶部23に記憶されているか否かを判定するとともに、当該第1マスタデータの後に表示制御部242によって表示される予定の第2マスタデータがキャッシュ情報として記憶部23に記憶されているか否かを判定してもよい。
[Modification]
In the first embodiment, the determination unit 243 stores the master data as cache information when the display control unit 242 displays the master data on the web page, that is, when a master data input item is selected. Although it is determined whether or not it is stored in the memory 23, the present invention is not limited to this. For example, when the display control unit 242 displays the first master data on the web page, the determination unit 243 determines whether or not the first master data is stored in the storage unit 23 as cache information, and the first It may be determined whether the second master data scheduled to be displayed by the display control unit 242 after one master data is stored in the storage unit 23 as cache information.

例えば、図4に示すウェブページ211では、売上伝票の売上日が入力された後、得意先が入力され、その後、売上に関連する部門が入力される。このため、判定部243は、得意先に対応する入力項目が選択されたことに応じて、判定部243は、得意先に対応するマスタデータ(得意先マスタ)が最新のバージョンであるかを判定するとともに、部門に対応するマスタデータ(部門マスタ)が最新のバージョンであるかを判定してもよい。   For example, in the web page 211 shown in FIG. 4, after the sales date of the sales slip is input, the customer is input, and then the department related to the sales is input. Therefore, the determination unit 243 determines whether the master data (customer master) corresponding to the customer is the latest version in response to selection of the input item corresponding to the customer. In addition, it may be determined whether the master data (department master) corresponding to the department is the latest version.

また、判定部243は、得意先に対応する入力項目が選択されたことに応じて、最新の得意先マスタがキャッシュ情報として記憶部23に記憶されているか否かを判定するとともに、最新の部門マスタがキャッシュ情報として記憶部23に記憶されているか否かを判定してもよい。そして、判定部243は、得意先に対応する入力項目が選択されたタイミングで、最新の部門マスタが記憶部23に記憶されていない場合に、最新の部門マスタをウェブアプリサーバ1から取得して、キャッシュ情報として記憶部23に記憶させてもよい。このようにすることで、部門に対応する入力項目が選択される時点において、最新の部門マスタを記憶部23から取得して高速に表示することができる。   In addition, the determination unit 243 determines whether or not the latest customer master is stored in the storage unit 23 as cache information in response to selection of an input item corresponding to the customer, and the latest department It may be determined whether or not the master is stored in the storage unit 23 as cache information. The determination unit 243 acquires the latest department master from the web application server 1 when the latest department master is not stored in the storage unit 23 at the timing when the input item corresponding to the customer is selected. Alternatively, it may be stored in the storage unit 23 as cache information. In this way, the latest department master can be acquired from the storage unit 23 and displayed at high speed when the input item corresponding to the department is selected.

また、判定部243は、ウェブページが表示されたことに応じて、当該ウェブページにおいて必ず入力されるマスタ入力項目を特定し、当該項目に対応するマスタデータが記憶部23に記憶されているか否かを判定してもよい。   Further, the determination unit 243 specifies a master input item that is surely input in the web page in response to the web page being displayed, and whether or not master data corresponding to the item is stored in the storage unit 23. It may be determined.

[第1実施形態における効果]
以上説明した通り、第1実施形態に係るクライアント端末2は、マスタデータが記憶部23に記憶されていると判定された場合において、マスタデータのバージョンが、ウェブアプリサーバ1に記憶されているマスタデータのバージョンと同じとき、記憶部23にキャッシュ情報として記憶されているマスタデータを表示部21に表示されるウェブページに表示させ、マスタデータのバージョンが、ウェブアプリサーバ1に記憶されているマスタデータのバージョンに比べて古いとき、ウェブアプリサーバ1に記憶されているマスタデータをウェブページに表示させる。
このようにすることで、クライアント端末2は、ウェブページに表示させるマスタデータを最新の状態に保つことができる。
[Effect in the first embodiment]
As described above, when the client terminal 2 according to the first embodiment determines that the master data is stored in the storage unit 23, the version of the master data is stored in the web application server 1. When the data version is the same, the master data stored as cache information in the storage unit 23 is displayed on the web page displayed on the display unit 21, and the master data version is stored in the web application server 1. When it is older than the data version, the master data stored in the web application server 1 is displayed on the web page.
By doing in this way, the client terminal 2 can keep the master data displayed on a web page in the latest state.

<第2実施形態>
[ウェブアプリサーバ1においてキャッシュされているマスタデータが最新であるかを判定する]
続いて、第2実施形態について説明する。第1実施形態では、クライアント端末2がウェブアプリサーバ1から取得対象のマスタデータの最新のバージョン情報を取得し、当該バージョン情報に基づいて、記憶部23に記憶されているマスタデータが古いと判定すると、ウェブアプリサーバ1からマスタデータを取得した。しかしながら、この手順によってマスタデータを取得する場合には、クライアント端末2は、ウェブアプリサーバ1に2回アクセスすることとなり、マスタデータを取得するまでの時間が長くなってしまう。
Second Embodiment
[Determining whether the master data cached in the web application server 1 is the latest]
Next, the second embodiment will be described. In the first embodiment, the client terminal 2 acquires the latest version information of the master data to be acquired from the web application server 1 and determines that the master data stored in the storage unit 23 is old based on the version information. Then, master data was acquired from the web application server 1. However, when acquiring master data by this procedure, the client terminal 2 accesses the web application server 1 twice, and the time until acquiring the master data becomes long.

そこで、第2実施形態では、ウェブアプリサーバ1が、キャッシュされているマスタデータが最新であるかを判定する。そして、クライアント端末2の表示制御部242は、マスタデータが記憶部23に記憶されていると判定部243が判定した場合に、ウェブアプリサーバ1において、クライアント端末2から送信された、記憶部23に記憶されているマスタデータに関連付けられているバージョン情報が示すバージョンが、ウェブアプリサーバ1に記憶されている最新のマスタデータに対応するバージョン情報が示すバージョンに比べて古いと判定された場合に、ウェブページに、ウェブアプリサーバ1に記憶されているマスタデータを表示させる。以下、第2実施形態について図面を参照して説明する。なお、第1実施形態と同様の構成については同一の符号を付し、詳細な説明を省略する。   Therefore, in the second embodiment, the web application server 1 determines whether the cached master data is the latest. The display control unit 242 of the client terminal 2 stores the storage unit 23 transmitted from the client terminal 2 in the web application server 1 when the determination unit 243 determines that the master data is stored in the storage unit 23. When the version indicated by the version information associated with the master data stored in is determined to be older than the version indicated by the version information corresponding to the latest master data stored in the web application server 1 The master data stored in the web application server 1 is displayed on the web page. The second embodiment will be described below with reference to the drawings. In addition, about the structure similar to 1st Embodiment, the same code | symbol is attached | subjected and detailed description is abbreviate | omitted.

図6は、第2実施形態に係るマスタデータ取得処理における処理の流れを示すフローチャートである。
S610からS640までの処理は、第1実施形態に係るマスタデータ取得処理におけるS610からS640までの処理と同じ処理であるので説明を省略する。
FIG. 6 is a flowchart showing a process flow in the master data acquisition process according to the second embodiment.
Since the processing from S610 to S640 is the same as the processing from S610 to S640 in the master data acquisition processing according to the first embodiment, the description thereof is omitted.

マスタデータ取得部244は、バージョン確認情報をウェブアプリサーバ1に送信する(S651)。バージョン確認情報は、記憶部23に記憶されている取得対象のマスタデータが最新であるかの確認をウェブアプリサーバ1に要求するための情報である。バージョン確認情報には、取得対象のマスタデータの識別情報と、S640において取得された、当該マスタデータのバージョン情報とが含まれている。   The master data acquisition unit 244 transmits the version confirmation information to the web application server 1 (S651). The version confirmation information is information for requesting the web application server 1 to confirm whether the master data to be acquired stored in the storage unit 23 is the latest. The version confirmation information includes the identification information of the master data to be acquired and the version information of the master data acquired in S640.

ウェブアプリサーバ1の制御部は、バージョン確認情報を受信すると、記憶部23に記憶されている取得対象のマスタデータが最新であるかを確認する。そして、ウェブアプリサーバ1の制御部は、記憶部23に記憶されている取得対象のマスタデータが最新ではない場合に、最新のマスタデータと、当該マスタデータのバージョン情報とをクライアント端末2に送信する。   When receiving the version confirmation information, the control unit of the web application server 1 confirms whether the master data to be acquired stored in the storage unit 23 is the latest. Then, when the acquisition target master data stored in the storage unit 23 is not the latest, the control unit of the web application server 1 transmits the latest master data and the version information of the master data to the client terminal 2. To do.

図7は、第2実施形態に係るバージョン確認情報を受信したときのウェブアプリサーバ1における処理の流れを示すフローチャートである。
まず、ウェブアプリサーバ1の制御部は、バージョン確認情報に含まれるマスタデータの識別情報と、当該マスタデータのバージョン情報とを取得する(S110)。
続いて、ウェブアプリサーバ1の制御部は、S110において取得されたマスタデータの識別情報に対応する最新のマスタデータのバージョンを示すバージョン情報を取得する(S120)。
FIG. 7 is a flowchart showing a flow of processing in the web application server 1 when the version confirmation information according to the second embodiment is received.
First, the control unit of the web application server 1 acquires master data identification information and version information of the master data included in the version confirmation information (S110).
Subsequently, the control unit of the web application server 1 acquires version information indicating the latest master data version corresponding to the master data identification information acquired in S110 (S120).

続いて、ウェブアプリサーバ1の制御部は、S110において取得されたバージョン情報が示すバージョンと、S120において取得されたバージョン情報が示すバージョンとが異なるか否かを判定する(S130)。ウェブアプリサーバ1の制御部は、バージョンが異なると判定すると、S140に処理を移し、バージョンが同じであると判定すると、S150に処理を移す。   Subsequently, the control unit of the web application server 1 determines whether or not the version indicated by the version information acquired in S110 is different from the version indicated by the version information acquired in S120 (S130). If the control unit of the web application server 1 determines that the versions are different, it moves the process to S140, and if it determines that the versions are the same, it moves the process to S150.

S140において、ウェブアプリサーバ1の制御部は、最新のマスタデータと、当該マスタデータのバージョン情報とを含む応答情報をクライアント端末2に送信する。これにより、ウェブアプリサーバ1は、記憶部23に記憶されている取得対象のマスタデータが古い場合に、最新のマスタデータと、当該マスタデータのバージョン情報とをクライアント端末2に送信する。   In S <b> 140, the control unit of the web application server 1 transmits response information including the latest master data and version information of the master data to the client terminal 2. Thereby, the web application server 1 transmits the latest master data and the version information of the master data to the client terminal 2 when the acquisition target master data stored in the storage unit 23 is old.

S150において、ウェブアプリサーバ1の制御部は、記憶部23においてキャッシュデータとして記憶されているマスタデータの更新がない旨を示す情報を含む応答情報をクライアント端末2に送信する。   In S150, the control unit of the web application server 1 transmits response information including information indicating that the master data stored as cache data in the storage unit 23 is not updated to the client terminal 2.

図6に説明を戻す。クライアント端末2のマスタデータ取得部244は、ウェブアプリサーバ1から応答情報を受信する(S652)。
続いて、マスタデータ取得部244は、ウェブアプリサーバ1からマスタデータを受信したか否かを判定する(S661)。具体的には、マスタデータ取得部244は、S652において受信した応答情報にマスタデータが含まれているか否かを判定することにより、ウェブアプリサーバ1からマスタデータを受信したか否かを判定する。マスタデータ取得部244は、ウェブアプリサーバ1からマスタデータを受信したと判定するとS690に処理を移し、ウェブアプリサーバ1からマスタデータを受信していないと判定すると、S670に処理を移す。
Returning to FIG. The master data acquisition unit 244 of the client terminal 2 receives the response information from the web application server 1 (S652).
Subsequently, the master data acquisition unit 244 determines whether or not master data is received from the web application server 1 (S661). Specifically, the master data acquisition unit 244 determines whether or not the master data is received from the web application server 1 by determining whether or not the master information is included in the response information received in S652. . If the master data acquisition unit 244 determines that the master data has been received from the web application server 1, the process proceeds to S690. If the master data acquisition unit 244 determines that the master data has not been received from the web application server 1, the process proceeds to S670.

S670からS690までの処理は、第1実施形態に係るマスタデータ取得処理におけるS670からS690までの処理と同じ処理であるので説明を省略する。   The processes from S670 to S690 are the same as the processes from S670 to S690 in the master data acquisition process according to the first embodiment, and thus description thereof is omitted.

[変形例]
なお、マスタデータ取得部244は、表示制御部242がマスタデータをウェブページに表示させる場合に、当該マスタデータのバージョン情報を含むバージョン確認情報をウェブアプリサーバ1に送信したが、これに限らない。例えば、マスタデータ取得部244は、複数のマスタデータがキャッシュ情報として記憶部23に記憶されている場合に、複数のマスタデータのそれぞれに関連付けられているバージョン情報を含むバージョン確認情報をウェブアプリサーバ1に送信し、ウェブアプリサーバ1から複数のマスタデータの少なくともいずれかを取得してもよい。
[Modification]
In addition, when the display control unit 242 displays the master data on the web page, the master data acquisition unit 244 transmits the version confirmation information including the version information of the master data to the web application server 1, but is not limited thereto. . For example, when a plurality of master data is stored in the storage unit 23 as cache information, the master data acquisition unit 244 displays version confirmation information including version information associated with each of the plurality of master data. 1, and at least one of a plurality of master data may be acquired from the web application server 1.

例えば、図4に示すウェブページ211が表示部21に表示されている場合において、判定部243が、得意先に対応する入力項目が選択されたことに応じて、最新の得意先マスタがキャッシュ情報として記憶部23に記憶されているか否かを判定するとともに、最新の部門マスタがキャッシュ情報として記憶部23に記憶されているか否かを判定する。記憶部23に記憶されている得意先マスタと、部門マスタとがいずれも最新ではないと判定された場合に、マスタデータ取得部244が、得意先マスタに対応するバージョン情報と、部門マスタに対応するバージョン情報とを含むバージョン確認情報をウェブアプリサーバ1に送信してもよい。このようにすることで、クライアント端末2は、ウェブアプリサーバ1から短時間で複数のマスタデータを取得することができる。   For example, when the web page 211 shown in FIG. 4 is displayed on the display unit 21, the determination unit 243 determines that the latest customer master is the cache information in response to selection of an input item corresponding to the customer. Is stored in the storage unit 23, and it is determined whether the latest department master is stored in the storage unit 23 as cache information. When it is determined that neither the customer master stored in the storage unit 23 nor the department master is the latest, the master data acquisition unit 244 corresponds to the version information corresponding to the customer master and the department master. Version confirmation information including version information to be transmitted may be transmitted to the web application server 1. By doing in this way, the client terminal 2 can acquire a plurality of master data from the web application server 1 in a short time.

[第2実施形態における効果]
以上説明した通り、第2実施形態に係るクライアント端末2は、マスタデータが記憶部23に記憶されている場合には、ウェブアプリサーバ1において、クライアント端末2から送信された、記憶部23に記憶されているマスタデータに関連付けられているバージョン情報が示すバージョンが、ウェブアプリサーバ1に記憶されている最新のマスタデータに対応するバージョン情報が示すバージョンに比べて古いと判定された場合に、ウェブページに、ウェブアプリサーバ1に記憶されているマスタデータを表示させる。
このようにすることで、クライアント端末2は、第1実施形態と同様にウェブページに表示させるマスタデータを最新の状態に保つことができる。
[Effects of Second Embodiment]
As described above, when the master data is stored in the storage unit 23, the client terminal 2 according to the second embodiment stores the data in the storage unit 23 transmitted from the client terminal 2 in the web application server 1. If it is determined that the version indicated by the version information associated with the master data stored is older than the version indicated by the version information corresponding to the latest master data stored in the web application server 1, The master data stored in the web application server 1 is displayed on the page.
By doing in this way, the client terminal 2 can keep the master data displayed on the web page in the latest state as in the first embodiment.

また、ウェブアプリサーバ1は、クライアント端末2から受信したバージョン確認情報に含まれるマスタデータの識別情報とバージョン情報とに基づいて、取得対象のマスタデータが古いと判定すると、最新のマスタデータをクライアント端末2に送信する。このようにすることで、クライアント端末2は、バージョン確認情報をウェブアプリサーバ1に送信するのみで、記憶部23に記憶されているマスタデータのバージョンが古い場合に、ウェブアプリサーバ1から最新のバージョンのマスタデータを取得することができる。よって、クライアント端末2は、ウェブアプリサーバ1から短時間でマスタデータを取得することができる。   When the web application server 1 determines that the master data to be acquired is old based on the master data identification information and the version information included in the version confirmation information received from the client terminal 2, the web application server 1 sets the latest master data to the client Transmit to terminal 2. By doing in this way, the client terminal 2 only transmits the version confirmation information to the web application server 1, and when the version of the master data stored in the storage unit 23 is old, the latest information is sent from the web application server 1. Version master data can be acquired. Therefore, the client terminal 2 can acquire master data from the web application server 1 in a short time.

以上、本発明を実施の形態を用いて説明したが、本発明の技術的範囲は上記実施の形態に記載の範囲には限定されない。上記実施の形態に、多様な変更又は改良を加えることが可能であることが当業者に明らかである。そのような変更又は改良を加えた形態も本発明の技術的範囲に含まれ得ることが、特許請求の範囲の記載から明らかである。   As mentioned above, although this invention was demonstrated using embodiment, the technical scope of this invention is not limited to the range as described in the said embodiment. It will be apparent to those skilled in the art that various modifications or improvements can be added to the above embodiment. It is apparent from the scope of the claims that the embodiments added with such changes or improvements can be included in the technical scope of the present invention.

1・・・ウェブアプリサーバ、2・・・クライアント端末、21・・・表示部、22・・・入力部、23・・・記憶部、24・・・制御部、241・・・ページ取得部、242・・・表示制御部、243・・・判定部、244・・・マスタデータ取得部、245・・・記憶制御部、S・・・表示制御システム DESCRIPTION OF SYMBOLS 1 ... Web application server, 2 ... Client terminal, 21 ... Display part, 22 ... Input part, 23 ... Memory | storage part, 24 ... Control part, 241 ... Page acquisition part 242 ... Display control unit, 243 ... Determination unit, 244 ... Master data acquisition unit, 245 ... Storage control unit, S ... Display control system

Claims (11)

コンピュータを、
前記コンピュータの記憶部に、マスタデータがキャッシュ情報として記憶されているか否かを判定する判定部、及び
前記マスタデータが前記記憶部に記憶されていると判定された場合において、前記マスタデータのバージョンが、前記コンピュータが接続可能なサーバに記憶されている前記マスタデータのバージョンと同じとき、前記記憶部に前記キャッシュ情報として記憶されているマスタデータを前記コンピュータの表示部に表示されるページに表示させ、前記マスタデータのバージョンが、前記サーバに記憶されている前記マスタデータのバージョンに比べて古いとき、前記サーバに記憶されている前記マスタデータを前記ページに表示させる表示制御部、
として機能させるキャッシュ管理プログラム。
Computer
A determination unit that determines whether or not master data is stored as cache information in the storage unit of the computer; and a version of the master data when it is determined that the master data is stored in the storage unit When the version of the master data stored in the server to which the computer can be connected is the same, the master data stored as the cache information in the storage unit is displayed on the page displayed on the display unit of the computer. A display control unit that displays the master data stored in the server on the page when the version of the master data is older than the version of the master data stored in the server;
Cache management program that functions as
前記コンピュータを、
前記記憶部に、前記サーバに記憶されているマスタデータと同じバージョンのマスタデータが記憶されていない場合に、前記サーバに記憶されている前記マスタデータを取得する取得部、及び、
取得された前記マスタデータを前記記憶部に記憶させる記憶制御部として機能させ、
前記表示制御部は、前記記憶制御部によって前記記憶部に記憶された前記マスタデータを前記ページに表示させる、
請求項1に記載のキャッシュ管理プログラム。
The computer,
When the master data of the same version as the master data stored in the server is not stored in the storage unit, the acquisition unit that acquires the master data stored in the server, and
Function as a storage control unit for storing the acquired master data in the storage unit,
The display control unit displays the master data stored in the storage unit by the storage control unit on the page;
The cache management program according to claim 1.
前記コンピュータを、
前記サーバに記憶されている前記マスタデータと、前記マスタデータのバージョンを示すバージョン情報とを取得する取得部、
取得された前記マスタデータと、前記バージョン情報とを関連付けて前記記憶部に記憶させる記憶制御部として機能させ、
前記表示制御部は、前記マスタデータが前記記憶部に記憶されていると前記判定部が判定した場合において、前記記憶部に記憶されている前記マスタデータに関連付けられている前記バージョン情報が示すバージョンが、前記サーバに記憶されている前記マスタデータに対応する前記バージョン情報が示すバージョンに比べて古い場合に、前記ページに、前記サーバに記憶されている前記マスタデータを表示させる、
請求項1又は2に記載のキャッシュ管理プログラム。
The computer,
An acquisition unit for acquiring the master data stored in the server and version information indicating a version of the master data;
The acquired master data and the version information are associated with each other and function as a storage control unit for storing in the storage unit,
The display control unit, when the determination unit determines that the master data is stored in the storage unit, a version indicated by the version information associated with the master data stored in the storage unit However, if the version is older than the version indicated by the version information corresponding to the master data stored in the server, the master data stored in the server is displayed on the page.
The cache management program according to claim 1 or 2.
前記コンピュータを、
前記サーバに記憶されている前記マスタデータと、前記マスタデータのバージョンを示すバージョン情報とを取得する取得部、
取得された前記マスタデータと、前記バージョン情報とを関連付けて前記記憶部に記憶させる記憶制御部として機能させ、
前記表示制御部は、前記マスタデータが前記記憶部に記憶されていると前記判定部が判定した場合に、前記サーバにおいて、前記コンピュータから送信された、前記記憶部に記憶されている前記マスタデータに関連付けられているバージョン情報が示すバージョンが、前記サーバに記憶されている前記マスタデータに対応する前記バージョン情報が示すバージョンに比べて古いと判定された場合に、前記ページに、前記サーバに記憶されている前記マスタデータを表示させる、
請求項1又は2に記載のキャッシュ管理プログラム。
The computer,
An acquisition unit for acquiring the master data stored in the server and version information indicating a version of the master data;
The acquired master data and the version information are associated with each other and function as a storage control unit for storing in the storage unit,
The display control unit, when the determination unit determines that the master data is stored in the storage unit, the master data transmitted from the computer and stored in the storage unit in the server If it is determined that the version indicated by the version information associated with is older than the version indicated by the version information corresponding to the master data stored in the server, the version is stored in the page. The master data being displayed is displayed,
The cache management program according to claim 1 or 2.
前記判定部は、複数の前記マスタデータが前記キャッシュ情報として前記記憶部に記憶されているか否かを判定し、
前記取得部は、複数の前記マスタデータが前記キャッシュ情報として前記記憶部に記憶されている場合に、複数の前記マスタデータのそれぞれに関連付けられている前記バージョン情報を前記サーバに一度に送信し、前記サーバから複数の前記マスタデータの少なくともいずれかを取得する、
請求項4に記載のキャッシュ管理プログラム。
The determination unit determines whether or not a plurality of the master data is stored in the storage unit as the cache information,
The acquisition unit, when a plurality of the master data is stored in the storage unit as the cache information, transmits the version information associated with each of the plurality of master data to the server at a time, Obtaining at least one of the plurality of master data from the server;
The cache management program according to claim 4.
前記表示制御部は、前記マスタデータが前記記憶部に記憶されていないと判定された場合に、前記サーバに記憶されている前記マスタデータを前記ページに表示させる、
請求項1から5のいずれか1項に記載のキャッシュ管理プログラム。
The display control unit displays the master data stored in the server on the page when it is determined that the master data is not stored in the storage unit.
The cache management program according to any one of claims 1 to 5.
前記表示制御部は、前記マスタデータが前記記憶部に記憶されていると判定された場合において、当該マスタデータが破損しているとき、前記ページに、前記サーバに記憶されている前記マスタデータを表示させる、
請求項1から6のいずれか1項に記載のキャッシュ管理プログラム。
When it is determined that the master data is stored in the storage unit and the master data is damaged, the display control unit displays the master data stored in the server on the page. Display,
The cache management program according to any one of claims 1 to 6.
前記表示制御部は、前記ページに設けられている第1入力項目が選択されたことに応じて、前記マスタデータを前記ページに表示させ、
前記判定部は、前記表示制御部が前記マスタデータを前記ページに表示させる場合に、当該マスタデータが前記キャッシュ情報として前記記憶部に記憶されているか否かを判定する、
請求項1から7のいずれか1項に記載のキャッシュ管理プログラム。
The display control unit displays the master data on the page in response to selection of a first input item provided on the page,
The determination unit determines whether the master data is stored in the storage unit as the cache information when the display control unit displays the master data on the page.
The cache management program according to any one of claims 1 to 7.
前記判定部は、前記表示制御部が第1マスタデータを前記ページに表示させる場合に、第1マスタデータが前記キャッシュ情報として前記記憶部に記憶されているか否かを判定するとともに、当該第1マスタデータの後に前記表示制御部によって表示される予定の第2マスタデータが前記キャッシュ情報として前記記憶部に記憶されているか否かを判定する、
請求項8に記載のキャッシュ管理プログラム。
The determination unit determines whether or not the first master data is stored in the storage unit as the cache information when the display control unit displays the first master data on the page. Determining whether or not second master data scheduled to be displayed by the display control unit after the master data is stored in the storage unit as the cache information;
The cache management program according to claim 8.
キャッシュを管理するキャッシュ管理装置であって、
記憶部に、マスタデータがキャッシュ情報として記憶されているか否かを判定する判定部と、
前記マスタデータが前記記憶部に記憶されていると判定された場合において、前記マスタデータのバージョンが、前記キャッシュ管理装置が接続可能なサーバに記憶されている前記マスタデータのバージョンと同じとき、前記キャッシュ管理装置の表示部に表示されるページに前記記憶部に前記キャッシュ情報として記憶されているマスタデータを表示させ、前記マスタデータのバージョンが、前記サーバに記憶されている前記マスタデータのバージョンに比べて古いとき、前記ページに、前記サーバに記憶されている前記マスタデータを表示させる表示制御部と、
を備えるキャッシュ管理装置。
A cache management device for managing a cache,
A determination unit for determining whether master data is stored as cache information in the storage unit;
When it is determined that the master data is stored in the storage unit, when the version of the master data is the same as the version of the master data stored in a server to which the cache management device can be connected, The master data stored as the cache information in the storage unit is displayed on the page displayed on the display unit of the cache management device, and the version of the master data is changed to the version of the master data stored in the server. A display control unit for displaying the master data stored in the server on the page,
A cache management device.
コンピュータが実行する、
記憶部に、マスタデータがキャッシュ情報として記憶されているか否かを判定するステップと、
前記マスタデータが前記記憶部に記憶されていると判定された場合において、前記マスタデータのバージョンが、前記コンピュータが接続可能なサーバに記憶されている前記マスタデータのバージョンと同じとき、前記コンピュータの表示部に表示されるページに前記記憶部に前記キャッシュ情報として記憶されているマスタデータを表示させ、前記マスタデータのバージョンが、前記サーバに記憶されている前記マスタデータのバージョンに比べて古いとき、前記ページに、前記サーバに記憶されている前記マスタデータを表示させるステップと、
を備えるキャッシュ管理方法。
The computer runs,
Determining whether or not master data is stored as cache information in the storage unit;
When it is determined that the master data is stored in the storage unit, the version of the master data is the same as the version of the master data stored in a server to which the computer can be connected. When the master data stored as the cache information in the storage unit is displayed on the page displayed on the display unit, and the version of the master data is older than the version of the master data stored in the server Displaying the master data stored in the server on the page;
A cache management method comprising:
JP2016246212A 2016-12-20 2016-12-20 Cache management program, cache management apparatus, cache management method Pending JP2018101240A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2016246212A JP2018101240A (en) 2016-12-20 2016-12-20 Cache management program, cache management apparatus, cache management method
PCT/JP2017/045567 WO2018117108A1 (en) 2016-12-20 2017-12-19 Cache management program, cache management device, and cache management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016246212A JP2018101240A (en) 2016-12-20 2016-12-20 Cache management program, cache management apparatus, cache management method

Publications (1)

Publication Number Publication Date
JP2018101240A true JP2018101240A (en) 2018-06-28

Family

ID=62627384

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016246212A Pending JP2018101240A (en) 2016-12-20 2016-12-20 Cache management program, cache management apparatus, cache management method

Country Status (2)

Country Link
JP (1) JP2018101240A (en)
WO (1) WO2018117108A1 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003067721A (en) * 2001-08-24 2003-03-07 Pioneer Electronic Corp Map image display system and method
JP2013030097A (en) * 2011-07-29 2013-02-07 Fujitsu Frontech Ltd Information processing system and client device
US9110751B2 (en) * 2012-02-13 2015-08-18 Microsoft Technology Licensing, Llc Generating and caching software code
JP6327959B2 (en) * 2014-06-04 2018-05-23 キヤノン株式会社 Information processing terminal, cache control method, and web system

Also Published As

Publication number Publication date
WO2018117108A1 (en) 2018-06-28

Similar Documents

Publication Publication Date Title
US20080195936A1 (en) Presenting content to a browser
CN110083781B (en) System and method for mapping page states
US20160299890A1 (en) Information processing system, control method for information processing system, information processing device, control method for information processing device, information storage medium, and program
KR20110036325A (en) Image forming apparatus and method for providing ui contents thereof, and ui contents receiving method of host apparatus
JP6163742B2 (en) Product information providing apparatus and product information providing method
JP6372868B2 (en) Reward distribution method, reward distribution system and terminal
US9485387B2 (en) Icon arrangement drawing creation system
JP2008204189A (en) Updated information responding device and web server
US10243942B2 (en) Displaying the accessibility of hyperlinked files
US20160092958A1 (en) Machine to generate a self-updating message
WO2018117108A1 (en) Cache management program, cache management device, and cache management method
JP2013011999A (en) Topic change detection device and method
US20160275200A1 (en) Information processing apparatus, information processing method, and information processing program
US10956392B1 (en) Methods, apparatuses, and computer program products for identifying fields in a data tree
JP5585816B2 (en) Portal site generation system, portal site generation method, and computer program
JP2013045413A (en) Input candidate display method and program
JP2018077598A (en) Electronic device, program and information processing system
JP5499138B1 (en) CONTENT DISPLAY METHOD, SERVER DEVICE, PROGRAM, AND STORAGE MEDIUM
JP5373590B2 (en) System and method for managing toolbar applications
US9992254B2 (en) Method and system of providing a web feed in a uniform resource identifier
US20120323966A1 (en) Storage device, server device, storage system, database device, provision method of data, and program
JP2012053565A (en) Information processor, information processing system and program
JP6276526B2 (en) Transmission / reception device, transmission / reception system, transmission / reception method, and program
US20220417373A1 (en) Storage medium and information processing apparatus
US9032049B2 (en) Communication methods and systems between a storage apparatus, a user terminal and a device connected to the storage apparatus