<% /* $Revision$ $Id$ File: model_res_alg_ruimte.inc Description: Model voor res_alg_ruimte Context: Notes: */ %> <% function model_res_alg_ruimte(fnparams) { this.gparams = {fn: fnparams || {} }; this.records_name = "physicalrooms"; this.record_name = "physicalroom"; this.table = "res_alg_ruimte"; this.primary = "res_alg_ruimte_key"; this.soft_delete = "res_alg_ruimte_verwijder"; this.autfunction = "WEB_RESMSU"; this.record_title = L("res_alg_ruimte"); this.records_title = L("res_alg_ruimte_m"); this.fields = { "id": { "dbs": "res_alg_ruimte_key", "label": L("lcl_key"), "typ": "key", "hidden_fld": true, "required": true, "filter": "exact", "seq": "res_s_alg_ruimte_key" }, "bookingroom": { "dbs": "res_ruimte_key", "label": L("res_v_aanwezigruimte"), "typ": "key", "required": true, "foreign": { "tbl": "res_ruimte", "key": "res_ruimte_key", "desc": "res_ruimte_nr" } }, "ruimtekey": { // Onder deze naam komt de parameter terug uit FCLTplaatsselector! "dbs": "alg_ruimte_key", "label": L("lcl_room"), "typ": "key", "required": true, "foreign": { "tbl": "alg_v_plaatsaanduiding", "key": "alg_onroerendgoed_keys", "desc": "alg_plaatsaanduiding", "where": "alg_onroerendgoed_type = 'R'", "selectorforeign": "ALG_RUIMTE" }, "friendlyname": true, "foreignfiltercode": null // Ook facilitor irrelevant }, "locatiekey": { // liever location maar zo komt het uit de plaatsselector "dbs": "res_alg_ruimte.alg_ruimte_key", // door de "." wordt een update voorkomen "label": L("lcl_location"), "typ": "key", "hidden_fld": true, "foreign": { "tbl": "alg_v_ruimte_gegevens", "key": "alg_ruimte_key", "desc": "alg_locatie_code", "selectorforeign": "ALG_LOCATIE" }, "foreignfiltercode": null // Ook facilitor irrelevant } }; this.list = { "columns": [ "id", "bookingroom", "locatiekey", "ruimtekey" ] }; this.search = { "autosearch": true }; this.edit = { modal: 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, {}); } %>