-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
118 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,124 +1,125 @@ | ||
<html> | ||
<head> | ||
<style> | ||
<%- include('style.css'); %> | ||
</style> | ||
</head> | ||
<body> | ||
<%- include('_workOrder-header.ejs'); %> | ||
|
||
<% if (workOrder.workOrderLots.length > 0) { %> | ||
<h2 class="mb-0"><%= configFunctions.getConfigProperty("aliases.lots") %></h2> | ||
<head> | ||
<title>Work Order #<%= workOrder.workOrderNumber %></title> | ||
<style> | ||
<%- include('style.css'); %> | ||
</style> | ||
</head> | ||
<body> | ||
<%- include('_workOrder-header.ejs'); %> | ||
|
||
<% if (workOrder.workOrderLots.length > 0) { %> | ||
<h2 class="mb-0"><%= configFunctions.getConfigProperty("aliases.lots") %></h2> | ||
<table class="data-table"> | ||
<thead> | ||
<tr> | ||
<th><%= configFunctions.getConfigProperty("aliases.lot") %></th> | ||
<th><%= configFunctions.getConfigProperty("aliases.map") %></th> | ||
<th><%= configFunctions.getConfigProperty("aliases.lot") %> Type</th> | ||
<th>Status</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<% for (const lot of workOrder.workOrderLots) { %> | ||
<tr> | ||
<td><%= lot.lotName %></td> | ||
<td><%= lot.mapName %></td> | ||
<td><%= lot.lotType %></td> | ||
<td><%= lot.lotStatus %></td> | ||
</tr> | ||
<table class="data-table"> | ||
<thead> | ||
<tr> | ||
<th><%= configFunctions.getConfigProperty("aliases.lot") %></th> | ||
<th><%= configFunctions.getConfigProperty("aliases.map") %></th> | ||
<th><%= configFunctions.getConfigProperty("aliases.lot") %> Type</th> | ||
<th>Status</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<% for (const lot of workOrder.workOrderLots) { %> | ||
<tr> | ||
<td><%= lot.lotName %></td> | ||
<td><%= lot.mapName %></td> | ||
<td><%= lot.lotType %></td> | ||
<td><%= lot.lotStatus %></td> | ||
</tr> | ||
<% } %> | ||
</tbody> | ||
</table> | ||
<% } %> | ||
|
||
<% if (workOrder.workOrderLotOccupancies.length > 0) { %> | ||
<h2 class="mb-0"><%= configFunctions.getConfigProperty("aliases.occupancies") %></h2> | ||
<table class="data-table"> | ||
<thead> | ||
<tr> | ||
<th><%= configFunctions.getConfigProperty("aliases.occupancy") %> Type</th> | ||
<th><%= configFunctions.getConfigProperty("aliases.lot") %></th> | ||
<th><%= configFunctions.getConfigProperty("aliases.occupancyStartDate") %></th> | ||
<th>End Date</th> | ||
<th><%= configFunctions.getConfigProperty("aliases.occupants") %></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<% for (const occupancy of workOrder.workOrderLotOccupancies) { %> | ||
<tr> | ||
<td><%= occupancy.occupancyType %></td> | ||
<td><%= occupancy.lotName %></td> | ||
<td><%= occupancy.occupancyStartDateString %></td> | ||
<td><%= occupancy.occupancyStartEndString %></td> | ||
<td> | ||
<% for (const occupant of occupancy.lotOccupancyOccupants) { %> | ||
<%= occupant.lotOccupantType %>: | ||
<%= occupant.occupantName %> | ||
<%= occupant.occupantFamilyName %> | ||
<br /> | ||
<% } %> | ||
</tbody> | ||
</table> | ||
<% } %> | ||
</td> | ||
</tr> | ||
<% } %> | ||
</tbody> | ||
</table> | ||
<% } %> | ||
|
||
<% if (workOrder.workOrderLotOccupancies.length > 0) { %> | ||
<h2 class="mb-0"><%= configFunctions.getConfigProperty("aliases.occupancies") %></h2> | ||
<% if (workOrder.workOrderMilestones.length > 0) { %> | ||
<h2 class="mb-0">Milestones</h2> | ||
<table class="data-table"> | ||
<thead> | ||
<table class="data-table"> | ||
<thead> | ||
<tr> | ||
<th class="is-width-1"></th> | ||
<th>Milestone Description</th> | ||
<th>Due Date</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<% for (const milestone of workOrder.workOrderMilestones) { %> | ||
<tr> | ||
<th><%= configFunctions.getConfigProperty("aliases.occupancy") %> Type</th> | ||
<th><%= configFunctions.getConfigProperty("aliases.lot") %></th> | ||
<th><%= configFunctions.getConfigProperty("aliases.occupancyStartDate") %></th> | ||
<th>End Date</th> | ||
<th><%= configFunctions.getConfigProperty("aliases.occupants") %></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<% for (const occupancy of workOrder.workOrderLotOccupancies) { %> | ||
<tr> | ||
<td><%= occupancy.occupancyType %></td> | ||
<td><%= occupancy.lotName %></td> | ||
<td><%= occupancy.occupancyStartDateString %></td> | ||
<td><%= occupancy.occupancyStartEndString %></td> | ||
<td class="is-width-1"> | ||
<% if (milestone.workOrderMilestoneCompletionDate) { %> | ||
<span class="checkbox is-checked"></span> | ||
<% } else { %> | ||
<span class="checkbox"></span> | ||
<% } %> | ||
</td> | ||
<td> | ||
<% for (const occupant of occupancy.lotOccupancyOccupants) { %> | ||
<%= occupant.lotOccupantType %>: | ||
<%= occupant.occupantName %> | ||
<%= occupant.occupantFamilyName %> | ||
<br /> | ||
<% } %> | ||
<% if (milestone.workOrderMilestoneTypeId) { %> | ||
<strong><%= milestone.workOrderMilestoneType %></strong><br /> | ||
<% } %> | ||
<%= milestone.workOrderMilestoneDescription %> | ||
</td> | ||
<td> | ||
<% if (milestone.workOrderMilestoneDate === 0) { %> | ||
(No Set Date) | ||
<% } else { %> | ||
<%= milestone.workOrderMilestoneDateString %> | ||
<% } %> | ||
<% if (milestone.workOrderMilestoneTime) { %> | ||
<%= milestone.workOrderMilestoneTimePeriodString %> | ||
<% } %> | ||
</td> | ||
</tr> | ||
<% } %> | ||
</tbody> | ||
</table> | ||
<% } %> | ||
|
||
<% if (workOrder.workOrderMilestones.length > 0) { %> | ||
<h2 class="mb-0">Milestones</h2> | ||
<table class="data-table"> | ||
<thead> | ||
<tr> | ||
<th class="is-width-1"></th> | ||
<th>Milestone Description</th> | ||
<th>Due Date</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<% for (const milestone of workOrder.workOrderMilestones) { %> | ||
<tr> | ||
<td class="is-width-1"> | ||
<% if (milestone.workOrderMilestoneCompletionDate) { %> | ||
<span class="checkbox is-checked"></span> | ||
<% } else { %> | ||
<span class="checkbox"></span> | ||
<% } %> | ||
</td> | ||
<td> | ||
<% if (milestone.workOrderMilestoneTypeId) { %> | ||
<strong><%= milestone.workOrderMilestoneType %></strong><br /> | ||
<% } %> | ||
<%= milestone.workOrderMilestoneDescription %> | ||
</td> | ||
<td> | ||
<% if (milestone.workOrderMilestoneDate === 0) { %> | ||
(No Set Date) | ||
<% } else { %> | ||
<%= milestone.workOrderMilestoneDateString %> | ||
<% } %> | ||
<% if (milestone.workOrderMilestoneTime) { %> | ||
<%= milestone.workOrderMilestoneTimePeriodString %> | ||
<% } %> | ||
</td> | ||
</tr> | ||
<% } %> | ||
</tbody> | ||
</table> | ||
<% } %> | ||
<% } %> | ||
</tbody> | ||
</table> | ||
<% } %> | ||
|
||
<h2 class="mb-0">Notes</h2> | ||
<h2 class="mb-0">Notes</h2> | ||
|
||
<p class="has-text-right is-italic is-8pt" style="position:absolute;bottom:10px;right:10px"> | ||
<% | ||
const recordCreateDate = new Date(workOrder.recordCreate_timeMillis); | ||
const currentDate = new Date(); | ||
%> | ||
Work order created <%= dateTimeFunctions.dateToString(recordCreateDate) %> at <%= dateTimeFunctions.dateToTimePeriodString(recordCreateDate) %>. | ||
Printed <%= dateTimeFunctions.dateToString(currentDate) %> at <%= dateTimeFunctions.dateToTimePeriodString(currentDate) %>.<br /> | ||
workOrderId = <%= workOrder.workOrderId %> | ||
</p> | ||
</body> | ||
<p class="has-text-right is-italic is-8pt" style="position:absolute;bottom:10px;right:10px"> | ||
<% | ||
const recordCreateDate = new Date(workOrder.recordCreate_timeMillis); | ||
const currentDate = new Date(); | ||
%> | ||
Work order created <%= dateTimeFunctions.dateToString(recordCreateDate) %> at <%= dateTimeFunctions.dateToTimePeriodString(recordCreateDate) %>. | ||
Printed <%= dateTimeFunctions.dateToString(currentDate) %> at <%= dateTimeFunctions.dateToTimePeriodString(currentDate) %>.<br /> | ||
workOrderId = <%= workOrder.workOrderId %> | ||
</p> | ||
</body> | ||
</html> |