JP6126364B2 - Processing time acquisition system, processing time acquisition terminal device, processing time management server device, processing time acquisition method, and processing time acquisition program - Google Patents

Processing time acquisition system, processing time acquisition terminal device, processing time management server device, processing time acquisition method, and processing time acquisition program Download PDF

Info

Publication number
JP6126364B2
JP6126364B2 JP2012259906A JP2012259906A JP6126364B2 JP 6126364 B2 JP6126364 B2 JP 6126364B2 JP 2012259906 A JP2012259906 A JP 2012259906A JP 2012259906 A JP2012259906 A JP 2012259906A JP 6126364 B2 JP6126364 B2 JP 6126364B2
Authority
JP
Japan
Prior art keywords
time
elapsed time
processing
server
offline
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2012259906A
Other languages
Japanese (ja)
Other versions
JP2014106781A (en
Inventor
隆行 江嶋
隆行 江嶋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Amano Corp
Original Assignee
Amano Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Amano Corp filed Critical Amano Corp
Priority to JP2012259906A priority Critical patent/JP6126364B2/en
Publication of JP2014106781A publication Critical patent/JP2014106781A/en
Application granted granted Critical
Publication of JP6126364B2 publication Critical patent/JP6126364B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、打刻等の処理が行われた際の時刻を端末装置で取得してサーバ装置で記録及び管理する処理時刻取得システム、並びに処理時刻取得端末装置、処理時刻管理サーバ装置、処理時刻取得方法及び処理時刻取得プログラムに関する。   The present invention relates to a processing time acquisition system that acquires a time when processing such as embossing is performed by a terminal device and records and manages it by a server device, a processing time acquisition terminal device, a processing time management server device, a processing time The present invention relates to an acquisition method and a processing time acquisition program.

従来、所定の処理が行われた際の時刻(処理時刻)の記録及び管理が求められ、例えば、会社において従業員の就業管理を行う場合、各従業員の出勤時刻、退勤時刻、外出時刻、外出先から会社へ戻った時刻(戻り時刻)等を記録する必要がある。このため、多くの会社は、出勤時刻、退勤時刻、外出時刻、戻り時刻等の記録、即ち打刻を各従業員に行わせる。打刻には、例えば特許文献1に記載されているようなタイムレコーダ及びタイムカードが用いられ、これらは現在も広く用いられている。また、近年は、特許文献2に記載されているようなICカードリーダ及びICカードを利用した就業管理装置が打刻を行う手段として普及している。   Conventionally, recording and management of time (processing time) when predetermined processing is performed is required. For example, when managing work of employees in a company, each employee's work time, work time, going out time, It is necessary to record the time (return time) when returning from the office to the company. For this reason, many companies cause each employee to record, for example, time stamps, work time, work time, going out time, return time, and the like. For the time stamping, for example, a time recorder and a time card as described in Patent Document 1 are used, and these are still widely used today. In recent years, an IC card reader and an employment management apparatus using an IC card as described in Patent Document 2 have become widespread as means for engraving.

更に現在では、互いに通信回線を介して接続された端末装置及びサーバ装置を利用して打刻等の処理時刻の記録を行うシステムが開発されている。このシステムでは、端末装置に対して打刻入力を行い、端末装置からサーバ装置へ打刻に関する情報を送信し、当該打刻入力が行われた時刻を打刻時刻としてサーバ装置に設けられた記憶装置に記憶する。特許文献3にはこのようなシステムの一例が記載されている。   Furthermore, a system for recording processing times such as time stamping using a terminal device and a server device connected to each other via a communication line has been developed. In this system, a time stamp is input to the terminal device, information about time stamping is transmitted from the terminal device to the server device, and a time provided at the time of the time stamp input is stored in the server device. Store in the device. Patent Document 3 describes an example of such a system.

特開平6−333114号公報JP-A-6-333114 特開2010−267045号公報JP 2010-267045 A 特開2001−160161号公報JP 2001-160161 A

ところで、互いに通信回線を介して接続された端末装置及びサーバ装置を利用して打刻等の処理時刻の記録を行うシステムによれば、打刻入力を受け付ける機能を端末装置に持たせ、打刻入力が行われた時刻を打刻時刻として記憶する機能をサーバ装置に持たせることができる。従って、例えば会社が複数の事業所を有する場合に、各事業所に端末装置のみを設置し、いずれか1つの事業所にサーバ装置を設置することで、各事業所に勤務する各従業員についての打刻時刻の記録を1カ所に集約し、各事業所に勤務する全ての従業員の就業管理を一括して行うことができる。これにより、複数の事業所に分散して勤務する多数の従業員の就業管理を容易に実現することができると共に、多数の従業員のそれぞれに対する就業管理の方法を共通化することができ、各従業員についての就業管理を公平に実施することができる。   By the way, according to a system for recording processing time such as time stamping using a terminal device and a server device connected to each other via a communication line, the terminal device is provided with a function of accepting time stamping input. The server device can be provided with a function of storing the time when the input is performed as the time of stamping. Therefore, for example, when a company has a plurality of offices, by installing only terminal devices at each office and installing a server device at any one office, each employee working at each office It is possible to consolidate all the time stamps in one place, and to manage all employees working at each office collectively. As a result, it is possible to easily realize work management for a large number of employees who work in a distributed manner at multiple offices, and to standardize work management methods for each of a large number of employees. Employment management for employees can be implemented fairly.

また、端末装置及びサーバ装置を利用して打刻を行うシステムによれば、打刻時刻を用いた従業員の就業管理を、ASP(アプリケーションサービスプロバイダ)の行うアプリケーションサービスや、クラウドコンピューティングを利用したアウトソーシングサービスといった形態で容易に実施することができる。   Moreover, according to the system that performs time stamping using the terminal device and the server device, the employment management of employees using the time stamping is performed using application services provided by an ASP (Application Service Provider) or cloud computing. The outsourcing service can be easily implemented.

ところが、端末装置及びサーバ装置を利用して打刻を行うシステムには次のような問題がある。即ち、このようなシステムでは、端末装置とサーバ装置とが通信可能なオンライン状態のときに端末装置に対して打刻入力が行われた場合には、打刻入力が行われた時点で打刻に関する情報を端末装置からサーバ装置へ直ちに送信し、これにより当該打刻入力が行われた時刻を打刻時刻としてサーバ装置に設けられた記憶装置に記憶することができる。しかしながら、端末装置とサーバ装置とが通信不能なオフライン状態のときに端末装置に対して打刻入力が行われた場合には、打刻入力が行われた時点で打刻に関する情報を端末装置からサーバ装置へ直ちに送信することができず、それゆえ当該打刻入力が行われた時刻を打刻時刻としてサーバ装置の記憶装置に記憶することができないという問題がある。特に、近年多用されるようになったWi−Fi(ワイファイ)等の無線通信接続を利用した端末装置を適用したシステムでは、予期しない通信接続の切断によりオフライン状態になることが多い。   However, a system that performs stamping using a terminal device and a server device has the following problems. That is, in such a system, when a time stamp is input to the terminal device when the terminal device and the server device are online, the time stamp is input. The information regarding this can be immediately transmitted from the terminal device to the server device, whereby the time at which the time stamp is input can be stored as a time stamp in a storage device provided in the server device. However, if a time stamp is input to the terminal device when the terminal device and the server device are in an offline state where communication is not possible, information about the time stamp is input from the terminal device when the time stamp input is performed. There is a problem in that it cannot be transmitted immediately to the server device, and therefore the time at which the time stamp input is performed cannot be stored as the time stamp in the storage device of the server device. In particular, a system to which a terminal device using a wireless communication connection such as Wi-Fi (Wi-Fi), which has been frequently used in recent years, often goes offline due to unexpected disconnection of the communication connection.

この問題は次のような方法で解決することができるとも思える。即ち、オフライン状態のときに端末装置に対して打刻入力が行われた場合には、打刻入力が行われた時点の時刻を端末装置が有する時計から読み取り、暫定的な打刻時刻として端末装置に設けられた記憶装置に一時的に記憶しておく。そして、その後オンライン状態となったときに、端末装置の記憶装置に記憶された暫定的な打刻時刻を端末装置からサーバ装置へ送信し、この打刻時刻を確定的な打刻時刻としてサーバ装置に設けられた記憶装置に記憶する。この方法によれば、オフライン状態のときに行われた打刻入力の時刻を打刻時刻としてサーバ装置の記憶装置に記憶することができる。   It seems that this problem can be solved in the following way. That is, when a time stamp is input to the terminal device in the offline state, the time at which the time stamp input is performed is read from the clock of the terminal device, and the terminal is used as a temporary time stamp. The data is temporarily stored in a storage device provided in the apparatus. And when it becomes an online state after that, the provisional time stamp memorize | stored in the memory | storage device of the terminal device is transmitted to a server device from a terminal device, and this time stamp time is used as a definite time stamp. Is stored in a storage device. According to this method, the time of the time stamp input performed in the offline state can be stored as the time stamp in the storage device of the server device.

しかしながら、この方法には、端末装置の有する時計が示す時刻とサーバ装置の有する時計が示す時刻とが異なる場合に、正確な打刻時刻をサーバ装置の記憶装置に記憶することができないという問題がある。例えば、サーバ装置は厳格に管理されているため、サーバ装置が有する時計は標準時に常に正確に合わせられているのに対し、端末装置の管理は各事業所において比較的緩やかに行われており、端末装置が有する時計が標準時よりも進んでいたり、遅れていたりすることは容易に想定することができる。この場合、オンライン状態のときに打刻入力が行われた場合にはサーバ装置の時計が示す時刻に基づいて打刻時刻が決定され、オフライン状態のときに打刻入力が行われた場合には端末装置の時計が示す時刻に基づいて打刻時刻が決定されるとすれば、オフライン状態のときに打刻入力が行われた場合に打刻時刻が不正確になるだけでなく、打刻入力が行われたときがオンライン状態であったかオフライン状態であったかで打刻時刻が異なってしまうため、就業管理の運用の公平性又は信頼性を確保することが困難になるという問題がある。また、複数の事業所に設置された端末装置毎に時計の示す時刻が異なる場合には、オフライン時における打刻入力により決定された打刻時刻が事業所毎に異なってしまうため、この場合にも、就業管理の運用の公平性又は信頼性を確保することが難しくなる。   However, this method has a problem in that when the time indicated by the clock of the terminal device is different from the time indicated by the clock of the server device, the accurate time stamp cannot be stored in the storage device of the server device. is there. For example, since the server device is strictly managed, the clock of the server device is always accurately adjusted to the standard time, whereas the management of the terminal device is relatively loosely performed at each office. It can be easily assumed that the clock of the terminal device is advanced or delayed from the standard time. In this case, if the time stamp input is performed in the online state, the time stamp is determined based on the time indicated by the clock of the server device. If the time stamp input is performed in the offline state, If the time stamp is determined based on the time indicated by the clock of the terminal device, the time stamp will not only be incorrect when the time stamp input is performed in the offline state. There is a problem that it is difficult to ensure fairness or reliability of the operation management because the time of stamping differs depending on whether it is online or offline. In addition, if the time indicated by the clock is different for each terminal device installed in a plurality of offices, the time stamp determined by the time stamp input at the time of offline will differ for each office. However, it becomes difficult to ensure fairness or reliability of employment management operations.

例えば、オフライン時における打刻入力では、端末装置の有する時計が示す時刻に基づいて打刻時刻を取得すると、この時計に依存した打刻結果が得られることになるため、端末装置に搭載されるOS(オペレーティングシステム)や各種アプリケーションを使用してこの時計の時刻設定を変更することにより、打刻時刻が意図的に不正変更されてしまう。   For example, in the time stamp input at the time of offline, when the time stamp is acquired based on the time indicated by the clock of the terminal device, the time stamp result depending on the clock is obtained. By changing the time setting of this clock using an OS (operating system) and various applications, the time stamping is intentionally changed illegally.

また、上述したように打刻時刻を端末装置の記憶装置に一時的に記憶しておく方法では、打刻時刻の改ざんにより打刻時刻の正確性又は信頼性が損なわれるおそれがあるという問題がある。即ち、オフライン状態のときに打刻入力が行われた場合には、端末装置の記憶装置に打刻時刻が一時的に記憶される。このため、端末装置の管理が緩やかな場合には、打刻入力が行われてから当該打刻入力に対応する打刻時刻がサーバ装置に送信されるまでの間に、端末装置の記憶装置に記憶された打刻時刻が書き換えられてしまう危険がある。また、これを防止するために各事業所に端末装置の厳格な管理を義務付けるとすれば、各事業所の負担が大きくなってしまう。   In addition, as described above, in the method of temporarily storing the time stamp in the storage device of the terminal device, there is a problem that the accuracy or reliability of the time stamp may be impaired due to falsification of the time stamp. is there. That is, when a time stamp is input in the offline state, the time stamp is temporarily stored in the storage device of the terminal device. For this reason, when the management of the terminal device is moderate, the storage device of the terminal device is in a period from when the time stamp input is performed until the time stamp corresponding to the time stamp input is transmitted to the server device. There is a risk that the stored time stamp will be rewritten. Further, if each business office is obliged to strictly manage terminal devices in order to prevent this, the burden on each business office will increase.

本発明は例えば上述したような問題に鑑みなされたものであり、本発明の第1の課題は、所定の処理が行われた際の時刻を端末装置で取得してサーバ装置で記録及び管理する際に、オフライン状態であっても、端末装置の時計が示す時刻に依存することなく、不正のない処理時刻を取得してシステム運用上の公平性及び信頼性を向上することができる処理時刻取得システム、並びにこのような処理時刻取得システムを実現することができる処理時刻取得端末装置、処理時刻管理サーバ装置、処理時刻取得方法及び処理時刻取得プログラムを提供することにある。   The present invention has been made in view of the above-described problems, for example, and a first problem of the present invention is that a time when a predetermined process is performed is acquired by a terminal device and recorded and managed by a server device. In this case, even in an offline state, it is possible to acquire a processing time without fraud without depending on the time indicated by the clock of the terminal device, and to improve processing system fairness and reliability. A system, and a processing time acquisition terminal device, a processing time management server device, a processing time acquisition method, and a processing time acquisition program capable of realizing such a processing time acquisition system.

また、本発明の第2の課題は、オフライン状態で取得した処理時刻の不正を検出することができる処理時刻取得システム、並びにこのような処理時刻取得システムを実現することができる処理時刻取得端末装置、処理時刻管理サーバ装置、処理時刻取得方法及び処理時刻取得プログラムを提供することにある。   The second subject of the present invention is a processing time acquisition system capable of detecting fraud in processing time acquired in an offline state, and a processing time acquisition terminal device capable of realizing such a processing time acquisition system. Another object is to provide a processing time management server device, a processing time acquisition method, and a processing time acquisition program.

上記課題を解決するために、本発明の第1の処理時刻取得システムは、所定の処理として打刻入力が行われた際の時刻を取得して記録する処理時刻取得システムであって、通信網を介して互いに接続可能な端末装置及びサーバ装置を備え、前記端末装置は、前記打刻入力を認識する処理認識手段と、前記端末装置と前記サーバ装置との間が通信可能なオンライン状態か通信不能なオフライン状態かを判断する接続状態判断手段と、計測開始の指示を受けて、該指示があったときからの経過時間を計測する経過時間計測手段と、前記接続状態判断手段により前記オフライン状態と判断され、且つ前記処理認識手段により前記打刻入力を認識したときに、前記経過時間計測手段により計測された経過時間を経過時間情報として取得する経過時間制御手段と、前記接続状態判断手段により前記オフライン状態から前記オンライン状態への切り換えを検出したとき、前記経過時間情報に基づき前記打刻入力に係るオフライン処理時刻データを取得して前記サーバ装置に送信するオフライン処理時刻データ送信手段とを備え、前記サーバ装置は、前記端末装置から送信された前記オフライン処理時刻データを受信したとき、該オフライン処理時刻データと前記サーバ装置に設けられたサーバ時計から得られるサーバ時刻とに基づき前記打刻入力に係る確定処理時刻を算出する確定処理時刻取得手段と、経過時間計測開始要求を前記端末装置へと送信すると共に、その送信時に前記サーバ時計が示すサーバ時刻を読み取って開始要求時刻として経過時間計測開始履歴に記録する経過時間計測開始要求手段と、を備え、前記経過時間制御手段は、前記サーバ装置から前記経過時間計測開始要求を受信したとき、前記経過時間計測手段に前記計測開始を指示し、前記オフライン処理時刻データ送信手段は、前記接続状態判断手段により前記オフライン状態から前記オンライン状態への切り換えを検出したとき、前記経過時間情報を処理前経過時間として含む前記オフライン処理時刻データを取得して前記サーバ装置に送信し、前記確定処理時刻取得手段は、前記端末装置から送信された前記オフライン処理時刻データを受信したとき、前記経過時間計測開始要求手段により前記経過時間計測開始履歴に記録した直前の前記開始要求時刻を読み取り、該開始要求時刻に前記オフライン処理時刻データの前記処理前経過時間を足し合わせた時刻を前記確定処理時刻として算出することを特徴とする。
In order to solve the above-mentioned problem, a first processing time acquisition system of the present invention is a processing time acquisition system that acquires and records the time when a time stamp input is performed as a predetermined process. A terminal device and a server device that can be connected to each other via a terminal, and the terminal device communicates between the processing recognition means for recognizing the stamped input and the terminal device and the server device in an online state. A connection state determination unit that determines whether the offline state is impossible; an elapsed time measurement unit that receives an instruction to start measurement and measures an elapsed time from when the instruction is received; and the offline state by the connection state determination unit is determined, and when it recognizes the embossing input by the processing recognizing means, elapsed time system for acquiring elapsed time measured by said elapsed time measuring means as elapsed time information And means, when detecting the switching from the off-line state by the connection state determining unit to the online state, and transmits to the server apparatus acquires the offline processing time data according to the embossing input based on the elapsed time information Offline processing time data transmission means, and when the server device receives the offline processing time data transmitted from the terminal device, the server device is obtained from the offline processing time data and a server clock provided in the server device. A confirmation processing time acquisition means for calculating a confirmation processing time related to the time stamping input based on a server time, and an elapsed time measurement start request to the terminal device, and a server time indicated by the server clock at the time of transmission Elapsed time measurement starts to be read and recorded in the elapsed time measurement start history as the start request time Comprising a determined unit, and the elapsed time control means, when receiving the elapsed time measurement start request from the server apparatus, wherein instructs start of measurement to the elapsed time measuring means, the offline processing time data transmission means When the switching from the offline state to the online state is detected by the connection state determination unit, the offline processing time data including the elapsed time information as an elapsed time before processing is acquired and transmitted to the server device, The confirmation processing time acquisition unit reads the start request time immediately before being recorded in the elapsed time measurement start history by the elapsed time measurement start request unit when the offline processing time data transmitted from the terminal device is received, A time obtained by adding the elapsed time before the processing of the offline processing time data to the start request time. The fixed processing time is calculated .

本発明の第1の処理時刻取得システムによれば、端末装置とサーバ装置とがオフライン状態のときに端末装置で打刻等の処理が行われた場合でも、端末時計が示す時刻に依存することなくサーバ装置に正確な時刻を記録することができ、従って、就業等に関する処理時刻管理の公平性、信頼性を確保することができる。また、本発明の第1の処理時刻取得システムによれば、オフライン状態のときに端末装置で打刻等の処理が行われた場合でも、端末時計が示す時刻に依存することなく、サーバ時計が示す時刻に基づいて正確な確定処理時刻を決定するため、端末時計の時刻設定変更による不正を防止することができる。また、打刻等の処理を受け付けた時点の経過時間を取得するため、その後システムに停止等の不具合が生じても、システムが復帰した場合には既に取得した経過時間を用いて正確な確定処理時刻を算出することができる。更に、経過時間制御手段が、経過時間計測開始要求と共にサーバ時刻である開始要求時刻を受信することとすれば、開始要求時刻と処理前経過時間とに基づいてオフライン処理時の正確な時刻を得ることができるため、これを端末装置で表示して利用者に知らせることもできる。
According to the first processing time acquisition system of the present invention, even when processing such as time stamping is performed in the terminal device when the terminal device and the server device are offline, the time depends on the time indicated by the terminal clock. Therefore, accurate time can be recorded in the server device, and therefore, fairness and reliability of processing time management relating to employment can be ensured. Further, according to the first processing time acquisition system of the present invention, the server clock is not dependent on the time indicated by the terminal clock, even when the time stamping process is performed in the terminal device in the offline state. Since an accurate confirmation processing time is determined based on the indicated time, fraud due to a change in the time setting of the terminal clock can be prevented. In addition, since the elapsed time at the time of accepting processing such as engraving is acquired, even if a malfunction such as a stoppage occurs after that, if the system returns, accurate determination processing using the already acquired elapsed time Time can be calculated. Further, if the elapsed time control means receives the start request time which is the server time together with the elapsed time measurement start request, the accurate time at the time of offline processing is obtained based on the start request time and the elapsed time before processing. Therefore, this can be displayed on the terminal device to notify the user.

上記課題を解決するために、本発明の第の処理時刻取得システムは、上述した本発明の第1の処理時刻取得システムにおいて、前記経過時間制御手段は、前記端末装置が起動してから前記オンライン状態となるまでの第1期間は前記処理認識手段により前記打刻入力を認識したときに前記経過時間計測手段に前記計測開始を指示し、一度でも前記オンライン状態となった後の第2期間は前記サーバ装置から前記経過時間計測開始要求を受信したときに前記経過時間計測手段に前記計測開始を指示し、前記オフライン処理時刻データ送信手段は、前記接続状態判断手段により前記オフライン状態から前記オンライン状態への切り換えを検出したとき、前記第1期間の間に前記経過時間制御手段により所得した前記経過時間情報については、前記経過時間計測手段により計測された経過時間をオフライン終了時経過時間として取得すると共に該オフライン終了時経過時間と前記経過時間情報との時間差を処理後経過時間として算出し、前記第2期間の間に前記経過時間制御手段により所得した前記経過時間情報については、前記経過時間情報を処理前経過時間とし、前記処理後経過時間又は前記処理前経過時間を含む前記オフライン処理時刻データを取得して前記サーバ装置に送信し、前記確定処理時刻取得手段は、前記端末装置から送信された前記オフライン処理時刻データを受信し、前記オフライン処理時刻データが前記処理後経過時間を含む場合には、前記サーバ装置に設けられたサーバ時計が示す現在のサーバ時刻を読み取り、該現在のサーバ時刻から前記処理後経過時間を差し引いた時刻を前記確定処理時刻として算出し、前記オフライン処理時刻データが前記処理前経過時間を含む場合には、前記経過時間計測開始要求手段により前記経過時間計測開始履歴に記録した直前の前記開始要求時刻を読み取り、該開始要求時刻に前記処理前経過時間を足し合わせた時刻を前記確定処理時刻として算出することを特徴とする。
In order to solve the above-described problem, the second processing time acquisition system of the present invention is the above-described first processing time acquisition system of the present invention, wherein the elapsed time control means is configured such that the elapsed time control means starts after the terminal device is activated. The first period until the online state is reached is a second period after the elapsed time measuring means is instructed to start the measurement when the processing recognition means recognizes the stamped input, and even once when the online state is entered. When the elapsed time measurement start request is received from the server device, the elapsed time measurement means is instructed to start the measurement, and the offline processing time data transmission means is connected to the online state from the offline state by the connection state determination means. When the change to the state is detected, the elapsed time information obtained by the elapsed time control means during the first period is The elapsed time measured by the elapsed time measuring means is acquired as an elapsed time at the end of offline, and a time difference between the elapsed time at the end of offline and the elapsed time information is calculated as an elapsed time after processing, and during the second period For the elapsed time information obtained by the elapsed time control means, the elapsed time information is used as the elapsed time before processing, and the offline processing time data including the elapsed time after processing or the elapsed time before processing is acquired and the server When the offline processing time data includes the post-processing elapsed time, the fixed processing time acquisition unit receives the offline processing time data transmitted from the terminal device. The current server time indicated by the provided server clock is read, and the post-processing elapsed time is calculated from the current server time. When the determined time is calculated and the offline processing time data includes the pre-processing elapsed time, the time immediately before the elapsed time measurement start request unit records the elapsed time measurement start history. A start request time is read, and a time obtained by adding the elapsed time before processing to the start request time is calculated as the fixed processing time.

本発明の第の処理時刻取得システムによれば、システムの起動から終了までの間のいずれにおいても、オフライン状態であるときに打刻等の処理を受け付けた際に、より好ましい方式でそのオフライン処理時刻データに基づく正確な確定処理時刻を算出することができる。
According to the second processing time acquisition system of the present invention, in any period from the start to the end of the system, when processing such as embossing is accepted in the offline state, the offline is performed in a more preferable manner. An accurate confirmation processing time based on the processing time data can be calculated.

上記課題を解決するために、本発明の第の処理時刻取得システムは、上述した本発明の第1又は第2の処理時刻取得システムにおいて、前記端末装置は、該端末装置と前記サーバ装置とがオンライン状態であるか否かを確認するためにオンライン確認要求を前記サーバ装置に送信するオンライン確認要求手段を備え、前記サーバ装置は、前記端末装置から送信された前記オンライン確認要求を受信したときに、前記サーバ時計が示すサーバ時刻を読み取ってオンライン確認時刻としてオンライン確認履歴に記録するオンライン確認手段と、前記端末装置から送信された前記オフライン処理時刻データを受信したときに、前記サーバ時計が示すサーバ時刻を現在時刻として読み取り、前記オフライン処理時刻データに基づき算出された前記確定処理時刻が、前記オンライン確認手段により前記オンライン確認履歴に記録した前記オンライン確認時刻と前記現在時刻との間にない場合には前記確定処理時刻にエラー情報を付加するエラー検出手段とを備えることを特徴とする。
In order to solve the above-described problem, the third processing time acquisition system of the present invention is the above-described first or second processing time acquisition system of the present invention, in which the terminal device includes the terminal device, the server device, Online confirmation request means for transmitting an online confirmation request to the server device to confirm whether or not the server device is in an online state, and the server device receives the online confirmation request transmitted from the terminal device. The server clock indicates when the server time indicated by the server clock is read and recorded in the online confirmation history as the online confirmation time and the offline processing time data transmitted from the terminal device is received. The server time is read as the current time, and the confirmation calculated based on the offline processing time data is used. Error detection means for adding error information to the fixed processing time when the processing time is not between the online confirmation time recorded in the online confirmation history by the online confirmation means and the current time. Features.

本発明の第の処理時刻取得システムによれば、オフライン状態のときに端末装置で打刻等の処理が行われた場合でも、オフライン処理時刻データに基づき算出された確定処理時刻が正常な範囲内にあるか否かをエラー情報から確認することができ、システム異常の発生により経過時間カウントが正常に行われなかった場合等のオフライン処理時刻の異常を検出可能であり、就業等に関する処理時刻管理の公平性、信頼性を確保することができる。
According to the third processing time acquisition system of the present invention, the fixed processing time calculated based on the offline processing time data is within a normal range even when processing such as embossing is performed in the terminal device in the offline state. Can be confirmed from the error information, it is possible to detect offline processing time abnormalities such as when the elapsed time count was not performed normally due to the occurrence of a system abnormality, and processing time related to work etc. It is possible to ensure fairness and reliability of management.

上記課題を解決するために、本発明の第の処理時刻取得システムは、上述した本発明の第1ないし第3のいずれかの処理時刻取得システムにおいて、前記経過時間計測開始要求手段は、前記経過時間計測開始要求の前記端末装置への送信時に前記サーバ時計が示すサーバ時刻を読み取って開始要求送信時刻として記録し、前記経過時間制御手段は、前記経過時間計測開始要求の受信に応じて前記経過時間計測手段に前記計測開始を指示した後、開始要求応答を前記サーバ装置へと送信し、更に、前記経過時間計測開始要求手段は、前記端末装置から送信された前記開始要求応答を受信し、記録した前記開始要求送信時刻と、前記開始要求応答を受信したときに前記サーバ時計が示す前記サーバ時刻を読み取った受信時刻とに基づき前記サーバ装置と前記端末装置との通信における伝送遅延時間を加味して算出される時刻を、前記開始要求時刻として前記経過時間計測開始履歴に記憶することを特徴とする。
In order to solve the above-described problem, the fourth processing time acquisition system of the present invention is the processing time acquisition system of any one of the first to third aspects of the present invention described above, wherein the elapsed time measurement start requesting unit includes the When the elapsed time measurement start request is transmitted to the terminal device, the server time indicated by the server clock is read and recorded as a start request transmission time, and the elapsed time control means is configured to receive the elapsed time measurement start request in response to the reception of the elapsed time measurement start request. After instructing the elapsed time measurement means to start the measurement, a start request response is transmitted to the server device. Further, the elapsed time measurement start request means receives the start request response transmitted from the terminal device. Based on the recorded start request transmission time and the reception time obtained by reading the server time indicated by the server clock when the start request response is received. The time is calculated by adding the transmission delay time in the communication apparatus and said terminal apparatus, and to store the elapsed time measurement starts history as the start request time.

本発明の第4の処理時刻取得システムによれば、端末装置及びサーバ装置の間の通信で起こり得る伝送遅延時間を含めてより正確な確定処理時刻を算出することができる。
According to the fourth processing time acquisition system of the present invention, it is possible to calculate a more accurate fixed processing time including a transmission delay time that may occur in communication between the terminal device and the server device.

上記課題を解決するために、本発明の第の処理時刻取得システムは、上述した本発明の第1ないし第4のいずれかの処理時刻取得システムにおいて、前記経過時間制御手段は、前記経過時間情報を暗号化することを特徴とする。
In order to solve the above-mentioned problem, a fifth processing time acquisition system of the present invention is the processing time acquisition system according to any one of the first to fourth of the present invention described above, wherein the elapsed time control means includes the elapsed time. It is characterized by encrypting information.

本発明の第の処理時刻取得システムによれば、オフライン状態のときに端末装置で打刻等の処理が行われた場合でも、その処理時刻を算出するための経過時間情報が端末装置からサーバ装置に送信されるまでの間に改ざんされてしまうことを防止することができる。これにより、正確かつ真正な確定処理時刻をサーバ装置で算出することができ、就業等に関する処理時刻管理の公平性、信頼性を確保することができる。
According to the fifth processing time acquisition system of the present invention, the elapsed time information for calculating the processing time is transmitted from the terminal device to the server even when processing such as embossing is performed in the terminal device in the offline state. It is possible to prevent tampering before being transmitted to the apparatus. As a result, an accurate and authentic determination processing time can be calculated by the server device, and the fairness and reliability of processing time management related to employment and the like can be ensured.

上記課題を解決するために、本発明の処理時刻取得端末装置は、所定の処理として打刻入力が行われた際の時刻をサーバ装置と通信を行うことにより記録する処理時刻取得端末装置であって、前記打刻入力を認識する処理認識手段と、前記サーバ装置と通信可能なオンライン状態か通信不能なオフライン状態かを判断する接続状態判断手段と、計測開始の指示を受けて、該指示があったときからの経過時間を計測する経過時間計測手段と、前記接続状態判断手段により前記オフライン状態と判断され、且つ前記処理認識手段により前記打刻入力を認識したときに前記経過時間計測手段により計測された経過時間を経過時間情報として取得する経過時間制御手段と、前記接続状態判断手段により前記オフライン状態から前記オンライン状態への切り換えを検出したとき、前記経過時間情報に基づき前記打刻入力に係るオフライン処理時刻データを取得して前記サーバ装置に送信するオフライン処理時刻データ送信手段とを備え、前記経過時間制御手段は、前記サーバ装置から経過時間計測開始要求を受信したとき、前記経過時間計測手段に前記計測開始を指示し、前記オフライン処理時刻データ送信手段は、前記接続状態判断手段により前記オフライン状態から前記オンライン状態への切り換えを検出したとき、前記経過時間情報を処理前経過時間として含む前記オフライン処理時刻データを取得して前記サーバ装置に送信し、前記オフライン処理時刻データの送信により、前記オフライン処理時刻データの前記処理前経過時間と、前記サーバ装置が前記経過時間計測開始要求を送信する際に前記サーバ装置に設けられたサーバ時計から得られるサーバ時刻とに基づき前記打刻入力に係る確定処理時刻を算出することを、前記サーバ装置に対して要求することを要求することを特徴とする。
In order to solve the above problems, the processing time acquisition terminal device of the present invention is a processing time acquisition terminal device that records the time when a time stamp input is performed as a predetermined process by communicating with the server device. A process recognition unit for recognizing the time stamp input , a connection state determination unit for determining whether the server device is in an online state or an incommunicable offline state, and an instruction to start measurement. An elapsed time measuring means for measuring the elapsed time from the time when it was present, and the elapsed time measuring means when the connection status determining means determines the offline state and the processing recognition means recognizes the stamped input. The elapsed time control means for acquiring the measured elapsed time as elapsed time information, and the connection state determination means changes the offline state to the online state. When detecting the Rikae, and a off-line processing time data transmitting means for transmitting to the server device obtains the offline processing time data according to the embossing input based on the elapsed time information, the elapsed time control means, When the elapsed time measurement start request is received from the server device, the elapsed time measurement means is instructed to start the measurement, and the offline processing time data transmission means is changed from the offline state to the online state by the connection state determination means. When the switching is detected, the offline processing time data including the elapsed time information as the elapsed time before processing is acquired and transmitted to the server device, and the offline processing time data is transmitted to transmit the offline processing time data . transmitting a pre-treatment time elapsed, the server apparatus to the elapsed time measurement start request Wherein said that calculating a deterministic processing time according to the server device provided with the punching based on the server time obtained from the server clock time input requests that the request to the server device when that And

本発明の処理時刻取得端末装置によれば、サーバ装置とオフライン状態のときに処理時刻取得端末装置で打刻等の処理が行われた場合でも、端末時計が示す時刻に依存することなく処理時刻に係る情報を得て、サーバ装置に正確な時刻を記録させることができる。   According to the processing time acquisition terminal device of the present invention, the processing time does not depend on the time indicated by the terminal clock even when the processing time acquisition terminal device performs processing such as time stamping when it is offline with the server device. It is possible to obtain the information related to the above and cause the server device to record the accurate time.

上記課題を解決するために、本発明の処理時刻管理サーバ装置は、所定の処理として打刻入力が行われた際の時刻を端末装置と通信を行うことにより記録する処理時刻管理サーバ装置であって、前記処理時刻管理サーバ装置は、前記端末装置が前記打刻入力を認識したときの経過時間情報に基づく前記打刻入力に係るオフライン処理時刻データを前記端末装置から受信したとき、該オフライン処理時刻データと前記処理時刻管理サーバ装置に設けられたサーバ時計から得られるサーバ時刻とに基づき前記打刻入力に係る確定処理時刻を算出する確定処理時刻取得手段と、経過時間計測開始要求を前記端末装置へと送信すると共に、その送信時に前記サーバ時計が示すサーバ時刻を読み取って開始要求時刻として経過時間計測開始履歴に記録する経過時間計測開始要求手段と、を備え、前記確定処理時刻取得手段は、前記端末装置から送信された前記経過時間情報を処理前経過時間として含む前記オフライン処理時刻データを受信したとき、前記経過時間計測開始要求手段により前記経過時間計測開始履歴に記録した直前の前記開始要求時刻を読み取り、該開始要求時刻に前記オフライン処理時刻データの前記処理前経過時間を足し合わせた時刻を前記確定処理時刻として算出することを特徴とする。
In order to solve the above problems, the processing time management server device of the present invention is a processing time management server device that records the time when a time stamp input is performed as a predetermined process by communicating with a terminal device. Te, the processing time management server device, when the terminal device receives the offline processing time data according to the embossing input based on the elapsed time information when it recognizes the embossing input from the terminal device, the off-line processing A confirmation processing time acquisition means for calculating a confirmation processing time related to the time stamping input based on time data and a server time obtained from a server clock provided in the processing time management server device, and an elapsed time measurement start request to the terminal At the same time, the server time indicated by the server clock is read and recorded in the elapsed time measurement start history as the start request time. Comprising the elapsed time measurement start request means, wherein the determination processing time acquisition means, upon receiving the off-line processing time data including the time elapsed before processing the elapsed time information transmitted from the terminal device, the elapsed time The start request time immediately before being recorded in the elapsed time measurement start history by the measurement start request means is read, and the time obtained by adding the pre-processing elapsed time of the offline processing time data to the start request time is defined as the confirmation processing time. It is characterized by calculating .

本発明の処理時刻管理サーバ装置によれば、端末装置がオフライン状態のときに打刻等の処理が行われた場合でも、端末時計が示す時刻に依存することなく処理時刻に係る情報を得て、正確な確定処理時刻を算出して記録することができる。   According to the processing time management server device of the present invention, even when processing such as time stamping is performed when the terminal device is in an offline state, information related to the processing time is obtained without depending on the time indicated by the terminal clock. It is possible to calculate and record an accurate confirmation processing time.

上記課題を解決するために、本発明の処理時刻取得方法は、通信網を介して互いに接続可能な端末装置及びサーバ装置を用いて、所定の処理として打刻入力が行われた際の時刻を取得して記録する処理時刻取得方法であって、前記端末装置において、前記打刻入力を認識する処理認識工程と、前記端末装置と前記サーバ装置との間が通信可能なオンライン状態か通信不能なオフライン状態かを判断する接続状態判断工程と、計測開始の指示を受けて、該指示があったときからの経過時間を計測する経過時間計測工程と、前記接続状態判断工程により前記オフライン状態と判断され、且つ前記処理認識工程により前記打刻入力を認識したときに前記経過時間計測工程により計測された経過時間を経過時間情報として取得する経過時間制御工程と、前記接続状態判断工程により前記オフライン状態から前記オンライン状態への切り換えを検出したとき、前記経過時間情報に基づき前記打刻入力に係るオフライン処理時刻データを取得して前記サーバ装置に送信するオフライン処理時刻データ送信工程と、前記サーバ装置において、前記端末装置から送信された前記オフライン処理時刻データを受信したとき、該オフライン処理時刻データと前記サーバ装置に設けられたサーバ時計から得られるサーバ時刻とに基づき前記打刻入力に係る確定処理時刻を算出する確定処理時刻取得工程と、経過時間計測開始要求を前記端末装置へと送信すると共に、その送信時に前記サーバ時計が示すサーバ時刻を読み取って開始要求時刻として経過時間計測開始履歴に記録する経過時間計測開始要求工程と、を備え、前記経過時間制御工程は、前記サーバ装置から前記経過時間計測開始要求を受信したとき、前記経過時間計測工程に前記計測開始を指示し、前記オフライン処理時刻データ送信工程は、前記接続状態判断工程により前記オフライン状態から前記オンライン状態への切り換えを検出したとき、前記経過時間情報を処理前経過時間として含む前記オフライン処理時刻データを取得して前記サーバ装置に送信し、前記確定処理時刻取得工程は、前記端末装置から送信された前記オフライン処理時刻データを受信したとき、前記経過時間計測開始要求工程により前記経過時間計測開始履歴に記録した直前の前記開始要求時刻を読み取り、該開始要求時刻に前記オフライン処理時刻データの前記処理前経過時間を足し合わせた時刻を前記確定処理時刻として算出することを特徴とする。
In order to solve the above-described problem, the processing time acquisition method of the present invention uses a terminal device and a server device that can be connected to each other via a communication network to determine the time when a time stamp is input as a predetermined process. A processing time acquisition method for acquiring and recording, wherein in the terminal device, a process recognition step for recognizing the stamped input and an online state where communication between the terminal device and the server device is possible or impossible A connection state determination step for determining whether the device is in an offline state, an elapsed time measurement step for receiving an instruction to start measurement and measuring an elapsed time since the instruction is received, and the connection state determination step for determining the offline state is a and the elapsed time control step of acquiring the elapsed time information elapsed time measured by the elapsed time measuring process when it recognizes the embossing inputted by said processing recognition step When detecting the switching from the off-line state by the connection state determining step to the online state, an offline processing time and transmits the acquired off-line processing time data according to the embossing input based on the elapsed time information to the server device Based on the data transmission step, and when the server device receives the offline processing time data transmitted from the terminal device, the offline processing time data and a server time obtained from a server clock provided in the server device A confirmation processing time acquisition step for calculating a confirmation processing time related to the stamping input , and an elapsed time measurement start request are transmitted to the terminal device, and a server request time indicated by the server clock is read at the time of transmission. Elapsed time measurement start request process recorded in the elapsed time measurement start history as , Wherein the elapsed time control step, when receiving the elapsed time measurement start request from the server apparatus, wherein instructs start of measurement to the elapsed time measurement step, the offline processing time data transmission process, the connection When switching from the offline state to the online state is detected by the state determination step, the offline processing time data including the elapsed time information as an elapsed time before processing is acquired and transmitted to the server device, and the fixed processing time When the offline process time data transmitted from the terminal device is received, the acquisition step reads the start request time immediately before being recorded in the elapsed time measurement start history by the elapsed time measurement start request step, and the start request The time obtained by adding the pre-processing elapsed time of the offline processing time data to the time is determined. The processing time is calculated .

本発明の処理時刻取得方法によれば、端末装置とサーバ装置とがオフライン状態のときに端末装置で打刻等の処理が行われた場合でも、端末時計が示す時刻に依存することなくサーバ装置に正確な時刻を記録することができ、従って、就業等に関する処理時刻管理の公平性、信頼性を確保することができる。   According to the processing time acquisition method of the present invention, the server device does not depend on the time indicated by the terminal clock even when the terminal device and the server device are offline and processing such as embossing is performed. Therefore, it is possible to record the accurate time, and thus it is possible to ensure fairness and reliability of the processing time management related to working.

上記課題を解決するために、本発明の処理時刻取得端末装置のプログラムは、上述した本発明の処理時刻取得端末装置に備わるコンピュータを、前記処理認識手段、前記接続状態判断手段、前記経過時間計測手段、前記経過時間制御手段及び前記オフライン処理時刻データ送信手段として機能させ、更に、前記オフライン処理時刻データの送信により、前記オフライン処理時刻データの前記処理前経過時間と、前記サーバ装置が前記経過時間計測開始要求を送信する際に前記サーバ装置に設けられたサーバ時計から得られるサーバ時刻とに基づき前記打刻入力に係る確定処理時刻を算出することを、前記サーバ装置に対して要求する手段として機能させるためのプログラムであることを特徴とする。また、処理時刻管理サーバ装置のプログラムは、上述した本発明の処理時刻管理サーバ装置に備わるコンピュータを、前記確定処理時刻取得手段及び前記経過時間計測開始要求手段として機能させるためのプログラムであることを特徴とする。 In order to solve the above problems, a program for a processing time acquisition terminal device according to the present invention includes a computer provided in the processing time acquisition terminal device according to the present invention described above , the processing recognition unit, the connection state determination unit, and the elapsed time measurement. Means, the elapsed time control means and the offline processing time data transmission means , and further, by transmitting the offline processing time data, the pre-processing elapsed time of the offline processing time data and the server device As a means for requesting the server device to calculate a fixed processing time related to the time stamping input based on a server time obtained from a server clock provided in the server device when transmitting a measurement start request. It is a program for making it function . The program processing time management server device, the computer included in the processing time management server apparatus of the present invention is a program for functioning as the decision process time acquiring means and the elapsed time measurement start request means Features.

本発明の処理時刻取得プログラムによれば、端末装置とサーバ装置とがオフライン状態のときに端末装置で打刻等の処理が行われた場合でも、端末時計が示す時刻に依存することなく処理時刻に係る情報を得て、サーバ装置に正確な時刻を記録させることができる。   According to the processing time acquisition program of the present invention, the processing time does not depend on the time indicated by the terminal clock even when the terminal device and the server device are offline and processing such as embossing is performed. It is possible to obtain the information related to the above and cause the server device to record the accurate time.

本発明によれば、打刻等の処理が行われた際の時刻を取得して記録する処理時刻取得システムにおいて、端末装置とサーバ装置とがオフライン状態であるときに処理が行われた場合でも、端末装置で当該処理が行われたときの経過時間を計測しておき、オンライン状態時にこの経過時間に基づくオフライン処理時刻データをサーバ装置に送信することにより、サーバ装置でこのオフライン処理時刻データを用いて正確な確定処理時刻を算出することができる。従って、端末装置の時計が示す時刻に依存することなく、不正のない処理時刻を取得して、就業に関する打刻等の処理時刻を管理するシステム運用上の公平性及び信頼性を向上することができる   According to the present invention, in the processing time acquisition system that acquires and records the time when processing such as embossing is performed, even when the processing is performed when the terminal device and the server device are offline. By measuring the elapsed time when the processing is performed in the terminal device, and transmitting the offline processing time data based on the elapsed time to the server device in the online state, the server device stores the offline processing time data. By using this, it is possible to calculate an accurate confirmation processing time. Therefore, it is possible to improve the fairness and reliability of system operation for acquiring processing time without fraud and managing processing time such as time stamping regarding work without depending on the time indicated by the clock of the terminal device. it can

本発明の第1〜第3の実施形態による処理時刻取得システムを示すブロック図である。It is a block diagram which shows the processing time acquisition system by the 1st-3rd embodiment of this invention. 本発明の第1〜第3の実施形態による処理時刻取得システムにおける端末装置を示すブロック図である。It is a block diagram which shows the terminal device in the processing time acquisition system by the 1st-3rd embodiment of this invention. 本発明の第1〜第3の実施形態による処理時刻取得システムにおけるサーバ装置を示すブロック図である。It is a block diagram which shows the server apparatus in the processing time acquisition system by the 1st-3rd embodiment of this invention. 本発明の第1の実施形態による処理時刻取得システムにおける時刻差算出処理を示すフローチャートである。It is a flowchart which shows the time difference calculation process in the processing time acquisition system by the 1st Embodiment of this invention. 本発明の第1の実施形態による処理時刻取得システムにおける処理時刻取得処理を示すフローチャートである。It is a flowchart which shows the processing time acquisition process in the processing time acquisition system by the 1st Embodiment of this invention. 本発明の第1の実施形態による処理時刻取得システムにおける処理時刻取得処理を示すタイミングチャートである。It is a timing chart which shows the processing time acquisition process in the processing time acquisition system by the 1st Embodiment of this invention. 本発明の第1の実施形態による処理時刻取得システムにおける端末装置の表示部にオンライン時に表示される打刻画面を示す説明図である。It is explanatory drawing which shows the stamping screen displayed at the time of online on the display part of the terminal device in the processing time acquisition system by the 1st Embodiment of this invention. 本発明の第1の実施形態による処理時刻取得システムにおける端末装置の表示部にオフライン時に表示される打刻画面を示す説明図である。It is explanatory drawing which shows the stamping screen displayed at the time of offline on the display part of the terminal device in the processing time acquisition system by the 1st Embodiment of this invention. 本発明の第2の実施形態による処理時刻取得システムにおける時刻差算出処理を示すフローチャートである。It is a flowchart which shows the time difference calculation process in the processing time acquisition system by the 2nd Embodiment of this invention. 本発明の第2の実施形態による処理時刻取得システムにおける処理時刻取得処理を示すフローチャートである。It is a flowchart which shows the processing time acquisition process in the processing time acquisition system by the 2nd Embodiment of this invention. 本発明の第2の実施形態による処理時刻取得システムにおける処理時刻取得処理を示すタイミングチャートである。It is a timing chart which shows the processing time acquisition process in the processing time acquisition system by the 2nd Embodiment of this invention. 本発明の第3の実施形態による処理時刻取得システムにおける処理時刻取得処理を示すフローチャートである。It is a flowchart which shows the processing time acquisition process in the processing time acquisition system by the 3rd Embodiment of this invention.

以下、本発明の実施の形態について図面を参照しながら説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

(処理時刻取得システムの構成)
図1は本発明の第1の実施形態による処理時刻取得システムの全体構成を示している。図1において、本発明の第1の実施形態による処理時刻取得システム1は、互いに通信網2を介して接続可能な処理時刻取得端末装置(以下、単に端末装置と称する)3及び処理時刻管理サーバ装置(以下、単にサーバ装置と称する)4を備えている。処理時刻取得システム1は、端末装置3に対して所定の処理が行われた場合には、端末装置3からサーバ装置4へその処理に関する情報を送信し、当該処理が行われた時刻を処理時刻としてサーバ装置4に設けられたサーバ記憶部42に記憶するシステムである。処理時刻取得システム1は、例えば、複数の事業所を有する会社に勤務する従業員の就業管理等のための打刻システムに用いられ、打刻等の所定の処理が行われた時刻を処理時刻(打刻時刻)として取得することができる。以下では、便宜上、処理時刻取得システムである打刻システム1について説明する。
(Configuration of processing time acquisition system)
FIG. 1 shows the overall configuration of a processing time acquisition system according to the first embodiment of the present invention. 1, a processing time acquisition system 1 according to a first embodiment of the present invention includes a processing time acquisition terminal device (hereinafter simply referred to as a terminal device) 3 and a processing time management server that can be connected to each other via a communication network 2. A device (hereinafter simply referred to as a server device) 4 is provided. When a predetermined process is performed on the terminal device 3, the processing time acquisition system 1 transmits information related to the processing from the terminal device 3 to the server device 4, and sets the time at which the processing is performed as the processing time Is stored in the server storage unit 42 provided in the server device 4. The processing time acquisition system 1 is used in, for example, a time stamping system for work management of employees who work for a company having a plurality of offices, and the time when a predetermined process such as time stamping is performed is set as a processing time. It can be acquired as (stamping time). Below, for convenience, the marking system 1 which is a processing time acquisition system is demonstrated.

端末装置3は例えばパーソナルコンピュータである。実際上の利用形態では、複数の端末装置3が1つのサーバ装置4に通信網2を介して接続可能となっている。例えば事業所毎に端末装置3が設置される。しかしながら、本実施形態では、説明の便宜上、図1に示すように1つの端末装置3が1つのサーバ装置4に通信網2を介して接続可能となっている場合を例にあげる。また、端末装置3にはICカードリーダ5が例えばUSB(ユニバーサルシリアルバス)ケーブルを介して接続されている。ICカードリーダ5は、ICカード6が当該ICカードリーダ5に接近又は接触したとき、ICカード6の内蔵メモリに記憶された情報を読み取り、読み取った情報を端末装置3に出力する。ICカード6は、例えば会社の各従業員が所持しているIDカードであり、ICカード6の内蔵メモリには、当該ICカード6を所持する従業員を識別するための従業員識別情報が記憶されている。以下、本実施形態において、従業員が例えば出勤時刻、退勤時刻、外出時刻、戻り時刻等を打刻するために、ICカード6をICカードリーダ5に接近又は接触させてICカード6の内蔵メモリに記憶された情報をICカードリーダ5に読み取らせる行為を「打刻入力」という。即ち、端末装置3はICカードリーダ5と共に打刻装置を構成している。   The terminal device 3 is a personal computer, for example. In an actual usage mode, a plurality of terminal devices 3 can be connected to one server device 4 via the communication network 2. For example, a terminal device 3 is installed for each office. However, in this embodiment, for convenience of explanation, a case where one terminal device 3 can be connected to one server device 4 via the communication network 2 as shown in FIG. Further, an IC card reader 5 is connected to the terminal device 3 via, for example, a USB (Universal Serial Bus) cable. When the IC card 6 approaches or comes into contact with the IC card reader 5, the IC card reader 5 reads information stored in the built-in memory of the IC card 6 and outputs the read information to the terminal device 3. The IC card 6 is, for example, an ID card possessed by each employee of the company, and employee identification information for identifying the employee possessing the IC card 6 is stored in the built-in memory of the IC card 6. Has been. Hereinafter, in the present embodiment, the IC card 6 is brought close to or in contact with the IC card reader 5 in order for the employee to stamp out, for example, work time, work time, going out time, return time, and the like. The action of causing the IC card reader 5 to read the information stored in is referred to as “stamping input”. That is, the terminal device 3 constitutes a marking device together with the IC card reader 5.

サーバ装置4は例えばサーバコンピュータである。サーバ装置4は、例えば会社の1つの事業所(例えば人事部がある事業所)、あるいはアウトソーシング事業者(例えばASP)から就業管理サービスの提供を会社が受けている場合には、当該事業者の事業所等に設置されている。   The server apparatus 4 is a server computer, for example. For example, when the company receives employment management service from one company office (for example, an office with a human resources department) or an outsourcing company (for example, ASP), the server device 4 It is installed at offices.

通信網2は、例えばインターネット、公衆回線等である。端末装置3とサーバ装置4との間の通信には、VPN(バーチャルプライベートネットワーク)を利用することもできる。端末装置3は通信装置8を介して通信網2と接続可能であり、サーバ装置4は通信装置9を介して通信網2と接続可能である。通信装置8、9は、例えばモデム等の回線終端装置、ルータ等である。   The communication network 2 is, for example, the Internet or a public line. VPN (virtual private network) can be used for communication between the terminal device 3 and the server device 4. The terminal device 3 can be connected to the communication network 2 via the communication device 8, and the server device 4 can be connected to the communication network 2 via the communication device 9. The communication devices 8 and 9 are, for example, a line termination device such as a modem, a router, or the like.

また、通信網2には、通信装置8、9と同様の通信装置10を介して時刻配信装置7が接続されている。時刻配信装置7は、例えば時刻配信業務を行う業務者が管理するサーバコンピュータであり、標準時と合致した時刻を配信する。時刻配信装置7は、例えば時刻配信業務を行う業務者の事業所に設置されている。   In addition, a time distribution device 7 is connected to the communication network 2 via a communication device 10 similar to the communication devices 8 and 9. The time distribution device 7 is a server computer managed by, for example, a business operator who performs time distribution work, and distributes time that matches standard time. The time distribution device 7 is installed, for example, at a business office of a business operator who performs time distribution business.

なお、端末装置3及びサーバ装置4は、通信網2を介して互いに接続可能に構成されているが、端末装置3とサーバ装置4との間は、常に通信可能な状態、即ち「オンライン状態」であるとは限らない。端末装置3とサーバ装置4との間が通信不能な状態、即ち「オフライン状態」である場合もある。例えば、通信網2の不具合により端末装置3とサーバ装置4との間がオフライン状態になる場合ある。また、端末装置3又はサーバ装置4の管理者等の事情により端末装置3とサーバ装置4との間がオフライン状態に設定される場合がある。もっとも、打刻システム1は、端末装置3とサーバ装置4との間が永久にオフライン状態となることは想定していない。   The terminal device 3 and the server device 4 are configured to be connected to each other via the communication network 2, but the terminal device 3 and the server device 4 can always communicate with each other, that is, “online state”. Not necessarily. There may be a case where communication between the terminal device 3 and the server device 4 is impossible, that is, an “offline state”. For example, the terminal device 3 and the server device 4 may be in an offline state due to a failure of the communication network 2. Further, the terminal device 3 and the server device 4 may be set in an offline state depending on circumstances of the administrator of the terminal device 3 or the server device 4 or the like. However, the marking system 1 does not assume that the terminal device 3 and the server device 4 are permanently offline.

(端末装置)
図2は第1の実施形態における端末装置3の構成を示している。図2に示すように、端末装置3はCPU(中央演算処理装置)21を備えている。更に、端末装置3は、端末記憶部22、端末時計23、表示部24、通信部25、外部機器接続部26及び入力部27を備え、これらの構成要素はCPU21と接続されている。端末記憶部22は端末装置3に内蔵されたメモリ、又は端末装置3に接続された記憶装置である。端末記憶部22には後述する処理をCPU21に行わせるためのプログラム等が記憶されている。また、端末記憶部22は、時刻差情報、経過時間情報、端末ID及び状態監視フラグ等を記憶するための記憶媒体として用いられる。端末時計23は端末装置3に内蔵された時計である。表示部24は例えば液晶ディスプレイ装置である。通信部25は端末装置3を通信網2に通信可能に接続するための回路である。外部機器接続部26は外部機器を端末装置3にケーブルを介して接続するためのポートであり、例えばUSBポートである。入力部27は例えばキーボード及びマウスである。
(Terminal device)
FIG. 2 shows the configuration of the terminal device 3 in the first embodiment. As shown in FIG. 2, the terminal device 3 includes a CPU (Central Processing Unit) 21. The terminal device 3 further includes a terminal storage unit 22, a terminal clock 23, a display unit 24, a communication unit 25, an external device connection unit 26, and an input unit 27, and these components are connected to the CPU 21. The terminal storage unit 22 is a memory built in the terminal device 3 or a storage device connected to the terminal device 3. The terminal storage unit 22 stores a program and the like for causing the CPU 21 to perform processing to be described later. The terminal storage unit 22 is used as a storage medium for storing time difference information, elapsed time information, a terminal ID, a state monitoring flag, and the like. The terminal clock 23 is a clock built in the terminal device 3. The display unit 24 is a liquid crystal display device, for example. The communication unit 25 is a circuit for connecting the terminal device 3 to the communication network 2 in a communicable manner. The external device connection unit 26 is a port for connecting an external device to the terminal device 3 via a cable, and is, for example, a USB port. The input unit 27 is, for example, a keyboard and a mouse.

端末装置3のCPU21は、端末記憶部22に記憶されたプログラムを読み取って実行することにより、打刻入力認識部31、接続状態判断部32、端末通信制御部33、経過時間制御部34、表示制御部35、時刻差算出部(オンライン確認要求手段)36及び経過時間計測部37として機能する。そして、CPU21のこのような機能により、端末装置3は次のような処理を行う。即ち、端末装置3は、(1)従業員による打刻入力を認識する処理、(2)オンライン時に打刻入力を認識した場合に、第1の打刻要求、従業員識別情報、打刻種別情報、接続状態情報及び端末IDを含むオンライン打刻データをサーバ装置4へ直ちに送信する処理、(3)第1の打刻要求に応じてサーバ装置4から送信された確定打刻時刻を受信し、これを表示部24に表示する処理、(4)オフライン時に打刻入力を認識した場合に、経過時間情報、従業員識別情報、打刻種別情報、接続状態情報及び端末IDを端末記憶部22に一時的に記憶し、その後オンライン状態となったときに、経過時間情報から打刻後経過時間(処理後経過時間)又は打刻前経過時間(処理前経過時間)を算出し、この打刻後経過時間又は打刻前経過時間、従業員識別情報、打刻種別情報、接続状態情報及び端末ID、並びに第2の打刻要求を含むオフライン打刻データをサーバ装置4へ送信する処理、(5)サーバ時刻送信要求(端末装置3とサーバ装置4とがオンライン状態であるか否かを確認するための確認要求としての機能を含む)をサーバ装置4へと送信した後、サーバ装置4からサーバ時計43が示すサーバ時刻を受信したとき、端末時計23が示す端末時刻と受信したサーバ時刻との差を算出する処理、(6)経過時間情報等を記憶する際に、経過時間情報等を暗号化する処理、及び(7)経過時間を計測(カウント)する処理を行う。これらの処理の詳細については後述する。   The CPU 21 of the terminal device 3 reads and executes a program stored in the terminal storage unit 22, thereby performing a stamped input recognition unit 31, a connection state determination unit 32, a terminal communication control unit 33, an elapsed time control unit 34, a display It functions as a control unit 35, a time difference calculation unit (online confirmation request means) 36, and an elapsed time measurement unit 37. And the terminal device 3 performs the following process by such a function of the CPU 21. That is, the terminal device 3 (1) a process for recognizing a time stamp input by an employee, (2) a first time stamp request, employee identification information, a time stamp type when a time stamp input is recognized when online Processing for immediately transmitting online stamping data including information, connection status information and terminal ID to the server device 4; (3) receiving a definitive stamping time transmitted from the server device 4 in response to the first stamping request; , A process of displaying this on the display unit 24, (4) when the time stamp input is recognized when offline, the terminal storage unit 22 displays elapsed time information, employee identification information, time stamp type information, connection status information, and terminal ID. Is stored temporarily, and when it becomes online after that, the elapsed time after stamping (elapsed time after processing) or the elapsed time before stamping (elapsed time before processing) is calculated from the elapsed time information. After elapsed time or elapsed time before stamping, follow Processing for transmitting offline time stamping data including member identification information, time stamping type information, connection status information and terminal ID, and a second time stamping request to the server device 4, (5) server time transmission request (with the terminal device 3 and When the server time indicated by the server clock 43 is received from the server device 4 after the server device 4 is transmitted to the server device 4 (including a function as a confirmation request for confirming whether or not the server device 4 is online). , A process for calculating the difference between the terminal time indicated by the terminal clock 23 and the received server time, (6) a process for encrypting the elapsed time information when storing the elapsed time information, and (7) an elapsed time. The process of measuring (counting) is performed. Details of these processes will be described later.

(サーバ装置)
図3は第1の実施形態におけるサーバ装置4の構成を示している。図3に示すように、サーバ装置4はCPU41を備えている。更に、サーバ装置4は、サーバ記憶部42、サーバ時計43、通信部44、入力部45及び表示部46を備え、これらの構成要素はCPU41と接続されている。サーバ記憶部42はサーバ装置4に内蔵されたメモリ、又はサーバ装置4に接続された記憶装置である。サーバ記憶部42には、後述する処理をCPU41に行わせるためのプログラム、従業員管理情報等が予め記憶されている。また、サーバ記憶部42は、確定打刻時刻、時刻差算出履歴等を記憶するための記憶媒体として用いられる。サーバ時計43はサーバ装置4に内蔵された時計である。サーバ装置4は、例えば周期的に時刻配信装置7と通信を行い、サーバ時計43のサーバ時刻を、時刻配信装置7から配信される時刻に合わせる。これにより、サーバ時計43は、常時、標準時と合致した正確な時刻を示す。通信部44はサーバ装置4を通信網2に通信可能に接続するための回路である。入力部45は例えばキーボード及びマウスである。表示部46は例えば液晶ディスプレイ装置である。
(Server device)
FIG. 3 shows the configuration of the server device 4 in the first embodiment. As shown in FIG. 3, the server device 4 includes a CPU 41. The server device 4 further includes a server storage unit 42, a server clock 43, a communication unit 44, an input unit 45, and a display unit 46, and these components are connected to the CPU 41. The server storage unit 42 is a memory built in the server device 4 or a storage device connected to the server device 4. The server storage unit 42 stores in advance a program for causing the CPU 41 to perform processing to be described later, employee management information, and the like. Further, the server storage unit 42 is used as a storage medium for storing a final stamping time, a time difference calculation history, and the like. The server clock 43 is a clock built in the server device 4. For example, the server device 4 periodically communicates with the time distribution device 7 to adjust the server time of the server clock 43 to the time distributed from the time distribution device 7. As a result, the server clock 43 always indicates an accurate time that matches the standard time. The communication unit 44 is a circuit for connecting the server device 4 to the communication network 2 in a communicable manner. The input unit 45 is, for example, a keyboard and a mouse. The display unit 46 is, for example, a liquid crystal display device.

サーバ装置4のCPU41は、サーバ記憶部42に記憶されたプログラムを読み取って実行することにより、サーバ通信制御部(経過時間計測開始要求手段、オンライン確認手段、エラー検出手段)51及び確定打刻部52として機能する。そして、CPU41のこのような機能により、サーバ装置4は次のような処理を行う。即ち、サーバ装置4は、(1)端末装置3から送信されたオンライン打刻データを受信して第1の打刻要求、従業員識別情報、打刻種別情報、接続状態情報及び端末IDを取得したとき、サーバ時計43が示すサーバ時刻を読み取り、取得した従業員識別情報が示す従業員を特定し、取得した打刻種別情報が示す打刻種別を特定し、そして、読み取ったサーバ時刻を、特定した従業員の、特定した打刻種別に属する確定打刻時刻としてサーバ記憶部42に記憶する処理、(2)端末装置3から送信されたオンライン打刻データを受信したとき、これに応じて確定打刻時刻を端末装置3に送信する処理、(3)端末装置3から送信されたオフライン打刻データを受信して第2の打刻要求、打刻後経過時間又は打刻前経過時間、従業員識別情報、打刻種別情報、接続状態情報及び端末IDを取得したとき、取得した従業員識別情報が示す従業員を特定し、取得した打刻種別情報が示す打刻種別を特定し、そして、取得した打刻後経過時間又は打刻前経過時間から打刻時刻を算出し、特定した従業員の、特定した打刻種別に属する確定打刻時刻としてサーバ記憶部42に記憶する処理、(4)取得した接続状態情報及び端末IDを確定打刻時刻と関連付けてサーバ記憶部42に記憶する処理、及び(5)端末装置3からサーバ時刻送信要求(オンライン確認要求)を受信したとき、サーバ時計43が示すサーバ時刻を読み取り、読み取ったサーバ時刻(オンライン確認時刻としての機能を含み、オンライン確認履歴に記録される)を端末装置3へと送信し、端末装置3から時刻差算出応答を受信したとき、時刻差算出時刻を算出して、サーバ記憶部42に記憶する処理を行う。これらの処理の詳細については後述する。   The CPU 41 of the server device 4 reads and executes a program stored in the server storage unit 42 to thereby execute a server communication control unit (elapsed time measurement start request unit, online confirmation unit, error detection unit) 51 and a definitive stamping unit. 52 functions. And the server apparatus 4 performs the following processes by such a function of the CPU 41. That is, the server device 4 (1) receives the online stamping data transmitted from the terminal device 3 and acquires the first stamping request, employee identification information, stamping type information, connection status information, and terminal ID. The server time indicated by the server clock 43 is read, the employee indicated by the acquired employee identification information is specified, the stamp type indicated by the acquired stamp type information is specified, and the read server time is The process of storing in the server storage unit 42 as the confirmed time stamp belonging to the specified time stamp type of the specified employee, (2) When receiving the online time stamp data transmitted from the terminal device 3, A process of transmitting a fixed time stamp to the terminal device 3; (3) a second time stamping request, an elapsed time after stamping or an elapsed time before stamping when offline stamped data transmitted from the terminal device 3 is received; Employee identification information, When the time type information, connection state information, and terminal ID are acquired, the employee indicated by the acquired employee identification information is specified, the time type indicated by the acquired time type information is specified, and the time stamp acquired A process of calculating a time stamp from the post-elapsed time or the time elapsed before time stamping, and storing it in the server storage unit 42 as a confirmed time stamp belonging to the specified time stamp type of the specified employee, (4) Acquired connection A process indicated by the server clock 43 when receiving the server time transmission request (online confirmation request) from the terminal device 3 and (5) the process of storing the status information and the terminal ID in the server storage unit 42 in association with the fixed time stamp The time is read, and the read server time (including the function of the online confirmation time and recorded in the online confirmation history) is transmitted to the terminal device 3, and the time difference calculation response is transmitted from the terminal device 3. When receiving, by calculating the time difference calculation time, it performs a process of storing in the server storage unit 42. Details of these processes will be described later.

(経過時間計測処理)
端末装置3における経過時間の計測(カウント)機能は、経過時間計測部37により行われる。経過時間計測部37は、端末時計23が示す端末時刻に依存することなく、例えば、端末装置3が所定のOSを用いて動作するコンピュータである場合には当該OSに固有の時間計測機能を利用して(CPU41の基準クロックのカウントによる相対時刻に基づいて)時間を計測する。経過時間計測部37は、経過時間制御部34等の他のプログラムからの制御に応じて経過時間の計測開始、取得又は計測終了を行い、例えば、周期的な(例えば1msec毎の)割込信号を発生させ、これを自動的にカウントアップし、そのカウント値に基づいて経過時間を取得可能とするもので、開始の指示があった場合にカウント値を0クリア(リセット)すると共にカウントアップを開始し、取得の指示があった場合にその時点のカウント値を応答し、終了の指示があった場合にその時点のカウント値を応答すると共にカウントアップを終了する。この割込信号の発生周期は相対時刻に基づいており、この周期及び応答したカウント値に基づいて経過時間を得ることができる。なお、経過時間計測部37は、上記の構成に限らず、開始の指示があった場合にその時点の相対時刻を開始時間として記憶し、取得の指示があった場合にその時点の相対時刻と開始時間との差異を経過時間として応答し、終了の指示があった場合にその時点の相対時刻を終了時刻として応答すると共に開始時間をリセット又は削除するものでもよい。
(Elapsed time measurement processing)
The elapsed time measurement (count) function in the terminal device 3 is performed by the elapsed time measurement unit 37. The elapsed time measurement unit 37 does not depend on the terminal time indicated by the terminal clock 23. For example, when the terminal device 3 is a computer that operates using a predetermined OS, a time measurement function unique to the OS is used. Then, the time is measured (based on the relative time based on the reference clock count of the CPU 41). The elapsed time measurement unit 37 starts, acquires, or ends measurement of the elapsed time according to control from another program such as the elapsed time control unit 34, for example, a periodic (for example, every 1 msec) interrupt signal Is automatically counted up, and the elapsed time can be acquired based on the count value. When a start instruction is given, the count value is cleared to 0 (reset) and the count up is performed. When the acquisition is instructed, the count value at that time is returned, and when the end is instructed, the count value at that time is responded and the count-up is ended. The generation period of this interrupt signal is based on relative time, and the elapsed time can be obtained based on this period and the counted value that has responded. Note that the elapsed time measurement unit 37 is not limited to the above configuration, and stores a relative time at that time as a start time when a start instruction is given, and a relative time at that time when an acquisition instruction is given. A difference from the start time may be returned as an elapsed time, and when an end instruction is given, the relative time at that time may be returned as the end time and the start time may be reset or deleted.

(第1の実施形態における時刻差算出処理)
図4は第1の実施形態における端末装置3とサーバ装置4との時刻差算出処理を示している。時刻差算出処理とは、端末装置3の端末時計23が示す端末時刻とサーバ装置4のサーバ時計43が示すサーバ時刻との差を算出し、算出結果を時刻差情報として端末装置3の端末記憶部22に記憶する処理である。時刻差算出処理は、オンライン時に所定の周期(例えば30分)で行われる。また、サーバ装置4では、端末装置3毎に時刻差算出処理の履歴を時刻差算出履歴としてサーバ記憶部42に記録する。以下、具体的に説明する。
(Time difference calculation process in the first embodiment)
FIG. 4 shows a time difference calculation process between the terminal device 3 and the server device 4 in the first embodiment. The time difference calculation process calculates the difference between the terminal time indicated by the terminal clock 23 of the terminal device 3 and the server time indicated by the server clock 43 of the server device 4 and stores the calculation result as the time difference information in the terminal storage of the terminal device 3. This process is stored in the unit 22. The time difference calculation process is performed at a predetermined cycle (for example, 30 minutes) when online. Further, the server device 4 records the history of the time difference calculation process for each terminal device 3 in the server storage unit 42 as the time difference calculation history. This will be specifically described below.

図4に示すように、前回の時刻差算出処理から所定時間経過後(ステップS1:YES)、端末装置3の端末通信制御部33がサーバ時刻送信要求(オンライン確認要求)をサーバ装置4へ送信する(ステップS2)。続いて、サーバ装置4のサーバ通信制御部51がサーバ時刻送信要求を受信し(ステップS3)、サーバ時計43から現時点のサーバ時刻を読み取り、読み取ったサーバ時刻を端末装置3へ送信する(ステップS4)。更に、サーバ装置4のサーバ通信制御部51は、このサーバ時刻を時刻差算出時刻(オンライン確認時刻)としてサーバ記憶部42の時刻差算出履歴(オンライン確認履歴)に記録し(ステップS5)、サーバ装置4側の処理が終了する。   As shown in FIG. 4, after a predetermined time has elapsed since the previous time difference calculation process (step S <b> 1: YES), the terminal communication control unit 33 of the terminal device 3 transmits a server time transmission request (online confirmation request) to the server device 4. (Step S2). Subsequently, the server communication control unit 51 of the server device 4 receives the server time transmission request (step S3), reads the current server time from the server clock 43, and transmits the read server time to the terminal device 3 (step S4). ). Furthermore, the server communication control unit 51 of the server device 4 records this server time as a time difference calculation time (online confirmation time) in the time difference calculation history (online confirmation history) of the server storage unit 42 (step S5). The processing on the device 4 side ends.

一方、端末装置3側では、ステップS4のサーバ時刻の送信に対して、端末通信制御部33が、サーバ時刻を受信する(ステップS6)。続いて、端末装置3の時刻差算出部36が、端末時計23の端末時刻を読み取り、この読み取った端末時刻と受信したサーバ時刻との差を算出し、この算出結果を時刻差情報として端末記憶部22に記憶する(ステップS7)。その後、ステップS1に戻り、所定時間毎の時刻差算出処理を繰り返す。   On the other hand, on the terminal device 3 side, the terminal communication control unit 33 receives the server time in response to the transmission of the server time in step S4 (step S6). Subsequently, the time difference calculation unit 36 of the terminal device 3 reads the terminal time of the terminal clock 23, calculates the difference between the read terminal time and the received server time, and stores the calculation result as time difference information in the terminal memory. Store in the unit 22 (step S7). Then, it returns to step S1 and repeats the time difference calculation process for every predetermined time.

例えば、時刻差情報は、サーバ時刻から端末時刻を差し引いた値である。従って、端末時計23の端末時刻がサーバ時計43のサーバ時刻よりも遅れている場合には、時刻差情報は正の値となり、端末時刻がサーバ時刻よりも進んでいる場合には、時刻差情報は負の値となる。上述したように、サーバ時計43は、時刻配信装置7から配信される時刻に合わせられており、常時、標準時と合致した正確な時刻を示している。従って、時刻差情報が示す時刻差は、端末時計23が示す端末時刻と標準時との差である。尚、この場合の時刻差情報はサーバ装置4から端末装置3へのサーバ時刻の送信処理により生じる伝送遅延時間分の誤差が含まれる。   For example, the time difference information is a value obtained by subtracting the terminal time from the server time. Accordingly, when the terminal time of the terminal clock 23 is later than the server time of the server clock 43, the time difference information is a positive value, and when the terminal time is ahead of the server time, the time difference information Is negative. As described above, the server clock 43 is set to the time distributed from the time distribution device 7 and always indicates an accurate time that matches the standard time. Therefore, the time difference indicated by the time difference information is the difference between the terminal time indicated by the terminal clock 23 and the standard time. Note that the time difference information in this case includes an error corresponding to a transmission delay time caused by a server time transmission process from the server device 4 to the terminal device 3.

(第1の実施形態における打刻処理)
図5及び図6は第1の実施形態における打刻システム1の打刻処理を示している。この打刻システム1の打刻処理動作について図5のフローチャートを参照し、特にオフライン時の動作について図6のタイミングチャートを参照しながら以下に説明する。
(Holding process in the first embodiment)
5 and 6 show a stamping process of the stamping system 1 in the first embodiment. The stamping process operation of the stamping system 1 will be described below with reference to the flowchart of FIG. 5, and particularly the offline operation with reference to the timing chart of FIG.

打刻システム1において、端末装置3は、サーバ装置4との接続状態(オンライン状態又はオフライン状態)及び従業員による打刻入力を常時監視する待機状態(ステップS11〜S13)となっている。この待機状態では、実際には、接続状態や打刻入力以外にも、各種操作入力や、定期的あるいは周期的な起動プログラム等も同時に監視するが、これらの説明は省略する。以下では、便宜上、接続状態の判断後に打刻入力の認識を行う例を説明するが、これらは同時に行われていてもよく、又は逆の順序で行われてもよい。   In the time stamping system 1, the terminal device 3 is in a standby state (steps S11 to S13) in which the state of connection with the server device 4 (online state or offline state) and the time stamp input by employees are constantly monitored. In this standby state, actually, in addition to the connection state and the time stamp input, various operation inputs, a periodic or periodic startup program, etc. are simultaneously monitored. In the following, for the sake of convenience, an example in which the stamped input is recognized after the determination of the connection state will be described, but these may be performed simultaneously or in the reverse order.

端末装置3は、待機状態の最初(ステップS11)に接続状態判断部32によって接続状態判断処理を行うことで、サーバ装置4との接続状態がオンライン状態であるかオフライン状態であるかを監視する。この接続状態判断処理では、例えば、端末装置3は、サーバ装置4の特定のアドレスにアクセスし、サーバ装置4から一定時間内の応答の有無を確認することにより、サーバ装置4との間がオンライン状態であるかオフライン状態であるかを判断する。例えば図6では、タイミングT11以前ではオンライン状態と判断され、タイミングT11より後ではオフライン状態と判断される。この判断結果に基づいて、オンライン状態又はオフライン状態の別を状態監視フラグに設定して端末記憶部22に記憶すると共に表示部24に表示する。   The terminal device 3 monitors whether the connection state with the server device 4 is an online state or an offline state by performing a connection state determination process by the connection state determination unit 32 at the beginning of the standby state (step S11). . In this connection state determination process, for example, the terminal device 3 accesses a specific address of the server device 4 and confirms whether or not there is a response within a predetermined time from the server device 4, so that the server device 4 is online. Determine whether the status is offline or offline. For example, in FIG. 6, the online state is determined before the timing T11, and the offline state is determined after the timing T11. Based on the determination result, whether the online state or the offline state is set as a state monitoring flag and stored in the terminal storage unit 22 and displayed on the display unit 24.

また、接続状態判断部32により、接続状態のオフライン状態からオンライン状態への切り換えを検出した場合(ステップS11:YES)には、端末記憶部22にオフライン打刻データが記憶されているか否かの判断を行う(ステップS12)。一方、オフライン状態からオンライン状態への切り換えがないと判断した場合(ステップS11:NO)には、打刻入力の判断(ステップS13)へと進む。ステップS12において、端末記憶部22にオフライン打刻データが記憶されていない場合(ステップS12:NO)には、待機状態の最初(ステップS11)へと戻るが、記憶されている場合(ステップS12:YES)には、オフライン打刻の確定処理(ステップS23)へと移行する。このオフライン打刻確定処理については後述する。 Further, when the connection state determination unit 32 detects that the connection state is switched from the offline state to the online state (step S11: YES), it is determined whether the offline stamp data is stored in the terminal storage unit 22 or not. A determination is made (step S12). On the other hand, when it is determined that there is no switching from the offline state to the online state (step S11: NO), the process proceeds to the determination of the stamp input (step S13). In step S12, when the offline stamp data is not stored in the terminal storage unit 22 (step S12: NO), the process returns to the first standby state (step S11), but is stored (step S12: YES), the process proceeds to the offline marking determination process (step S23). This off-line stamp determination process will be described later.

そして、端末装置3は、打刻入力の判断(ステップS13)において、従業員が打刻入力を行うと、端末装置3の打刻入力認識部31は、この打刻入力を認識し(ステップS13:YES)、打刻入力がない場合には、(ステップS13:NO)には、待機状態の最初(ステップS11)へと戻る。   When the terminal device 3 determines the time stamp input (step S13) and the employee performs the time stamp input, the time stamp input recognition unit 31 of the terminal device 3 recognizes the time stamp input (step S13). : YES), if there is no time stamp input (NO in step S13), the process returns to the first standby state (step S11).

