Click here to Skip to main content
15,868,164 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
SQL
For employee actor, I need to do this functionality,

How to do this in Angulajs.


[1] Employee logs in night shift at 9 pm and logs out in morning 6am.
[2] Your system should consider as 1 day.
[3] All other shifts are in normal attendance login and logout.


I have created one form


XML
<div class="container">
<form class="well">
<div>
<br><br>
EMPID:<input ng-model="login.id"/>
<button class="btn btn-success">Search</button><br/>
<br>
EMPNAME:<input ng-model="login.pass"/><br/>
<br>

Current time is:   <span my-current-time="format"></span>
<br>
<br>
<br>
<button class="btn btn-warning" ng-click="checkIn()">CheckIn</button>
<button class="btn btn-success" ng-click="checkOut()">CheckOut</button>
<button class="btn btn-default" ng-click="clear()">Clear</button>
</div>

</form>
</div>


I need to workout on checkIn and ChecuOut button to save the system date and time
whenever employee click on checkIn and checkout.
Posted
Updated 18-Apr-15 22:48pm
v2
Comments
Member 11619095 19-Apr-15 4:49am    
check it now.. ^_^
Abhinav S 19-Apr-15 4:07am    
Try something and post your questions here.
Member 11619095 19-Apr-15 4:48am    
Done please check it.
John C Rayan 27-Apr-15 8:55am    
In your controller , define checkIn() and checkout() functions and save system date.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900