Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6986428B2 - Working time calculator, working time calculation method and working time calculation program - Google Patents
[go: Go Back, main page]

JP6986428B2 - Working time calculator, working time calculation method and working time calculation program - Google Patents

Working time calculator, working time calculation method and working time calculation program Download PDF

Info

Publication number
JP6986428B2
JP6986428B2 JP2017230355A JP2017230355A JP6986428B2 JP 6986428 B2 JP6986428 B2 JP 6986428B2 JP 2017230355 A JP2017230355 A JP 2017230355A JP 2017230355 A JP2017230355 A JP 2017230355A JP 6986428 B2 JP6986428 B2 JP 6986428B2
Authority
JP
Japan
Prior art keywords
time
input
reason
time zone
working
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.)
Active
Application number
JP2017230355A
Other languages
Japanese (ja)
Other versions
JP2019101636A (en
Inventor
雅之 矢野
剛光 上野
Original Assignee
株式会社オービック
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 株式会社オービック filed Critical 株式会社オービック
Priority to JP2017230355A priority Critical patent/JP6986428B2/en
Publication of JP2019101636A publication Critical patent/JP2019101636A/en
Application granted granted Critical
Publication of JP6986428B2 publication Critical patent/JP6986428B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本発明は、就業時間計算装置、就業時間計算方法および就業時間計算プログラムに関する。 The present invention relates to a working time calculation device, a working time calculation method and a working time calculation program.

特許文献1には、勤務時間帯を業務項目ごとに単位時間で量子化し、量子化された時間帯を勤務管理表上のセルに対応させ、セルを勤務管理表上に表示し、ポインティングデバイスを用いて、特定の業務項目について、時間軸方向を指定してセルの範囲を選択し、選択範囲のセルを表示して、特定の業務項目について、勤務時間が入力されたことを示し、ポインティングデバイスを用いて、特定の業務項目について、時間軸と反対方向を指定してセルの範囲を選択し、選択範囲のセルの表示を順に解除して、特定の業務項目について、勤務入力が取り消されたことを示すようにした勤怠入力方法が開示されている(段落「0020」など参照)。 In Patent Document 1, the working hours are quantized in unit hours for each business item, the quantized time zones are made to correspond to the cells on the working management table, the cells are displayed on the working management table, and the pointing device is described. Use to select a range of cells by specifying the time axis direction for a specific business item and display the cells in the selected range to indicate that the working hours have been entered for a specific business item, pointing device. For a specific business item, select a range of cells by specifying the direction opposite to the time axis, undisplay the cells in the selected range in order, and the work input was canceled for the specific business item. A time input method is disclosed to indicate that (see paragraph "0020", etc.).

特開2008−065527号公報Japanese Unexamined Patent Publication No. 2008-065527

ところで、有給休暇の時間単位での取得を可能とする制度の採用により、昼休憩を挟んで時間単位で有給休暇を取得するなど、1日の中で有給休暇、休憩といった複数の不在事由が組み合わせで発生し得る。従来の技術では、同一の時間帯に異なる不在事由を重複して登録しようとすると入力エラーとなる入力制御が一般的であった。そのため、1日の中で複数の不在事由が組み合わせで発生する場合、不在事由の登録を入力制御に合わせて工夫して行う必要があり、不在事由の登録、管理が複雑になってしまうという問題点があった。この問題点は、上述の特許文献1においても解決できていない。 By the way, by adopting a system that allows paid leave to be taken on an hourly basis, multiple reasons for absence such as paid leave and breaks can be combined in a day, such as taking paid leave on an hourly basis with a lunch break in between. Can occur in. In the conventional technique, input control that causes an input error when trying to register different reasons for absence in the same time zone is common. Therefore, when multiple reasons for absence occur in combination in a day, it is necessary to devise the registration of the reasons for absence according to the input control, which makes the registration and management of the reasons for absence complicated. There was a point. This problem cannot be solved even in the above-mentioned Patent Document 1.

本発明は、上記に鑑みてなされたものであって、複数の事由が組み合わせで発生する場合の事由の登録および管理を容易とすることを目的とする。 The present invention has been made in view of the above, and an object of the present invention is to facilitate registration and management of events when a plurality of events occur in combination.

上述した課題を解決し、目的を達成するために、本発明に係る就業時間計算装置は、制御部と記憶部とを備えた就業時間計算装置であって、制御部は、ユーザによる入力を受け付ける入力手段と、入力手段により入力された、事由種別が勤務である勤務時間帯と、事由種別が休憩である休憩時間帯と、事由種別が不在に係る不在時間帯と、による各時間帯それぞれの開始時刻および終了時刻をそれぞれ示す複数の時刻情報と、不在の内容を示す事由種別と、を記憶部に記憶する記憶手段と、1日の時間に対して、記憶部に記憶された複数の時刻情報が示す時刻と、予め定められた時刻と、により区切った区切りを設定し、隣接する区切りに挟まれた区間を作成する作成手段と、勤務時間帯、休憩時間帯および不在時間帯を、作成手段により作成された区間毎に分割して分割時間帯を生成する分割手段と、作成手段により作成された区間それぞれのうち、1以上の分割時間帯を含む区間において、分割時間帯のうち最も高い優先度が設定された事由種別に対応する分割時間帯を、区間毎に選択する選択手段と、選択手段により選択された分割時間帯を、対応する事由種別が同一の分割時間帯毎に集計する集計手段と、を備えることを特徴とする。 In order to solve the above-mentioned problems and achieve the object, the working time calculation device according to the present invention is a working time calculation device including a control unit and a storage unit, and the control unit accepts input by a user. Each time zone according to the input means, the working time zone where the reason type is work, the break time zone where the reason type is a break, and the absent time zone where the reason type is absent, which are input by the input means. A storage means for storing a plurality of time information indicating a start time and an end time, and a reason type indicating the content of absence, and a plurality of times stored in the storage unit for a day's time. Create a means to create a section between adjacent divisions by setting a division separated by the time indicated by the information and a predetermined time, and create a working time zone, a break time zone, and an absent time zone. Of the division means that divides each section created by the means to generate the division time zone and the section created by the creation means, the section including one or more division time zones has the highest division time zone. The selection means for selecting the division time zone corresponding to the reason type for which the priority is set for each section and the division time zone selected by the selection means are aggregated for each division time zone with the same reason type. It is characterized by having a counting means.

また、本発明に係る就業時間計算装置においては、選択手段は、事由種別と優先度とを関連付けた優先度マスタに基づき、分割時間帯を区間毎に選択することを特徴とする。 Further, in the working time calculation device according to the present invention, the selection means is characterized in that the division time zone is selected for each section based on the priority master in which the reason type and the priority are associated with each other.

また、本発明に係る就業時間計算装置においては、入力手段は、勤務時間帯と、休憩時間帯と、不在時間帯と、の各時間帯のうち少なくとも2の時間帯が重複部分を持つ入力を受け付けることを特徴とする。 Further, in the working time calculation device according to the present invention, the input means inputs an input in which at least two time zones of the working time zone, the break time zone, and the absent time zone have overlapping portions. It is characterized by accepting.

また、本発明に係る就業時間計算装置においては、入力手段は、1日に対してそれぞれ複数の休憩時間帯および不在時間帯の入力を受け付け可能であることを特徴とする。 Further, the working time calculation device according to the present invention is characterized in that the input means can accept input of a plurality of break time zones and absent time zones for one day, respectively.

また、本発明に係る就業時間計算装置においては、入力手段は、不在の内容をさらに示す事由種別の入力を複数の不在時間帯毎に受け付け、入力された不在の内容を示す事由種別が異なる複数の不在時間帯が重複部分を持つ入力を受け付け可能であることを特徴とする。 Further, in the working hour calculation device according to the present invention, the input means accepts input of a reason type further indicating the content of absence for each of a plurality of absent time zones, and a plurality of different reason types indicating the input content of absence. It is characterized in that it is possible to accept an input having an overlapping portion in the absence time zone of.

また、本発明に係る就業時間計算装置においては、入力手段は、不在の内容をさらに示す事由種別を、事由種別と不在の内容を示す不在事由とが関連付けられた不在事由マスタに基づき入力することを特徴とする。 Further, in the working hour calculation device according to the present invention, the input means inputs the reason type further indicating the content of absence based on the absence reason master in which the reason type and the absence reason indicating the content of absence are associated. It is characterized by.

また、本発明に係る就業時間計算装置においては、作成手段は、それぞれ予め定められた就業時間帯および深夜時間帯それぞれの開始時刻および終了時刻を予め定められた時刻として区切りを設定し、集計手段は、就業時間帯および深夜時間帯それぞれの開始時刻および終了時刻に基づき、選択手段により選択された勤務時間帯を分割した分割時間帯を、さらに、就業時間帯内および就業時間帯外、ならびに、深夜時間帯内および深夜時間帯外で区別して集計することを特徴とする。 Further, in the working time calculation device according to the present invention, the creating means sets the start time and the end time of each of the predetermined working time zone and the midnight time zone as predetermined times, and sets the delimiter as the aggregation means. Divides the working hours selected by the selection means based on the start time and the end time of each of the working hours and the midnight hours, and further divides the working hours into and out of the working hours, and It is characterized in that it is aggregated separately within the midnight time zone and outside the midnight time zone.

また、本発明に係る就業時間計算装置においては、入力手段は、複数の時刻情報を、制御部が管理する最小時間単位で入力可能であることを特徴とする。 Further, in the working time calculation device according to the present invention, the input means can input a plurality of time information in the minimum time unit managed by the control unit.

また、本発明に係る就業時間計算方法は、制御部と記憶部とを備えた就業時間計算装置で実行される就業時間計算方法であって、制御部で実行される、ユーザによる入力を受け付ける入力ステップと、入力ステップにより入力された、事由種別が勤務である勤務時間帯と、事由種別が休憩である休憩時間帯と、事由種別が不在に係る不在時間帯と、による各時間帯それぞれの開始時刻および終了時刻をそれぞれ示す複数の時刻情報と、不在の内容を示す事由種別と、を記憶部に記憶する記憶ステップと、1日の時間に対して、記憶部に記憶された複数の時刻情報が示す時刻と、予め定められた時刻と、により区切った区切りを設定し、隣接する区切りに挟まれた区間を作成する作成ステップと、勤務時間帯、休憩時間帯および不在時間帯を、作成ステップにより作成された区間毎に分割して分割時間帯を生成する分割ステップと、作成ステップにより作成された区間それぞれのうち、1以上の分割時間帯を含む区間において、分割時間帯のうち最も高い優先度が設定された事由種別に対応する分割時間帯を、区間毎に選択する選択ステップと、選択ステップにより選択された分割時間帯を、対応する事由種別が同一の分割時間帯毎に集計する集計ステップと、を含むことを特徴とする。 Further, the working time calculation method according to the present invention is a working time calculation method executed by a working time calculation device including a control unit and a storage unit, and is an input executed by the control unit that accepts input by a user. Start of each time zone according to the step, the working time zone where the reason type is work, the break time zone where the reason type is break, and the absent time zone where the reason type is absent, which are input by the step and the input step. A storage step for storing a plurality of time information indicating the time and an end time and a reason type indicating the content of absence in the storage unit, and a plurality of time information stored in the storage unit for the time of the day. A step to create a section between adjacent delimiters by setting a delimiter separated by a time indicated by and a predetermined time, and a step to create a working time zone, a break time zone, and an absent time zone. Of the division steps that generate the division time zone by dividing each section created by, and the section that includes one or more division time zones among the sections created by the creation step, the highest priority among the division time zones. A selection step that selects the division time zone corresponding to the reason type for which the degree is set for each section, and a division time zone selected by the selection step are aggregated for each division time zone with the same reason type. It is characterized by including steps.

また、本発明に係る就業時間計算プログラムは、制御部と記憶部とを備えた情報処理装置に実行させるための就業時間計算プログラムであって、制御部に実行させるための、ユーザによる入力を受け付ける入力ステップと、入力ステップにより入力された、事由種別が勤務である勤務時間帯と、事由種別が休憩である休憩時間帯と、事由種別が不在に係る不在時間帯と、による各時間帯それぞれの開始時刻および終了時刻をそれぞれ示す複数の時刻情報と、不在の内容を示す事由種別と、を記憶部に記憶する記憶ステップと、1日の時間に対して、記憶部に記憶された複数の時刻情報が示す時刻と、予め定められた時刻と、により区切った区切りを設定し、隣接する区切りに挟まれた区間を作成する作成ステップと、勤務時間帯、休憩時間帯および不在時間帯を、作成ステップにより作成された区間毎に分割して分割時間帯を生成する分割ステップと、作成ステップにより作成された区間それぞれのうち、1以上の分割時間帯を含む区間において、分割時間帯のうち最も高い優先度が設定された事由種別に対応する分割時間帯を、区間毎に選択する選択ステップと、選択ステップにより選択された分割時間帯を、対応する事由種別が同一の分割時間帯毎に集計する集計ステップと、を含むことを特徴とする。 Further, the working time calculation program according to the present invention is a working time calculation program for causing an information processing apparatus including a control unit and a storage unit to execute, and accepts input by a user for causing the control unit to execute. Each time zone according to the input step, the working time zone where the reason type is work, the break time zone where the reason type is break, and the absent time zone where the reason type is absent, which are input by the input step. A storage step for storing a plurality of time information indicating a start time and an end time and a reason type indicating the content of absence in the storage unit, and a plurality of times stored in the storage unit for a day's time. Create a step to create a section between adjacent delimiters by setting a delimiter separated by the time indicated by the information and a predetermined time, and create a working time zone, a break time zone, and an absent time zone. The highest of the division time zones in the division step that divides each section created by the step to generate the division time zone and the section that includes one or more division time zones in each of the sections created by the creation step. The selection step that selects the division time zone corresponding to the reason type for which the priority is set for each section and the division time zone selected by the selection step are aggregated for each division time zone with the same reason type. It is characterized by including an aggregation step.

本発明によれば、複数の事由が組み合わせで発生する場合の事由の登録および管理が容易となるという効果を奏する。 According to the present invention, there is an effect that registration and management of events when a plurality of events occur in combination are facilitated.

図1は、複数の不在事由が組み合わせで発生する場合の既存の登録方法について概略的に説明するための図である。FIG. 1 is a diagram for schematically explaining an existing registration method when a plurality of absentee events occur in combination. 図2は、複数の不在事由が組み合わせで発生する場合の既存の登録方法について概略的に説明するための図である。FIG. 2 is a diagram for schematically explaining an existing registration method when a plurality of absentee events occur in combination. 図3は、実施形態に適用可能な就業時間計算システムの構成例を示す図である。FIG. 3 is a diagram showing a configuration example of a working hour calculation system applicable to the embodiment. 図4は、実施形態に係る就業時間計算装置に適用可能なハードウェア構成の例を示すブロック図である。FIG. 4 is a block diagram showing an example of a hardware configuration applicable to the working time calculation device according to the embodiment. 図5は、実施形態に係る就業時間計算装置の機能を説明するための機能ブロック図である。FIG. 5 is a functional block diagram for explaining the function of the working hour calculation device according to the embodiment. 図6は、実施形態に適用可能な、勤務情報データを入力、登録するための入力画面の例を示す図である。FIG. 6 is a diagram showing an example of an input screen for inputting and registering work information data, which is applicable to the embodiment. 図7は、実施形態に係る不在事由マスタの例を示す図である。FIG. 7 is a diagram showing an example of an absentee reason master according to an embodiment. 図8は、実施形態に係る優先度マスタの例を示す図である。FIG. 8 is a diagram showing an example of a priority master according to an embodiment. 図9は、実施形態に係る就業時間計算装置における処理を示す一例のフローチャートである。FIG. 9 is a flowchart showing an example of processing in the working time calculation device according to the embodiment. 図10は、実施形態に係る事由明細データの例を概略的に示す図である。FIG. 10 is a diagram schematically showing an example of reason detail data according to an embodiment. 図11は、実施形態に係る事由明細データを作成する例を模式的に示す模式図である。FIG. 11 is a schematic diagram schematically showing an example of creating event detail data according to an embodiment. 図12は、実施形態に係る基準時刻明細データの例を概略的に示す図である。FIG. 12 is a diagram schematically showing an example of reference time detailed data according to an embodiment. 図13は、実施形態に係る基準時刻明細データを作成する例を模式的に示す模式図である。FIG. 13 is a schematic diagram schematically showing an example of creating reference time detailed data according to an embodiment. 図14は、実施形態に係る事由明細分割データの例を概略的に示す図である。FIG. 14 is a diagram schematically showing an example of reason detail division data according to an embodiment. 図15は、実施形態に係る事由明細分割データを作成する例を模式的に示す模式図である。FIG. 15 is a schematic diagram schematically showing an example of creating reason detail division data according to an embodiment. 図16は、実施形態に係る事由明細分割データを、1日の時間帯を分割するブロックを用いて表した図である。FIG. 16 is a diagram showing the reason detail division data according to the embodiment by using a block that divides the time zone of the day. 図17は、実施形態に係るグルーピング処理について説明するための図である。FIG. 17 is a diagram for explaining the grouping process according to the embodiment. 図18は、実施形態に係る事由明細分割抽出データの生成処理について説明するための図である。FIG. 18 is a diagram for explaining the process of generating the reason detail division extraction data according to the embodiment. 図19は、実施形態に係る、事由明細分割抽出データから区間を抽出するための所定の集計条件の例を示す図である。FIG. 19 is a diagram showing an example of predetermined aggregation conditions for extracting a section from the reason detail division extraction data according to the embodiment. 図20は、実施形態に係る集計方法について説明するための図である。FIG. 20 is a diagram for explaining an aggregation method according to an embodiment. 図21は、実施形態に係る、集計結果が表示された入力画面の例を示す図である。FIG. 21 is a diagram showing an example of an input screen on which the aggregation result is displayed according to the embodiment.

以下に、本発明に係る就業時間計算装置、就業時間計算方法および就業時間計算プログラムの実施形態を、図面に基づいて詳細に説明する。なお、本実施形態によりこの発明が限定されるものではない。 Hereinafter, embodiments of the working hours calculation device, the working hours calculation method, and the working hours calculation program according to the present invention will be described in detail with reference to the drawings. The present invention is not limited to this embodiment.

[1.概要]
近年、「働き方改革」というキーワードで、労働時間の適正管理が重要性を増し、それに伴い勤怠管理システムに対する期待とニーズも高まっている。働き方改革では、例えば、労働者の正確な勤務状況を管理部門や所属上長が正確に把握し、過重労働を防止したり、定期的な休暇取得を促したり、といった改善を行う必要がある。そのため、労働者の日々の勤務状況を時間(分)単位で適切に登録し、管理する必要がある。
[1. Overview]
In recent years, with the keyword "work style reform", proper management of working hours has become more important, and along with this, expectations and needs for time and attendance management systems have also increased. In work style reform, for example, it is necessary for management departments and supervisors to accurately grasp the exact working conditions of workers, prevent overwork, and encourage regular leave to be taken. .. Therefore, it is necessary to appropriately register and manage the daily work status of workers on an hourly (minute) basis.

一方で、多様な働き方に合わせて有効な休暇取得を促すための施策として、時間単位で有給休暇(以下、時間有休と呼ぶ)を取得可能とする例も増えている。時間有休の利用方法の例としては、仕事と生活の調和を図る(日中の通院など)、メリハリのある働き方(仕事を調整して、普段より1時間早く帰る)、などが考えられる。 On the other hand, as a measure to encourage effective leave acquisition according to various work styles, there are an increasing number of cases where paid leave (hereinafter referred to as hourly paid leave) can be taken on an hourly basis. Examples of ways to use paid holidays include balancing work and life (such as going to the hospital during the day) and working in a well-balanced manner (adjusting work and returning one hour earlier than usual).

時間有休の導入により、1日の中で休暇、休憩のように複数の不在事由が組み合わせで発生するようになり、取得時間の組み合わせも多様化する。一方、複数の不在事由の組み合わせが発生する場合、既存の登録方法では管理が複雑になるという課題がある。これは、既存の登録方法では、同一の時間帯に異なる事由を重複して登録することができない(入力エラー)とする制御が一般的であり、入力制御に合わせてデータを分割して登録するなど、入力方法を調整する必要があるためである。 With the introduction of paid holidays, multiple reasons for absence, such as vacations and breaks, will occur in combination during the day, and the combination of acquisition times will also diversify. On the other hand, when a combination of a plurality of reasons for absence occurs, there is a problem that management becomes complicated with the existing registration method. In the existing registration method, it is common to control that different reasons cannot be registered in duplicate in the same time zone (input error), and the data is divided and registered according to the input control. This is because it is necessary to adjust the input method.

図1および図2を用いて、複数の不在事由が組み合わせで発生する場合の、既存の登録方法について、概略的に説明する。図1は、ある社員(社員ID「A」の社員とする)のある日(2017年9月3日とする)の勤務スケジュールの例を示す。なお、以下では、時刻を24時間表記にて記載する。また、社員ID「A」の社員を、社員Aと呼ぶ。 The existing registration method when a plurality of absentee reasons occur in combination will be schematically described with reference to FIGS. 1 and 2. FIG. 1 shows an example of a work schedule for a certain employee (assumed to be an employee with employee ID “A”) on a certain day (September 3, 2017). In the following, the time is described in 24-hour notation. Further, an employee with an employee ID "A" is referred to as an employee A.

図1(a)の例では、勤務開始時刻が時刻「09:00」、勤務終了時刻が時刻「18:00」であって、休憩の開始時刻が時刻「12:00」、終了時刻が時刻「13:00」とされている。また、社員Aは、休憩時間を挟んで、開始時刻を時刻「11:00」、終了時刻を時刻「14:00」として時間有休を取得している。すなわち、この場合の時間有休は、時刻「12:00」から時刻「13:00」までの休憩時間を含む。各時間は、図1(b)に示されるように、時間有休による休暇時間が2時間(120分)、休憩時間が1時間(60分)とされる。また、勤務開始時刻から終了時刻までの時間(9時間)からこれら休暇時間および休憩時間を差し引いた6時間(360分)が実労働時間となる。 In the example of FIG. 1 (a), the work start time is the time "09:00", the work end time is the time "18:00", the break start time is the time "12:00", and the end time is the time. It is said to be "13:00". Further, the employee A takes time holidays with the start time as the time "11:00" and the end time as the time "14:00" with the break time in between. That is, the time paid holiday in this case includes a break time from the time "12:00" to the time "13:00". As shown in FIG. 1 (b), each time has a vacation time of 2 hours (120 minutes) and a break time of 1 hour (60 minutes) due to paid holidays. In addition, the actual working hours are 6 hours (360 minutes) obtained by subtracting these vacation times and break times from the time from the start time to the end time (9 hours).

図2は、図1(a)で示した勤務スケジュールを、既存技術を用いて登録する例を概略的に示している。図2(a)は、図1(a)の勤務スケジュールによる、社員Aの実際の勤怠の様子を模式的に示す。社員Aは、勤務開始時刻の時刻「09:00」に勤務を開始し、時間有休の開始時刻の時刻「11:00」に勤務を休止する。時間有休として取得された時刻「11:00」〜時刻「14:00」の間には、休憩時間(時刻「12:00」〜時刻「13:00」)が挟まれている。この休憩時間は、時間有休による休暇時間中の見做し休憩であって、社員Aが元来持つ権利である。社員Aは、時間有休の終了時刻の時刻「14:00」から勤務を再開し、勤務終了時刻の時刻「18:00」まで勤務を継続する。 FIG. 2 schematically shows an example of registering the work schedule shown in FIG. 1 (a) using the existing technology. FIG. 2A schematically shows the actual attendance of employee A according to the work schedule of FIG. 1A. Employee A starts work at the time "09:00" of the work start time, and suspends work at the time "11:00" of the start time of the paid holidays. A break time (time "12:00" to time "13:00") is sandwiched between the time "11:00" and the time "14:00" acquired as time holidays. This break time is a break that is considered to be during the vacation time due to paid holidays, and is the original right of employee A. Employee A resumes work from the time "14:00" at the end time of the paid holidays, and continues to work until the time "18:00" at the end time of the work.

図2(b)を用いて、既存技術による登録方法の第1の例について説明する。この第1の例は、時間帯毎の事由を正しく登録する場合の例である。休憩時間(時刻「12:00」〜時刻「13:00」)が予め定められている場合、図2(b)に示すように、時間有休を、休憩時間より前の時刻である時刻「11:00」〜時刻「12:00」の時間帯と、休憩時間より後の時刻である時刻「13:00」〜時刻「14:00」の時間帯とに分けて、勤務スケジュールに対してそれぞれ追加登録する。第1の例では、このように時間有休を2回に分けて登録することで、時間有休と休憩時間との重複登録を避けている。 A first example of the registration method by the existing technique will be described with reference to FIG. 2 (b). This first example is an example in which the reason for each time zone is correctly registered. When the break time (time "12:00" to time "13:00") is predetermined, as shown in FIG. 2 (b), the time holiday is set to the time "11" which is the time before the break time. The work schedule is divided into a time zone from ": 00" to the time "12:00" and a time zone from the time "13:00" to the time "14:00", which is the time after the break time. Additional registration. In the first example, by registering the paid holidays in two steps in this way, the duplicate registration of the paid holidays and the break time is avoided.

図2(c)を用いて、既存技術による登録方法の第2の例について説明する。この第2の例は、休憩時間を挟んで2つに分割される時間有休を1つに纏めて登録する例である。この場合、例えば本来時刻「12:00」〜時刻「13:00」である休憩時間をずらして時刻「13:00」〜時刻「14:00」とすることで、時間有休の時間長である2時間分の連続した時間帯(時刻「11:00」〜時刻「13:00」)を確保し、この時間帯に、時間有休を登録する。これにより、時間有休と休憩時間との重複登録を避けることができる。一方で、この第2の例では、時間有休の登録自体は1回分の登録で済むが、休憩の取得時間をずらす作業が必要になる。 A second example of the registration method using the existing technique will be described with reference to FIG. 2 (c). This second example is an example of collectively registering time-paid holidays that are divided into two with a break time in between. In this case, for example, by shifting the break time, which is originally the time "12:00" to the time "13:00", to the time "13:00" to the time "14:00", the time is long. A continuous time zone for two hours (time "11:00" to time "13:00") is secured, and time holidays are registered in this time zone. This makes it possible to avoid duplicate registration of paid holidays and breaks. On the other hand, in this second example, the registration itself for paid holidays can be done only once, but it is necessary to shift the acquisition time of the breaks.

なお、図1(a)で示した勤務スケジュールは、パターンの一例であって、実際は、「半日休と休憩」、「私用外出と休憩」、「私用外出と休暇」など事由の組み合わせおよび数の違いや、時間の重複具合の違いによって、様々な派生パターンが発生し得る。特に、図1(a)の例では、時刻「11:00」、時刻「12:00」、時刻「13:00」のように、切りが良い時刻(この場合1時間単位)で事由が区切れているが、実際は、時刻「11:15」、時刻「12:30」、…のように、分単位で正確に管理される場合も想定が必要となる。 The work schedule shown in FIG. 1 (a) is an example of a pattern, and is actually a combination of reasons such as "half-day break and break", "private outing and break", and "private outing and vacation". Various derivation patterns can occur depending on the number and the degree of overlap of time. In particular, in the example of FIG. 1 (a), the reason is divided by a good time (in this case, in 1-hour units) such as time "11:00", time "12:00", and time "13:00". Although it has expired, in reality, it is necessary to assume that it is managed accurately in minutes, such as time "11:15", time "12:30", and so on.

また、深夜時間帯(時刻「22:00」〜翌日の時刻「05:00」)の労働に対しては、労働基準法によって深夜割増賃金の支払いが義務付けられている。そのため、入力された労働、休憩および休暇の時間帯が深夜時間帯であるか否かの区別も必要となる。さらに、1日の標準の労働時間(所定労働時間)範囲外の労働について所定外の割増賃金を就業規則により定めている場合があるため、入力された労働、休憩および休暇の時間帯が所定外の時間帯か否かの区別も必要となる。 In addition, the Labor Standards Law requires payment of a late-night premium wage for work during the midnight hours (time "22:00" to the next day's time "05:00"). Therefore, it is also necessary to distinguish whether or not the entered work, break and vacation time zone is the midnight time zone. In addition, the work rules may stipulate extra wages for work outside the standard working hours (prescribed working hours) per day, so the entered working hours, breaks, and vacation hours are not prescribed. It is also necessary to distinguish whether it is the time zone or not.

実施形態では、以下の方針により上述した課題を解決する。
・不在事由の種別毎に、複数の事由が重複した場合の優先度を設ける。
・勤怠情報を登録するための入力画面では、種類の異なる不在事由について、重複する時間帯を含んだ入力を許可する。
・勤怠情報登録後の集計処理内で、事由の区切れ目、重複、優先度を自動判定し、正しい内訳時間を算出する。
・事由の区切れ目以外に、所定労働の開始時刻および終了時刻、ならびに、深夜時間帯の開始時刻および終了時刻の区切れ目も判定し、所定外労働時間、深夜労働時間の集計も可能とする。
In the embodiment, the above-mentioned problems are solved by the following policy.
-For each type of absentee reason, set a priority when multiple reasons overlap.
-On the input screen for registering attendance information, it is permitted to input different types of reasons for absence, including overlapping time zones.
-In the aggregation process after registering attendance information, the breaks, duplications, and priorities of reasons are automatically determined, and the correct breakdown time is calculated.
-In addition to the breaks for reasons, the start time and end time of scheduled work, and the breaks between the start time and end time of the midnight time zone are also determined, and overtime work hours and midnight work hours can be aggregated.

より具体的には、本実施形態では、重複部分を有する事由が異なる複数の時間帯の登録を許可し、これら複数の時間帯の開始時刻および終了時刻により各時間帯を分割し、各事由に設定される優先度に従い、分割された時間帯において重複する事由から1つを選択する。これにより、複数の事由が組み合わせで発生する場合であっても、それぞれの事由を分離した登録を簡易な登録方法にて実現できる。 More specifically, in the present embodiment, registration of a plurality of time zones having different reasons for having overlapping portions is permitted, each time zone is divided according to the start time and end time of these multiple time zones, and each reason is divided into each time zone. According to the priority set, one is selected from the overlapping reasons in the divided time zone. As a result, even when a plurality of reasons occur in combination, it is possible to realize registration in which each reason is separated by a simple registration method.

[2.構成]
実施形態に係る就業時間計算装置の構成について説明する。図3は、実施形態に適用可能な就業時間計算システムの構成例を示す。実施形態に係る就業時間計算システムは、例えば、就労時間帯および不在事由に応じて賃金の計算が変わる、企業や店舗などの組織に用いて好適なものである。以下では、実施形態に係る就業時間計算システムが、企業に適用されるものとして説明を行う。
[2. composition]
The configuration of the working hours calculation device according to the embodiment will be described. FIG. 3 shows a configuration example of a working hour calculation system applicable to the embodiment. The working hours calculation system according to the embodiment is suitable for use in an organization such as a company or a store where the wage calculation changes depending on the working hours and the reason for absence. In the following, the working hours calculation system according to the embodiment will be described as being applied to a company.

図3(a)は、就業時間計算システムが、ネットワーク30に接続された、実施形態に係る就業時間計算装置10と、サーバ20とを含む例である。就業時間計算装置10は、ディスプレイに、出退勤時刻、休憩時刻、不在時刻などの時刻情報を入力するための入力画面を表示させ、ユーザ(社員など)は、これらの時刻情報を、この入力画面に従い就業時間計算装置10に対して直接的に入力する。 FIG. 3A is an example in which the working time calculation system includes the working time calculation device 10 according to the embodiment and the server 20 connected to the network 30. The working time calculation device 10 displays an input screen for inputting time information such as attendance / leaving time, break time, and absence time on the display, and a user (employee, etc.) inputs these time information according to this input screen. Input directly to the working time calculation device 10.

サーバ20は、例えば社員情報を管理するための社員マスタを含み、就業時間計算装置10に対して社員の情報を提供することができる。なお、サーバ20の機能を就業時間計算装置10に含めることも可能である。 The server 20 includes, for example, an employee master for managing employee information, and can provide employee information to the working time calculation device 10. It is also possible to include the function of the server 20 in the working time calculation device 10.

図3(b)は、図3(a)で説明した構成に対して、ネットワーク30に接続される入力端末40を追加した例である。就業時間計算装置10は、ユーザが時刻情報を入力するための入力画面を表示させるための表示情報を、ネットワーク30を介して、入力端末40に送信する。入力端末40は、就業時間計算装置10から送られた表示情報に従いディスプレイに入力画面を表示させる。ユーザは、入力端末40に表示された入力画面に従い時刻情報を入力する。入力端末40は、入力された時刻情報を、ネットワーク30を介して就業時間計算装置10に送信する。 FIG. 3B is an example in which an input terminal 40 connected to the network 30 is added to the configuration described in FIG. 3A. The working time calculation device 10 transmits display information for displaying an input screen for the user to input time information to the input terminal 40 via the network 30. The input terminal 40 causes the display to display the input screen according to the display information sent from the working time calculation device 10. The user inputs the time information according to the input screen displayed on the input terminal 40. The input terminal 40 transmits the input time information to the working time calculation device 10 via the network 30.

図4は、実施形態に係る就業時間計算装置10に適用可能なハードウェア構成の例を示す。図4において、就業時間計算装置10は、CPU(Central Processing Unit)1000と、ROM(Read Only Memory)1001と、RAM(Random Access Memory)1002と、グラフィックI/F(インタフェース)1003と、ストレージ1004と、入出力I/F1005と、通信I/F1006とを含み、これら各部がバス1010により互いに通信可能に接続される。このように、実施形態に係る就業時間計算装置10は、情報処理装置としての一般的なコンピュータを用いて構成できる。 FIG. 4 shows an example of a hardware configuration applicable to the working time calculation device 10 according to the embodiment. In FIG. 4, the working hours calculation device 10 includes a CPU (Central Processing Unit) 1000, a ROM (Read Only Memory) 1001, a RAM (Random Access Memory) 1002, a graphic I / F (interface) 1003, and a storage 1004. The input / output I / F 1005 and the communication I / F 1006 are included, and each of these parts is communicably connected to each other by the bus 1010. As described above, the working time calculation device 10 according to the embodiment can be configured by using a general computer as an information processing device.

ストレージ1004は、ハードディスクドライブやフラッシュメモリといった不揮発性の記憶媒体であって、CPU1000が動作するためのプログラムや、各種のデータが記憶される。CPU1000は、ストレージ1004やROM1001に記憶されるプログラムに従い、RAM1002をワークメモリとして用いて、この就業時間計算処理装置10の全体の動作を制御する。 The storage 1004 is a non-volatile storage medium such as a hard disk drive or a flash memory, and stores a program for operating the CPU 1000 and various data. The CPU 1000 uses the RAM 1002 as a work memory according to a program stored in the storage 1004 and the ROM 1001 to control the overall operation of the working time calculation processing device 10.

グラフィックI/F1003は、CPU1000によりプログラムに従い生成された表示制御信号を、ディスプレイ1020が対応可能な画像信号に変換して出力する。これにより、プログラムに従った画面をディスプレイ1020上に表示させることができる。 The graphic I / F 1003 converts a display control signal generated by the CPU 1000 according to a program into an image signal compatible with the display 1020 and outputs the signal. As a result, the screen according to the program can be displayed on the display 1020.

入出力I/F1005は、外部機器との間でデータの入出力を行うインタフェースである。入出力I/F1005としては、例えばUSB(Universal Serial Bus)を適用できる。図4の例では、入出力I/F1005に対して、ユーザ操作に応じた制御信号を出力する入力デバイス1021が接続されている。入力デバイス1021からユーザ操作に応じて出力された制御信号は、入出力I/F1005を介してCPU1000に送られる。 The input / output I / F 1005 is an interface for inputting / outputting data to / from an external device. As the input / output I / F 1005, for example, USB (Universal Serial Bus) can be applied. In the example of FIG. 4, an input device 1021 that outputs a control signal corresponding to a user operation is connected to the input / output I / F 1005. The control signal output from the input device 1021 in response to the user operation is sent to the CPU 1000 via the input / output I / F 1005.

入力デバイス1021は、キーボードやポインティングデバイスを適用できる。これに限らず、入力デバイス1021として、表示デバイスと一体的に構成されたタッチパネルを適用させてもよいし、音声入力を行うマイクロホンを適用させてもよい。入力デバイス1021としてマイクロホンを適用させる場合、入出力I/F1005は、アナログ音声信号をディジタル音声信号に変換するA/D変換器を含む。また、入出力I/F1005に対して、出力デバイスとしてプリンタやスピーカを接続することができる。出力デバイスとしてスピーカを適用させる場合、入出力I/F1005は、ディジタル音声信号をアナログ音声信号に変換するD/A変換器を含む。 A keyboard or a pointing device can be applied to the input device 1021. Not limited to this, as the input device 1021, a touch panel configured integrally with the display device may be applied, or a microphone for performing voice input may be applied. When applying a microphone as the input device 1021, the input / output I / F 1005 includes an A / D converter that converts an analog audio signal into a digital audio signal. Further, a printer or a speaker can be connected to the input / output I / F 1005 as an output device. When applying a speaker as an output device, the input / output I / F 1005 includes a D / A converter that converts a digital audio signal into an analog audio signal.

通信I/F1006は、CPU1000の指示に従い、LAN(Local Area Network)やインターネットといったネットワークに対する通信を行う。 The communication I / F 1006 communicates with a network such as a LAN (Local Area Network) or the Internet according to the instruction of the CPU 1000.

なお、サーバ20、および、図3(b)に示した入力端末40は、図4の就業時間計算装置10と同様の構成にて実現可能であるため、ここでの説明を省略する。 Since the server 20 and the input terminal 40 shown in FIG. 3B can be realized with the same configuration as the working time calculation device 10 of FIG. 4, the description thereof is omitted here.

図5は、実施形態に係る就業時間計算装置10の機能を説明するための機能ブロック図である。なお、図5は、図3(a)を用いて説明した構成を想定した機能ブロック図となっている。 FIG. 5 is a functional block diagram for explaining the function of the working hour calculation device 10 according to the embodiment. Note that FIG. 5 is a functional block diagram assuming the configuration described with reference to FIG. 3A.

図5において、就業時間計算装置10は、制御部110と、記憶部120と、入出力I/F(インタフェース)部130と、通信I/F140部とを含む。これら制御部110、記憶部120、入出力I/F部130および通信I/F部140のうち、制御部110、入出力I/F部130および通信I/F部140は、CPU1000上で動作する就業時間計算プログラムが実行することで構成される。記憶部120は、例えばストレージ1004およびRAM1002の所定の記憶領域が用いられる。 In FIG. 5, the working time calculation device 10 includes a control unit 110, a storage unit 120, an input / output I / F (interface) unit 130, and a communication I / F 140 unit. Of the control unit 110, the storage unit 120, the input / output I / F unit 130, and the communication I / F unit 140, the control unit 110, the input / output I / F unit 130, and the communication I / F unit 140 operate on the CPU 1000. It consists of the execution of the working hours calculation program. As the storage unit 120, for example, predetermined storage areas of the storage 1004 and the RAM 1002 are used.

なお、制御部110、記憶部120、入出力I/F部130および通信I/F部140の一部または全部を、互いに協働して動作するハードウェア回路により構成することも可能である。 It is also possible to configure a part or all of the control unit 110, the storage unit 120, the input / output I / F unit 130, and the communication I / F unit 140 by a hardware circuit that operates in cooperation with each other.

記憶部120は、入力情報記憶部121およびデータ記憶部125を含むと共に、不在事由マスタ122および優先度マスタ123の各マスタが記憶される。これらのうち、入力情報記憶部121およびデータ記憶部125は、例えばRAM1002またはストレージ1004の所定領域が適用される。また、不在事由マスタ122および優先度マスタ123は、ストレージ1004に不揮発に記憶される。 The storage unit 120 includes an input information storage unit 121 and a data storage unit 125, and stores each master of the absence reason master 122 and the priority master 123. Of these, for the input information storage unit 121 and the data storage unit 125, for example, a predetermined area of the RAM 1002 or the storage 1004 is applied. Further, the absence reason master 122 and the priority master 123 are stored non-volatilely in the storage 1004.

なお、図5では、記憶部120が社員マスタ124を含むように示されているが、社員マスタ124は、実際にはサーバ20に記憶される。図5の例のように、社員マスタ124を就業時間計算装置10が記憶していてもよい。 Although the storage unit 120 is shown to include the employee master 124 in FIG. 5, the employee master 124 is actually stored in the server 20. As in the example of FIG. 5, the working time calculation device 10 may store the employee master 124.

記憶部120において、入力情報記憶部121は、入力画面に従いユーザ(例えば社員)により入力された、事由種別および事由種別に対応する時刻情報などを含む勤務情報データが記憶される。 In the storage unit 120, the input information storage unit 121 stores work information data including the reason type and the time information corresponding to the reason type, which is input by the user (for example, an employee) according to the input screen.

図6は、実施形態に適用可能な、勤務情報データを入力、登録するための入力画面の例を示す。図6(a)において、入力画面200は、後述するUI部111により生成され、例えばディスプレイ1020に表示されるもので、入力部2000および2100と、集計結果情報表示部2200とを含む。入力部2000は、入力画面200に対して入力を行うユーザ(社員)の識別情報(社員IDとする)と、日付とを入力するための各入力領域を含む。なお、日付は、例えば、就業時間計算装置10が備えるカレンダ機能により自動的に入力されるようにしてもよい。 FIG. 6 shows an example of an input screen for inputting and registering work information data, which is applicable to the embodiment. In FIG. 6A, the input screen 200 is generated by the UI unit 111 described later and is displayed on the display 1020, for example, and includes the input units 2000 and 2100 and the aggregation result information display unit 2200. The input unit 2000 includes each input area for inputting the identification information (referred to as an employee ID) of the user (employee) who inputs to the input screen 200 and the date. The date may be automatically input by, for example, the calendar function provided in the working time calculation device 10.

以下では、社員Aが、2017年9月3日における勤務スケジュールを入力するものとして説明を行う。 In the following, the explanation will be given assuming that employee A inputs the work schedule on September 3, 2017.

入力部2100は、勤務時間に関する情報として、事由種別「勤務」に対する出勤時刻および退勤時刻と、事由種別「休憩」に対する開始時刻および終了時刻と、事由種別「不在事由」に対する開始時刻および終了時刻と、を入力するための各入力領域2101、2102、21031、21032、…、21041、21042、…を含む。 The input unit 2100 provides information on working hours such as attendance time and leaving time for the reason type "work", start time and end time for the reason type "break", and start time and end time for the reason type "absence reason". , 2101, 2102, 2103 1 , 2103 2 , ..., 2104 1 , 2104 2 , ....

入力画面200に含まれる各入力領域について、より詳細に説明する。入力領域2101は、例えば勤務時間として定められた所定時間の開始時刻および終了時刻とを入力するための領域である。所定時間は、就業時間帯としてシステムによって予め定められた時間帯であって、この所定時間の開始時刻および終了時刻は、当該システムにより設定した値を予め入力しておくことができる。ここでいうシステムは、例えば、就業時間計算装置10を含む就業管理システムであって、例えば企業などの組織により運用される。図6(a)の例では、入力領域2101に対し、所定時間の開始時刻および終了時刻として、時刻「09:00」および時刻「17:30」がシステムにより予め入力されている。 Each input area included in the input screen 200 will be described in more detail. The input area 2101 is an area for inputting a start time and an end time of a predetermined time defined as working hours, for example. The predetermined time is a time zone predetermined by the system as a working time zone, and values set by the system can be input in advance for the start time and the end time of the predetermined time. The system referred to here is, for example, an employment management system including a working time calculation device 10, and is operated by an organization such as a company. In the example of FIG. 6A, the time "09: 00" and the time "17:30" are input in advance to the input area 2101 as the start time and end time of the predetermined time.

入力領域2102は、事由種別が「勤務」に属する勤務時間帯の開始時刻および終了時刻を示す出勤時刻および退勤時刻を入力するための領域である。図6(a)の例では、出勤時刻および退勤時刻が出退実績として示されている。 The input area 2102 is an area for inputting the attendance time and the leaving time indicating the start time and the end time of the working time zone whose reason type belongs to "working". In the example of FIG. 6A, the attendance time and the leaving time are shown as the attendance record.

入力領域21031、21032、…は、それぞれ、事由種別が「休憩」に属する休憩時間帯の開始時刻および終了時刻を入力するための領域である。図6(a)の例では、入力領域21031、21032、…として示されるように、1日の中に複数の休憩時間帯(休憩1、休憩2、…)を設定可能となっている。また、図6(a)の例では、「休憩1」で示される休憩時間帯は、開始時刻および終了時刻として、時刻「12:00」および時刻「13:00」がシステムにより予め入力されている。 The input areas 2103 1 , 2103 2 , ... Are areas for inputting the start time and end time of the break time zone in which the reason type belongs to "break", respectively. In the example of FIG. 6A, a plurality of break time zones (break 1, break 2, ...) can be set in one day as shown as input areas 2103 1 , 2103 2, .... .. Further, in the example of FIG. 6A, in the break time zone indicated by "break 1", the time "12:00" and the time "13:00" are input in advance by the system as the start time and the end time. There is.

入力領域21041、21042、…は、それぞれ、事由種別が「不在事由」に属する不在事由時間帯の不在事由、開始時刻および終了時刻を入力するための領域である。図6(a)の例では、入力領域21041、21042、…として示されるように、1日の中に複数の不在事由(不在事由1、不在事由2、…)を設定可能となっている。 The input areas 2104 1 , 2104 2 , ... Are areas for inputting the absentee reason, start time and end time of the absentee reason time zone whose reason type belongs to "absent reason", respectively. In the example of FIG. 6A, a plurality of absentee reasons (absent reason 1, absent reason 2, ...) can be set in one day as shown as input areas 2104 1 , 2104 2, .... There is.

なお、各入力領域21041、21042、…において、「事由」で示される領域は、不在事由の内容を入力するための領域である。当該領域は、詳細を後述する不在事由マスタ122に基づき複数の事由種別から選択された不在事由の内容が入力される。 In each input area 2104 1 , 2104 2 , ..., The area indicated by "reason" is an area for inputting the content of the reason for absence. In the area, the content of the absentee reason selected from a plurality of reason types based on the absentee reason master 122 whose details will be described later is input.

入力情報記憶部121は、入力部2100に含まれる各入力領域2101、2102、21031、21032、…、21041、21042、…に入力された各情報を、勤務情報データとして、入力部2000に入力される社員IDおよび日付と関連付けて記憶する。 The input information storage unit 121 uses each information input to each input area 2101, 2102, 2103 1 , 2103 2 , ..., 2104 1 , 2104 2 , ... Included in the input unit 2100 as work information data, and is an input unit. It is stored in association with the employee ID and date entered in 2000.

入力画面200において、集計結果情報表示部2200は、上述した入力部2100に含まれる各入力領域2101、2102、21031、21032、…、21041、21042、…に入力された値に基づき集計した集計結果である実績集計情報が表示される。図6(a)の例では、集計結果情報表示部2200は、それぞれ所定内実労働時間、所定外実労働時間、実労働時間、深夜労働時間、休憩時間、有給休暇時間および不就労時間の集計結果を表示するための表示領域2201〜2207を含む。これら各表示領域2201〜2207に表示される各時間の集計方法については、後述する。 On the input screen 200, the aggregation result information display unit 2200 is based on the values input to the input areas 2101, 2102, 2103 1 , 2103 2 , ..., 2104 1 , 2104 2, ... The actual total information, which is the total result of the total, is displayed. In the example of FIG. 6A, the aggregation result information display unit 2200 aggregates the scheduled actual working hours, the non-scheduled actual working hours, the actual working hours, the late-night working hours, the break time, the paid vacation hours, and the non-working hours, respectively. Includes display areas 2201-2207 for displaying. The method of totaling each time displayed in each of these display areas 2201 to 2207 will be described later.

なお、図6の例では、入力画面200は、各項目が横方向に並べられているが、これはこの例に限定されず、入力画面200のレイアウトは任意である。例えば、各項目を縦方向に並べ、明細形式の画面としてもよい。また、入力情報記憶部121は、入力画面200に入力された勤務情報データを、例えば入力画面200に準じた構成のテーブルにより入力情報記憶部121に記憶する。 In the example of FIG. 6, each item is arranged in the horizontal direction in the input screen 200, but this is not limited to this example, and the layout of the input screen 200 is arbitrary. For example, each item may be arranged vertically to form a detailed screen. Further, the input information storage unit 121 stores the work information data input to the input screen 200 in the input information storage unit 121, for example, by using a table having a configuration similar to that of the input screen 200.

次に、実施形態に係る不在事由マスタ122について、より具体的に説明する。図7は、実施形態に係る不在事由マスタ122の例を示す。不在事由マスタ122は、不在に係る事由種別と、当該不在の内容を示す不在事由とが関連付けられて、予め記憶部120に記憶される。図7において、不在事由マスタ122は、レコードに「不在事由」、「不在単位区分」および「事由種別」の各項目を含み、ユーザの不在事由を定義する。項目「不在事由」は、不在事由の名称が定義される。図7の例では、項目「不在事由」に対して、「終日有休」、「前半有休」、「後半有休」、「時間有休」、「介護休暇」、「遅刻」および「終日欠勤」の各不在事由名が定義される。 Next, the absence reason master 122 according to the embodiment will be described more specifically. FIG. 7 shows an example of the absence reason master 122 according to the embodiment. The absentee reason master 122 is stored in advance in the storage unit 120 in association with the absentee reason type related to the absence and the absentee reason indicating the content of the absence. In FIG. 7, the absence reason master 122 includes each item of “absence reason”, “absence unit classification”, and “reason type” in the record, and defines the absence reason of the user. The name of the reason for absence is defined in the item "reason for absence". In the example of FIG. 7, for the item "reason for absence", "all day paid leave", "first half paid leave", "second half paid leave", "hourly paid leave", "nursing leave", "late arrival" and "all day absenteeism" The name of the reason for absence is defined.

上述した入力画面200において、各入力領域21041、21042、…における「事由」で示される領域に入力される不在事由の内容は、この項目「不在事由」に定義される各不在事由名から選択される。 In the input screen 200 described above, the content of the absentee reason input to the area indicated by "reason" in each input area 2104 1 , 2104 2 , ... Is from each absentee reason name defined in this item "absent reason". Be selected.

項目「不在単位区分」は、不在とする時間帯の単位が定義される。図7の例では、「終日」、「前半」、「後半」および「時間」が定義されている。これらのうち、「終日」、「前半」および「後半」は、勤務時間として規定される所定時間における、予め定められた時間帯を不在の単位とする。例えば、「終日」は、当該所定時間の開始時刻から終了時刻までの時間帯、「前半」および「後半」は、それぞれ、当該所定時間に対して規定される前半(例えば午前中)および後半(例えば午後)の時間帯を不在の単位とする。これら「終日」、「前半」および「後半」は、時間帯を固定的とするなどの入力制御が可能とされる。また、「時間」は、任意の時刻を設定可能であり、不在の単位の時間帯を固定しない。図7の例では、不在事由「終日有休」、「介護休暇」および「終日欠勤」の不在単位区間が「終日」、不在事由「前半有休」および「後半有休」の不在単位区間がそれぞれ「前半」および「後半」とされ、不在事由「時間有休」および「遅刻」の不在単位区間が「時間」とされている。 In the item "absence unit classification", the unit of the time zone to be absent is defined. In the example of FIG. 7, "all day", "first half", "second half" and "time" are defined. Of these, "all day," "first half," and "second half" have a predetermined time zone as a unit of absence in the predetermined time specified as working hours. For example, "all day" is the time zone from the start time to the end time of the predetermined time, and "first half" and "second half" are the first half (for example, in the morning) and the second half (for example, in the morning) specified for the predetermined time, respectively. For example, the time zone (afternoon) is the unit of absence. Input control such as fixing the time zone is possible for these "all day", "first half" and "second half". In addition, "time" can be set to any time, and the time zone of the unit of absence is not fixed. In the example of FIG. 7, the absentee unit section of the absentee reason "all day paid leave", "nursing leave" and "all day absenteeism" is "all day", and the absentee unit section of the absentee reason "first half paid leave" and "second half paid leave" is "first half" respectively. "And" second half ", and the absentee unit section of the reasons for absence" time paid "and" late "is defined as" time ".

項目「事由種別」は、不在に係る事由種別であって、全ての事由種別のうち不在事由の、例えばその企業における制度上の種別を定義する。図7の例では、「有給休暇」、「無給休暇」および「不就労」の3種類の事由種別が定義されている。これらのうち、事由種別「有給休暇」および「無給休暇」はそれぞれ休暇として扱われ、「有給休暇」は既定の賃金が支払われる事由種別であり、「無給休暇」は賃金が支払われない事由種別である。一方、事由種別「不就労」は、休暇としては扱われない不在事由であって、賃金が支払われず、場合によっては罰則が課せられる事由種別である。 The item "reason type" is a reason type related to absence, and defines an absentee reason, for example, an institutional type in the company among all the reason types. In the example of FIG. 7, three types of reasons, "paid leave," "unpaid leave," and "non-working," are defined. Of these, the types of reasons "paid leave" and "unpaid leave" are treated as vacations, "paid leave" is the type of reason for which the default wage is paid, and "unpaid leave" is the type of reason for which wages are not paid. Is. On the other hand, the reason type "non-working" is a reason for absence that is not treated as a vacation, and is a type of reason for which wages are not paid and penalties are imposed in some cases.

次に、実施形態に係る優先度マスタ123について、より具体的に説明する。図8は、実施形態に係る優先度マスタ123の例を示す。図8において、優先度マスタ123は、レコードに「事由種別」および「優先度」の各項目を含み、事由種別に対して優先度を関連付ける。図8の例では、項目「優先度」において最も優先度の高い優先度「1」から、最も優先度の低い優先度「4」まで、4段階に優先度が定義されている。この各優先度「1」〜「4」に対して、項目「事由種別」の定義される「休憩」、「有給休暇」、「無給休暇・不就労」および「勤務」がそれぞれ関連付けられている。 Next, the priority master 123 according to the embodiment will be described more specifically. FIG. 8 shows an example of the priority master 123 according to the embodiment. In FIG. 8, the priority master 123 includes each item of “reason type” and “priority” in the record, and associates the priority with the reason type. In the example of FIG. 8, in the item “priority”, the priority is defined in four stages from the highest priority “1” to the lowest priority “4”. For each of these priorities "1" to "4", "break", "paid leave", "unpaid leave / unemployed", and "work" defined by the item "reason type" are associated with each other. ..

より詳細には、事由種別「休憩」は、一定以上の労働時間につき必ず付与される権利であって、最も高い優先度が設定される。事由種別「有給休暇」は、法令や就業規則の定めにより、特定の条件下で有給で取得する権利がある休暇であって、休憩の次に高い優先度が設定される。 事由種別「無給休暇」および「不就労」(図8では、「無給休暇・不就労」として纏めて示している)は、介護休暇、私用外出、欠勤、自己都合による遅刻など、無給扱いまたは罰則対象とみなされるような不在時間であって、休憩および不在に係る事由において、最も低い優先度が設定される。また、事由種別「勤務」は、上述の休憩および不在を全て控除した結果、実労働時間と看做される時間であって、他の休憩、不在事由と比べて最も低い優先度が設定される。 More specifically, the reason type "break" is a right that is always granted for working hours above a certain level, and the highest priority is set. The reason type "paid leave" is a leave that has the right to be taken for a fee under specific conditions according to laws and regulations and work regulations, and the highest priority is set after the break. Reason types "Unpaid leave" and "Unemployed" (collectively shown as "Unpaid leave / Unemployed" in Fig. 8) are treated as unpaid, such as nursing care leave, private outing, absenteeism, and late arrival due to personal reasons. The lowest priority is set for breaks and absenteeism, which is the time of absence that is considered subject to penalties. In addition, the reason type "work" is the time considered to be actual working hours as a result of deducting all the above-mentioned breaks and absences, and the lowest priority is set compared to other breaks and reasons for absence. ..

なお、優先度マスタ123において項目「事由種別」に定義される各事由種別に対する優先度の関連付けは、図8の例に限定されない。また、項目「事由種別」に定義される事由種別も、図8の例に限定されない。さらに、不在自由に対する優先度は、法令や就業規則を鑑みて優先度マスタなどによる設定切替にすることも可能だが、ユーザ(社員)が持つ権利の強い不在事由ほど優先度を高くするのが合理的である。 The association of the priority for each reason type defined in the item "reason type" in the priority master 123 is not limited to the example of FIG. Further, the reason type defined in the item “reason type” is not limited to the example of FIG. Furthermore, the priority for freedom of absence can be switched by the priority master etc. in consideration of laws and regulations and work rules, but it is rational to give higher priority to the reason for absence with strong rights of the user (employee). It is a target.

データ記憶部125は、例えば制御部110のワークエリアとして用いられる記憶領域であって、入力情報記憶部121に記憶される勤務情報データに応じた処理に基づき生成される、事由明細データ300、基準時刻明細データ310、事由明細分割データ320および事由明細分割抽出データ330を含む各データが揮発的あるいは不揮発的に記憶される。これら事由明細データ300、基準時刻明細データ310、事由明細分割データ320および事由明細分割抽出データ330の具体的な例については、後述する。 The data storage unit 125 is, for example, a storage area used as a work area of the control unit 110, and is a reason detail data 300, a reference, which is generated based on processing according to the work information data stored in the input information storage unit 121. Each data including the time detail data 310, the reason detail division data 320, and the reason detail division extraction data 330 is stored volatilely or non-volatilely. Specific examples of the reason detail data 300, the reference time detail data 310, the reason detail division data 320, and the reason detail division extraction data 330 will be described later.

図5において、制御部110は、UI(User Interface)部111と、記憶管理部112と、作成部113と、分割部114と、選択部115と、集計部116と、を含む。 In FIG. 5, the control unit 110 includes a UI (User Interface) unit 111, a storage management unit 112, a creation unit 113, a division unit 114, a selection unit 115, and an aggregation unit 116.

UI部111は、上述した入力画面200を生成し、生成した入力画面200をディスプレイ1020に表示させる。また、UI部111は、入力画面200に応じて入力された各データを受け付ける。例えば、UI部111は、入力画面200において、入力部2000に入力された社員IDおよび日付情報と、入力部2100の各入力領域に入力された勤務情報データとを、入出力I/F1005を介して受け取る。UI部111は、受け取った社員IDおよび日付情報、ならびに、勤務情報データを、記憶管理部112に渡す。 The UI unit 111 generates the above-mentioned input screen 200, and displays the generated input screen 200 on the display 1020. Further, the UI unit 111 receives each data input according to the input screen 200. For example, on the input screen 200, the UI unit 111 transfers the employee ID and date information input to the input unit 2000 and the work information data input to each input area of the input unit 2100 via the input / output I / F 1005. To receive. The UI unit 111 passes the received employee ID, date information, and work information data to the storage management unit 112.

記憶管理部112は、記憶部120に記憶されるデータの管理、ならびに、記憶部120に対するデータの記憶および記憶部120からのデータの読み出しを制御する。例えば、記憶管理部112は、UI部111から渡された社員ID、日付情報および勤務情報データを、記憶部120に含まれる入力情報記憶部121に記憶する。また、記憶管理部112は、記憶部120に記憶されるデータ(例えば社員マスタ124)がサーバ20上のデータである場合には、サーバ20に対して、データの記憶および更新要求と、データの取得要求とを送信する。 The storage management unit 112 controls the management of the data stored in the storage unit 120, the storage of the data in the storage unit 120, and the reading of the data from the storage unit 120. For example, the storage management unit 112 stores the employee ID, date information, and work information data passed from the UI unit 111 in the input information storage unit 121 included in the storage unit 120. Further, when the data stored in the storage unit 120 (for example, the employee master 124) is the data on the server 20, the storage management unit 112 requests the server 20 to store and update the data, and the data. Send an acquisition request.

作成部113は、入力画面200に応じて入力された複数の時刻情報に基づき、ある社員(社員Aとする)がある勤務日(2017年9月3日とする)において設定した事由種別を列挙して、各事由種別に対し、優先度と、開始時刻および終了時刻とを関連付けたデータである事由明細データ300を作成する。作成部113は、さらに、生成した事由明細データ300に含まれる複数の開始時刻および終了時刻と、予め定められた時刻とに従い、1日の時間に区切りを入れ、隣接する区切りに挟まれた区間を作成する(基準時刻明細データ310)。すなわち、作成部113は、1日の時間に対して、記憶部120の入力情報記憶部121に記憶された複数の時刻情報が示す時刻と、予め定められた時刻と、により区切った区切りを設定し、隣接する該区切りに挟まれた区間を作成する。 The creation unit 113 enumerates the reason types set on a certain work day (September 3, 2017) by a certain employee (assumed to be employee A) based on a plurality of time information input according to the input screen 200. Then, for each reason type, the reason detail data 300, which is the data in which the priority is associated with the start time and the end time, is created. The creation unit 113 further divides the time of the day according to a plurality of start times and end times included in the generated reason detail data 300 and a predetermined time, and a section sandwiched between adjacent divisions. (Reference time detailed data 310). That is, the creation unit 113 sets a delimiter for the time of the day, which is divided by a time indicated by a plurality of time information stored in the input information storage unit 121 of the storage unit 120 and a predetermined time. Then, a section sandwiched between the adjacent sections is created.

分割部114は、事由明細データ300と基準時刻明細データ310とを所定の条件に従い結合し、1日の時間を、基準時刻明細データ310に基づき隣接する区切りに挟まれた区間に分割した事由明細分割データ320を生成する。すなわち、分割部114は、勤務時間帯、休憩時間帯および不在時間帯を、作成部113により作成された区間毎に分割して分割時間帯を生成する。 The division unit 114 combines the reason detail data 300 and the reference time detail data 310 according to predetermined conditions, and divides the time of the day into sections sandwiched between adjacent divisions based on the reference time detail data 310. The divided data 320 is generated. That is, the division unit 114 divides the working time zone, the break time zone, and the absent time zone into each section created by the creation unit 113 to generate the division time zone.

選択部115は、事由明細分割データ320に基づき、事由明細分割データ320で分割された各区間において、異なる事由種別が重複する区間毎に、最も高い優先度が関連付けられた事由種別を選択して事由明細分割抽出データ330を生成する。すなわち、選択部115は、作成部113により作成された区間それぞれのうち、1以上の分割時間帯を含む区間において、分割時間帯のうち最も高い優先度が設定された事由種別に対応する分割時間帯を、区間毎に選択する。 Based on the reason detail division data 320, the selection unit 115 selects the reason type associated with the highest priority for each section in which different reason types overlap in each section divided by the reason detail division data 320. Reason detail division Extraction data 330 is generated. That is, the selection unit 115 has a division time corresponding to the reason type in which the highest priority among the division time zones is set in the section including one or more division time zones in each of the sections created by the creation unit 113. Select the band for each section.

集計部116は、選択部115により選択された各分割時間帯を、対応する事由種別が同一の分割時間帯毎に集計する。集計結果は、UI部111により、入力画面200に含まれる集計結果情報表示部2200に表示される。これに限らず、UI部111は、集計結果を表示させる表示画面を入力画面200とは別途に生成してもよい。また、集計部116は、集計結果を記憶部120に記憶してもよいし、ネットワーク30を介して外部(例えばサーバ20)に送信してもよい。 The aggregation unit 116 aggregates each division time zone selected by the selection unit 115 for each division time zone having the same reason type. The aggregation result is displayed on the aggregation result information display unit 2200 included in the input screen 200 by the UI unit 111. Not limited to this, the UI unit 111 may generate a display screen for displaying the aggregation result separately from the input screen 200. Further, the aggregation unit 116 may store the aggregation result in the storage unit 120, or may transmit the aggregation result to the outside (for example, the server 20) via the network 30.

就業時間計算装置10において、入出力I/F130部は、入力装置150および出力装置151が接続される。一例として、図3(a)に示した就業時間計算システムにおいては、入力装置150は、例えば図4における入力デバイス1021に対応し、入出力I/F部130は、入出力I/F1005を制御して、入力デバイス1021から出力された制御信号に応じた入力データを生成し、制御部110に渡す。出力装置151は、例えば図4におけるディスプレイ1020であって、入出力I/F部130は、グラフィックI/F1003を制御して、CPU1000により生成された表示制御信号を画像信号に変換してディスプレイ1020に供給する。 In the working hour calculation device 10, the input / output I / F 130 unit is connected to the input device 150 and the output device 151. As an example, in the working hour calculation system shown in FIG. 3A, the input device 150 corresponds to, for example, the input device 1021 in FIG. 4, and the input / output I / F unit 130 controls the input / output I / F 1005. Then, input data corresponding to the control signal output from the input device 1021 is generated and passed to the control unit 110. The output device 151 is, for example, the display 1020 in FIG. 4, and the input / output I / F unit 130 controls the graphic I / F 1003 to convert the display control signal generated by the CPU 1000 into an image signal and display the display 1020. Supply to.

他の例として、図3(b)に示した就業時間計算システムにおいては、入力端末40に接続される入力デバイスおよびディスプレイを、それぞれ入力装置150および出力装置151に対応させることができる。 As another example, in the working hour calculation system shown in FIG. 3B, the input device and the display connected to the input terminal 40 can be made to correspond to the input device 150 and the output device 151, respectively.

通信I/F部140は、図4における通信I/F1006を制御して、ネットワーク30に対する通信を行う。 The communication I / F unit 140 controls the communication I / F 1006 in FIG. 4 to perform communication with the network 30.

就業時間計算装置10は、通信I/F部140の制御により、ネットワーク30を介してサーバ20との間で通信を行うことができる。なお、記憶部120に記憶される各マスタは、サーバ20に記憶させてもよい。 The working time calculation device 10 can communicate with the server 20 via the network 30 under the control of the communication I / F unit 140. Each master stored in the storage unit 120 may be stored in the server 20.

就業時間計算装置10における実施形態に係る各機能を実現するための就業時間計算プログラムは、インストール可能な形式または実行可能な形式のファイルでコンピュータにて読み取り可能な記録媒体に記録して提供される。このコンピュータで読み取り可能な記録媒体としては、メモリーカード、USB(Universal Serial Bus)メモリ、SD(Secure Digital)カード、フレキシブルディスク、光磁気ディスク、ROM、EPROM(Erasable Programmable Read Only Memory)、EEPROM(登録商標)(Electrically Erasable and Programmable Read Only Memory)、CD(Compact Disk)、MO(Magneto-Optical disk)、DVD(Digital Versatile Disk)、および、Blu−ray(登録商標) Discなどの任意の可搬用の物理媒体を含むものとする。したがって、本明細書で以下に説明するような処理または処理方法を実行するためのプログラムを格納した記録媒体もまた本発明を構成することとなる。 The working time calculation program for realizing each function according to the embodiment in the working time calculation device 10 is provided by recording a file in an installable format or an executable format on a computer-readable recording medium. .. Recording media that can be read by this computer include memory cards, USB (Universal Serial Bus) memories, SD (Secure Digital) cards, flexible disks, magneto-optical disks, ROMs, EPROMs (Erasable Programmable Read Only Memory), and EEPROMs (registered). Any portable use such as (Electrically Erasable and Programmable Read Only Memory), CD (Compact Disk), MO (Magneto-Optical disk), DVD (Digital Versatile Disk), and Blu-ray (registered trademark) Disc. It shall include physical media. Therefore, a recording medium containing a program for executing a process or a process method as described below in the present specification also constitutes the present invention.

これに限らず、当該就業時間計算プログラムを、インターネットなどのネットワークに接続されたコンピュータ上に格納し、当該ネットワークを介してダウンロードさせることにより提供してもよい。また、当該就業時間計算プログラムをインターネットなどのネットワークを経由して提供または配布するように構成してもよい。 Not limited to this, the working hours calculation program may be provided by storing it on a computer connected to a network such as the Internet and downloading it via the network. In addition, the working hours calculation program may be configured to be provided or distributed via a network such as the Internet.

当該就業時間計算プログラムは、制御部110(UI部111、記憶管理部112、作成部113、分割部114、選択部115および集計部116)、入出力I/F部130および通信I/F部140を含むモジュール構成となっている。実際のハードウェアとしては、CPU1000がROM1001などの記憶媒体から当該就業時間計算プログラムを読み出して実行することにより、上述した各部がRAM1002などの主記憶装置上にロードされ、制御部110(UI部111、記憶管理部112、作成部113、分割部114、選択部115および集計部116)、入出力I/F部130および通信I/F部140が主記憶装置上に生成されるようになっている。 The working hours calculation program includes a control unit 110 (UI unit 111, a storage management unit 112, a creation unit 113, a division unit 114, a selection unit 115 and an aggregation unit 116), an input / output I / F unit 130, and a communication I / F unit. It has a module configuration including 140. As actual hardware, when the CPU 1000 reads the working hour calculation program from a storage medium such as ROM 1001 and executes it, each of the above-mentioned parts is loaded on a main storage device such as RAM 1002, and the control unit 110 (UI unit 111) is loaded. , Storage management unit 112, creation unit 113, division unit 114, selection unit 115 and tabulation unit 116), input / output I / F unit 130 and communication I / F unit 140 are now generated on the main storage device. There is.

また、「プログラム」とは、任意の言語または記述方法にて記述されたデータ処理方法であり、ソースコードまたはバイナリコード等の形式を問わない。なお、「プログラム」は必ずしも単一的に構成されるものに限られず、複数のモジュールやライブラリとして分散構成されるものや、OS(Operating System)に代表される別個のプログラムと協働してその機能を達成するものをも含む。 Further, the "program" is a data processing method described in any language or description method, regardless of the format such as source code or binary code. The "program" is not necessarily limited to a single program, but is distributed as a plurality of modules or libraries, or cooperates with a separate program represented by an OS (Operating System). Including those that achieve the function.

[3.実施形態に係る処理]
次に、実施形態に係る処理について説明する。図9は、実施形態に係る就業時間計算装置10における処理を示す一例のフローチャートである。図9のフローチャートの実行に先立って、図6(a)を用いて説明した入力画面200に応じて、ユーザ(社員)により、入力部2100に含まれる各入力領域2101、2102、21031、21032、…、21041、21042、…に対して、所定時間と、出退勤時刻と、休憩の開始および終了時刻と、不在事由の開始および終了時刻と、を含む勤務情報データが入力される。なお、入力領域21031、21032、…、および、入力領域21041、21042、…への入力は、必要に応じて行われる。
[3. Processing according to the embodiment]
Next, the process according to the embodiment will be described. FIG. 9 is a flowchart showing an example of processing in the working time calculation device 10 according to the embodiment. Prior to the execution of the flowchart of FIG. 9, each input area 2101, 2102, 2103 1 , 2103 included in the input unit 2100 by the user (employee) according to the input screen 200 described with reference to FIG. 6A. For 2 , ..., 2104 1 , 2104 2 , ..., The work information data including the predetermined time, the time of attendance and departure, the start and end times of the break, and the start and end times of the reasons for absence are input. Inputs to the input areas 2103 1 , 2103 2 , ..., And the input areas 2104 1 , 2104 2 , ... Are performed as necessary.

上述した図6(a)の入力画面200において、入力部2100に含まれる各入力領域2102、21031、21032、…、21041、21042、…に、各時刻情報および不在事由が入力された例を、図6(b)に示している。ここでは、図1(a)を用いて説明した勤務スケジュールに従い、各時刻情報および不在事由が入力されるものとする。 In the input screen 200 of FIG. 6A described above, each time information and the reason for absence are input to each input area 2102, 2103 1 , 2103 2 , ..., 2104 1 , 2104 2, ... An example is shown in FIG. 6 (b). Here, it is assumed that each time information and the reason for absence are input according to the work schedule explained with reference to FIG. 1 (a).

なお、図6(a)および図6(b)の例では、入力部2000の各入力領域、および、入力部2100の入力領域2101および21031は、システムにより予め各値が入力されているものとする。より具体的には、入力部2000の各入力領域に対して、社員ID「A」と、勤務日「2017/09/03」が、システムによりそれぞれ入力される。また、入力部2100の入力領域2101に、所定時間の開始時刻として時刻「09:00」が、終了時刻として時刻「17:30」が、システムによりそれぞれ入力される。さらに、入力領域21031に対し、休憩1の休憩時間帯の開始時刻として時刻「12:00」が、終了時刻として時刻「13:00」が、システムによりそれぞれ入力される。 In the examples of FIGS. 6A and 6B, each input area of the input unit 2000 and the input areas 2101 and 2103 1 of the input unit 2100 have their respective values input in advance by the system. And. More specifically, the employee ID "A" and the working day "2017/09/03" are input by the system for each input area of the input unit 2000. Further, the time "09: 00" is input to the input area 2101 of the input unit 2100 as the start time of the predetermined time, and the time "17:30" is input as the end time by the system. Further, the time "12:00" is input to the input area 2103 1 as the start time of the break time zone of the break 1, and the time "13:00" is input as the end time by the system.

一方、入力領域2102、21031、21032、…、21041、21042、…のうち、システムにより予め入力がなされる入力領域21031を除く各入力領域は、入力画面200に従いユーザ(例えば社員A)により各値が入力される。図6(b)の例では、入力領域2102に対し、出勤時刻として時刻「09:00」が、退勤時刻として時刻「18:00」が社員Aによりそれぞれ入力されている。また、入力領域21041に対し、不在事由1の不在時間帯の開始時刻として時刻「11:00」が、終了時刻として時刻「14:00」がそれぞれ入力されている。また、入力領域21041において、項目「事由」に対して、不在事由「時間有休」が入力されている。 On the other hand, among the input areas 2102, 2103 1 , 2103 2 , ..., 2104 1 , 2104 2 , ..., Each input area excluding the input area 2103 1 in which input is made in advance by the system is a user (for example, an employee) according to the input screen 200. Each value is input by A). In the example of FIG. 6B, the time "09: 00" is input to the input area 2102 as the attendance time, and the time "18:00" is input as the leaving time by the employee A. Further, the time "11:00" is input to the input area 2104 1 as the start time of the absence time zone of the absence reason 1, and the time "14:00" is input as the end time. Further, in the input area 2104 1 , the absentee reason "time paid holiday" is input for the item "reason".

