Files
Facilitor/APPL/API2/model_res_deel.inc
Jos Groot Lipman 3def7c05d7 FSN#39312 API documentatie verbeteringen
svn path=/Website/trunk/; revision=33033
2017-03-03 20:52:39 +00:00

145 lines
4.3 KiB
PHP

<% /*
$Revision$
$Id$
File: model_res_deel.inc
Description: Vanuit CodeCharge gegenereerd model voor res_deel
Context:
Notes:
*/
%>
<%
function model_res_deel()
{
this.records_name = "bookingitems";
this.record_name = "bookingitem";
this.table = "res_deel";
this.primary = "res_deel_key";
this.soft_delete = "res_deel_verwijder";
this.soft_expire = "res_deel_vervaldatum";
this.autfunction = "WEB_RESMSU";
this.record_title = L("res_deel");
this.records_title = L("res_deel_m");
this.fields = {
"id": {
"dbs": "res_deel_key",
"label": L("lcl_key"),
"typ": "key",
"required": true,
"filter": "exact",
"seq": "res_s_res_deel_key"
},
"res_ins_deel_key": {
"dbs": "res_ins_deel_key",
"label": L("res_ins_deel_key"),
"typ": "key",
"insertonly": true,
"foreign": {
"tbl": "ins_deel",
"key": "ins_deel_key",
"desc": "ins_deel_omschrijving"
},
"filter": "exact"
},
"name": {
"dbs": "res_deel_omschrijving",
"label": L("res_deel_omschrijving"),
"typ": "varchar",
"translate": true,
"required": true,
"filter": "like"
},
"bookingdiscipline": {
"dbs": "res_discipline_key",
"label": L("res_discipline_key"),
"typ": "key",
"required": true,
"foreign": {
"tbl": "(SELECT ins_discipline_key"
+ " , ins_discipline_omschrijving"
+ " FROM ins_tab_discipline"
+ " WHERE ins_discipline_module = 'RES'"
+ " AND ins_discipline_min_level = 1"
+ " AND ins_discipline_verwijder IS NULL"
+ " ORDER BY ins_discipline_omschrijving ASC)",
"key": "ins_discipline_key",
"desc": "ins_discipline_omschrijving"
},
"filter": "exact",
"LOVinit": "",
"multiedit": true
},
"unit": {
"dbs": "res_deel_eenheid",
"label": L("res_deel_eenheid"),
"typ": "varchar",
"translate": true,
"multiedit": true
},
"price": {
"dbs": "res_deel_prijs",
"label": L("res_deel_prijs"),
"iscurrency": true,
"typ": "float",
"multiedit": true
},
"fixedprice": {
"dbs": "res_deel_prijs_vast",
"label": L("res_deel_prijs_vast"),
"typ": "check",
"multiedit": true
},
"scope": {
"dbs": "res_deel_alg_level",
"label": L("res_deel_alg_level"),
"typ": "number",
"LOV": L("res_deel_alg_levelLOV"),
"emptyoption": null,
"multiedit": true
},
"availabilitybits": {
"dbs": "res_deel_beschikbaar_bits",
"label": L("res_deel_beschikbaar_bits"),
"typ": "number",
"hidden_fld": true,
"required": true
},
"_available": {
"dbs": "",
"label": L("res_deel_beschikbaarheid"),
"typ": "button",
"defaultvalue": L("lcl_select")
},
"remark": {
"dbs": "res_deel_opmerking",
"label": L("res_deel_opmerking"),
"typ": "memo",
"translate": true
},
"image": {
"dbs": "res_deel_image",
"label": L("res_deel_image"),
"typ": "varchar",
"flexmodule": "RESPHD"
},
"expirationdate": {
"dbs": "res_deel_vervaldatum",
"label": L("res_deel_vervaldatum"),
"typ": "date",
"multiedit": 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);
}
%>