FSN#39312 Verder ontsluiten van modellen via de API
svn path=/Website/trunk/; revision=32934
This commit is contained in:
@@ -47,7 +47,7 @@ function model_bes_kenmerk()
|
||||
},
|
||||
"filter": "exact"
|
||||
},
|
||||
"propertytype": {
|
||||
"orderpropertytype": {
|
||||
"dbs": "bes_srtkenmerk_key",
|
||||
"label": L("mgt_srtkenmerk_key"),
|
||||
"typ": "key",
|
||||
@@ -165,6 +165,43 @@ function model_bes_kenmerk()
|
||||
};
|
||||
|
||||
|
||||
function buildBESKenmerkNiveauList()
|
||||
{
|
||||
return "D;"+L("bes_ins_discipline_key")
|
||||
+ ";G;"+L("bes_srtgroep")
|
||||
+ ";S;"+L("bes_srtdeel");
|
||||
}
|
||||
|
||||
|
||||
this.hook_pre_edit = function (obj, fld)
|
||||
{
|
||||
if (obj.id == -1)
|
||||
{
|
||||
fld.orderarticlegroup.foreign.where = "bes_srtgroep_key IS NULL";
|
||||
fld.orderarticle.foreign.where = "bes_srtdeel_key IS NULL"; // Geen artikelen ophalen: zijn er veel te veel.
|
||||
}
|
||||
%>
|
||||
<script type="text/javascript">
|
||||
var module = "BES";
|
||||
</script>
|
||||
<%
|
||||
}
|
||||
|
||||
this.hook_pre_post = function (params, jsondata)
|
||||
{
|
||||
var checkdata = { module: "bes",
|
||||
srtkenmerk: true,
|
||||
key: jsondata.propertytype,
|
||||
value: jsondata.propertydefault
|
||||
};
|
||||
checkSrtkenmerkValue(checkdata);
|
||||
if (checkdata.err != "")
|
||||
abort_with_warning(checkdata.err);
|
||||
|
||||
jsondata.propertydefault = checkdata.value;
|
||||
}
|
||||
|
||||
|
||||
var ext_sql = "(SELECT DISTINCT"
|
||||
+ " B.bes_kenmerk_key"
|
||||
+ " , S.bes_srtkenmerk_omschrijving"
|
||||
|
||||
Reference in New Issue
Block a user