Files
Facilitor/APPL/API2/model_res_activiteit.inc
Erik Groener fb441b1705 FSN#39312 Verder ontsluiten van modellen via de API
svn path=/Website/trunk/; revision=32984
2017-02-28 15:31:59 +00:00

110 lines
3.3 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.records_name = "bookingactivities";
this.record_name = "bookingactivity";
this.table = "res_activiteit";
this.primary = "res_activiteit_key";
this.soft_delete = "res_activiteit_verwijder";
this.autfunction = "WEB_RESMGT";
this.record_title = L("res_activiteit");
this.records_title = L("res_activiteit_m");
this.fields = {
"id": {
"dbs": "res_activiteit_key",
"label": L("lcl_key"),
"typ": "key",
"required": true,
"filter": "exact",
"seq": "res_s_res_activiteit_key"
},
"bookingactivitytypes": {
"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
},
"descriptionmandatory": {
"dbs": "res_activiteit_omsverplicht",
"label": L("res_activiteit_omsverplicht"),
"typ": "check",
"multiedit": true
},
"visitorsmandatory": {
"dbs": "res_activiteit_aantalverplicht",
"label": L("res_activiteit_aantalverplicht"),
"typ": "check",
"multiedit": true
},
"notfrontend": {
"dbs": "res_activiteit_notfrontend",
"label": L("res_activiteit_notfrontend"),
"typ": "check0",
"multiedit": true
},
"sequence": {
"dbs": "res_activiteit_volgnr",
"label": L("res_activiteit_volgnr"),
"typ": "number"
},
"duration": {
"dbs": "res_activiteit_duur",
"label": L("res_activiteit_duur"),
"typ": "float",
"multiedit": true
},
"hasendtime": {
"dbs": "res_activiteit_meteindtijd",
"label": L("res_activiteit_meteindtijd"),
"typ": "check0",
"defaultvalue": 1,
"multiedit": true
}
};
this.includes = {
"disciplines": {
"model": new model_res_activiteit_discipline(),
"joinfield": "bookingactivity",
"enable_update": true,
"multiadd": "bookingdiscipline"
}
};
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);
}
%>