svn path=/Website/trunk/; revision=12

This commit is contained in:
Ruud Lipper
2009-10-05 11:48:00 +00:00
parent 5160958f4a
commit e878fef7fd
4 changed files with 62 additions and 53 deletions

View File

@@ -1,7 +1,7 @@
<%@language = "javascript" %>
<%
/* $Revision: 1 $
$Modtime: 30-09-09 16:05 $
/* $Revision: 2 $
$Modtime: 10/05/09 1:37p $
File: bez_show_afspraak.asp
Status: 10% (new style)
@@ -34,11 +34,15 @@ FCLTHeader.Requires({plugins:["suggest","jQuery", "kenmerk"], js: ["expand_frame
var onrgoedlvl = "'G'";
var read = false;
autfunction = "WEB_ALGMAN";
var authparams = user.checkAutorisation(autfunction);
if (bld_key > 0)
{
var read = true;
sql = " select * "
+ " FROM ALG_GEBOUW "
+ " WHERE alg_gebouw_key = " + bld_key;
@@ -111,7 +115,7 @@ BLOCK_START("algLoc1", "");
gebouwkey: bld_key,
startlevel: 2, //Locatie
eindlevel: 2, // Locatie
readonly: false }); %>
readonly: read }); %>
<tr>
<td class="label"><label><%=lcl_estate_gebouw_man_name%>:</label></td>

View File

@@ -1,7 +1,7 @@
<%@language = "javascript" %>
<% /*
$Revision: 1 $
$Modtime: 30-09-09 9:44 $
$Revision: 2 $
$Modtime: 10/05/09 1:44p $
SUBMIT-form
*/ %>
@@ -17,25 +17,43 @@
<!-- #include file="../Shared/date_sql.inc" -->
<% FCLTHeader.Requires({ plugins:["jQuery"],
js: ["FcltMgr.js"]
js: []
}) %>
<%
var reg_key = getQParamInt( "regio_key" );
var bld_key = getQParamInt( "bld_key" );;
var fields = [ { dbs: "alg_regio_omschrijving", typ: "varchar", frm: "reg_oms" }];
var fields = [ { dbs: "alg_locatie_key", typ: "key", frm: "locatiekey" },
{ dbs: "ALG_SRTGEBOUW_KEY", typ: "key", frm: "bld_srtkey" },
{ dbs: "ALG_GEBOUW_ACADKEY ", typ: "varchar", frm: "bld_acadkey" },
{ dbs: "ALG_GEBOUW_NAAM", typ: "varchar", frm: "bld_naam" },
{ dbs: "ALG_GEBOUW_CODE", typ: "varchar", frm: "bld_code" },
{ dbs: "ALG_GEBOUW_OMSCHRIJVING", typ: "varchar", frm: "bld_descr" },
{ dbs: "ALG_GEBOUW_GETEKEND", typ: "date", frm: "bld_teken" },
{ dbs: "ALG_GEBOUW_BRUTO_VLOEROPP", typ: "number", frm: "bld_opp" },
{ dbs: "ALG_GEBOUW_OMTREK", typ: "number", frm: "bld_omtrek" },
{ dbs: "ALG_GEBOUW_INHOUD", typ: "number", frm: "bld_inhoud" },
{ dbs: "ALG_GEBOUW_OPMERKING", typ: "varchar", frm: "bld_opmerk" },
{ dbs: "MLD_ADRES_KEY", typ: "key", frm: "mld_adres" },
{ dbs: "PRS_KOSTENPLAATS_KEY", typ: "key", frm: "prs_kstpl" },
{ dbs: "ALG_GEBOUW_ORDERNR", typ: "varchar", frm: "bld_ordrnr" },
{ dbs: "ALG_GEBOUW_DWGX", typ: "number", frm: "bld_dwgx" },
{ dbs: "ALG_GEBOUW_DWGY", typ: "number", frm: "bld_dwgy" },
{ dbs: "ALG_GEBOUW_X", typ: "number", frm: "bld_x" },
{ dbs: "ALG_GEBOUW_Y", typ: "number", frm: "bld_y" },
{ dbs: "ALG_GEBOUW_BEZ", typ: "number", frm: "bld_bez" }];
if (reg_key > 0)
if (bld_key > 0)
{
sql = buildUpdate("alg_regio", fields)
+ " alg_regio_key = " + reg_key;
sql = buildUpdate("alg_gebouw", fields)
+ " alg_gebouw_key = " + bld_key;
oRs = Oracle.Execute(sql);
}
else
{
fields.push({ dbs: "alg_regio_key", typ: "key", seq: "alg_s_alg_regio_key" });
var regIns = buildInsert("alg_regio", fields);
var reg_key = regIns.sequences["alg_regio_key"];
fields.push({ dbs: "alg_gebouw_key", typ: "key", seq: "alg_s_alg_onroerendgoed_keys" });
var regIns = buildInsert("alg_gebouw", fields);
var bld_key = regIns.sequences["alg_gebouw_key"];
sql = regIns.sql;
oRs = Oracle.Execute( sql );
@@ -46,7 +64,7 @@ else
<head>
<% FCLTHeader.Generate() %>
<script>
$(document).ready(function () { FcltMgr.closeDetail(window, { regio_key: <%=reg_key%> }); } );
$(document).ready(function () { FcltMgr.closeDetail(window, { bld_key: <%=bld_key%> }); } );
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<%@language = "javascript" %>
<%
/* $Revision: 1 $
$Modtime: 30-09-09 16:01 $
/* $Revision: 2 $
$Modtime: 10/05/09 1:52p $
File: bez_show_afspraak.asp
Status: 10% (new style)
@@ -27,8 +27,6 @@
<%
FCLTHeader.Requires({plugins:["suggest","jQuery", "kenmerk"], js: ["expand_frame.js", "date.js", "FcltMgr.js"]})
// AUTORISATIEPARAMETERS
var urole = "1";
var ter_key = parseInt(getQParam("ter_key", "-1"), 10);
var onrgoedlvl = "'T'";
@@ -88,7 +86,7 @@ if (ter_key > 0)
<body id="editbody">
<div id="edit>
<form name="u2" action="alg_edit_terreinsector_save.asp?urole=bo&bld_key=<%=ter_key%>" method=post onSubmit="alg_submit();">
<form name="u2" action="alg_edit_terreinsector_save.asp?bld_key=<%=ter_key%>" method=post onSubmit="alg_submit();">
<%
var buttons = [ {title: lcl_submit, action:"alg_submit()", icon: "opslaan.png", id:"bsubmit_alg_distrcit" },
{title: lcl_cancel, action:"alg_cancel()", icon: "undo.png", id:"bcancel_alg_district" } ];

View File

@@ -1,8 +1,8 @@
<%@language = "javascript" %>
<% // testing: bes_key=1251054
/* $Revision: 1 $
$Modtime: 22-09-09 13:45 $
/* $Revision: 2 $
$Modtime: 10/05/09 1:33p $
File: bes_edit.asp
Status: 40% (new style)
@@ -14,7 +14,6 @@
Note:
*/ %>
<% Response.Expires = -1; %>
<!--#include file="../../cust/install.inc" -->
<!--#include file="../Shared/funcodes.inc" -->
@@ -23,33 +22,12 @@
<!--#include file="../Shared/algautlevel.inc" -->
<!--#include file="../Shared/cmenuFn.inc"-->
<%
FCLTHeader.Requires({plugins:["suggest","jQuery"], js: ["expand_frame.js", "FCLTMgr.js", "jquery-ui.js"]})
FCLTHeader.Requires({plugins:["suggest","jQuery"], js: ["expand_frame.js", "jquery-ui.js"]})
/* AUTORISATIEPARAMETERS
var urole = getQParam("urole");
// Om nog even compatible te blijven zodat alles nog even blijft werken. Moet er straks uit, natuurlijk.
var fronto = urole == "fo";
var backo = urole == "bo";
var minfo = urole == "mi";
var frontend = (!fronto & !backo & !minfo);
// de melding waar het over gaat, kan leeg zijn voor nieuwe, maar dat mag niet met bo of mi
var autfunction = '';
if (fronto)
autfunction = 'WEB_BESFOF';
else if (backo)
autfunction = 'WEB_BESBOF';
else
autfunction = 'WEB_BESUSE'; */
var autfunction = "WEB_ALGMAN";
var authparams = user.checkAutorisation(autfunction); //Wat weet ik dan nou van disciplines???
var bld_key = getQParamInt("key", -1);
// OVERIGE PARAMETERS
// dit lijkt mij de enige gehele readonlyverklaring, de rest is localer
var readonly = !(authparams.PRSwritelevel< 9 || authparams.ALGwritelevel < 9);
@@ -61,12 +39,23 @@ FCLTHeader.Requires({plugins:["suggest","jQuery"], js: ["expand_frame.js", "FCLT
<%
FCLTHeader.Generate();
%>
<%
//======================================
%>
<script type="text/javascript" >
function algClose(params)
{
<% if (bld_key == -1)
{ %>
if (params.cancel)
{
FcltMgr.closeDetail(window, params );
return true;
}
FcltMgr.setTitle("<%=lcl_building%> " + params.bld_key, {hot:false});
window.location.href = "alg_gebouw.asp?verynew=1&key=" + params.bld_key;
<% } else { // Bestaande melding bewerkt, switch naar show-mode %>
$("#algFrame")[0].src = "alg_show_gebouw.asp?bld_key=<%=bld_key%>";
<% } %>
}
</script>
</head>
<body id="editbody">
@@ -75,9 +64,9 @@ if (bld_key == -1)
var page="alg_edit_gebouw.asp"; // Maak een nieuw
else
var page="alg_show_gebouw.asp";
page += "?urole=bo&bld_key="+bld_key;
page += "?bld_key="+bld_key;
IFRAMER("algFrame", page, { title: lcl_alg_district_frame,
IFRAMER("algFrame", page, { title: lcl_alg_gebouw_frame,
initHeight: "450px",
FcltClose: "algClose" } );