Files
Facilitor/APPL/API2/model_cad_legenda.inc
Jos Groot Lipman 2c3ef7163f FSN#40183 Kopie record maken via scaffolding
svn path=/Website/trunk/; revision=33472
2017-04-12 14:08:46 +00:00

65 lines
1.6 KiB
PHP

<% /*
$Revision$
$Id$
File: model_cad_legenda.inc
Description: Vanuit CodeCharge gegenereerd model voor cad_legenda
Context:
Notes:
*/
%>
<!-- #include file="../api2/model_cad_legendawaarde.inc" -->
<%
function model_cad_legenda()
{
this.records_name = "graphiclegends";
this.record_name = "graphiclegend";
this.table = "cad_legenda";
this.primary = "cad_legenda_key";
this.autfunction = "WEB_CADMGT";
this.record_title = L("cad_legenda");
this.records_title = L("cad_legenda_m");
this.fields = {
"id": {
"dbs": "cad_legenda_key",
"label": L("lcl_key"),
"typ": "key",
"required": true,
"filter": "exact",
"seq": "cad_s_cad_legenda_key"
},
"name": {
"dbs": "cad_legenda_omschrijving",
"label": L("cad_legenda_omschrijving"),
"typ": "varchar",
"translate": true,
"filter": "like"
},
"exact": {
"dbs": "cad_legenda_discreet",
"label": L("cad_legenda_discreet"),
"typ": "check",
"defaultvalue": "1"
}
};
this.includes = {
"legendvalues": {
"model": new model_cad_legendawaarde(),
"joinfield": "graphiclegenda",
"enable_update": 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);
}
%>