ここで、図1(a)に示した勤務スケジュールでは、時間有休として取得された時間帯(時刻「11:00」〜時刻「14:00」)が、休憩として設定された時間帯(時刻「12:00」〜時刻「13:00」)を含んでいる。図6(b)に例示されるように、入力画面200において、入力領域21041に、事由が不在事由である「時間有休」である不在時間帯の開始時刻および終了時刻として時刻「11:00」および「14:00」が入力される。また、入力領域21031に、入力領域21041に入力される不在時間帯に含まれる時間帯として、事由が「休憩」である休憩時間帯の開始時刻および終了時刻として時刻「12:00」および「13:00」が入力される。 Here, in the work schedule shown in FIG. 1A, the time zone (time “11:00” to time “14:00”) acquired as a time holiday is set as a time zone (time “time”). 12:00 "to time" 13:00 ") is included. As illustrated in FIG. 6B, in the input screen 200, in the input area 2104 1 , the time “11:00” is set as the start time and the end time of the absent time zone in which the reason is “time paid”, which is the reason for absence. "And" 14:00 "are input. In addition, the input area 2103 1, as a time zone that is included in the absence time zone that is input to the input area 2104 1, the time "12:00" as the start time and end time of the break time zone reason is "break" and "13:00" is input.

このように、実施形態に係る入力画面200は、入力領域21031と入力領域21041とに示されるように(それぞれ太枠を付して示す)、このような、異なる事由の、重複する時間帯の入力を許容する。 As described above, the input screen 200 according to the embodiment has the overlapping time for such different reasons as shown in the input area 2103 1 and the input area 2104 1 (shown with a thick frame, respectively). Allows band input.

