<%@ language = "JavaScript" %>
<% /*
    $Revision$
    $Id$
    File:             cak_rapport.asp
    Description:      A deeplink call to set the periode of CAK export
    Parameters:       cak_periode

*/ %>
<%
JSON_Result = true;
%>
<!-- #include file="../Shared/common.inc" -->
<!-- #include file="../../appl/shared/json2.js" -->
<%
// update systeemtabel $SYSTEM_CAK: ALLEEN door geautoriseerde Administratie/Staf medewerkers!
var autfunction = "WEB_USRRAP";
var authparams = user.checkAutorisation(autfunction);

  var cak_periode = getQParam("cak_periode");
  var message = "U heeft periode " + safe.html(cak_periode) + " gezet";
  if (cak_periode != "")
  {
    sql = " UPDATE fac_usrdata "
        + "    SET fac_usrdata_omschr =" + safe.quoted_sql(cak_periode)
        + "  WHERE fac_usrdata_key = 47"

    Oracle.Execute(sql);
  }

  result = { success : true, message : message }

  Response.Write(JSON.stringify(result));
%>
