Files
Facilitor/APPL/API2/model_fac_profielwaarde.inc
Jos Groot Lipman 7fd06653a8 Met FSN#35338 is de prefix in de vakgroep omschrivjng opgenomen, dan hoeft de losse kolom niet meer.
svn path=/Website/branches/v2017.1/; revision=33982
2017-05-23 14:52:45 +00:00

103 lines
3.1 KiB
PHP

<% /*
$Revision$
$Id$
File: model_fac_profielwaarde.inc
Description: Vanuit CodeCharge gegenereerd model voor fac_profielwaarde
Context:
Notes:
*/
%>
<%
function model_fac_profielwaarde()
{
this.records_name = "profilevalues";
this.record_name = "profilevalue";
this.table = "fac_profielwaarde";
this.primary = "fac_profielwaarde_key";
this.autfunction = "WEB_FINMSU";
this.record_title = L("fac_profielwaarde");
this.records_title = L("fac_profielwaarde_m");
var catalogus_sql = "SELECT B.ins_discipline_key"
+ " , B.ins_discipline_omschrijving as omschrijving"
+ " , " + safe.qL("lcl_bes_Catalogus") + "||': '|| B.ins_discipline_omschrijving as omschrijving_ext"
+ " FROM bes_v_aanwezigdiscipline B"
+ " UNION ALL "
+ "SELECT M.ins_discipline_key"
+ " , M.ins_discipline_omschrijving"
+ " , " + safe.qL("lcl_mld_vakgroep") + "||': '|| S.ins_srtdiscipline_prefix ||'-'|| M.ins_discipline_omschrijving"
+ " FROM mld_v_aanwezigdiscipline M"
+ " , ins_srtdiscipline S"
+ " WHERE M.ins_srtdiscipline_key = S.ins_srtdiscipline_key";
this.fields = {
"id": {
"dbs": "fac_profielwaarde_key",
"label": L("lcl_key"),
"typ": "key",
"required": true,
"filter": "exact",
"seq": "fac_s_fac_profielwaarde_key"
},
"profile": {
"dbs": "fac_profiel_key",
"label": L("fac_profiel"),
"typ": "key",
"required": true,
"insertonly": true,
"foreign": {
"tbl": "fac_profiel",
"key": "fac_profiel_key",
"desc": "fac_profiel_omschrijving"
}
},
"catalog": {
"dbs": "ins_discipline_key",
"label": L("mgt_discipline"),
"typ": "key",
"required": true,
"insertonly": true,
"foreign": {
"tbl": "("+ catalogus_sql + ")",
"key": "ins_discipline_key",
"desc": "omschrijving_ext"
},
"friendlyname": true
},
"valuelimit": {
"dbs": "fac_profielwaarde_limiet",
"label": L("fac_profielwaarde_limiet"),
"typ": "number",
"required": true,
"multiedit": true
}
};
this.list = {
"columns": [
"id",
"catalog",
"valuelimit"
]
};
this.search = {
"autosearch": true
};
this.edit = {
"modal": true
};
this.REST_GET = generic_REST_GET(this);
this.REST_POST = generic_REST_POST(this);
this.REST_PUT = generic_REST_PUT(this);
this.REST_DELETE = generic_REST_DELETE(this);
}
%>