また、実施形態に係る入力画面200は、不在事由を入力するための入力領域21041、21042、…についても、「事由」で示される領域に入力される不在事由の内容が異なれば、重複する時間帯の入力が許容される。例えば、入力画面200は、入力領域21041および21042に、上述した「私用外出」による不在と、「休暇(時間有休)」による不在とを、時間帯を重複させて入力できる。 Further, the input screen 200 according to the embodiment also duplicates the input areas 2104 1 , 2104 2 , ... For inputting the reasons for absence if the contents of the reasons for absence input in the area indicated by "reason" are different. You are allowed to enter the time zone. For example, on the input screen 200, the absence due to the above-mentioned "private outing" and the absence due to "vacation (paid time)" can be input to the input areas 2104 1 and 2104 2 in overlapping time zones.

図6(b)において、集計結果情報表示部2200に含まれる各表示領域2201〜2207は、上述した入力部2100に含まれる各入力領域2101、2102、21031、21032、…、21041、21042、…に入力された値に基づき集計した集計結果である実績集計情報が表示される。 In FIG. 6 (b), the display regions 2201 to 2207 included in the total result information display unit 2200, the input area 2101, 2102, and 2103 1 included in the input unit 2100 described above, 2103 2, ..., 2104 1, The actual total information, which is the total result of totaling based on the values entered in 2104 2, ..., Is displayed.

