Files
Facilitor/APPL/API2/model_res_ruimte_opstelling.inc
Jos Groot Lipman 97cb6b06ea FSN#35817 Autorisaties via API2/Scaffolding
Ook: bij koppeltabellen vaker bestaande records onderdrukken bij toevoegen

svn path=/Website/trunk/; revision=28986
2016-04-18 11:16:17 +00:00

107 lines
2.9 KiB
PHP

<% /*
$Revision$
$Id$
File: model_res_ruimte_opstelling.inc
Description: Vanuit CodeCharge gegenereerd model voor res_ruimte_opstelling
Context:
Notes:
*/
%>
<%
function model_res_ruimte_opstelling(fnparams)
{
this.gparams = {fn: fnparams || {} };
this.table = "res_ruimte_opstelling";
this.primary = "res_ruimte_opstel_key";
this.records_name = "configurations";
this.record_name = "configuration";
this.fields = {
"id": {
"dbs": "res_ruimte_opstel_key",
"label": "Key",
"typ": "key",
"hidden_fld": true,
"required": true,
"filter": "exact",
"seq": "res_s_res_ruimte_opstel_key"
},
"res_ruimte_key": {
"dbs": "res_ruimte_key",
"label": L("res_v_aanwezigruimte"),
"typ": "key",
"foreign": {
"tbl": "RES_RUIMTE",
"key": "RES_RUIMTE_KEY",
"desc": "RES_RUIMTE_NR"
},
"filter": "exact"
},
"res_opstelling_key": {
"dbs": "res_opstelling_key",
"label": L("res_opstelling_key"),
"typ": "key",
"required": true,
"foreign": {
"tbl": "RES_OPSTELLING",
"key": "RES_OPSTELLING_KEY",
"desc": "RES_OPSTELLING_OMSCHRIJVING",
"where": "RES_OPSTELLING_VERWIJDER IS NULL"
},
"filter": "exact",
"uniquewith": "res_ruimte_key"
},
"capacity": {
"dbs": "res_ruimte_opstel_bezoekers",
"label": L("res_ruimte_opstel_bezoekers"),
"typ": "number",
"required": true
},
"isdefault": {
"dbs": "res_ruimte_opstel_default",
"label": L("res_ruimte_opstel_default"),
"typ": "check"
},
"res_ruimte_opstel_image": {
"dbs": "res_ruimte_opstel_image",
"label": L("res_ruimte_opstel_image"),
"typ": "varchar",
"flexmodule": "RESPH"
}
};
this.list = {
"columns": [
"id",
"res_ruimte_key",
"res_opstelling_key",
"capacity",
"isdefault"
]
};
this.search = {
"autosearch": true
};
this.edit = {
modal: true
};
this.soft_delete = "res_ruimte_opstel_verwijder";
this.autfunction = "WEB_RESMSU";
this.record_title = L("res_ruimte_opstelling");
this.records_title = L("res_ruimte_opstelling_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, {});
}
%>