ここで、打刻入力は、具体的には次のように行われる。即ち、先ず、従業員は端末装置3の表示部24に表示された打刻種別を確認後、必要に応じて入力部27を操作し、所望の打刻種別を選択又は変更する。打刻種別には、例えば出勤時刻、退勤時刻、外出時刻及び戻り時刻がある。続いて、従業員は、自己の所持するICカード6をICカードリーダ5に接近又は接触させ、これにより、当該従業員の従業員識別情報がICカード6からICカードリーダ5に送信される。そして、ICカードリーダ5は、当該従業員識別情報を受信して端末装置3に出力する。当該従業員識別情報が端末装置3に入力されると、打刻入力認識部31はこの旨を認識する。即ち、ICカードリーダ5及び打刻入力認識部31によって、従業員の打刻入力を監視している。なお、端末装置3は、例えば従業員の勤務時間規則に応じて予め設定された時間帯により打刻種別を自動的に選択する機能を有している。従業員が勤務時間規則に沿って通常の出勤、退勤等を行う場合には、従業員は、端末装置3により自動的に選択された打刻種別を、打刻入力を行う際に変更する必要がない。しかし、例えば臨時の特別の業務を担当している従業員のように、出勤、退勤等の時間が通常でない場合には、当該従業員は、端末装置3により自動的に選択された打刻種別を、打刻入力を行う際に入力部27を操作して適宜変更することができる。   Here, the stamping input is specifically performed as follows. That is, first, after confirming the stamp type displayed on the display unit 24 of the terminal device 3, the employee operates the input unit 27 as necessary to select or change a desired stamp type. As the type of stamping, there are, for example, attendance time, departure time, outing time, and return time. Subsequently, the employee brings the IC card 6 possessed by the employee closer to or in contact with the IC card reader 5, whereby employee identification information of the employee is transmitted from the IC card 6 to the IC card reader 5. Then, the IC card reader 5 receives the employee identification information and outputs it to the terminal device 3. When the employee identification information is input to the terminal device 3, the stamp input recognition unit 31 recognizes this. That is, the IC card reader 5 and the stamp input recognition unit 31 monitor employee stamp inputs. Note that the terminal device 3 has a function of automatically selecting a stamping type according to a time zone set in advance according to, for example, an employee's working hours rule. When an employee performs regular attendance, leaving work, etc. in accordance with the working hours rules, the employee must change the stamp type automatically selected by the terminal device 3 when performing stamp input. There is no. However, if, for example, an employee in charge of temporary special work does not have a normal time to attend, leave, etc., the employee will automatically select the stamp type selected by the terminal device 3. These can be appropriately changed by operating the input unit 27 when performing the stamping input.