図9の説明に戻り、ステップS100で、作成部113は、ある社員(社員Aとする)のある勤務日(2017年9月3日とする)について、入力画面200に入力された勤務情報データを、UI部111から取得する。次のステップS101で、作成部113は、ステップS100で取得した勤務情報データから、事由明細データ300を生成する。次のステップS102で、作成部113は、ステップS101で生成した事由明細データ300と、予め定められた所定労働時間および深夜労働時間に基づき、基準時刻明細データ310を生成する。 Returning to the explanation of FIG. 9, in step S100, the creation unit 113 has the work information data input to the input screen 200 for a certain work day (assumed to be September 3, 2017) of a certain employee (assumed to be employee A). Is obtained from the UI unit 111. In the next step S101, the creation unit 113 generates the reason detail data 300 from the work information data acquired in the step S100. In the next step S102, the creation unit 113 generates the reference time detail data 310 based on the reason detail data 300 generated in step S101 and the predetermined predetermined working hours and the midnight working hours.

次のステップS103で、分割部114は、ステップS101で生成した事由明細データ300と、ステップS102で生成した基準時刻明細データ310とを所定の条件に従い結合して、1日の時間帯を各区間に分割した事由明細分割データ320を生成する。次のステップS104で、選択部115は、ステップS103で生成した事由明細分割データ320を、1日の時間帯を分割した各区間の開始時刻の順位に従いグルーピングする。次のステップS105で、選択部115は、ステップS104でグルーピングした各グループ内で最も優先度の高い事由を抽出し、抽出された事由に対応する区間により事由明細分割抽出データ330を生成する。 In the next step S103, the division unit 114 combines the reason detail data 300 generated in step S101 and the reference time detail data 310 generated in step S102 according to a predetermined condition, and sets the time zone of the day into each section. The reason detail division data 320 is generated. In the next step S104, the selection unit 115 groups the reason detail division data 320 generated in step S103 according to the order of the start time of each section in which the time zone of the day is divided. In the next step S105, the selection unit 115 extracts the reason with the highest priority in each group grouped in step S104, and generates the reason detail division extraction data 330 according to the section corresponding to the extracted reason.

次のステップS106で、集計部116は、ステップS105で生成された事由明細分割抽出データ330から、所定の集計条件に従い区間を抽出して、当該区間を実績として集計する。集計結果は、例えばUI部111に渡されて入力画面200の集計結果情報表示部2200の各表示領域2201〜2207に表示される。また、集計結果は、記憶管理部112に渡されて、社員IDおよび日付情報と関連付けられて記憶部120に記憶される。記憶管理部112は、集計結果を、社員IDおよび日付情報と関連付けて、例えば社員マスタ124に記憶することができる。 In the next step S106, the aggregation unit 116 extracts a section from the reason detail division extraction data 330 generated in step S105 according to a predetermined aggregation condition, and aggregates the section as an actual result. The aggregation result is, for example, passed to the UI unit 111 and displayed in each display area 2201 to 2207 of the aggregation result information display unit 2200 of the input screen 200. Further, the aggregated result is passed to the storage management unit 112, associated with the employee ID and date information, and stored in the storage unit 120. The storage management unit 112 can store the aggregated result in, for example, the employee master 124 in association with the employee ID and date information.

[4.実施形態に係る処理の詳細]
次に、図9のフローチャートのステップS100〜ステップS106の処理について、より詳細に説明する。
[4. Details of processing according to the embodiment]
Next, the processing of steps S100 to S106 in the flowchart of FIG. 9 will be described in more detail.

[4−1.ステップS100]
ステップS100において作成部113が取得する勤務情報データは、少なくとも、入力領域2101に入力された所定時間の開始時刻および終了時刻と、入力領域2102に入力された、勤務時間帯の開始時刻および終了時刻である出勤時刻および退勤時刻と、入力領域21031に入力された休憩時間帯の開始時刻および終了時刻と、を含む。図6(b)の例では、勤務情報データは、さらに、入力領域21041に入力された、不在事由と、不在時間帯の開始時刻および終了時刻と、を含む。
[4-1. Step S100]
The work information data acquired by the creation unit 113 in step S100 includes at least the start time and end time of the predetermined time input to the input area 2101 and the start time and end time of the work time zone input to the input area 2102. The attendance time and the leaving time, which are, and the start time and the end time of the break time zone input to the input area 2103 1 are included. In the example of FIG. 6B, the work information data further includes the reason for absence and the start time and end time of the absence time zone, which are input to the input area 2104 1.

[4−2.ステップS101]
ステップS101において、作成部113は、ステップS100で取得した勤務情報データから事由明細データ300を作成する。
[4-2. Step S101]
In step S101, the creation unit 113 creates the reason detail data 300 from the work information data acquired in step S100.

