<%= i18n.headers.hostName %> | | <%= generatedReport.hostName %> |
<%= i18n.headers.generatedDate %> | <%= generatedReport.generatedDate %> |
<% for (var cnt = 0; cnt < generatedReport.reports.length; cnt++) { %>
|
| <%= generatedReport.reports[cnt].name %> |
<% var eDate = otdsCommon.convertLDAPDateToReadableDate_v2 (generatedReport.reports[cnt].expiryDate);
if(eDate.substring(0,4) != "9999") {
%>
<%= i18n.headers.oTLicenseExpiryDate %> | <%= eDate %> |
<% } %>
<%= i18n.headers.oTLicenseModel %> | <%= generatedReport.reports[cnt].model %> |
<%= i18n.headers.oTLicenseProduct %> | <%= generatedReport.reports[cnt].product %> |
<%= i18n.headers.oTLicenseProductVersion %> | <%= generatedReport.reports[cnt].version %> |
<%= i18n.headers.oTLicenseType %> | <%= generatedReport.reports[cnt].type %> |
<%= i18n.headers.totalUnits %> | <%= generatedReport.reports[cnt].unitsInUse %> / <%= generatedReport.reports[cnt].unitsTotal %>
<%= generatedReport.reports[cnt].unitMeasurement %>
<% if(generatedReport.reports[cnt].unitDuration != "Never") {%>
<%= generatedReport.reports[cnt].unitDuration %><% } %> |
<% if(that.d_reportType != "KEYSUMMARY") {
if(generatedReport.reports[cnt].reports && generatedReport.reports[cnt].reports[0]) { %>
<%= i18n.headers.rep.type %> | <%= generatedReport.reports[cnt].reports[0].type %> |
<% if(that.d_reportType == "COMPLIANCE") { %>
<%= i18n.headers.rep.startDate %> |
<%= i18n.headers.rep.endDateTime %> |
<%= i18n.headers.rep.unitValue %> |
<%= i18n.headers.rep.min %> |
<%= i18n.headers.rep.max %> |
<%= i18n.headers.rep.sum %> |
<%= i18n.headers.rep.ytd %> |
<%= i18n.headers.rep.flags %> |
<% for (var r = 0; r < generatedReport.reports[cnt].reports.length; r++) {
var rep = generatedReport.reports[cnt].reports[r]; %>
<%= rep.startDate %> |
<%= rep.endDateTime %> |
<%= rep.unitValue %> |
<%= rep.min %> |
<%= rep.max %> |
<%= rep.sum %> |
<%= rep.ytd %> |
<%= (rep.has1st ? "": "1") %>
<%= (rep.hasLast ? "" : "2") %>
<%= (rep.allValuesPresent ? "":"3") %>
<%= (rep.approximated ? "~":"") %> |
<% } %>
<% } else if(that.d_reportType == "KEYDETAILS") { %>
<%= i18n.headers.rep.startDate %> |
<%= i18n.headers.rep.unitValue %> |
|
<% for (var r = 0; r < generatedReport.reports[cnt].reports.length; r++) {
var rep = generatedReport.reports[cnt].reports[r];
var sd = rep.startDate.match(/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\.\d{3}.)?/); %>
<%= sd.splice(1,3).join("-")+" "+sd.splice(1,3).join(":")+(sd[1] ? sd[1]:"") %> |
<%= rep.unitValue %> |
<%= (rep.tamperingDetected ? "4":"") %> |
<% } %>
<% } else if(that.d_reportType == "USERREALLOCATION") { var lastU=null, lastP=null;%>
<%= i18n.headers.rep.userName %> |
<%= i18n.headers.rep.startDate %> |
<%= i18n.headers.rep.action %> |
<%= i18n.headers.rep.licenseIdDest %> |
<%= i18n.headers.rep.partition %> |
|
<% for (var r = 0; r < generatedReport.reports[cnt].reports.length; r++) {
var rep = generatedReport.reports[cnt].reports[r];
var sd = rep.startDate.match(/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\.\d{3}.)?/); %>
<%= (rep.userName != lastU ? rep.userName : "") %> |
<%= sd.splice(1,3).join("-")+" "+sd.splice(1,3).join(":")+(sd[1] ? sd[1]:"") %> |
<%= rep.action %> |
<%= rep.licenseIdDest %> |
<%= (rep.partition != lastP ? rep.partition : "") %> |
<%= (rep.tamperingDetected ? "4":"") %> |
<% lastU = rep.userName; lastP = rep.partition; %>
<% } %>
<% } %>
<% if(that.d_reportType != "USERREALLOCATION") { %><%= i18n.headers.legend1 %> <% } %>
<%= i18n.headers.legend2 %>
<% if(that.d_reportType != "USERREALLOCATION") { %> <%= i18n.headers.legend3 %><% } %>
|
<% } else {%>
<%= i18n.headers.noData %> | |
<% } %>
<% } %>
<% } %>
<% } %>