78 lines
2.8 KiB
Plaintext
78 lines
2.8 KiB
Plaintext
@model IEnumerable<Disco.Web.Areas.Public.Models.UserHeldDevices.UserHeldDeviceModel>
|
|
@{
|
|
ViewBag.Title = Html.ToBreadcrumb("Public Reports", MVC.Public.Public.Index(), "Technician Held Devices", null);
|
|
Html.BundleDeferred("~/Style/Public/UserHeldDevices");
|
|
}
|
|
<div class="clearfix page">
|
|
<div class="column1">
|
|
@{
|
|
var DevicesInProcess = Model.Where(i => !i.ReadyForReturn && !i.WaitingForUserAction).ToArray();
|
|
}
|
|
<h2>
|
|
In Process (@DevicesInProcess.Length)</h2>
|
|
<table class="dataTable">
|
|
@foreach (var item in DevicesInProcess)
|
|
{
|
|
<tr>
|
|
<td class="userId">
|
|
@item.UserId
|
|
</td>
|
|
<td class="userDisplayName">
|
|
@item.UserDisplayName@{
|
|
if (!string.IsNullOrEmpty(item.EstimatedReturnTime))
|
|
{
|
|
<span class="smallMessage">(Expected: @item.EstimatedReturnTime)</span>
|
|
}
|
|
}
|
|
</td>
|
|
</tr>
|
|
}
|
|
</table>
|
|
</div>
|
|
<div class="column2">
|
|
@{
|
|
var WaitingForUserActionJobs = Model.Where(i => i.WaitingForUserAction).ToArray();
|
|
}
|
|
<h2>
|
|
Waiting for User Action (@WaitingForUserActionJobs.Length)</h2>
|
|
<table class="dataTable">
|
|
@foreach (var item in WaitingForUserActionJobs)
|
|
{
|
|
<tr>
|
|
<td class="userId">
|
|
@item.UserId
|
|
</td>
|
|
<td class="userDisplayName">
|
|
@item.UserDisplayName
|
|
</td>
|
|
<td class="timestamp@(item.IsAlert ? " Alert" : string.Empty)">
|
|
Since @item.WaitingForUserActionSince
|
|
</td>
|
|
</tr>
|
|
}
|
|
</table>
|
|
<hr />
|
|
@{
|
|
var DevicesReadyForReturn = Model.Where(i => i.ReadyForReturn && !i.WaitingForUserAction).ToArray();
|
|
}
|
|
<h2>
|
|
Ready for Return (@DevicesReadyForReturn.Length)</h2>
|
|
<table class="dataTable">
|
|
@foreach (var item in DevicesReadyForReturn)
|
|
{
|
|
<tr>
|
|
<td class="userId">
|
|
@item.UserId
|
|
</td>
|
|
<td class="userDisplayName">
|
|
@item.UserDisplayName
|
|
</td>
|
|
<td class="timestamp@(item.IsAlert ? " Alert" : string.Empty)">
|
|
Ready @item.ReadyForReturnSince
|
|
</td>
|
|
</tr>
|
|
}
|
|
</table>
|
|
</div>
|
|
</div>
|