Skip to content

Instantly share code, notes, and snippets.

@mygeekdaddy
Created July 24, 2022 16:00
Show Gist options
  • Save mygeekdaddy/dae4314483b3c562380c5a00eeec0b63 to your computer and use it in GitHub Desktop.
Save mygeekdaddy/dae4314483b3c562380c5a00eeec0b63 to your computer and use it in GitHub Desktop.
Missed PM Error Report
<?xml version="1.0" encoding="UTF-8"?>
<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.23" id="1">
<property name="author">Jason Very</property>
<property name="comments">Copyright 2022 - Jason Verly&#13;
&#13;
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:&#13;
&#13;
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.&#13;
&#13;
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.&#13;
&#13;
09-19764@000</property>
<property name="createdBy">Eclipse BIRT Designer Version 4.3.1.v201309091055 Build &lt;4.3.1.v20130917-1035></property>
<html-property name="description">Report will generte of a matrix of potential reasons a PM record did not generate a work order with the automated work order generation method.</html-property>
<property name="units">in</property>
<method name="initialize"><![CDATA[importPackage(Packages.com.ibm.tivoli.maximo.report.script);
mxReportScriptContext = MXReportScriptContext.initialize(reportContext);
mxReportScriptContext.setDefaultLogLevel("DEBUG");
mxReportScriptContext.setDefaultLogFile("c:/temp/missed_pm_detail.log");]]></method>
<method name="beforeFactory"><![CDATA[// Remove page break intervals from PDF output
if ( (reportContext.getParameterValue("usepagebreaks") == "false")|| reportContext.getOutputFormat() == "pdf" ) {
// Give each table in the report a name, and add the names to the list below, e.g. ["mainTable", "childTable1"]
var tableListing = ["mainTable"];
for each(var tableName in tableListing) {
var table = reportContext.getReportRunnable().designHandle.getDesignHandle().findElement(tableName)
if (table != null)
{
table.setProperty("pageBreakInterval", 0);
}
}
}]]></method>
<method name="afterFactory"><![CDATA[MXReportScriptContext.close();]]></method>
<property name="theme">MaximoSystemLibrary.maximoTheme</property>
<text-property name="displayName">Tivoli Maximo Portrait List Template</text-property>
<property name="layoutPreference">auto layout</property>
<property name="bidiLayoutOrientation">ltr</property>
<property name="imageDPI">96</property>
<list-property name="libraries">
<structure>
<property name="fileName">MaximoSystemLibrary.rptlibrary</property>
<property name="namespace">MaximoSystemLibrary</property>
</structure>
</list-property>
<parameters>
<scalar-parameter name="where" id="25">
<property name="valueType">static</property>
<property name="isRequired">false</property>
<property name="dataType">string</property>
<simple-property-list name="defaultValue">
<value type="constant">1=1</value>
</simple-property-list>
<property name="controlType">text-box</property>
<structure name="format">
<property name="category">Unformatted</property>
</structure>
</scalar-parameter>
<scalar-parameter name="appname" id="200">
<property name="valueType">static</property>
<property name="isRequired">false</property>
<property name="dataType">string</property>
<property name="controlType">text-box</property>
<structure name="format">
<property name="category">Unformatted</property>
</structure>
</scalar-parameter>
<scalar-parameter name="paramdelimiter" id="202">
<property name="hidden">true</property>
<property name="valueType">static</property>
<property name="isRequired">false</property>
<property name="dataType">string</property>
<property name="controlType">text-box</property>
<structure name="format">
<property name="category">Unformatted</property>
</structure>
</scalar-parameter>
<scalar-parameter name="paramstring" id="201">
<property name="hidden">true</property>
<property name="valueType">static</property>
<property name="isRequired">false</property>
<property name="dataType">string</property>
<property name="controlType">text-box</property>
<structure name="format">
<property name="category">Unformatted</property>
</structure>
</scalar-parameter>
<scalar-parameter name="usepagebreaks" id="342">
<property name="hidden">true</property>
<property name="valueType">static</property>
<property name="isRequired">false</property>
<property name="dataType">string</property>
<property name="distinct">true</property>
<simple-property-list name="defaultValue">
<value type="constant">true</value>
</simple-property-list>
<property name="paramType">simple</property>
<property name="controlType">text-box</property>
<structure name="format">
<property name="category">Unformatted</property>
</structure>
</scalar-parameter>
</parameters>
<data-sources>
<script-data-source name="maximoDataSource" id="64" extends="MaximoSystemLibrary.maximoDataSource"/>
</data-sources>
<data-sets>
<script-data-set name="dataSet" id="5">
<list-property name="resultSetHints">
<structure>
<property name="position">1</property>
<property name="name">pmnum</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">2</property>
<property name="name">description</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">3</property>
<property name="name">siteid</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">4</property>
<property name="name">worktype</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">5</property>
<property name="name">jpnum</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">6</property>
<property name="name">pm_nextdate_stat</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">7</property>
<property name="name">pm_asset_stat</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">8</property>
<property name="name">pm_loc_stat</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">9</property>
<property name="name">pm_item_stat</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">10</property>
<property name="name">pm_inv_stat</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">11</property>
<property name="name">pm_strm_stat</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">12</property>
<property name="name">pm_lead_stat</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">13</property>
<property name="name">pm_route_stat</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">14</property>
<property name="name">pm_supv_stat</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">15</property>
<property name="name">jp_labor_stat</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">16</property>
<property name="name">nextdate</property>
<property name="dataType">date</property>
</structure>
<structure>
<property name="position">17</property>
<property name="name">extdate</property>
<property name="dataType">date</property>
</structure>
<structure>
<property name="position">18</property>
<property name="name">pm_targdate_stat</property>
<property name="dataType">string</property>
</structure>
</list-property>
<list-property name="columnHints">
<structure>
<property name="columnName">pmnum</property>
</structure>
<structure>
<property name="columnName">description</property>
</structure>
<structure>
<property name="columnName">siteid</property>
</structure>
<structure>
<property name="columnName">worktype</property>
</structure>
<structure>
<property name="columnName">jpnum</property>
</structure>
<structure>
<property name="columnName">pm_nextdate_stat</property>
</structure>
<structure>
<property name="columnName">pm_asset_stat</property>
</structure>
<structure>
<property name="columnName">pm_loc_stat</property>
</structure>
<structure>
<property name="columnName">pm_item_stat</property>
</structure>
<structure>
<property name="columnName">pm_inv_stat</property>
</structure>
<structure>
<property name="columnName">pm_strm_stat</property>
</structure>
<structure>
<property name="columnName">pm_lead_stat</property>
</structure>
<structure>
<property name="columnName">pm_route_stat</property>
</structure>
<structure>
<property name="columnName">pm_supv_stat</property>
</structure>
<structure>
<property name="columnName">jp_labor_stat</property>
</structure>
<structure>
<property name="columnName">nextdate</property>
</structure>
<structure>
<property name="columnName">extdate</property>
</structure>
<structure>
<property name="columnName">pm_targdate_stat</property>
</structure>
</list-property>
<structure name="cachedMetaData">
<list-property name="resultSet">
<structure>
<property name="position">1</property>
<property name="name">pmnum</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">2</property>
<property name="name">description</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">3</property>
<property name="name">siteid</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">4</property>
<property name="name">worktype</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">5</property>
<property name="name">jpnum</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">6</property>
<property name="name">pm_nextdate_stat</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">7</property>
<property name="name">pm_asset_stat</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">8</property>
<property name="name">pm_loc_stat</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">9</property>
<property name="name">pm_item_stat</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">10</property>
<property name="name">pm_inv_stat</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">11</property>
<property name="name">pm_strm_stat</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">12</property>
<property name="name">pm_lead_stat</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">13</property>
<property name="name">pm_route_stat</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">14</property>
<property name="name">pm_supv_stat</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">15</property>
<property name="name">jp_labor_stat</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">16</property>
<property name="name">nextdate</property>
<property name="dataType">date</property>
</structure>
<structure>
<property name="position">17</property>
<property name="name">extdate</property>
<property name="dataType">date</property>
</structure>
<structure>
<property name="position">18</property>
<property name="name">pm_targdate_stat</property>
<property name="dataType">string</property>
</structure>
</list-property>
</structure>
<property name="dataSource">maximoDataSource</property>
<method name="open"><![CDATA[maximoDataSet = MXReportDataSetProvider.create(this.getDataSource().getName(), this.getName());
maximoDataSet.open();
var sqlText = new String();
// Add query to sqlText variable.
sqlText = "select pm.pmnum, pm.description, pm.siteid, pm.nextdate, pm.extdate, pm.worktype, pm.jpnum, "
+ " case when pm.nextdate is null then 'X' else null end as pm_nextdate_stat, "
+ " case when pm.usetargetdate = 0 then 'X' else null end as pm_targdate_stat, "
+ " case when exists(select null from asset where assetnum=pm.assetnum and siteid=pm.siteid and status <> 'OPERATING') then 'X' else null end as pm_asset_stat, "
+ " case when exists(select null from locations where location=pm.location and siteid=pm.siteid and status <> 'operating') then 'X' else null end as pm_loc_stat, "
+ " case when exists(select null from item where status <> 'ACTIVE' and itemnum in (select itemnum from jobmaterial where siteid=pm.siteid and itemnum=item.itemnum and itemsetid=item.itemsetid and pmnum=pm.pmnum and jpnum=pm.jpnum) ) then 'X' else null end as pm_item_stat, "
+ " case when exists(select null from inventory where status <> 'ACTIVE' and itemnum in (select itemnum from jobmaterial where siteid=inventory.siteid and location=inventory.location and itemnum=inventory.itemnum and itemsetid=inventory.itemsetid and pmnum=pm.pmnum and jpnum=pm.jpnum) ) then 'X' else null end as pm_inv_stat, "
+ " case when exists(select null from jobmaterial where pmnum=pm.pmnum and siteid=pm.siteid and jpnum=pm.jpnum and location is null) then 'X' else null end as pm_strm_stat, "
+ " case when exists(select null from person where personid=pm.lead and status <> 'ACTIVE') then 'X' else null end as pm_lead_stat, "
+ " case when exists(select null from routes where route=pm.route and siteid=pm.siteid and route in (select route from route_stop where siteid=routes.siteid and route=routes.route and ( (assetnum is not null and assetnum in (select assetnum from asset where siteid=route_stop.siteid and assetnum=route_stop.assetnum and status <> 'OPERATING')) or (location is not null and location in (select location from locations where siteid=route_stop.siteid and location=route_stop.location and status <> 'OPERATING'))))) then 'X' else null end as pm_route_stat, "
+ " case when exists(select null from person where personid=pm.supervisor and status <> 'ACTIVE') then 'X' else null end as pm_supv_stat, "
+ " case when exists(select null from jobplan where jpnum=pm.jpnum and siteid=pm.siteid and jpnum in (select jpnum from joblabor where jpnum=jobplan.jpnum and siteid=jobplan.siteid and exists(select null from labor where laborcode=joblabor.laborcode and orgid=joblabor.orgid and status <> 'ACTIVE' ))) then 'X' else null end as jp_labor_stat "
+ " from pm "
// Include the Maximo where clause
+ " where " + params["where"]
+ " and pm.status='active' and PM.PMACTMETER = 0 and "
+ " ((pm.nextdate <= convert(date, getdate()+1) or pm.nextdate is null) and (pm.extdate < convert(date, getdate()+1) or pm.extdate is null)) "
+ " order by pm.pmnum "
;
maximoDataSet.setQuery(sqlText);]]></method>
<method name="fetch"><![CDATA[if (!maximoDataSet.fetch())
return (false);
// Add a line for each output column
// The specific get method should match the data type of the output column.
row["pmnum"] = maximoDataSet.getString("pmnum");
row["description"] = maximoDataSet.getString("description");
row["siteid"] = maximoDataSet.getString("siteid");
row["worktype"] = maximoDataSet.getString("worktype");
row["jpnum"] = maximoDataSet.getString("jpnum");
row["pm_targdate_stat"] = maximoDataSet.getString("pm_targdate_stat");
row["pm_nextdate_stat"] = maximoDataSet.getString("pm_nextdate_stat");
row["pm_asset_stat"] = maximoDataSet.getString("pm_asset_stat");
row["pm_loc_stat"] = maximoDataSet.getString("pm_loc_stat");
row["pm_item_stat"] = maximoDataSet.getString("pm_item_stat");
row["pm_inv_stat"] = maximoDataSet.getString("pm_inv_stat");
row["pm_strm_stat"] = maximoDataSet.getString("pm_strm_stat");
row["pm_lead_stat"] = maximoDataSet.getString("pm_lead_stat");
row["pm_route_stat"] = maximoDataSet.getString("pm_route_stat");
row["pm_supv_stat"] = maximoDataSet.getString("pm_supv_stat");
row["jp_labor_stat"] = maximoDataSet.getString("jp_labor_stat");
row["nextdate"] = maximoDataSet.getTimestamp("nextdate");
row["extdate"] = maximoDataSet.getTimestamp("extdate");
// pm.pmnum, pm.description, pm.siteid, pm.nextdate, pm.extdate, pm.worktype, pm.jpnum
return (true);]]></method>
</script-data-set>
</data-sets>
<styles>
<style name="crosstab-cell" id="370">
<property name="borderBottomColor">#CCCCCC</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">1pt</property>
<property name="borderLeftColor">#CCCCCC</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1pt</property>
<property name="borderRightColor">#CCCCCC</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1pt</property>
<property name="borderTopColor">#CCCCCC</property>
<property name="borderTopStyle">solid</property>
<property name="borderTopWidth">1pt</property>
</style>
<style name="crosstab" id="371">
<property name="borderBottomColor">#CCCCCC</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">1pt</property>
<property name="borderLeftColor">#CCCCCC</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1pt</property>
<property name="borderRightColor">#CCCCCC</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1pt</property>
<property name="borderTopColor">#CCCCCC</property>
<property name="borderTopStyle">solid</property>
<property name="borderTopWidth">1pt</property>
</style>
</styles>
<page-setup>
<simple-master-page name="maximoPortrait" id="343" extends="MaximoSystemLibrary.maximoPortrait">
<property name="orientation">landscape</property>
<overridden-values>
<ref-entry baseId="342" name="NewGrid21" id="344">
<list-property name="visibility">
<structure>
<property name="format">all</property>
<expression name="valueExpr" type="javascript">true</expression>
</structure>
</list-property>
</ref-entry>
<ref-entry baseId="343" id="345"/>
<ref-entry baseId="344" id="346"/>
<ref-entry baseId="345" id="347"/>
<ref-entry baseId="346" id="348"/>
<ref-entry baseId="348" id="350"/>
<ref-entry baseId="349" name="NewImage2" id="351"/>
<ref-entry baseId="350" name="NewGrid3" id="352"/>
<ref-entry baseId="351" id="353"/>
<ref-entry baseId="352" id="354"/>
<ref-entry baseId="353" id="355"/>
<ref-entry baseId="354" id="356"/>
<ref-entry baseId="355" name="NewText2" id="357"/>
<ref-entry baseId="356" id="358"/>
<ref-entry baseId="357" name="NewGrid11" id="359"/>
<ref-entry baseId="358" id="360"/>
<ref-entry baseId="359" id="361"/>
<ref-entry baseId="360" id="362"/>
<ref-entry baseId="361" id="363"/>
<ref-entry baseId="362" id="364"/>
<ref-entry baseId="363" name="NewAutoText2" id="365"/>
<ref-entry baseId="364" id="366">
<property name="textAlign">center</property>
</ref-entry>
<ref-entry baseId="365" name="NewText11" id="367"/>
<ref-entry baseId="366" id="368"/>
<ref-entry baseId="367" name="NewAutoText11" id="369">
<property name="textAlign">left</property>
</ref-entry>
</overridden-values>
</simple-master-page>
</page-setup>
<body>
<table name="mainTable" id="7">
<property name="comments">09-19764@000</property>
<property name="fontFamily">sans-serif</property>
<property name="width">100%</property>
<property name="dataSet">dataSet</property>
<list-property name="boundDataColumns">
<structure>
<property name="name">total_rec</property>
<expression name="expression">Total.count()</expression>
<property name="dataType">any</property>
</structure>
<structure>
<property name="name">pmnum</property>
<text-property name="displayName">pmnum</text-property>
<expression name="expression" type="javascript">dataSetRow["pmnum"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">description</property>
<text-property name="displayName">description</text-property>
<expression name="expression" type="javascript">dataSetRow["description"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">siteid</property>
<text-property name="displayName">siteid</text-property>
<expression name="expression" type="javascript">dataSetRow["siteid"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">worktype</property>
<text-property name="displayName">worktype</text-property>
<expression name="expression" type="javascript">dataSetRow["worktype"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">pm_nextdate_stat</property>
<text-property name="displayName">pm_nextdate_stat</text-property>
<expression name="expression" type="javascript">dataSetRow["pm_nextdate_stat"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">nextdate</property>
<text-property name="displayName">nextdate</text-property>
<expression name="expression" type="javascript">dataSetRow["nextdate"]</expression>
<property name="dataType">date</property>
</structure>
<structure>
<property name="name">extdate</property>
<text-property name="displayName">extdate</text-property>
<expression name="expression" type="javascript">dataSetRow["extdate"]</expression>
<property name="dataType">date</property>
</structure>
<structure>
<property name="name">pm_lead_stat</property>
<text-property name="displayName">pm_lead_stat</text-property>
<expression name="expression" type="javascript">dataSetRow["pm_lead_stat"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">pm_supv_stat</property>
<text-property name="displayName">pm_supv_stat</text-property>
<expression name="expression" type="javascript">dataSetRow["pm_supv_stat"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">jp_labor_stat</property>
<text-property name="displayName">jp_labor_stat</text-property>
<expression name="expression" type="javascript">dataSetRow["jp_labor_stat"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">pm_loc_stat</property>
<text-property name="displayName">pm_loc_stat</text-property>
<expression name="expression" type="javascript">dataSetRow["pm_loc_stat"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">pm_asset_stat</property>
<text-property name="displayName">pm_asset_stat</text-property>
<expression name="expression" type="javascript">dataSetRow["pm_asset_stat"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">pm_route_stat</property>
<text-property name="displayName">pm_route_stat</text-property>
<expression name="expression" type="javascript">dataSetRow["pm_route_stat"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">pm_item_stat</property>
<text-property name="displayName">pm_item_stat</text-property>
<expression name="expression" type="javascript">dataSetRow["pm_item_stat"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">pm_inv_stat</property>
<text-property name="displayName">pm_inv_stat</text-property>
<expression name="expression" type="javascript">dataSetRow["pm_inv_stat"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">pm_strm_stat</property>
<text-property name="displayName">pm_strm_stat</text-property>
<expression name="expression" type="javascript">dataSetRow["pm_strm_stat"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">pm_targdate_stat</property>
<text-property name="displayName">pm_targdate_stat</text-property>
<expression name="expression" type="javascript">dataSetRow["pm_targdate_stat"]</expression>
<property name="dataType">string</property>
</structure>
</list-property>
<property name="pageBreakInterval">50</property>
<column id="83">
<property name="width">1in</property>
</column>
<column id="468"/>
<column id="399">
<property name="width">0.5in</property>
</column>
<column id="496">
<property name="width">0.5in</property>
</column>
<column id="393">
<property name="width">0.5in</property>
</column>
<column id="387">
<property name="width">0.5in</property>
</column>
<column id="381">
<property name="width">0.5in</property>
</column>
<column id="423">
<property name="width">0.5in</property>
</column>
<column id="429">
<property name="width">0.5in</property>
</column>
<column id="87">
<property name="width">0.5in</property>
</column>
<column id="444">
<property name="width">0.5in</property>
</column>
<column id="438">
<property name="width">0.5in</property>
</column>
<column id="17">
<property name="width">0.8in</property>
</column>
<column id="491">
<property name="width">0.2in</property>
</column>
<header>
<row id="471">
<property name="style">title</property>
<cell id="472">
<property name="colSpan">12</property>
<property name="rowSpan">1</property>
<property name="whiteSpace">nowrap</property>
<text-data id="486">
<property name="whiteSpace">nowrap</property>
<expression name="valueExpr">'Missed PM Details for ' + row["siteid"]</expression>
<property name="contentType">html</property>
</text-data>
</cell>
<cell id="484"/>
<cell id="487"/>
</row>
<row id="8">
<property name="style">tabledetailslabel</property>
<property name="textAlign">center</property>
<cell id="80">
<property name="style">tabledetailslabelcell</property>
<property name="borderBottomWidth">1px</property>
<label id="96">
<text-property name="text">PM Num</text-property>
</label>
</cell>
<cell id="465">
<property name="style">tabledetailslabelcell</property>
<property name="borderBottomWidth">1px</property>
<property name="borderLeftColor">#808080</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1px</property>
<property name="borderRightColor">#808080</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1px</property>
<label id="469">
<text-property name="text">PM Desc</text-property>
</label>
</cell>
<cell id="396">
<property name="style">tabledetailslabelcell</property>
<property name="borderBottomWidth">1px</property>
<property name="borderLeftColor">#808080</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1px</property>
<property name="borderRightColor">#808080</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1px</property>
<label id="453">
<text-property name="text">NextDate</text-property>
</label>
</cell>
<cell id="493">
<property name="style">tabledetailslabelcell</property>
<property name="borderBottomWidth">1px</property>
<property name="borderLeftColor">#808080</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1px</property>
<property name="borderRightColor">#808080</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1px</property>
<label id="497">
<text-property name="text">Target</text-property>
</label>
</cell>
<cell id="390">
<property name="style">tabledetailslabelcell</property>
<property name="borderBottomWidth">1px</property>
<property name="borderLeftColor">#808080</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1px</property>
<property name="borderRightColor">#808080</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1px</property>
<label id="454">
<text-property name="text">Lead</text-property>
</label>
</cell>
<cell id="384">
<property name="style">tabledetailslabelcell</property>
<property name="borderBottomWidth">1px</property>
<property name="borderLeftColor">#808080</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1px</property>
<property name="borderRightColor">#808080</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1px</property>
<label id="455">
<text-property name="text">Supv</text-property>
</label>
</cell>
<cell id="378">
<property name="style">tabledetailslabelcell</property>
<property name="borderBottomWidth">1px</property>
<property name="borderLeftColor">#808080</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1px</property>
<property name="borderRightColor">#808080</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1px</property>
<label id="456">
<text-property name="text">Labor</text-property>
</label>
</cell>
<cell id="420">
<property name="style">tabledetailslabelcell</property>
<property name="borderBottomWidth">1px</property>
<property name="borderLeftColor">#808080</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1px</property>
<property name="borderRightColor">#808080</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1px</property>
<label id="457">
<text-property name="text">LocID</text-property>
</label>
</cell>
<cell id="426">
<property name="style">tabledetailslabelcell</property>
<property name="borderBottomWidth">1px</property>
<property name="borderLeftColor">#808080</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1px</property>
<property name="borderRightColor">#808080</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1px</property>
<label id="458">
<text-property name="text">Asset</text-property>
</label>
</cell>
<cell id="84">
<property name="style">tabledetailslabelcell</property>
<property name="borderBottomWidth">1px</property>
<property name="borderLeftColor">#808080</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1px</property>
<property name="borderRightColor">#808080</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1px</property>
<label id="459">
<text-property name="text">Route</text-property>
</label>
</cell>
<cell id="441">
<property name="style">tabledetailslabelcell</property>
<property name="borderBottomWidth">1px</property>
<property name="borderLeftColor">#808080</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1px</property>
<property name="borderRightColor">#808080</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1px</property>
<label id="460">
<text-property name="text">Item #</text-property>
</label>
</cell>
<cell id="435">
<property name="style">tabledetailslabelcell</property>
<property name="borderBottomWidth">1px</property>
<property name="borderLeftColor">#808080</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1px</property>
<property name="borderRightColor">#808080</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1px</property>
<label id="461">
<text-property name="text">Inv #</text-property>
</label>
</cell>
<cell id="9">
<property name="style">tabledetailslabelcell</property>
<property name="borderBottomWidth">1px</property>
<label id="462">
<text-property name="text">Storeroom</text-property>
</label>
</cell>
<cell id="488">
<property name="style">tabledetailslabelcell</property>
<property name="borderBottomStyle">none</property>
</cell>
</row>
</header>
<detail>
<row id="11">
<property name="style">tabledetailsdatarow</property>
<property name="textAlign">center</property>
<list-property name="highlightRules">
<structure>
<property name="operator">is-true</property>
<property name="backgroundColor">#FF8080</property>
<expression name="testExpr" type="javascript">row["pm_nextdate_stat"] == null &amp;&amp;&#13;
row["pm_lead_stat"] == null &amp;&amp;&#13;
row["pm_supv_stat"] == null &amp;&amp;&#13;
row["jp_labor_stat"] == null &amp;&amp;&#13;
row["pm_loc_stat"] == null &amp;&amp;&#13;
row["pm_asset_stat"] == null &amp;&amp;&#13;
row["pm_route_stat"] == null &amp;&amp;&#13;
row["pm_item_stat"] == null &amp;&amp;&#13;
row["pm_inv_stat"] == null &amp;&amp;&#13;
row["pm_strm_stat"] == null &amp;&amp;&#13;
row["pm_targdate_stat"] == null</expression>
</structure>
</list-property>
<cell id="81">
<property name="style">tabledetailsdatacell</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">1px</property>
<property name="borderLeftColor">#808080</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1px</property>
<property name="borderRightColor">#808080</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1px</property>
<data id="372">
<property name="resultSetColumn">pmnum</property>
</data>
</cell>
<cell id="466">
<property name="style">tabledetailsdatacell</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">1px</property>
<property name="borderLeftColor">#808080</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1px</property>
<property name="borderRightColor">#808080</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1px</property>
<data id="470">
<property name="resultSetColumn">description</property>
</data>
</cell>
<cell id="397">
<property name="style">tabledetailsdatacell</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">1px</property>
<property name="borderLeftColor">#808080</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1px</property>
<property name="borderRightColor">#808080</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1px</property>
<data id="400">
<property name="resultSetColumn">pm_nextdate_stat</property>
</data>
</cell>
<cell id="494">
<property name="style">tabledetailsdatacell</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">1px</property>
<property name="borderLeftColor">#808080</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1px</property>
<property name="borderRightColor">#808080</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1px</property>
<data id="498">
<property name="resultSetColumn">pm_targdate_stat</property>
</data>
</cell>
<cell id="391">
<property name="style">tabledetailsdatacell</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">1px</property>
<property name="borderLeftColor">#808080</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1px</property>
<property name="borderRightColor">#808080</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1px</property>
<data id="415">
<property name="resultSetColumn">pm_lead_stat</property>
</data>
</cell>
<cell id="385">
<property name="style">tabledetailsdatacell</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">1px</property>
<property name="borderLeftColor">#808080</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1px</property>
<property name="borderRightColor">#808080</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1px</property>
<data id="416">
<property name="resultSetColumn">pm_supv_stat</property>
</data>
</cell>
<cell id="379">
<property name="style">tabledetailsdatacell</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">1px</property>
<property name="borderLeftColor">#808080</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1px</property>
<property name="borderRightColor">#808080</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1px</property>
<data id="417">
<property name="resultSetColumn">jp_labor_stat</property>
</data>
</cell>
<cell id="421">
<property name="style">tabledetailsdatacell</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">1px</property>
<property name="borderLeftColor">#808080</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1px</property>
<property name="borderRightColor">#808080</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1px</property>
<data id="430">
<property name="resultSetColumn">pm_loc_stat</property>
</data>
</cell>
<cell id="427">
<property name="style">tabledetailsdatacell</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">1px</property>
<property name="borderLeftColor">#808080</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1px</property>
<property name="borderRightColor">#808080</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1px</property>
<data id="431">
<property name="resultSetColumn">pm_asset_stat</property>
</data>
</cell>
<cell id="85">
<property name="style">tabledetailsdatacell</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">1px</property>
<property name="borderLeftColor">#808080</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1px</property>
<property name="borderRightColor">#808080</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1px</property>
<data id="432">
<property name="resultSetColumn">pm_route_stat</property>
</data>
</cell>
<cell id="442">
<property name="style">tabledetailsdatacell</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">1px</property>
<property name="borderLeftColor">#808080</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1px</property>
<property name="borderRightColor">#808080</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1px</property>
<data id="445">
<property name="resultSetColumn">pm_item_stat</property>
</data>
</cell>
<cell id="436">
<property name="style">tabledetailsdatacell</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">1px</property>
<property name="borderLeftColor">#808080</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1px</property>
<property name="borderRightColor">#808080</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1px</property>
<data id="446">
<property name="resultSetColumn">pm_inv_stat</property>
</data>
</cell>
<cell id="12">
<property name="style">tabledetailsdatacell</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">1px</property>
<property name="borderLeftColor">#808080</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1px</property>
<property name="borderRightColor">#808080</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1px</property>
<data id="447">
<property name="resultSetColumn">pm_strm_stat</property>
</data>
</cell>
<cell id="489">
<property name="style">tabledetailsdatacell</property>
<property name="borderBottomStyle">none</property>
<property name="borderBottomWidth">1px</property>
<property name="borderLeftColor">#808080</property>
<property name="borderLeftStyle">none</property>
<property name="borderLeftWidth">1px</property>
<property name="borderRightColor">#808080</property>
<property name="borderRightStyle">none</property>
<property name="borderRightWidth">1px</property>
</cell>
</row>
</detail>
<footer>
<row id="207">
<cell id="208">
<property name="colSpan">13</property>
<property name="rowSpan">1</property>
<property name="borderBottomColor">#000000</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">thin</property>
<property name="borderTopColor">#000000</property>
<property name="borderTopStyle">solid</property>
<property name="borderTopWidth">thin</property>
<grid id="216">
<property name="width">100%</property>
<column id="217">
<property name="style">summarylabel</property>
<property name="width">1.4in</property>
</column>
<column id="218">
<property name="style">summarydata</property>
<property name="width">5.99in</property>
</column>
<row id="219">
<cell id="220">
<label id="222">
<text-property name="text">Number of Records:</text-property>
</label>
</cell>
<cell id="221">
<data id="223">
<property name="resultSetColumn">total_rec</property>
</data>
</cell>
</row>
</grid>
</cell>
<cell id="490">
<property name="borderBottomColor">#000000</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">thin</property>
<property name="borderTopColor">#000000</property>
<property name="borderTopStyle">solid</property>
<property name="borderTopWidth">thin</property>
</cell>
</row>
</footer>
</table>
</body>
</report>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment