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 PDFInfo
- 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
Links
- 238000012545 processing Methods 0.000 title claims description 327
- 238000000034 method Methods 0.000 title claims description 169
- 230000008569 process Effects 0.000 claims description 155
- 238000005259 measurement Methods 0.000 claims description 142
- 238000004891 communication Methods 0.000 claims description 69
- 238000012790 confirmation Methods 0.000 claims description 61
- 230000005540 biological transmission Effects 0.000 claims description 56
- 230000006870 function Effects 0.000 claims description 24
- 230000004044 response Effects 0.000 claims description 24
- 238000007781 pre-processing Methods 0.000 claims description 10
- 238000001514 detection method Methods 0.000 claims description 7
- 238000012805 post-processing Methods 0.000 claims description 5
- 238000003860 storage Methods 0.000 description 86
- 238000007726 management method Methods 0.000 description 40
- 238000004049 embossing Methods 0.000 description 18
- 238000009826 distribution Methods 0.000 description 8
- 230000000737 periodic effect Effects 0.000 description 7
- 230000008859 change Effects 0.000 description 5
- 238000012544 monitoring process Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 238000011112 process operation Methods 0.000 description 3
- 241000282412 Homo Species 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 2
- 230000004913 activation Effects 0.000 description 2
- 230000001419 dependent effect Effects 0.000 description 2
- 230000001771 impaired effect Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000012946 outsourcing Methods 0.000 description 2
- 238000012935 Averaging Methods 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 230000003203 everyday effect Effects 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000002203 pretreatment Methods 0.000 description 1
- 238000004080 punching Methods 0.000 description 1
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
更に現在では、互いに通信回線を介して接続された端末装置及びサーバ装置を利用して打刻等の処理時刻の記録を行うシステムが開発されている。このシステムでは、端末装置に対して打刻入力を行い、端末装置からサーバ装置へ打刻に関する情報を送信し、当該打刻入力が行われた時刻を打刻時刻としてサーバ装置に設けられた記憶装置に記憶する。特許文献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.
ところで、互いに通信回線を介して接続された端末装置及びサーバ装置を利用して打刻等の処理時刻の記録を行うシステムによれば、打刻入力を受け付ける機能を端末装置に持たせ、打刻入力が行われた時刻を打刻時刻として記憶する機能をサーバ装置に持たせることができる。従って、例えば会社が複数の事業所を有する場合に、各事業所に端末装置のみを設置し、いずれか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.
上記課題を解決するために、本発明の第2の処理時刻取得システムは、上述した本発明の第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.
本発明の第2の処理時刻取得システムによれば、システムの起動から終了までの間のいずれにおいても、オフライン状態であるときに打刻等の処理を受け付けた際に、より好ましい方式でそのオフライン処理時刻データに基づく正確な確定処理時刻を算出することができる。
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.
上記課題を解決するために、本発明の第3の処理時刻取得システムは、上述した本発明の第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.
本発明の第3の処理時刻取得システムによれば、オフライン状態のときに端末装置で打刻等の処理が行われた場合でも、オフライン処理時刻データに基づき算出された確定処理時刻が正常な範囲内にあるか否かをエラー情報から確認することができ、システム異常の発生により経過時間カウントが正常に行われなかった場合等のオフライン処理時刻の異常を検出可能であり、就業等に関する処理時刻管理の公平性、信頼性を確保することができる。
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.
上記課題を解決するために、本発明の第4の処理時刻取得システムは、上述した本発明の第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.
上記課題を解決するために、本発明の第5の処理時刻取得システムは、上述した本発明の第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.
本発明の第5の処理時刻取得システムによれば、オフライン状態のときに端末装置で打刻等の処理が行われた場合でも、その処理時刻を算出するための経過時間情報が端末装置からサーバ装置に送信されるまでの間に改ざんされてしまうことを防止することができる。これにより、正確かつ真正な確定処理時刻をサーバ装置で算出することができ、就業等に関する処理時刻管理の公平性、信頼性を確保することができる。
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
以下、本発明の実施の形態について図面を参照しながら説明する。 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
端末装置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
サーバ装置4は例えばサーバコンピュータである。サーバ装置4は、例えば会社の1つの事業所(例えば人事部がある事業所)、あるいはアウトソーシング事業者(例えばASP)から就業管理サービスの提供を会社が受けている場合には、当該事業者の事業所等に設置されている。
The
通信網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
また、通信網2には、通信装置8、9と同様の通信装置10を介して時刻配信装置7が接続されている。時刻配信装置7は、例えば時刻配信業務を行う業務者が管理するサーバコンピュータであり、標準時と合致した時刻を配信する。時刻配信装置7は、例えば時刻配信業務を行う業務者の事業所に設置されている。
In addition, a
なお、端末装置3及びサーバ装置4は、通信網2を介して互いに接続可能に構成されているが、端末装置3とサーバ装置4との間は、常に通信可能な状態、即ち「オンライン状態」であるとは限らない。端末装置3とサーバ装置4との間が通信不能な状態、即ち「オフライン状態」である場合もある。例えば、通信網2の不具合により端末装置3とサーバ装置4との間がオフライン状態になる場合ある。また、端末装置3又はサーバ装置4の管理者等の事情により端末装置3とサーバ装置4との間がオフライン状態に設定される場合がある。もっとも、打刻システム1は、端末装置3とサーバ装置4との間が永久にオフライン状態となることは想定していない。
The
(端末装置)
図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
端末装置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
(サーバ装置)
図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
サーバ装置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
(経過時間計測処理)
端末装置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
(第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
図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
一方、端末装置3側では、ステップS4のサーバ時刻の送信に対して、端末通信制御部33が、サーバ時刻を受信する(ステップS6)。続いて、端末装置3の時刻差算出部36が、端末時計23の端末時刻を読み取り、この読み取った端末時刻と受信したサーバ時刻との差を算出し、この算出結果を時刻差情報として端末記憶部22に記憶する(ステップS7)。その後、ステップS1に戻り、所定時間毎の時刻差算出処理を繰り返す。
On the other hand, on the
例えば、時刻差情報は、サーバ時刻から端末時刻を差し引いた値である。従って、端末時計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
(第1の実施形態における打刻処理)
図5及び図6は第1の実施形態における打刻システム1の打刻処理を示している。この打刻システム1の打刻処理動作について図5のフローチャートを参照し、特にオフライン時の動作について図6のタイミングチャートを参照しながら以下に説明する。
(Holding process in the first embodiment)
5 and 6 show a stamping process of the
打刻システム1において、端末装置3は、サーバ装置4との接続状態(オンライン状態又はオフライン状態)及び従業員による打刻入力を常時監視する待機状態(ステップS11〜S13)となっている。この待機状態では、実際には、接続状態や打刻入力以外にも、各種操作入力や、定期的あるいは周期的な起動プログラム等も同時に監視するが、これらの説明は省略する。以下では、便宜上、接続状態の判断後に打刻入力の認識を行う例を説明するが、これらは同時に行われていてもよく、又は逆の順序で行われてもよい。
In the
端末装置3は、待機状態の最初(ステップS11)に接続状態判断部32によって接続状態判断処理を行うことで、サーバ装置4との接続状態がオンライン状態であるかオフライン状態であるかを監視する。この接続状態判断処理では、例えば、端末装置3は、サーバ装置4の特定のアドレスにアクセスし、サーバ装置4から一定時間内の応答の有無を確認することにより、サーバ装置4との間がオンライン状態であるかオフライン状態であるかを判断する。例えば図6では、タイミングT11以前ではオンライン状態と判断され、タイミングT11より後ではオフライン状態と判断される。この判断結果に基づいて、オンライン状態又はオフライン状態の別を状態監視フラグに設定して端末記憶部22に記憶すると共に表示部24に表示する。
The
また、接続状態判断部32により、接続状態のオフライン状態からオンライン状態への切り換えを検出した場合(ステップS11:YES)には、端末記憶部22にオフライン打刻データが記憶されているか否かの判断を行う(ステップS12)。一方、オフライン状態からオンライン状態への切り換えがないと判断した場合(ステップS11:NO)には、打刻入力の判断(ステップS13)へと進む。ステップS12において、端末記憶部22にオフライン打刻データが記憶されていない場合(ステップS12:NO)には、待機状態の最初(ステップS11)へと戻るが、記憶されている場合(ステップS12:YES)には、オフライン打刻の確定処理(ステップS23)へと移行する。このオフライン打刻確定処理については後述する。
Further, when the connection
そして、端末装置3は、打刻入力の判断(ステップS13)において、従業員が打刻入力を行うと、端末装置3の打刻入力認識部31は、この打刻入力を認識し(ステップS13:YES)、打刻入力がない場合には、(ステップS13:NO)には、待機状態の最初(ステップS11)へと戻る。
When the
ここで、打刻入力は、具体的には次のように行われる。即ち、先ず、従業員は端末装置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
このようにして打刻入力認識部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
先ず、オンライン打刻処理では、端末装置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
このオンライン打刻データをサーバ装置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
端末装置3の端末通信制御部33が確定打刻時刻を受信すると、端末装置3の表示制御部35が、受信した確定打刻時刻を表示部24に表示する(ステップS19)。これにより、所定の打刻入力に係るオンライン打刻データの処理は終了するが、端末装置3では、オンライン打刻データの送信(ステップS15)の後で待機状態の最初(ステップS11)へと戻るため、打刻処理が繰り返されることとなる。
When the terminal
一方、オフライン打刻処理では、端末装置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
最初の打刻の場合では、経過時間制御部34は、経過時間の計測開始を経過時間計測部37に指示し、経過時間計測部37は、経過時間カウント値を0クリア(リセット)すると共に経過時間のカウントを開始する(ステップS21)。
In the case of the first time stamp, the elapsed
次に、経過時間制御部34は、経過時間の計測開始の後、又は打刻を二回目以降と判断した後に、経過時間の計測を経過時間計測部37に指示して、打刻時の経過時間カウント値Taを経過時間計測部37から読み取る(ステップS22)。例えば、経過時間計測部37は、計測の指示があったときの経過時間カウント値Taを経過時間制御部34へと応答する。このとき、最初の打刻だった場合はTa=0となる。また、経過時間制御部34は、経過時間計測部37から読み取った経過時間カウント値Taを経過時間情報として記憶する。
Next, the elapsed
更に、経過時間制御部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
その後、待機状態の最初(ステップ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
そして、接続状態判断部32がオフライン状態からオンライン状態への切り換えを検出した場合(ステップS11:YES)、端末記憶部22にオフライン打刻データが記憶されているため(ステップS12:YES)、オフライン打刻の確定処理(ステップS23)へと移行する。例えば図6では、タイミングT14以後にオンライン状態を検出することができる。
And when the connection
オフライン打刻確定処理(ステップS23)では、端末装置3の経過時間制御部34が、先ず、端末記憶部22に記憶されたオフライン打刻データを復号する。続いて、経過時間制御部34は、経過時間の計測終了を経過時間計測部37に指示し、経過時間計測部37は、計測終了の指示に応じて経過時間のカウントを終了する。また、経過時間制御部34は、この終了時の経過時間カウント値(オンライン状態になるまでの経過時間)を終了時カウント値Te(オフライン終了時経過時間)として経過時間計測部37から読み取る。
In the offline time stamp determination process (step S23), the elapsed
更に、経過時間制御部34は、復号したオフライン打刻データの経過時間情報(経過時間カウント値Ta)とオフライン終了時経過時間(終了時カウント値Te)とに基づいて、各打刻に係る打刻後経過時間(処理後経過時間)を、例えば終了時カウント値Teから経過時間カウント値Taを減算(Te−Ta)し、割込信号の周期を乗算することによって算出する。
Further, the elapsed
次に、端末装置3の端末通信制御部33が、第2の打刻要求と共に、算出した打刻後経過時間と、復号したオフライン打刻データの従業員識別情報、打刻種別情報、接続状態情報及び端末IDを含むオフライン打刻データを打刻毎に再構成し、サーバ装置4へと送信する。このようにして、端末記憶部22に記憶されたオフライン打刻データを全てサーバ装置4に送信する。なお、打刻後経過時間、従業員識別情報、打刻種別情報、接続状態情報及び端末IDをそれぞれ暗号化したままサーバ装置4に送信し、サーバ装置4でこれらの情報を復号してもよい。また、端末装置3では、オフライン打刻データの送信後、待機状態の最初(ステップS11)へと戻る。
Next, the terminal
サーバ装置4では、サーバ通信制御部51がオフライン打刻データを受信して(ステップS24)、第2の打刻要求、打刻後経過時間、従業員識別情報、打刻種別情報、接続状態情報及び端末IDを取得する。確定打刻部52は、受信した打刻要求が第1の打刻要求であるか第2の打刻要求であるかを判断し、今回は第2の打刻要求であると判断する。
In the
そして、確定打刻部52は、サーバ時計43から現在のサーバ時刻を読み取る処理、受信した従業員識別情報とサーバ記憶部42に予め記憶されている従業員管理情報とを照らし合わせて従業員を特定する処理、及び受信した打刻種別情報に基づいて打刻種別を特定する処理を行う。続いて、確定打刻部52は、受信した打刻後経過時間を現在のサーバ時刻から差し引いた時刻を確定打刻時刻(確定処理時刻)として算出し、特定した従業員の、特定した打刻種別に属する確定打刻時刻としてサーバ記憶部42に記憶する(ステップS25)。
Then, the
また、確定打刻部52は、算出した確定打刻時刻が、前回の時刻差算出処理でサーバ記憶部42の時刻差算出履歴(オンライン確認履歴)に記録した時刻差算出時刻(オンライン確認時刻)と現在のサーバ時刻との間にあるか否かを確認(チェック)して、この範囲内に無い場合に打刻時刻範囲エラーフラグをセット(エラーありに設定)し、範囲内にある場合は打刻時刻範囲エラーフラグをリセット(エラーなしに設定)する。更に、確定打刻部52は、この打刻時刻範囲エラーフラグ、並びに端末装置3から受信した接続状態情報及び端末IDを当該確定打刻時刻に関連付けて確定打刻データとしてサーバ記憶部42に記憶する。このようにして、端末装置3から送信されたオフライン打刻データを打刻毎に確定処理する。これにより、所定の打刻入力に係るオフライン打刻データの処理は終了するが、端末装置3では、オフライン打刻データの送信(ステップS23)の後で待機状態の最初(ステップS11)へと戻るため、打刻処理が繰り返されることとなる。
Further, the confirmed
第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
また、上述したように、オンライン時に打刻入力が行われた場合には、打刻入力に対応する確定打刻時刻を端末装置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
また、今まで不具合が生じていた通信網が回復したために端末装置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
また、1つの打刻処理に関するオフライン打刻データは相互に関連付けられて端末記憶部22に記憶される。従って、オフライン状態中に、複数の従業員が1つの端末装置3に対して打刻入力を行ったために複数組のオフライン打刻データが端末記憶部22に記憶されても、これら複数組のオフライン打刻データを、従業員毎に区別することができる。
Further, the offline stamping data relating to one stamping process is associated with each other and stored in the
このような打刻処理によれば、オフライン状態のときに端末装置3に対して打刻入力が行われた場合でも、打刻入力が行われた正確な時刻を確定打刻時刻としてサーバ装置4に設けられたサーバ記憶部42に記憶することができる。従って、複数の事業所を有する会社において、各事業所に端末装置3を設置することにより、各事業所において各従業員により端末装置3に対して行われる打刻入力に対応する打刻時刻をサーバ装置4に集約することができる。そして、サーバ装置4において、集約された打刻時刻を用いて、複数の事業所における複数の従業員の一括的且つ一元的な就業管理を確実に行うことができる。
According to such a time stamping process, even when a time stamp is input to the
また、端末装置3の端末時計23が示す時刻がサーバ装置4のサーバ時計43が示す時刻と異なる場合でも、打刻後経過時間を計測することによりサーバ時計43が示す時刻に正確に合致した(端末時計23に依存しない)打刻時刻をサーバ装置4のサーバ記憶部42に記憶することができる。これにより、打刻入力がオフライン時に行われたか、オンライン時に行われたかによってサーバ装置4のサーバ記憶部42に記憶される打刻時刻が異なってしまうといった不都合を防止することができる。また、複数の事業所を有する会社において事業所毎に端末装置3を設置した場合には、打刻入力を行った端末装置3が異なることによってサーバ装置4のサーバ記憶部42に記憶される打刻時刻が異なってしまうといった不都合を防止することができる。従って、打刻時刻を用いた就業管理の公平性及び信頼性を確保することができる。また、端末装置3での経過時間の計測は、オフライン状態時のみ行われるため、この計測により生じる負荷は最小限に抑えられ、オンライン状態時にサーバ装置4との通信に影響を与えることがない。
Even when the time indicated by the
また、オフライン打刻データを端末装置3の端末記憶部22に暗号化して記憶することにより、打刻時刻の改ざんにより打刻時刻の正確性又は信頼性が損なわれることを防止することができる。
Further, by encrypting and storing the offline time stamping data in the
また、確定打刻時刻と関連付けてサーバ記憶部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
更に、確定打刻時刻と関連付けてサーバ記憶部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
(打刻画面)
図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
図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
接続状態表示領域63には、現時点の接続状態がオンライン状態かオフライン状態かを、打刻入力を行う従業員が明確に区別することができるように表示することが望ましい。例えば、オンライン状態のときには、接続状態表示領域63を全面的に例えば緑色にし、「オンライン」という文字列を大きく表示することが望ましい。一方、オフライン状態のときには、接続状態表示領域63を全面的に例えば赤色にし、「オフライン」という文字列を大きく表示することが望ましい。なお、緑色と赤色は人間が明確に区別することができるので、これらの色の組み合わせを採用したが、例えば青色と黄色等、人間が明確に識別できる他の色の組み合わせを採用してもよい。
In the connection
打刻種別表示領域64には、出勤、退勤、外出、戻りといった打刻種別が表示される。これらのうち、現在選択されている打刻種別を、他の打刻種別と比べて目立つ態様で表示する。
The stamp
なお、図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
先ず、第2の実施形態の打刻システム1において、端末装置3によるサーバ時刻送信要求(オンライン確認要求)の送信(ステップS31及びS32)や、サーバ装置4によるサーバ時刻送信要求の受信(ステップS33)は、第1の実施形態の動作(ステップS1及びS2やステップS3)と同様である。
First, in the
次に、サーバ装置4のサーバ通信制御部51は、第1の実施形態と同様にして、サーバ時刻送信要求の受信に応じてサーバ時計43から現時点のサーバ時刻を読み取り、読み取ったサーバ時刻(経過時間計測開始要求としての機能を含む)を端末装置3へ送信する(ステップS34)。更に、サーバ通信制御部51は、このサーバ時刻を開始要求送信時刻T1としてサーバ記憶部42に記録する。
Next, similarly to the first embodiment, the server
一方、端末装置3側では、第1の実施形態と同様にして、サーバ時刻の送信(ステップS34)に対して、端末通信制御部33がサーバ時刻を受信する(ステップS35)。続いて、端末装置3の時刻差算出部36が、端末時計23の端末時刻を読み取り、この読み取った端末時刻と、受信したサーバ時刻との差を算出し、この算出結果を時刻差情報として端末記憶部22に記憶する(ステップS36)。
On the other hand, on the
更に、端末装置3の時刻差算出部36は、経過時間の計測開始を経過時間計測部37に指示し、経過時間計測部37は、経過時間カウント値を0クリア(リセット)すると共に経過時間のカウントを開始する(ステップS37、図11のタイミングT21参照)。
Furthermore, the time
次に、端末装置3の端末通信制御部33が、時刻差算出応答(開始要求応答)をサーバ装置4へと送信する(ステップS38)。その後、端末装置3では、ステップS31に戻り、次の時刻差算出処理の待機状態になり、所定時間毎の時刻差算出処理を繰り返す。
Next, the terminal
また、サーバ装置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
(第2の実施形態における打刻処理)
図10及び図11は第2の実施形態における打刻システム1の打刻処理を示している。この打刻システム1の打刻処理動作について図10のフローチャートを参照し、特にオフライン時の動作について図11のタイミングチャートを参照しながら説明する。
(Holding process in the second embodiment)
10 and 11 show the stamping process of the
先ず、第2の実施形態の打刻システム1において、端末装置3とサーバ装置4との接続状態の監視(ステップS51)、オフライン打刻データの有無の確認(ステップS52)や打刻入力の監視(ステップS53)を含む待機状態は、第1の実施形態の動作(ステップS11、ステップS12やステップS13)と同様である。例えば図11では、タイミングT22以前ではオンライン状態と判断され、タイミングT22より後ではオフライン状態と判断される。
First, in the
また、端末装置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
一方、オフライン打刻処理では、端末装置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
更に、経過時間制御部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
その後、待機状態の最初(ステップ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
そして、接続状態判断部32がオフライン状態からオンライン状態への切り換えを検出した場合(ステップS51:YES)、端末記憶部22にオフライン打刻データが記憶されているため(ステップS52:YES)、オフライン打刻の確定処理(ステップS61)へと移行する。例えば図11では、タイミングT25以後にオンライン状態を検出することができる。
When the connection
オフライン打刻確定処理(ステップS61)では、端末装置3の経過時間制御部34が、先ず、端末記憶部22に記憶されたオフライン打刻データを復号し、復号したオフライン打刻データの経過時間情報、即ち経過時間カウント値Tbに、割込信号の周期を乗算して打刻前経過時間(処理前経過時間)とする。
In the offline time stamp determination process (step S61), the elapsed
次に、端末装置3の端末通信制御部33が、第2の打刻要求と共に、打刻前経過時間と、復号したオフライン打刻データの従業員識別情報、打刻種別情報、接続状態情報及び端末IDを含むオフライン打刻データを打刻毎に再構成し、サーバ装置4へと送信する。このようにして、端末記憶部22に記憶されたオフライン打刻データを全てサーバ装置4に送信する。なお、打刻前経過時間、従業員識別情報、打刻種別情報、接続状態情報及び端末IDをそれぞれ暗号化したままサーバ装置4に送信し、サーバ装置4でこれらの情報を復号してもよい。また、端末装置3では、オフライン打刻データの送信後、待機状態の最初(ステップS51)へと戻る。
Next, the terminal
サーバ装置4では、サーバ通信制御部51がオフライン打刻データを受信して(ステップS62)、第2の打刻要求、打刻前経過時間、従業員識別情報、打刻種別情報、接続状態情報及び端末IDを取得する。確定打刻部52は、受信した打刻要求が第1の打刻要求であるか第2の打刻要求であるかを判断し、今回は第2の打刻要求であると判断する。
In the
そして、確定打刻部52は、受信した従業員識別情報とサーバ記憶部42に予め記憶されている従業員管理情報とを照らし合わせて従業員を特定する処理、及び受信した打刻種別情報に基づいて打刻種別を特定する処理を行う。続いて、確定打刻部52は、サーバ記憶部42の時刻差算出履歴(経過時間計測開始履歴)から前回(オンライン状態になる前)の時刻差算出時刻(直前の開始要求時刻)を読み出し、受信した打刻前経過時間をこの時刻差算出時刻に足し合わせた時刻を確定打刻時刻(確定処理時刻)として算出し、特定した従業員の、特定した打刻種別に属する確定打刻時刻としてサーバ記憶部42に記憶する(ステップS63)。
Then, the
また、確定打刻部52は、サーバ時計43から現在のサーバ時刻を読み取り、算出した確定打刻時刻が、前回の時刻差算出処理でサーバ記憶部42の時刻差算出履歴(オンライン確認履歴)に記録した時刻差算出時刻(オンライン確認時刻)と現在のサーバ時刻との間にあるか否かを確認(チェック)して、この範囲内に無い場合に打刻時刻範囲エラーフラグをセット(エラーありに設定)し、範囲内にある場合は打刻時刻範囲エラーフラグをリセット(エラーなしに設定)する。更に、確定打刻部52は、この打刻時刻範囲エラーフラグ、並びに端末装置3から受信した接続状態情報及び端末IDを当該確定打刻時刻に関連付けて確定打刻データとしてサーバ記憶部42に記憶する。このようにして、端末装置3から送信されたオフライン打刻データを打刻毎に確定処理する。これにより、所定の打刻入力に係るオフライン打刻データの処理は終了するが、端末装置3では、オフライン打刻データの送信(ステップS61)の後で待機状態の最初(ステップS51)へと戻るため、打刻処理が繰り返されることとなる。
The fixed
上述したように、第2の実施形態における打刻システム1では、端末装置3がオフライン打刻時に打刻前経過時間を取得し、サーバ装置4がこの打刻前経過時間に基づいて確定打刻時刻を算出するため、オフライン打刻後に経過時間の計測等の不具合が生じた場合でも、システムが復帰した場合には影響を受けることなく正確な打刻時刻を記録及び管理することができる。
As described above, in the
また、上述したように、端末装置3及びサーバ装置4の間の伝送遅延時間を時刻差算出処理で取得し、この伝送遅延時間を加味した確定打刻時刻を算出するため、正確な打刻時刻を得ることができる。
In addition, as described above, the transmission time delay between the
(第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
先ず、端末装置3は、操作者の操作に応じて打刻機能プログラムが起動されると、各種の初期設定が行われ、端末装置3の表示部24に待機画面(図7にてメッセージ表示領域65が空白の状態)を表示する(ステップS71)。
First, when the embossing function program is activated in response to an operation by the operator, the
次に、端末装置3の接続状態判断部32は、サーバ装置4との間がオンライン状態であるかオフライン状態であるかを確認し(ステップS72)、オフライン状態の場合、即ち起動後に一度もオンライン状態になっていない場合(ステップS72:YES)には、第1の実施形態による打刻処理(ステップS73)へと移行し、オンライン状態を検出した場合(ステップS72:NO)には、第2の実施形態による時刻差算出処理(ステップS74)へと移行する。
Next, the connection
第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
そして、端末装置3にオフライン打刻データが無い場合や、オフライン打刻データの送信処理が終了した場合に、第2の実施形態による時刻差算出処理(ステップS74)へと移行する。
Then, when there is no offline time stamp data in the
第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
その後、端末装置3では、打刻機能プログラムの処理が継続する間(停止又は終了するまで)、ステップS74からステップS75までの処理が繰り返される。
Thereafter, in the
なお、第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
このように、打刻システム起動後のオフライン状態が継続する間にオフライン打刻があった場合には、第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
なお、上述した打刻処理(図5、図10、図12参照)を実現するための端末装置3のCPU21の機能、即ち、打刻入力認識部31、接続状態判断部32、端末通信制御部33、経過時間制御部34、表示制御部35、時刻差算出部36及び経過時間計測部37は、端末装置3の端末記憶部22に予め記憶された(事前に端末装置3にインストールされた)プログラムをCPU21で実行することにより具現化してもよいし、打刻処理を実際に行うときに、このようなプログラムをサーバ装置4から端末装置3へダウンロードし、このダウンロードしたプログラムをCPU21で実行することにより具現化してもよい。後者の態様は、ASPによる就業管理サービス又はクラウドコンピューティングを利用した就業管理サービスに好適である。
The functions of the
また、上述した実施形態では、端末装置3とこれに接続されたICカードリーダ5により、従業員が所持するICカード6を読み取ることで、打刻入力を認識する場合を例にあげたが、本発明はこれに限らない。例えば、携帯電話、スマートフォン等の携帯型電子機器をICカード6の代わりに採用することも可能である。また、ICカード6の代わりにこのような携帯型電子機器を採用した場合には、打刻入力を行ったときに打刻入力情報(従業員識別情報等)を送信する機能を携帯型電子機器に持たせると共に、打刻入力情報の受信を打刻入力と認識する機能を端末装置3に持たせてもよい。また、ICカード以外の各種識別媒体(バーコードカード、RFIDタグ、光カード等)を利用したり、暗証コードや生体認証等の他の認証方法により打刻入力を認識する方法でもよい。
In the above-described embodiment, the
また、上述した実施形態では、図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
また、上記実施形態において、打刻システム1は処理時刻取得システムの具体例であり、打刻入力は処理入力の具体例である。端末装置3は処理時刻取得端末装置の具体例であり、サーバ装置4は処理時刻管理サーバ装置の具体例である。打刻入力認識部31は処理認識手段の具体例であり、接続状態判断部32は接続状態判断手段の具体例であり、端末通信制御部33はオフライン処理時刻データ送信手段の具体例である。また、経過時間制御部34は経過時間制御手段の具体例であり、表示制御部35は確定処理時刻表示手段の具体例であり、時刻差算出部36はオンライン確認要求手段の具体例であり、経過時間計測部37は経過時間計測手段の具体例である。また、サーバ通信制御部51は経過時間計測開始要求手段、オンライン確認手段及びエラー検出手段の具体例であり、確定打刻部52は確定処理時刻取得手段の具体例である。
Moreover, in the said embodiment, the
また、本発明は、請求の範囲及び明細書全体から読み取ることのできる発明の要旨又は思想に反しない範囲で適宜変更可能であり、そのような変更を伴う打刻システム、打刻装置、打刻管理サーバ装置、打刻方法及び打刻プログラムもまた本発明の技術思想に含まれる。 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
4. Server device (processing time management server device)
21 CPU
22
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
37 Elapsed time measurement unit (Elapsed time measurement means)
41 CPU
42
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に記載の処理時刻取得システム。 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.
前記打刻入力を認識する処理認識手段と、
前記サーバ装置と通信可能なオンライン状態か通信不能なオフライン状態かを判断する接続状態判断手段と、
計測開始の指示を受けて、該指示があったときからの経過時間を計測する経過時間計測手段と、
前記接続状態判断手段により前記オフライン状態と判断され、且つ前記処理認識手段により前記打刻入力を認識したときに前記経過時間計測手段により計測された経過時間を経過時間情報として取得する経過時間制御手段と、
前記接続状態判断手段により前記オフライン状態から前記オンライン状態への切り換えを検出したとき、前記経過時間情報に基づき前記打刻入力に係るオフライン処理時刻データを取得して前記サーバ装置に送信するオフライン処理時刻データ送信手段とを備え、
前記経過時間制御手段は、前記サーバ装置から経過時間計測開始要求を受信したとき、前記経過時間計測手段に前記計測開始を指示し、
前記オフライン処理時刻データ送信手段は、前記接続状態判断手段により前記オフライン状態から前記オンライン状態への切り換えを検出したとき、前記経過時間情報を処理前経過時間として含む前記オフライン処理時刻データを取得して前記サーバ装置に送信し、
前記オフライン処理時刻データの送信により、前記オフライン処理時刻データの前記処理前経過時間と、前記サーバ装置が前記経過時間計測開始要求を送信する際に前記サーバ装置に設けられたサーバ時計から得られるサーバ時刻とに基づき前記打刻入力に係る確定処理時刻を算出することを、前記サーバ装置に対して要求することを特徴とする処理時刻取得端末装置。 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.
更に、前記オフライン処理時刻データの送信により、前記オフライン処理時刻データの前記処理前経過時間と、前記サーバ装置が前記経過時間計測開始要求を送信する際に前記サーバ装置に設けられたサーバ時計から得られるサーバ時刻とに基づき前記打刻入力に係る確定処理時刻を算出することを、前記サーバ装置に対して要求する手段として機能させるためのプログラム。 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 .
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 .
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)
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)
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)
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 |
-
2012
- 2012-11-28 JP JP2012259906A patent/JP6126364B2/en not_active Expired - Fee Related
Cited By (1)
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 |