このようにして打刻入力認識部31が打刻入力を認識すると、端末装置3の接続状態判断部32が、端末記憶部22に記憶された状態監視フラグに基づいて、端末装置3とサーバ装置4との接続状態がオンライン状態であるかオフライン状態であるかを判断する(ステップS14)。このとき、オンライン状態である場合(ステップS14:YES)には、オンライン打刻処理(ステップS15)へと移行し、オフライン状態である場合(ステップS14:NO)には、オフライン打刻処理(ステップS20)へと移行する。   When the time stamp input recognizing unit 31 recognizes the time stamp input in this manner, the connection state determination unit 32 of the terminal device 3 is connected to the terminal device 3 and the server device based on the state monitoring flag stored in the terminal storage unit 22. 4 is determined whether the connection state with the terminal 4 is an online state or an offline state (step S14). At this time, if it is in an online state (step S14: YES), the process proceeds to an online stamping process (step S15). If it is in an offline state (step S14: NO), an offline stamping process (step S14). The process proceeds to S20).

先ず、オンライン打刻処理では、端末装置3の端末通信制御部33が、(a)第1の打刻要求、(b)打刻入力の際にICカード6から取得した従業員識別情報、(c)打刻入力時の打刻種別を示す打刻種別情報、(d)打刻入力時に端末装置3とサーバ装置4とがオンライン状態であることを示す接続状態情報、及び(e)端末装置3の識別情報である端末IDを含むオンライン打刻データをサーバ装置4へ送信する(ステップS15)。なお、接続状態情報は、端末記憶部22に記憶された状態監視フラグに基づいて生成することができる。また、端末装置3では、オンライン打刻データの送信後、待機状態の最初(ステップS11)へと戻る。   First, in the online stamping process, the terminal communication control unit 33 of the terminal device 3 (a) a first stamping request, (b) employee identification information acquired from the IC card 6 at the time of stamping input, ( c) Stamp type information indicating the stamp type at the time of stamp input, (d) Connection status information indicating that the terminal device 3 and the server device 4 are online at the time of stamp input, and (e) the terminal device. 3 is transmitted to the server device 4 (step S15). The connection state information can be generated based on the state monitoring flag stored in the terminal storage unit 22. Moreover, in the terminal device 3, after transmitting online stamping data, it returns to the beginning of the standby state (step S11).