図10は、実施形態に係る事由明細データ300の例を概略的に示す。図10の例では、事由明細データ300は、「社員」、「勤務日」、「事由種別」および「優先度」と、「開始時刻」および「終了時刻」との各項目を含むレコードによるテーブルとして示されている。これらのうち、項目「社員」および「勤務日」は、入力画面200の入力領域2000に入力される社員IDおよび勤務日の値が、各レコードに共通の値として格納される。 FIG. 10 schematically shows an example of the reason detail data 300 according to the embodiment. In the example of FIG. 10, the reason detail data 300 is a table with records including each item of "employee", "working day", "reason type" and "priority", and "start time" and "end time". It is shown as. Among these, in the items "employee" and "working day", the employee ID and the working day value input to the input area 2000 of the input screen 200 are stored as common values in each record.

図10の例では、事由明細データ300の各レコードは、入力画面200における各入力領域2101、2102、21031、21032、…、21041、21042、…のうち、所定時間の入力領域2101を除く各入力領域毎に作成される。 In the example of FIG. 10, each record of the reason detail data 300 is the input area 2101 at a predetermined time among the input areas 2101, 2102, 2103 1 , 2103 2 , ..., 2104 1 , 2104 2, ... On the input screen 200. Created for each input area except.

項目「開始時刻」および「終了時刻」は、それぞれ、入力画面200における各入力領域2102、21031、21032、…、21041、21042、…それぞれに入力された開始時刻および終了時刻(入力領域2102においては出勤時刻および退勤時刻)が格納される。項目「事由種別」は、そのレコードの項目「開始時刻」および「終了時刻」に格納される値に対応する事由種別が格納される。また、項目「優先度」は、そのレコードの項目「事由種別」に格納される事由種別に、優先度マスタ123において関連付けられる優先度が格納される。 The items "start time" and "end time" are the start time and end time (input) input to each input area 2102, 2103 1 , 2103 2 , ..., 2104 1 , 2104 2, ... In the input screen 200, respectively. In the area 2102, the attendance time and the leaving time) are stored. The item "reason type" stores the reason type corresponding to the values stored in the items "start time" and "end time" of the record. Further, in the item "priority", the priority associated with the priority master 123 is stored in the reason type stored in the item "reason type" of the record.

図11は、実施形態に係る作成部113が、図6(b)の入力画面200の各入力領域2101、2102、21031、21032、…、21041、21042、…に入力された値に基づき事由明細データ300を作成する例を、模式的に示す。図11の上段は、図6(b)の入力画面200の入力部2000および2100を抜粋して示し、下段は作成された事由明細データ300の例を示している。 In FIG. 11, the values input to the input areas 2101, 2102, 2103 1 , 2103 2 , ..., 2104 1 , 2104 2 , ... In the input screen 200 of FIG. 6B by the creating unit 113 according to the embodiment. An example of creating the reason detail data 300 based on the above is schematically shown. The upper part of FIG. 11 shows excerpts of the input units 2000 and 2100 of the input screen 200 of FIG. 6B, and the lower part shows an example of the created reason detail data 300.

事由明細データ300の第1レコードは、図中に太枠および矢印により示すように、入力領域2102に基づくレコードである。作成部113は、この第1レコードに対し、項目「開始時刻」および「終了時刻」に、入力領域2102に入力される勤務時間帯の開始時刻および終了時刻をそれぞれ格納し、項目「事由種別」に、入力領域2102に対応する事由種別「勤務」を格納する。また、作成部113は、優先度マスタ123に基づき、項目「優先度」に対して、事由種別「勤務」に対応する優先度「4」を格納する。 The first record of the reason detail data 300 is a record based on the input area 2102, as shown by a thick frame and an arrow in the figure. The creation unit 113 stores the start time and end time of the working hours zone input to the input area 2102 in the items "start time" and "end time" for the first record, respectively, and sets the item "reason type". The reason type "work" corresponding to the input area 2102 is stored in. Further, the creation unit 113 stores the priority "4" corresponding to the reason type "work" for the item "priority" based on the priority master 123.

作成部113は、図中に太枠および矢印により示すように、事由明細データ300の第2レコードを、入力領域21031の入力内容に基づき作成する。すなわち、作成部113は、項目「開始時刻」および「終了時刻」に、入力領域21031に入力される勤務時間帯の開始時刻および終了時刻をそれぞれ格納し、項目「事由種別」に、入力領域21031に対応する事由種別「休憩」を格納し、優先度マスタ123に基づき、項目「優先度」に、事由種別「休憩」に対応する優先度「1」を格納して、当該第2レコードを作成する。 As shown by a thick frame and an arrow in the figure, the creation unit 113 creates a second record of the reason detail data 300 based on the input contents of the input area 2103 1. That is, the creation unit 113 stores the start time and end time of the working hours zone input to the input area 2103 1 in the items "start time" and "end time", respectively, and stores the input area in the item "reason type". The reason type "break" corresponding to 2103 1 is stored, and the priority "1" corresponding to the reason type "break" is stored in the item "priority" based on the priority master 123, and the second record is concerned. To create.

作成部113は、図中に太枠および矢印により示すように、事由明細データ300の第3レコードを、入力領域21041の入力内容に基づき作成する。すなわち、作成部113は、項目「開始時刻」および「終了時刻」に、入力領域21041に入力される勤務時間帯の開始時刻および終了時刻をそれぞれ格納する。また、作成部113は、入力領域21041における項目「事由」に入力された不在事由「時間有休」に基づき不在事由マスタ122を参照して、当該不在事由「時間有休」に対応する事由種別「有給休暇」を取得し、取得した事由種別「有給休暇」を項目「事由種別」に格納する。作成部113は、優先度マスタ123を参照して、この事由種別「有給休暇」に対応する優先度「2」を、項目「優先度」に格納して、当該第3レコードを作成する。 As shown by a thick frame and an arrow in the figure, the creation unit 113 creates a third record of the reason detail data 300 based on the input contents of the input area 2104 1. That is, the creation unit 113 stores the start time and the end time of the working hours zone input to the input area 2104 1 in the items “start time” and “end time”, respectively. Further, the creating unit 113 refers to the absentee reason master 122 based on the absentee reason "time paid holiday" input in the item "reason" in the input area 2104 1, and the reason type "corresponding to the absentee reason" time paid holiday ". Acquire "paid leave" and store the acquired reason type "paid leave" in the item "reason type". The creation unit 113 refers to the priority master 123, stores the priority "2" corresponding to this reason type "paid leave" in the item "priority", and creates the third record.

この、事由明細データ300の項目「事由種別」に格納すべき値は、各入力領域2101、2102、21031、21032、…、21041、21042、…について、作成部113において予め定めておくことができる。例えば、作成部113は、入力領域2102に対して事由種別「勤務」、入力領域21031、21032、…に対して事由種別「休憩」を予め定める。また、入力領域21041、21042、…については、項目「事由」に対する入力内容に基づき不在事由マスタ122を参照して事由種別を取得するように、予め定める。 The value to be stored in the item "reason type" of the reason detail data 300 is predetermined in the creating unit 113 for each input area 2101, 2102, 2103 1 , 2103 2 , ..., 2104 1 , 2104 2, ... Can be left. For example, the creation unit 113 predetermines the reason type "work" for the input area 2102, and the reason type "break" for the input areas 2103 1 , 2103 2, .... Further, regarding the input areas 2104 1 , 2104 2 , ..., It is determined in advance that the reason type is acquired by referring to the absentee reason master 122 based on the input contents for the item "reason".

[4−3.ステップS102]
ステップS102において、作成部113は、ステップS101で生成した事由明細データ300と、予め定められた所定労働時間および深夜労働時間に基づき、基準時刻明細データ310を生成する。
[4-3. Step S102]
In step S102, the creation unit 113 generates the reference time detail data 310 based on the reason detail data 300 generated in step S101 and the predetermined predetermined working hours and midnight working hours.

図12は、実施形態に係る基準時刻明細データ310の例を概略的に示す。図12において、基準時刻明細データ310は、「社員」、「勤務日」、「基準時刻」および「順位」の各項目を含むレコードによるテーブルとして示されている。これらのうち、項目「社員」および「勤務日」は、入力画面200の入力領域2000に入力される社員IDおよび勤務日の値が、各レコードに共通の値として格納される。 FIG. 12 schematically shows an example of the reference time detail data 310 according to the embodiment. In FIG. 12, the reference time detail data 310 is shown as a table of records including each item of "employee", "working day", "reference time", and "rank". Among these, in the items "employee" and "working day", the employee ID and the working day value input to the input area 2000 of the input screen 200 are stored as common values in each record.

項目「基準時刻」は、分割部114が事由明細分割データ320を生成するために1日の時間帯を分割する際の基準となる時刻を定義する。より具体的には、作成部113は、事由明細データ300に含まれる各開始時刻および終了時刻と、システムにより予め定められた時刻とを、項目「基準時刻」の値として、時刻順に列挙する。予め定められた時刻は、例えば、勤務時間として定められた所定時間の開始時刻および終了時刻と、深夜時間帯の開始時刻および終了時刻と、を含む。項目「順位」は、各レコードについて、項目「基準時刻」に格納される時刻の若い方から順次増加する値を設定する。 The item "reference time" defines a reference time when the division unit 114 divides the time zone of the day in order to generate the reason detail division data 320. More specifically, the creation unit 113 lists each start time and end time included in the reason detail data 300 and a time predetermined by the system as the value of the item “reference time” in chronological order. The predetermined time includes, for example, a start time and an end time of a predetermined time defined as working hours, and a start time and an end time of a midnight time zone. For the item "rank", a value that gradually increases from the youngest time stored in the item "reference time" is set for each record.

図13は、実施形態に係る作成部113が、図6(b)の入力画面200の各入力領域2101、2102、21031、21032、…、21041、21042、…に入力された値と、図11に示した事由明細データ300と、に基づき基準時刻明細データ310を作成する例を、模式的に示す。図13の上段が図6(b)の入力画面200における入力部2100を、中段が事由明細データ300を、下段が基準時刻明細データ310を、それぞれ示している。 In FIG. 13, the values input to the input areas 2101, 2102, 2103 1 , 2103 2 , ..., 2104 1 , 2104 2 , ... In the input screen 200 of FIG. 6B by the creating unit 113 according to the embodiment. An example of creating the reference time detail data 310 based on the reason detail data 300 shown in FIG. 11 is schematically shown. The upper part of FIG. 13 shows the input unit 2100 in the input screen 200 of FIG. 6B, the middle part shows the reason detail data 300, and the lower part shows the reference time detail data 310.

作成部113は、図中に太枠にて示されるように、入力画面200において入力部2100の入力領域2101にシステムにより入力される所定時間の開始時刻および終了時刻と、事由明細データ300の各レコードに含まれる各開始時間および終了時間と、を取得する。作成部113は、取得した各開始時刻および終了時刻を項目「基準時刻」の値として含む各レコードを作成し、作成した各レコードの項目「順位」に対して、項目「基準時刻」に格納される時刻順に増加する値を格納する。 As shown by a thick frame in the figure, the creation unit 113 has a start time and an end time of a predetermined time input by the system to the input area 2101 of the input unit 2100 on the input screen 200, and each of the reason detail data 300. Get each start and end time contained in the record. The creation unit 113 creates each record including each acquired start time and end time as the value of the item "reference time", and is stored in the item "reference time" with respect to the item "rank" of each created record. Stores values that increase in chronological order.

基準時刻明細データ310は、入力領域2101に入力される開示時刻「09:00」と、終了時刻「17:30」と、事由明細データ300の項目「開始時刻」および「終了時刻」に格納される各時刻「09:00」、「18:00」、「12:00」、「13:00」、「11:00」および「14:00」と、システムにより設定される深夜時間帯の開始時刻「22:00」および終了時刻「05:00」と、が各レコードの項目「基準時刻」に、時刻順に格納される。項目「順位」は、各レコードの項目「基準時刻」の時刻の若い方から順に、「1」〜「9」の値が各レコードに格納される。 The reference time detail data 310 is stored in the disclosure time "09: 00", the end time "17:30", and the items "start time" and "end time" of the reason detail data 300, which are input to the input area 2101. Each time "09: 00", "18:00", "12:00", "13:00", "11:00" and "14:00", the start of the midnight time zone set by the system. The time "22:00" and the end time "05:00" are stored in the item "reference time" of each record in chronological order. As for the item "rank", the values of "1" to "9" are stored in each record in order from the youngest time of the item "reference time" of each record.

図13の例では、項目「順位」が値「1」のレコードは、項目「基準時刻」に、システム固定の値である深夜時間帯の終了時刻「05:00」が格納される。項目「順位」が値「2」のレコードは、所定時間の開始時刻および出勤時刻である時刻「09:00」が格納される。このように、異なる事由種別で同一の時刻については、1のレコードに纏めて格納する。項目「順位」が値「3」のレコードは、休憩の開始時刻である時刻「11:00」が格納される。以降、項目「順位」が値「4」〜「9」についても同様に、有給休暇の開始時刻「11:00と」、休憩の開始時刻「12:00」と、休憩の終了時刻「13:00」と、有給休暇の終了時刻「14:00」と、所定時間の終了時刻「17:30」と、勤務終了時刻(退勤時刻)「18:00」と、システム固定値である深夜時間帯の開始時刻「22:00」と、が項目「基準時刻」にそれぞれ格納される。 In the example of FIG. 13, the record whose item “rank” is the value “1” stores the end time “05:00” of the midnight time zone, which is a system-fixed value, in the item “reference time”. In the record whose item "rank" is the value "2", the time "09: 00" which is the start time and the attendance time of the predetermined time is stored. In this way, the same time for different reason types is collectively stored in one record. In the record whose item "rank" is the value "3", the time "11:00" which is the start time of the break is stored. After that, for the items "rank" of the values "4" to "9", the start time of the paid vacation is "11:00", the start time of the break is "12:00", and the end time of the break is "13:". 00 ”, the end time of paid vacation“ 14:00 ”, the end time of a predetermined time“ 17:30 ”, the end time of work (leaving time)“ 18:00 ”, and the midnight time zone which is a fixed value of the system. The start time "22:00" and "reference time" are stored in the item "reference time", respectively.

1日の時間帯は、基準時刻明細データ310により、項目「基準時刻」に格納される、時間的に隣接する時刻に挟まれた時間帯による区間に分割される。図13の例では、1日の時間帯が、時刻「05:00」〜時刻「09:00」の時間帯による区間と、時刻「09:00」〜時刻「11:00」の時間帯による区間と、時刻「11:00」〜時刻「12:00」の時間帯による区間と、時刻「12:00」〜時刻「13:00」の時間帯による区間と、時刻「13:00」〜時刻「14:00」の時間帯による区間と、時刻「14:00」〜時刻「17:30」の時間帯による区間と、時刻「17:30」〜時刻「18:00」の時間帯による区間と、時刻「18:00」〜時刻「22:00」の時間帯による区間と、にそれぞれ分割される。 The time zone of one day is divided by the reference time detailed data 310 into a section according to the time zone sandwiched between time adjacent times stored in the item "reference time". In the example of FIG. 13, the time zone of one day depends on the time zone from the time "05:00" to the time "09: 00" and the time zone from the time "09: 00" to the time "11:00". The section, the section according to the time zone from the time "11:00" to the time "12:00", the section according to the time zone from the time "12:00" to the time "13:00", and the time zone "13:00" to It depends on the time zone of time "14:00", the section of time "14:00" to time "17:30", and the time zone of time "17:30" to time "18:00". It is divided into a section and a section according to the time zone from the time "18:00" to the time "22:00".

また、図13では省略されているが、1日の開始および終了の時刻を時刻「00:00」とした場合、時刻「22:00」〜翌日の時刻「00:00」、および、時刻「00:00」〜時刻「05:00」の各時間帯による各区間での分割もなされる。 Further, although omitted in FIG. 13, when the start and end times of the day are set to the time "00:00", the time "22:00" to the next day "00:00" and the time " Divisions are also made in each section according to each time zone from "00:00" to "05:00".

なお、項目「基準時刻」に格納される値の最小単位は、特に限定されない。例えば、項目「基準時刻」に格納される値の最小単位を5分や10分としてもよいし、1分単位、秒単位などさらに細かい単位で値を格納してもよい。 The minimum unit of the value stored in the item "reference time" is not particularly limited. For example, the minimum unit of the value stored in the item "reference time" may be 5 minutes or 10 minutes, or the value may be stored in a finer unit such as 1 minute unit or second unit.

[4−4.ステップS103]
ステップS103において、分割部114は、ステップS101で生成した事由明細データ300と、ステップS102で生成した基準時刻明細データ310と、を所定の条件に従い結合して、勤務時間帯、休憩時間帯および不在時間帯を各区間に分割した事由明細分割データ320を生成する。
[4-4. Step S103]
In step S103, the division unit 114 combines the reason detail data 300 generated in step S101 and the reference time detail data 310 generated in step S102 according to predetermined conditions, and has a working time zone, a break time zone, and absenteeism. The reason detail division data 320 is generated by dividing the time zone into each section.

より具体的には、分割部114は、事由明細データ300の各レコードに対して、項目「開始時刻」および「終了時刻」に格納される各値(開始時刻および終了時刻)に対して、項目「基準時刻」の値(基準時刻)が下記の式(1)の条件を満たす、基準時刻明細データ310のレコードを結合する。
開始時刻≦基準時刻<終了時刻 …(1)
More specifically, the division unit 114 sets an item for each value (start time and end time) stored in the items "start time" and "end time" for each record of the reason detail data 300. The records of the reference time detailed data 310 in which the value (reference time) of the "reference time" satisfies the condition of the following formula (1) are combined.
Start time ≤ reference time <end time ... (1)

図14は、式(1)に従い事由明細データ300と基準時刻明細データ310とを結合して生成した、実施形態に係る事由明細分割データ320の例を概略的に示す。図14において、事由明細分割データ320は、「社員」、「勤務日」、「事由種別」、「優先度」、「開始時刻」、「終了時刻」、「分割開始時刻」、「分割開始順位」、「分割終了時刻」、および、「分割終了順位」の各項目を含むレコードによるテーブルとして示されている。これらのうち、項目「社員」および「勤務日」は、事由明細分割データ320のキーとなる項目であって、入力画面200の入力領域2000に入力される社員IDおよび勤務日の値が、各レコードに共通の値として格納される。 FIG. 14 schematically shows an example of the reason detail division data 320 according to the embodiment, which is generated by combining the reason detail data 300 and the reference time detail data 310 according to the equation (1). In FIG. 14, the reason detail division data 320 includes “employee”, “working day”, “reason type”, “priority”, “start time”, “end time”, “division start time”, and “division start order”. , "Split end time", and "Split end order" are shown as a table with records containing each item. Among these, the items "employee" and "working day" are key items of the reason detail division data 320, and the employee ID and the working day value input to the input area 2000 of the input screen 200 are each. Stored as a common value in records.

事由明細分割データ320において、項目「事由種別」、「優先度」、「開始時刻」および「終了時刻」は、結合された事由明細データ300におけるレコードの項目である。項目「分割開始時刻」および「分割開始順位」は、それぞれ、結合された事由明細データ300における、項目「事由種別」に示される事由種別の時間帯を、基準時刻明細データ310の各レコードにおける項目「基準時刻」に格納される各時刻に基づき分割した区間の開始時刻と、当該開始時刻の順位とが格納される。項目「分割終了時刻」および「分割終了順位」は、当該区間の終了時刻と、当該終了時刻の順位とが格納される。 In the reason detail division data 320, the items "reason type", "priority", "start time" and "end time" are record items in the combined reason detail data 300. The items "division start time" and "division start order" indicate the time zone of the reason type shown in the item "reason type" in the combined reason detail data 300, respectively, in each record of the reference time detail data 310. The start time of the section divided based on each time stored in the "reference time" and the order of the start times are stored. The items "division end time" and "division end order" store the end time of the section and the order of the end time.

図15は、実施形態に係る分割部114が、図11に示した事由明細データ300と、図13に示した基準時刻明細データ310とを結合して事由明細分割データ320を作成する例を、模式的に示す。図15の上段左側が事由明細データ300を、上段右側が基準時刻明細データ310を、下段が事由明細分割データ320を、それぞれ示している。 FIG. 15 shows an example in which the division unit 114 according to the embodiment combines the reason detail data 300 shown in FIG. 11 and the reference time detail data 310 shown in FIG. 13 to create the reason detail division data 320. Shown schematically. The upper left side of FIG. 15 shows the reason detail data 300, the upper right side shows the reference time detail data 310, and the lower row shows the reason detail division data 320.

