diversen nav opmerkingen
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
|
||||
dbo.employeehoursDataService = {
|
||||
|
||||
getEmployeehours: function ( $month, $year, callback ) {
|
||||
$.getJSON( 'index.php/projects/employeeHoursController/getEmployeehours/' + $month + '/' + $year )
|
||||
getEmployeehours: function ( $month, $year, employeeID, callback ) {
|
||||
$.getJSON( 'index.php/projects/employeeHoursController/getEmployeehours/' + $month + '/' + $year + '/' + employeeID )
|
||||
.done( function ( data ) {
|
||||
callback( data );
|
||||
} );
|
||||
|
||||
@@ -21,11 +21,25 @@ dbo.userDataService = {
|
||||
} );
|
||||
},
|
||||
|
||||
getUniqueProjectEmployees:function(callback){
|
||||
$.post('index.php/beheer/usersController/getUniqueprojectEmployees', 'json')
|
||||
.done(function(data){
|
||||
callback(data);
|
||||
});
|
||||
getCurrentUser: function ( callback ) {
|
||||
$.getJSON( 'index.php/beheer/usersController/getCurrentUser' )
|
||||
.done( function ( data ) {
|
||||
callback( data );
|
||||
} );
|
||||
},
|
||||
|
||||
getUserWithprojects: function ( callback ) {
|
||||
$.getJSON( 'index.php/beheer/usersController/getUserWithprojects' )
|
||||
.done( function ( data ) {
|
||||
callback( data );
|
||||
} );
|
||||
},
|
||||
|
||||
getUniqueProjectEmployees: function ( callback ) {
|
||||
$.post( 'index.php/beheer/usersController/getUniqueprojectEmployees', 'json' )
|
||||
.done( function ( data ) {
|
||||
callback( data );
|
||||
} );
|
||||
},
|
||||
|
||||
checkUsername: function ( username, callback ) {
|
||||
@@ -44,11 +58,11 @@ dbo.userDataService = {
|
||||
} );
|
||||
},
|
||||
|
||||
archiveUser: function(userID, status, callback){
|
||||
$.get('index.php/beheer/usersController/archiveUser/' + userID + '/' + status)
|
||||
.done(function(){
|
||||
archiveUser: function ( userID, status, callback ) {
|
||||
$.get( 'index.php/beheer/usersController/archiveUser/' + userID + '/' + status )
|
||||
.done( function () {
|
||||
callback();
|
||||
});
|
||||
} );
|
||||
},
|
||||
|
||||
removeUser: function ( userID, callback ) {
|
||||
@@ -57,6 +71,8 @@ dbo.userDataService = {
|
||||
callback( data );
|
||||
} );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
dbo.userDataService.getCurrentUser(function(data){
|
||||
dbo.currentUser = data;
|
||||
});
|
||||
Reference in New Issue
Block a user