このオンライン打刻データをサーバ装置4のサーバ通信制御部51が受信して第1の打刻要求、従業員識別情報、打刻種別情報、接続状態情報及び端末IDを取得する(ステップS16)。サーバ装置4の確定打刻部52は、受信した打刻要求が第1の打刻要求であるか第2の打刻要求であるかを判断し、今回は第1の打刻要求であると判断する。そして、確定打刻部52は、サーバ時計43からサーバ時刻を読み取る処理、受信した従業員識別情報とサーバ記憶部42に予め記憶されている従業員管理情報とを照らし合わせて従業員を特定する処理、及び受信した打刻種別情報に基づいて打刻種別を特定する処理を行う。続いて、確定打刻部52は、サーバ時計43から読み取ったサーバ時刻を、特定した従業員の、特定した打刻種別に属する確定打刻時刻としてサーバ記憶部42に記憶する(ステップS17)。また、確定打刻部52は、端末装置3から受信した接続状態情報及び端末IDを当該確定打刻時刻と関連付けて確定打刻データとしてサーバ記憶部42に記憶する。更に、サーバ装置4のサーバ通信制御部51が、サーバ記憶部42に記憶した確定打刻時刻を端末装置3へ送信する(ステップS18)。   The server communication control unit 51 of the server device 4 receives this online stamping data, and acquires the first stamping request, employee identification information, stamping type information, connection status information, and terminal ID (step S16). The fixed marking unit 52 of the server device 4 determines whether the received stamping request is the first stamping request or the second stamping request, and this time is the first stamping request. to decide. Then, the final marking unit 52 identifies the employee by comparing the received server identification information with the process of reading the server time from the server clock 43 and the received employee identification information in advance in the server storage unit 42. The process and the process of specifying the stamp type based on the received stamp type information are performed. Subsequently, the confirmed time stamping unit 52 stores the server time read from the server clock 43 in the server storage unit 42 as the confirmed time stamp belonging to the specified time stamping type of the identified employee (step S17). In addition, the definitive stamping unit 52 stores the connection state information and the terminal ID received from the terminal device 3 in the server storage unit 42 as definitive stamping data in association with the definitive stamping time. Furthermore, the server communication control part 51 of the server apparatus 4 transmits the fixed time stamp memorize | stored in the server memory | storage part 42 to the terminal device 3 (step S18).

端末装置3の端末通信制御部33が確定打刻時刻を受信すると、端末装置3の表示制御部35が、受信した確定打刻時刻を表示部24に表示する(ステップS19)。これにより、所定の打刻入力に係るオンライン打刻データの処理は終了するが、端末装置3では、オンライン打刻データの送信(ステップS15)の後で待機状態の最初(ステップS11)へと戻るため、打刻処理が繰り返されることとなる。   When the terminal communication control unit 33 of the terminal device 3 receives the confirmed time stamp, the display control unit 35 of the terminal device 3 displays the received confirmed time stamp on the display unit 24 (step S19). As a result, the processing of the online stamping data relating to the predetermined stamping input is completed, but the terminal device 3 returns to the beginning of the standby state (step S11) after the transmission of the online stamping data (step S15). Therefore, the engraving process is repeated.

一方、オフライン打刻処理では、端末装置3の経過時間制御部34が、打刻入力認識部31で認識した今回の打刻入力がオフライン状態での最初の打刻か否かを判定する(ステップS20)。経過時間制御部34は、例えば、オフライン打刻データの有無、即ち、第2の打刻要求、経過時間情報、従業員識別情報、打刻種別情報、接続状態情報及び端末IDが端末記憶部22に記憶されているか否かを確認する。ここで、オフライン打刻データが無ければ最初の打刻と判断し(ステップS20:YES)、オフライン打刻データがあれば二回目以降の打刻と判断する(ステップS20:NO)。例えば図6では、タイミングT12における打刻が最初の打刻と判断され、タイミングT13における打刻が二回目の打刻と判断される。   On the other hand, in the offline stamping process, the elapsed time control unit 34 of the terminal device 3 determines whether or not the current stamping input recognized by the stamping input recognition unit 31 is the first stamping in the offline state (step). S20). The elapsed time control unit 34 has, for example, the presence or absence of offline stamping data, that is, the second stamping request, elapsed time information, employee identification information, stamping type information, connection status information, and terminal ID are stored in the terminal storage unit 22. It is confirmed whether it is memorized in. Here, if there is no offline time stamp data, it is determined that the time stamp is the first time stamp (step S20: YES), and if there is offline time stamp data, it is determined that the time stamp is the second time or later (step S20: NO). For example, in FIG. 6, the stamp at timing T12 is determined as the first stamp, and the stamp at timing T13 is determined as the second stamp.

最初の打刻の場合では、経過時間制御部34は、経過時間の計測開始を経過時間計測部37に指示し、経過時間計測部37は、経過時間カウント値を0クリア(リセット)すると共に経過時間のカウントを開始する(ステップS21)。   In the case of the first time stamp, the elapsed time control unit 34 instructs the elapsed time measurement unit 37 to start measuring the elapsed time, and the elapsed time measurement unit 37 clears (resets) the elapsed time count value to 0 and passes. Time counting is started (step S21).

次に、経過時間制御部34は、経過時間の計測開始の後、又は打刻を二回目以降と判断した後に、経過時間の計測を経過時間計測部37に指示して、打刻時の経過時間カウント値Taを経過時間計測部37から読み取る(ステップS22)。例えば、経過時間計測部37は、計測の指示があったときの経過時間カウント値Taを経過時間制御部34へと応答する。このとき、最初の打刻だった場合はTa=0となる。また、経過時間制御部34は、経過時間計測部37から読み取った経過時間カウント値Taを経過時間情報として記憶する。   Next, the elapsed time control unit 34 instructs the elapsed time measurement unit 37 to measure the elapsed time after starting the measurement of the elapsed time, or after determining the second or later stamping, and the elapsed time at the time of the stamping. The time count value Ta is read from the elapsed time measuring unit 37 (step S22). For example, the elapsed time measuring unit 37 responds to the elapsed time control unit 34 with the elapsed time count value Ta when there is a measurement instruction. At this time, if it is the first stamp, Ta = 0. The elapsed time control unit 34 stores the elapsed time count value Ta read from the elapsed time measuring unit 37 as elapsed time information.

更に、経過時間制御部34は、(a)経過時間情報、(b)打刻入力の際にICカード6から取得した従業員識別情報、(c)打刻入力時の打刻種別を示す打刻種別情報、(d)打刻入力時に端末装置3とサーバ装置4とがオフライン状態であることを示す接続状態情報、及び(e)端末装置3の端末IDを含むオフライン打刻データを暗号化し、この暗号化したオフライン打刻データを端末記憶部22に記憶する。   Further, the elapsed time control unit 34 (a) elapsed time information, (b) employee identification information acquired from the IC card 6 at the time of stamping input, and (c) a stamp indicating the stamping type at the time of stamping input. Encryption type information, (d) connection state information indicating that the terminal device 3 and the server device 4 are in an offline state at the time of input, and (e) offline time stamp data including the terminal ID of the terminal device 3 are encrypted. The encrypted offline stamp data is stored in the terminal storage unit 22.

その後、待機状態の最初(ステップS11)へと戻り、端末装置3とサーバ装置4との接続状態(オンライン状態又はオフライン状態)及び従業員による打刻入力を常時監視する。このとき、各種操作入力や、定期的あるいは周期的な起動プログラム等も同時に監視し、いずれかのイベントが行われた場合には各処理を行う。例えば、二回目以降の新たな打刻入力が行われた場合(ステップS13:YES)には、ステップS14、S20からS22までの処理を繰り返し行い、新たな打刻に係るオフライン打刻データをその都度追加して端末記憶部22に記憶する。   Thereafter, the process returns to the first standby state (step S11), and the connection state (online state or offline state) between the terminal device 3 and the server device 4 and the time stamp input by the employee are constantly monitored. At this time, various operation inputs, a periodic or periodic activation program, and the like are simultaneously monitored, and each process is performed when any event occurs. For example, when a new stamping input is made after the second time (step S13: YES), the processes from steps S14, S20 to S22 are repeated, and the offline stamping data relating to the new stamping is stored. It is added each time and stored in the terminal storage unit 22.

