Guest User

Untitled

a guest
Mar 20th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. If (stat = "IN") Then
  2. lateMin = 0
  3. extMin = 0
  4.  
  5. If (timeHr < 7) Then
  6. lateMin += (timeHr - 7) * 60
  7. lateMin=
  8.  
  9. End If
  10.  
  11. If (timeHr <= 7) Then
  12. If (timeMin > 0) Then
  13. lateMin += (timeMin)
  14. End If
  15. End If
  16. ElseIf (stat = "OUT") Then
  17. If (timeHr > 17) Then
  18. extMin += (timeHr - 17) * 60
  19. End If
  20.  
  21. If (timeHr >= 17) Then
  22. If (timeMin >= 15) Then
  23. extMin += (timeMin)
  24. End If
  25. End If
  26.  
  27.  
  28. totalMins += (480 - lateMin) + (extMin)
  29.  
  30. End If
  31. Loop
  32. Else
  33. MsgBox("No Records Found!", MsgBoxStyle.Information, "Search")
  34. End If
  35. dr.Dispose()
  36.  
  37. TextBox4.Text = Math.Floor(totalMins / 60) & ":" & (totalMins Mod 60)
  38.  
  39. dim InTime as DateTime
  40. dim TimeDiff as TimeSpan
  41.  
  42. If (stat = "IN") Then
  43. InTime = DateTime.Now
  44. TimeDiff = new TimeSpan
  45. elseif (stat = "OUT")
  46. TimeDiff = DateTime.Now - InTime
  47. end if
  48.  
  49. If TimeDiff.Hours > 8 then
  50. ....
  51. Else
  52. ...
  53. End if
Add Comment
Please, Sign In to add comment