41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
<%@ language = "JavaScript" %>
|
|
<% /*
|
|
$Revision$
|
|
$Id$
|
|
File: cak_rapport.asp
|
|
Description: A deeplink call to approve/reject HR-calls.
|
|
Parameters:
|
|
|
|
Context: Client specific file to handle actions on (HR-)calls as initiated
|
|
from a report only accessible for UNCO/Staf and PO employees.
|
|
Note:
|
|
*/ %>
|
|
<%
|
|
DOCTYPE_Disable = 1;
|
|
%>
|
|
<!--#include file="../../appl/Shared/common.inc"-->
|
|
<!-- #include file="../../appl/Shared/json2.js" -->
|
|
<!-- #include file="../../appl/Shared/funcodes.inc" -->
|
|
<%
|
|
|
|
var cak_periode = getQParam("cak_periode");
|
|
var message = "U heeft periode " + cak_periode + " gezet";
|
|
if (cak_periode != "") {
|
|
// update systeemtabel $SYSTEM_CAK: ALLEEN door geautoriseerde Administratie/Staf medewerkers!
|
|
if (func_enabled["WEB_USRRAP"]) {
|
|
sql = " UPDATE fac_usrdata "
|
|
+ " SET fac_usrdata_omschr =" + safe.quoted_sql(cak_periode)
|
|
+ " WHERE fac_usrdata_key = 47"
|
|
|
|
Oracle.Execute(sql);
|
|
}
|
|
else {
|
|
message = L("lcl_no_auth");
|
|
}
|
|
}
|
|
|
|
result = { success : true, message : message }
|
|
|
|
Response.Write(JSON.stringify(result));
|
|
%>
|