FSN#35534 berekende vloeroppervlakte obv ruimte tonen bij verdieping of ruimte

svn path=/Website/trunk/; revision=28211
This commit is contained in:
Ruud Lipper
2016-02-18 10:55:25 +00:00
parent 7979f56b94
commit 8b4bc0d673
2 changed files with 19 additions and 1 deletions

View File

@@ -163,6 +163,15 @@ oRs.Close();
BLOCK_END();
BLOCK_START("algLoc2", "");
sql = "SELECT SUM (alg_ruimte_bruto_vloeropp) opp"
+ " FROM alg_ruimte r, alg_verdieping v"
+ " WHERE r.alg_verdieping_key = v.alg_verdieping_key"
+ " AND r.alg_ruimte_verwijder IS NULL"
+ " AND v.alg_verdieping_verwijder IS NULL"
+ " AND v.alg_gebouw_key =" + bld_key;
oRs = Oracle.Execute(sql);
ROFIELDTR("fld", L("lcl_estate_calc_vloeropp"), oRs("opp").value, {suppressEmpty: true});
oRs.Close();
ROFIELDTR("fld", L("lcl_estate_gebouw_man_bruto_vloeropp"), bld_opp, {suppressEmpty: true});
ROFIELDTR("fld", L("lcl_estate_gebouw_man_omtrek"), bld_omtrek, {suppressEmpty: true});
ROFIELDTR("fld", L("lcl_estate_gebouw_man_inhoud"), bld_inhoud, {suppressEmpty: true});

View File

@@ -104,8 +104,17 @@ oRs.Close();
oRs = Oracle.Execute(sql);
ROFIELDTR("fld", L("lcl_mld_dienst_niveau"), oRs("mld_dienstniveau_omschr").value);
oRs.Close();
}
}
BLOCK_END();
BLOCK_START("algLoc2", "");
sql = "SELECT SUM (alg_ruimte_bruto_vloeropp) opp"
+ " FROM alg_ruimte"
+ " WHERE alg_ruimte_verwijder IS NULL AND alg_verdieping_key =" + flr_key;
oRs = Oracle.Execute(sql);
ROFIELDTR("fld", L("lcl_estate_calc_vloeropp"), oRs("opp").value, {suppressEmpty: true});
oRs.Close();
BLOCK_END();
generateFlexKenmerkBlock ({
onrgoed_key : flr_key,