123 lines
3.5 KiB
PHP
123 lines
3.5 KiB
PHP
<% /*
|
|
$Revision$
|
|
$Id$
|
|
|
|
File: model_res_activiteit.inc
|
|
|
|
Description: Vanuit CodeCharge gegenereerd model voor res_activiteit
|
|
|
|
Context:
|
|
|
|
Notes:
|
|
*/
|
|
%>
|
|
<!-- #include file="./model_res_activiteit_discipline.inc" -->
|
|
<%
|
|
function model_res_activiteit()
|
|
{
|
|
this.table = "res_activiteit";
|
|
this.primary = "res_activiteit_key";
|
|
this.records_name = "res_activiteits";
|
|
this.record_name = "res_activiteit";
|
|
|
|
|
|
this.fields = {
|
|
"id": {
|
|
"dbs": "res_activiteit_key",
|
|
"label": "Key",
|
|
"typ": "key",
|
|
"required": true,
|
|
"filter": "exact",
|
|
"seq": "res_s_res_activiteit_key"
|
|
},
|
|
"res_srtactiviteit_key": {
|
|
"dbs": "res_srtactiviteit_key",
|
|
"label": L("res_srtactiviteit_key"),
|
|
"typ": "key",
|
|
"required": true,
|
|
"foreign": {
|
|
"tbl": "res_srtactiviteit",
|
|
"key": "res_srtactiviteit_key",
|
|
"desc": "res_srtactiviteit_omschrijving",
|
|
"where": "res_srtactiviteit_verwijder IS NULL"
|
|
},
|
|
"filter": "exact"
|
|
},
|
|
"name": {
|
|
"dbs": "res_activiteit_omschrijving",
|
|
"label": L("res_activiteit_omschrijving"),
|
|
"typ": "varchar",
|
|
"translate": true,
|
|
"required": true
|
|
},
|
|
"res_activiteit_omsverplicht": {
|
|
"dbs": "res_activiteit_omsverplicht",
|
|
"label": L("res_activiteit_omsverplicht"),
|
|
"typ": "check"
|
|
},
|
|
"res_activiteit_aantalverplicht": {
|
|
"dbs": "res_activiteit_aantalverplicht",
|
|
"label": L("res_activiteit_aantalverplicht"),
|
|
"typ": "check"
|
|
},
|
|
"res_activiteit_notfrontend": {
|
|
"dbs": "res_activiteit_notfrontend",
|
|
"label": L("res_activiteit_notfrontend"),
|
|
"typ": "check0"
|
|
},
|
|
"sequence": {
|
|
"dbs": "res_activiteit_volgnr",
|
|
"label": L("res_activiteit_volgnr"),
|
|
"typ": "number"
|
|
},
|
|
"res_activiteit_duur": {
|
|
"dbs": "res_activiteit_duur",
|
|
"label": L("res_activiteit_duur"),
|
|
"typ": "float"
|
|
},
|
|
"has_endtime": {
|
|
"dbs": "res_activiteit_meteindtijd",
|
|
"label": L("res_activiteit_meteindtijd"),
|
|
"typ": "check0",
|
|
"defaultvalue": 1
|
|
}
|
|
};
|
|
|
|
|
|
this.list = {
|
|
"columns": [
|
|
"id",
|
|
"name",
|
|
"sequence",
|
|
"res_activiteit_duur",
|
|
"res_srtactiviteit_key"
|
|
]
|
|
};
|
|
this.search = {
|
|
"autosearch": true,
|
|
"filters" : [
|
|
"res_srtactiviteit_key",
|
|
"disciplines.res_discipline_key"
|
|
]
|
|
};
|
|
this.includes = {
|
|
"disciplines": {
|
|
"model": new model_res_activiteit_discipline(),
|
|
"joinfield": "res_activiteit_key",
|
|
"enable_update": true
|
|
}
|
|
};
|
|
|
|
|
|
this.soft_delete = "res_activiteit_verwijder";
|
|
this.autfunction = "WEB_RESMGT";
|
|
this.record_title = L("res_activiteit");
|
|
this.records_title = L("res_activiteit_m");
|
|
|
|
|
|
this.REST_GET = generic_REST_GET(this, this.gparams);
|
|
this.REST_POST = generic_REST_POST(this);
|
|
this.REST_PUT = generic_REST_PUT(this);
|
|
this.REST_DELETE = generic_REST_DELETE(this, {});
|
|
}
|
|
%> |