Update: Device Count Details
More information about device membership in Batches, Profiles and Models.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.18033
|
||||
// Runtime Version:4.0.30319.18051
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
@@ -61,22 +61,22 @@ WriteLiteral(">\r\n <table>\r\n <tr>\r\n <th");
|
||||
|
||||
WriteLiteral(" style=\"width: 150px\"");
|
||||
|
||||
WriteLiteral(">\r\n Id:\r\n </th>\r\n <td>\r\n");
|
||||
WriteLiteral(">Id:\r\n </th>\r\n <td>\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 15 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 14 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Html.DisplayFor(model => model.DeviceBatch.Id));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th>\r\n " +
|
||||
" Name:\r\n </th>\r\n <td>");
|
||||
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th>Name:\r\n " +
|
||||
" </th>\r\n <td>");
|
||||
|
||||
|
||||
#line 22 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 20 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Html.EditorFor(model => model.DeviceBatch.Name));
|
||||
|
||||
|
||||
@@ -87,7 +87,7 @@ WriteLiteral("\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 23 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 21 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(AjaxHelpers.AjaxSave());
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ WriteLiteral("\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 24 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 22 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(AjaxHelpers.AjaxLoader());
|
||||
|
||||
|
||||
@@ -113,45 +113,246 @@ WriteLiteral(">\r\n $(function () {\r\n
|
||||
",\r\n \'Invalid Name\',\r\n \'");
|
||||
|
||||
|
||||
#line 30 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 28 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Url.Action(MVC.API.DeviceBatch.UpdateName(Model.DeviceBatch.Id)));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(@"',
|
||||
'BatchName'
|
||||
);
|
||||
});
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
Device Count:
|
||||
</th>
|
||||
<td>
|
||||
");
|
||||
WriteLiteral("\',\r\n \'BatchName\'\r\n );\r\n " +
|
||||
" });\r\n </script>\r\n </td>\r\n </tr>\r\n " +
|
||||
" <tr>\r\n <th>Default Device Model:\r\n </th>\r\n " +
|
||||
" <td>\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 42 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 39 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Html.DropDownListFor(model => model.DeviceBatch.DefaultDeviceModelId, Model.DeviceModels.ToSelectListItems()));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 40 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(AjaxHelpers.AjaxSave());
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 41 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(AjaxHelpers.AjaxLoader());
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n <script");
|
||||
|
||||
WriteLiteral(" type=\"text/javascript\"");
|
||||
|
||||
WriteLiteral(">\r\n $(function () {\r\n document.DiscoFun" +
|
||||
"ctions.PropertyChangeHelper(\r\n $(\'#DeviceBatch_Defaul" +
|
||||
"tDeviceModelId\'),\r\n null,\r\n " +
|
||||
" \'");
|
||||
|
||||
|
||||
#line 47 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Url.Action(MVC.API.DeviceBatch.UpdateDefaultDeviceModelId(Model.DeviceBatch.Id)));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\',\r\n \'DefaultDeviceModelId\'\r\n )" +
|
||||
";\r\n });\r\n </script>\r\n <br />\r\n " +
|
||||
" <span");
|
||||
|
||||
WriteLiteral(" class=\"smallMessage\"");
|
||||
|
||||
WriteLiteral(">Devices added offline will default to this Device Model.\r\n On" +
|
||||
"ce a device enrols the Device Model will be accurately represented.</span>\r\n " +
|
||||
" </td>\r\n </tr>\r\n <tr>\r\n <th>Devices</th>\r\n " +
|
||||
" <td>\r\n");
|
||||
|
||||
|
||||
#line 60 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 42 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
if (Model.DeviceBatch.UnitQuantity.HasValue)
|
||||
{
|
||||
#line 60 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
if (Model.DeviceModelMembers.Count > 0)
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <span>");
|
||||
WriteLiteral(" <table");
|
||||
|
||||
WriteLiteral(" class=\"tableData smallTable\"");
|
||||
|
||||
WriteLiteral(@">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Model</th>
|
||||
<th>Device Count</th>
|
||||
<th>Decommissioned</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
");
|
||||
|
||||
|
||||
#line 44 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Model.DeviceCount);
|
||||
#line 71 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 71 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
foreach (var membership in Model.DeviceModelMembers.OrderByDescending(dmm => dmm.DeviceCount))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <tr>\r\n <td>\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 75 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Html.ActionLink(membership.DeviceModel.ToString(), MVC.Config.DeviceModel.Index(membership.DeviceModel.Id)));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n </td>\r\n " +
|
||||
"<td>\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 78 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(membership.DeviceCount.ToString("n0"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n </td>\r\n " +
|
||||
"<td>\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 81 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(membership.DeviceDecommissionedCount.ToString("n0"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n </td>\r\n </tr" +
|
||||
">\r\n");
|
||||
|
||||
|
||||
#line 84 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" </tbody>\r\n <tfoot>\r\n " +
|
||||
" <tr>\r\n <th>Total Models: ");
|
||||
|
||||
|
||||
#line 88 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Model.DeviceModelMembers.Count.ToString("n0"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</th>\r\n <th>");
|
||||
|
||||
|
||||
#line 89 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Model.DeviceCount.ToString("n0"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</th>\r\n <th>");
|
||||
|
||||
|
||||
#line 90 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Model.DeviceDecommissionedCount.ToString("n0"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</th>\r\n </tr>\r\n </tfoot>\r\n " +
|
||||
" </table>\r\n");
|
||||
|
||||
|
||||
#line 94 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <div");
|
||||
|
||||
WriteLiteral(" class=\"smallMessage\"");
|
||||
|
||||
WriteLiteral(">No device models are referenced in this batch.</div>\r\n");
|
||||
|
||||
|
||||
#line 98 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 99 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
if (Model.DeviceBatch.UnitQuantity.HasValue && Model.DeviceBatch.UnitQuantity.Value > Model.DeviceCount)
|
||||
{
|
||||
var missingCount = Model.DeviceBatch.UnitQuantity.Value - Model.DeviceCount;
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <div");
|
||||
|
||||
WriteLiteral(" style=\"padding: 0.7em 0.7em; margin-top: 20px;\"");
|
||||
|
||||
WriteLiteral(" class=\"ui-state-highlight ui-corner-all\"");
|
||||
|
||||
WriteLiteral(">\r\n <span");
|
||||
|
||||
WriteLiteral(" style=\"margin-right: 0.3em; float: left;\"");
|
||||
|
||||
WriteLiteral(" class=\"ui-icon ui-icon-alert\"");
|
||||
|
||||
WriteLiteral("></span>\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 104 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Model.DeviceCount.ToString("n0"));
|
||||
|
||||
|
||||
#line default
|
||||
@@ -159,78 +360,41 @@ WriteLiteral(" <span>");
|
||||
WriteLiteral(" of ");
|
||||
|
||||
|
||||
#line 44 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Model.DeviceBatch.UnitQuantity.Value);
|
||||
#line 104 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Model.DeviceBatch.UnitQuantity.Value.ToString("n0"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</span>\r\n");
|
||||
WriteLiteral(" purchased devices are managed by Disco. <strong>");
|
||||
|
||||
|
||||
#line 45 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 48 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Model.DeviceCount);
|
||||
#line 104 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(missingCount.ToString("n0"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 48 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
|
||||
#line 104 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(missingCount == 1 ? "is" : "are");
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" not managed</strong>.\r\n </div>\r\n");
|
||||
|
||||
|
||||
#line 106 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" managed by Disco\r\n");
|
||||
|
||||
|
||||
#line 51 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 51 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
if (Model.DeviceDecommissionedCount > 0)
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <span");
|
||||
|
||||
WriteLiteral(" class=\"smallMessage\"");
|
||||
|
||||
WriteLiteral(">(");
|
||||
|
||||
|
||||
#line 53 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Model.DeviceDecommissionedCount);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n Decommissioned)</span>\r\n");
|
||||
|
||||
|
||||
#line 55 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" </td>\r\n </tr>\r\n <tr>\r\n <th>\r\n " +
|
||||
" Purchase:\r\n </th>\r\n <td");
|
||||
WriteLiteral(" </td>\r\n </tr>\r\n <tr>\r\n <th>Purchase:\r\n " +
|
||||
" </th>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"details\"");
|
||||
|
||||
@@ -244,13 +408,12 @@ WriteLiteral(" class=\"name\"");
|
||||
|
||||
WriteLiteral(" style=\"width: 100px\"");
|
||||
|
||||
WriteLiteral(">\r\n Purchase Date:\r\n </th>\r\n " +
|
||||
" <td>\r\n");
|
||||
WriteLiteral(">Purchase Date:\r\n </th>\r\n <td>\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 69 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 118 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Html.EditorFor(model => model.DeviceBatch.PurchaseDate));
|
||||
|
||||
|
||||
@@ -261,7 +424,7 @@ WriteLiteral("\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 70 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 119 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(AjaxHelpers.AjaxLoader());
|
||||
|
||||
|
||||
@@ -277,7 +440,7 @@ WriteLiteral(@"
|
||||
'");
|
||||
|
||||
|
||||
#line 77 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 126 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Url.Action(MVC.API.DeviceBatch.UpdatePurchaseDate(Model.DeviceBatch.Id)));
|
||||
|
||||
|
||||
@@ -293,8 +456,7 @@ WriteLiteral(@"',
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
Supplier:
|
||||
<th>Supplier:
|
||||
</th>
|
||||
<td>
|
||||
");
|
||||
@@ -302,7 +464,7 @@ WriteLiteral(@"',
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 91 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 139 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Html.EditorFor(model => model.DeviceBatch.Supplier));
|
||||
|
||||
|
||||
@@ -313,7 +475,7 @@ WriteLiteral("\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 92 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 140 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(AjaxHelpers.AjaxSave());
|
||||
|
||||
|
||||
@@ -324,7 +486,7 @@ WriteLiteral("\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 93 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 141 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(AjaxHelpers.AjaxLoader());
|
||||
|
||||
|
||||
@@ -342,7 +504,7 @@ WriteLiteral(@">
|
||||
'");
|
||||
|
||||
|
||||
#line 99 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 147 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Url.Action(MVC.API.DeviceBatch.UpdateSupplier(Model.DeviceBatch.Id)));
|
||||
|
||||
|
||||
@@ -356,8 +518,7 @@ WriteLiteral(@"',
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
Unit Cost:
|
||||
<th>Unit Cost:
|
||||
</th>
|
||||
<td>
|
||||
");
|
||||
@@ -365,7 +526,7 @@ WriteLiteral(@"',
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 111 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 158 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Html.EditorFor(model => model.DeviceBatch.UnitCost));
|
||||
|
||||
|
||||
@@ -376,7 +537,7 @@ WriteLiteral("\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 112 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 159 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(AjaxHelpers.AjaxSave());
|
||||
|
||||
|
||||
@@ -387,7 +548,7 @@ WriteLiteral("\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 113 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 160 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(AjaxHelpers.AjaxLoader());
|
||||
|
||||
|
||||
@@ -405,7 +566,7 @@ WriteLiteral(@">
|
||||
'");
|
||||
|
||||
|
||||
#line 119 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 166 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Url.Action(MVC.API.DeviceBatch.UpdateUnitCost(Model.DeviceBatch.Id)));
|
||||
|
||||
|
||||
@@ -419,8 +580,7 @@ WriteLiteral(@"',
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
Quantity:
|
||||
<th>Quantity:
|
||||
</th>
|
||||
<td>
|
||||
");
|
||||
@@ -428,7 +588,7 @@ WriteLiteral(@"',
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 131 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 177 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Html.EditorFor(model => model.DeviceBatch.UnitQuantity));
|
||||
|
||||
|
||||
@@ -439,7 +599,7 @@ WriteLiteral("\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 132 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 178 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(AjaxHelpers.AjaxSave());
|
||||
|
||||
|
||||
@@ -450,7 +610,7 @@ WriteLiteral("\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 133 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 179 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(AjaxHelpers.AjaxLoader());
|
||||
|
||||
|
||||
@@ -468,7 +628,7 @@ WriteLiteral(@">
|
||||
'");
|
||||
|
||||
|
||||
#line 139 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 185 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Url.Action(MVC.API.DeviceBatch.UpdateUnitQuantity(Model.DeviceBatch.Id)));
|
||||
|
||||
|
||||
@@ -489,7 +649,7 @@ WriteLiteral(" id=\"DeviceBatch_PurchaseDetails_Container\"");
|
||||
WriteLiteral(">\r\n <div>\r\n Details ");
|
||||
|
||||
|
||||
#line 149 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 195 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(AjaxHelpers.AjaxLoader("ajaxPurchaseDetails"));
|
||||
|
||||
|
||||
@@ -500,7 +660,7 @@ WriteLiteral("\r\n </div>\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 151 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 197 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Html.EditorFor(model => model.DeviceBatch.PurchaseDetails));
|
||||
|
||||
|
||||
@@ -529,7 +689,7 @@ WriteLiteral(@">
|
||||
url: '");
|
||||
|
||||
|
||||
#line 168 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 214 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Url.Action(MVC.API.DeviceBatch.UpdatePurchaseDetails(Model.DeviceBatch.Id)));
|
||||
|
||||
|
||||
@@ -557,71 +717,8 @@ WriteLiteral("\',\r\n dataType: \'json\',
|
||||
" $(ed.getWin()).blur(model.updated);\r\n " +
|
||||
" });\r\n }\r\n " +
|
||||
" });\r\n });\r\n </script>\r\n " +
|
||||
" </div>\r\n </td>\r\n </tr>\r\n <tr>\r\n <th>\r\n" +
|
||||
" Default Device Model:\r\n </th>\r\n <td>\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 208 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Html.DropDownListFor(model => model.DeviceBatch.DefaultDeviceModelId, Model.DeviceModels.ToSelectListItems()));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 209 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(AjaxHelpers.AjaxSave());
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 210 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(AjaxHelpers.AjaxLoader());
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n <script");
|
||||
|
||||
WriteLiteral(" type=\"text/javascript\"");
|
||||
|
||||
WriteLiteral(">\r\n $(function () {\r\n document.DiscoFun" +
|
||||
"ctions.PropertyChangeHelper(\r\n $(\'#DeviceBatch_Defaul" +
|
||||
"tDeviceModelId\'),\r\n null,\r\n " +
|
||||
" \'");
|
||||
|
||||
|
||||
#line 216 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Url.Action(MVC.API.DeviceBatch.UpdateDefaultDeviceModelId(Model.DeviceBatch.Id)));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\',\r\n \'DefaultDeviceModelId\'\r\n )" +
|
||||
";\r\n });\r\n </script>\r\n <br />\r\n " +
|
||||
" <span");
|
||||
|
||||
WriteLiteral(" class=\"smallMessage\"");
|
||||
|
||||
WriteLiteral(@">Devices added offline will default to this Device Model.
|
||||
Once a device enrols the Device Model will be accurately represented.</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
Warranty:
|
||||
</th>
|
||||
<td");
|
||||
" </div>\r\n </td>\r\n </tr>\r\n <tr>\r\n <th>Wa" +
|
||||
"rranty:\r\n </th>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"details\"");
|
||||
|
||||
@@ -635,13 +732,12 @@ WriteLiteral(" class=\"name\"");
|
||||
|
||||
WriteLiteral(" style=\"width: 100px\"");
|
||||
|
||||
WriteLiteral(">\r\n Valid Until:\r\n </th>\r\n " +
|
||||
" <td>\r\n");
|
||||
WriteLiteral(">Valid Until:\r\n </th>\r\n <td>\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 237 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 258 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Html.EditorFor(model => model.DeviceBatch.WarrantyValidUntil));
|
||||
|
||||
|
||||
@@ -652,7 +748,7 @@ WriteLiteral("\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 238 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 259 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(AjaxHelpers.AjaxLoader());
|
||||
|
||||
|
||||
@@ -668,7 +764,7 @@ WriteLiteral(@"
|
||||
'");
|
||||
|
||||
|
||||
#line 245 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 266 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Url.Action(MVC.API.DeviceBatch.UpdateWarrantyValidUntil(Model.DeviceBatch.Id)));
|
||||
|
||||
|
||||
@@ -691,7 +787,7 @@ WriteLiteral(" id=\"DeviceBatch_WarrantyDetails_Container\"");
|
||||
WriteLiteral(">\r\n <div>\r\n Details ");
|
||||
|
||||
|
||||
#line 257 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 278 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(AjaxHelpers.AjaxLoader("ajaxWarrantyDetails"));
|
||||
|
||||
|
||||
@@ -702,7 +798,7 @@ WriteLiteral("\r\n </div>\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 259 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 280 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Html.EditorFor(model => model.DeviceBatch.WarrantyDetails));
|
||||
|
||||
|
||||
@@ -731,7 +827,7 @@ WriteLiteral(@">
|
||||
url: '");
|
||||
|
||||
|
||||
#line 276 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 297 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Url.Action(MVC.API.DeviceBatch.UpdateWarrantyDetails(Model.DeviceBatch.Id)));
|
||||
|
||||
|
||||
@@ -759,8 +855,8 @@ WriteLiteral("\',\r\n dataType: \'json\',
|
||||
" $(ed.getWin()).blur(model.updated);\r\n " +
|
||||
" });\r\n }\r\n " +
|
||||
" });\r\n });\r\n </script>\r\n " +
|
||||
" </div>\r\n </td>\r\n </tr>\r\n <tr>\r\n <th>\r\n" +
|
||||
" Insurance:\r\n </th>\r\n <td");
|
||||
" </div>\r\n </td>\r\n </tr>\r\n <tr>\r\n <th>In" +
|
||||
"surance:\r\n </th>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"details\"");
|
||||
|
||||
@@ -774,13 +870,12 @@ WriteLiteral(" class=\"name\"");
|
||||
|
||||
WriteLiteral(" style=\"width: 100px\"");
|
||||
|
||||
WriteLiteral(">\r\n Supplier:\r\n </th>\r\n " +
|
||||
" <td>\r\n");
|
||||
WriteLiteral(">Supplier:\r\n </th>\r\n <td>\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 322 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 341 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Html.EditorFor(model => model.DeviceBatch.InsuranceSupplier));
|
||||
|
||||
|
||||
@@ -791,7 +886,7 @@ WriteLiteral("\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 323 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 342 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(AjaxHelpers.AjaxSave());
|
||||
|
||||
|
||||
@@ -802,7 +897,7 @@ WriteLiteral("\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 324 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 343 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(AjaxHelpers.AjaxLoader());
|
||||
|
||||
|
||||
@@ -820,7 +915,7 @@ WriteLiteral(@">
|
||||
'");
|
||||
|
||||
|
||||
#line 330 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 349 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Url.Action(MVC.API.DeviceBatch.UpdateInsuranceSupplier(Model.DeviceBatch.Id)));
|
||||
|
||||
|
||||
@@ -838,13 +933,12 @@ WriteLiteral(@"',
|
||||
|
||||
WriteLiteral(" class=\"name\"");
|
||||
|
||||
WriteLiteral(">\r\n Insured Date:\r\n </th>\r\n " +
|
||||
" <td>\r\n");
|
||||
WriteLiteral(">Insured Date:\r\n </th>\r\n <td>\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 342 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 360 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Html.EditorFor(model => model.DeviceBatch.InsuredDate));
|
||||
|
||||
|
||||
@@ -855,7 +949,7 @@ WriteLiteral("\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 343 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 361 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(AjaxHelpers.AjaxLoader());
|
||||
|
||||
|
||||
@@ -871,7 +965,7 @@ WriteLiteral(@"
|
||||
'");
|
||||
|
||||
|
||||
#line 350 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 368 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Url.Action(MVC.API.DeviceBatch.UpdateInsuredDate(Model.DeviceBatch.Id)));
|
||||
|
||||
|
||||
@@ -891,13 +985,12 @@ WriteLiteral(@"',
|
||||
|
||||
WriteLiteral(" class=\"name\"");
|
||||
|
||||
WriteLiteral(">\r\n Insured Until:\r\n </th>\r\n " +
|
||||
" <td>\r\n");
|
||||
WriteLiteral(">Insured Until:\r\n </th>\r\n <td>\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 364 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 381 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Html.EditorFor(model => model.DeviceBatch.InsuredUntil));
|
||||
|
||||
|
||||
@@ -908,7 +1001,7 @@ WriteLiteral("\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 365 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 382 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(AjaxHelpers.AjaxLoader());
|
||||
|
||||
|
||||
@@ -924,7 +1017,7 @@ WriteLiteral(@"
|
||||
'");
|
||||
|
||||
|
||||
#line 372 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 389 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Url.Action(MVC.API.DeviceBatch.UpdateInsuredUntil(Model.DeviceBatch.Id)));
|
||||
|
||||
|
||||
@@ -947,7 +1040,7 @@ WriteLiteral(" id=\"DeviceBatch_InsuranceDetails_Container\"");
|
||||
WriteLiteral(">\r\n <div>\r\n Details ");
|
||||
|
||||
|
||||
#line 384 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 401 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(AjaxHelpers.AjaxLoader("ajaxInsuranceDetails"));
|
||||
|
||||
|
||||
@@ -958,7 +1051,7 @@ WriteLiteral("\r\n </div>\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 386 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 403 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Html.EditorFor(model => model.DeviceBatch.InsuranceDetails));
|
||||
|
||||
|
||||
@@ -985,7 +1078,7 @@ WriteLiteral(@">
|
||||
url: '");
|
||||
|
||||
|
||||
#line 401 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 418 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Url.Action(MVC.API.DeviceBatch.UpdateInsuranceDetails(Model.DeviceBatch.Id)));
|
||||
|
||||
|
||||
@@ -1015,12 +1108,12 @@ WriteLiteral("\',\r\n dataType: \'json\',
|
||||
" });\r\n }\r\n " +
|
||||
" });\r\n });\r\n </scr" +
|
||||
"ipt>\r\n </div>\r\n </td>\r\n </tr>\r\n <tr>\r\n " +
|
||||
" <th>\r\n Comments:<br />\r\n");
|
||||
" <th>Comments:<br />\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 440 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 456 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(AjaxHelpers.AjaxLoader("ajaxComments"));
|
||||
|
||||
|
||||
@@ -1031,7 +1124,7 @@ WriteLiteral("\r\n </th>\r\n <td>\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 443 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 459 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Html.EditorFor(model => model.DeviceBatch.Comments));
|
||||
|
||||
|
||||
@@ -1058,7 +1151,7 @@ WriteLiteral(@">
|
||||
url: '");
|
||||
|
||||
|
||||
#line 458 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 474 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Url.Action(MVC.API.DeviceBatch.UpdateComments(Model.DeviceBatch.Id)));
|
||||
|
||||
|
||||
@@ -1093,13 +1186,13 @@ WriteLiteral(" class=\"actionBar\"");
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 496 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 512 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 496 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 512 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
if (Model.CanDelete)
|
||||
{
|
||||
|
||||
@@ -1107,14 +1200,14 @@ WriteLiteral(">\r\n");
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 498 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 514 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Html.ActionLinkButton("Delete", MVC.API.DeviceBatch.Delete(Model.DeviceBatch.Id, true), "buttonDelete"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 498 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 514 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
|
||||
}
|
||||
|
||||
@@ -1124,7 +1217,7 @@ WriteLiteral(">\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 500 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 516 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
if (Model.DeviceCount > 0)
|
||||
{
|
||||
|
||||
@@ -1132,14 +1225,28 @@ WriteLiteral(" ");
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 502 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 518 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Html.ActionLinkButton("Export Devices", MVC.API.DeviceBatch.ExportDevices(Model.DeviceBatch.Id)));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 518 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 519 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
Write(Html.ActionLinkButton("View Devices", MVC.Search.Query(Model.DeviceBatch.Id.ToString(), "DeviceBatch")));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 502 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
#line 519 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user