Files
Facilitor/APPL/API2/model_bes_srtprodgroep.inc
Erik Groener 12da28c00f FSN#39312 Verder ontsluiten van modellen via de API
svn path=/Website/trunk/; revision=32921
2017-02-23 12:08:49 +00:00

73 lines
2.3 KiB
PHP

<% /*
$Revision$
$Id$
File: model_bes_srtprodgroep.inc
Description: Vanuit CodeCharge gegenereerd model voor bes_srtprodgroep
Context:
Notes:
*/
%>
<%
function model_bes_srtprodgroep()
{
this.records_name = "orderproductgroeps";
this.record_name = "orderproductgroep";
this.table = "bes_srtgroep";
this.primary = "bes_srtgroep_key";
this.autfunction = "WEB_PRDMSU";
this.record_title = L("bes_srtgroep");
this.records_title = L("bes_srtgroep_m");
this.fields = {
"id": {
"dbs": "bes_srtgroep_key",
"label": L("lcl_key"),
"typ": "key",
"required": true,
"filter": "exact",
"seq": "bes_s_bes_srtgroep_key",
"defaultvalue": null
},
"orderdisciplines": {
"dbs": "ins_discipline_key",
"label": L("bes_ins_discipline_key"),
"typ": "key",
"required": true,
"foreign": {
"tbl": "ins_tab_discipline",
"key": "ins_discipline_key",
"desc": "ins_discipline_omschrijving",
"where": "ins_discipline_verwijder IS NULL AND ins_discipline_module = 'PRD'"
},
"filter": "exact",
"emptyoption": L("mgt_all")
},
"name": {
"dbs": "bes_srtgroep_omschrijving",
"label": L("bes_srtgroep_omschrijving"),
"typ": "varchar"
}
};
this.REST_GET = generic_REST_GET(this,
{ "GET": {
wheres: [ "ins_discipline_key IN"
+ "( SELECT ins_discipline_key"
+ " FROM ins_tab_discipline"
+ " WHERE ins_discipline_module = 'PRD')"
]
}
}
);
this.REST_POST = generic_REST_POST(this);
this.REST_PUT = generic_REST_PUT(this);
this.REST_DELETE = generic_REST_DELETE(this, {});
}
%>