Files
Facilitor/APPL/API2/model_bes_srtgroep.inc
2020-09-07 12:39:59 +00:00

83 lines
2.3 KiB
PHP

<% /*
$Revision$
$Id$
File: model_bes_srtgroep.inc
Description: Vanuit CodeCharge gegenereerd model voor bes_srtgroep
Context:
Notes:
*/
%>
<%
function model_bes_srtgroep()
{
this.records_name = "orderarticlegroups";
this.record_name = "orderarticlegroup";
this.table = "bes_srtgroep";
this.primary = "bes_srtgroep_key";
this.soft_delete = "bes_srtgroep_verwijder";
this.autfunction = "WEB_BESMSU";
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,
"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": "bes_v_aanwezigdiscipline",
"key": "ins_discipline_key",
"desc": "ins_discipline_omschrijving"
},
"LOVinit": "",
"defaultvalue": null,
"showtransit": true
},
"name": {
"dbs": "bes_srtgroep_omschrijving",
"label": L("bes_srtgroep_omschrijving"),
"typ": "varchar",
"required": true,
"translate": true,
"filter": "like"
},
"sequence": {
"dbs": "bes_srtgroep_volgnr",
"label": L("bes_srtgroep_volgnr"),
"typ": "number"
},
"costtype": {
"dbs": "prs_kostensoort_key",
"label": L("prs_kostensoort_key"),
"typ": "key",
"foreign": {
"tbl": "prs_kostensoort",
"key": "prs_kostensoort_key",
"desc": "prs_kostensoort_oms"
},
"LOVinit": ""
}
};
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, {});
}
%>