FSN#35338 Alle CodeCharge schermen herschrijven naar gewoon ASP II

svn path=/Website/trunk/; revision=28633
This commit is contained in:
Erik Groener
2016-03-25 10:50:06 +00:00
parent 2ed77e4377
commit f7129dc022
6 changed files with 353 additions and 3 deletions

View File

@@ -137,7 +137,7 @@ function model_cad_thema()
"radios": [
{
"name": "sleepbaar",
"label": "Sleepbaar",
"label": L("cad_thema_sleepbaar"),
"mask": 128
}
]
@@ -151,13 +151,13 @@ function model_cad_thema()
},
"_generate": {
"dbs": "dual.dummy",
"label": "Genereer legenda",
"label": L("cad_thema_genereren"),
"typ": "check",
"hidden": true
},
"_update": {
"dbs": "dual.dummy",
"label": "Bijwerken legenda",
"label": L("cad_thema_bijwerken"),
"typ": "check",
"hidden": true
}

View File

@@ -0,0 +1,113 @@
<% /*
$Revision$
$Id$
File: model_ins_disc_params.inc
Description: Vanuit CodeCharge gegenereerd model voor ins_discipline
Context:
Notes: *uitsluitend* gebruikt als include van model_ins_discipline
*/
%>
<%
model_ins_disc_params =
{
"table": "ins_disc_params",
"primary": "ins_disc_params_key",
"records_name": "ins_disc_params",
"record_name": "ins_disc_params",
"autfunction": "WEB_INSMGT",
"fields": {
"id": {
"dbs": "ins_disc_params_key",
"label": "Key",
"typ": "key",
"seq": "ins_s_ins_disc_params_key"
},
"autonumber": {
"dbs": "ins_disc_params_autonum",
"label": L("ins_discipline_autonum"),
"typ": "number",
"LOV": L("ins_discipline_autonumLOV"),
"emptyoption": null
},
"ins_discipline_key": {
"dbs": "ins_discipline_key",
"label": "Foreign key",
"typ": "key",
"hidden": true
},
"cadlayer": {
"dbs": "ins_disc_params_cadlayers",
"label": L("ins_discipline_cadlayer"),
"typ": "varchar"
},
"type": {
"dbs": "ins_disc_params_type",
"label": L("ins_discipline_type"),
"typ": "number",
"bits": [
{
"name": "binnen",
"label": L("ins_discipline_grafisch_binnen"),
"typ": "radio",
"mask": 5,
"radios": [
{
"mask": 0,
"label": L("ins_discipline_grafisch_nvt")
},
{
"mask": 1,
"label": L("ins_discipline_grafisch_uit")
},
{
"mask": 5,
"label": L("ins_discipline_grafisch_aan")
}
]
},
{
"name": "buiten",
"label": L("ins_discipline_grafisch_buiten"),
"typ": "radio",
"mask": 10,
"radios": [
{
"mask": 0,
"label": L("ins_discipline_grafisch_nvt")
},
{
"mask": 2,
"label": L("ins_discipline_grafisch_uit")
},
{
"mask": 10,
"label": L("ins_discipline_grafisch_aan")
}
]
},
{
"name": "",
"label": "",
"typ": "check",
"mask": 16,
"radios": [
{
"name": "label",
"label": L("ins_discipline_label"),
"mask": 16
}
]
}
]
}
}
}
api2.generic_REST(model_ins_disc_params);
%>

View File

