Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

Pa help sa algo sa pag compute ng attendance.. :)

xloverboyx

Apprentice
Advanced Member
Messages
89
Reaction score
0
Points
26
Sino jan yung may algorithm sa pag compute ng Attendance based sa schedule na naka setup per employee. Nakakalito kasi. Given this scenario for example:

Schedule of Employee:
TimeInAM=8:00 AM
TimeOutAM=12:00 PM
TimeInPM=1:00 PM
TimeOutPM=5:00 PM

LogIns of Employee:
AM In=7:55AM
AM Out=12:04 PM
PM In = 12:57 PM
PM Out = 5:10 PM

Ang gagawin is dapat ma-capture ng Attendance program kung saan na belong ang mga LogIns, kung In or Out ba sa AM, or di kaya In or Out sa PM.

Any suggestions po para madaling ma calculate to. Any language lng po, ok lng din po kung nka pseudo code. Gusto ko lng malaman ang logic sa pag compute neto.

Aside from this marami pang mga conditions na isisingit like yung late at undertimes, yung multiple logins, pero yung basic lng muna, sana ma tulungan nyo ako.. Hehe.. Matsalam!
 
Schedule of Employee:
TimeInAM=8:00 AM
TimeOutAM=12:00 PM
TimeInPM=1:00 PM
TimeOutPM=5:00 PM

LogIns of Employee:
AM In=7:55AM
AM Out=12:04 PM
PM In = 12:57 PM
PM Out = 5:10 PM

maraming ways TS

start
Check if "AM" or "PM"
then Capture whether it is "AM" or "PM"
Check if employee has "TimeIn"
if true
then "TimeOut" na gagawin niya
else //meaning wala pa siyang "TimeIn"
then "TimeIn" gagawin niya
end

or

start

let clock = ((currentClock == 'AM') ? 'AM' : 'PM') //CurrentClock para kunin mo kung yung currentTime ba is 'AM' or 'PM'
Check if employee has "TimeIn"
clock // clock will be 'AM' if the value is true and 'PM' if the value is false
"TimeOut"
else
clock // clock will be 'AM' if the value is true and 'PM' if the value is false
"TimeIn"

end

I hope it helps :dance:
 
Sino jan yung may algorithm sa pag compute ng Attendance based sa schedule na naka setup per employee. Nakakalito kasi. Given this scenario for example:

Schedule of Employee:
TimeInAM=8:00 AM
TimeOutAM=12:00 PM
TimeInPM=1:00 PM
TimeOutPM=5:00 PM

LogIns of Employee:
AM In=7:55AM
AM Out=12:04 PM
PM In = 12:57 PM
PM Out = 5:10 PM

Ang gagawin is dapat ma-capture ng Attendance program kung saan na belong ang mga LogIns, kung In or Out ba sa AM, or di kaya In or Out sa PM.

Any suggestions po para madaling ma calculate to. Any language lng po, ok lng din po kung nka pseudo code. Gusto ko lng malaman ang logic sa pag compute neto.

Aside from this marami pang mga conditions na isisingit like yung late at undertimes, yung multiple logins, pero yung basic lng muna, sana ma tulungan nyo ako.. Hehe.. Matsalam!

Very Basic TS.

Wag ka gumamit ng Date Time,
Gawin mo syang numeric para macompute mo. Pag ganyan logs mo TS dami mong problema d mo magagawa yung sa Late and Undertime kasi how about nagnight shift sya e di next day ung out nya.
Column mo si meron kang Date na datetime, then logs un ung halimbawa
Date:04/18/2018
Logs:7.55,12.04,12.57,17.10
 
Back
Top Bottom