そして、接続状態判断部32がオフライン状態からオンライン状態への切り換えを検出した場合(ステップS11:YES)、端末記憶部22にオフライン打刻データが記憶されているため(ステップS12:YES)、オフライン打刻の確定処理(ステップS23)へと移行する。例えば図6では、タイミングT14以後にオンライン状態を検出することができる。   And when the connection state judgment part 32 detects the switching from an offline state to an online state (step S11: YES), since offline stamping data is memorize | stored in the terminal memory | storage part 22 (step S12: YES), it is offline. The process proceeds to the marking confirmation process (step S23). For example, in FIG. 6, the online state can be detected after timing T14.

オフライン打刻確定処理(ステップS23)では、端末装置3の経過時間制御部34が、先ず、端末記憶部22に記憶されたオフライン打刻データを復号する。続いて、経過時間制御部34は、経過時間の計測終了を経過時間計測部37に指示し、経過時間計測部37は、計測終了の指示に応じて経過時間のカウントを終了する。また、経過時間制御部34は、この終了時の経過時間カウント値(オンライン状態になるまでの経過時間)を終了時カウント値Te(オフライン終了時経過時間)として経過時間計測部37から読み取る。   In the offline time stamp determination process (step S23), the elapsed time control unit 34 of the terminal device 3 first decrypts the offline time stamp data stored in the terminal memory unit 22. Subsequently, the elapsed time control unit 34 instructs the elapsed time measurement unit 37 to end the measurement of the elapsed time, and the elapsed time measurement unit 37 ends the counting of the elapsed time in response to the measurement end instruction. The elapsed time control unit 34 reads the elapsed time count value at the end (elapsed time until the online state is reached) from the elapsed time measuring unit 37 as the end time count value Te (offline end time elapsed time).

更に、経過時間制御部34は、復号したオフライン打刻データの経過時間情報(経過時間カウント値Ta)とオフライン終了時経過時間(終了時カウント値Te)とに基づいて、各打刻に係る打刻後経過時間(処理後経過時間)を、例えば終了時カウント値Teから経過時間カウント値Taを減算(Te−Ta)し、割込信号の周期を乗算することによって算出する。   Further, the elapsed time control unit 34, based on the elapsed time information (elapsed time count value Ta) of the decrypted offline time stamped data and the offline end time elapsed time (end time count value Te), The elapsed time after processing (elapsed time after processing) is calculated by, for example, subtracting the elapsed time count value Ta from the end-time count value Te (Te-Ta) and multiplying by the period of the interrupt signal.

次に、端末装置3の端末通信制御部33が、第2の打刻要求と共に、算出した打刻後経過時間と、復号したオフライン打刻データの従業員識別情報、打刻種別情報、接続状態情報及び端末IDを含むオフライン打刻データを打刻毎に再構成し、サーバ装置4へと送信する。このようにして、端末記憶部22に記憶されたオフライン打刻データを全てサーバ装置4に送信する。なお、打刻後経過時間、従業員識別情報、打刻種別情報、接続状態情報及び端末IDをそれぞれ暗号化したままサーバ装置4に送信し、サーバ装置4でこれらの情報を復号してもよい。また、端末装置3では、オフライン打刻データの送信後、待機状態の最初(ステップS11)へと戻る。   Next, the terminal communication control unit 33 of the terminal device 3 calculates the elapsed time after stamping, employee identification information of the decrypted offline stamping data, stamping type information, connection state, together with the second stamping request. Offline stamping data including information and terminal ID is reconstructed for each stamping and transmitted to the server device 4. In this way, all the offline stamping data stored in the terminal storage unit 22 is transmitted to the server device 4. The elapsed time after stamping, employee identification information, stamping type information, connection status information, and terminal ID may be transmitted to the server device 4 while being encrypted, and the server device 4 may decrypt these information. . The terminal device 3 returns to the beginning of the standby state (step S11) after transmitting the offline time stamp data.

サーバ装置4では、サーバ通信制御部51がオフライン打刻データを受信して(ステップS24)、第2の打刻要求、打刻後経過時間、従業員識別情報、打刻種別情報、接続状態情報及び端末IDを取得する。確定打刻部52は、受信した打刻要求が第1の打刻要求であるか第2の打刻要求であるかを判断し、今回は第2の打刻要求であると判断する。   In the server device 4, the server communication control unit 51 receives the offline stamping data (step S24), the second stamping request, the elapsed time after stamping, employee identification information, stamping type information, connection state information. And the terminal ID are acquired. The definitive stamping unit 52 determines whether the received stamping request is the first stamping request or the second stamping request, and this time is determined to be the second stamping request.

そして、確定打刻部52は、サーバ時計43から現在のサーバ時刻を読み取る処理、受信した従業員識別情報とサーバ記憶部42に予め記憶されている従業員管理情報とを照らし合わせて従業員を特定する処理、及び受信した打刻種別情報に基づいて打刻種別を特定する処理を行う。続いて、確定打刻部52は、受信した打刻後経過時間を現在のサーバ時刻から差し引いた時刻を確定打刻時刻(確定処理時刻)として算出し、特定した従業員の、特定した打刻種別に属する確定打刻時刻としてサーバ記憶部42に記憶する(ステップS25)。   Then, the final marking unit 52 compares the received server identification information with the process of reading the current server time from the server clock 43 and the employee management information stored in the server storage unit 42 in advance. A process for specifying and a process for specifying the stamp type based on the received stamp type information are performed. Subsequently, the confirmed time stamping unit 52 calculates a time obtained by subtracting the received elapsed time after the time stamping from the current server time as a confirmed time stamp (a confirmed processing time), and the identified time stamp of the identified employee is identified. It memorize | stores in the server memory | storage part 42 as the fixed time stamp which belongs to a classification (step S25).

また、確定打刻部52は、算出した確定打刻時刻が、前回の時刻差算出処理でサーバ記憶部42の時刻差算出履歴(オンライン確認履歴)に記録した時刻差算出時刻(オンライン確認時刻)と現在のサーバ時刻との間にあるか否かを確認(チェック)して、この範囲内に無い場合に打刻時刻範囲エラーフラグをセット(エラーありに設定)し、範囲内にある場合は打刻時刻範囲エラーフラグをリセット(エラーなしに設定)する。更に、確定打刻部52は、この打刻時刻範囲エラーフラグ、並びに端末装置3から受信した接続状態情報及び端末IDを当該確定打刻時刻に関連付けて確定打刻データとしてサーバ記憶部42に記憶する。このようにして、端末装置3から送信されたオフライン打刻データを打刻毎に確定処理する。これにより、所定の打刻入力に係るオフライン打刻データの処理は終了するが、端末装置3では、オフライン打刻データの送信(ステップS23)の後で待機状態の最初(ステップS11)へと戻るため、打刻処理が繰り返されることとなる。   Further, the confirmed time stamping unit 52 calculates the time difference calculation time (online confirmation time) in which the calculated confirmed time stamp is recorded in the time difference calculation history (online confirmation history) of the server storage unit 42 in the previous time difference calculation process. Check if it is between the current server time and the current server time. If it is not within this range, set the time stamp range error flag (set with error). If it is within the range Reset the time stamp range error flag (set no error). Further, the confirmed time stamp unit 52 stores the time stamp range error flag, the connection status information received from the terminal device 3 and the terminal ID in the server storage unit 42 as the confirmed time stamp data in association with the confirmed time stamp. To do. In this manner, the offline marking data transmitted from the terminal device 3 is determined for each marking. As a result, the processing of the offline time stamp data relating to the predetermined time stamp input is completed, but the terminal device 3 returns to the beginning of the standby state (step S11) after the transmission of the offline time stamp data (step S23). Therefore, the engraving process is repeated.

第1の実施形態における時刻差算出処理は、例えば、端末装置3、サーバ装置4及び通信網2によって実現可能な最も速い速度で実行される。この結果、オンライン打刻において従業員がICカードリーダ5に対して打刻入力を行ってから、従業員が端末装置3の表示部24に表示された確定打刻時刻を確認するまでの時間や、オフライン打刻において従業員がICカードリーダ5に対して打刻入力を行ってから、暗号化された経過時間情報等が端末記憶部22に記憶されるまでの間の時間はきわめて短く、人間の感覚において一瞬である。また、サーバ装置4のサーバ時計43は、上述したように、常時、標準時と合致した時刻を示している。確定打刻時刻は、正確なサーバ時計43から読み取ったサーバ時刻を基準にして決定されるため、たとえ端末装置3の端末時計23が不正確な時刻を示していても、確定打刻時刻が不正確な時刻となることはない。   The time difference calculation process in the first embodiment is executed, for example, at the fastest speed that can be realized by the terminal device 3, the server device 4, and the communication network 2. As a result, the time from when the employee inputs the time stamp to the IC card reader 5 in the online time stamp until the employee confirms the final time stamp displayed on the display unit 24 of the terminal device 3. In the offline stamping, the time from when the employee inputs a stamp to the IC card reader 5 until the encrypted elapsed time information is stored in the terminal storage unit 22 is extremely short. In the sense of the moment. Further, as described above, the server clock 43 of the server device 4 always indicates a time that matches the standard time. The fixed time stamp is determined based on the server time read from the accurate server clock 43. Therefore, even if the terminal clock 23 of the terminal device 3 indicates an incorrect time, the final time stamp is not correct. There is no exact time.

また、上述したように、オンライン時に打刻入力が行われた場合には、打刻入力に対応する確定打刻時刻を端末装置3の表示部24に表示する。これにより、打刻入力を行った従業員に、サーバ記憶部42に実際に記憶された打刻時刻を確認させることができ、次のようなメリットが得られる。例えば、端末装置3の端末時計23が示す時刻が、サーバ装置4のサーバ時計43が示す時刻と異なっており、このことに従業員が気付いていない場合には、従業員の認識と異なる打刻時刻が日々記憶され、この結果、従業員の認識と異なる給与計算(例えば、従業員が認識していない遅刻や早退に基づく給与計算)が行われる場合がある。この場合、身に覚えのない遅刻や早退により給与が減っていることを知った従業員は大いに困惑することであろう。本実施形態による打刻システム1によれば、このような不都合を防止することができる。また、確定打刻時刻を端末装置3の表示部24に表示する際に、「遅刻」や「時間外」等のアラーム表示を同時に行うとなおよい。例えばサーバ装置4にて、予め設定された定時間帯や休憩時間等の勤務シフトの設定により、確定打刻時刻から「遅刻」や「時間外」の判定を行い、その結果を確定打刻時刻と一緒に送信すればよい。また、この判定処理を端末装置3で行ってもよい。   Further, as described above, when the time stamp input is performed on-line, the final time stamp corresponding to the time stamp input is displayed on the display unit 24 of the terminal device 3. Thereby, the employee who performed the time stamping input can confirm the time stamping actually stored in the server storage unit 42, and the following merit is obtained. For example, when the time indicated by the terminal clock 23 of the terminal device 3 is different from the time indicated by the server clock 43 of the server device 4 and the employee is not aware of this, the time stamp is different from the employee's recognition. The time is stored every day, and as a result, a salary calculation different from the employee's recognition (for example, a salary calculation based on lateness or early departure that the employee does not recognize) may be performed. In this case, employees who know that their salary is decreasing due to late arrivals or early departures will be greatly confused. According to the stamping system 1 according to the present embodiment, such inconvenience can be prevented. Further, when displaying the fixed time stamp on the display unit 24 of the terminal device 3, it is more preferable to simultaneously display alarms such as “late time” and “out of time”. For example, the server device 4 determines “late” or “overtime” from the fixed time by setting a work shift such as a preset time slot or break time, and the result is determined time Just send it along with. Further, this determination process may be performed by the terminal device 3.

また、今まで不具合が生じていた通信網が回復したために端末装置3とサーバ装置4との間がオフライン状態からオンライン状態へ切り換わったとき、あるいは端末装置3又はサーバ装置4の管理者が端末装置3とサーバ装置4との間をオフライン状態からオンライン状態へ切り換えたとき、端末装置3は、オフライン状態の間に端末記憶部22に記憶された全てのオフライン打刻データをサーバ装置4へ送信する。そして、端末装置3は、送信が完了したオフライン打刻データを端末記憶部22から消去する。   In addition, when the communication network in which a problem has occurred so far has recovered, the terminal device 3 and the server device 4 are switched from the offline state to the online state, or the administrator of the terminal device 3 or the server device 4 When the device 3 and the server device 4 are switched from the offline state to the online state, the terminal device 3 transmits all the offline stamped data stored in the terminal storage unit 22 to the server device 4 during the offline state. To do. Then, the terminal device 3 deletes the offline stamped data whose transmission has been completed from the terminal storage unit 22.

また、1つの打刻処理に関するオフライン打刻データは相互に関連付けられて端末記憶部22に記憶される。従って、オフライン状態中に、複数の従業員が1つの端末装置3に対して打刻入力を行ったために複数組のオフライン打刻データが端末記憶部22に記憶されても、これら複数組のオフライン打刻データを、従業員毎に区別することができる。   Further, the offline stamping data relating to one stamping process is associated with each other and stored in the terminal storage unit 22. Therefore, even if a plurality of sets of offline time stamping data are stored in the terminal storage unit 22 because a plurality of employees input time stamps to one terminal device 3 during the offline state, Time stamp data can be distinguished for each employee.

このような打刻処理によれば、オフライン状態のときに端末装置3に対して打刻入力が行われた場合でも、打刻入力が行われた正確な時刻を確定打刻時刻としてサーバ装置4に設けられたサーバ記憶部42に記憶することができる。従って、複数の事業所を有する会社において、各事業所に端末装置3を設置することにより、各事業所において各従業員により端末装置3に対して行われる打刻入力に対応する打刻時刻をサーバ装置4に集約することができる。そして、サーバ装置4において、集約された打刻時刻を用いて、複数の事業所における複数の従業員の一括的且つ一元的な就業管理を確実に行うことができる。   According to such a time stamping process, even when a time stamp is input to the terminal device 3 in the offline state, the server device 4 uses the exact time when the time stamp input is performed as the final time stamp. Can be stored in the server storage unit 42 provided in the server. Accordingly, in a company having a plurality of business establishments, by installing the terminal device 3 at each business establishment, the time stamping corresponding to the time stamping input performed on the terminal device 3 by each employee at each business establishment is provided. The server device 4 can be consolidated. In the server device 4, it is possible to reliably perform collective and unified work management of a plurality of employees at a plurality of business establishments using the aggregated time stamping.

また、端末装置3の端末時計23が示す時刻がサーバ装置4のサーバ時計43が示す時刻と異なる場合でも、打刻後経過時間を計測することによりサーバ時計43が示す時刻に正確に合致した(端末時計23に依存しない)打刻時刻をサーバ装置4のサーバ記憶部42に記憶することができる。これにより、打刻入力がオフライン時に行われたか、オンライン時に行われたかによってサーバ装置4のサーバ記憶部42に記憶される打刻時刻が異なってしまうといった不都合を防止することができる。また、複数の事業所を有する会社において事業所毎に端末装置3を設置した場合には、打刻入力を行った端末装置3が異なることによってサーバ装置4のサーバ記憶部42に記憶される打刻時刻が異なってしまうといった不都合を防止することができる。従って、打刻時刻を用いた就業管理の公平性及び信頼性を確保することができる。また、端末装置3での経過時間の計測は、オフライン状態時のみ行われるため、この計測により生じる負荷は最小限に抑えられ、オンライン状態時にサーバ装置4との通信に影響を与えることがない。   Even when the time indicated by the terminal clock 23 of the terminal device 3 is different from the time indicated by the server clock 43 of the server device 4, the elapsed time after stamping is accurately matched with the time indicated by the server clock 43 ( The time stamped (not dependent on the terminal clock 23) can be stored in the server storage unit 42 of the server device 4. Accordingly, it is possible to prevent the inconvenience that the time stamp stored in the server storage unit 42 of the server device 4 differs depending on whether the time stamp input is performed offline or online. In addition, when a terminal device 3 is installed for each business site in a company having a plurality of business sites, the terminal device 3 that has performed the time-stamped input differs depending on the type of data stored in the server storage unit 42 of the server device 4. It is possible to prevent the inconvenience that the clock time is different. Accordingly, it is possible to ensure fairness and reliability of work management using the time stamped. In addition, since the elapsed time in the terminal device 3 is measured only in the offline state, the load caused by this measurement is minimized, and communication with the server device 4 is not affected in the online state.

また、オフライン打刻データを端末装置3の端末記憶部22に暗号化して記憶することにより、打刻時刻の改ざんにより打刻時刻の正確性又は信頼性が損なわれることを防止することができる。   Further, by encrypting and storing the offline time stamping data in the terminal storage unit 22 of the terminal device 3, it is possible to prevent the accuracy or reliability of the time stamping from being impaired due to tampering with the time stamping.

また、確定打刻時刻と関連付けてサーバ記憶部42に記憶した接続状態情報により、オンライン状態での打刻入力だったのか、オフライン状態での打刻入力だったのかを事後的に特定することができる。また、確定打刻時刻と関連付けてサーバ記憶部42に記憶した端末IDにより、打刻入力が行われた具体的な端末装置3を事後的に特定することができる。   In addition, it is possible to specify afterwards whether the entry was made in the online state or the entry in the offline state based on the connection state information stored in the server storage unit 42 in association with the fixed time. it can. Moreover, the specific terminal device 3 in which the time stamp input has been performed can be identified afterwards by the terminal ID stored in the server storage unit 42 in association with the fixed time stamp.

更に、確定打刻時刻と関連付けてサーバ記憶部42に記憶した打刻時刻範囲エラーフラグにより、確定打刻時刻が前回の時刻差算出時刻と現サーバ時刻との範囲外となる異常値(打刻時刻の不正が行われたもの)だったのかを事後的に特定することができる。これらの接続状態情報、端末ID及び打刻時刻範囲エラーフラグは、確定打刻時刻の精査を行う際に有用である。オンライン時の打刻処理においてサーバ記憶部42に記憶された接続状態情報及び端末IDについても同様である。   Furthermore, an abnormal value (time stamp) in which the final time stamp is out of the range between the previous time difference calculation time and the current server time by the time stamp range error flag stored in the server storage unit 42 in association with the final time stamp. It is possible to specify afterwards whether the time was fraudulent. These connection status information, terminal ID, and time stamp range error flag are useful when examining the final time stamp. The same applies to the connection status information and the terminal ID stored in the server storage unit 42 in the online stamping process.

(打刻画面)
図7及び図8は端末装置3の表示部24に表示される打刻画面を示している。打刻画面61には、現在時刻が表示される時刻表示領域62と、端末装置3とサーバ装置4の現時点における接続状態(オンライン状態かオフライン状態か)が表示される接続状態表示領域63と、打刻種別が表示される打刻種別表示領域64と、打刻情報やエラー情報等の操作者への各種通知を表示するメッセージ表示領域65が形成されている。時刻表示領域62には、端末時計23から読み取られた時刻がそのまま表示される。なお、端末時計23から読み取った時刻を端末記憶部22に記憶された時刻差情報を用いて修正し、修正後の時刻を時刻表示領域62に表示してもよい。
(Stamped screen)
FIGS. 7 and 8 show a stamping screen displayed on the display unit 24 of the terminal device 3. On the time stamp screen 61, a time display area 62 where the current time is displayed, a connection status display area 63 where the current connection status (online status or offline status) of the terminal device 3 and the server device 4 is displayed, A stamp type display area 64 for displaying the stamp type and a message display area 65 for displaying various notifications to the operator such as stamp information and error information are formed. In the time display area 62, the time read from the terminal clock 23 is displayed as it is. Note that the time read from the terminal clock 23 may be corrected using the time difference information stored in the terminal storage unit 22, and the corrected time may be displayed in the time display area 62.

図7に示すように、オンライン状態のときには、メッセージ表示領域65には、打刻入力と同時に確定打刻時刻が「退勤 18:30 受け付けました」のように表示される。打刻入力を行った従業員は、時刻表示領域62に表示された現在時刻と、メッセージ表示領域65に配置された確定打刻時刻とを比較し、時刻表示領域62に表示された現在時刻と異なる時刻が打刻時刻としてサーバ装置4に記憶された場合には、その旨を知ることができる。一方、図8に示すように、オフライン状態のときには、メッセージ表示領域65に、端末時計23から読み取った現在時刻に端末記憶部22に記憶された時刻差情報を用いて修正した時刻を、打刻入力と同時に表示してもよい。この場合、打刻入力を行った従業員は、時刻表示領域62に表示された現在時刻と、メッセージ表示領域65に配置された現在時刻及び時刻差情報の修正後時刻とを比較し、時刻表示領域62に表示された現在時刻と異なる時刻が打刻時刻としてサーバ装置4に記憶される恐れがある場合には、その旨を知ることができ、注意が促される。   As shown in FIG. 7, in the online state, in the message display area 65, the confirmed time stamp is displayed as “Retired 18:30 accepted” simultaneously with the time stamp input. The employee who made the time stamp input compares the current time displayed in the time display area 62 with the confirmed time stamp placed in the message display area 65, and the current time displayed in the time display area 62 If a different time is stored in the server device 4 as a time stamp, this can be known. On the other hand, as shown in FIG. 8, in the offline state, the time corrected using the time difference information stored in the terminal storage unit 22 at the current time read from the terminal clock 23 is stamped in the message display area 65. It may be displayed simultaneously with the input. In this case, the employee who performed the time stamp input compares the current time displayed in the time display area 62 with the current time arranged in the message display area 65 and the corrected time of the time difference information, and displays the time display. If there is a possibility that a time different from the current time displayed in the area 62 may be stored in the server device 4 as a time stamp, that fact can be known and attention is urged.

接続状態表示領域63には、現時点の接続状態がオンライン状態かオフライン状態かを、打刻入力を行う従業員が明確に区別することができるように表示することが望ましい。例えば、オンライン状態のときには、接続状態表示領域63を全面的に例えば緑色にし、「オンライン」という文字列を大きく表示することが望ましい。一方、オフライン状態のときには、接続状態表示領域63を全面的に例えば赤色にし、「オフライン」という文字列を大きく表示することが望ましい。なお、緑色と赤色は人間が明確に区別することができるので、これらの色の組み合わせを採用したが、例えば青色と黄色等、人間が明確に識別できる他の色の組み合わせを採用してもよい。   In the connection state display area 63, it is desirable to display whether the current connection state is an online state or an offline state so that the employee who performs the time stamp input can clearly distinguish. For example, in the online state, it is desirable to make the connection state display area 63 entirely green, for example, and display a large character string “online”. On the other hand, in the offline state, it is desirable that the connection state display area 63 is entirely red, for example, and the character string “offline” is displayed large. Since green and red can be clearly distinguished by humans, a combination of these colors is employed. However, other color combinations that can be clearly identified by humans, such as blue and yellow, may be employed. .

打刻種別表示領域64には、出勤、退勤、外出、戻りといった打刻種別が表示される。これらのうち、現在選択されている打刻種別を、他の打刻種別と比べて目立つ態様で表示する。   The stamp type display area 64 displays stamp types such as attendance, leaving, going out, and returning. Among these, the currently selected stamping type is displayed in a conspicuous manner as compared with other stamping types.

なお、図7及び図8に示されるような打刻画面の表示は、第1の実施形態に限定されず、後述する第2及び第3の実施形態にも適用可能である。   7 and 8 is not limited to the first embodiment, and can be applied to second and third embodiments described later.

(第2の実施形態における時刻差算出処理)
図9は第2の実施形態における端末装置3とサーバ装置4との時刻差算出処理を示している。第2の実施形態の時刻差算出の基本的な処理は、第1の実施形態と同様だが、時刻差算出時に経過時間の計測開始(即ち、リスタート)が指示され、この計測が端末装置3とサーバ装置4との接続状態に拘らず行われる点と、時刻差算出応答(開始要求応答)を端末装置3からサーバ装置4に返信することで伝送遅延時間等が加味されたより正確な時刻差算出時刻を算出する点で第1の実施形態と異なる。以下、具体的に説明する。
(Time difference calculation process in the second embodiment)
FIG. 9 shows a time difference calculation process between the terminal device 3 and the server device 4 in the second embodiment. The basic processing of time difference calculation of the second embodiment is the same as that of the first embodiment, but when the time difference is calculated, the start of measurement of elapsed time (that is, restart) is instructed, and this measurement is performed by the terminal device 3. More accurate time difference in consideration of transmission delay time and the like by returning a time difference calculation response (start request response) from the terminal device 3 to the server device 4. It differs from the first embodiment in that the calculation time is calculated. This will be specifically described below.

先ず、第2の実施形態の打刻システム1において、端末装置3によるサーバ時刻送信要求(オンライン確認要求)の送信(ステップS31及びS32)や、サーバ装置4によるサーバ時刻送信要求の受信(ステップS33)は、第1の実施形態の動作(ステップS1及びS2やステップS3)と同様である。   First, in the time stamping system 1 of the second embodiment, the server device 3 transmits a server time transmission request (online confirmation request) (steps S31 and S32), and the server device 4 receives a server time transmission request (step S33). ) Is the same as the operation of the first embodiment (steps S1 and S2 and step S3).