図15において、事由明細データ300は、事由種別「勤務」、「休憩」および「有給休暇」の3つのレコードを含んでいる。これらのうち、事由種別「勤務」のレコードを例にとって、事由明細分割データ320の生成方法について説明する。事由種別「勤務」のレコードは、項目「開始時刻」および「終了時刻」に対し、それぞれ開始時刻および終了時刻を示す時刻「09:00」および「18:00」が格納されている。これら時刻「09:00」および「18:00」に上述した式(1)を適用すると、基準時刻明細データ310において、順位「2」〜「7」の各レコードが式(1)を満足していることが分かる。 In FIG. 15, the reason detail data 300 includes three records of the reason types “work”, “break”, and “paid leave”. Among these, a method of generating the reason detail division data 320 will be described by taking a record of the reason type “work” as an example. In the record of the reason type "work", the times "09: 00" and "18:00" indicating the start time and the end time are stored for the items "start time" and "end time", respectively. When the above-mentioned equation (1) is applied to these times “09: 00” and “18:00”, each record of rank “2” to “7” satisfies the equation (1) in the reference time detailed data 310. You can see that.

すなわち、基準時刻明細データ310において、順位「1」のレコードの項目「基準時刻」に格納される時刻「5:00」は、開始時刻を示す時刻「09:00」より前の時刻であり、式(1)を満たさない。基準時刻明細データ310における順位「2」のレコードの項目「基準時刻」に格納される時刻「09:00」は、開始時刻を示す時刻「09:00」と同一であり、式(1)を満たす。基準時刻明細データ310において、順位「3」〜「7」の各レコードの項目「基準時刻」は、時刻「11:00」から時刻「17:30」までの時刻が格納され、これら各時刻は、開始時刻を示す時刻「09:00」より後の時刻であり、且つ、終了時刻を示す時刻「18:00」より前の時刻であるため、何れも式(1)を満たす。一方、基準時刻明細データ310において、順位「8」のレコードの項目「基準時刻」に格納される時刻「18:00」は、終了時刻を示す時刻「18:00」と同一であり、式(1)を満たさない。 That is, in the reference time detailed data 310, the time "5:00" stored in the item "reference time" of the record of the rank "1" is a time before the time "09: 00" indicating the start time. Equation (1) is not satisfied. The time "09: 00" stored in the item "reference time" of the record of the rank "2" in the reference time detailed data 310 is the same as the time "09: 00" indicating the start time, and the equation (1) is used. Fulfill. In the reference time detailed data 310, the item "reference time" of each record of rank "3" to "7" stores the time from the time "11:00" to the time "17:30", and each of these times is stored. , Since it is a time after the time "09: 00" indicating the start time and a time before the time "18:00" indicating the end time, both satisfy the equation (1). On the other hand, in the reference time detailed data 310, the time "18:00" stored in the item "reference time" of the record of the rank "8" is the same as the time "18:00" indicating the end time, and the formula ( Does not satisfy 1).

分割部114は、上述した式(1)による判定結果に従い、基準時刻明細データ310における、項目「順位」の値が「2」〜「7」の各レコードを、事由明細データ300における、事由種別「勤務」のレコードに対して結合する(図15中の矢印A参照)。このとき、基準時刻明細データ310における項目「基準時刻」および「順位」に格納される各値を、事由明細分割データ320における項目「分割開始時刻」および「分割開始順位」にそれぞれ格納する(図15中の矢印B参照)。 According to the determination result by the above-mentioned equation (1), the division unit 114 sets each record of the item "rank" of "2" to "7" in the reference time detail data 310 as the reason type in the reason detail data 300. Combine for "work" records (see arrow A in FIG. 15). At this time, each value stored in the items "reference time" and "rank" in the reference time detail data 310 is stored in the items "division start time" and "division start order" in the reason detail division data 320, respectively (FIG. See arrow B in 15.).

さらに、分割部114は、基準時刻明細データ310において、事由明細データ300に結合した各レコードの項目「順位」の値を1だけ大きい値にずらした値を項目「順位」の値とする各レコードを取得する。分割部114は、こうして取得した各レコードに含まれる項目「基準時刻」および「順位」に格納される各値を、事由明細分割データ320における項目「分割終了時刻」および「分割終了順位」にそれぞれ格納する(図15中の矢印C参照)。 Further, the division unit 114 sets each record in the reference time detail data 310 as a value obtained by shifting the value of the item "rank" of each record combined with the reason detail data 300 to a value larger by 1 as the value of the item "rank". To get. The division unit 114 sets each value stored in the items "reference time" and "rank" included in each record acquired in this way into the items "division end time" and "division end order" in the reason detail division data 320, respectively. Store (see arrow C in FIG. 15).

事由明細データ300における事由種別「休憩」および「有給休暇」の各レコードについても同様である。分割部114は、項目「開始時刻」および「終了時刻」に格納される各時刻と、基準時刻明細データ310の各レコードの項目「基準時刻」に格納される時刻とにより、式(1)に基づく条件判定を行い、条件を満たす基準時刻明細データ310のレコードを、事由明細データ300における対象のレコードと結合する。また、分割部114は、基準時刻明細データ310における項目「基準時刻」および「順位」に格納される各値に基づき、事由明細分割データ320の項目「分割開始時刻」および「分割開始順位」、ならびに、「分割終了時刻」および「分割終了順位」に対して値を格納する。 The same applies to each record of the reason type "break" and "paid leave" in the reason detail data 300. The dividing unit 114 is set in the equation (1) according to the time stored in the items “start time” and “end time” and the time stored in the item “reference time” of each record of the reference time detailed data 310. Based on the condition determination, the record of the reference time detail data 310 that satisfies the condition is combined with the target record in the reason detail data 300. Further, the division unit 114 has the items "division start time" and "division start order" of the reason detail division data 320, based on the respective values stored in the items "reference time" and "rank" in the reference time detail data 310. In addition, the values are stored for the "division end time" and the "division end order".

図15の例では、事由明細データ300における事由種別「勤務」のレコードにおける項目「開始時刻」および「終了時刻」の時刻「09:00」および「18:00」と、基準時刻明細データ310の項目「基準時刻」の各時刻に基づき、事由明細分割データ320において、項目「分割開始時刻」の値が時刻「09:00」、「11:00」、「12:00」、「13:00」、「14:00」および「17:30」であり、項目「分割開始順位」のそれぞれ対応する値が順位「2」〜「7」である6のレコードが生成される。 In the example of FIG. 15, the time “09: 00” and “18:00” of the items “start time” and “end time” in the record of the reason type “work” in the reason detail data 300, and the reference time detail data 310. Based on each time of the item "reference time", the value of the item "division start time" is the time "09: 00", "11:00", "12:00", "13:00" in the reason detail division data 320. , "14:00" and "17:30", and 6 records in which the corresponding values of the items "division start order" are the order "2" to "7" are generated.

また、この6のレコードにおいて、それぞれの項目「分割終了時刻」の値が、基準時刻明細データ310における項目「基準時刻」の、項目「分割開始順位」の順位「2」〜「7」を1だけ大きい値にずらした順位「3」〜「8」に対応する各時刻「11:00」、「12:00」、「13:00」、「14:00」、「17:30」および「18:00」とされる。また、当該6のレコードそれぞれの項目「分割終了順位」の値が、順位「3」〜「8」とされる。すなわち、例えば図15に示す事由明細分割データ320の1番目のレコードにおいて、項目「分割開始時刻」、「分割開始順位」、「分割終了時刻」および「分割終了順位」の値が、それぞれ時刻「09:00」、「2」、「11:00」および「3」となる。 Further, in these 6 records, the value of each item "division end time" is 1 for the order "2" to "7" of the item "division start order" of the item "reference time" in the reference time detail data 310. Each time "11:00", "12:00", "13:00", "14:00", "17:30" and "17:30" corresponding to the ranks "3" to "8" shifted to a larger value. 18:00 ". Further, the value of the item "division end order" of each of the 6 records is set to the order "3" to "8". That is, for example, in the first record of the reason detail division data 320 shown in FIG. 15, the values of the items "division start time", "division start order", "division end time", and "division end order" are the times ", respectively. It becomes "09: 00", "2", "11:00" and "3".

同様に、事由明細データ300における事由種別「休憩」のレコードにおける項目「開始時刻」および「終了時刻」の時刻「12:00」および「13:00」と、基準時刻明細データ310の項目「基準時刻」の各時刻に基づき、事由明細分割データ320において、項目「分割開始時刻」の値が時刻「12:00」であり、項目「分割開始順位」の対応する値が順位「4」である1のレコードが生成される。この1のレコードにおいて、項目「分割終了時刻」の値が、基準時刻明細データ310における項目「基準時刻」の、項目「分割開始順位」の順位「4」を1だけ大きい値にずらした順位「5」に対応する時刻「13:00」とされる。また、当該1のレコードの項目「分割終了順位」の値が、順位「5」とされる。 Similarly, the items "start time" and "end time" in the record of the reason type "break" in the reason detail data 300 are "12:00" and "13:00", and the item "reference" of the reference time detail data 310. Based on each time of "time", in the reason detail division data 320, the value of the item "division start time" is the time "12:00", and the corresponding value of the item "division start order" is the order "4". 1 record is generated. In this one record, the value of the item "division end time" shifts the order "4" of the item "division start order" of the item "reference time" in the reference time detail data 310 to a value larger by one. The time corresponding to "5" is set to "13:00". Further, the value of the item "division end order" of the record 1 is set to the order "5".

さらに同様に、事由明細データ300における事由種別「有給休暇」のレコードにおける項目「開始時刻」および「終了時刻」の時刻「11:00」および「14:00」と、基準時刻明細データ310の項目「基準時刻」の各時刻に基づき、事由明細分割データ320において、項目「分割開始時刻」の値が時刻「11:00」、「12:00」および「13:00」であり、項目「分割開始順位」のそれぞれ対応する値が順位「3」〜「5」である3のレコードが生成される。この3のレコードにおいて、それぞれの項目「分割終了時刻」の値が、基準時刻明細データ310における項目「基準時刻」の、項目「分割開始順位」の順位「3」〜「5」を1だけ大きい値にずらした順位「4」〜「6」に対応する各時刻「12:00」、「13:00」および「14:00」とされる。また、当該3のレコードそれぞれの項目「分割終了順位」の値が、順位「4」〜「6」とされる。 Similarly, the time "11:00" and "14:00" of the items "start time" and "end time" in the record of the reason type "paid leave" in the reason detail data 300, and the item of the reference time detail data 310. Based on each time of the "reference time", the value of the item "division start time" is the time "11:00", "12:00" and "13:00" in the reason detail division data 320, and the item "division". Records of 3 in which the corresponding values of the "starting order" are the ordering "3" to "5" are generated. In these three records, the value of each item "division end time" is one larger than the order "3" to "5" of the item "division start order" of the item "reference time" in the reference time detail data 310. The times "12:00", "13:00" and "14:00" corresponding to the ranks "4" to "6" shifted to the values are set. Further, the value of the item "division end order" of each of the three records is set to the order "4" to "6".

なお、事由明細分割データ320の各レコードにおいて、項目「分割開始時刻」に格納される時刻と、項目「分割終了時刻」に格納される時刻とに挟まれた区間を、区間a〜jとして、図15の事由明細分割データ320の右端に示している。 In each record of the reason detail division data 320, the section between the time stored in the item "division start time" and the time stored in the item "division end time" is defined as an interval a to j. It is shown at the right end of the reason detail division data 320 in FIG.

具体的には、項目「事由種別」の値が「勤務」である各レコードにおいて、時刻「09:00」および時刻「11:00」に挟まれる区間aと、時刻「11:00」および時刻「12:00」に挟まれる区間bと、時刻「12:00」および時刻「13:00」に挟まれる区間cと、時刻「13:00」および時刻「14:00」に挟まれる区間dと、時刻「14:00」および時刻「17:30」に挟まれる区間eと、時刻「17:30」および時刻「18:00」に挟まれる区間fと、が形成される。また、項目「事由種別」の値が「休憩」であるレコードにおいて、時刻「12:00」および時刻「13:00」に挟まれる区間gが形成される。さらに、項目「事由種別」の値が「有給休暇」である各レコードにおいて、時刻「11:00」および時刻「12:00」に挟まれる区間hと、時刻「12:00」および時刻「13:00」に挟まれる区間iと、時刻「13:00」および時刻「14:00」に挟まれる区間jと、が形成される。 Specifically, in each record in which the value of the item "reason type" is "work", the section a between the time "09: 00" and the time "11:00", the time "11:00" and the time The section b between "12:00", the section c between the time "12:00" and the time "13:00", and the section d between the time "13:00" and the time "14:00" , A section e sandwiched between the time "14:00" and the time "17:30", and a section f sandwiched between the time "17:30" and the time "18:00" are formed. Further, in the record in which the value of the item "reason type" is "rest", a section g sandwiched between the time "12:00" and the time "13:00" is formed. Further, in each record in which the value of the item "reason type" is "paid leave", the section h between the time "11:00" and the time "12:00", the time "12:00" and the time "13" A section i sandwiched between ": 00" and a section j sandwiched between the time "13:00" and the time "14:00" are formed.

図15を用いて説明した、分割部114による事由明細分割データ320の生成処理は、事由明細データ300を、1日の勤怠計算上の区切れ目となる開始時刻および終了時刻で短冊状のブロックに分割する処理である。 In the process of generating the reason detail division data 320 by the division unit 114 described with reference to FIG. 15, the reason detail division data 300 is divided into strip-shaped blocks at the start time and the end time, which are the breaks in the daily attendance calculation. It is a process of dividing.

図16は、図15に示した実施形態に係る事由明細分割データ320を、1日の時間帯を分割するブロックを用いて表した図である。図16において、各行は、各事由種別について、事由明細データ300の項目「開始時刻」および「終了時刻」に従った時間帯が示されている。また、図16では、1日の時間帯が、基準時刻明細データ310の項目「基準時刻」に格納される各時刻「05:00」、「09:00」、「11:00」、「12:00」、「13:00」、「14:00」、「17:30」、「18:00」および「22:00」に従い、隣接する時刻に挟まれる区間に基づくブロック(分割時間帯)に分割されている様子が示されている。 FIG. 16 is a diagram showing the reason detail division data 320 according to the embodiment shown in FIG. 15 using a block that divides the time zone of the day. In FIG. 16, each line shows a time zone according to the items “start time” and “end time” of the reason detail data 300 for each reason type. Further, in FIG. 16, the time zone of one day is stored in the item “reference time” of the reference time detailed data 310, respectively, at “05:00”, “09:00”, “11:00”, and “12”. Blocks based on sections sandwiched between adjacent times according to ": 00", "13:00", "14:00", "17:30", "18:00" and "22:00" It is shown that it is divided into.

このように、実施形態に係る分割部114は、1日の時間帯を、基準時刻明細データ310に格納される基準時刻を区切りとして分割する。これにより、分割された区間による各ブロックは、必ず、事由がある、および、事由が無い、の何れかの状態となる。したがって、同一時間帯の区間は、「該当する事由無し」、および、「該当する1件以上の事由がある」の何れかの状態となることが確定する。 As described above, the division unit 114 according to the embodiment divides the time zone of one day with the reference time stored in the reference time detailed data 310 as a delimiter. As a result, each block formed by the divided sections is always in either a state of having a reason or having no reason. Therefore, it is determined that the sections in the same time zone are in either the state of "no applicable reason" or "there is one or more applicable reasons".

図16の例では、時刻「00:00」〜時刻「09:00」の時間帯、および、時刻「18:00」〜翌日の時刻「00:00」の時間帯は、「該当する事由無し」の区間となっている。一方、時刻「09:00」〜時刻「11:00」の時間帯、および、時刻「14:00」〜時刻「18:00」の時間帯は、それぞれ「該当する1件の事由がある」区間となっている。また、時刻「11:00」〜時刻「12:00」、および、時刻「13:00」〜時刻「14:00」の時間帯は、それぞれ「該当する2件の事由がある」区間となっている。さらに、時刻「12:00」〜時刻「13:00」の時間帯は、「該当する3件の事由がある」区間となっている。 In the example of FIG. 16, the time zone from the time "00:00" to the time "09:00" and the time zone from the time "18:00" to the time "00:00" on the next day are "no applicable reason". It is a section of. On the other hand, in the time zone from the time "09: 00" to the time "11:00" and the time zone from the time "14:00" to the time "18:00", "there is one corresponding reason", respectively. It is a section. In addition, the time zone from the time "11:00" to the time "12:00" and the time zone from the time "13:00" to the time "14:00" are each "there are two applicable reasons" sections. ing. Further, the time zone from the time "12:00" to the time "13:00" is a section where "there are three applicable reasons".

なお、図16の例では、各事由種別は、上の行から下の行に向けて、優先度が高くなるように並べられている。 In the example of FIG. 16, each reason type is arranged so as to have a higher priority from the upper row to the lower row.

[4−5.ステップS104]
ステップS104で、選択部115は、ステップS103で生成した事由明細分割データ320を、1日の時間帯を分割した各区間の開始時刻の順位に従いグルーピングする。換言すれば、選択部115は、ステップS103で生成した事由明細分割データ320を、項目「社員」、「勤務日」および「分割開始時刻」の単位でグルーピングする。
[4-5. Step S104]
In step S104, the selection unit 115 groups the reason detail division data 320 generated in step S103 according to the order of the start time of each section in which the time zone of the day is divided. In other words, the selection unit 115 groups the reason detail division data 320 generated in step S103 in units of the items “employee”, “working day”, and “division start time”.

このとき、例えば図15に示した事由明細分割データ320は、特定の社員ID「A」の社員、および、特定の勤務日「2017年9月3日」に関するデータである。そのため、この事由明細分割データ320は、項目「社員」および「勤務日」に関するグルーピングが既に行われていると考えることができる。 At this time, for example, the reason detail division data 320 shown in FIG. 15 is data relating to an employee with a specific employee ID “A” and a specific working day “September 3, 2017”. Therefore, it can be considered that the reason detail division data 320 has already been grouped with respect to the items “employee” and “working day”.

例えば、選択部115は、図15に示した事由明細分割データ320において、項目「分割開始時刻」に格納される値が同一のレコードによりグループを形成し、各グループを、項目「分割開始順位」に格納される値の順に並べ替える。 For example, in the reason detail division data 320 shown in FIG. 15, the selection unit 115 forms a group from records having the same value stored in the item “division start time”, and sets each group into the item “division start order”. Sort by the values stored in.

図17を用いて、実施形態に係る、ステップS104によるグルーピング処理について説明する。図17(a)は、このようにして事由明細分割データ320を並べ替えた事由明細分割データ320’の例を示す。図17(a)の例では、項目「分割開始時刻」の値が時刻「09:00」である1のレコードを含むグループG#1と、当該値が時刻「11:00」である2のレコードを含むグループG#2と、当該値が時刻「12:00」である3のレコードを含むグループG#3と、当該値が時刻「13:00」である2のレコードを含むグループG#4と、当該値が時刻「14:00」である1のレコードを含むグループG#5と、当該値が時刻「17:30」である1のレコードを含むグループG#6と、にグルーピングされている。 The grouping process according to step S104 according to the embodiment will be described with reference to FIG. FIG. 17A shows an example of the reason detail division data 320 ′ in which the reason detail division data 320 is rearranged in this way. In the example of FIG. 17A, the group G # 1 including the record of 1 in which the value of the item “division start time” is the time “09: 00” and the group G # 1 in which the value is the time “11:00” are 2. Group G # 2 containing records, group G # 3 containing 3 records having the value at time "12:00", and group G # containing 2 records having the value at time "13:00". 4 is grouped into group G # 5 containing 1 record whose value is time "14:00" and group G # 6 including 1 record whose value is time "17:30". ing.

図17(b)は、上述した図16と対応する図であって、グルーピング処理をブロックを用いて模式的に示す。図17(b)に示されるように、時刻「09:00」〜時刻「11:00」の区間がグループG#1に、時刻「11:00」〜時刻「12:00」の区間がグループG#2に、時刻「12:00」〜時刻「13:00」の区間がグループG#3に、時刻「13:00」〜時刻「14:00」の区間がグループG#4に、時刻「14:00」〜時刻「17:30」の区間がグループG#5に、時刻「17:30」〜時刻「18:00」の区間がグループG#6に、それぞれグルーピングされていることが分かる。このように、ステップS104のグルーピング処理は、「該当する1件以上の事由がある」区間を、同一時間帯毎に纏める処理である。 FIG. 17B is a diagram corresponding to FIG. 16 described above, and schematically shows the grouping process using blocks. As shown in FIG. 17B, the section from the time "09: 00" to the time "11:00" is in the group G # 1, and the section from the time "11:00" to the time "12:00" is in the group. In G # 2, the section from time "12:00" to time "13:00" is in group G # 3, and the section from time "13:00" to time "14:00" is in group G # 4. The section from "14:00" to time "17:30" is grouped in group G # 5, and the section from time "17:30" to time "18:00" is grouped in group G # 6. I understand. As described above, the grouping process in step S104 is a process of grouping the sections "having one or more applicable reasons" for each same time zone.

