fac_usrrap_col.asp gaat al lang generiek via scaffolding
overbodige include weg svn path=/Website/trunk/; revision=26030
This commit is contained in:
@@ -12,7 +12,6 @@
|
||||
%>
|
||||
<!-- #include file="../scf/scaffolding.inc" -->
|
||||
<!-- #include file="../api2/model_reports.inc" -->
|
||||
<!-- #include file="../api2/model_reportsx.inc" -->
|
||||
<!-- #include file="../Shared/xml_converter.inc" -->
|
||||
<%
|
||||
var usrrap_key = getQParamInt("usrrap_key", -1);
|
||||
|
||||
@@ -1,87 +0,0 @@
|
||||
<%@language = "javascript" %>
|
||||
<%
|
||||
/* $Revision$
|
||||
$Id$
|
||||
|
||||
File: fac_usrrap_col.asp
|
||||
Status:
|
||||
Description: Bewerkscherm voor rapport kolom
|
||||
|
||||
Parameters:
|
||||
|
||||
Context: Modal vanuiot fac_showusrrapx.asp
|
||||
Note: We kennen alleen bewerken, niet toevoegen of weghalen
|
||||
|
||||
*/ %>
|
||||
<!--#include file="../Shared/common.inc" -->
|
||||
<!--#include file="../Shared/iface.inc" -->
|
||||
<!-- #include file="../api2/api2.inc" -->
|
||||
<!-- #include file="../api2/model_reportsx.inc" -->
|
||||
|
||||
<%
|
||||
FCLTHeader.Requires({plugins:["suggest","jQuery"], js: ["jquery-ui.js"]})
|
||||
|
||||
var autfunction = "WEB_PRSSYS";
|
||||
var authparams = user.checkAutorisation(autfunction);
|
||||
|
||||
var submitting = getQParamInt("submit", 0) == 1;
|
||||
var col_key = getQParamInt("col_key");
|
||||
|
||||
var col_params = { filter: { id: col_key } };
|
||||
var col_data = new model_reportcolumns().REST_GET(col_params)[0];
|
||||
var mdl = model_reportcolumns.fields; // Handiger
|
||||
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<%
|
||||
FCLTHeader.Generate();
|
||||
|
||||
if (submitting)
|
||||
{
|
||||
protectRequest.validateToken();
|
||||
|
||||
var formfields = [ { name: "caption", frm: "caption" },
|
||||
{ name: "datatype", frm: "datatype" }
|
||||
];
|
||||
var params = { filter: { "id": col_key } };
|
||||
var jsondata = api2.form2JSONdata(model_reportcolumns, params, formfields);
|
||||
var col_array = model_reportcolumns.REST_PUT(params, jsondata, params.filter.id);
|
||||
var warning = col_array.warning;
|
||||
var result = { col_key: col_key,
|
||||
warning: warning,
|
||||
keepForm: !!warning,
|
||||
success: true };
|
||||
//Response.Write(JSON.stringify(result));
|
||||
%>
|
||||
<script type="text/javascript">
|
||||
FcltMgr.closeDetail( window, { success: true });
|
||||
</script>
|
||||
<%
|
||||
Response.End;
|
||||
}
|
||||
%>
|
||||
</script>
|
||||
</head>
|
||||
<body class="modal" id="colsbody">
|
||||
<form id="lclform" name="lclform" action="fac_usrrap_col.asp?submit=1&col_key=<%=col_key%>" method="post">
|
||||
<%
|
||||
BLOCK_START("mldReject", col_data.columnname);
|
||||
|
||||
ROFIELDTR("fld", mdl.columnname.label, col_data.columnname);
|
||||
RWFIELDTR("caption", "fld", mdl.caption.label, col_data.caption);
|
||||
RWFIELDTR("datatype", "fld", mdl.datatype.label , col_data.datatype);
|
||||
RWFIELDTR("filter", "fld", mdl.filter.label, col_data.filter);
|
||||
RWCHECKBOXTR("total", "fld", mdl.total.label, col_data.total);
|
||||
|
||||
BLOCK_END();
|
||||
|
||||
var buttons = [ {title: L("lcl_submit"), icon: "opslaan.png", action: "document.forms.lclform.submit()" },
|
||||
{title: L("lcl_cancel"), icon: "undo.png", action: "FcltMgr.closeDetail(window, { cancel: true } )" }];
|
||||
CreateButtons(buttons)
|
||||
IFACE.FORM_END();
|
||||
%>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -62,12 +62,6 @@ function scaffolding_show(model, scf_params)
|
||||
"json");
|
||||
}
|
||||
}
|
||||
function col_edit(row)
|
||||
{
|
||||
var col_key = row.getAttribute("ROWKEY");
|
||||
var url = "../fac/fac_usrrap_col.asp?col_key=" + col_key;
|
||||
FcltMgr.openModalDetail(url, L("lcl_fac_usrrap_cols"), {callback: FcltMgr.reload } );
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body id="showbody">
|
||||
|
||||
Reference in New Issue
Block a user