FCLT#80456 Testmogelijkheid voor sensorfunctionaliteit (beheerders)
svn path=/Website/trunk/; revision=62822
This commit is contained in:
@@ -53,7 +53,7 @@ authparams = user.checkAutorisation("WEB_PRSSYS");
|
||||
<body class="modal" target='hidFrame' id="mod_history">
|
||||
<% MODAL_START(); %>
|
||||
<form name=u2 method=post action="ins_edit_deel_state_save.asp">
|
||||
<% MODAL_BLOCK_START("", L("lcl_ins_sensor_manual"), { icon: "fa-hand" });
|
||||
<% MODAL_BLOCK_START("", L("lcl_ins_sensor_manual"), { icon: "fa-gauge-circle-plus" });
|
||||
RWFIELDTR("state", "fldshort", L("lcl_ins_sensor_value"), "", { required: true, maxlength: 128 });
|
||||
%>
|
||||
<input type='hidden' id='ins_key' name='ins_key' value='<%=ins_key%>'>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
$Id$
|
||||
|
||||
File: ins_state_history.asp
|
||||
Beschrijving: Toont de state-history van een object met gegeven key
|
||||
Beschrijving: Toont de state-history van een object met verplicht gegeven key
|
||||
|
||||
Kan later nog wel worden verfraaid met statistieken enzo.
|
||||
Een datumfilter (van/tot) is ook te verwachten
|
||||
@@ -14,18 +14,16 @@
|
||||
<!--#include file="../Shared/resultset_table_v2.inc" -->
|
||||
<!--#include file="ins.inc" -->
|
||||
<%
|
||||
var ins_key = getQParamInt('ins_key');
|
||||
var ins_key = getQParamInt("ins_key");
|
||||
var this_ins = ins.func_enabled_deel(ins_key);
|
||||
var authparams = user.checkAutorisation("WEB_INSUSE");
|
||||
|
||||
var hasPRSSYS = user.has("WEB_PRSSYS");
|
||||
|
||||
var outputmode = getQParamInt("outputmode", 0);
|
||||
|
||||
var canTamperData = user.has("WEB_PRSSYS") && user.has("WEB_INSMSU");
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<% FCLTHeader.Generate({ outputmode: outputmode }); %>
|
||||
ins_deel_state_history_key
|
||||
<script type="text/javascript">
|
||||
function insDelete(rowArray, isMulti)
|
||||
{
|
||||
@@ -83,10 +81,10 @@ ins_deel_state_history_key
|
||||
var addurl = "appl/ins/ins_add_state_history.asp";
|
||||
var buttons = [{ icon: "fa-fclt-refresh", title: L("lcl_refresh"), action: "FcltMgr.reload()" }];
|
||||
|
||||
if (hasPRSSYS)
|
||||
if (canTamperData)
|
||||
{
|
||||
var addurl = "ins_edit_deel_state.asp?ins_key=" + ins_key;
|
||||
buttons.push({ icon: "fa-hand", title: L("lcl_ins_sensor_manual"), action: "FcltMgr.openModalDetail('" + addurl + "', '" + safe.jsstring(L("lcl_ins_add_sensor_value")) + "', { callback: FcltMgr.reload })" });
|
||||
buttons.push({ icon: "fa-gauge-circle-plus", title: L("lcl_ins_sensor_manual"), action: "FcltMgr.openModalDetail('" + addurl + "', '" + safe.jsstring(L("lcl_ins_add_sensor_value")) + "', { callback: FcltMgr.reload })" });
|
||||
}
|
||||
|
||||
function formatDaysHoursMinutesSeconds(decimalDuration) {
|
||||
@@ -142,7 +140,7 @@ ins_deel_state_history_key
|
||||
rst.addColumn(new Column({caption: L("lcl_deel_stateintervalsec"), content: formatIntervalSeconds, datatype: "number", purpose: PRINTING_ONLY}));
|
||||
rst.addColumn(new Column({caption: L("lcl_remark"), content: "ins_deel_state_history_opmerk"}));
|
||||
|
||||
if (hasPRSSYS)
|
||||
if (canTamperData)
|
||||
rst.addAction({ action: "insDelete", caption: L("lcl_delete"), multi: true, multiOnce: true });
|
||||
|
||||
var cnt = rst.processResultset();
|
||||
|
||||
Reference in New Issue
Block a user