AQQA#53264 Werklocatie benaming bij persoonsgegevens volledig uitschrijven

svn path=/Website/trunk/; revision=38759
This commit is contained in:
Alex Tiehuis
2018-08-09 07:07:41 +00:00
parent 50b74fec40
commit d6f45bc734

View File

@@ -170,7 +170,7 @@ prs =
result.werklocatie.alg_verdieping_naam = wv.naam();
result.werklocatie.alg_verdieping_code = wv.alg_verdieping_code();
}
var wr_key = prsWL.alg_ruimte_key({withcurrent: true})
var wr_key = prsWL.alg_ruimte_key({withcurrent: true});
if (wr_key > 0)
{
var wr = prsWL.ruimte({withcurrent: true});
@@ -188,11 +188,18 @@ prs =
result.werklocatie.prs_werkplek_aanduiding = ww.prs_werkplek_aanduiding();
result.werklocatie.prs_werkplek_bezetting = ww.bezetting();
}
result.werklocatie.aanduiding = (!result.werklocatie.alg_gebouw_key? result.werklocatie.alg_locatie_code : "")
+ (result.werklocatie.alg_gebouw_key? result.werklocatie.alg_gebouw_code : "")
+ (result.werklocatie.alg_verdieping_key? "-" + result.werklocatie.alg_verdieping_code : "")
+ (result.werklocatie.alg_ruimte_key? "-" + result.werklocatie.alg_ruimte_nr: "")
+ (result.werklocatie.prs_werkplek_key? "/" + result.werklocatie.prs_werkplek_volgnr: "");
var aanduiding = {
locatie: result.werklocatie.alg_gebouw_key? "" : " " + result.werklocatie.alg_locatie_naam,
gebouw: result.werklocatie.alg_verdieping_key? "" : " " + result.werklocatie.alg_gebouw_naam,
verdieping: result.werklocatie.alg_ruimte_key? "" : " " + result.werklocatie.alg_gebouw_naam,
ruimte: result.werklocatie.prs_werkplek_key? "" : " " + result.werklocatie.alg_ruimte_naam,
werkplek: result.werklocatie.prs_werkplek_key? " " + result.werklocatie.alg_ruimte_naam : ""
}
result.werklocatie.aanduiding = (!result.werklocatie.alg_gebouw_key? result.werklocatie.alg_locatie_code + aanduiding.locatie : "")
+ (result.werklocatie.alg_gebouw_key? result.werklocatie.alg_gebouw_code + aanduiding.gebouw : "")
+ (result.werklocatie.alg_verdieping_key? "-" + result.werklocatie.alg_verdieping_code + aanduiding.verdieping : "")
+ (result.werklocatie.alg_ruimte_key? "-" + result.werklocatie.alg_ruimte_nr + aanduiding.ruimte : "")
+ (result.werklocatie.prs_werkplek_key? "/" + result.werklocatie.prs_werkplek_volgnr + aanduiding.werkplek : "");
}
if (params.withPhoto)
{