73 lines
2.3 KiB
PHP
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.table = "bes_srtgroep";
|
|
this.primary = "bes_srtgroep_key";
|
|
this.records_name = "bes_srtgroeps";
|
|
this.record_name = "bes_srtgroep";
|
|
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": "Key",
|
|
"typ": "key",
|
|
"required": true,
|
|
"filter": "exact",
|
|
"seq": "bes_s_bes_srtgroep_key",
|
|
"defaultvalue": null
|
|
},
|
|
"catalogue": {
|
|
"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, {});
|
|
}
|
|
%> |