Home > Back-end >  About the attendance data processing, invite you to participate in discussions
About the attendance data processing, invite you to participate in discussions

Time:09-22

Write a check on work attendance system for work in recently,
Attendance data acquisition, leave alone, on a business trip, work overtime, and flight time management, personnel management and so on are written,
Finally close attendance daily generation processing, thinking for three days, or a confused mind, relax CSDN, see if there are processed and attendance system to give directions,
Mind tangle of places:
1, four times a day, commuting to work, afternoon after work,
2, if he played only once, that this must according to whether to leave or business trip in the afternoon to into the corresponding point in time,
3, overtime beginning or the end of the time could be with normal time from work or work to,
4, overtime will add to the next day,
5, the company is size weeks, 6 days a week, five days a week,
6, under normal circumstances is a day off on Sunday, if meet with national holiday adjustment, may appear abnormal,
7, some department USES the method of double confirmation between single to work overtime to decided whether to work overtime, the other part is not write a single overtime, only according to the actual clock time,

If you take the day off work time duration of the recent credit card card to work, also can appear for night work overtime to 4, 5 in the morning, so don't go to work in the morning, will take overtime work wrong card as the morning go to work,
If you take off the nearest point in time, will give lost overtime, if work overtime to the next day, this how to take,
Each time point is hang up several factors relationship, round round,

In mind, more think more complex, more think more don't know where to start,
Even lost their direction
Alas,,,,,,,, factory attendance company is much more complicated than normal,
Seek help, head were bursting

Every day I just want to give each employee generated a record, record his variety of clock time to work, work overtime of clock time, overtime hours, leave length, and the time late, leave early time
Judgment are on holiday or normal working days, if overtime start time and overlapping time from work is no exception

Even the most inefficient, had can't think of the most stupid way,
Write the program of a few years, for the first time, so very worship those professional HR system developers

CodePudding user response:

Attendance at the core of the content is the algorithm of check on work attendance, attendance period set directly affect the efficiency of algorithm of check on work attendance,
1, four times a day, commuting to work, afternoon after work,
A: no matter how many times, it is time, time period include: start at the beginning of time, time to work, work attendance end time, start time from work, go off work time, end time from work, after this treatment, you just use two periods,
2, if he played only once, that this must according to whether to leave or business trip in the afternoon to into the corresponding point in time,
A: leave shall be calculated in advance and ask for leave, don't calculate attendance
3, overtime beginning or the end of the time could be with normal time from work or work to,
A: to determine the end time from work, can spin off to work overtime, can use the option processing,
4, overtime will add to the next day,
A: overtime shall be carried out in accordance with the zero point segmentation, count the day before,
5, the company is size weeks, 6 days a week, five days a week,
A: increase the option, the algorithm on just calculate an extra day,
6, under normal circumstances is a day off on Sunday, if meet with national holiday adjustment, may appear abnormal,
A: national holiday to separate Settings, give priority to holidays, vacations, business trips, all these are the contents of the abnormal attendance,
7, some department USES the method of double confirmation between single to work overtime to decided whether to work overtime, the other part is not write a single overtime, only according to the actual clock time,
A: here to have A standard or set, no matter what kind of work overtime must be in the form of conditional, such as: how long after calculate overtime work? You can use the option for processing,

Other original records and final attendance calculation results is to separate, everyone, every day to have a check on work attendance record, record personnel ID, abnormal commuting time and attendance, etc.,

CodePudding user response:

Is a bit of a headache, but pay special attention to the key point is...
For the top

CodePudding user response:

reference 1st floor SmallHand response:
attendance at the core of the content is the algorithm of check on work attendance, attendance period set directly affect the efficiency of algorithm of check on work attendance,
,,,,,,,,,,,,,,,,,,,,,,,,,,,


A look is down, it's a pity that paste in my brain, have a lot of questions, but don't know where to ask about,

Don't know party is not convenient to process (a bit too much)

CodePudding user response:

refer to the second floor lyhoo163 response:
is a bit of a headache, but pay special attention to the key point is...
To help the top

The key point is to can't catch, don't know where to begin to calculate, don't know the way how to go step by step, and have no direction,

CodePudding user response:

Many parts can be manually set, such as when to have a holiday, you can't be a algorithm can simulate JiaRiBan living ideas,
You can set a scripting system to dynamically add rules, and can be manually adjusted,

# 1 say very good, is the most important rules of time, but less likely to clock in, so suggest priority matching and that of the normal to work in the morning and afternoon match completely, and then spread to nearby period,

CodePudding user response:

Work overtime late next morning don't go to work can also be used as a rule,

CodePudding user response:

I couldn't think of any effective method, can only put out on the day the employee records, then put these records to the variable respectively: on the day of the first, from the early morning before going to work recently, from the early after work recently, recently, from the early morning before going to work, from the early after work recently, recently, from the class in the afternoon shift away from the class in the afternoon after work recently, out class in the afternoon before coming off work recently, recently, from the afternoon class after work, late in the day,
Then according to the shift start time, and the possible abnormal judgment is put forward, the corresponding variable to the employees' attendance daily report,
If then
The else
If then
The else
If then
The else
.
.
.


Head all dizzy,,,,,,,,,,,,,,,,,,,,,,,

CodePudding user response:

 if dstCLog [' fCheckTime] The begin 
The X1: dstCLog=[' fCheckTime]
End
The else
The begin
If (dstCLog [' fCheckTime] & gt; T11) and (dstCLog [' fCheckTime] The begin
If C1="' then
C1:=dstCLog [' fCheckTime];
C2:=dstCLog [' fCheckTime];
End
The else
If (dstCLog [' fCheckTime] & gt;=(T2) and (dstCLog [' fCheckTime] <=(T3) then
The begin
If the X2="' then
The X2: dstCLog=[' fCheckTime];
The X3: dstCLog=[' fCheckTime];
End
The else
If (dstCLog [' fCheckTime] & gt; (T3) and dstCLog [' fCheckTime] The begin
If C3="' then
C3:=dstCLog [' fCheckTime];
C4:=dstCLog [' fCheckTime];
End
The else
If dstCLog [' fCheckTime] & gt;=T44 then
X4:=dstCLog [' fCheckTime]
end;
DstCLog. Next;
end;

CodePudding user response:

Not bad work overtime single free overtime system processing,
Such as 18:00 free after work overtime, 7:30 clock in a manner of clock time, not good.
Employees say: 7:30 clock out, but was called back immediately, continue to work overtime to 20:30 before,
If you don't have to work overtime, how to determine overtime hours, in the shortest time to calculate staff would revolt, calculate by the longest time, employees are too easy to fake, is the enterprise of a victim,
Have a list of work overtime by clock time confirmation at the same time, there is no this kind of question,
Overtime is between class period, if there is no overtime list, class section between the affected factors more overtime, I suggest that do not support free overtime system directly and is the most support according to clock in time automatically retrieve generated to confirm the overtime sheet,

Also without scheduling mechanism of automatic shift detection is also hard to avoid mistakes, to support and do was correct and scheduling mechanism of manual processing according to clock in time,
Individual's perception of attendance: nothing can be accomplished without norms or standards, if there is no path, is a way to give it out,
This time, just go back and modify the previous attendance software...

CodePudding user response:

The original poster can draw lessons from the mainstream of HR system suppliers, know more about several HR system process, in my opinion, the attendance at the core of the calculation are basically by large SQL stored procedures, do not prevent the effort, Delphi interface call is nothing more than some of the data control

CodePudding user response:

Some GGYY Settings, it is suggested that in the SP to,

CodePudding user response:

references to the tenth floor zjenfon response:
the original poster can draw lessons from the mainstream of HR system suppliers, know more about several HR system process, in my opinion, the attendance at the core of the calculation are basically by large SQL stored procedures, do not prevent the effort, Delphi interface call is nothing more than a few data control

Indeed to implement is more efficient in the process of storage,
For the first time to do the attendance record processing, first implemented in Delphi, a mature process in the past,

CodePudding user response:

Writing in the background process function, other according to the logic, good writing, such as getValidtime (Tady: datetime)... This sure to write a lot of process, function, when rules change so only change the background with respect to OK, front desk is some formula for rules of entry, calculate all the background, the front desk only statements present... A little idea really didn't attendance at first wrotenullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related