次に、サーバ装置4のサーバ通信制御部51は、第1の実施形態と同様にして、サーバ時刻送信要求の受信に応じてサーバ時計43から現時点のサーバ時刻を読み取り、読み取ったサーバ時刻(経過時間計測開始要求としての機能を含む)を端末装置3へ送信する(ステップS34)。更に、サーバ通信制御部51は、このサーバ時刻を開始要求送信時刻T1としてサーバ記憶部42に記録する。   Next, similarly to the first embodiment, the server communication control unit 51 of the server device 4 reads the current server time from the server clock 43 in response to the reception of the server time transmission request, and reads the read server time (elapsed time). (Including a function as a time measurement start request) is transmitted to the terminal device 3 (step S34). Further, the server communication control unit 51 records this server time in the server storage unit 42 as the start request transmission time T1.

一方、端末装置3側では、第1の実施形態と同様にして、サーバ時刻の送信(ステップS34)に対して、端末通信制御部33がサーバ時刻を受信する(ステップS35)。続いて、端末装置3の時刻差算出部36が、端末時計23の端末時刻を読み取り、この読み取った端末時刻と、受信したサーバ時刻との差を算出し、この算出結果を時刻差情報として端末記憶部22に記憶する(ステップS36)。   On the other hand, on the terminal device 3 side, as in the first embodiment, the terminal communication control unit 33 receives the server time in response to the transmission of the server time (step S34) (step S35). Subsequently, the time difference calculation unit 36 of the terminal device 3 reads the terminal time of the terminal clock 23, calculates the difference between the read terminal time and the received server time, and uses the calculation result as time difference information. It memorize | stores in the memory | storage part 22 (step S36).

更に、端末装置3の時刻差算出部36は、経過時間の計測開始を経過時間計測部37に指示し、経過時間計測部37は、経過時間カウント値を0クリア(リセット)すると共に経過時間のカウントを開始する(ステップS37、図11のタイミングT21参照)。   Furthermore, the time difference calculation unit 36 of the terminal device 3 instructs the elapsed time measurement unit 37 to start measuring the elapsed time, and the elapsed time measurement unit 37 clears (resets) the elapsed time count value to 0 and also calculates the elapsed time. Counting is started (see step S37, timing T21 in FIG. 11).

次に、端末装置3の端末通信制御部33が、時刻差算出応答(開始要求応答)をサーバ装置4へと送信する(ステップS38)。その後、端末装置3では、ステップS31に戻り、次の時刻差算出処理の待機状態になり、所定時間毎の時刻差算出処理を繰り返す。   Next, the terminal communication control unit 33 of the terminal device 3 transmits a time difference calculation response (start request response) to the server device 4 (step S38). Thereafter, the terminal device 3 returns to step S31, enters a standby state for the next time difference calculation process, and repeats the time difference calculation process every predetermined time.

また、サーバ装置4では、サーバ通信制御部51が端末装置3から時刻差算出応答(開始要求応答)を受信すると(ステップS39)、サーバ時計43から現時点のサーバ時刻を読み取り、読み取った現在時刻T2をサーバ記憶部42に記憶する。次に、サーバ通信制御部51は、サーバ記憶部42に記憶された開始要求送信時刻T1及び現在時刻T2に基づいて時刻差算出時刻を算出し(ステップS40)、例えば、所定の演算(T1+(T2−T1)÷2)によって算出する。サーバ通信制御部51がこの時刻差算出時刻(開始要求時刻、オンライン確認時刻)をサーバ記憶部42の時刻差算出履歴(経過時間計測開始履歴、オンライン確認履歴)に記録して(ステップS41)、サーバ側の処理が終了する。なお、この時刻差算出時刻(開始要求時刻)は、オフライン打刻時の確定処理における基準時間となる。この開始要求時刻は、サーバ装置4が経過時間計測開始要求を送信した時刻から、端末装置3が経過時間の計測開始を行い、開始要求応答を返信した後、サーバ装置4が開始要求応答を受信した時刻までの中間の時刻としているため、サーバ装置4からの送信に要する時間と端末装置3からの返信に要する時間との両方の伝送遅延時間を平均化した時間が加味されるため、より正確な経過時間計測の開始時刻がサーバ装置4で得られることとなる。   In the server device 4, when the server communication control unit 51 receives a time difference calculation response (start request response) from the terminal device 3 (step S39), the current server time is read from the server clock 43, and the read current time T2 is read. Is stored in the server storage unit 42. Next, the server communication control unit 51 calculates a time difference calculation time based on the start request transmission time T1 and the current time T2 stored in the server storage unit 42 (step S40), for example, a predetermined calculation (T1 + ( Calculated by T2-T1) ÷ 2). The server communication control unit 51 records the time difference calculation time (start request time, online confirmation time) in the time difference calculation history (elapsed time measurement start history, online confirmation history) of the server storage unit 42 (step S41). Processing on the server side ends. The time difference calculation time (start request time) is a reference time in the determination process at the time of offline marking. The start request time is the time when the server device 4 transmits the elapsed time measurement start request, the terminal device 3 starts measuring the elapsed time, and returns the start request response, and then the server device 4 receives the start request response. Since the intermediate time up to the set time is taken into account, the time obtained by averaging the transmission delay times of both the time required for transmission from the server device 4 and the time required for reply from the terminal device 3 is taken into account. As a result, the server device 4 obtains the elapsed time measurement start time.

(第2の実施形態における打刻処理)
図10及び図11は第2の実施形態における打刻システム1の打刻処理を示している。この打刻システム1の打刻処理動作について図10のフローチャートを参照し、特にオフライン時の動作について図11のタイミングチャートを参照しながら説明する。
(Holding process in the second embodiment)
10 and 11 show the stamping process of the stamping system 1 in the second embodiment. The stamping process operation of the stamping system 1 will be described with reference to the flowchart of FIG. 10 and particularly the offline operation with reference to the timing chart of FIG.

先ず、第2の実施形態の打刻システム1において、端末装置3とサーバ装置4との接続状態の監視(ステップS51)、オフライン打刻データの有無の確認(ステップS52)や打刻入力の監視(ステップS53)を含む待機状態は、第1の実施形態の動作(ステップS11、ステップS12やステップS13)と同様である。例えば図11では、タイミングT22以前ではオンライン状態と判断され、タイミングT22より後ではオフライン状態と判断される。   First, in the marking system 1 according to the second embodiment, the connection state between the terminal device 3 and the server device 4 is monitored (step S51), the presence / absence of offline marking data is confirmed (step S52), and the marking input is monitored. The standby state including (Step S53) is the same as the operation (Step S11, Step S12 and Step S13) of the first embodiment. For example, in FIG. 11, the online state is determined before timing T22, and the offline state is determined after timing T22.

また、端末装置3において、打刻入力認識部31が打刻入力を認識した後(ステップS53:YES)、接続状態判断部32による端末装置3とサーバ装置4との接続状態の判断(ステップS54)やオンライン打刻処理における端末装置3でのオンライン打刻データ送信処理(ステップS55)も第1の実施形態の動作(ステップS14やステップS15)と同様である。従って、端末装置3では、オンライン打刻データの送信後、待機状態の最初(ステップS51)へと戻る。更に、オンライン打刻処理におけるサーバ装置4でのオンライン打刻データ受信処理(ステップS56)や確定打刻時刻の決定(ステップS57)、並びに確定打刻時刻の端末装置3への送信(ステップS58)も第1の実施形態の動作(ステップS16やステップS17並びにステップS18)と同様である。また、端末装置3では、第1の実施形態の動作(ステップS19)と同様にして、表示制御部35が受信した確定打刻時刻を表示部24に表示する(ステップS59)。これにより、所定の打刻入力に係るオンライン打刻データの処理は終了するが、端末装置3では、オンライン打刻データの送信(ステップS55)の後で待機状態の最初(ステップS51)へと戻るため、打刻処理が繰り返されることとなる。   Moreover, in the terminal device 3, after the stamp input recognition unit 31 recognizes the stamp input (step S53: YES), the connection state determination unit 32 determines the connection state between the terminal device 3 and the server device 4 (step S54). ) And online stamping data transmission processing (step S55) in the terminal device 3 in the online stamping processing is the same as the operation (step S14 and step S15) of the first embodiment. Accordingly, the terminal device 3 returns to the beginning of the standby state (step S51) after transmitting the online marking data. Furthermore, in the online time stamping process, the online time stamping data reception process in the server device 4 (step S56), determination of the final time stamping time (step S57), and transmission of the final time stamping time to the terminal device 3 (step S58). Is the same as the operation of the first embodiment (step S16, step S17 and step S18). Further, in the terminal device 3, similarly to the operation of the first embodiment (step S <b> 19), the final marking time received by the display control unit 35 is displayed on the display unit 24 (step S <b> 59). As a result, the processing of the online stamping data relating to the predetermined stamping input is completed, but the terminal device 3 returns to the beginning of the standby state (step S51) after the transmission of the online stamping data (step S55). Therefore, the engraving process is repeated.

一方、オフライン打刻処理では、端末装置3において、打刻入力認識部31が打刻入力を認識すると(図11のタイミングT23参照)、経過時間制御部34が、経過時間の計測を経過時間計測部37に指示して、この計測時の経過時間カウント値Tbを経過時間計測部37から読み取る(ステップS60)。また、経過時間制御部34は、経過時間計測部37から読み取った経過時間カウント値Tbを経過時間情報として記憶する。このとき、時刻差算出処理において端末通信制御部33がステップS35で受信したサーバ時刻に、経過時間カウント値Tbに基づく経過時間を加算することで、オフライン打刻時の正確な打刻時刻が得られるため、この打刻時刻を表示部24に表示することとしてもよい。   On the other hand, in the offline time stamping process, when the time stamp input recognition unit 31 recognizes the time stamp input in the terminal device 3 (see timing T23 in FIG. 11), the elapsed time control unit 34 measures the elapsed time. The unit 37 is instructed to read the elapsed time count value Tb at the time of measurement from the elapsed time measurement unit 37 (step S60). The elapsed time control unit 34 stores the elapsed time count value Tb read from the elapsed time measuring unit 37 as elapsed time information. At this time, by adding the elapsed time based on the elapsed time count value Tb to the server time received by the terminal communication control unit 33 in step S35 in the time difference calculation process, an accurate stamping time at the time of offline stamping is obtained. Therefore, the time stamp may be displayed on the display unit 24.

更に、経過時間制御部34は、(a)経過時間情報、(b)打刻入力の際にICカード6から取得した従業員識別情報、(c)打刻入力時の打刻種別を示す打刻種別情報、(d)打刻入力時に端末装置3とサーバ装置4とがオフライン状態であることを示す接続状態情報、及び(e)端末装置3の端末IDを含むオフライン打刻データを暗号化し、この暗号化したオフライン打刻データを端末記憶部22に記憶する。   Further, the elapsed time control unit 34 (a) elapsed time information, (b) employee identification information acquired from the IC card 6 at the time of stamping input, and (c) a stamp indicating the stamping type at the time of stamping input. Encryption type information, (d) connection state information indicating that the terminal device 3 and the server device 4 are in an offline state at the time of input, and (e) offline time stamp data including the terminal ID of the terminal device 3 are encrypted. The encrypted offline stamp data is stored in the terminal storage unit 22.

その後、待機状態の最初(ステップS51)へと戻り、端末装置3とサーバ装置4との接続状態(オンライン状態又はオフライン状態)及び従業員による打刻入力を常時監視する。このとき、各種操作入力や、定期的あるいは周期的な起動プログラム等も同時に監視し、いずれかのイベントが行われた場合には各処理を行う。例えば、二回目以降の新たな打刻入力が行われた場合(ステップS53:YES)には、ステップS54、S60の処理を繰り返し行い、新たな打刻に係るオフライン打刻データをその都度追加して端末記憶部22に記憶する。例えば図11では、タイミングT24で二回目の打刻が行われ、この打刻に係るオフライン打刻データが追加される。   Thereafter, the process returns to the first standby state (step S51), and the connection state (online state or offline state) between the terminal device 3 and the server device 4 and the time stamp input by the employee are constantly monitored. At this time, various operation inputs, a periodic or periodic activation program, and the like are simultaneously monitored, and each process is performed when any event occurs. For example, when a new stamping input is made after the second time (step S53: YES), the processes of steps S54 and S60 are repeated to add offline stamping data related to the new stamping each time. And stored in the terminal storage unit 22. For example, in FIG. 11, the second time stamping is performed at timing T24, and the offline time stamping data relating to this time stamping is added.

そして、接続状態判断部32がオフライン状態からオンライン状態への切り換えを検出した場合(ステップS51:YES)、端末記憶部22にオフライン打刻データが記憶されているため(ステップS52:YES)、オフライン打刻の確定処理(ステップS61)へと移行する。例えば図11では、タイミングT25以後にオンライン状態を検出することができる。   When the connection state determination unit 32 detects a switch from the offline state to the online state (step S51: YES), offline stamping data is stored in the terminal storage unit 22 (step S52: YES), and therefore offline. The process proceeds to the marking confirmation process (step S61). For example, in FIG. 11, the online state can be detected after timing T25.

オフライン打刻確定処理(ステップS61)では、端末装置3の経過時間制御部34が、先ず、端末記憶部22に記憶されたオフライン打刻データを復号し、復号したオフライン打刻データの経過時間情報、即ち経過時間カウント値Tbに、割込信号の周期を乗算して打刻前経過時間(処理前経過時間)とする。   In the offline time stamp determination process (step S61), the elapsed time control unit 34 of the terminal device 3 first decodes the offline time stamp data stored in the terminal storage unit 22, and the elapsed time information of the decrypted offline time stamp data. That is, the elapsed time count value Tb is multiplied by the period of the interrupt signal to obtain the elapsed time before stamping (elapsed time before processing).

次に、端末装置3の端末通信制御部33が、第2の打刻要求と共に、打刻前経過時間と、復号したオフライン打刻データの従業員識別情報、打刻種別情報、接続状態情報及び端末IDを含むオフライン打刻データを打刻毎に再構成し、サーバ装置4へと送信する。このようにして、端末記憶部22に記憶されたオフライン打刻データを全てサーバ装置4に送信する。なお、打刻前経過時間、従業員識別情報、打刻種別情報、接続状態情報及び端末IDをそれぞれ暗号化したままサーバ装置4に送信し、サーバ装置4でこれらの情報を復号してもよい。また、端末装置3では、オフライン打刻データの送信後、待機状態の最初(ステップS51)へと戻る。   Next, the terminal communication control unit 33 of the terminal device 3 includes the second stamping request, the elapsed time before stamping, employee identification information of the decrypted offline stamping data, stamping type information, connection status information, and The offline time stamping data including the terminal ID is reconstructed for each time stamping and is transmitted to the server device 4. In this way, all the offline stamping data stored in the terminal storage unit 22 is transmitted to the server device 4. The elapsed time before stamping, employee identification information, stamping type information, connection state information, and terminal ID may be transmitted to the server device 4 while being encrypted, and the server device 4 may decrypt these information. . Moreover, in the terminal device 3, after transmitting offline stamping data, it returns to the beginning of a standby state (step S51).

サーバ装置4では、サーバ通信制御部51がオフライン打刻データを受信して(ステップS62)、第2の打刻要求、打刻前経過時間、従業員識別情報、打刻種別情報、接続状態情報及び端末IDを取得する。確定打刻部52は、受信した打刻要求が第1の打刻要求であるか第2の打刻要求であるかを判断し、今回は第2の打刻要求であると判断する。   In the server device 4, the server communication control unit 51 receives the offline time stamp data (step S62), the second time stamp request, the elapsed time before time stamp, employee identification information, time stamp type information, connection state information. And the terminal ID are acquired. The definitive stamping unit 52 determines whether the received stamping request is the first stamping request or the second stamping request, and this time is determined to be the second stamping request.

そして、確定打刻部52は、受信した従業員識別情報とサーバ記憶部42に予め記憶されている従業員管理情報とを照らし合わせて従業員を特定する処理、及び受信した打刻種別情報に基づいて打刻種別を特定する処理を行う。続いて、確定打刻部52は、サーバ記憶部42の時刻差算出履歴(経過時間計測開始履歴)から前回(オンライン状態になる前)の時刻差算出時刻(直前の開始要求時刻)を読み出し、受信した打刻前経過時間をこの時刻差算出時刻に足し合わせた時刻を確定打刻時刻(確定処理時刻)として算出し、特定した従業員の、特定した打刻種別に属する確定打刻時刻としてサーバ記憶部42に記憶する(ステップS63)。   Then, the definitive stamping unit 52 compares the received employee identification information with the employee management information stored in advance in the server storage unit 42 and specifies the employee, and the received stamping type information Based on this, processing for specifying the type of stamping is performed. Subsequently, the definitive marking unit 52 reads the previous time difference calculation time (prior to the start of the online state) (the previous start request time) from the time difference calculation history (elapsed time measurement start history) in the server storage unit 42, The time obtained by adding the received elapsed time before the time stamp to the time difference calculation time is calculated as the final time stamp (final processing time), and the final time stamp of the specified employee belonging to the specific time stamp type It memorize | stores in the server memory | storage part 42 (step S63).

また、確定打刻部52は、サーバ時計43から現在のサーバ時刻を読み取り、算出した確定打刻時刻が、前回の時刻差算出処理でサーバ記憶部42の時刻差算出履歴(オンライン確認履歴)に記録した時刻差算出時刻(オンライン確認時刻)と現在のサーバ時刻との間にあるか否かを確認(チェック)して、この範囲内に無い場合に打刻時刻範囲エラーフラグをセット(エラーありに設定)し、範囲内にある場合は打刻時刻範囲エラーフラグをリセット(エラーなしに設定)する。更に、確定打刻部52は、この打刻時刻範囲エラーフラグ、並びに端末装置3から受信した接続状態情報及び端末IDを当該確定打刻時刻に関連付けて確定打刻データとしてサーバ記憶部42に記憶する。このようにして、端末装置3から送信されたオフライン打刻データを打刻毎に確定処理する。これにより、所定の打刻入力に係るオフライン打刻データの処理は終了するが、端末装置3では、オフライン打刻データの送信(ステップS61)の後で待機状態の最初(ステップS51)へと戻るため、打刻処理が繰り返されることとなる。   The fixed time stamping unit 52 reads the current server time from the server clock 43, and the calculated fixed time stamp is added to the time difference calculation history (online confirmation history) in the server storage unit 42 in the previous time difference calculation process. Check (check) whether it is between the recorded time difference calculation time (online confirmation time) and the current server time, and if it is not within this range, set the time stamp range error flag (with error) If it is within the range, the stamping time range error flag is reset (set to no error). Further, the confirmed time stamp unit 52 stores the time stamp range error flag, the connection status information received from the terminal device 3 and the terminal ID in the server storage unit 42 as the confirmed time stamp data in association with the confirmed time stamp. To do. In this manner, the offline marking data transmitted from the terminal device 3 is determined for each marking. As a result, the processing of the offline time stamp data relating to the predetermined time stamp input is completed, but the terminal device 3 returns to the first standby state (step S51) after the transmission of the offline time stamp data (step S61). Therefore, the engraving process is repeated.

上述したように、第2の実施形態における打刻システム1では、端末装置3がオフライン打刻時に打刻前経過時間を取得し、サーバ装置4がこの打刻前経過時間に基づいて確定打刻時刻を算出するため、オフライン打刻後に経過時間の計測等の不具合が生じた場合でも、システムが復帰した場合には影響を受けることなく正確な打刻時刻を記録及び管理することができる。   As described above, in the marking system 1 according to the second embodiment, the terminal device 3 acquires the elapsed time before stamping at the time of offline stamping, and the server device 4 confirms the stamping based on the elapsed time before stamping. Since the time is calculated, even when a trouble such as the measurement of the elapsed time occurs after the offline stamping, the accurate stamping time can be recorded and managed without being affected when the system is restored.

また、上述したように、端末装置3及びサーバ装置4の間の伝送遅延時間を時刻差算出処理で取得し、この伝送遅延時間を加味した確定打刻時刻を算出するため、正確な打刻時刻を得ることができる。   In addition, as described above, the transmission time delay between the terminal device 3 and the server device 4 is obtained by the time difference calculation process, and the accurate time stamping time is calculated in consideration of this transmission delay time. Can be obtained.

