Files
Facilitor/APPL/API2/model_prs_ruimteafdeling.inc
Erik Groener 7ad9712cff FSN#36616 API2 (tbv. SSC Heerlen): Afdeling-bezetting per Room kunnen ophalen
svn path=/Website/branches/v2016.1/; revision=29573
2016-05-31 07:12:37 +00:00

63 lines
1.5 KiB
PHP

<% /*
$Revision$
$Id$
File: model_prs_ruimteafdeling.inc
Description:
Context:
Notes:
*/
%>
<%
function model_prs_ruimteafdeling()
{
this.table = "prs_ruimteafdeling";
this.primary = "prs_ruimteafdeling_key";
this.records_name = "prs_ruimteafdelings";
this.record_name = "prs_ruimteafdeling";
this.autfunction = "WEB_ALGUSE";
this.record_title = L("prs_ruimteafdeling");
this.records_title = L("prs_ruimteafdeling_m");
this.fields = {
"id": {
"dbs": "prs_ruimteafdeling_key",
"label": "Key",
"typ": "key",
"required": true,
"filter": "exact",
"seq": "prs_s_prs_ruimteafdeling_key"
},
"department": {
"dbs": "prs_afdeling_key",
"label": L("lcl_prs_organisatie"),
"typ": "key",
"required": true,
"foreign": "PRS_AFDELING"
},
"room": {
"dbs": "alg_ruimte_key",
"label": L("lcl_room"),
"typ": "key",
"required": true
},
"occupation": {
"dbs": "prs_ruimteafdeling_bezetting",
"label": L("lcl_prs_ruimtebezetting"),
"typ": "float",
"required": true
}
};
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);
}
%>