last_jobs_list_body: 'lats_jobs_list_body'
},
init: function(data) {
- this.destroy();
- this.set_table(data);
- },
- destroy: function() {
if (this.last_jobs_table) {
- this.last_jobs_table.destroy();
+ update_job_table(this.last_jobs_table, data);
+ } else {
+ this.set_table(data);
}
},
set_table: function(data) {
data: data,
bInfo: false,
paging: false,
- searching: false,
deferRender: true,
+ dom: 'lBfrtip',
+ stateSave: true,
+ buttons: [
+ 'copy', 'csv', 'colvis'
+ ],
columns: [
{
className: 'details-control',
data: 'name',
responsivePriority: 2
},
+ {
+ data: 'type',
+ render: function(data, type, row) {
+ return JobType.get_type(data);
+ },
+ visible: false,
+ },
{
data: 'level',
render: function(data, type, row) {
},
responsivePriority: 3
},
+ {
+ data: 'clientid',
+ visible: false
+ },
+ {
+ data: 'client',
+ visible: false
+ },
+ {
+ data: 'schedtime',
+ render: render_date,
+ visible: false
+ },
{
data: 'starttime',
render: render_date,
responsivePriority: 5
},
+ {
+ data: 'endtime',
+ render: render_date,
+ visible: false
+ },
+ {
+ data: 'realendtime',
+ render: render_date,
+ visible: false
+ },
+ {
+ data: 'jobtdate',
+ render: render_date_ts,
+ visible: false
+ },
+ {
+ data: 'volsessionid',
+ visible: false
+ },
+ {
+ data: 'volsessiontime',
+ render: render_date_ts,
+ visible: false
+ },
+ {
+ data: 'jobbytes',
+ render: render_bytes
+ },
+ {
+ data: 'readbytes',
+ render: render_bytes,
+ visible: false
+ },
+ {data: 'jobfiles'},
{
data: 'jobstatus',
render: render_jobstatus,
responsivePriority: 4
+ },
+ {
+ data: 'joberrors',
+ visible: false
+ },
+ {
+ data: 'jobmissingfiles',
+ visible: false
+ },
+ {
+ data: 'poolid',
+ visible: false
+ },
+ {
+ data: 'pool',
+ visible: false
+ },
+ {
+ data: 'filesetid',
+ visible: false
+ },
+ {
+ data: 'fileset',
+ visible: false
+ },
+ {
+ data: 'priorjobid',
+ visible: false
+ },
+ {
+ data: 'purgedfiles',
+ visible: false
+ },
+ {
+ data: 'hasbase',
+ visible: false
+ },
+ {
+ data: 'reviewed',
+ visible: false
+ },
+ {
+ data: 'comment',
+ visible: false
+ },
+ {
+ data: 'filetable',
+ visible: false
}
],
responsive: {
},
{
className: "dt-center",
- targets: [ 1, 3, 4, 5 ]
+ targets: [ 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29 ]
}],
order: [1, 'desc']
});
document.getElementById(this.ids.clients.jobs).textContent = occupancy;
},
update_job_access: function() {
- // get last 10 jobs
- var data = this.stats.jobs.slice(0, 10);
+ // get last 15 jobs
+ var data = this.stats.jobs.slice(0, 15);
oLastJobsList.init(data);
},
update_jobs: function() {
<div class="w3-right">
<h3 id="client_no">-</h3>
</div>
- <div class="w3-clear"></div>
<h4><%[ Clients ]%></h4>
<div class="w3-text">
<p class="w3-small"><%[ The most often used: ]%> <strong><span id="client_most"></span></strong></p>
<div class="w3-right">
<h3 id="job_no">-</h3>
</div>
- <div class="w3-clear"></div>
<h4><%[ Finished jobs ]%></h4>
<div class="w3-text">
<p class="w3-small"><%[ The most often used: ]%> <strong><span id="job_most"></span></strong></p>
<div class="w3-right">
<h3 id="pool_no">-</h3>
</div>
- <div class="w3-clear"></div>
<h4><%[ Pools ]%></h4>
<div class="w3-text">
<p class="w3-small"><%[ The most often used: ]%> <strong><span id="pool_most"></span></strong></p>
<div class="w3-right">
<h3 id="jobs_total_bytes">-</h3>
</div>
- <div class="w3-clear"></div>
<h4><%[ Total bytes ]%></h4>
<div class="w3-text">
<p><%[ Total files: ]%><strong><span id="jobs_total_files"></span></strong></p>
<div class="dashboard_graph">
<div id="jobs_summary_graph"></div>
</div>
- <div class="w3-card-4 w3-padding-16 w3-margin-top">
- <header class="w3-container w3-light-grey">
- <h3><i class="fa fa-database w3-xxxlarge"></i> <%[ Database ]%></h3>
+ <div class="w3-card-4 w3-padding-16 w3-margin-top w3-margin-bottom">
+ <header class="w3-container w3-light-grey w3-half w3-left">
+ <h4 class="w3-center"><i class="fa fa-database w3-xxlarge"></i> <span style="vertical-align: super"><%[ Database ]%></span></h4>
</header>
- <div class="w3-container">
- <p><%[ Database type: ]%> <span id="database_type"></span></p>
- <p><%[ Database size: ]%> <span id="database_size"></span></p>
+ <div class="w3-container w3-half w3-left">
+ <div class="w3-padding-small"><%[ Database type: ]%> <span id="database_type"></span></div>
+ <div class="w3-padding-small"><%[ Database size: ]%> <span id="database_size"></span></div>
</div>
+ <div class="w3-clear"></div>
</div>
+ <com:TActiveLinkButton
+ OnClick="loadRunJobModal"
+ Attributes.onclick="document.getElementById('run_job').style.display='block'"
+ Style="text-decoration: none"
+ >
+ <div class="w3-container w3-blue w3-third w3-center w3-padding-small w3-margin-right w3-margin-bottom">
+ <p style="margin: 10px 0"><%[ Run job ]%> <i class="fa fa-play"></i></p>
+ </div>
+ </com:TActiveLinkButton>
+ <a href="<%=$this->Service->constructUrl('RestoreWizard')%>" style="text-decoration: none">
+ <div class="w3-container w3-blue w3-rest w3-center w3-padding-small w3-margin-bottom">
+ <p style="margin: 10px 0"><%[ Perform restore ]%> <i class="fa fa-reply w3-large"></i></p>
+ </div>
+ </a>
+ <com:Application.Web.Portlets.RunJob ID="RunJobModal" />
</div>
<div class="w3-twothird">
- <h5><%[ Last 10 jobs ]%></h5>
<table id="last_jobs_list" class="w3-table w3-striped w3-hoverable w3-white w3-margin-bottom" style="width: 100%">
<thead>
<tr>
<th></th>
<th><%[ JobId ]%></th>
<th><%[ Name ]%></th>
+ <th><%[ Type ]%></th>
<th><%[ Level ]%></th>
+ <th>ClientId</th>
+ <th><%[ Client ]%></th>
+ <th><%[ Scheduled time ]%></th>
<th><%[ Start time ]%></th>
+ <th><%[ End time ]%></th>
+ <th><%[ Real end time ]%></th>
+ <th>JobTDate</th>
+ <th>VolSessionId</th>
+ <th>VolSessionTime</th>
+ <th><%[ Size ]%></th>
+ <th><%[ Read bytes ]%></th>
+ <th><%[ Files ]%></th>
<th><%[ Job status ]%></th>
+ <th><%[ Job errors ]%></th>
+ <th><%[ Job missing files ]%></th>
+ <th>PoolId</th>
+ <th><%[ Pool ]%></th>
+ <th>FileSetId</th>
+ <th><%[ FileSet ]%></th>
+ <th>PriorJobId</th>
+ <th><%[ Purged files ]%></th>
+ <th><%[ Has base ]%></th>
+ <th><%[ Reviewed ]%></th>
+ <th><%[ Comment ]%></th>
+ <th><%[ File table ]%></th>
</tr>
</thead>
<tbody id="last_jobs_list_body">
</tbody>
</table>
<button type="button" class="w3-button w3-dark-grey w3-right w3-margin-bottom" onclick="document.location.href='<%=$this->Service->constructUrl('JobHistoryList')%>'"><%[ More jobs ]%> <i class="fa fa-arrow-right"></i></button>
- <div class="w3-clear"></div>
- <com:TActiveLinkButton
- OnClick="loadRunJobModal"
- Attributes.onclick="document.getElementById('run_job').style.display='block'"
- Style="text-decoration: none"
- >
- <div class="w3-container w3-blue w3-third w3-center w3-padding-16 w3-margin-right">
- <h1><%[ Run job ]%> <i class="fa fa-play w3-xlarge"></i></h1>
- </div>
- </com:TActiveLinkButton>
- <a href="<%=$this->Service->constructUrl('RestoreWizard')%>" style="text-decoration: none">
- <div class="w3-container w3-blue w3-rest w3-center w3-padding-16">
- <h1><%[ Perform restore ]%> <i class="fa fa-reply w3-xlarge"></i></h1>
- </div>
- </a>
- <com:Application.Web.Portlets.RunJob ID="RunJobModal" />
</div>
</div>
</div>