FSN#41086 Modellen voor kostenplaats en kostenplaatsgroep
svn path=/Website/branches/v2017.1/; revision=34447
This commit is contained in:
@@ -103,6 +103,8 @@ var api2_mapper = {
|
||||
"combinationvalidation" : { "filename": "appl/mgt/prs_kostencombinatie.asp" },
|
||||
"costtypes" : { "filename": "appl/mgt/prs_kostensoort.asp" },
|
||||
"costtypegroups" : { "filename": "appl/mgt/prs_kostensoortgrp.asp" },
|
||||
"costcentregroups" : { "filename": "appl/mgt/prs_kostenplaatsgrp.asp" },
|
||||
"costcentres" : { "filename": "appl/mgt/prs_kostenplaats.asp" },
|
||||
"persons" : { "filename": "appl/mgt/prs_perslid.asp", "nodoc": true },
|
||||
"mandates" : { "filename": "appl/mgt/prs_perslidkostenplaats.asp" },
|
||||
"relationtypes" : { "filename": "appl/mgt/prs_relatietype.asp" },
|
||||
|
||||
111
APPL/API2/model_prs_kostenplaats.inc
Normal file
111
APPL/API2/model_prs_kostenplaats.inc
Normal file
@@ -0,0 +1,111 @@
|
||||
<% /*
|
||||
$Revision$
|
||||
$Id$
|
||||
|
||||
File: model_prs_kostenplaats.inc
|
||||
|
||||
Description: Vanuit CodeCharge gegenereerd model voor prs_kostenplaats
|
||||
|
||||
Context:
|
||||
|
||||
Notes:
|
||||
*/
|
||||
%>
|
||||
<!-- #include file="../api2/model_prs_kostensoort.inc" -->
|
||||
<%
|
||||
|
||||
function model_prs_kostenplaats()
|
||||
{
|
||||
this.records_name = "costcentres";
|
||||
this.record_name = "costcentre";
|
||||
this.table = "prs_kostenplaats";
|
||||
this.primary = "prs_kostenplaats_key";
|
||||
this.autfunction = "WEB_FINMSU";
|
||||
this.record_title = L("lcl_account");
|
||||
this.records_title = L("lcl_menu_fin_kostenplaatsen");
|
||||
this.soft_delete = "prs_kostenplaats_verwijder";
|
||||
|
||||
this.fields = {
|
||||
"id": {
|
||||
"dbs": "prs_kostenplaats_key",
|
||||
"label": L("lcl_key"),
|
||||
"typ": "key",
|
||||
"hidden_fld": true,
|
||||
"required": true,
|
||||
"filter": "exact",
|
||||
"seq": "prs_s_prs_kostenplaats_key"
|
||||
},
|
||||
"name": {
|
||||
"dbs": "prs_kostenplaats_nr",
|
||||
"label": L("lcl_prs_dept_name"),
|
||||
"typ": "varchar",
|
||||
"translate": true,
|
||||
"required": true,
|
||||
"filter": "like"
|
||||
},
|
||||
"description": {
|
||||
"dbs": "prs_kostenplaats_omschrijving",
|
||||
"label": L("lcl_prs_descr"),
|
||||
"typ": "varchar",
|
||||
"translate": true,
|
||||
"required": true,
|
||||
"filter": "like"
|
||||
},
|
||||
"begin": {
|
||||
"dbs": "prs_kostenplaats_begin",
|
||||
"label": "Startdatum", // L("lcl_start_date"),
|
||||
"typ": "date"
|
||||
},
|
||||
"end": {
|
||||
"dbs": "prs_kostenplaats_eind",
|
||||
"label": L("lcl_end_date"),
|
||||
"typ": "date"
|
||||
},
|
||||
"costgroup": {
|
||||
"dbs": "prs_kostenplaatsgrp_key",
|
||||
"label": L("lcl_prs_kostenpl_group"),
|
||||
"typ": "key",
|
||||
"foreign": {
|
||||
"tbl": "prs_kostenplaatsgrp",
|
||||
"key": "prs_kostenplaatsgrp_key",
|
||||
"desc": "prs_kostenplaatsgrp_oms"
|
||||
}
|
||||
},
|
||||
"person": {
|
||||
"dbs": "prs_perslid_key",
|
||||
"label": L("lcl_prs_budgethouder"),
|
||||
"typ": "key",
|
||||
"foreign" : "prs_perslid"
|
||||
},
|
||||
"costlimit": {
|
||||
"dbs": "prs_kostenplaats_limiet",
|
||||
"label": L("lcl_prs_limiet"),
|
||||
"typ": "number"
|
||||
},
|
||||
"limitperiod": {
|
||||
"dbs": "prs_kostenplaats_limietperiode",
|
||||
"label": L("lcl_prs_budgetperiode"),
|
||||
"typ": "number",
|
||||
"LOV": "0;" + L("lcl_prs_none") +
|
||||
";1;" + L("lcl_prs_month") +
|
||||
";2;" + L("lcl_prs_year")
|
||||
},
|
||||
"external": {
|
||||
"dbs": "prs_kostenplaats_extern",
|
||||
"label": L("lcl_prs_kpnextern"),
|
||||
"typ": "check0"
|
||||
},
|
||||
"approval": {
|
||||
"dbs": "prs_kostenplaats_fiat",
|
||||
"label": L("lcl_prs_kpnfiat"),
|
||||
"typ": "check0"
|
||||
}
|
||||
};
|
||||
|
||||
this.REST_GET = generic_REST_GET(this);
|
||||
// Nog even readonly
|
||||
//this.REST_POST = generic_REST_POST(this);
|
||||
//this.REST_PUT = generic_REST_PUT(this);
|
||||
//this.REST_DELETE = generic_REST_DELETE(this);
|
||||
}
|
||||
%>
|
||||
98
APPL/API2/model_prs_kostenplaatsgrp.inc
Normal file
98
APPL/API2/model_prs_kostenplaatsgrp.inc
Normal file
@@ -0,0 +1,98 @@
|
||||
<% /*
|
||||
$Revision$
|
||||
$Id$
|
||||
|
||||
File: model_prs_kostenplaatsgrp.inc
|
||||
|
||||
Description: Vanuit CodeCharge gegenereerd model voor prs_kostenplaatsgrp
|
||||
|
||||
Context:
|
||||
|
||||
Notes:
|
||||
*/
|
||||
%>
|
||||
<!-- #include file="../api2/model_prs_kostensoort.inc" -->
|
||||
<%
|
||||
|
||||
function model_prs_kostenplaatsgrp()
|
||||
{
|
||||
this.records_name = "costcentregroups";
|
||||
this.record_name = "costcentregroup";
|
||||
this.table = "prs_kostenplaatsgrp";
|
||||
this.primary = "prs_kostenplaatsgrp_key";
|
||||
this.autfunction = "WEB_FINMSU";
|
||||
this.record_title = L("lcl_prs_kostenpl_group");
|
||||
this.records_title = L("lcl_kpn_groep_frame");
|
||||
|
||||
|
||||
this.fields = {
|
||||
"id": {
|
||||
"dbs": "prs_kostenplaatsgrp_key",
|
||||
"label": L("lcl_key"),
|
||||
"typ": "key",
|
||||
"hidden_fld": true,
|
||||
"required": true,
|
||||
"filter": "exact",
|
||||
"seq": "prs_s_prs_kostenplaatsgrp_key"
|
||||
},
|
||||
"name": {
|
||||
"dbs": "prs_kostenplaatsgrp_oms",
|
||||
"label": L("lcl_prs_descr"),
|
||||
"typ": "varchar",
|
||||
"translate": true,
|
||||
"required": true,
|
||||
"filter": "like"
|
||||
},
|
||||
"code": {
|
||||
"dbs": "prs_kostenplaatsgrp_nr",
|
||||
"label": L("lcl_prs_number"),
|
||||
"typ": "varchar",
|
||||
"translate": true,
|
||||
"required": true,
|
||||
"filter": "like"
|
||||
},
|
||||
"person": {
|
||||
"dbs": "prs_perslid_key",
|
||||
"label": L("lcl_prs_budgethouder"),
|
||||
"typ": "key",
|
||||
"foreign" : "prs_perslid"
|
||||
},
|
||||
"grouplimit": {
|
||||
"dbs": "prs_kostenplaatsgrp_limiet",
|
||||
"label": L("lcl_prs_limiet"),
|
||||
"typ": "number"
|
||||
},
|
||||
"limitperiod": {
|
||||
"dbs": "prs_kostenplaatsgrp_limperiode",
|
||||
"label": L("lcl_prs_limietperiode"),
|
||||
"typ": "number",
|
||||
"LOV": "0;" + L("lcl_prs_none") +
|
||||
";1;" + L("lcl_prs_month") +
|
||||
";2;" + L("lcl_prs_year")
|
||||
}
|
||||
};
|
||||
|
||||
if (S("bgt_enabled"))
|
||||
{
|
||||
this.fields["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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.REST_GET = generic_REST_GET(this);
|
||||
// Nog even readonly
|
||||
//this.REST_POST = generic_REST_POST(this);
|
||||
//this.REST_PUT = generic_REST_PUT(this);
|
||||
//this.REST_DELETE = generic_REST_DELETE(this);
|
||||
}
|
||||
%>
|
||||
39
APPL/MGT/prs_kostenplaats.asp
Normal file
39
APPL/MGT/prs_kostenplaats.asp
Normal file
@@ -0,0 +1,39 @@
|
||||
<%@language = "javascript" %>
|
||||
<% /*
|
||||
$Revision$
|
||||
$Id$
|
||||
|
||||
File: prs_kostenplaats.asp
|
||||
|
||||
Description: fac_management aanroep van model_prs_kostenplaats
|
||||
|
||||
Context:
|
||||
|
||||
Notes:
|
||||
*/
|
||||
%>
|
||||
<!-- #include file="../scf/scaffolding.inc" -->
|
||||
<!-- #include file="../api2/model_prs_kostenplaats.inc" -->
|
||||
<%
|
||||
var this_model = new model_prs_kostenplaats();
|
||||
|
||||
scaffolding(this_model,
|
||||
{
|
||||
"search": {
|
||||
"filters": [
|
||||
"name",
|
||||
"description",
|
||||
"person",
|
||||
"costcentregroup"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"columns": [
|
||||
"name",
|
||||
"description",
|
||||
"person",
|
||||
"costcentregroup"
|
||||
]
|
||||
}
|
||||
});
|
||||
%>
|
||||
38
APPL/MGT/prs_kostenplaatsgrp.asp
Normal file
38
APPL/MGT/prs_kostenplaatsgrp.asp
Normal file
@@ -0,0 +1,38 @@
|
||||
<%@language = "javascript" %>
|
||||
<% /*
|
||||
$Revision$
|
||||
$Id$
|
||||
|
||||
File: prs_kostenplaatsgrp.asp
|
||||
|
||||
Description: fac_management aanroep van model_prs_kostenplaatsgrp
|
||||
|
||||
Context:
|
||||
|
||||
Notes:
|
||||
*/
|
||||
%>
|
||||
<!-- #include file="../scf/scaffolding.inc" -->
|
||||
<!-- #include file="../api2/model_prs_kostenplaatsgrp.inc" -->
|
||||
<%
|
||||
var this_model = new model_prs_kostenplaatsgrp();
|
||||
|
||||
scaffolding(this_model,
|
||||
{
|
||||
"search": {
|
||||
"autosearch": true,
|
||||
"filters": [
|
||||
"name",
|
||||
"code",
|
||||
"person"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"columns": [
|
||||
"name",
|
||||
"code",
|
||||
"person"
|
||||
]
|
||||
}
|
||||
});
|
||||
%>
|
||||
Reference in New Issue
Block a user