[4−6.ステップS105]
ステップS105で、選択部115は、ステップS104でグルーピングした各グループ内で最も優先度の高い事由を抽出し、抽出された事由に対応する区間により事由明細分割抽出データ330を生成する。図18および上述した図17(a)を用いて、ステップS105による、実施形態に係る事由明細分割抽出データ330の生成処理について説明する。
[4-6. Step S105]
In step S105, the selection unit 115 extracts the reason with the highest priority in each group grouped in step S104, and generates the reason detail division extraction data 330 according to the section corresponding to the extracted reason. FIG. 18 and FIG. 17 (a) described above will be used to describe the process of generating the reason detail division extraction data 330 according to the embodiment in step S105.

ステップS105で、選択部115は、図17(a)の事由明細分割データ320’の各グループG#1〜G#6において、項目「優先度」に最も高い優先度が格納されるレコードを抽出する。図17(a)の例では、グループG#1、G#5およびG#6は、それぞれ1のレコードしか含まないため、それぞれのレコード(区間a、eおよびfに対応)が抽出される。それぞれ優先度「2」および「4」の2のレコードを含むグループG#2は、優先度がより高い「2」とされているレコード(区間hに対応)が抽出される。それぞれ優先度「1」、「2」および「4」の3のレコードを含むグループG#3は、優先度が最も高い「1」とされているレコード(区間gに対応)が抽出される。また、それぞれ優先度「2」および「4」の2のレコードを含むグループG#4は、優先度がより高い「2」とされているレコード(区間jに対応)が抽出される。 In step S105, the selection unit 115 extracts the record in which the highest priority is stored in the item "priority" in each group G # 1 to G # 6 of the reason detail division data 320'in FIG. 17 (a). do. In the example of FIG. 17A, since the groups G # 1, G # 5, and G # 6 each include only one record, each record (corresponding to the intervals a, e, and f) is extracted. In group G # 2, which includes 2 records having a priority of "2" and "4", respectively, a record having a higher priority of "2" (corresponding to the section h) is extracted. In group G # 3, which includes 3 records having priorities "1", "2", and "4", the record having the highest priority "1" (corresponding to the section g) is extracted. Further, in the group G # 4 including 2 records having a priority of "2" and "4", records having a higher priority of "2" (corresponding to the section j) are extracted.

図18(a)は、上述のようにして、選択部115により各グループG#1〜G#6において抽出された、最も優先度が高いレコードを纏めて生成した事由明細分割抽出データ330を示す。このように、事由明細分割抽出データ330は、各グループG#1〜G#6から1つずつ抽出された、それぞれ区間a、h、g、j、eおよびfに対応する6のレコードを含む。 FIG. 18A shows the reason detail division extraction data 330 generated by collecting the highest priority records extracted in each group G # 1 to G # 6 by the selection unit 115 as described above. .. As described above, the reason detail division extraction data 330 includes 6 records corresponding to the intervals a, h, g, j, e and f, respectively, extracted one by one from each group G # 1 to G # 6. ..

図18(b)は、上述した図17(b)に対してステップS105による処理を適用した例を示す。図18(b)において、各行が、上の行から下の行に向けて事由種別の優先度が高くなるように並べられているため、各グループG#1〜G#6において、「該当する1件以上の事由がある」区間に対応するブロックのうち最も下のブロックが抽出されることになる。図18(b)の例では、区間a、h、g、j、eおよびfに対応する各ブロックが抽出されている。この抽出された各ブロックに対応する事由および時間帯が、次のステップS106において、集計部116により集計に用いる事由および時間帯として採用される。 FIG. 18B shows an example in which the process according to step S105 is applied to FIG. 17B described above. In FIG. 18B, the rows are arranged so that the priority of the reason type is higher from the upper row to the lower row. Therefore, in each group G # 1 to G # 6, "corresponding". The lowest block among the blocks corresponding to the section "with one or more reasons" will be extracted. In the example of FIG. 18B, each block corresponding to the intervals a, h, g, j, e and f is extracted. The reason and time zone corresponding to each of the extracted blocks are adopted as the reason and time zone used for aggregation by the aggregation unit 116 in the next step S106.

図18(b)の例では、区間a、eおよびfに対応する各ブロックが、採用される事由が「勤務」として抽出される。区間hおよびjに対応するブロックが、採用される事由が「有給休暇」として抽出される。また、区間gに対応するブロックが、採用される事由が「休憩」として抽出される。なお、図18(b)において「×(バツ印)」を付して示される各ブロックは、各グループG#1〜G#6に属するブロックのうち、集計部116により集計に用いる事由および時間帯として採用されない事由および時間帯を示している。 In the example of FIG. 18B, the reason why each block corresponding to the sections a, e and f is adopted is extracted as “work”. The reason why the blocks corresponding to the sections h and j are adopted is extracted as "paid leave". Further, the reason why the block corresponding to the section g is adopted is extracted as a "break". In addition, each block indicated by "x (x)" in FIG. 18B is the reason and time used for aggregation by the aggregation unit 116 among the blocks belonging to each group G # 1 to G # 6. It shows the reason and time zone that is not adopted as a zone.

この結果、実施形態に係る就業時間計算装置10では、異なる事由種別で重複する時間帯を含む登録を許可した場合であっても、図2(b)を用いて説明した、時間帯毎の事由を正しく登録する、既存技術による登録方法の第1の例と同様のデータを、自動処理により生成することが可能である。 As a result, even when the working hour calculation device 10 according to the embodiment permits registration including overlapping time zones for different reason types, the reasons for each time zone described with reference to FIG. 2 (b). It is possible to generate the same data as the first example of the registration method by the existing technique, which correctly registers the data, by automatic processing.

[4−7.ステップS106]
ステップS106で、集計部116は、ステップS105で生成された事由明細分割抽出データ330から、所定の集計条件に従い区間を抽出して、当該区間を実績として集計する。なお、ここでいう区間は、例えば図18(b)などに示した各ブロックを指す。
[4-7. Step S106]
In step S106, the aggregation unit 116 extracts a section from the reason detail division extraction data 330 generated in step S105 according to a predetermined aggregation condition, and aggregates the section as an actual result. The section referred to here refers to each block shown in FIG. 18B, for example.

図19は、実施形態に係る、ステップS106において集計部116が事由明細分割抽出データ330から区間を抽出するための所定の集計条件の例を示す。図19の例では、集計先項目として、「所定内実労働時間」、「所定外実労働時間」、「実労働時間」、「深夜労働時間」、「休憩時間」、「有給休暇時間」および「不就労時間」の各項目が定義されている。これら各集計先項目は、例えば賃金の計算方法に基づき定義される。集計部116は、事由明細分割抽出データ330から、所定の集計条件を満たす区間(ブロック)を抽出し、抽出した区間の時間を集計する。 FIG. 19 shows an example of predetermined aggregation conditions for the aggregation unit 116 to extract a section from the reason detail division extraction data 330 in step S106 according to the embodiment. In the example of FIG. 19, the tabulation destination items are "scheduled actual working hours", "non-scheduled actual working hours", "actual working hours", "midnight working hours", "break time", "paid leave hours" and "paid leave hours". Each item of "non-working hours" is defined. Each of these aggregation destination items is defined based on, for example, a wage calculation method. The aggregation unit 116 extracts a section (block) satisfying a predetermined aggregation condition from the reason detail division extraction data 330, and aggregates the time of the extracted section.

これら各集計先項目の集計条件は、それぞれ下記となる。なお、下記の式(2)、式(3)および式(4)において、記号「∧」は論理積を表し、記号「∨」は論理和を表す。 The aggregation conditions for each of these aggregation destination items are as follows. In the following equations (2), (3) and (4), the symbol "∧" represents a logical product and the symbol "∨" represents a logical sum.

集計先項目「所定内実労働時間」は、下記の式(2)を満たす区間を抽出し、抽出した区間の時間を集計する。
(事由種別=勤務)∧(所定時間の開始時刻≦分割開始時刻)∧(分割終了時刻≦所定時間の終了時刻) …(2)
For the tabulation destination item "prescribed actual working hours", the section satisfying the following formula (2) is extracted, and the time of the extracted section is totaled.
(Reason type = work) ∧ (start time of predetermined time ≤ start time of division) ∧ (end time of division ≤ end time of predetermined time)… (2)

集計先項目「所定外実労働時間」は、下記の式(3)を満たす区間を抽出し、抽出した区間の時間を集計する。
(事由種別=勤務)∧{(所定時間の開始時刻>分割開始時刻)∨(所定時間の終了時刻<分割終了時刻)} …(3)
For the tabulation destination item "overtime actual working hours", the section satisfying the following formula (3) is extracted, and the time of the extracted section is totaled.
(Reason type = work) ∧ {(start time of predetermined time> division start time) ∨ (end time of predetermined time <division end time)}… (3)

上述の式(2)および式(3)から分かるように、実施形態では、事由種別が「勤務」である区間について、その区間が所定時間内に含まれる場合と、所定時間外に含まれる場合とで区別して集計する。 As can be seen from the above equations (2) and (3), in the embodiment, when the section whose reason type is "work" is included within the predetermined time and when it is included outside the predetermined time. Aggregate by distinguishing with.

集計先項目「実労働時間」は、事由種別が「勤務」である区間を抽出し、抽出した区間の時間を集計する。 For the aggregation destination item "actual working hours", the section whose reason type is "working" is extracted, and the time of the extracted section is aggregated.

集計先項目「深夜労働時間」は、下記の式(4)を満たす区間を抽出し、抽出した区間の時間を集計する。なお、式(4)において、時刻「05:00」および時刻「22:00」は、労働基準法により深夜割増賃金の支払いが義務付けられている時間帯の終了時刻および開始時刻である。
(事由種別=勤務)∧{(05:00>分割開始時刻)∨(22:00<分割終了時刻)} …(4)
For the tabulation destination item "midnight working hours", the section satisfying the following formula (4) is extracted, and the time of the extracted section is totaled. In the formula (4), the time "05:00" and the time "22:00" are the end time and the start time of the time zone in which the payment of the late-night premium wage is obliged by the Labor Standards Act.
(Reason type = work) ∧ {(05:00> division start time) ∨ (22:00 <division end time)}… (4)

上述の式(4)から分かるように、実施形態では、事由種別が「勤務」である区間について、その区間が深夜労働時間帯に含まれる場合と、含まれない場合とで区別して集計する。 As can be seen from the above equation (4), in the embodiment, the section whose reason type is "working" is counted separately depending on whether the section is included in the midnight working hours zone or not.

集計先項目「休憩時間」は、事由種別が「休憩」である区間を抽出し、抽出した区間の時間を集計する。集計先項目「有給休暇時間」は、事由種別が「有給休暇」である区間を抽出し、抽出した区間の時間を集計する。また、集計先項目「不就労時間」は、事由種別が「不就労」である区間を抽出し、抽出した区間の時間を集計する。 For the aggregation destination item "break time", the section whose reason type is "break" is extracted, and the time of the extracted section is aggregated. For the aggregation destination item "paid leave time", the section whose reason type is "paid leave" is extracted, and the time of the extracted section is totaled. In addition, for the aggregation destination item "non-working hours", the section whose reason type is "non-working" is extracted, and the time of the extracted section is aggregated.

図20を用いて、実施形態に係る集計部116による各区間の集計方法について説明する。図20(a)は、上述した図18(b)と対応し、集計部116は、採用されるとして抽出された各ブロックについて、上述した集計条件に従い集計を行う。図20(b)は、各ブロックを図19の集計先項目毎に抽出した例を示している。なお、所定時間の開始時刻および終了時刻は、それぞれ時刻「09:00」および「17:30」であるものとする。また、図20(b)では、単位としての「時間」を「h」により表している。 With reference to FIG. 20, a method of totaling each section by the totaling unit 116 according to the embodiment will be described. FIG. 20 (a) corresponds to FIG. 18 (b) described above, and the aggregation unit 116 aggregates each block extracted as being adopted according to the above-mentioned aggregation conditions. FIG. 20B shows an example in which each block is extracted for each aggregation destination item in FIG. The start time and end time of the predetermined time shall be the time "09: 00" and "17:30", respectively. Further, in FIG. 20 (b), "time" as a unit is represented by "h".

図20(a)における区間aのブロックは、事由種別が「勤務」であり、分割開始時刻および分割終了時刻がそれぞれ時刻「09:00」および時刻「11:00」であって、上述の式(2)を満たしている。同様に、区間eのブロックは、事由種別が「勤務」であり、分割開始時刻および分割終了時刻がそれぞれ時刻「14:00」および時刻「17:30」であって、上述の式(2)を満たしている。したがって、図20(b)の「所定内実労働時間」の行に示されるように、区間aのブロックの時間「2時間」と、区間eのブロックの時間「3.5時間」とがそれぞれ所定内実労働時間として計算される。 In the block of the section a in FIG. 20A, the reason type is "work", the division start time and the division end time are the time "09: 00" and the time "11:00", respectively, and the above-mentioned formula is used. (2) is satisfied. Similarly, in the block of the section e, the reason type is "work", the division start time and the division end time are the time "14:00" and the time "17:30", respectively, and the above equation (2) Meet. Therefore, as shown in the line of "prescribed actual working hours" in FIG. 20 (b), the block time "2 hours" in the section a and the block time "3.5 hours" in the section e are predetermined respectively. Calculated as actual working hours.

図20(a)における区間fのブロックは、事由種別が「勤務」であり、分割開始時刻および分割終了時刻がそれぞれ時刻「17:30」および時刻「18:00」である。これらのうち、分割終了時刻の時刻「18:00」は、所定時間の終了時刻「17:30」より後の時刻であり、上述の式(3)を満たしている。したがって、図20(b)の「所定外実労働時間」の行に示されるように、区間fのブロックの時間「0.5時間」が所定外実労働時間として計算される。 In the block of the section f in FIG. 20A, the reason type is "work", and the division start time and the division end time are the time "17:30" and the time "18:00", respectively. Of these, the time "18:00" of the division end time is a time after the end time "17:30" of the predetermined time, and satisfies the above-mentioned formula (3). Therefore, as shown in the row of "Overtime actual working hours" in FIG. 20B, the time "0.5 hours" of the block in the section f is calculated as the overtime actual working hours.

図20(a)における区間hおよび区間jの各ブロックは、それぞれ事由種別が「有給休暇」であり、上述の集計先項目「有給休暇時間」の条件を満たしている。また、図19の例では、集計先項目「有給休暇時間」については、時刻(時間)に関する条件は定義されていない。したがって、図20(b)に示されるように、区間hのブロックの時間「1時間」と、区間jのブロックの時間「1時間」とがそれぞれ有給休暇時間として計算される。 Each block of the section h and the section j in FIG. 20A has a reason type of "paid leave" and satisfies the condition of the above-mentioned aggregation destination item "paid leave time". Further, in the example of FIG. 19, the condition regarding the time (time) is not defined for the aggregation destination item “paid leave time”. Therefore, as shown in FIG. 20B, the block time "1 hour" in the section h and the block time "1 hour" in the section j are calculated as paid vacation times, respectively.

図20(a)における区間gのブロックは、事由種別が「休憩」であり、上述の集計先項目「休憩時間」の条件を満たしている。また、図19の例では、集計先項目「休憩時間」については、時刻(時間)に関する条件は定義されていない。したがって、図20(b)の「休憩時間」の行に示されるように、区間gのブロックの時間「1時間」が休憩時間として計算される。 In the block of the section g in FIG. 20A, the reason type is "break", and the condition of the above-mentioned aggregation destination item "break time" is satisfied. Further, in the example of FIG. 19, the condition regarding the time (time) is not defined for the aggregation destination item “break time”. Therefore, as shown in the row of "break time" in FIG. 20 (b), the block time "1 hour" of the section g is calculated as the break time.

集計部116は、このようにして計算された各時間を、集計先項目毎に集計する。集計結果を、図20(b)の右端に示す。具体的には、集計先項目「所定内実労働時間」は、「2時間+3.5時間」として5.5時間が集計結果とされる。集計先項目「所定外実労働時間」は、0.5時間が集計結果とされる。集計先項目「休憩時間」は、1時間が集計結果とされる。また、集計先項目「有給休暇」は、「1時間+1時間」として2時間が集計結果とされる。 The aggregation unit 116 aggregates each time calculated in this way for each aggregation destination item. The tabulation result is shown at the right end of FIG. 20 (b). Specifically, the aggregation destination item "prescribed actual working hours" is set to "2 hours + 3.5 hours" and the aggregation result is 5.5 hours. The tabulation destination item "Overtime actual working hours" is 0.5 hours as the tabulation result. The aggregation destination item "break time" is one hour as the aggregation result. In addition, the aggregation destination item "paid leave" is set to "1 hour + 1 hour" and the aggregation result is 2 hours.

一方、図20(a)の例では、不在事由が「遅刻」あるいは「終日欠勤」といった、事由種別が「不就労」である区間(ブロック)が存在しない。また、図20(a)の例では、勤務時間帯が時刻「09:00」〜時刻「18:00」であって、勤務時間帯の先頭の区間aのブロックの分割開始時刻、および、勤務時間帯の後端の区間fのブロックの分割終了時刻が、共に、上述の式(4)の条件を満たさず、集計先項目「深夜労働時間」に該当する区間(ブロック)が存在しない。したがって、図19に示した、集計先項目「不就労時間」および「深夜労働時間」は、それぞれ0時間が計算される。 On the other hand, in the example of FIG. 20A, there is no section (block) in which the reason type is "non-working", such as "late" or "all day absenteeism". Further, in the example of FIG. 20A, the working time zone is from the time "09: 00" to the time "18:00", and the division start time of the block in the first section a of the working time zone and the working hours. The division end time of the block in the section f at the rear end of the time zone does not satisfy the condition of the above equation (4), and there is no section (block) corresponding to the aggregation destination item “midnight working hours”. Therefore, 0 hours are calculated for each of the aggregation destination items "non-working hours" and "midnight working hours" shown in FIG.

なお、図19に示した集計先項目および集計条件は、一例であって、この例に限定されない。すなわち、実際には、従業員の雇用形態、管理監督者と一般社員との違い、就業規則、採用制度(変形労働時間制、フレックスタイム制など)などに応じて、集計先項目および集計条件が設定される。 The aggregation destination item and aggregation condition shown in FIG. 19 are examples, and are not limited to this example. In other words, in reality, the tabulation destination items and tabulation conditions are set according to the employment form of employees, the difference between managers and supervisors and general employees, work rules, hiring system (variable working hours system, flextime system, etc.). Set.

集計部116は、上述のようにして集計先項目毎に集計された集計結果を、例えばUI部111に渡す。UI部111は、集計部116から渡された集計結果を、例えば、図6を用いて説明した入力画面200の集計結果情報表示部2200に表示させる。 The aggregation unit 116 passes the aggregation result aggregated for each aggregation destination item as described above to, for example, the UI unit 111. The UI unit 111 causes the aggregation result information display unit 2200 of the input screen 200 described with reference to FIG. 6 to display the aggregation result passed from the aggregation unit 116, for example.

図21は、実施形態に係る、集計結果情報表示部2200に集計結果が表示された入力画面200の例を示す。図21の例では、図中に太枠にて示されるように、集計結果情報表示部2200の各表示領域2201〜2207に、図20(b)の右端に示した、所定内実労働時間、所定外実労働時間、実労働時間、深夜労働時間、休憩時間、有給休暇時間および不就労時間それぞれの集計結果「5時間30分」、「0時間30分」、「6時間00分」、「0時間00分」、「1時間00分」、「2時間00分」および「0時間00分」が、それぞれ表示されている。この集計結果は、図1(a)および図1(b)を用いて説明した勤務スケジュールと一致する。 FIG. 21 shows an example of an input screen 200 in which the aggregation result is displayed on the aggregation result information display unit 2200 according to the embodiment. In the example of FIG. 21, as shown by a thick frame in the figure, the predetermined actual working hours shown at the right end of FIG. 20B are set in each display area 2201 to 2207 of the aggregation result information display unit 2200. Total results of actual working hours, actual working hours, late-night working hours, break hours, paid vacation hours and non-working hours "5 hours 30 minutes", "0 hours 30 minutes", "6 hours 00 minutes", "0" "Time 00 minutes", "1 hour 00 minutes", "2 hours 00 minutes" and "0 hours 00 minutes" are displayed respectively. This tabulation result is consistent with the work schedule described with reference to FIGS. 1 (a) and 1 (b).

