projecten

This commit is contained in:
2018-01-23 08:45:44 +01:00
parent 970aa53971
commit fb19c401fd
36 changed files with 1402 additions and 184 deletions
@@ -8,7 +8,7 @@
dbo.offerDataService = {
getAllOffers: function ( projectID, archive = 'F', callback ) {
$.getJSON( 'index.php/projects/offersController/getAllOffers/' + archive )
$.getJSON( 'index.php/projects/offersController/getAllOffers/' + projectID + '/' + archive )
.done( function ( data ) {
callback( data );
} );
@@ -29,15 +29,15 @@ dbo.offerDataService = {
} );
},
archiveOffer: function ( userID, status, callback ) {
$.get( 'index.php/projects/offersController/archiveOffer/' + userID + '/' + status )
archiveOffer: function ( offerID, status, callback ) {
$.get( 'index.php/projects/offersController/archiveOffer/' + offerID + '/' + status )
.done( function () {
callback();
} );
},
removeOffer: function ( userID, callback ) {
$.getJSON( 'index.php/projects/offersController/removeOffer/' + userID )
removeOffer: function ( offerID, callback ) {
$.getJSON( 'index.php/projects/offersController/removeOffer/' + offerID )
.done( function ( data ) {
callback( data );
} );
@@ -21,6 +21,13 @@ dbo.projectDataService = {
} );
},
getpayMents: function ( projectID, callback ) {
$.getJSON( 'index.php/projects/projectsController/getP ayments/' + projectID )
.done( function ( data ) {
callback( data );
} );
},
addProject: function ( callback ) {
$.getJSON( 'index.php/projects/projectsController/addProject', function ( data ) {
callback( data );
@@ -33,15 +40,32 @@ dbo.projectDataService = {
} );
},
addProjectEmployee: function ( projectID, callback ) {
$.getJSON( 'index.php/projects/projectsController/addProjectemployee/' + projectID, function ( data ) {
callback( data );
addProjectemployee: function ( projectID, callback ) {
$.get( 'index.php/projects/projectsController/addProjectemployee/' + projectID, function () {
callback();
} );
},
saveProject: function ( submitDATA, callback ) {
$.post( 'index.php/projects/projectsController/saveProject', submitDATA, function () {
}, 'json' )
saveProject: function ( projectID, submitDATA, callback ) {
$.post( 'index.php/projects/projectsController/saveProject', submitDATA, 'json' )
.done( function ( data ) {
callback( data );
} );
},
saveProjectemployee: function ( submitDATA ) {
$.post( 'index.php/projects/projectsController/saveProjectemployee', submitDATA );
},
savePayment: function ( submitDATA, callback ) {
$.post( 'index.php/projects/projectsController/savePayment', submitDATA )
.done( function ( data ) {
callback( data );
} );
},
saveProjecthour: function ( submitDATA, callback ) {
$.post( 'index.php/projects/projectsController/saveProjecthour', submitDATA )
.done( function ( data ) {
callback( data );
} );
@@ -54,8 +78,29 @@ dbo.projectDataService = {
} );
},
removeProject: function ( userID, callback ) {
$.getJSON( 'index.php/projects/projectsController/removeProject/' + userID )
removeProject: function ( projectID, callback ) {
$.getJSON( 'index.php/projects/projectsController/removeProject/' + projectID )
.done( function ( data ) {
callback( data );
} );
},
removeProjectemployee: function ( projectemployeeID, callback ) {
$.getJSON( 'index.php/projects/projectsController/removeProjectemployee/' + projectemployeeID )
.done( function ( data ) {
callback( data );
} );
},
removePayment: function ( paymentID, callback ) {
$.getJSON( 'index.php/projects/projectsController/removePayment/' + paymentID )
.done( function ( data ) {
callback( data );
} );
},
removeProjecthour: function ( projecthourID, callback ) {
$.getJSON( 'index.php/projects/projectsController/removeProjecthour/' + projecthourID )
.done( function ( data ) {
callback( data );
} );