Files
Facilitor/APPL/API2/model_prs_kostencombinatie.inc
Erik Groener e8d6eb740e FSN#35338 Alle CodeCharge schermen herschrijven naar gewoon ASP II
svn path=/Website/trunk/; revision=28298
2016-02-25 11:30:22 +00:00

83 lines
2.4 KiB
PHP

<% /*
$Revision$
$Id$
File: model_prs_kostencombinatie.inc
Description: Vanuit CodeCharge gegenereerd model voor prs_kostencombinatie
Context:
Notes:
*/
%>
<%
function model_prs_kostencombinatie()
{
this.table = "prs_kostencombinatie";
this.primary = "prs_kostencombinatie_key";
this.records_name = "prs_kostencombinaties";
this.record_name = "prs_kostencombinatie";
this.autfunction = "WEB_FINMSU";
this.record_title = L("prs_kostencombinatie");
this.records_title = L("prs_kostencombinatie_m");
this.fields = {
"id": {
"dbs": "prs_kostencombinatie_key",
"label": "Key",
"typ": "key",
"required": true,
"filter": "exact",
"seq": "prs_s_prs_kostencombinatie_key"
},
"_name": { // Wordt gebruikt om op omschrijving van kostensoort te kunnen zoeken, ipv een listbox
"dbs": "costtype.prs_kostensoort_oms",
"label": L("prs_kostensoort_key"),
"typ": "varchar",
"hidden_fld": true,
"filter": "like"
},
"category": {
"dbs": "prs_kostensoort_key",
"label": L("prs_kostensoort_key"),
"typ": "key",
"required": true,
"foreign": {
"tbl": "PRS_KOSTENSOORT",
"key": "PRS_KOSTENSOORT_KEY",
"desc": "PRS_KOSTENSOORT_OMS"
}
},
"group": {
"dbs": "prs_kostenplaatsgrp_key",
"label": L("prs_kostenplaatsgrp_key"),
"typ": "key",
"required": true,
"foreign": {
"tbl": "PRS_KOSTENPLAATSGRP",
"key": "PRS_KOSTENPLAATSGRP_KEY",
"desc": "PRS_KOSTENPLAATSGRP_OMS"
}
}
};
var ext_sql = "(SELECT prs_kostensoort_key"
+ " , prs_kostensoort_oms"
+ " FROM prs_kostensoort"
+ ") costtype";
this.REST_GET = generic_REST_GET(this, {
"GET": {
"tables": [ext_sql],
"wheres": ["costtype.prs_kostensoort_key = prs_kostencombinatie.prs_kostensoort_key"]
}
});
this.REST_POST = generic_REST_POST(this);
this.REST_PUT = generic_REST_PUT(this);
this.REST_DELETE = generic_REST_DELETE(this);
}
%>