59 lines
1.4 KiB
PHP
59 lines
1.4 KiB
PHP
<% /*
|
|
$Revision$
|
|
$Id$
|
|
|
|
File: model_fac_layout.inc
|
|
|
|
Description: Bewerken fac_layout
|
|
|
|
Context:
|
|
|
|
Notes:
|
|
*/
|
|
%>
|
|
<%
|
|
function model_fac_layout()
|
|
{
|
|
this.records_name = "layouts";
|
|
this.record_name = "layout";
|
|
this.table = "fac_layout";
|
|
this.primary = "fac_layout_key";
|
|
this.autfunction = "WEB_FACTAB";
|
|
this.record_title = L("fac_layout");
|
|
this.records_title = L("fac_layout_m");
|
|
|
|
|
|
this.fields = {
|
|
"id": {
|
|
"dbs": "fac_layout_key",
|
|
"label": L("lcl_key"),
|
|
"typ": "key",
|
|
"required": true,
|
|
"seq": "fac_s_fac_layout_key"
|
|
},
|
|
"screen": {
|
|
"dbs": "fac_layout_screen",
|
|
"label": L("fac_layout_screen"),
|
|
"typ": "varchar",
|
|
"required": true
|
|
},
|
|
"layout": {
|
|
"dbs": "fac_layout_options",
|
|
"label": L("fac_layout_options"),
|
|
"typ": "memo",
|
|
"required": true
|
|
},
|
|
"version": {
|
|
"dbs": "fac_layout_version",
|
|
"label": L("fac_layout_version"),
|
|
"typ": "number",
|
|
"readonly": 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, {});
|
|
}
|
|
%> |