diuversen opmerkingen 19062018

This commit is contained in:
2018-07-14 16:56:42 +02:00
parent 124be78a85
commit cecbfd83fb
20 changed files with 266 additions and 67 deletions
@@ -0,0 +1,20 @@
/**
* Created by Pensare Software.
* User: Theo Weijmer
* Date: 20/06/2018
* Time: 14:15
*/
dbo.authorisationDataService = {
getRoleAuthorisations: function ( callback ) {
$.getJSON( 'index.php/beheer/AuthorisationController/getRoleAuthorisations' )
.done( function ( data ) {
callback( data );
} );
}
}
@@ -8,14 +8,14 @@
dbo.employeeTargetDataService = {
getEmployeeTargets: function ( employeeID, callback ) {
$.getJSON( 'index.php/beheer/employeetargetController/getEmployeeTargets/' + employeeID )
$.getJSON( 'index.php/beheer/employeeTargetController/getEmployeeTargets/' + employeeID )
.done( function ( data ) {
callback( data );
} );
},
saveEmployeeTarget: function ( submitDATA, callback ) {
$.post( 'index.php/beheer/employeetargetController/saveEmployeeTarget', submitDATA, function () {
$.post( 'index.php/beheer/employeeTargetController/saveEmployeeTarget', submitDATA, function () {
}, 'json' )
.done( function ( data ) {
callback( data );
@@ -27,6 +27,13 @@ dbo.reportsDataService = {
.done( function ( data ) {
callback( data );
} );
},
saveCurrentFinnacialYear: function(projectID, amount, callback){
$.post( 'index.php/reports/reportsController/saveCurrentFinnacialYear/' + projectID, {amount:amount} )
.done( function ( data ) {
callback( data );
}, 'json' );
}
}