Files
Facilitor/APPL/API2/model_res_cyclus.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

67 lines
1.5 KiB
PHP

<% /*
$Revision$
$Id$
File: model_res_cyclus.inc
Description: Vanuit CodeCharge gegenereerd model voor res_cyclus
Context:
Notes:
*/
%>
<%
function model_res_cyclus()
{
this.records_name = "bookingcycles";
this.record_name = "bookingcycle";
this.table = "res_cyclus";
this.primary = "res_cyclus_key";
this.autfunction = "WEB_RESMGT";
this.record_title = L("res_cyclus");
this.records_title = L("res_cyclus_m");
this.fields = {
"id": {
"dbs": "res_cyclus_key",
"label": L("lcl_key"),
"typ": "key",
"required": true,
"filter": "exact",
"seq": "res_s_res_cyclus"
},
"name": {
"dbs": "res_cyclus_naam",
"label": L("res_cyclus_naam"),
"typ": "varchar",
"translate": true,
"required": true
},
"cycle": {
"dbs": "res_cyclus_periode",
"label": L("res_cyclus_periode"),
"typ": "number",
"required": true
}
};
this.list = {
"columns": [
"id",
"name",
"cycle"
]
};
this.search = {
"autosearch": true
};
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, {});
}
%>