FLEX#80893 Mobile plattegrond bij reservering toont (te) weinig informatie
svn path=/Website/trunk/; revision=63689
This commit is contained in:
@@ -433,7 +433,7 @@ function getActual(ruimte_van, ruimte_tot)
|
||||
return actueel;
|
||||
}
|
||||
|
||||
function getImageUrl(verdieping_key, ruimte_key, zoom)
|
||||
function getImageUrl(verdieping_key, ruimte_key, ins_deel_key, zoom)
|
||||
{
|
||||
var imgurl = "../cad/mySlnk2IMG.asp?mode=0"
|
||||
+ "&scenario_key=0"
|
||||
@@ -441,13 +441,28 @@ function getImageUrl(verdieping_key, ruimte_key, zoom)
|
||||
+ "&vkey=" + verdieping_key
|
||||
+ "&paperColor=" + S("fg_paperColor")
|
||||
+ "&labelpos=2"
|
||||
+ (ruimte_key > 0
|
||||
? "&highlight=" + ruimte_key
|
||||
: "")
|
||||
+ (S("fg_mobile_label") > 0
|
||||
? "&label=" + S("fg_mobile_label")
|
||||
: "");
|
||||
|
||||
if (ins_deel_key > 0)
|
||||
{
|
||||
var discArray = [];
|
||||
var oRs = Oracle.Execute("SELECT ins_discipline_key" +
|
||||
" FROM ins_deel" +
|
||||
" WHERE ins_deel_key = " + ins_deel_key);
|
||||
discArray.push(oRs("ins_discipline_key").Value); // zou dubbel kunnen zijn
|
||||
oRs.Close();
|
||||
// mobiel ook?
|
||||
//if (S("fg_publiclayers").length)
|
||||
// discArray = discArray.concat(S("fg_publiclayers"));
|
||||
imgurl += "&ins_key=" + ins_deel_key + "&discs=" + discArray.join(",");
|
||||
}
|
||||
else if (ruimte_key > 0)
|
||||
{
|
||||
imgurl += "&highlight=" + ruimte_key;
|
||||
}
|
||||
|
||||
// iphone7 resolution as reference
|
||||
var sizeX = 1334;
|
||||
var sizeY = 750;
|
||||
@@ -460,13 +475,13 @@ function getImageUrl(verdieping_key, ruimte_key, zoom)
|
||||
return imgurl;
|
||||
}
|
||||
|
||||
function showPlan(actueel, rsv)
|
||||
function showPlan(actueel, rsv, ins_deel_key)
|
||||
{
|
||||
if (actueel)
|
||||
{
|
||||
var zoom = 2;
|
||||
var ruimte_key = (rsv.alg_ruimtekey ? rsv.alg_ruimtekey : rsv.ruimtekey);
|
||||
var imgurl = getImageUrl(rsv.flr_key, ruimte_key, zoom);
|
||||
var imgurl = getImageUrl(rsv.flr_key, ruimte_key, ins_deel_key, zoom);
|
||||
|
||||
if (rsv.actueel == 2)
|
||||
{
|
||||
@@ -961,22 +976,27 @@ else
|
||||
if (true || rsv.opstel_key == null)
|
||||
{
|
||||
// Voorzieningsreservering - indien leesrechten? TODO
|
||||
sqld = "SELECT rd.res_deel_omschrijving"
|
||||
sqld = "SELECT rd.res_deel_omschrijving, res_ins_deel_key"
|
||||
+ " FROM res_rsv_deel rrd, res_deel rd"
|
||||
+ " WHERE rrd.res_deel_key = rd.res_deel_key"
|
||||
+ " AND rrd.bez_bezoekers_key IS NULL"
|
||||
+ " AND rrd.res_rsv_ruimte_key = " + rsv_ruimte_key;
|
||||
var oRsd = Oracle.Execute(sqld);
|
||||
var oRsdi = 0;
|
||||
var ins_deel_key = -1;
|
||||
while (!oRsd.eof)
|
||||
{
|
||||
if (oRsdi < 1)
|
||||
BLOCK_START({collapsed: false, title: L("lcl_res_reserved_objects")});
|
||||
ROFIELD("fld", "" , oRsd("res_deel_omschrijving").Value, {suppressEmpty: true});
|
||||
ins_deel_key = oRsd("res_ins_deel_key").Value;
|
||||
oRsdi += 1;
|
||||
oRsd.moveNext();
|
||||
}
|
||||
oRsd.Close();
|
||||
if (oRsdi != 1 || rsv.opstel_key) // als er een opstelling is tonen we uiteindelijk de res_ruimte
|
||||
ins_deel_key = -1; // meerdere kunnen we niet grafisch tonen
|
||||
|
||||
// - indien leesrechten? TODO
|
||||
sqla = "SELECT ra.res_artikel_omschrijving"
|
||||
+ " , rra.res_rsv_artikel_aantal"
|
||||
@@ -1019,7 +1039,7 @@ else
|
||||
}
|
||||
);
|
||||
|
||||
showPlan(rsv.actueel==2, rsv);
|
||||
showPlan(rsv.actueel==2, rsv, ins_deel_key);
|
||||
|
||||
CONTROLGROUP_START();
|
||||
if (this_res.canChange || rsv_ruimte_key == -1)
|
||||
|
||||
Reference in New Issue
Block a user