46 lines
948 B
Plaintext
46 lines
948 B
Plaintext
<%@language = "javascript" %>
|
|
<% /*
|
|
$Revision$
|
|
$Id$
|
|
|
|
Voer een verhuisscenario door.
|
|
*/ %>
|
|
|
|
<%
|
|
var JSON_Result = true;
|
|
%>
|
|
|
|
<!-- #include file="../Shared/common.inc" -->
|
|
<!-- #include file="prj.inc" -->
|
|
|
|
<%
|
|
protectRequest.validateToken();
|
|
var prj_key = getFParamInt("prj_key");
|
|
var result = { message: "", success: false};
|
|
|
|
// Geen autfunction bepaald. Je komt bij PRJ niet binnen met een bepaalde rol (urole).
|
|
var authparamsPRJBOF = user.checkAutorisation("WEB_PRJBOF", true);
|
|
|
|
if (authparamsPRJBOF)
|
|
{
|
|
var sql = "BEGIN prj.prj_commit_scenario (" + prj_key + "); END;"
|
|
try
|
|
{
|
|
Oracle.Execute(sql);
|
|
result.message = L("lcl_prj_commitDone");
|
|
result.success = true;
|
|
}
|
|
catch(e1)
|
|
{
|
|
result.message = L("lcl_prj_commitFailed") + ":\n" + e1.description;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
result.message = L("lcl_no_auth");
|
|
}
|
|
|
|
Response.Write(JSON.stringify(result));
|
|
%>
|
|
<% ASPPAGE_END(); %>
|