|
|
@ -215,7 +215,47 @@
|
|
|
|
dataType: "text"
|
|
|
|
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>{{activityType}}</td>
|
|
|
|
<td>{{processPath}}</td>
|
|
|
|
<td>{{processPath}}</td>
|
|
|
|
<td>{{activityDateTime}}</td>
|
|
|
|
<td>{{activityDateTime}}</td>
|
|
|
|
<td class="negative">{{activityStartDateTime}}</td>
|
|
|
|
<td class="negative
|
|
|
|
|
|
|
|
">{{activityStartDateTime}}</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
{{/result}}
|
|
|
|
{{/result}}
|
|
|
|
</tbody>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
|
</script>
|
|
|
|
</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>
|
|
|
|
<div class="ten wide column rpa-property-list" >
|
|
|
|
<div class="six wide column openrpa-control-panel-general" >
|
|
|
|
<h4 class="ui horizontal divider header">
|
|
|
|
<h4 class="ui horizontal divider header">
|
|
|
|
<i class="clipboard list icon"></i>
|
|
|
|
<i class="clipboard list icon"></i>
|
|
|
|
Plan log
|
|
|
|
Robot control panel
|
|
|
|
</h4>
|
|
|
|
</h4>
|
|
|
|
<div class="ui info message">
|
|
|
|
<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>
|
|
|
|
<i class="sync alternate icon"></i>
|
|
|
|
Refresh
|
|
|
|
<div class="openrpa-refresh-button">Refresh</div>
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="openrpa-info-table-planloglist">
|
|
|
|
<div class="openrpa-control-panel"></div>
|
|
|
|
</div >
|
|
|
|
<script class="openrpa-hidden-control-panel" style="display:none" type="text/x-handlebars-template">
|
|
|
|
<script class="openrpa-hidden-info-table-planloglist" style="display:none" type="text/x-handlebars-template">
|
|
|
|
<div class="ui cards">
|
|
|
|
<table class="ui celled table">
|
|
|
|
{{#RenderRobotList}}
|
|
|
|
<thead>
|
|
|
|
<div class="card">
|
|
|
|
<tr>
|
|
|
|
<div class="content">
|
|
|
|
<th>#</th>
|
|
|
|
<div class="right floated mini ui ">
|
|
|
|
<th>Activity type</th>
|
|
|
|
{{{HeaderRightText}}}
|
|
|
|
<th>Time</th>
|
|
|
|
</div>
|
|
|
|
<th>Process path/Process name</th>
|
|
|
|
<div class="header">
|
|
|
|
</tr>
|
|
|
|
{{{HeaderLeftText}}}
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
</div>
|
|
|
|
{{#result}}
|
|
|
|
<div class="meta">
|
|
|
|
<tr>
|
|
|
|
{{{SubheaderText}}}
|
|
|
|
<td>{{@index}}</td>
|
|
|
|
</div>
|
|
|
|
<td>{{activityType}}</td>
|
|
|
|
<div class="description">
|
|
|
|
<td>{{time}}</td>
|
|
|
|
<ul style="padding-inline-start:16px;margin:0px">
|
|
|
|
<td>{{processPathName}}</td>
|
|
|
|
{{#BodyKeyValueList}}
|
|
|
|
</tr>
|
|
|
|
<li>{{{Key}}}: {{{Value}}}</li>
|
|
|
|
{{/result}}
|
|
|
|
{{/BodyKeyValueList}}
|
|
|
|
</tbody>
|
|
|
|
</ul>
|
|
|
|
</table>
|
|
|
|
</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>
|
|
|
|
</script>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|