|
|
|
@ -215,7 +215,47 @@
|
|
|
|
|
dataType: "text"
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
////////////////////////////////
|
|
|
|
|
///////Control panel
|
|
|
|
|
///////////////////////////////
|
|
|
|
|
///Refresh control panel
|
|
|
|
|
mGlobal.Monitor.fControlPanelRefresh=function() {
|
|
|
|
|
///Загрузка данных
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "GET",
|
|
|
|
|
url: 'Monitor/ControlPanelDictGet',
|
|
|
|
|
data: '',
|
|
|
|
|
success:
|
|
|
|
|
function(lData,l2,l3)
|
|
|
|
|
{
|
|
|
|
|
var lResponseJSON=JSON.parse(lData)
|
|
|
|
|
///Сформировать HTML код новой таблицы
|
|
|
|
|
lHTMLCode=mGlobal.GeneralGenerateHTMLCodeHandlebars(".openrpa-hidden-control-panel",lResponseJSON)
|
|
|
|
|
///Очистить дерево
|
|
|
|
|
//mGlobal.ElementTree.fClear();
|
|
|
|
|
///Прогрузить новую таблицу
|
|
|
|
|
$(".openrpa-control-panel").html(lHTMLCode)
|
|
|
|
|
},
|
|
|
|
|
dataType: "text"
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
///
|
|
|
|
|
mGlobal.Monitor.mControlPanelAutoUpdateSeconds=5;
|
|
|
|
|
mGlobal.Monitor.mControlPanelAutoUpdateSecondsCurrent=5;
|
|
|
|
|
mGlobal.Monitor.fControlPanelAutoUpdateRun=function(inRefreshSeconds) {
|
|
|
|
|
mGlobal.Monitor.mControlPanelAutoUpdateSeconds=inRefreshSeconds;
|
|
|
|
|
//Функция обновления текста кнопки обновления
|
|
|
|
|
lControlPanelUpdate=function() {
|
|
|
|
|
mGlobal.Monitor.mControlPanelAutoUpdateSecondsCurrent=mGlobal.Monitor.mControlPanelAutoUpdateSecondsCurrent-1
|
|
|
|
|
if (mGlobal.Monitor.mControlPanelAutoUpdateSecondsCurrent==-1) {
|
|
|
|
|
mGlobal.Monitor.mControlPanelAutoUpdateSecondsCurrent=mGlobal.Monitor.mControlPanelAutoUpdateSecondsCurrent=mGlobal.Monitor.mControlPanelAutoUpdateSeconds;
|
|
|
|
|
mGlobal.Monitor.fControlPanelRefresh()
|
|
|
|
|
}
|
|
|
|
|
$(".openrpa-control-panel-general .openrpa-refresh-button").html("Refresh "+mGlobal.Monitor.mControlPanelAutoUpdateSecondsCurrent);
|
|
|
|
|
}
|
|
|
|
|
mGlobal.Monitor.mControlPanelAutoUpdateTimerId=setInterval(lControlPanelUpdate,1000)
|
|
|
|
|
}
|
|
|
|
|
mGlobal.Monitor.fControlPanelAutoUpdateRun(5);
|
|
|
|
|
/////////////////////////////////////
|
|
|
|
|
///Инициализация страницы
|
|
|
|
|
////////////////////////////////////
|
|
|
|
@ -315,47 +355,98 @@
|
|
|
|
|
<td>{{activityType}}</td>
|
|
|
|
|
<td>{{processPath}}</td>
|
|
|
|
|
<td>{{activityDateTime}}</td>
|
|
|
|
|
<td class="negative">{{activityStartDateTime}}</td>
|
|
|
|
|
<td class="negative
|
|
|
|
|
">{{activityStartDateTime}}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{{/result}}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</script>
|
|
|
|
|
<div class="rpa-property-list" >
|
|
|
|
|
<h4 class="ui horizontal divider header">
|
|
|
|
|
<i class="clipboard list icon"></i>
|
|
|
|
|
Plan log
|
|
|
|
|
</h4>
|
|
|
|
|
<div class="ui info message">
|
|
|
|
|
<button class="ui icon button labeled" onclick="mGlobal.Info.TablePlanLogListRefresh();">
|
|
|
|
|
<i class="sync alternate icon"></i>
|
|
|
|
|
Refresh
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="openrpa-info-table-planloglist">
|
|
|
|
|
</div >
|
|
|
|
|
<script class="openrpa-hidden-info-table-planloglist" style="display:none" type="text/x-handlebars-template">
|
|
|
|
|
<table class="ui celled table">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>#</th>
|
|
|
|
|
<th>Activity type</th>
|
|
|
|
|
<th>Time</th>
|
|
|
|
|
<th>Process path/Process name</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
{{#result}}
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{{@index}}</td>
|
|
|
|
|
<td>{{activityType}}</td>
|
|
|
|
|
<td>{{time}}</td>
|
|
|
|
|
<td>{{processPathName}}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{{/result}}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</script>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="ten wide column rpa-property-list" >
|
|
|
|
|
<div class="six wide column openrpa-control-panel-general" >
|
|
|
|
|
<h4 class="ui horizontal divider header">
|
|
|
|
|
<i class="clipboard list icon"></i>
|
|
|
|
|
Plan log
|
|
|
|
|
Robot control panel
|
|
|
|
|
</h4>
|
|
|
|
|
<div class="ui info message">
|
|
|
|
|
<button class="ui icon button labeled" onclick="mGlobal.Info.TablePlanLogListRefresh();">
|
|
|
|
|
<button class="ui icon button labeled" onclick="mGlobal.Monitor.fControlPanelRefresh();">
|
|
|
|
|
<i class="sync alternate icon"></i>
|
|
|
|
|
Refresh
|
|
|
|
|
<div class="openrpa-refresh-button">Refresh</div>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="openrpa-info-table-planloglist">
|
|
|
|
|
</div >
|
|
|
|
|
<script class="openrpa-hidden-info-table-planloglist" style="display:none" type="text/x-handlebars-template">
|
|
|
|
|
<table class="ui celled table">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>#</th>
|
|
|
|
|
<th>Activity type</th>
|
|
|
|
|
<th>Time</th>
|
|
|
|
|
<th>Process path/Process name</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
{{#result}}
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{{@index}}</td>
|
|
|
|
|
<td>{{activityType}}</td>
|
|
|
|
|
<td>{{time}}</td>
|
|
|
|
|
<td>{{processPathName}}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{{/result}}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
<div class="openrpa-control-panel"></div>
|
|
|
|
|
<script class="openrpa-hidden-control-panel" style="display:none" type="text/x-handlebars-template">
|
|
|
|
|
<div class="ui cards">
|
|
|
|
|
{{#RenderRobotList}}
|
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="content">
|
|
|
|
|
<div class="right floated mini ui ">
|
|
|
|
|
{{{HeaderRightText}}}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="header">
|
|
|
|
|
{{{HeaderLeftText}}}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class="meta">
|
|
|
|
|
{{{SubheaderText}}}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="description">
|
|
|
|
|
<ul style="padding-inline-start:16px;margin:0px">
|
|
|
|
|
{{#BodyKeyValueList}}
|
|
|
|
|
<li>{{{Key}}}: {{{Value}}}</li>
|
|
|
|
|
{{/BodyKeyValueList}}
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="extra content">
|
|
|
|
|
{{{FooterText}}}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="extra content">
|
|
|
|
|
<div class="ui two buttons">
|
|
|
|
|
{{#FooterButtonX2List}}
|
|
|
|
|
<div class="ui basic {{Color}} button">{{{Text}}}</div>
|
|
|
|
|
{{/FooterButtonX2List}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{{/RenderRobotList}}
|
|
|
|
|
</div>
|
|
|
|
|
</script>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|