Update: Device Count Details

More information about device membership in Batches, Profiles and
Models.
This commit is contained in:
Gary Sharp
2013-07-25 17:47:40 +10:00
parent ad6b1b19b6
commit 19503366c4
27 changed files with 883 additions and 482 deletions
@@ -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.
@@ -58,23 +58,23 @@ WriteLiteral(" class=\"form\"");
WriteLiteral(" style=\"width: 600px\"");
WriteLiteral(">\r\n <table>\r\n <tr>\r\n <th>\r\n Id:\r\n " +
"</th>\r\n <td>\r\n");
WriteLiteral(">\r\n <table>\r\n <tr>\r\n <th>Id:\r\n </th>\r\n " +
" <td>\r\n");
WriteLiteral(" ");
#line 14 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 13 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Html.DisplayFor(model => model.DeviceProfile.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 21 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 19 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Html.TextBoxFor(model => model.DeviceProfile.Name));
@@ -85,7 +85,7 @@ WriteLiteral("\r\n");
WriteLiteral(" ");
#line 22 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 20 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(AjaxHelpers.AjaxSave());
@@ -96,7 +96,7 @@ WriteLiteral("\r\n");
WriteLiteral(" ");
#line 23 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 21 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(AjaxHelpers.AjaxLoader());
@@ -129,7 +129,7 @@ WriteLiteral(@">
url: '");
#line 44 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 42 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Url.Action(MVC.API.DeviceProfile.UpdateName(Model.DeviceProfile.Id)));
@@ -157,13 +157,12 @@ WriteLiteral(@"',
</td>
</tr>
<tr>
<th>
Short Name:
<th>Short Name:
</th>
<td>");
#line 69 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 66 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Html.TextBoxFor(model => model.DeviceProfile.ShortName));
@@ -174,7 +173,7 @@ WriteLiteral("\r\n");
WriteLiteral(" ");
#line 70 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 67 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(AjaxHelpers.AjaxSave());
@@ -185,7 +184,7 @@ WriteLiteral("\r\n");
WriteLiteral(" ");
#line 71 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 68 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(AjaxHelpers.AjaxLoader());
@@ -218,7 +217,7 @@ WriteLiteral(@">
url: '");
#line 92 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 89 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Url.Action(MVC.API.DeviceProfile.UpdateShortName(Model.DeviceProfile.Id)));
@@ -246,13 +245,12 @@ WriteLiteral(@"',
</td>
</tr>
<tr>
<th>
Description:
<th>Description:
</th>
<td>");
#line 117 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 113 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Html.TextBoxFor(model => model.DeviceProfile.Description));
@@ -263,7 +261,7 @@ WriteLiteral("\r\n");
WriteLiteral(" ");
#line 118 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 114 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(AjaxHelpers.AjaxSave());
@@ -274,7 +272,7 @@ WriteLiteral("\r\n");
WriteLiteral(" ");
#line 119 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 115 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(AjaxHelpers.AjaxLoader());
@@ -307,7 +305,7 @@ WriteLiteral(@">
url: '");
#line 140 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 136 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Url.Action(MVC.API.DeviceProfile.UpdateDescription(Model.DeviceProfile.Id)));
@@ -335,16 +333,80 @@ WriteLiteral(@"',
</td>
</tr>
<tr>
<th>
Distribution Type:
</th>
<th>Members</th>
<td>
");
<div><strong>");
#line 160 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Model.DeviceCount.ToString("n0"));
#line default
#line hidden
WriteLiteral("</strong> ");
#line 160 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Model.DeviceCount == 1 ? "devices is a member" : "devices are members");
#line default
#line hidden
WriteLiteral(" of this profile.</div>\r\n");
#line 161 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line default
#line hidden
#line 161 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
if (Model.DeviceDecommissionedCount > 0)
{
#line default
#line hidden
WriteLiteral(" <div");
WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">");
#line 163 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Model.DeviceDecommissionedCount.ToString("n0"));
#line default
#line hidden
WriteLiteral(" ");
#line 163 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Model.DeviceDecommissionedCount == 1 ? "device is" : "devices are");
#line default
#line hidden
WriteLiteral(" decommissioned.</div>\r\n");
#line 164 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
#line default
#line hidden
WriteLiteral(" </td>\r\n </tr>\r\n <tr>\r\n <th>Distribution Type" +
":\r\n </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 166 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 171 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Html.DropDownList("DeviceProfile_DistributionType", Model.DeviceProfileDistributionTypes));
@@ -355,7 +417,7 @@ WriteLiteral("\r\n");
WriteLiteral(" ");
#line 167 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 172 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(AjaxHelpers.AjaxLoader());
@@ -374,7 +436,7 @@ WriteLiteral(@">
$.getJSON('");
#line 174 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 179 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Url.Action(MVC.API.DeviceProfile.UpdateDistributionType(Model.DeviceProfile.Id)));
@@ -394,8 +456,7 @@ WriteLiteral(@"', data, function (response, result) {
</td>
</tr>
<tr>
<th>
Address:
<th>Address:
</th>
<td>
");
@@ -403,7 +464,7 @@ WriteLiteral(@"', data, function (response, result) {
WriteLiteral(" ");
#line 192 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 196 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Html.DropDownListFor(m => m.DeviceProfile.DefaultOrganisationAddress, Model.OrganisationAddresses.ToSelectListItems(Model.DeviceProfile.DefaultOrganisationAddress, true, "None")));
@@ -414,7 +475,7 @@ WriteLiteral("\r\n");
WriteLiteral(" ");
#line 193 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 197 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(AjaxHelpers.AjaxLoader());
@@ -433,7 +494,7 @@ WriteLiteral(@">
$.getJSON('");
#line 200 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 204 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Url.Action(MVC.API.DeviceProfile.UpdateDefaultOrganisationAddress(Model.DeviceProfile.Id)));
@@ -453,8 +514,7 @@ WriteLiteral(@"', data, function (response, result) {
</td>
</tr>
<tr>
<th>
Allocate Certificates:
<th>Allocate Certificates:
</th>
<td>
");
@@ -462,7 +522,7 @@ WriteLiteral(@"', data, function (response, result) {
WriteLiteral(" ");
#line 218 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 221 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Html.DropDownListFor(model => model.DeviceProfile.CertificateProviderId, Model.CertificateProviders.ToSelectListItems(null, true, "Not Allocated")));
@@ -473,7 +533,7 @@ WriteLiteral("\r\n");
WriteLiteral(" ");
#line 219 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 222 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(AjaxHelpers.AjaxLoader());
@@ -495,7 +555,7 @@ WriteLiteral(@">
url: '");
#line 229 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 232 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Url.Action(MVC.API.DeviceProfile.UpdateCertificateProviderId(Model.DeviceProfile.Id)));
@@ -523,13 +583,12 @@ WriteLiteral(@"',
</td>
</tr>
<tr>
<th>
Computer Name Template Expression:
<th>Computer Name Template Expression:
</th>
<td>");
#line 254 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 256 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Html.TextBoxFor(model => model.DeviceProfile.ComputerNameTemplate));
@@ -540,7 +599,7 @@ WriteLiteral("\r\n");
WriteLiteral(" ");
#line 255 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 257 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(AjaxHelpers.AjaxSave());
@@ -551,7 +610,7 @@ WriteLiteral("\r\n");
WriteLiteral(" ");
#line 256 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 258 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(AjaxHelpers.AjaxLoader());
@@ -561,17 +620,17 @@ WriteLiteral("\r\n <a");
WriteLiteral(" id=\"expressionBrowserAnchor\"");
WriteAttribute("href", Tuple.Create(" href=\"", 13404), Tuple.Create("\"", 13473)
WriteAttribute("href", Tuple.Create(" href=\"", 13810), Tuple.Create("\"", 13879)
#line 257 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
, Tuple.Create(Tuple.Create("", 13411), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.Config.DocumentTemplate.ExpressionBrowser())
#line 259 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
, Tuple.Create(Tuple.Create("", 13817), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.Config.DocumentTemplate.ExpressionBrowser())
#line default
#line hidden
, 13411), false)
, 13817), false)
);
WriteLiteral(">\r\n &nbsp;</a>\r\n <script");
WriteLiteral(">&nbsp;</a>\r\n <script");
WriteLiteral(" type=\"text/javascript\"");
@@ -597,7 +656,7 @@ WriteLiteral(@">
url: '");
#line 278 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 279 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Url.Action(MVC.API.DeviceProfile.UpdateComputerNameTemplate(Model.DeviceProfile.Id)));
@@ -640,7 +699,7 @@ WriteLiteral(" type=\"checkbox\"");
WriteLiteral(" ");
#line 301 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 302 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Model.DeviceProfile.ProvisionADAccount ? new MvcHtmlString("checked=\"checked\" ") : new MvcHtmlString(string.Empty));
@@ -651,7 +710,7 @@ WriteLiteral("/>\r\n");
WriteLiteral(" ");
#line 302 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 303 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(AjaxHelpers.AjaxLoader());
@@ -670,7 +729,7 @@ WriteLiteral(@">
$.getJSON('");
#line 309 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 310 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Url.Action(MVC.API.DeviceProfile.UpdateProvisionADAccount(Model.DeviceProfile.Id)));
@@ -706,7 +765,7 @@ WriteLiteral(" type=\"checkbox\"");
WriteLiteral(" ");
#line 325 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 326 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Model.DeviceProfile.EnforceComputerNameConvention ? new MvcHtmlString("checked=\"checked\" ") : new MvcHtmlString(string.Empty));
@@ -717,7 +776,7 @@ WriteLiteral("/>\r\n");
WriteLiteral(" ");
#line 326 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 327 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(AjaxHelpers.AjaxLoader());
@@ -736,7 +795,7 @@ WriteLiteral(@">
$.getJSON('");
#line 333 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 334 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Url.Action(MVC.API.DeviceProfile.UpdateEnforceComputerNameConvention(Model.DeviceProfile.Id)));
@@ -757,8 +816,7 @@ WriteLiteral(@"', data, function (response, result) {
</td>
</tr>
<tr>
<th>
Default Organisational Unit:
<th>Default Organisational Unit:
</th>
<td>
");
@@ -876,33 +934,31 @@ WriteLiteral("\', data, function (response, result) {\r\n
#line default
#line hidden
WriteLiteral("\', null, function (data) {\r\n var dynatreeDataT" +
"ransformer = function (element) {\r\n var c" +
"hild = {\r\n title: element.Name,\r\n " +
" key: element.Path,\r\n " +
" isFolder: true\r\n " +
"}\r\n if (element.Children) {\r\n " +
" child.children = [];\r\n " +
" for (var i = 0; i < element.Children.length; i++) {\r\n " +
" child.children.push(dynatreeDataTransform" +
"er(element.Children[i]));\r\n }\r\n " +
" }\r\n ret" +
"urn child;\r\n };\r\n " +
" var dynatreeData = [];\r\n for (var i =" +
" 0; i < data.length; i++) {\r\n dynatreeDat" +
"a.push(dynatreeDataTransformer(data[i]));\r\n }" +
"\r\n\r\n ouTree.dynatree({\r\n " +
WriteLiteral("\', null, function (data) {\r\n var dynatreeDataTrans" +
"former = function (element) {\r\n var child = {" +
"\r\n title: element.Name,\r\n " +
" key: element.Path,\r\n " +
" isFolder: true\r\n }\r\n " +
" if (element.Children) {\r\n " +
"child.children = [];\r\n for (var i = 0; i " +
"< element.Children.length; i++) {\r\n c" +
"hild.children.push(dynatreeDataTransformer(element.Children[i]));\r\n " +
" }\r\n }\r\n " +
" return child;\r\n };\r\n " +
" var dynatreeData = [];\r\n " +
" for (var i = 0; i < data.length; i++) {\r\n " +
" dynatreeData.push(dynatreeDataTransformer(data[i]));\r\n " +
" }\r\n\r\n ouTree.dynatree({\r\n " +
" children: dynatreeData,\r\n " +
" onActivate: function (node) {\r\n /" +
"/alert(\'node selected: \' + node.data.key);\r\n " +
" }\r\n });\r\n " +
" ouTreeLoaded = true;\r\n ouUpdateTree();\r\n " +
" });\r\n } else {\r\n " +
" ouUpdateTree();\r\n }\r\n " +
" ouDialog.dialog(\'open\');\r\n };\r\n\r\n " +
" ouChangeLink.click(ouChange);\r\n upd" +
"ateDisplayOrganisationalUnit();\r\n });\r\n </scri" +
"pt>\r\n <div");
"onActivate: function (node) {\r\n //alert(\'" +
"node selected: \' + node.data.key);\r\n }\r\n " +
" });\r\n ouTreeLoaded = t" +
"rue;\r\n ouUpdateTree();\r\n " +
" });\r\n } else {\r\n ouUpdateTr" +
"ee();\r\n }\r\n ouDialog.dialog(\'o" +
"pen\');\r\n };\r\n\r\n ouChangeLink.click" +
"(ouChange);\r\n updateDisplayOrganisationalUnit();\r\n " +
" });\r\n </script>\r\n <div");
WriteLiteral(" style=\"margin-top: 8px;\"");
@@ -985,7 +1041,7 @@ WriteLiteral(" class=\"ui-icon ui-icon-alert\"");
WriteLiteral(" style=\"float: left; margin: 0 7px 20px 0;\"");
WriteLiteral("></span>\r\n This item will be permanently deleted and cannot be recovered. " +
"Are you sure?</p>\r\n</div>\r\n<script");
"Are you sure?\r\n </p>\r\n</div>\r\n<script");
WriteLiteral(" type=\"text/javascript\"");
@@ -1024,13 +1080,13 @@ WriteLiteral(" class=\"actionBar\"");
WriteLiteral(">\r\n");
#line 531 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 532 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line default
#line hidden
#line 531 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 532 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
if (Model.CanDelete)
{
@@ -1038,14 +1094,14 @@ WriteLiteral(">\r\n");
#line default
#line hidden
#line 533 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 534 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Html.ActionLinkButton("Delete", MVC.API.DeviceProfile.Delete(Model.DeviceProfile.Id, true), "buttonDelete"));
#line default
#line hidden
#line 533 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 534 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
@@ -1055,7 +1111,18 @@ WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 535 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 536 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Html.ActionLinkButton("Export Devices", MVC.API.DeviceProfile.ExportDevices(Model.DeviceProfile.Id)));
#line default
#line hidden
WriteLiteral("\r\n");
WriteLiteral(" ");
#line 537 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Html.ActionLinkButton("View Devices", MVC.Search.Query(Model.DeviceProfile.Id.ToString(), "DeviceProfile")));