@@ -0,0 +1,88 @@
<% /*
$Revision$
$Id$
File: model_ins_discipline.inc
Description: Vanuit CodeCharge gegenereerd model voor ins_discipline
Context:
Notes:
*/
%>
<!-- #include file="../api2/model_ins_disc_params.inc" -->
<%
function model_ins_discipline(disc_key, params)
{
// E<>n model voor de buitenwereld
api2.merge_disc_params_model(this, _model_ins_discipline);
this.REST_GET = generic_REST_GET(_model_ins_discipline, // Let op: de originele _model_ins_discipline
{ "GET": {
wheres: [ "ins_tab_discipline.ins_discipline_module = 'INS'"
]
}
}
);
this.REST_POST = generic_REST_POST(_model_ins_discipline);
this.REST_PUT = generic_REST_PUT(_model_ins_discipline);
this.REST_DELETE = generic_REST_DELETE(this, {});
}
_model_ins_discipline = // Internal only
{
"table": "ins_tab_discipline",
"primary": "ins_discipline_key",
"records_name": "ins_disciplines",
"record_name": "ins_discipline",
"soft_delete": "ins_discipline_verwijder",
"autfunction": "WEB_INSMGT",
"record_title": L("ins_discipline"),
"records_title": L("ins_discipline_m"),
"fields": {
"id": {
"dbs": "ins_discipline_key",
"label": "Key",
"typ": "key",
"required": true,
"filter": "exact",
"seq": "ins_s_ins_discipline_key"
},
"name": {
"dbs": "ins_discipline_omschrijving",
"label": L("ins_discipline_omschrijving"),
"typ": "varchar",
"translate": true,
"required": true
},
"min_level": {
"dbs": "ins_discipline_min_level",
"label": L("ins_discipline_minlevel"),
"typ": "key",
"required": true,
"LOV": L("ins_discipline_minlevelLOV")
},
"chargetype": {
"dbs": "prs_kostensoort_key",
"label": L("prs_kostensoort_key"),
"typ": "key",
"foreign": {
"tbl": "PRS_KOSTENSOORT",
"key": "PRS_KOSTENSOORT_KEY",
"desc": "PRS_KOSTENSOORT_OMS"
},
"LOVinit": ""
}
},
/* Velden van INS_DISC_PARAMS komen er dynamisch bij */
"disc_params": {
"model": model_ins_disc_params,
"joinfield": "ins_discipline_key"
}
}
%>

View File

@@ -0,0 +1,68 @@
<% /*
$Revision$
$Id$
File: model_ins_srtgroep.inc
Description: Vanuit CodeCharge gegenereerd model voor ins_srtgroep
Context:
Notes:
*/
%>
<%
function model_ins_srtgroep()
{
this.table = "ins_srtgroep";
this.primary = "ins_srtgroep_key";
this.records_name = "ins_srtgroeps";
this.record_name = "ins_srtgroep";
this.soft_delete = "ins_srtgroep_verwijder";
this.autfunction = "WEB_INSMGT";
this.record_title = L("ins_srtgroep");
this.records_title = L("ins_srtgroep_m");
this.fields = {
"id": {
"dbs": "ins_srtgroep_key",
"label": "Key",
"typ": "key",
"required": true,
"filter": "exact",
"seq": "ins_s_ins_srtgroep_key",
"defaultvalue": null
},
"catalogue": {
"dbs": "ins_discipline_key",
"label": L("ins_srtgroep_catalogus"),
"typ": "key",
"required": true,
"insertonly": true,
"foreign": {
"tbl": "ins_v_aanwezigdiscipline",
"key": "ins_discipline_key",
"desc": "ins_discipline_omschrijving"
},
"LOVinit": "",
"defaultvalue": null
},
"name": {
"dbs": "ins_srtgroep_omschrijving",
"label": L("ins_srtgroep_omschrijving"),
"typ": "varchar",
"required": true,
"translate": true,
"filter": "like"
}
};
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, {});
}
%>

View File

@@ -0,0 +1,43 @@
<%@language = "javascript" %>
<% /*
$Revision$
$Id$
File: ins_discipline.asp
Description: fac_management aanroep van model_ins_discipline
Context:
Notes:
*/
%>
<!-- #include file="../scf/scaffolding.inc" -->
<!-- #include file="../api2/model_ins_discipline.inc" -->
<%
var this_model = new model_ins_discipline();
scaffolding(this_model,
{
"search": {
"autosearch": true,
"filters": [
"name"
]
},
"list": {
"columns": [
"id",
"name",
"min_level",
"chargetype"
]
} //,
// "edit": {
// "requires": {
// js: ["./ins_discipline.js"]
// }
// }
});
%>

38
APPL/MGT/ins_srtgroep.asp Normal file
View File

@@ -0,0 +1,38 @@
<%@language = "javascript" %>
<% /*
$Revision$
$Id$
File: ins_srtgroep.asp
Description: fac_management aanroep van model_ins_srtgroep
Context:
Notes:
*/
%>
<!-- #include file="../scf/scaffolding.inc" -->
<!-- #include file="../api2/model_ins_srtgroep.inc" -->
<%
var this_model = new model_ins_srtgroep();
scaffolding(this_model,
{
"search": {
"autosearch": true,
"filters": [
"catalogue",
"name"
]
},
"list": {
"columns": [
"id",
"name",
"catalogue"
]
}
});
%>