AAIT#40392 mogelijkheid om (app)notificaties naar meerdere (bedrijfs)adressen te kunnen sturen

svn path=/Website/trunk/; revision=35291
This commit is contained in:
Jos Groot Lipman
2017-09-13 09:26:15 +00:00
parent c37252d986
commit ee55dc58b9
2 changed files with 30 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ function model_aut_client_perslid(params)
this.table = "aut_client_perslid";
this.primary = "aut_client_perslid_key";
this.autSELF = "person";
this.autfunction = "WEB_FACFAC";
this.autfunction = params.self?false:"WEB_FACFAC";
this.record_title = L("aut_client_perslid");
this.records_title = L("aut_client_perslid_m");
@@ -38,6 +38,12 @@ function model_aut_client_perslid(params)
"desc": "aut_client_omschrijving"
}
},
"registrationdate": {
"dbs": "aut_client_perslid_aanmaak",
"label": L("aut_client_perslid_aanmaak"),
"typ": "datetime",
"readonly": "true"
},
"device_id": {
"dbs": "aut_client_perslid_device_id",
"label": L("aut_client_perslid_device_id"),
@@ -111,5 +117,20 @@ function model_aut_client_perslid(params)
this.REST_PUT = generic_REST_PUT(this);
this.REST_DELETE = generic_REST_DELETE(this);
}
/*
TODO: je eigen device_name mogen bewerken en registratie mogen verwijderen
if (params.self) // Alleen device_name bewerken
{
for (var fld in this.fields)
{
if (fld != 'device_name')
{
this.fields[fld].readonly = true;
if (!inArray(fld,["autclient", "autclient","registrationdate", "refreshdate"]))
this.fields[fld].hidden_fld = true;
}
}
}
*/
}
%>

View File

@@ -16,7 +16,11 @@
<!-- #include file="../mgt/mgt_tools.inc" -->
<!-- #include file="../api2/model_aut_client_perslid.inc" -->
<%
var this_model = new model_aut_client_perslid();
var params = {};
if (getQParamInt("person", -1) == user_key)
params.self = true;
var this_model = new model_aut_client_perslid(params);
scaffolding(this_model,
{
@@ -30,14 +34,15 @@ scaffolding(this_model,
"list": {
"columns": [
"autclient",
"registrationdate",
//"scope",
"refreshdate",
//"refreshdate",
"login",
"device_name"
]
},
"edit": {
"modal": false
"modal": true
}
});
%>