(第3の実施形態における打刻処理)
図12は第3の実施形態における打刻システム1の打刻処理を示している。この打刻システム1の打刻処理動作について図12のフローチャートを参照しながら説明する。第3の実施形態による打刻処理は、第1の実施形態による打刻処理と第2の実施形態による打刻処理とを組み合わせたものである。打刻システム1の起動からオンライン状態になる(オンライン状態を検出する)までの間(第1期間)には、オフライン打刻入力に対して第1の実施形態によるオフライン打刻処理を行い、一度でもオンライン状態になった後(第2期間)で且つ端末装置3とサーバ装置4との時刻差算出処理(経過時間計測開始処理)が行われた場合には、オフライン打刻入力に対して第2の実施形態によるオフライン打刻処理を行う。以下、具体的に説明する。
(Holding process in the third embodiment)
FIG. 12 shows the stamping process of the stamping system 1 in the third embodiment. The stamping process operation of the stamping system 1 will be described with reference to the flowchart of FIG. The stamping process according to the third embodiment is a combination of the stamping process according to the first embodiment and the stamping process according to the second embodiment. In the period from the start of the stamping system 1 to the online state (detection of the online state) (first period), the offline stamping process according to the first embodiment is performed on the offline stamping input once. However, when the time difference calculation process (elapsed time measurement start process) between the terminal device 3 and the server device 4 is performed after the online state (second period), the second time stamp is input. The off-line stamping process according to the second embodiment is performed. This will be specifically described below.

先ず、端末装置3は、操作者の操作に応じて打刻機能プログラムが起動されると、各種の初期設定が行われ、端末装置3の表示部24に待機画面(図7にてメッセージ表示領域65が空白の状態)を表示する(ステップS71)。   First, when the embossing function program is activated in response to an operation by the operator, the terminal device 3 performs various initial settings, and displays a standby screen (message display area in FIG. 7) on the display unit 24 of the terminal device 3. 65 is blank) (step S71).

次に、端末装置3の接続状態判断部32は、サーバ装置4との間がオンライン状態であるかオフライン状態であるかを確認し(ステップS72)、オフライン状態の場合、即ち起動後に一度もオンライン状態になっていない場合(ステップS72:YES)には、第1の実施形態による打刻処理(ステップS73)へと移行し、オンライン状態を検出した場合(ステップS72:NO)には、第2の実施形態による時刻差算出処理(ステップS74)へと移行する。   Next, the connection state determination unit 32 of the terminal device 3 checks whether it is online or offline with the server device 4 (step S72), and in the offline state, that is, once online after startup. If it is not in the state (step S72: YES), the process proceeds to the stamping process (step S73) according to the first embodiment, and if the online state is detected (step S72: NO), the second The process proceeds to the time difference calculation process (step S74) according to the embodiment.

第1の実施形態による打刻処理(ステップS73)では、先ず、待機状態(図5に示すステップS11〜S13)となり、打刻入力があった場合にはオフライン打刻処理(図5に示すステップS14、S20〜S22)が行われる。このとき、オフライン打刻データを作成(図5に示すステップS22)する際、第1の実施形態のオフライン打刻処理(処理後経過時間計測)であることを示す経過時間計測種別フラグを追加する。なお、ステップS72で行う接続状態の確認は、図5のステップS11と同様でよい。   In the stamping process (step S73) according to the first embodiment, first, a standby state (steps S11 to S13 shown in FIG. 5) is entered, and when a stamping input is made, an offline stamping process (step shown in FIG. 5). S14, S20 to S22) are performed. At this time, when creating the offline time stamping data (step S22 shown in FIG. 5), an elapsed time measurement type flag indicating that it is the offline time stamping process (post-processing elapsed time measurement) of the first embodiment is added. . The confirmation of the connection state performed in step S72 may be the same as step S11 in FIG.

その後、ステップS72に戻り、オフライン状態が継続する間は、ステップS72からステップS73までの処理が繰り返される。   Thereafter, the process returns to step S72, and the processes from step S72 to step S73 are repeated while the offline state continues.

ステップS72でオンライン状態を検出すると、先ず、端末装置3のオフライン打刻データの有無が確認され(図5に示すステップS12)、オフライン打刻データがある場合にはサーバ装置4へと送信する(図5に示すステップS23)。サーバ装置4では、オフライン打刻データを受信すると(図5に示すステップS24)、経過時間計測種別フラグを確認し、これが第1の実施形態のオフライン打刻処理を示す場合には、サーバ時計43が示す現在時刻から受信した打刻後経過時間(処理後経過時間)を差し引いた時刻を確定打刻時刻(確定処理時刻)として算出する(図5に示すステップS25)。   When the online state is detected in step S72, first, the presence or absence of offline stamped data in the terminal device 3 is confirmed (step S12 shown in FIG. 5), and if there is offline stamped data, it is transmitted to the server device 4 ( Step S23 shown in FIG. When the server device 4 receives the offline time stamping data (step S24 shown in FIG. 5), it checks the elapsed time measurement type flag, and if this indicates the offline time stamping process of the first embodiment, the server clock 43 The time obtained by subtracting the elapsed time after stamping (elapsed time after processing) received from the current time indicated by is calculated as the final stamping time (final processing time) (step S25 shown in FIG. 5).

そして、端末装置3にオフライン打刻データが無い場合や、オフライン打刻データの送信処理が終了した場合に、第2の実施形態による時刻差算出処理(ステップS74)へと移行する。   Then, when there is no offline time stamp data in the terminal device 3 or when the offline time stamp data transmission process is completed, the process proceeds to the time difference calculation process (step S74) according to the second embodiment.

第2の実施形態による時刻差算出処理(ステップS74)では、オフライン打刻の確定の際に基準となる時刻差算出時刻(開始要求時刻)を時刻差算出履歴(経過時間計測開始履歴)に記録する(図9参照)。   In the time difference calculation process (step S74) according to the second embodiment, the time difference calculation time (start request time), which is a reference when confirming offline marking, is recorded in the time difference calculation history (elapsed time measurement start history). (See FIG. 9).

その後、第2の実施形態による打刻処理(ステップS75)へと移行し、待機状態(図10に示すステップS51〜S53)となり、オフライン打刻入力があった場合にはオフライン打刻処理(図10に示すステップS54、S60)が行われる。このとき、オフライン打刻データを作成(図10に示すステップS60)する際、第2の実施形態のオフライン打刻処理(処理前経過時間計測)であることを示す経過時間計測種別フラグを追加する。   Thereafter, the process shifts to a stamping process (step S75) according to the second embodiment, and enters a standby state (steps S51 to S53 shown in FIG. 10). Steps S54 and S60) shown in FIG. At this time, when the offline time stamping data is created (step S60 shown in FIG. 10), an elapsed time measurement type flag indicating that it is the offline time stamping process (elapsed time measurement before processing) of the second embodiment is added. .

この経過時間計測種別フラグは、サーバ装置4がオフライン打刻データを受信したとき(図10に示すステップS62、S63)の処理に用いられ、この経過時間計測種別フラグを確認して第2の実施形態のオフライン打刻処理を示す場合には、時刻差算出履歴(経過時間計測開始履歴)に記録した前回の時刻差算出時刻(直前の開始要求時刻)に受信した打刻前経過時間を足し合わせた時刻を確定打刻時刻として算出する(図10に示すステップS63)。   This elapsed time measurement type flag is used for processing when the server apparatus 4 receives offline time stamped data (steps S62 and S63 shown in FIG. 10). To indicate the offline stamping process, add the elapsed time before stamping received at the previous time difference calculation time (previous start request time) recorded in the time difference calculation history (elapsed time measurement start history). The calculated time is calculated as the final marking time (step S63 shown in FIG. 10).

その後、端末装置3では、打刻機能プログラムの処理が継続する間(停止又は終了するまで)、ステップS74からステップS75までの処理が繰り返される。   Thereafter, in the terminal device 3, while the process of the embossing function program continues (until it stops or ends), the processes from step S74 to step S75 are repeated.

なお、第3の実施形態におけるオンライン打刻については、オンライン状態が検出されればステップS72からステップS74へと移行するため、当然ながら第2の実施形態による打刻処理が行われる。   As for online stamping in the third embodiment, if an online state is detected, the process proceeds from step S72 to step S74, and naturally the stamping process according to the second embodiment is performed.

上記の通り、第3の実施形態では、端末装置3の打刻機能プログラムが起動された後オフライン状態が継続する間は、第1の実施形態による打刻処理を行い、ステップS72からステップS73までを繰り返す。そして、一度でもオンライン状態を検出すると、第2の実施形態による打刻処理に移行し、それ以降はステップS74からステップS75までを繰り返す。従って、打刻機能プログラムが一度終了しない限りは、ステップS72に戻ることは無い。   As described above, in the third embodiment, the stamping process according to the first embodiment is performed while the offline function continues after the stamping function program of the terminal device 3 is started, and from step S72 to step S73. repeat. When the online state is detected even once, the process proceeds to the stamping process according to the second embodiment, and thereafter, steps S74 to S75 are repeated. Accordingly, the process does not return to step S72 unless the embossing function program is once terminated.

このように、打刻システム起動後のオフライン状態が継続する間にオフライン打刻があった場合には、第1の実施形態による打刻処理で正確な打刻時刻を提供できる。また、一度でも、オンライン状態を検出した(即ち、経過時間計測リスタートが行われた)場合には、第2の実施形態による打刻処理で正確な打刻時刻を提供できる。即ち、第3の実施形態では、第1の実施形態及び第2の実施形態のそれぞれの利点を抽出しているため、起動後オフライン状態が継続している間でも、オフライン状態で打刻システムの障害等により経過時間カウントが止まっても、正確なオフライン打刻時刻を提供できる。   As described above, when there is an offline stamping while the offline state continues after the stamping system is started, the stamping process according to the first embodiment can provide an accurate stamping time. In addition, when an online state is detected even once (that is, when elapsed time measurement is restarted), an accurate stamping time can be provided by the stamping process according to the second embodiment. That is, in the third embodiment, the advantages of the first embodiment and the second embodiment are extracted. Therefore, even if the offline state continues after startup, the stamping system can be operated in the offline state. Even if the elapsed time count stops due to a failure or the like, an accurate offline time can be provided.

また、第1の実施形態と第2の実施形態のオフライン打刻データが混在しても、サーバ装置4では経過時間計測種別フラグを参照することにより、どちらのオフライン打刻データかを判別可能であるため、正しい確定打刻時刻を算出することができる。   Even if the offline stamped data of the first embodiment and the second embodiment are mixed, the server device 4 can determine which offline stamped data by referring to the elapsed time measurement type flag. Therefore, it is possible to calculate a correct fixed time stamp.

なお、上述した打刻処理(図5、図10、図12参照)を実現するための端末装置3のCPU21の機能、即ち、打刻入力認識部31、接続状態判断部32、端末通信制御部33、経過時間制御部34、表示制御部35、時刻差算出部36及び経過時間計測部37は、端末装置3の端末記憶部22に予め記憶された(事前に端末装置3にインストールされた)プログラムをCPU21で実行することにより具現化してもよいし、打刻処理を実際に行うときに、このようなプログラムをサーバ装置4から端末装置3へダウンロードし、このダウンロードしたプログラムをCPU21で実行することにより具現化してもよい。後者の態様は、ASPによる就業管理サービス又はクラウドコンピューティングを利用した就業管理サービスに好適である。   The functions of the CPU 21 of the terminal device 3 for realizing the above-described stamping process (see FIGS. 5, 10, and 12), that is, the stamping input recognition unit 31, the connection state determination unit 32, and the terminal communication control unit. 33, the elapsed time control unit 34, the display control unit 35, the time difference calculation unit 36, and the elapsed time measurement unit 37 are stored in advance in the terminal storage unit 22 of the terminal device 3 (installed in the terminal device 3 in advance). The program may be realized by executing the program by the CPU 21, or when actually performing the stamping process, such a program is downloaded from the server device 4 to the terminal device 3, and the downloaded program is executed by the CPU 21. It may be embodied by. The latter mode is suitable for an employment management service using ASP or an employment management service using cloud computing.

また、上述した実施形態では、端末装置3とこれに接続されたICカードリーダ5により、従業員が所持するICカード6を読み取ることで、打刻入力を認識する場合を例にあげたが、本発明はこれに限らない。例えば、携帯電話、スマートフォン等の携帯型電子機器をICカード6の代わりに採用することも可能である。また、ICカード6の代わりにこのような携帯型電子機器を採用した場合には、打刻入力を行ったときに打刻入力情報(従業員識別情報等)を送信する機能を携帯型電子機器に持たせると共に、打刻入力情報の受信を打刻入力と認識する機能を端末装置3に持たせてもよい。また、ICカード以外の各種識別媒体(バーコードカード、RFIDタグ、光カード等)を利用したり、暗証コードや生体認証等の他の認証方法により打刻入力を認識する方法でもよい。   In the above-described embodiment, the terminal device 3 and the IC card reader 5 connected to the terminal device 3 read the IC card 6 possessed by the employee to recognize the stamping input. The present invention is not limited to this. For example, a portable electronic device such as a mobile phone or a smartphone can be used instead of the IC card 6. Further, when such a portable electronic device is adopted instead of the IC card 6, the portable electronic device has a function of transmitting time stamp input information (employee identification information, etc.) when time stamp input is performed. And the terminal device 3 may be provided with a function of recognizing reception of the time stamp input information as a time stamp input. Further, a method of using a variety of identification media other than the IC card (bar code card, RFID tag, optical card, etc.) or recognizing the stamped input by another authentication method such as a password or biometric authentication may be used.

また、上述した実施形態では、図4や図9に示すように、時刻差算出処理をオンライン時に周期的に行う場合を例にあげたが、これに限らず、例えば端末装置3を起動したときや、オフライン状態からオンライン状態への切り換わりを検知したときに時刻差算出処理を行うこととしてもよい。   In the above-described embodiment, as shown in FIG. 4 and FIG. 9, the case where the time difference calculation process is periodically performed when online is described as an example. However, the present invention is not limited to this, for example, when the terminal device 3 is activated. Alternatively, the time difference calculation process may be performed when switching from the offline state to the online state is detected.

また、上記実施形態において、打刻システム1は処理時刻取得システムの具体例であり、打刻入力は処理入力の具体例である。端末装置3は処理時刻取得端末装置の具体例であり、サーバ装置4は処理時刻管理サーバ装置の具体例である。打刻入力認識部31は処理認識手段の具体例であり、接続状態判断部32は接続状態判断手段の具体例であり、端末通信制御部33はオフライン処理時刻データ送信手段の具体例である。また、経過時間制御部34は経過時間制御手段の具体例であり、表示制御部35は確定処理時刻表示手段の具体例であり、時刻差算出部36はオンライン確認要求手段の具体例であり、経過時間計測部37は経過時間計測手段の具体例である。また、サーバ通信制御部51は経過時間計測開始要求手段、オンライン確認手段及びエラー検出手段の具体例であり、確定打刻部52は確定処理時刻取得手段の具体例である。   Moreover, in the said embodiment, the stamping system 1 is a specific example of a processing time acquisition system, and a stamping input is a specific example of a processing input. The terminal device 3 is a specific example of a processing time acquisition terminal device, and the server device 4 is a specific example of a processing time management server device. The stamp input recognition unit 31 is a specific example of the process recognition unit, the connection state determination unit 32 is a specific example of the connection state determination unit, and the terminal communication control unit 33 is a specific example of the offline processing time data transmission unit. The elapsed time control unit 34 is a specific example of the elapsed time control unit, the display control unit 35 is a specific example of the confirmation processing time display unit, and the time difference calculation unit 36 is a specific example of the online confirmation request unit. The elapsed time measuring unit 37 is a specific example of elapsed time measuring means. The server communication control unit 51 is a specific example of an elapsed time measurement start request unit, an online confirmation unit, and an error detection unit, and the fixed marking unit 52 is a specific example of a fixed processing time acquisition unit.

また、本発明は、請求の範囲及び明細書全体から読み取ることのできる発明の要旨又は思想に反しない範囲で適宜変更可能であり、そのような変更を伴う打刻システム、打刻装置、打刻管理サーバ装置、打刻方法及び打刻プログラムもまた本発明の技術思想に含まれる。   Further, the present invention can be appropriately changed without departing from the gist or concept of the invention that can be read from the claims and the entire specification, and a stamping system, a stamping apparatus, a stamping with such a change can be made. The management server device, the marking method, and the marking program are also included in the technical idea of the present invention.

本発明は、会社の従業員の就業管理等に用いることができる。例えば、ASPが提供する就業管理サービス、クラウドコンピューティングを利用した就業管理サービス等への利用に適している。また、本発明は、打刻システムに限定されず、通信網を介して接続された端末装置及びサーバ装置からなる様々なシステムに適用可能である。例えば、電子商取引、契約書や証明書の作成又は認証、電子メールや各種電子データの生成等の処理について、端末装置で実施してサーバ装置で記録及び管理する場合に、装置間がオンライン状態かオフライン状態かに拘らず、正確な処理時刻を取得してこれらのデータに付与ことができる。このように、本発明は、端末装置からサーバ装置へのアクセス発行等のイベントを所定の処理として処理時刻を取得するシステムにも適用可能である。   The present invention can be used for employment management of company employees. For example, it is suitable for use in employment management services provided by ASP, employment management services using cloud computing, and the like. Further, the present invention is not limited to the embossing system, and can be applied to various systems including a terminal device and a server device connected via a communication network. For example, if processing such as e-commerce, creation or authentication of contracts and certificates, generation of e-mails and various electronic data is performed on a terminal device and recorded and managed by a server device, whether the devices are online Regardless of the offline state, an accurate processing time can be acquired and given to these data. As described above, the present invention can also be applied to a system that acquires a processing time using an event such as an access issuance from a terminal device to a server device as a predetermined process.

また、本発明は、例えば工場等の現場で作業に使用する機器を端末装置に接続して制御する場合、その作業の状況や工程を管理するシステムに適用して、その作業を所定の処理として処理時刻を取得することもできる。更に、本発明は、例えば人感センサ等の検出器による検出を所定の処理として処理時刻を取得するシステムに適用することもできる。   In addition, when the present invention is connected to a terminal device to control equipment used for work at a site such as a factory, for example, the present invention is applied to a system that manages the status and process of the work, and the work is treated as a predetermined process. Processing time can also be acquired. Furthermore, the present invention can also be applied to a system that acquires a processing time using detection by a detector such as a human sensor as a predetermined process.

1 打刻システム(処理時刻取得システム)
2 通信網
3 端末装置(処理時刻取得端末装置)
4 サーバ装置(処理時刻管理サーバ装置)
21 CPU
22 端末記憶部
23 端末時計
31 打刻入力認識部(処理認識手段)
32 接続状態判断部(接続状態判断手段)
33 端末通信制御部(オフライン処理時刻データ送信手段)
34 経過時間制御部(経過時間制御手段)
35 表示制御部
36 時刻差算出部(オンライン確認要求手段)
37 経過時間計測部(経過時間計測手段)
41 CPU
42 サーバ記憶部
43 サーバ時計
51 サーバ通信制御部(経過時間計測開始要求手段、オンライン確認手段、エラー検出手段)
52 確定打刻部(確定処理時刻取得手段)
1 Stamping system (processing time acquisition system)
2 Communication network 3 Terminal device (processing time acquisition terminal device)
4. Server device (processing time management server device)
21 CPU
22 terminal storage unit 23 terminal clock 31 stamped input recognition unit (process recognition means)
32 Connection state determination unit (connection state determination means)
33 Terminal communication control unit (offline processing time data transmission means)
34 Elapsed time control unit (elapsed time control means)
35 Display control unit 36 Time difference calculation unit (online confirmation request means)
37 Elapsed time measurement unit (Elapsed time measurement means)
41 CPU
42 Server storage unit 43 Server clock 51 Server communication control unit (elapsed time measurement start request means, online confirmation means, error detection means)
52 Confirmation stamping part (Confirmation processing time acquisition means)

Claims (10)

