FCLT#75530 Ook voor ruimte.asp nu een versimpelde weergave voor QR-codes; alleen de knoppen. De QR code gegenereerd bij alg_ruimtes gaat naar de entiteit, alwaar alle acties toegestaan worden (indien geautoriseerd)
svn path=/Website/trunk/; revision=60613
This commit is contained in:
@@ -55,7 +55,7 @@ __Log("== Entering shorturl.asp ==");
|
||||
'verdieping': { gui: 'appl/alg/alg_verdieping.asp?key='},
|
||||
'xreservering': { gui: 'appl/res/res_reservering.asp?rsv_ruimte_key='},
|
||||
/* 'Genereer QR code's; (default acties en/of qrc=1) */
|
||||
'alg_ruimte': { gui: 'appl/alg/alg_ruimte.asp?key=', mob: 'appl/pda/reserveringen.asp?qrc=1&alg_ruimte_key=' },
|
||||
'alg_ruimte': { gui: 'appl/alg/alg_ruimte.asp?key=', mob: 'appl/pda/ruimte.asp?qrc=1&ruimte_key=' },
|
||||
'res_ruimte': { gui: 'appl/mgt/res_ruimte.asp?id=', mob: 'appl/pda/reserveringen.asp?qrc=1&res_ruimte_key=' },
|
||||
'res_object': { gui: 'appl/mgt/res_deel.asp?id=', mob: 'appl/pda/reserveringen.asp?qrc=1&res_deel_key=' },
|
||||
'ins_object': { gui: 'appl/ins/ins_deel.asp?ins_key=', mob: 'appl/pda/ins_deel.asp?qrc=1&ins_key=' }
|
||||
|
||||
@@ -25,14 +25,32 @@ var qrc = getQParamInt("qrc", 0) != 0;
|
||||
var tiny = getQParamInt("tiny", 0) !=0;
|
||||
|
||||
var transitParam = buildTransitParam(["qrc", "tiny"]);
|
||||
var isResRuimte = false;
|
||||
|
||||
var sql = "SELECT aog.alg_gebouw_code || '-' || aog.alg_verdieping_code || '-' || aog.alg_ruimte_nr plaats "
|
||||
+ " FROM alg_v_onroerendgoed_gegevens aog"
|
||||
+ " WHERE aog.alg_ruimte_key = " + ruimte_key;
|
||||
var oRs = Oracle.Execute(sql);
|
||||
|
||||
var subject = oRs("plaats").value;
|
||||
oRs.Close();
|
||||
|
||||
var isResRuimte = false;
|
||||
var imagePath;
|
||||
sql = "SELECT ra.res_ruimte_key"
|
||||
+ " , rr.res_ruimte_image"
|
||||
+ " FROM res_alg_ruimte ra"
|
||||
+ " , res_ruimte rr"
|
||||
+ " WHERE rr.res_ruimte_key = ra.res_ruimte_key"
|
||||
+ " AND ra.res_alg_ruimte_verwijder IS NULL"
|
||||
+ " AND ra.alg_ruimte_key = " + ruimte_key;
|
||||
oRs = Oracle.Execute(sql);
|
||||
if (!oRs.eof) {
|
||||
isResRuimte = true;
|
||||
var res_ruimte_image = oRs("res_ruimte_image").Value;
|
||||
if (res_ruimte_image !== null) {
|
||||
imagePath = S("res_image_path") + res_ruimte_image;
|
||||
}
|
||||
}
|
||||
oRs.Close();
|
||||
|
||||
%>
|
||||
<html>
|
||||
@@ -41,10 +59,10 @@ var subject = oRs("plaats").value;
|
||||
</head>
|
||||
<body>
|
||||
<%
|
||||
PAGE_START();
|
||||
HEADER ({title: L("lcl_room")+ " " + oRs("plaats").value, back:!qrc, home:!qrc});
|
||||
PAGE_START({ "headerImage": imagePath });
|
||||
HEADER ({ title: L("lcl_room")+ " " + subject, back: !qrc, home: !qrc });
|
||||
CONTENT_START();
|
||||
|
||||
if (!qrc) {
|
||||
var sql = "SELECT r.alg_ruimte_key"
|
||||
+ " , r.alg_ruimte_nr"
|
||||
+ " , r.alg_ruimte_omschrijving"
|
||||
@@ -104,19 +122,14 @@ var subject = oRs("plaats").value;
|
||||
mobile: true
|
||||
});
|
||||
}
|
||||
|
||||
sql = "SELECT res_ruimte_key FROM res_alg_ruimte "
|
||||
+ " WHERE res_alg_ruimte_verwijder IS NULL"
|
||||
+ " AND alg_ruimte_key = " + ruimte_key;
|
||||
oRs = Oracle.Execute(sql);
|
||||
if (!oRs.eof) {
|
||||
isResRuimte = true;
|
||||
}
|
||||
} // \if (!qrc)
|
||||
|
||||
// Tel het aantal ruimte-meldingen (binnen mijn autorisatie) om tussen haakjes in de knop te tonen (prio 2)
|
||||
// Tel het aantal ruimte-objecten (binnen mijn autorisatie) om tussen haakjes in de knop te tonen (prio 2)
|
||||
|
||||
if (!qrc) { /* Knoppen iets meer ruimte */
|
||||
CONTROLGROUP_START();
|
||||
}
|
||||
if (isResRuimte) {
|
||||
BUTTON(L("lcl_mobile_reserveringen"), {linkid: "./reserveringen.asp?alg_ruimte_key="+ruimte_key + transitParam, dataicon: "fa fa-th", dataajax: 'false'});
|
||||
}
|
||||
@@ -201,7 +214,10 @@ var subject = oRs("plaats").value;
|
||||
}
|
||||
toRs.Close();
|
||||
}
|
||||
|
||||
if (!qrc) {
|
||||
CONTROLGROUP_END();
|
||||
}
|
||||
CONTENT_END();
|
||||
FOOTER();
|
||||
PAGE_END();
|
||||
|
||||
Reference in New Issue
Block a user