これに限らず、UI部111は、集計部116による集計結果を入力画面200とは異なる画面に表示させてもよい。また、集計部116は、集計結果をUI部111に渡さずに、記憶部120に記憶させてもよい。また、集計部116は、集計結果を、入出力I/F部130から外部に出力してもよいし、通信I/F部140から、ネットワーク30を介してサーバ20に送信してもよい。 Not limited to this, the UI unit 111 may display the aggregation result by the aggregation unit 116 on a screen different from the input screen 200. Further, the aggregation unit 116 may store the aggregation result in the storage unit 120 without passing it to the UI unit 111. Further, the aggregation unit 116 may output the aggregation result from the input / output I / F unit 130 to the outside, or may transmit the aggregation result from the communication I / F unit 140 to the server 20 via the network 30.

以上説明したように、実施形態に係る就業時間計算装置10は、各事由の開始時刻および終了時刻により1日の時間帯を区切り、各事由による時間帯を、時間的に隣接する区切りに挟まれた区間で分割している。また、各事由には、優先度を関連付けている。そのため、勤怠の不在事由の種類や、時間的に重複部分を持つ事由の数が増えても、事由に対して関連付ける優先度の判定を明確化することで、共通する手続きで対応が可能である。 As described above, the working time calculation device 10 according to the embodiment divides the time zone of the day according to the start time and the end time of each reason, and the time zone according to each reason is sandwiched between temporally adjacent divisions. It is divided into sections. In addition, each reason is associated with a priority. Therefore, even if the types of reasons for absence of attendance and the number of reasons with overlapping parts in time increase, it is possible to deal with them by a common procedure by clarifying the judgment of the priority to be associated with the reasons. ..

また、実施形態に係る就業時間計算装置10は、各事由の開始時刻および終了時刻により1日の時間帯を区切った区間に基づき、各事由の集計を行っている。そのため、勤怠の最小管理単位を問わず、厳密な集計が可能となる。例えば、勤怠の最小管理単位は、1時間、30分、15分、5分、1分、…など、原理的には秒単位まで、任意に設定可能である。また、集計の計算量に対する最小管理単位の細かさの影響が抑制される。 Further, the working hour calculation device 10 according to the embodiment aggregates each reason based on a section in which the time zone of the day is divided by the start time and the end time of each reason. Therefore, strict aggregation is possible regardless of the minimum management unit of attendance. For example, the minimum attendance management unit can be arbitrarily set to 1 hour, 30 minutes, 15 minutes, 5 minutes, 1 minute, etc., in principle, up to the second unit. In addition, the influence of the fineness of the minimum management unit on the computational complexity of aggregation is suppressed.

[5.他の実施形態]
本発明は、上述した実施形態以外にも、特許請求の範囲に記載した技術的思想の範囲内において種々の異なる実施形態にて実施されてよいものである。
[5. Other embodiments]
In addition to the above-described embodiments, the present invention may be implemented in various different embodiments within the scope of the technical ideas described in the claims.

例えば、実施形態において説明した各処理のうち、自動にて行われるものとして説明した処理の全部または一部を手動にて行うこともでき、あるいは、手動にて行われるものとして説明した処理の全部または一部を公知の方法で自動にて行うこともできる。 For example, among the processes described in the embodiment, all or part of the processes described as being automatically performed may be performed manually, or all the processes described as being performed manually may be performed. Alternatively, a part thereof can be automatically performed by a known method.

また、本明細書中や図面中で示した処理手順、制御手順、具体的名称、各処理の登録データや検索条件などのパラメータを含む情報、画面例、マスタ構成、データ構成については、特記する場合を除いて任意に変更することができる。 In addition, the processing procedure, control procedure, specific name, information including parameters such as registration data and search conditions of each processing, screen example, master configuration, and data configuration shown in the present specification and drawings are specially described. It can be changed arbitrarily except in some cases.

さらに、上述では、実施形態に係る就業時間計算装置10が1のコンピュータにより構成されるように説明したが、これはこの例に限定されない。すなわち、実施形態に係る就業時間計算装置10は、複数のコンピュータを統合的に運用するシステムにて構成することもできる。 Further, in the above description, the working hour calculation device 10 according to the embodiment is described to be composed of one computer, but this is not limited to this example. That is, the working time calculation device 10 according to the embodiment can also be configured as a system that operates a plurality of computers in an integrated manner.

さらにまた、装置の分散・統合の具体的形態は図示するものに限られず、その全部または一部を、各種の付加等に応じてまたは機能負荷に応じて、任意の単位で機能的または物理的に分散・統合して構成することができる。すなわち、上述した実施形態を任意に組み合わせて実施してもよく、実施形態を選択的に実施してもよい。 Furthermore, the specific form of distribution / integration of the device is not limited to the one shown in the figure, and all or part of the device may be functionally or physically in any unit according to various additions or functional loads. Can be distributed and integrated into the configuration. That is, the above-described embodiments may be arbitrarily combined and implemented, or the embodiments may be selectively implemented.

本発明は、特に、企業や店舗などの勤怠管理の分野において有用である。 The present invention is particularly useful in the field of attendance management such as companies and stores.

10 就業時間計算装置
20 サーバ
30 ネットワーク
110 制御部
111 UI部
112 記憶管理部
113 作成部
114 分割部
115 選択部
116 集計部
120 記憶部
121 入力情報記憶部
122 不在事由マスタ
123 優先度マスタ
200 入力画面
300 事由明細データ
310 基準時刻明細データ
320 事由明細分割データ
330 事由明細分割抽出データ
2000,2100 入力部
2200 集計結果情報表示部
10 Working hours calculation device 20 Server 30 Network 110 Control unit 111 UI unit 112 Storage management unit 113 Creation unit 114 Division unit 115 Selection unit 116 Aggregation unit 120 Storage unit 121 Input information storage unit 122 Absence reason master 123 Priority master 200 Input screen 300 Reason detail data 310 Reference time detail data 320 Reason detail division data 330 Reason detail division extraction data 2000, 2100 Input unit 2200 Aggregation result information display unit

Claims (10)

制御部と記憶部とを備えた就業時間計算装置であって、
前記制御部は、
ユーザによる入力を受け付ける入力手段と、
前記入力手段により入力された、事由種別が勤務である勤務時間帯と、該事由種別が休憩である休憩時間帯と、該事由種別が不在に係る不在時間帯と、による各時間帯それぞれの開始時刻および終了時刻をそれぞれ示す複数の時刻情報と、該不在の内容を示す該事由種別と、を前記記憶部に記憶する記憶手段と、
1日の時間に対して、前記記憶部に記憶された前記複数の時刻情報が示す時刻と、予め定められた時刻と、により区切った区切りを設定し、隣接する該区切りに挟まれた区間を作成する作成手段と、
前記勤務時間帯、前記休憩時間帯および前記不在時間帯を、前記作成手段により作成された前記区間毎に分割して分割時間帯を生成する分割手段と、
前記作成手段により作成された前記区間それぞれのうち、1以上の前記分割時間帯を含む区間において、該分割時間帯のうち最も高い優先度が設定された前記事由種別に対応する該分割時間帯を、該区間毎に選択する選択手段と、
前記選択手段により選択された前記分割時間帯を、対応する前記事由種別が同一の該分割時間帯毎に集計する集計手段と、
を備えることを特徴とする就業時間計算装置。
It is a working time calculation device equipped with a control unit and a storage unit.
The control unit
Input means that accepts input by the user,
Start of each time zone according to the working time zone where the reason type is work, the break time zone where the reason type is a break, and the absent time zone where the reason type is absent, which are input by the input means. A storage means for storing a plurality of time information indicating the time and the end time, and the reason type indicating the content of the absence in the storage unit.
For the time of the day, a delimiter is set by the time indicated by the plurality of time information stored in the storage unit and the predetermined time, and the section sandwiched between the adjacent delimiters is set. How to create and how to create
A dividing means for generating a divided time zone by dividing the working time zone, the break time zone, and the absent time zone into each of the sections created by the creating means.
In each of the sections created by the creation means, in the section including one or more of the division time zones, the division time zone corresponding to the reason type for which the highest priority among the division time zones is set. With a selection means for selecting each section,
An aggregation means that aggregates the division time zones selected by the selection means for each division time zone having the same reason type.
A working time calculator characterized by being equipped with.
前記選択手段は、
前記事由種別と前記優先度とを関連付けた優先度マスタに基づき、前記分割時間帯を前記区間毎に選択する
ことを特徴とする請求項1に記載の就業時間計算装置。
The selection means is
The working hour calculation device according to claim 1, wherein the divided time zone is selected for each section based on the priority master in which the reason type and the priority are associated with each other.
前記入力手段は、
前記勤務時間帯と、前記休憩時間帯と、前記不在時間帯と、の各時間帯のうち少なくとも2の時間帯が重複部分を持つ前記入力を受け付ける
ことを特徴とする請求項1または請求項2に記載の就業時間計算装置。
The input means is
Claim 1 or claim 2 is characterized in that at least two of the working hours, the resting hours, and the absentee hours have overlapping portions. The working hours calculator described in.
前記入力手段は、
前記1日に対してそれぞれ複数の前記休憩時間帯および前記不在時間帯の前記入力を受け付け可能である
ことを特徴とする請求項1乃至請求項3の何れか1項に記載の就業時間計算装置。
The input means is
The working hour calculation device according to any one of claims 1 to 3, wherein the input of the rest time zone and the absence time zone can be accepted for each of the day. ..
前記入力手段は、
前記不在の内容をさらに示す前記事由種別の前記入力を複数の前記不在時間帯毎に受け付け、
入力された該不在の内容を示す該事由種別が異なる複数の前記不在時間帯が重複部分を持つ前記入力を受け付け可能である
ことを特徴とする請求項4に記載の就業時間計算装置。
The input means is
The input of the reason type further indicating the content of the absence is accepted for each of the plurality of absent time zones.
The working hour calculation device according to claim 4, wherein a plurality of the absent time zones having different types of reasons indicating the input contents of the absence can accept the input having an overlapping portion.
前記入力手段は、
前記不在の内容をさらに示す前記事由種別を、該事由種別と前記不在の内容を示す不在事由とが関連付けられた不在事由マスタに基づき入力する
ことを特徴とする請求項1乃至請求項5の何れか1項に記載の就業時間計算装置。
The input means is
Claims 1 to 5, wherein the reason type further indicating the content of the absence is input based on the absence reason master in which the reason type and the absence reason indicating the content of the absence are associated with each other. The working hour calculation device according to any one of the following items.
前記作成手段は、
それぞれ予め定められた就業時間帯および深夜時間帯それぞれの開始時刻および終了時刻を前記予め定められた時刻として前記区切りを設定し、
前記集計手段は、
前記就業時間帯および深夜時間帯それぞれの開始時刻および終了時刻に基づき、前記選択手段により選択された前記勤務時間帯を分割した前記分割時間帯を、さらに、就業時間帯内および就業時間帯外、ならびに、深夜時間帯内および深夜時間帯外で区別して集計する
ことを特徴とする請求項1乃至請求項6の何れか1項に記載の就業時間計算装置。
The creation means is
The delimiter is set with the start time and end time of each of the predetermined working hours and midnight hours as the predetermined times.
The tabulation means is
Based on the start time and end time of the working time zone and the midnight time zone, the divided time zone obtained by dividing the working time zone selected by the selection means is further divided into the working time zone and the non-working time zone. The working hour calculation device according to any one of claims 1 to 6, wherein the aggregation is performed separately within the midnight time zone and outside the midnight time zone.
前記入力手段は、
前記複数の時刻情報を、前記制御部が管理する最小時間単位で入力可能である
ことを特徴とする請求項1乃至請求項7の何れか1項に記載の就業時間計算装置。
The input means is
The working hour calculation device according to any one of claims 1 to 7, wherein the plurality of time information can be input in the minimum time unit managed by the control unit.
制御部と記憶部とを備えた就業時間計算装置で実行される就業時間計算方法であって、
前記制御部で実行される、
ユーザによる入力を受け付ける入力ステップと、
前記入力ステップにより入力された、事由種別が勤務である勤務時間帯と、該事由種別が休憩である休憩時間帯と、該事由種別が不在に係る不在時間帯と、による各時間帯それぞれの開始時刻および終了時刻をそれぞれ示す複数の時刻情報と、該不在の内容を示す該事由種別と、を前記記憶部に記憶する記憶ステップと、
1日の時間に対して、前記記憶部に記憶された前記複数の時刻情報が示す時刻と、予め定められた時刻と、により区切った区切りを設定し、隣接する該区切りに挟まれた区間を作成する作成ステップと、
前記勤務時間帯、前記休憩時間帯および前記不在時間帯を、前記作成ステップにより作成された前記区間毎に分割して分割時間帯を生成する分割ステップと、
前記作成ステップにより作成された前記区間それぞれのうち、1以上の前記分割時間帯を含む区間において、該分割時間帯のうち最も高い優先度が設定された前記事由種別に対応する該分割時間帯を、該区間毎に選択する選択ステップと、
前記選択ステップにより選択された前記分割時間帯を、対応する前記事由種別が同一の該分割時間帯毎に集計する集計ステップと、
を含むことを特徴とする就業時間計算方法。
It is a working time calculation method executed by a working time calculation device having a control unit and a storage unit.
Executed by the control unit,
Input steps that accept user input and
Start of each time zone according to the working time zone where the reason type is work, the break time zone where the reason type is a break, and the absent time zone where the reason type is absent, which are input by the input step. A storage step for storing a plurality of time information indicating the time and the end time, and the reason type indicating the content of the absence in the storage unit.
For the time of the day, a delimiter is set by the time indicated by the plurality of time information stored in the storage unit and the predetermined time, and the section sandwiched between the adjacent delimiters is set. The creation step to create and
A division step of dividing the working time zone, the break time zone, and the absence time zone into each of the sections created by the creation step to generate a divided time zone.
In each of the sections created by the creation step, in the section including one or more of the division time zones, the division time zone corresponding to the reason type for which the highest priority among the division time zones is set. With a selection step to select for each section,
An aggregation step in which the division time zones selected by the selection step are aggregated for each division time zone having the same reason type.
A method of calculating working hours, characterized by including.
制御部と記憶部とを備えた情報処理装置に実行させるための就業時間計算プログラムであって、
前記制御部に実行させるための、
ユーザによる入力を受け付ける入力ステップと、
前記入力ステップにより入力された、事由種別が勤務である勤務時間帯と、該事由種別が休憩である休憩時間帯と、該事由種別が不在に係る不在時間帯と、による各時間帯それぞれの開始時刻および終了時刻をそれぞれ示す複数の時刻情報と、該不在の内容を示す該事由種別と、を前記記憶部に記憶する記憶ステップと、
1日の時間に対して、前記記憶部に記憶された前記複数の時刻情報が示す時刻と、予め定められた時刻と、により区切った区切りを設定し、隣接する該区切りに挟まれた区間を作成する作成ステップと、
前記勤務時間帯、前記休憩時間帯および前記不在時間帯を、前記作成ステップにより作成された前記区間毎に分割して分割時間帯を生成する分割ステップと、
前記作成ステップにより作成された前記区間それぞれのうち、1以上の前記分割時間帯を含む区間において、該分割時間帯のうち最も高い優先度が設定された前記事由種別に対応する該分割時間帯を、該区間毎に選択する選択ステップと、
前記選択ステップにより選択された前記分割時間帯を、対応する前記事由種別が同一の該分割時間帯毎に集計する集計ステップと、
を含むことを特徴とする就業時間計算プログラム。
It is a working time calculation program to be executed by an information processing device equipped with a control unit and a storage unit.
To make the control unit execute
Input steps that accept user input and
Start of each time zone according to the working time zone where the reason type is work, the break time zone where the reason type is a break, and the absent time zone where the reason type is absent, which are input by the input step. A storage step for storing a plurality of time information indicating the time and the end time, and the reason type indicating the content of the absence in the storage unit.
For the time of the day, a delimiter is set by the time indicated by the plurality of time information stored in the storage unit and the predetermined time, and the section sandwiched between the adjacent delimiters is set. The creation step to create and
A division step of dividing the working time zone, the break time zone, and the absence time zone into each of the sections created by the creation step to generate a divided time zone.
In each of the sections created by the creation step, in the section including one or more of the division time zones, the division time zone corresponding to the reason type for which the highest priority among the division time zones is set. With a selection step to select for each section,
An aggregation step in which the division time zones selected by the selection step are aggregated for each division time zone having the same reason type.
A working hours calculation program characterized by including.
JP2017230355A 2017-11-30 2017-11-30 Working time calculator, working time calculation method and working time calculation program Active JP6986428B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017230355A JP6986428B2 (en) 2017-11-30 2017-11-30 Working time calculator, working time calculation method and working time calculation program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017230355A JP6986428B2 (en) 2017-11-30 2017-11-30 Working time calculator, working time calculation method and working time calculation program

Publications (2)

Publication Number Publication Date
JP2019101636A JP2019101636A (en) 2019-06-24
JP6986428B2 true JP6986428B2 (en) 2021-12-22

Family

ID=66976932

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017230355A Active JP6986428B2 (en) 2017-11-30 2017-11-30 Working time calculator, working time calculation method and working time calculation program

Country Status (1)

Country Link
JP (1) JP6986428B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6810295B1 (en) * 2019-09-25 2021-01-06 宇雄 丹野 Attendance management methods, attendance management programs, and attendance management systems
JP7779679B2 (en) * 2021-08-20 2025-12-03 株式会社オービック Vacation management device, vacation management method, and vacation management program
CN114143393B (en) * 2021-10-21 2023-09-15 维沃移动通信有限公司 Time display method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002304503A (en) * 2001-01-26 2002-10-18 Semiconductor Energy Lab Co Ltd Working data management system and its method
US20040019542A1 (en) * 2002-07-26 2004-01-29 Ubs Painewebber Inc. Timesheet reporting and extraction system and method
JP4315711B2 (en) * 2003-03-13 2009-08-19 株式会社日本総合研究所 Time zone management system, time management system, time zone management program and time management program
JP2005352748A (en) * 2004-06-10 2005-12-22 Toshiba Tec Corp Work management device and work management program
JP2007122644A (en) * 2005-10-31 2007-05-17 King Jim Co Ltd Duty management system, program for duty management, and duty management method

Also Published As

Publication number Publication date
JP2019101636A (en) 2019-06-24

Similar Documents

Publication Publication Date Title
US12068071B2 (en) System and method of dynamically generating work assignments
JP6986428B2 (en) Working time calculator, working time calculation method and working time calculation program
Gustavsson et al. Challenges in demonstrating the value of disease-modifying therapies for Alzheimer’s disease
JP6997629B2 (en) Credit pass / fail judgment device, credit pass / fail judgment method, and credit pass / fail judgment program
JP6741324B1 (en) Work schedule creation system
Pietschmann et al. Key labor market indicators: Analysis with household survey data
Slaugh et al. Consistent staffing for long‐term care through on‐call pools
Hughes et al. Modeling nonprofit behavior
JP3992111B2 (en) Systems, methods and programs for adjusting work schedules
JP7249650B2 (en) Working time calculation system, payroll system and computer program
Orazbayev Sequential order as an extraneous factor in editorial decision
Izady An integrated approach to demand and capacity planning in outpatient clinics
JP2024134327A (en) Business management device, method, and program
JP7411603B2 (en) Information processing device, program, and information processing method
JP5480438B1 (en) Intellectual property rights management system and method
JP7758814B2 (en) Staff management device, staff management method, and staff management program
JP7324162B2 (en) Cost output device, cost output method, and cost output program
KR102669634B1 (en) Human resource management automation device and method
US7158937B2 (en) Encounter tracker and service gap analysis system and method of use
Hill Opening Pandora's Patent Box: Global Intellectual Property Tax Incentives and Their Implications for the United States
JP7029993B2 (en) Store-specific productivity evaluation system, store-specific productivity evaluation method, and store-specific productivity evaluation program
Boyle et al. Development of performance indicators for systems of urgent and emergency care in the Republic of Ireland. Update of a systematic review and consensus development exercise
Pertold et al. Firm insurance and sickness absence of employees
JP2019159688A (en) Qualification allowance total amount calculation device, qualification allowance total amount calculation method, and qualification allowance total amount calculation program
US20220198413A1 (en) Distributed rules based hierarchical auditing system for management of health care services

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20201029

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210907

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20211129

R150 Certificate of patent or registration of utility model

Ref document number: 6986428

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250