所定の処理として打刻入力が行われた際の時刻を取得して記録する処理時刻取得システムであって、
通信網を介して互いに接続可能な端末装置及びサーバ装置を備え、
前記端末装置は、
前記打刻入力を認識する処理認識手段と、
前記端末装置と前記サーバ装置との間が通信可能なオンライン状態か通信不能なオフライン状態かを判断する接続状態判断手段と、
計測開始の指示を受けて、該指示があったときからの経過時間を計測する経過時間計測手段と、
前記接続状態判断手段により前記オフライン状態と判断され、且つ前記処理認識手段により前記打刻入力を認識したときに前記経過時間計測手段により計測された経過時間を経過時間情報として取得する経過時間制御手段と、
前記接続状態判断手段により前記オフライン状態から前記オンライン状態への切り換えを検出したとき、前記経過時間情報に基づき前記打刻入力に係るオフライン処理時刻データを取得して前記サーバ装置に送信するオフライン処理時刻データ送信手段とを備え、
前記サーバ装置は、
前記端末装置から送信された前記オフライン処理時刻データを受信したとき、該オフライン処理時刻データと前記サーバ装置に設けられたサーバ時計から得られるサーバ時刻とに基づき前記打刻入力に係る確定処理時刻を算出する確定処理時刻取得手段と、
経過時間計測開始要求を前記端末装置へと送信すると共に、その送信時に前記サーバ時計が示すサーバ時刻を読み取って開始要求時刻として経過時間計測開始履歴に記録する経過時間計測開始要求手段と、を備え、
前記経過時間制御手段は、前記サーバ装置から前記経過時間計測開始要求を受信したとき、前記経過時間計測手段に前記計測開始を指示し、
前記オフライン処理時刻データ送信手段は、前記接続状態判断手段により前記オフライン状態から前記オンライン状態への切り換えを検出したとき、前記経過時間情報を処理前経過時間として含む前記オフライン処理時刻データを取得して前記サーバ装置に送信し、
前記確定処理時刻取得手段は、前記端末装置から送信された前記オフライン処理時刻データを受信したとき、前記経過時間計測開始要求手段により前記経過時間計測開始履歴に記録した直前の前記開始要求時刻を読み取り、該開始要求時刻に前記オフライン処理時刻データの前記処理前経過時間を足し合わせた時刻を前記確定処理時刻として算出することを特徴とする処理時刻取得システム。
A processing time acquisition system that acquires and records the time when a stamping input is performed as a predetermined process,
A terminal device and a server device that can be connected to each other via a communication network;
The terminal device
Process recognition means for recognizing the stamped input;
A connection state determination means for determining whether the terminal device and the server device are in an online state in which communication is possible or an offline state in which communication is impossible;
An elapsed time measuring means for receiving an instruction to start measurement and measuring an elapsed time from when the instruction was received;
Elapsed time control means for obtaining the elapsed time measured by the elapsed time measurement means as elapsed time information when the connection state determination means determines the offline state and the processing recognition means recognizes the stamped input. When,
Offline processing time for acquiring offline processing time data related to the time stamping input based on the elapsed time information and transmitting it to the server device when detecting the switching from the offline state to the online state by the connection state determining means Data transmission means,
The server device
When the offline processing time data transmitted from the terminal device is received, a fixed processing time related to the time stamp input is determined based on the offline processing time data and a server time obtained from a server clock provided in the server device. A fixed processing time acquisition means for calculating;
An elapsed time measurement start requesting unit that transmits an elapsed time measurement start request to the terminal device, and reads the server time indicated by the server clock at the time of transmission and records it in the elapsed time measurement start history as the start request time. ,
The elapsed time control means, when receiving the elapsed time measurement start request from the server device, instructs the elapsed time measurement means to start the measurement,
The offline processing time data transmission means obtains the offline processing time data including the elapsed time information as an elapsed time before processing when the connection state determination means detects switching from the offline state to the online state. Sent to the server device,
The fixed processing time acquisition unit reads the start request time immediately before recorded in the elapsed time measurement start history by the elapsed time measurement start request unit when the offline processing time data transmitted from the terminal device is received. A processing time acquisition system characterized in that a time obtained by adding the pre-processing elapsed time of the offline processing time data to the start request time is calculated as the fixed processing time.
前記経過時間制御手段は、前記端末装置が起動してから前記オンライン状態となるまでの第1期間は前記処理認識手段により前記打刻入力を認識したときに前記経過時間計測手段に前記計測開始を指示し、一度でも前記オンライン状態となった後の第2期間は前記サーバ装置から前記経過時間計測開始要求を受信したときに前記経過時間計測手段に前記計測開始を指示し、
前記オフライン処理時刻データ送信手段は、前記接続状態判断手段により前記オフライン状態から前記オンライン状態への切り換えを検出したとき、前記第1期間の間に前記経過時間制御手段により所得した前記経過時間情報については、前記経過時間計測手段により計測された経過時間をオフライン終了時経過時間として取得すると共に該オフライン終了時経過時間と前記経過時間情報との時間差を処理後経過時間として算出し、前記第2期間の間に前記経過時間制御手段により所得した前記経過時間情報については、前記経過時間情報を処理前経過時間とし、前記処理後経過時間又は前記処理前経過時間を含む前記オフライン処理時刻データを取得して前記サーバ装置に送信し、
前記確定処理時刻取得手段は、前記端末装置から送信された前記オフライン処理時刻データを受信し、前記オフライン処理時刻データが前記処理後経過時間を含む場合には、前記サーバ装置に設けられたサーバ時計が示す現在のサーバ時刻を読み取り、該現在のサーバ時刻から前記処理後経過時間を差し引いた時刻を前記確定処理時刻として算出し、前記オフライン処理時刻データが前記処理前経過時間を含む場合には、前記経過時間計測開始要求手段により前記経過時間計測開始履歴に記録した直前の前記開始要求時刻を読み取り、該開始要求時刻に前記処理前経過時間を足し合わせた時刻を前記確定処理時刻として算出することを特徴とする請求項1に記載の処理時刻取得システム。
The elapsed time control means starts the measurement to the elapsed time measuring means when the process recognition means recognizes the stamping input during a first period from when the terminal device is activated until the terminal apparatus is brought into the online state. Instructing the elapsed time measurement means to start the measurement when the elapsed time measurement start request is received from the server device in the second period after being in the online state even once,
The off-line processing time data transmission unit is configured to detect the elapsed time information obtained by the elapsed time control unit during the first period when the connection state determination unit detects a switch from the off-line state to the on-line state. Obtains the elapsed time measured by the elapsed time measuring means as the elapsed time at the end of offline and calculates the time difference between the elapsed time at the offline end and the elapsed time information as the elapsed time after processing, For the elapsed time information obtained by the elapsed time control means during the period, the elapsed time information is used as the elapsed time before processing, and the offline processing time data including the elapsed time after processing or the elapsed time before processing is acquired. To the server device,
The fixed processing time acquisition means receives the offline processing time data transmitted from the terminal device, and when the offline processing time data includes the post-processing elapsed time, a server clock provided in the server device Is read as the current server time, the time obtained by subtracting the post-processing elapsed time from the current server time is calculated as the fixed processing time, and when the offline processing time data includes the pre-processing elapsed time, Reading the start request time immediately before being recorded in the elapsed time measurement start history by the elapsed time measurement start request means, and calculating a time obtained by adding the pre-process elapsed time to the start request time as the fixed processing time. The processing time acquisition system according to claim 1.
前記端末装置は、
該端末装置と前記サーバ装置とがオンライン状態であるか否かを確認するためにオンライン確認要求を前記サーバ装置に送信するオンライン確認要求手段を備え、
前記サーバ装置は、
前記端末装置から送信された前記オンライン確認要求を受信したときに、前記サーバ時計が示すサーバ時刻を読み取ってオンライン確認時刻としてオンライン確認履歴に記録するオンライン確認手段と、
前記端末装置から送信された前記オフライン処理時刻データを受信したときに、前記サーバ時計が示すサーバ時刻を現在時刻として読み取り、前記オフライン処理時刻データに基づき算出された前記確定処理時刻が、前記オンライン確認手段により前記オンライン確認履歴に記録した前記オンライン確認時刻と前記現在時刻との間にない場合には前記確定処理時刻にエラー情報を付加するエラー検出手段とを備えることを特徴とする請求項1又は2に記載の処理時刻取得システム。
The terminal device
Online confirmation request means for transmitting an online confirmation request to the server device to confirm whether the terminal device and the server device are online;
The server device
Online confirmation means for reading the server time indicated by the server clock and recording it in the online confirmation history as the online confirmation time when the online confirmation request transmitted from the terminal device is received;
When the offline processing time data transmitted from the terminal device is received, the server time indicated by the server clock is read as the current time, and the confirmed processing time calculated based on the offline processing time data is the online confirmation. 2. An error detection means for adding error information to the confirmation processing time when the time is not between the online confirmation time recorded in the online confirmation history by the means and the current time. 2. The processing time acquisition system according to 2.
前記経過時間計測開始要求手段は、前記経過時間計測開始要求の前記端末装置への送信時に前記サーバ時計が示すサーバ時刻を読み取って開始要求送信時刻として記録し、
前記経過時間制御手段は、前記経過時間計測開始要求の受信に応じて前記経過時間計測手段に前記計測開始を指示した後、開始要求応答を前記サーバ装置へと送信し、
更に、前記経過時間計測開始要求手段は、前記端末装置から送信された前記開始要求応答を受信し、記録した前記開始要求送信時刻と、前記開始要求応答を受信したときに前記サーバ時計が示す前記サーバ時刻を読み取った受信時刻とに基づき前記サーバ装置と前記端末装置との通信における伝送遅延時間を加味して算出される時刻を、前記開始要求時刻として前記経過時間計測開始履歴に記憶することを特徴とする請求項1ないし3のいずれか1項に記載の処理時刻取得システム。
The elapsed time measurement start request means reads a server time indicated by the server clock when the elapsed time measurement start request is transmitted to the terminal device, and records it as a start request transmission time.
The elapsed time control means, after instructing the elapsed time measurement means to start the measurement in response to reception of the elapsed time measurement start request, transmits a start request response to the server device,
Further, the elapsed time measurement start request means receives the start request response transmitted from the terminal device, and records the start request transmission time and the server clock indicated when the start request response is received. Storing the time calculated in consideration of the transmission delay time in the communication between the server device and the terminal device based on the reception time obtained by reading the server time as the start request time in the elapsed time measurement start history. The processing time acquisition system according to claim 1, wherein the processing time acquisition system is a processing time acquisition system.
前記経過時間制御手段は、前記経過時間情報を暗号化することを特徴とする請求項1ないし4のいずれかに記載の処理時刻取得システム。   The processing time acquisition system according to any one of claims 1 to 4, wherein the elapsed time control means encrypts the elapsed time information. 所定の処理として打刻入力が行われた際の時刻をサーバ装置と通信を行うことにより記録する処理時刻取得端末装置であって、
前記打刻入力を認識する処理認識手段と、
前記サーバ装置と通信可能なオンライン状態か通信不能なオフライン状態かを判断する接続状態判断手段と、
計測開始の指示を受けて、該指示があったときからの経過時間を計測する経過時間計測手段と、
前記接続状態判断手段により前記オフライン状態と判断され、且つ前記処理認識手段により前記打刻入力を認識したときに前記経過時間計測手段により計測された経過時間を経過時間情報として取得する経過時間制御手段と、
前記接続状態判断手段により前記オフライン状態から前記オンライン状態への切り換えを検出したとき、前記経過時間情報に基づき前記打刻入力に係るオフライン処理時刻データを取得して前記サーバ装置に送信するオフライン処理時刻データ送信手段とを備え、
前記経過時間制御手段は、前記サーバ装置から経過時間計測開始要求を受信したとき、前記経過時間計測手段に前記計測開始を指示し、
前記オフライン処理時刻データ送信手段は、前記接続状態判断手段により前記オフライン状態から前記オンライン状態への切り換えを検出したとき、前記経過時間情報を処理前経過時間として含む前記オフライン処理時刻データを取得して前記サーバ装置に送信し、
前記オフライン処理時刻データの送信により、前記オフライン処理時刻データの前記処理前経過時間と、前記サーバ装置が前記経過時間計測開始要求を送信する際に前記サーバ装置に設けられたサーバ時計から得られるサーバ時刻とに基づき前記打刻入力に係る確定処理時刻を算出することを、前記サーバ装置に対して要求することを特徴とする処理時刻取得端末装置。
A processing time acquisition terminal device that records a time when a time stamp input is performed as a predetermined processing by communicating with a server device,
Process recognition means for recognizing the stamped input;
Connection state determination means for determining whether the server device is online or incapable of communicating with the server device; and
An elapsed time measuring means for receiving an instruction to start measurement and measuring an elapsed time from when the instruction was received;
Elapsed time control means for obtaining the elapsed time measured by the elapsed time measurement means as elapsed time information when the connection state determination means determines the offline state and the processing recognition means recognizes the stamped input. When,
Offline processing time for acquiring offline processing time data related to the time stamping input based on the elapsed time information and transmitting it to the server device when detecting the switching from the offline state to the online state by the connection state determining means Data transmission means,
The elapsed time control means, when receiving an elapsed time measurement start request from the server device, instructs the elapsed time measurement means to start the measurement,
The offline processing time data transmission means obtains the offline processing time data including the elapsed time information as an elapsed time before processing when the connection state determination means detects switching from the offline state to the online state. Sent to the server device,
By transmitting the offline processing time data, a server obtained from the pre-processing elapsed time of the offline processing time data and a server clock provided in the server device when the server device transmits the elapsed time measurement start request A processing time acquisition terminal device that requests the server device to calculate a fixed processing time related to the time stamping input based on a time.
所定の処理として打刻入力が行われた際の時刻を端末装置と通信を行うことにより記録する処理時刻管理サーバ装置であって、
前記処理時刻管理サーバ装置は、
前記端末装置が前記打刻入力を認識したときの経過時間情報に基づく前記打刻入力に係るオフライン処理時刻データを前記端末装置から受信したとき、該オフライン処理時刻データと前記処理時刻管理サーバ装置に設けられたサーバ時計から得られるサーバ時刻とに基づき前記打刻入力に係る確定処理時刻を算出する確定処理時刻取得手段と、
経過時間計測開始要求を前記端末装置へと送信すると共に、その送信時に前記サーバ時計が示すサーバ時刻を読み取って開始要求時刻として経過時間計測開始履歴に記録する経過時間計測開始要求手段と、を備え、
前記確定処理時刻取得手段は、前記端末装置から送信された前記経過時間情報を処理前経過時間として含む前記オフライン処理時刻データを受信したとき、前記経過時間計測開始要求手段により前記経過時間計測開始履歴に記録した直前の前記開始要求時刻を読み取り、該開始要求時刻に前記オフライン処理時刻データの前記処理前経過時間を足し合わせた時刻を前記確定処理時刻として算出することを特徴とする処理時刻管理サーバ装置。
A processing time management server device that records a time when a time stamp input is performed as a predetermined processing by communicating with a terminal device,
The processing time management server device
When the offline processing time data related to the time stamping input based on the elapsed time information when the terminal device recognizes the time stamping input is received from the terminal device, the offline processing time data and the processing time management server device A confirmation processing time acquisition means for calculating a confirmation processing time related to the stamping input based on a server time obtained from a provided server clock;
An elapsed time measurement start requesting unit that transmits an elapsed time measurement start request to the terminal device, and reads the server time indicated by the server clock at the time of transmission and records it in the elapsed time measurement start history as the start request time. ,
When the confirmed processing time acquisition means receives the offline processing time data including the elapsed time information transmitted from the terminal device as the elapsed time before processing, the elapsed time measurement start history is received by the elapsed time measurement start request means. A processing time management server that reads the start request time immediately before being recorded in the data and calculates the time obtained by adding the pre-processing elapsed time of the offline processing time data to the start request time as the fixed processing time apparatus.
通信網を介して互いに接続可能な端末装置及びサーバ装置を用いて、所定の処理として打刻入力が行われた際の時刻を取得して記録する処理時刻取得方法であって、
前記端末装置において、前記打刻入力を認識する処理認識工程と、
前記端末装置と前記サーバ装置との間が通信可能なオンライン状態か通信不能なオフライン状態かを判断する接続状態判断工程と、
計測開始の指示を受けて、該指示があったときからの経過時間を計測する経過時間計測工程と、
前記接続状態判断工程により前記オフライン状態と判断され、且つ前記処理認識工程により前記打刻入力を認識したときに前記経過時間計測工程により計測された経過時間を経過時間情報として取得する経過時間制御工程と、
前記接続状態判断工程により前記オフライン状態から前記オンライン状態への切り換えを検出したとき、前記経過時間情報に基づき前記打刻入力に係るオフライン処理時刻データを取得して前記サーバ装置に送信するオフライン処理時刻データ送信工程と、
前記サーバ装置において、前記端末装置から送信された前記オフライン処理時刻データを受信したとき、該オフライン処理時刻データと前記サーバ装置に設けられたサーバ時計から得られるサーバ時刻とに基づき前記打刻入力に係る確定処理時刻を算出する確定処理時刻取得工程と、
経過時間計測開始要求を前記端末装置へと送信すると共に、その送信時に前記サーバ時計が示すサーバ時刻を読み取って開始要求時刻として経過時間計測開始履歴に記録する経過時間計測開始要求工程と、を備え、
前記経過時間制御工程は、前記サーバ装置から前記経過時間計測開始要求を受信したとき、前記経過時間計測工程に前記計測開始を指示し、
前記オフライン処理時刻データ送信工程は、前記接続状態判断工程により前記オフライン状態から前記オンライン状態への切り換えを検出したとき、前記経過時間情報を処理前経過時間として含む前記オフライン処理時刻データを取得して前記サーバ装置に送信し、
前記確定処理時刻取得工程は、前記端末装置から送信された前記オフライン処理時刻データを受信したとき、前記経過時間計測開始要求工程により前記経過時間計測開始履歴に記録した直前の前記開始要求時刻を読み取り、該開始要求時刻に前記オフライン処理時刻データの前記処理前経過時間を足し合わせた時刻を前記確定処理時刻として算出することを特徴とする処理時刻取得方法。
Using a terminal device and a server device that can be connected to each other via a communication network, a processing time acquisition method for acquiring and recording a time when a time stamp input is performed as a predetermined process,
In the terminal device, a process recognition step for recognizing the stamped input,
A connection state determination step for determining whether the terminal device and the server device can communicate with each other in an online state or a communication disabled offline state;
An elapsed time measuring step of receiving an instruction to start measurement and measuring an elapsed time from when the instruction was received;
An elapsed time control step of acquiring, as elapsed time information, the elapsed time measured by the elapsed time measurement step when the offline state is determined by the connection state determination step and the stamped input is recognized by the process recognition step. When,
Offline processing time for acquiring offline processing time data related to the time stamping input based on the elapsed time information and transmitting to the server device when switching from the offline state to the online state is detected by the connection state determination step A data transmission process;
In the server device, when the offline processing time data transmitted from the terminal device is received, the time stamp input is performed based on the offline processing time data and a server time obtained from a server clock provided in the server device. A confirmation processing time acquisition step for calculating such a confirmation processing time;
An elapsed time measurement start request step for transmitting an elapsed time measurement start request to the terminal device, and reading the server time indicated by the server clock at the time of transmission and recording it in the elapsed time measurement start history as the start request time. ,
When the elapsed time control step receives the elapsed time measurement start request from the server device, the elapsed time measurement step instructs the measurement start.
The offline processing time data transmission step acquires the offline processing time data including the elapsed time information as an elapsed time before processing when the switching from the offline state to the online state is detected by the connection state determination step. Sent to the server device,
The fixed processing time acquisition step reads the start request time immediately before being recorded in the elapsed time measurement start history by the elapsed time measurement start request step when the offline processing time data transmitted from the terminal device is received. A time obtained by adding the pre-processing elapsed time of the offline processing time data to the start request time is calculated as the fixed processing time.
請求項6に記載の処理時刻取得端末装置に備わるコンピュータを、前記処理認識手段、前記接続状態判断手段、前記経過時間計測手段、前記経過時間制御手段及び前記オフライン処理時刻データ送信手段として機能させ
更に、前記オフライン処理時刻データの送信により、前記オフライン処理時刻データの前記処理前経過時間と、前記サーバ装置が前記経過時間計測開始要求を送信する際に前記サーバ装置に設けられたサーバ時計から得られるサーバ時刻とに基づき前記打刻入力に係る確定処理時刻を算出することを、前記サーバ装置に対して要求する手段として機能させるためのプログラム。
A computer provided in the processing time acquisition terminal device according to claim 6 functions as the processing recognition unit, the connection state determination unit, the elapsed time measurement unit, the elapsed time control unit, and the offline processing time data transmission unit ,
Further, the transmission of the offline processing time data is obtained from the pre-processing elapsed time of the offline processing time data and a server clock provided in the server device when the server device transmits the elapsed time measurement start request. A program for causing the server device to function as a means for requesting calculation of a fixed processing time related to the time stamp input based on a server time to be recorded .
請求項7に記載の処理時刻管理サーバ装置に備わるコンピュータを、前記確定処理時刻取得手段及び前記経過時間計測開始要求手段として機能させるためのプログラム。
A program for causing a computer included in the processing time management server apparatus according to claim 7 to function as the fixed processing time acquisition unit and the elapsed time measurement start request unit .
JP2012259906A 2012-11-28 2012-11-28 Processing time acquisition system, processing time acquisition terminal device, processing time management server device, processing time acquisition method, and processing time acquisition program Expired - Fee Related JP6126364B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012259906A JP6126364B2 (en) 2012-11-28 2012-11-28 Processing time acquisition system, processing time acquisition terminal device, processing time management server device, processing time acquisition method, and processing time acquisition program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012259906A JP6126364B2 (en) 2012-11-28 2012-11-28 Processing time acquisition system, processing time acquisition terminal device, processing time management server device, processing time acquisition method, and processing time acquisition program

Publications (2)

Publication Number Publication Date
JP2014106781A JP2014106781A (en) 2014-06-09
JP6126364B2 true JP6126364B2 (en) 2017-05-10

Family

ID=51028205

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012259906A Expired - Fee Related JP6126364B2 (en) 2012-11-28 2012-11-28 Processing time acquisition system, processing time acquisition terminal device, processing time management server device, processing time acquisition method, and processing time acquisition program

Country Status (1)

Country Link
JP (1) JP6126364B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108269316A (en) * 2017-11-28 2018-07-10 北京讯飞乐知行软件有限公司 A kind of offline Work attendance method and device

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7391677B2 (en) * 2020-01-24 2023-12-05 株式会社スマート・ソリューション・テクノロジー Attendance stamping system, stamping server, attendance terminal, attendance stamping method and program
JP7332512B2 (en) * 2020-03-24 2023-08-23 株式会社奥村組 Time management device, time management method for time management device, time management program for time management device, and time management system
CN112422369B (en) * 2020-11-19 2022-08-02 青岛海尔科技有限公司 Method and device for determining offline time, storage medium and electronic device
CN113538740B (en) * 2021-06-10 2023-05-05 深圳市宏智智能装备有限公司 Offline control method of intelligent lock system and intelligent lock thereof
CN114244895A (en) * 2021-12-21 2022-03-25 北京京东振世信息技术有限公司 Control method and device of handheld mobile terminal, electronic equipment and storage medium
CN115022310B (en) * 2021-12-31 2023-05-09 荣耀终端有限公司 Equipment online time length acquisition method and system, electronic equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6450188A (en) * 1987-08-20 1989-02-27 Taisuke Inoue Apparatus for reproducing time at accident according to difference in number of time counter between time of accident and reproduction and time in reproduction
JPH05151415A (en) * 1991-11-28 1993-06-18 Shikoku Nippon Denki Software Kk Time recorder management system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108269316A (en) * 2017-11-28 2018-07-10 北京讯飞乐知行软件有限公司 A kind of offline Work attendance method and device

Also Published As

Publication number Publication date
JP2014106781A (en) 2014-06-09

Similar Documents

Publication Publication Date Title
JP6126364B2 (en) Processing time acquisition system, processing time acquisition terminal device, processing time management server device, processing time acquisition method, and processing time acquisition program
RU2446610C2 (en) Stream-oriented setup for working in amr/ami-service networks
CN106708712B (en) System and method for cloud service asset management of portable computer testing tools
US8949055B2 (en) Measurement device, particularly energy counter and method for recognition of manipulations
KR20170029542A (en) An apparatus and a method for processing data
CN109063423A (en) application software authorization method and system
CN103891261B (en) Data processing method, transmission device, and anomaly detection system
CN104094272A (en) Method for communication of energy consumption-specific measurement data elements between a smart meter device and a computer system of a utility company and/or operator of a measuring system
CA2950657A1 (en) Remote diagnosis management system and method for operating the same
CN111273573A (en) Environmental data monitoring method and device
JP2009075644A (en) Product life cycle information management system and method
KR20160099276A (en) Apparatus and method for detecting abnormal transaction
JP6907726B2 (en) Data management system
KR101900609B1 (en) Demand Response Management Server and Demand Response Management System Including That Server
JP2022124845A (en) Work result management system and work result management method
DK2608981T3 (en) Securing and synchronizing system time in a charging station
CN113506096B (en) Inter-system interface method based on industrial internet identification analysis system
US20160350750A1 (en) Multi-channel authentication, and financial transfer method and system using mobile communication terminal
JP4728867B2 (en) Time management system and time management program
JP5978004B2 (en) Stamping system, stamping device, program, and stamping method
CN104424391B (en) A kind of method and apparatus supervised automatically
KR101681457B1 (en) 2-channel authentication system and method for a financial transfer
CN112949798B (en) Laboratory equipment management method and system based on RFID technology
JP2002229869A (en) Time synchronizing method and system therefor, and time synchronizing program medium
JP5054551B2 (en) Standby power reduction support system, management server, and standby power reduction support method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20151007

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160727

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160802

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160926

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170207

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170224

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170407

R150 Certificate of patent or registration of utility model

Ref document number: 6126364

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees