Files
Facilitor/APPL/API2/model_bgt_kostenrubriek.inc
Erik Groener 1eaba2b8b7 FSN#39055 BCS/2000 functionaliteit in FACILITOR - customization
svn path=/Website/trunk/; revision=33433
2017-04-07 12:17:53 +00:00

71 lines
2.0 KiB
PHP

<% /*
$Revision$
$Id$
File: model_bgt_kostenrubriek.inc
Description: Model voor bgt_kostenrubriek
Context:
Notes:
*/
%>
<!-- #include file="model_prs_kostensoortgrp.inc" -->
<%
function model_bgt_kostenrubriek()
{
this.records_name = "budgetcostcategories";
this.record_name = "budgetcostcategory";
this.table = "bgt_kostenrubriek";
this.primary = "bgt_kostenrubriek_key";
this.autfunction = "WEB_BGTMAN";
this.record_title = L("bgt_kostenrubriek");
this.records_title = L("bgt_kostenrubriek_m");
this.fields = {
"id": {
"dbs": "bgt_kostenrubriek_key",
"label": L("lcl_key"),
"typ": "key",
"hidden_fld": true,
"required": true,
"filter": "exact",
"seq": "bgt_s_bgt_kostenrubriek_key"
},
"budgetproject": {
"dbs" : "bgt_project_key",
"label": L("bgt_project_omschrijving"),
"typ": "key",
"required": true,
"insertonly": true,
"foreign": {
"tbl": "bgt_project",
"key": "bgt_project_key",
"desc": "bgt_project_omschrijving",
"where": "bgt_project_verwijder IS NULL"
}
},
"name": {
"dbs": "bgt_kostenrubriek_oms",
"label": L("bgt_kostenrubriek_oms"),
"typ": "varchar",
"required": true,
"translate": true
},
"code": { /* vermoeden: gaat nog volgnr worden en/of kan vervallen */
"dbs": "bgt_kostenrubriek_code",
"label": L("bgt_kostenrubriek_code"),
"typ": "varchar"
}
};
this.print = { xmlnode: "budget", where: "kostenrubriek"};
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);
}
%>