PCHD#55189 Kostenplaats gekoppeld aan gebouwen
svn path=/Website/branches/v2019.1/; revision=41627
This commit is contained in:
@@ -480,9 +480,22 @@ lcl.set_dialect(mld_melding.srtdisc, "MLD_SRTDISCIPLINE_KEY");
|
||||
mld_melding = params.mld_melding;
|
||||
frontend = params.frontend;
|
||||
BLOCK_START("mldAlg", I("fa-map-marker")+L("lcl_plaatsgegevens"), {ishtmlsafe:true});
|
||||
if (personEditable)
|
||||
if (personEditable && !(mld_key > 0 && !this_mld.canPlaatsChange)) // show checkbox when editable and not readonly
|
||||
{
|
||||
RWCHECKBOXTR("issuer_search", "fldissuersearch", L("lcl_mld_issuer_search"), true, {boxfirst: true, twocols: true});
|
||||
// check if there are any users with other rights then -1 or 9 for the selected srtdisc
|
||||
sql = "SELECT COUNT (fac_gebruiker_prs_level_read) aantal"
|
||||
+ " FROM (SELECT COALESCE (MIN (fac_gebruiker_prs_level_read), 9)"
|
||||
+ " fac_gebruiker_prs_level_read"
|
||||
+ " FROM fac_v_webgebruiker w, fac_functie f"
|
||||
+ " WHERE fac_functie_code = 'WEB_MLDUSE'"
|
||||
+ " AND w.fac_functie_key = f.fac_functie_key"
|
||||
+ " AND fac_functie_module = 'MLD'"
|
||||
+ " AND ins_discipline_key IN ( SELECT ins_discipline_key FROM ins_tab_discipline WHERE ins_srtdiscipline_key = "+mld_melding.srtdisc+" AND ins_discipline_verwijder IS NULL ) )"
|
||||
+ " WHERE fac_gebruiker_prs_level_read BETWEEN 1 AND 8";
|
||||
var oRs = Oracle.Execute(sql);
|
||||
if (oRs("aantal").Value > 0)
|
||||
RWCHECKBOXTR("issuer_search", "fldissuersearch", L("lcl_mld_issuer_search"), true, {boxfirst: true, twocols: true});
|
||||
oRs.Close();
|
||||
}
|
||||
FCLTplaatsselector(this_mld.authparams(autfunction) && this_mld.authparams(autfunction).ALGwritelevel,
|
||||
{ locatiekey: mld_melding.loc_key,
|
||||
|
||||
Reference in New Issue
Block a user