Invention content
In view of this, the present invention provides a kind of attendance management method and device, to solve at this stage to need attendance managementThe problem of wanting extra purchase attendance hardware device.Technical solution is as follows:
A kind of attendance management method, applied to terminal, including:
Identify each goal activities event of the operating system within the default attendance period, the goal activities event includes usingIn characterizing first kind life event that the operating system reaches the standard grade or live for characterizing the second offline class of the operating systemDynamic event;
Record the first activity time of each first kind life event and each second class life eventSecond activity time;
Based on each first activity time and each second activity time, calculate in the default attendance periodAttendance data.
Preferably, each goal activities event of the identification operating system within the default attendance period, including:
Within the default attendance period, whether real-time judge Hook Function is called by the operating systems, and the Hook Function is advanceIt is set in the operating system;
If the Hook Function is called by the operating system, judge call after the Hook Function parameter whether beParameter preset;
If the parameter of the Hook Function after calling is the parameter preset, the current active of the operating system is obtainedEvent, and the current active event is determined as goal activities event.
Preferably, it is described based on each first activity time and each second activity time, it calculates described pre-If the attendance data in the attendance period, including:
Working attendance time of earliest first activity time as the default attendance period is chosen, and is chosen mostNext attendance time of second activity time in evening as the default attendance period;
It is gone to work attendance time and the next attendance time according to described, when calculating the work of the default attendance periodIt is long.
Preferably, it further includes:
Obtain the attendance data of each default attendance period in the default attendance period;
Based on the whole attendance data and default attendance computation rule got, other attendance datas are calculated.
Preferably, it further includes:
The attendance data is sent to server.
Preferably, it further includes:
The attendance data is sent to the corresponding client of the terminal.
A kind of Work attendance management device, including:Event recognition module, time recording module and the first data computation module;
The event recognition module, for identifying each goal activities event of the operating system within the default attendance period,The goal activities event includes for characterizing first kind life event that the operating system reaches the standard grade or described for characterizingThe second offline class life event of operating system;
The time recording module, for recording the first activity time of each first kind life event and eachSecond activity time of the second class life event;
First data computation module, for be based on each first activity time and it is each it is described second activity whenBetween, calculate the attendance data in the default attendance period.
Preferably, it further includes:Second data computation module;
Second data computation module, for obtaining the attendance of each default attendance period in the default attendance periodData;Based on the whole attendance data and default attendance computation rule got, other attendance datas are calculated.
Preferably, it further includes:First data transmission blocks;
First data transmission blocks, for the attendance data to be sent to server.
Preferably, it further includes:Second data transmission blocks;
Second data transmission blocks, for the attendance data to be sent to the corresponding client of the terminal.
Compared to the prior art, what the present invention realized has the beneficial effect that:
A kind of above attendance management method and device provided by the invention, this method are applied to the end for each employee setupEnd, by monitoring its operating system in the default attendance period, for example, the goal activities event in working day, is to determine to operateSystem is reached the standard grade or offline life event and respective activity time, so as to calculate attendance number of the employee within the default attendance periodAccording to.
Based on method disclosed by the invention, the attendance data needed for attendance assistant director can be obtained using operating system, withoutExtra purchase attendance hardware device, greatly reduces attendance management cost.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, completeSite preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based onEmbodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative workEmbodiment shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of attendance management method, and this method is applied to terminal, which is that unit is each memberWork configuration, a terminal-pair answers an employee, specifically using terminal iidentification, such as IP address of terminal and employee identification, thanIt is completed as employee number establishes mapping relations.
The method flow diagram of attendance management method provided in this embodiment is as shown in Figure 1, include the following steps:
S10, each goal activities event of the identification operating system within the default attendance period, the goal activities event packageIt includes for characterizing first kind life event that operating system reaches the standard grade or for characterizing the second offline class activity thing of operating systemPart;
In the present embodiment, the checking-in state of employee is determined by the life event of monitor operating system, for example, employee existsThe default attendance period, for example operating system is logged in or unlocked for the first time in working day, you can determine that employee comes to work, and it is lastPrimary cancellation or lock operation system can determine that employee comes off duty.It therefore, can be by the login of operating system, solution in the present embodimentLock, cancellation and lock event monitor the attendance of employee with this as goal activities event.
Wherein, event is logged in and unlock as first kind life event, nullifies and lock event is as the second class activity thingPart.
Certainly, only logging in, unlocking, nullifying and lock event illustrates as an example in the present embodiment, in practical applicationOther events of operating system also can be used in the process as goal activities event, for example, sleep, the present embodiment do not limit.
During specific implementation, " each goal activities of the identification operating system within the default attendance period in step S10Event ", can specifically use following steps, and method flow diagram is as shown in Figure 2:
S101, within the default attendance period, whether real-time judge Hook Function is called by the operating systems, the Hook FunctionIt is pre-set in operating system;If Hook Function is called by the operating systems, step S102 is performed;
Hook Function is a part for operating system message processing facility.By setting " hook ", operating system can beWhen user's events of interest occurs, Hook Function is called, this can realize all message of filter operation system or event.
In the present embodiment, by setting Hook Function in an operating system, you can determine in operating system with the presence or absence of workWhether dynamic event and existing life event are interested goal activities event.
If specifically, detect that operating system transfers Hook Function, you can determine in operating system there are life event, insteadIt, if Hook Function is not called by operating system, also can determine and life event be not present in operating system.
S102, whether the parameter for judging the Hook Function after calling is parameter preset;If the ginseng of the Hook Function after callingNumber is parameter preset, then performs step S103;
In operating system is determined there are life event after, need to further determine that whether existing life event is senseThe goal activities event of interest can set corresponding parameter, i.e. parameter preset in the present embodiment for goal activities event in advance, intoAnd compare the parameter of the Hook Function after calling with parameter preset, whether to determine the current active event of operating systemFor goal activities event.
For example, including logging in, in the case of unlock, cancellation and lock event in goal activities event, the present embodiment can be pre-First setting logs in, unlock, nullifies and the parameter of lock event, then by the parameter of the Hook Function after calling and above-mentioned login, solutionThe parameter of lock, cancellation and lock event is compared successively.If there are parameter unanimous circumstances, working as operating system can determinePreceding life event is goal activities event, if conversely, there is no parameter unanimous circumstances, can determine the current work of operating systemDynamic event is not goal activities event.
S103 obtains the current active event of operating system, and current active event is determined as goal activities event.
S20, record each first kind life event the first activity time and each second class life event secondActivity time;
Since operating system can generate multiple life events within the default attendance period, getting default attendanceEach goal activities event in period and then the type based on each goal activities event are classified as first kind activity thingPart and the second class life event, and record its activity time.
For example, occur 3 log-in events, 5 unlock events, 2 Logout Events and 4 lockings within a working dayEvent.Due to logging in and unlocking event as first kind life event, cancellation and lock event as the second class life event, because, there are 8 first kind life events and 6 the second class life events within a working day in this, transfers and records eachFirst activity time of a kind of life event, the second activity time of each second class life event.
S30 based on each first activity time and each second activity time, calculates the attendance number in the default attendance periodAccording to;
In the present embodiment, each first activity time and each second activity time based on record, you can determine the endHold attendance time and operating time of the corresponding employee within the default attendance period.Certainly, it may further determine that the overtime work of the employeeDuration etc., this can be used as attendance data used by attendance assistant director.
During specific implementation, step S30 " based on each first activity time and each second activity time, is calculatedAttendance data in the default attendance period ", can specifically use following steps, method flow diagram such as Fig. 3 shows:
S301 chooses working attendance time of the first earliest activity time as the default attendance period, and chooses the latestNext attendance time of second activity time as the default attendance period;
For example, occur 3 log-in events, 5 unlock events, 2 Logout Events and 4 lockings within a working dayEvent can be chosen earliest, that is, in minimum conduct from the first activity time of 3 log-in events and 5 unlock eventsIt the bancor duty time, is chosen the latest from the second activity time of 2 Logout Events and 4 lock events, that is, maximum workFor the attendance time of coming off duty.
S302 according to working attendance time and next attendance time, calculates the operating time of default attendance period;
It, can be using the difference of next attendance time and working attendance time as the work of default attendance period in the present embodimentDuration, certainly, if there are other default attendance amounts, such as lunch break duration, when can also combine other default attendance amount evaluation worksLong, the present embodiment is not done with restriction.
Further, the workload for reduction attendance assistant director in some other embodiment, can be based on the default attendance periodAttendance data calculate other attendance datas in a certain attendance period, for example, duration of taking off, overtime work meal are mended and overtime pay etc., Fig. 1The attendance management method shown may also include the steps of, and method flow diagram is as shown in Figure 4:
S40 obtains the attendance data of each default attendance period in the default attendance period;
For a certain default attendance period, it is pre- this can be calculated according to the attendance management method shown in step S10~step S30If the attendance data of each attendance period, the present embodiment repeat no more in the attendance period, above disclosure is referred to.
S50 based on the whole attendance datas and default attendance computation rule got, calculates other attendance datas;
Unit rules and regulations can be based in the present embodiment, attendance computation rule is set, for example, the normal operating time of companyIt is 8 hours, using 22 days workaday operating times in one month, calculates overtime work duration of certain employee in this month.Further, using pre-set overtime pay computation rule, for example, one hour 10 yuan of overtime pay of overtime work, calculate adding for the employeeStudent contributions pooled to pay for class activities;Also using pre-set computation rule of taking off, it can take off 4 hours for example, overtime work often reaches 12 hours, calculate the employeeDuration of taking off;Certainly, computation rule also is mended using pre-set meal, for example, 20 can be subsidized by working overtime in one day full 4 hoursMember calculates overtime work meal benefit of the employee etc., and the present embodiment is not specifically limited.
Further, to avoid Missing data, in some other embodiment, the attendance management method shown in Fig. 1 is alsoIt may include following steps:
Attendance data is sent to server.
In the present embodiment, one can be pre-set for backing up the server of attendance data, further, had been calculated in terminalInto after the attendance data of default attendance period, attendance data can be sent to the server.Server can record terminal hairThe attendance data and its corresponding terminal iidentification sent, so as to complete the backup to staff attendance data.
Further, attendance, in some other embodiment, the attendance management side shown in Fig. 1 are inquired for convenience of employeeMethod may also include the steps of:
Attendance data is sent to the corresponding client of terminal.
In the present embodiment, terminal can be associated in advance with the client that employee is held, for example, pre-setting IP address of terminalAttendance data can be sent to respective client by the mapping relations between client ip address, terminal based on client ip addressEnd.And form the present embodiment of specific attendance data does not limit, and can be voice, can be also word etc., can also be picture certainlyDeng.
Above step S101~step S103 is only " identification operating system in the step S10 that the embodiment of the present application disclosesA kind of preferred realization method of each goal activities event within the default attendance period " process, in relation to the specific of this processRealization method can arbitrarily be set according to the demand of oneself, not limited herein.
Above step S301~step S302 is only that the step S30 that the embodiment of the present application discloses " lives based on each firstDynamic time and each second activity time calculate the attendance data in the default attendance period " the preferred realization side of one kind of processFormula, the specific implementation in relation to this process can arbitrarily set according to the demand of oneself, not limit herein.
Attendance management method provided in an embodiment of the present invention applied to terminal, is examined by monitoring its operating system defaultThe diligent period, for example, the goal activities event in working day, to determine that operating system is reached the standard grade or offline life event and phaseThe activity time is answered, so as to calculate attendance data of the employee within the default attendance period.Based on method disclosed by the invention, behaviour is utilizedAttendance data needed for attendance assistant director can be obtained by making system, without extra purchase attendance hardware device, greatly reduce attendanceManagement cost.
Based on the attendance management method that above-described embodiment provides, the embodiment of the present invention also provides a kind of above-mentioned attendance pipe of executionThe device of reason method, the structure diagram of Work attendance management device as shown in figure 5, including:Event recognition module 10, time record mould20 and first data computation module 30 of block;
Event recognition module 10, for identifying each goal activities event of the operating system within the default attendance period, instituteGoal activities event is stated to include for characterizing first kind life event that operating system reaches the standard grade or for characterizing under operating systemSecond class life event of line;
Time recording module 20, for recording the first activity time of each first kind life event and each second classSecond activity time of life event;
First data computation module 30 for being based on each first activity time and each second activity time, calculates pre-If the attendance data in the attendance period.
In some other embodiment, event recognition module 10 is specifically used for:
Within the default attendance period, whether real-time judge Hook Function is called by the operating systems, and the Hook Function is advanceIt is set in operating system;If Hook Function is called by the operating systems, whether the parameter for judging the Hook Function after calling is pre-Setting parameter;If the parameter of the Hook Function after calling is parameter preset, the current active event of operating system is obtained, and will be currentLife event is determined as goal activities event.
In some other embodiment, the first data computation module 30 is specifically used for:
Choose working attendance time of the first earliest activity time as the default attendance period, and selection the latest secondNext attendance time of the activity time as the default attendance period;According to working attendance time and next attendance time, calculate pre-If the operating time of attendance period.
In some other embodiment, above device further includes following module:Second data computation module;
Second data computation module, for obtaining the attendance data of each default attendance period in the default attendance period;BaseIn the whole attendance datas and default attendance computation rule that get, other attendance datas are calculated.
In some other embodiment, above device further includes following module:First data transmission blocks;
First data transmission blocks, for attendance data to be sent to server.
In some other embodiment, above device further includes following module:Second data transmission blocks;
Second data transmission blocks, for attendance data to be sent to the corresponding client of terminal.
Work attendance management device provided in an embodiment of the present invention, by monitoring its operating system in the default attendance period, for example,Goal activities event in working day, to determine that operating system is reached the standard grade or offline life event and respective activity time,So as to calculate attendance data of the employee within the default attendance period.Based on device disclosed by the invention, operating system is utilizedThe attendance data needed for attendance assistant director is obtained, without extra purchase attendance hardware device, greatly reduces attendance management cost.
A kind of attendance management method and device provided by the present invention is described in detail above, it is used hereinSpecific case is expounded the principle of the present invention and embodiment, and the explanation of above example is only intended to help to understand thisThe method and its core concept of invention;Meanwhile for those of ordinary skill in the art, thought according to the present invention, specificThere will be changes in embodiment and application range, in conclusion the content of the present specification should not be construed as to the present invention'sLimitation.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weightPoint explanation is all difference from other examples, and just to refer each other for identical similar part between each embodiment.For device disclosed in embodiment, since it is corresponded to the methods disclosed in the examples, so fairly simple, the phase of descriptionPart is closed referring to method part illustration.
It should also be noted that, herein, relational terms such as first and second and the like are used merely to oneEntity or operation are distinguished with another entity or operation, without necessarily requiring or implying between these entities or operationThere are any actual relationship or orders.Moreover, term " comprising ", "comprising" or its any other variant are intended to containLid non-exclusive inclusion, so that the element that process, method, article or equipment including a series of elements are intrinsic,It either further includes as these processes, method, article or the intrinsic element of equipment.In the absence of more restrictions,The element limited by sentence "including a ...", it is not excluded that in the process including the element, method, article or equipmentIn also there are other identical elements.
The foregoing description of the disclosed embodiments enables professional and technical personnel in the field to realize or use the present invention.A variety of modifications of these embodiments will be apparent for those skilled in the art, it is as defined hereinGeneral Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the inventionThe embodiments shown herein is not intended to be limited to, and is to fit to and the principles and novel features disclosed herein phase oneThe most wide range caused.