69 lines
1.8 KiB
PHP
69 lines
1.8 KiB
PHP
<% /*
|
|
$Revision$
|
|
$Id$
|
|
|
|
File: model_bes_staffeltabel.inc
|
|
|
|
Description:
|
|
|
|
Context:
|
|
|
|
Notes:
|
|
*/
|
|
%>
|
|
<%
|
|
|
|
function model_bes_staffeltabel()
|
|
{
|
|
this.table = "bes_staffeltabel";
|
|
this.primary = "bes_staffeltabel_key";
|
|
this.records_name = "bes_staffeltabels";
|
|
this.record_name = "bes_staffeltabel";
|
|
this.autfunction = "WEB_BESMGT";
|
|
this.record_title = L("bes_staffeltabel");
|
|
this.records_title = L("bes_staffeltabel_m");
|
|
|
|
|
|
this.fields = {
|
|
"id": {
|
|
"dbs": "bes_staffeltabel_key",
|
|
"label": "Key",
|
|
"typ": "key",
|
|
"required": true,
|
|
"filter": "exact",
|
|
"seq": "bes_s_bes_staffeltabel_key",
|
|
"defaultvalue": null
|
|
},
|
|
"bes_staffeltabel_naam": {
|
|
"dbs": "bes_staffeltabel_naam",
|
|
"label": L("bes_staffeltabel_naam"),
|
|
"typ": "varchar",
|
|
"required": true
|
|
},
|
|
"fac_typestaffel_key": {
|
|
"dbs": "fac_typestaffel_key",
|
|
"label": L("bes_staffeltabel_type"),
|
|
"typ": "key",
|
|
"required": true,
|
|
"foreign": {
|
|
"tbl": "fac_typestaffel",
|
|
"key": "fac_typestaffel_key",
|
|
"desc": "fac_typestaffel_omschrijving"
|
|
},
|
|
"emptyoption": null,
|
|
"filter": "exact"
|
|
},
|
|
"bes_staffeltabel_groep": {
|
|
"dbs": "bes_staffeltabel_groep",
|
|
"label": L("bes_staffeltabel_groep"),
|
|
"typ": "check0"
|
|
}
|
|
};
|
|
|
|
|
|
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, {});
|
|
}
|
|
%> |