svn path=/Website/trunk/; revision=28746
This commit is contained in:
@@ -18,6 +18,9 @@ model_mld_disc_params =
|
||||
"primary": "mld_disc_params_key",
|
||||
"records_name": "mld_disc_params",
|
||||
"record_name": "mld_disc_params",
|
||||
"autfunction": "WEB_PRSSYS",
|
||||
|
||||
|
||||
"fields": {
|
||||
"id": {
|
||||
"dbs": "mld_disc_params_key",
|
||||
@@ -31,62 +34,166 @@ model_mld_disc_params =
|
||||
"typ": "key",
|
||||
"hidden_fld": true
|
||||
},
|
||||
"mld_disc_params_preposttime": {
|
||||
"dbs": "mld_disc_params_preposttime",
|
||||
"label": L("res_catalogus_preposttime"),
|
||||
"typ": "float",
|
||||
"defaultvalue": 0,
|
||||
required: true
|
||||
"treatmentgroup": {
|
||||
"dbs": "mld_behandelgroep_key",
|
||||
"label": L("mld_behandelgroep"),
|
||||
"typ": "key",
|
||||
"foreign": {
|
||||
"tbl": "mld_behandelgroep",
|
||||
"key": "mld_behandelgroep_key",
|
||||
"desc": "mld_behandelgroep_naam"
|
||||
},
|
||||
"mld_disc_params_notify": {
|
||||
"dbs": "mld_disc_params_notify",
|
||||
"label": L("res_catalogus_notify"),
|
||||
"filter": "exact"
|
||||
},
|
||||
"orderlimiet1": {
|
||||
"dbs": "mld_disc_params_bestellimiet",
|
||||
"label": L("mld_discipline_bestellimiet1"),
|
||||
"typ": "float"
|
||||
},
|
||||
"orderlimiet2": {
|
||||
"dbs": "mld_disc_params_bestellimiet2",
|
||||
"label": L("mld_discipline_bestellimiet2"),
|
||||
"typ": "float"
|
||||
},
|
||||
"orderlimiet3": {
|
||||
"dbs": "mld_disc_params_bestellimiet3",
|
||||
"label": L("mld_discipline_bestellimiet3"),
|
||||
"typ": "float"
|
||||
},
|
||||
"orderlimiet4": {
|
||||
"dbs": "mld_disc_params_bestellimiet4",
|
||||
"label": L("mld_discipline_bestellimiet4"),
|
||||
"typ": "float"
|
||||
},
|
||||
"orderlimiet5": {
|
||||
"dbs": "mld_disc_params_bestellimiet5",
|
||||
"label": L("mld_discipline_bestellimiet5"),
|
||||
"typ": "float"
|
||||
},
|
||||
"chargebudget": {
|
||||
"dbs": "mld_disc_params_pgb",
|
||||
"label": L("mld_discipline_pgb"),
|
||||
"typ": "number",
|
||||
"LOV": L("mld_discipline_pgbLOV"),
|
||||
"emptyoption": null
|
||||
},
|
||||
"adjuststartdate": {
|
||||
"dbs": "mld_disc_params_startdatum",
|
||||
"label": L("mld_discipline_startdatum"),
|
||||
"typ": "check"
|
||||
},
|
||||
"mld_disc_params_kosten": {
|
||||
"dbs": "mld_disc_params_kosten",
|
||||
"label": L("res_catalogus_kosten"),
|
||||
"defaultvalue": 100,
|
||||
"typ": "number"
|
||||
},
|
||||
"mld_disc_params_noti_dagen": {
|
||||
"dbs": "mld_disc_params_noti_dagen",
|
||||
"label": L("res_catalogus_noti_dagen"),
|
||||
"typ": "number"
|
||||
},
|
||||
"mld_disc_params_expire_dagen": {
|
||||
"dbs": "mld_disc_params_expire_dagen",
|
||||
"label": L("res_catalogus_expire_dagen"),
|
||||
"foprocess": {
|
||||
"dbs": "mld_disc_params_directklaar",
|
||||
"label": L("mld_discipline_fo_process"),
|
||||
"typ": "number",
|
||||
"defaultvalue": 1,
|
||||
"required": true
|
||||
"LOV": L("mld_discipline_fo_processLOV"),
|
||||
"emptyoption": null
|
||||
},
|
||||
"mld_disc_params_expire_tijd": {
|
||||
"dbs": "mld_disc_params_expire_tijd",
|
||||
"label": L("res_catalogus_expire_tijd"),
|
||||
"forward": {
|
||||
"dbs": "mld_disc_params_keten",
|
||||
"label": L("mld_discipline_forward"),
|
||||
"typ": "check"
|
||||
},
|
||||
"mld_disc_params_frontendprio": {
|
||||
"dbs": "mld_disc_params_frontendprio",
|
||||
"label": "mld_discipline_setprio",
|
||||
"typ": "check"
|
||||
},
|
||||
"owncost": {
|
||||
"dbs": "mld_disc_params_eigen_kp",
|
||||
"label": L("mld_discipline_eigenkp"),
|
||||
"typ": "check"
|
||||
},
|
||||
"invoicemarginpct": {
|
||||
"dbs": "mld_disc_params_factuurpct",
|
||||
"label": L("mld_discipline_marginpct"),
|
||||
"typ": "number",
|
||||
"defaultvalue": 0
|
||||
},
|
||||
"invoicemargin": {
|
||||
"dbs": "mld_disc_params_factuurmarge",
|
||||
"label": L("mld_discipline_margin"),
|
||||
"typ": "float",
|
||||
"LOV": api2.getTimetable() // TODO timepicker?
|
||||
"defaultvalue": 0
|
||||
},
|
||||
"mld_disc_params_cancel_dagen": {
|
||||
"dbs": "mld_disc_params_cancel_dagen",
|
||||
"label": L("res_catalogus_cancel_dagen"),
|
||||
"invoicematchmode": {
|
||||
"dbs": "mld_disc_params_factmatchmode",
|
||||
"label": L("mld_discipline_match"),
|
||||
"typ": "number",
|
||||
"LOV": L("mld_discipline_matchLOV"),
|
||||
"emptyoption": null
|
||||
},
|
||||
"invoiceapprove": {
|
||||
"dbs": "mld_disc_params_factuurappr",
|
||||
"label": L("mld_discipline_autofiat"),
|
||||
"typ": "check"
|
||||
},
|
||||
"invoicebelow": {
|
||||
"dbs": "mld_disc_params_factuurgrens",
|
||||
"label": L("mld_discipline_belowfiat"),
|
||||
"typ": "number"
|
||||
},
|
||||
"mld_disc_params_remoteurl": {
|
||||
"dbs": "mld_disc_params_remoteurl",
|
||||
"label": L("res_catalogus_remoteurl"),
|
||||
"typ": "varchar"
|
||||
},
|
||||
"mld_disc_params_maxduur": {
|
||||
"dbs": "mld_disc_params_maxduur",
|
||||
"label": L("res_catalogus_maxduur"),
|
||||
"notifybo": {
|
||||
"dbs": "mld_disc_params_bonotify",
|
||||
"label": L("mld_discipline_bonotify"),
|
||||
"typ": "number",
|
||||
"defaultvalue": 0,
|
||||
"required": true
|
||||
"LOV": L("mld_discipline_bonotifyLOV"),
|
||||
"emptyoption": null
|
||||
},
|
||||
"notifybe": {
|
||||
"dbs": "mld_disc_params_benotify",
|
||||
"label": L("mld_discipline_benotify"),
|
||||
"typ": "check0"
|
||||
},
|
||||
"notifycust": {
|
||||
"dbs": "mld_disc_params_notify",
|
||||
"label": L("mld_discipline_custnotify"),
|
||||
"typ": "number",
|
||||
"LOV": L("mld_discipline_custnotifyLOV"),
|
||||
"emptyoption": null
|
||||
},
|
||||
"reminderdays": {
|
||||
"dbs": "mld_disc_params_noti_dagen",
|
||||
"label": L("mld_discipline_noti_dagen"),
|
||||
"typ": "number"
|
||||
},
|
||||
"mandatoryfrom": {
|
||||
"dbs": "mld_disc_params_opdr_kosten",
|
||||
"label": L("mld_discipline_opdr_kosten"),
|
||||
"typ": "number",
|
||||
"LOV": L("mld_discipline_opdr_kostenLOV"),
|
||||
"emptyoption": null
|
||||
},
|
||||
"activity": {
|
||||
"dbs": "fac_activiteit_key",
|
||||
"label": L("mld_discipline_activiteit"),
|
||||
"typ": "key",
|
||||
"foreign": {
|
||||
"tbl": "fac_activiteit",
|
||||
"key": "fac_activiteit_key",
|
||||
"desc": "fac_activiteit_omschrijving"
|
||||
}
|
||||
},
|
||||
|
||||
"autfunction": "WEB_PRSSYS"
|
||||
"autooffer": {
|
||||
"dbs": "mld_disc_params_offerteauto",
|
||||
"label": L("mld_discipline_autoofferte"),
|
||||
"typ": "check",
|
||||
"defaultvalue": 1
|
||||
},
|
||||
"fenotes": {
|
||||
"dbs": "mld_disc_params_fenotes",
|
||||
"label": L("mld_discipline_interactfe"),
|
||||
"typ": "number",
|
||||
"LOV": L("mld_discipline_interactfeLOV"),
|
||||
"defaultvalue": 0,
|
||||
"emptyoption": null
|
||||
},
|
||||
"offhours": {
|
||||
"dbs": "mld_disc_params_offhours",
|
||||
"label": L("mld_discipline_offhours"),
|
||||
"typ": "check"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
api2.generic_REST(model_mld_disc_params);
|
||||
|
||||
@@ -37,6 +37,12 @@ _model_mld_discipline = // Internal only
|
||||
"primary": "ins_discipline_key",
|
||||
"records_name": "issuedisciplines",
|
||||
"record_name": "issuediscipline",
|
||||
"autfunction": "WEB_MLDMGT",
|
||||
"record_title": L("mld_discipline"),
|
||||
"records_title": L("mld_discipline_m"),
|
||||
"soft_delete": "ins_discipline_verwijder",
|
||||
|
||||
|
||||
"fields": {
|
||||
"id": {
|
||||
"dbs": "ins_discipline_key",
|
||||
@@ -47,14 +53,15 @@ _model_mld_discipline = // Internal only
|
||||
},
|
||||
"disciplinetype": {
|
||||
"dbs": "ins_srtdiscipline_key",
|
||||
"label": L("ins_srtdiscipline"),
|
||||
"typ": "key",
|
||||
"foreign" : {
|
||||
"tbl": "ins_srtdiscipline",
|
||||
"key": "ins_srtdiscipline_key",
|
||||
"desc": "ins_srtdiscipline_omschrijving"
|
||||
},
|
||||
"filter": "like",
|
||||
label: L("lcl_mld_categorie")
|
||||
"emptyoption": null,
|
||||
"filter": "exact"
|
||||
},
|
||||
"name": {
|
||||
"dbs": "ins_discipline_omschrijving",
|
||||
@@ -65,7 +72,7 @@ _model_mld_discipline = // Internal only
|
||||
},
|
||||
"costtype": {
|
||||
"dbs": "prs_kostensoort_key",
|
||||
"label": L("prs_kostensoort_key"),
|
||||
"label": L("prs_kostensoort"),
|
||||
"typ": "key",
|
||||
"foreign": {
|
||||
"tbl": "PRS_KOSTENSOORT",
|
||||
@@ -82,8 +89,8 @@ _model_mld_discipline = // Internal only
|
||||
"dbs": "ins_discipline_module",
|
||||
"label": L("ins_discipline_module"),
|
||||
"typ": "varchar",
|
||||
required: true,
|
||||
defaultvalue: "RES",
|
||||
"required": true,
|
||||
"defaultvalue": "RES",
|
||||
"hidden_fld": true
|
||||
},
|
||||
"ins_discipline_email": {
|
||||
@@ -102,93 +109,9 @@ _model_mld_discipline = // Internal only
|
||||
"typ": "number"
|
||||
}
|
||||
},
|
||||
"disc_params": { model: model_mld_disc_params,
|
||||
joinfield: "mld_ins_discipline_key"
|
||||
},
|
||||
"soft_delete": "ins_discipline_verwijder",
|
||||
"list": {
|
||||
"columns": [
|
||||
"id",
|
||||
"name",
|
||||
"costtype",
|
||||
"disciplinetype"
|
||||
]
|
||||
},
|
||||
"search": {
|
||||
"autosearch": true,
|
||||
"filters": ["disciplinetype"]
|
||||
},
|
||||
"autfunction": "WEB_MLDMGT",
|
||||
"record_title": L("lcl_vakgroup")
|
||||
// , "records_title": L("ins_tab_discipline_m")
|
||||
"disc_params": {
|
||||
"model": model_mld_disc_params,
|
||||
"joinfield": "mld_ins_discipline_key"
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
FACXSL_LCL('ins_srtdiscipline_key', 'Vakgroeptype', 'Discipline type', 'Innendiensttyp', 'Type de groupe de service')
|
||||
FACXSL_LCL('ins_discipline_omschrijving', 'Omschrijving', 'Description', 'Umschreibung', 'Description')
|
||||
FACXSL_LCL('prs_kostensoort_key', 'Kostensoort', 'Cost category', 'Kostenart', 'Type de co<63>ts')
|
||||
FACXSL_LCL('ins_discipline_kpnverplicht', 'Kostenplaats verplicht', 'Cost centre required', 'Kostenstelle erfordlich', 'Centre de co<63>ts obligatoire')
|
||||
FACXSL_LCL('ins_discipline_module', 'INS_DISCIPLINE_MODULE', '@@', '@@', '@@')
|
||||
FACXSL_LCL('ins_discipline_email', 'E-mail afzender notificaties', 'E-mail sender notifications', 'E-mail Absender Notifikationen', 'Exp<78>diteur e-mail des notifications')
|
||||
FACXSL_LCL('ins_discipline_ktopercentage', 'Klanttevredenheidsmeting percentage', 'Customer satisfaction survey %', 'Befragung zur Kundenzufriedenheit %', 'Enqu<71>te')
|
||||
FACXSL_LCL('ins_discipline_ktodrempel', 'Klanttevredenheidsmeting drempel', 'Customer satisfaction survey threshold', 'Befragung zur Kundenzufriedenheit Schwelle', 'Seuil d''enqu<71>te')
|
||||
FACXSL_LCL('ins_tab_discipline', 'Vakgroep', 'Discipline', 'Innendienst', 'Groupe de service')
|
||||
FACXSL_LCL('ins_tab_discipline_m', 'Vakgroepen', '@@', '@@', '@@')
|
||||
|
||||
----------------------------
|
||||
Page event show:
|
||||
'Zoek het vakgroeptype op
|
||||
|
||||
if fldINS_SRTDISCIPLINE_KEY <> "" then
|
||||
sqlOmschrijving = "select ins_srtdiscipline_omschrijving "&_
|
||||
"from ins_srtdiscipline "&_
|
||||
"where ins_srtdiscipline_key = " & ToSQL(fldINS_SRTDISCIPLINE_KEY, "Number")
|
||||
openrs rsOmschrijving, sqlOmschrijving
|
||||
if not rsOmschrijving.EOF then
|
||||
fldINS_SRTDISCIPLINE_KEY = getValue(rsOmschrijving,"ins_srtdiscipline_omschrijving")
|
||||
end if
|
||||
rsOmschrijving.Close
|
||||
end if
|
||||
|
||||
----------------------------
|
||||
Page event open:
|
||||
tmpWhere = ""
|
||||
pINS_DISCIPLINE_OMSCHRIJVING = getParam("sINS_DISCIPLINE_OMSCHRIJVING")
|
||||
if not isEmpty(pINS_DISCIPLINE_OMSCHRIJVING) then
|
||||
hasParam = true
|
||||
tmpWhere = tmpWhere & " Upper(INS_DISCIPLINE_OMSCHRIJVING) like '%" & UCase(replace(pINS_DISCIPLINE_OMSCHRIJVING,"'","''")) & "%'"
|
||||
end if
|
||||
|
||||
if tmpWhere <> "" then
|
||||
sSQL = sSQL & " AND (" & tmpWhere & ")"
|
||||
end if
|
||||
|
||||
----------------------------
|
||||
Form event show:
|
||||
'Zoek het vakgroeptype op
|
||||
|
||||
if fldINS_SRTDISCIPLINE_KEY <> "" then
|
||||
sqlOmschrijving = "select ins_srtdiscipline_omschrijving "&_
|
||||
"from ins_srtdiscipline "&_
|
||||
"where ins_srtdiscipline_key = " & ToSQL(fldINS_SRTDISCIPLINE_KEY, "Number")
|
||||
openrs rsOmschrijving, sqlOmschrijving
|
||||
if not rsOmschrijving.EOF then
|
||||
fldINS_SRTDISCIPLINE_KEY = getValue(rsOmschrijving,"ins_srtdiscipline_omschrijving")
|
||||
end if
|
||||
rsOmschrijving.Close
|
||||
end if
|
||||
|
||||
----------------------------
|
||||
Form event open:
|
||||
tmpWhere = ""
|
||||
pINS_DISCIPLINE_OMSCHRIJVING = getParam("sINS_DISCIPLINE_OMSCHRIJVING")
|
||||
if not isEmpty(pINS_DISCIPLINE_OMSCHRIJVING) then
|
||||
hasParam = true
|
||||
tmpWhere = tmpWhere & " Upper(INS_DISCIPLINE_OMSCHRIJVING) like '%" & UCase(replace(pINS_DISCIPLINE_OMSCHRIJVING,"'","''")) & "%'"
|
||||
end if
|
||||
|
||||
if tmpWhere <> "" then
|
||||
sSQL = sSQL & " AND (" & tmpWhere & ")"
|
||||
end if
|
||||
*/
|
||||
%>
|
||||
39
APPL/MGT/mld_discipline.asp
Normal file
39
APPL/MGT/mld_discipline.asp
Normal file
@@ -0,0 +1,39 @@
|
||||
<%@language = "javascript" %>
|
||||
<% /*
|
||||
$Revision$
|
||||
$Id$
|
||||
|
||||
File: mld_discipline.asp
|
||||
|
||||
Description: fac_management aanroep van model_mld_discipline
|
||||
|
||||
Context:
|
||||
|
||||
Notes:
|
||||
*/
|
||||
%>
|
||||
<!-- #include file="../scf/scaffolding.inc" -->
|
||||
<!-- #include file="../api2/model_mld_discipline.inc" -->
|
||||
<%
|
||||
var this_model = new model_mld_discipline();
|
||||
|
||||
scaffolding(this_model,
|
||||
{
|
||||
"search": {
|
||||
"autosearch": true,
|
||||
"filters": [
|
||||
"name",
|
||||
"disciplinetype"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"columns": [
|
||||
"id",
|
||||
"name",
|
||||
"costtype",
|
||||
"disciplinetype"
|
||||
|
||||
]
|
||||
}
|
||||
});
|
||||
%>
|
||||
Reference in New Issue
Block a user