29 lines
663 B
JavaScript
29 lines
663 B
JavaScript
/**
|
|
* Created by Pensare Software.
|
|
* User: Theo Weijmer
|
|
* Date: 14/02/2018
|
|
* Time: 11:14
|
|
*/
|
|
|
|
|
|
dbo.reportsDataService = {
|
|
|
|
getUsedYears: function ( callback ) {
|
|
$.getJSON( 'index.php/reports/reportsdefaultcontroller/getUsedYears' )
|
|
.done( function ( data ) {
|
|
callback( data );
|
|
} );
|
|
},
|
|
|
|
getEmployeeHours: function ( employeeID, year, callback ) {
|
|
$.getJSON( 'index.php/reports/EmployeeHoursController/getMonthlyEmployeeHoursPerProject/' + employeeID + '/' + year )
|
|
.done( function ( data ) {
|
|
callback( data );
|
|
} )
|
|
}
|
|
|
|
|
|
|
|
// getHoursPerEmployee
|
|
|
|
} |