| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- function data_get_attendanceschedulesetting( id ) {
- var query_url = '../jaxrs/attendanceschedulesetting/' + id;
- //如果未输入ID,那么就查询所有的应用信息
- if( id == null || id == undefined || id == "" ){
- query_url = '../jaxrs/attendanceschedulesetting/list/all';
- }
- $.ajax({
- type : 'get',
- dataType : 'json',
- contentType : 'application/json; charset=utf-8',
- url : query_url,
- xhrFields : {
- 'withCredentials' : true
- },
- crossDomain : true
- }).done(function(json) {
- $('#result').html( JSON.stringify( json, null, 4) );
- }).fail(function(json) {
- failure(json);
- });
- }
- function data_post_attendanceschedulesetting( id ) {
- $.ajax({
- type : 'post',
- dataType : 'json',
- contentType : 'application/json; charset=utf-8',
- url : '../jaxrs/attendanceschedulesetting' ,
- xhrFields : {
- 'withCredentials' : true
- },
- data : JSON.stringify($.parseJSON($('#content').val())),
- crossDomain : true
- }).done(function(json) {
- $('#result').html(JSON.stringify(json.data, null, 4));
- });
- }
- function data_delete_attendanceschedulesetting( id ) {
- if( id == null || id == undefined || id == "" ){
- alert("请输入ID");
- return false;
- }
- $.ajax({
- type : 'delete',
- dataType : 'json',
- contentType : 'application/json; charset=utf-8',
- url : '../jaxrs/attendanceschedulesetting/' + id ,
- xhrFields : {
- 'withCredentials' : true
- },
- crossDomain : true
- }).done(function(json) {
- $('#result').html(JSON.stringify(json.data, null, 4));
- });
- }
|