01.
function setstat($PST_CDE, $STAT_TYPE, $EMP_CODE, $STAT_ID) {
02.
$(
'#BOX_BUTTON'
).html(
""
);
03.
$.ajax({
04.
type:
'POST'
,
05.
contentType:
"application/json"
,
06.
url:
"Service1.svc/setstat"
,
07.
data: JSON.stringify({
08.
SETSTAT: { PST_CDE: $PST_CDE,EMP_CODE: $EMP_CODE,STAT_ID: $STAT_ID,STAT_TYPE:$STAT_TYPE }
09.
}),
10.
success: function (msg) {
11.
window.location.replace(
"Default.aspx?action=page/atsite.html"
);
12.
},
13.
error: function (xhr, status, error) {
14.
result = xhr.responseText;
15.
console(
'ERROR :'
+ result);
16.
}
17.
18.
});
19.
}