@if (Model.CanDelete)
{
diff --git a/Disco.Web/Areas/Config/Views/DeviceBatch/Show.generated.cs b/Disco.Web/Areas/Config/Views/DeviceBatch/Show.generated.cs
index 3a5de9ef..fa94c260 100644
--- a/Disco.Web/Areas/Config/Views/DeviceBatch/Show.generated.cs
+++ b/Disco.Web/Areas/Config/Views/DeviceBatch/Show.generated.cs
@@ -2720,21 +2720,29 @@ function buildAttachment(a, canRemove, quick) {
#line default
#line hidden
-WriteLiteral("
\r\n \r\n \r\n \r\n\r\n<" +
-"div");
+WriteLiteral(" \r\n \r\n \r\n \r\n\r\n");
+
+
+ #line 1010 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
+Write(Html.Partial(MVC.Config.Shared.Views._DeviceGroupDocumentBulkGenerate, Model));
+
+
+ #line default
+ #line hidden
+WriteLiteral(";\r\n\r\n");
- #line 1011 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
+ #line 1012 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line default
#line hidden
- #line 1011 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
+ #line 1012 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
if (Model.CanDelete)
{
@@ -2742,14 +2750,14 @@ function buildAttachment(a, canRemove, quick) {
#line default
#line hidden
- #line 1013 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
+ #line 1014 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(Html.ActionLinkButton("Delete", MVC.API.DeviceBatch.Delete(Model.DeviceBatch.Id, true), "buttonDelete"));
#line default
#line hidden
- #line 1013 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
+ #line 1014 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
}
@@ -2759,7 +2767,7 @@ function buildAttachment(a, canRemove, quick) {
WriteLiteral(" ");
- #line 1015 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
+ #line 1016 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
if (Model.DeviceCount > 0)
{
if (Authorization.Has(Claims.Device.Actions.Export))
@@ -2769,14 +2777,14 @@ function buildAttachment(a, canRemove, quick) {
#line default
#line hidden
- #line 1019 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
+ #line 1020 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(Html.ActionLinkButton("Export Devices", MVC.Device.Export(null, Disco.Models.Services.Devices.Exporting.DeviceExportTypes.Batch, Model.DeviceBatch.Id)));
#line default
#line hidden
- #line 1019 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
+ #line 1020 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
}
if (Authorization.Has(Claims.Device.Search) && Model.DeviceCount > 0)
@@ -2786,14 +2794,14 @@ function buildAttachment(a, canRemove, quick) {
#line default
#line hidden
- #line 1023 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
+ #line 1024 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(Html.ActionLinkButton(string.Format("View {0} Device{1}", Model.DeviceCount, (Model.DeviceCount != 1 ? "s" : null)), MVC.Search.Query(Model.DeviceBatch.Id.ToString(), "DeviceBatch")));
#line default
#line hidden
- #line 1023 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
+ #line 1024 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
}
}
diff --git a/Disco.Web/Areas/Config/Views/DeviceModel/Index.cshtml b/Disco.Web/Areas/Config/Views/DeviceModel/Index.cshtml
index c4ff6d28..9c8819b5 100644
--- a/Disco.Web/Areas/Config/Views/DeviceModel/Index.cshtml
+++ b/Disco.Web/Areas/Config/Views/DeviceModel/Index.cshtml
@@ -44,7 +44,14 @@
@Html.DisplayFor(modelItem => item.ModelType)
- @item.DeviceCount.ToString("n0")
+ @if (item.DeviceCount > 0 && Authorization.Has(Claims.Device.Search))
+ {
+ @Html.ActionLink(string.Format("View {0}", item.DeviceCount), MVC.Search.Query(item.Id.ToString(), "DeviceModel"))
+ }
+ else
+ {
+ @item.DeviceCount.ToString("n0")
+ }
@if (item.DeviceDecommissionedCount > 0)
{
diff --git a/Disco.Web/Areas/Config/Views/DeviceModel/Index.generated.cs b/Disco.Web/Areas/Config/Views/DeviceModel/Index.generated.cs
index a4d6ad59..f211c827 100644
--- a/Disco.Web/Areas/Config/Views/DeviceModel/Index.generated.cs
+++ b/Disco.Web/Areas/Config/Views/DeviceModel/Index.generated.cs
@@ -185,25 +185,62 @@ public override void Execute()
#line hidden
WriteLiteral("\r\n | \r\n
\r\n");
-WriteLiteral(" ");
-
#line 47 "..\..\Areas\Config\Views\DeviceModel\Index.cshtml"
- Write(item.DeviceCount.ToString("n0"));
+
+
+ #line default
+ #line hidden
+
+ #line 47 "..\..\Areas\Config\Views\DeviceModel\Index.cshtml"
+ if (item.DeviceCount > 0 && Authorization.Has(Claims.Device.Search))
+ {
#line default
#line hidden
-WriteLiteral("\r\n");
+WriteLiteral(" ");
- #line 48 "..\..\Areas\Config\Views\DeviceModel\Index.cshtml"
-
+ #line 49 "..\..\Areas\Config\Views\DeviceModel\Index.cshtml"
+ Write(Html.ActionLink(string.Format("View {0}", item.DeviceCount), MVC.Search.Query(item.Id.ToString(), "DeviceModel")));
+
#line default
#line hidden
+WriteLiteral("\r\n");
+
+
+ #line 50 "..\..\Areas\Config\Views\DeviceModel\Index.cshtml"
+ }
+ else
+ {
+
- #line 48 "..\..\Areas\Config\Views\DeviceModel\Index.cshtml"
+ #line default
+ #line hidden
+WriteLiteral(" ");
+
+
+ #line 53 "..\..\Areas\Config\Views\DeviceModel\Index.cshtml"
+ Write(item.DeviceCount.ToString("n0"));
+
+
+ #line default
+ #line hidden
+WriteLiteral("\r\n");
+
+
+ #line 54 "..\..\Areas\Config\Views\DeviceModel\Index.cshtml"
+ }
+
+
+ #line default
+ #line hidden
+WriteLiteral(" ");
+
+
+ #line 55 "..\..\Areas\Config\Views\DeviceModel\Index.cshtml"
if (item.DeviceDecommissionedCount > 0)
{
@@ -214,21 +251,21 @@ public override void Execute()
WriteLiteral(" class=\"smallMessage\"");
-WriteAttribute("title", Tuple.Create(" title=\"", 2020), Tuple.Create("\"", 2091)
+WriteAttribute("title", Tuple.Create(" title=\"", 2371), Tuple.Create("\"", 2442)
- #line 50 "..\..\Areas\Config\Views\DeviceModel\Index.cshtml"
-, Tuple.Create(Tuple.Create("", 2028), Tuple.Create(item.DeviceDecommissionedCount.ToString("n0")
+ #line 57 "..\..\Areas\Config\Views\DeviceModel\Index.cshtml"
+, Tuple.Create(Tuple.Create("", 2379), Tuple.Create(item.DeviceDecommissionedCount.ToString("n0")
#line default
#line hidden
-, 2028), false)
-, Tuple.Create(Tuple.Create(" ", 2076), Tuple.Create("Decommissioned", 2077), true)
+, 2379), false)
+, Tuple.Create(Tuple.Create(" ", 2427), Tuple.Create("Decommissioned", 2428), true)
);
WriteLiteral(">\r\n (");
- #line 51 "..\..\Areas\Config\Views\DeviceModel\Index.cshtml"
+ #line 58 "..\..\Areas\Config\Views\DeviceModel\Index.cshtml"
Write(item.DeviceDecommissionedCount.ToString("n0"));
@@ -237,7 +274,7 @@ public override void Execute()
WriteLiteral(")\r\n \r\n");
- #line 53 "..\..\Areas\Config\Views\DeviceModel\Index.cshtml"
+ #line 60 "..\..\Areas\Config\Views\DeviceModel\Index.cshtml"
}
@@ -246,7 +283,7 @@ public override void Execute()
WriteLiteral(" | \r\n \r\n");
- #line 56 "..\..\Areas\Config\Views\DeviceModel\Index.cshtml"
+ #line 63 "..\..\Areas\Config\Views\DeviceModel\Index.cshtml"
}
@@ -261,7 +298,7 @@ public override void Execute()
WriteLiteral(" ");
- #line 59 "..\..\Areas\Config\Views\DeviceModel\Index.cshtml"
+ #line 66 "..\..\Areas\Config\Views\DeviceModel\Index.cshtml"
Write(Html.ActionLinkButton("Generic Components", MVC.Config.DeviceModel.GenericComponents()));
diff --git a/Disco.Web/Areas/Config/Views/DeviceModel/Show.cshtml b/Disco.Web/Areas/Config/Views/DeviceModel/Show.cshtml
index 2962b799..201b1948 100644
--- a/Disco.Web/Areas/Config/Views/DeviceModel/Show.cshtml
+++ b/Disco.Web/Areas/Config/Views/DeviceModel/Show.cshtml
@@ -15,21 +15,24 @@
Components
@Html.Partial(MVC.Config.DeviceModel.Views._DeviceComponentsTable, Model.DeviceComponentsModel)
+@Html.Partial(MVC.Config.Shared.Views._DeviceGroupDocumentBulkGenerate, Model);
@if (Model.CanDelete)
- {
+ {
@Html.ActionLinkButton("Delete", MVC.API.DeviceModel.Delete(Model.DeviceModel.Id, true), "buttonDelete")
}
@if (Model.DeviceCount > 0)
{
if (Authorization.Has(Claims.Device.Actions.Export))
{
- @Html.ActionLinkButton("Export Devices", MVC.Device.Export(null, Disco.Models.Services.Devices.Exporting.DeviceExportTypes.Model, Model.DeviceModel.Id))
+ @Html.ActionLinkButton("Export Devices", MVC.Device.Export(null, Disco.Models.Services.Devices.Exporting.DeviceExportTypes.Model, Model.DeviceModel.Id))
}
if (Authorization.Has(Claims.Device.Search) && Model.DeviceCount > 0)
{
- @Html.ActionLinkButton(string.Format("View {0} Device{1}", Model.DeviceCount, (Model.DeviceCount != 1 ? "s" : null)), MVC.Search.Query(Model.DeviceModel.Id.ToString(), "DeviceModel"))
+ @Html.ActionLinkButton(string.Format("View {0} Device{1}", Model.DeviceCount, (Model.DeviceCount != 1 ? "s" : null)), MVC.Search.Query(Model.DeviceModel.Id.ToString(), "DeviceModel"))
}
}
diff --git a/Disco.Web/Areas/Config/Views/DeviceModel/Show.generated.cs b/Disco.Web/Areas/Config/Views/DeviceModel/Show.generated.cs
index f66158ad..e72b44da 100644
--- a/Disco.Web/Areas/Config/Views/DeviceModel/Show.generated.cs
+++ b/Disco.Web/Areas/Config/Views/DeviceModel/Show.generated.cs
@@ -2,7 +2,7 @@
//------------------------------------------------------------------------------
//
// This code was generated by a tool.
-// Runtime Version:4.0.30319.34014
+// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -27,7 +27,6 @@ namespace Disco.Web.Areas.Config.Views.DeviceModel
using System.Web.UI;
using System.Web.WebPages;
using Disco;
- using Disco.BI.Extensions;
using Disco.Models.Repository;
using Disco.Services;
using Disco.Services.Authorization;
@@ -72,71 +71,77 @@ public override void Execute()
WriteLiteral(" style=\"width: 150px\"");
-WriteLiteral(">Id:\r\n \r\n \r\n");
+WriteLiteral(">\r\n Id:\r\n \r\n | \r\n");
WriteLiteral(" ");
- #line 21 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ #line 22 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
Write(Html.DisplayFor(model => model.DeviceModel.Id));
#line default
#line hidden
-WriteLiteral("\r\n | \r\n \r\n \r\n Description:\r\n " +
-" | \r\n ");
+WriteLiteral("\r\n | \r\n
\r\n \r\n \r\n " +
+" Description:\r\n | \r\n \r\n");
- #line 27 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ #line 30 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+
+
+ #line default
+ #line hidden
+
+ #line 30 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
if (canConfig)
{
-
+
#line default
#line hidden
- #line 29 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- Write(Html.EditorFor(model => model.DeviceModel.Description));
+ #line 32 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ Write(Html.EditorFor(model => model.DeviceModel.Description));
#line default
#line hidden
- #line 29 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
-
-
+ #line 32 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+
+
#line default
#line hidden
- #line 30 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- Write(AjaxHelpers.AjaxSave());
+ #line 33 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ Write(AjaxHelpers.AjaxSave());
#line default
#line hidden
- #line 30 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
-
-
+ #line 33 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+
+
#line default
#line hidden
- #line 31 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- Write(AjaxHelpers.AjaxLoader());
+ #line 34 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ Write(AjaxHelpers.AjaxLoader());
#line default
#line hidden
- #line 31 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
-
+ #line 34 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+
#line default
#line hidden
-WriteLiteral(@" \r\n");
+" });\r\n \r\n");
- #line 42 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ #line 45 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
}
else
{
-
+
#line default
#line hidden
- #line 45 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- Write(Html.DisplayFor(model => model.DeviceModel.Description));
+ #line 48 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ Write(Html.DisplayFor(model => model.DeviceModel.Description));
#line default
#line hidden
- #line 45 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
-
+ #line 48 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+
}
#line default
#line hidden
-WriteLiteral(" | \r\n
\r\n \r\n Manufacturer:\r\n " +
-" | \r\n \r\n");
+WriteLiteral(" | \r\n
\r\n \r\n \r\n Manufacturer:\r\n " +
+" | \r\n \r\n");
-WriteLiteral(" ");
+WriteLiteral(" ");
- #line 53 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- Write(Html.DisplayFor(model => model.DeviceModel.Manufacturer));
+ #line 57 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ Write(Html.DisplayFor(model => model.DeviceModel.Manufacturer));
#line default
#line hidden
-WriteLiteral("\r\n | \r\n
\r\n \r\n Model:\r\n " +
-" | \r\n \r\n");
+WriteLiteral("\r\n | \r\n
\r\n \r\n \r\n Model:\r\n <" +
+"/th>\r\n | \r\n");
-WriteLiteral(" ");
+WriteLiteral(" ");
- #line 60 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- Write(Html.DisplayFor(model => model.DeviceModel.Model));
+ #line 65 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ Write(Html.DisplayFor(model => model.DeviceModel.Model));
#line default
#line hidden
-WriteLiteral("\r\n | \r\n
\r\n \r\n Statistics | " +
-"\r\n \r\n ");
+WriteLiteral("\r\n | \r\n
\r\n \r\n Statistics | \r\n \r\n" +
+" ");
- #line 66 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- Write(Model.DeviceCount.ToString("n0"));
+ #line 71 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ Write(Model.DeviceCount.ToString("n0"));
#line default
@@ -214,8 +219,8 @@ public override void Execute()
WriteLiteral(" ");
- #line 66 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- Write(Model.DeviceCount == 1 ? "devices is" : "devices are");
+ #line 71 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ Write(Model.DeviceCount == 1 ? "devices is" : "devices are");
#line default
@@ -223,28 +228,28 @@ public override void Execute()
WriteLiteral(" of this model type. \r\n");
- #line 67 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
-
+ #line 72 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+
#line default
#line hidden
- #line 67 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- if (Model.DeviceDecommissionedCount > 0)
- {
+ #line 72 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ if (Model.DeviceDecommissionedCount > 0)
+ {
#line default
#line hidden
-WriteLiteral(" ");
- #line 69 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- Write(Model.DeviceDecommissionedCount.ToString("n0"));
+ #line 74 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ Write(Model.DeviceDecommissionedCount.ToString("n0"));
#line default
@@ -252,8 +257,8 @@ public override void Execute()
WriteLiteral(" ");
- #line 69 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- Write(Model.DeviceDecommissionedCount == 1 ? "device is" : "devices are");
+ #line 74 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ Write(Model.DeviceDecommissionedCount == 1 ? "device is" : "devices are");
#line default
@@ -261,46 +266,52 @@ public override void Execute()
WriteLiteral(" decommissioned. \r\n");
- #line 70 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- }
+ #line 75 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ }
#line default
#line hidden
-WriteLiteral(" | \r\n
\r\n \r\n Default Purchase " +
-"Date:\r\n | \r\n ");
+WriteLiteral(" | \r\n
\r\n \r\n \r\n Default Purchase Da" +
+"te:\r\n | \r\n \r\n");
- #line 76 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- if (canConfig)
- {
+ #line 83 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+
+
+ #line default
+ #line hidden
+
+ #line 83 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ if (canConfig)
+ {
#line default
#line hidden
- #line 78 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ #line 85 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
Write(Html.EditorFor(model => model.DeviceModel.DefaultPurchaseDate));
#line default
#line hidden
- #line 78 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ #line 85 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
#line default
#line hidden
- #line 79 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ #line 86 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
Write(AjaxHelpers.AjaxLoader());
#line default
#line hidden
- #line 79 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ #line 86 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
@@ -315,7 +326,7 @@ public override void Execute()
'");
- #line 86 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ #line 93 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
Write(Url.Action(MVC.API.DeviceModel.UpdateDefaultPurchaseDate(Model.DeviceModel.Id)));
@@ -326,65 +337,71 @@ public override void Execute()
"});\r\n \r\n");
- #line 93 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- }
- else
- {
+ #line 100 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ }
+ else
+ {
#line default
#line hidden
- #line 96 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ #line 103 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
Write(CommonHelpers.FriendlyDate(Model.DeviceModel.DefaultPurchaseDate, "Unknown"));
#line default
#line hidden
- #line 96 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ #line 103 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- }
+ }
#line default
#line hidden
-WriteLiteral(" | \r\n
\r\n \r\n Default Warranty " +
-"Provider:\r\n | \r\n ");
+WriteLiteral(" | \r\n
\r\n\r\n \r\n Default Warranty Provider:\r\n | \r\n" +
+" \r\n");
- #line 103 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- if (canConfig)
- {
- if (Model.WarrantyProviders.Count > 0)
- {
+ #line 112 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+
+
+ #line default
+ #line hidden
+
+ #line 112 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ if (canConfig)
+ {
+ if (Model.WarrantyProviders.Count > 0)
+ {
#line default
#line hidden
- #line 107 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ #line 116 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
Write(Html.DropDownListFor(model => model.DeviceModel.DefaultWarrantyProvider, Model.WarrantyProviders.ToSelectListItems(Model.DeviceModel.DefaultWarrantyProvider, true, "None")));
#line default
#line hidden
- #line 107 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ #line 116 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
#line default
#line hidden
- #line 108 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ #line 117 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
Write(AjaxHelpers.AjaxLoader());
#line default
#line hidden
- #line 108 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ #line 117 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
@@ -398,7 +415,7 @@ public override void Execute()
'");
- #line 114 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ #line 123 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
Write(Url.Action(MVC.API.DeviceModel.UpdateDefaultWarrantyProvider(Model.DeviceModel.Id)));
@@ -408,10 +425,10 @@ public override void Execute()
" );\r\n });\r\n \r\n");
- #line 119 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- }
- else
- {
+ #line 128 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ }
+ else
+ {
#line default
@@ -423,10 +440,10 @@ public override void Execute()
WriteLiteral(">No warranty provider plugins installed\r\n");
- #line 123 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- }
- if (canViewPlugins)
- {
+ #line 132 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ }
+ if (canViewPlugins)
+ {
#line default
@@ -445,27 +462,27 @@ public override void Execute()
WriteLiteral(">View the (Url.Action(MVC.Config.Plugins.Install())
+ #line 137 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+, Tuple.Create(Tuple.Create("", 4926), Tuple.Create(Url.Action(MVC.Config.Plugins.Install())
#line default
#line hidden
-, 5032), false)
+, 4926), false)
);
WriteLiteral(">Plugin Catalogue to discover and install warranty provider plugins.\r\n " +
" \r\n \r\n");
- #line 131 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- }
- }
- else
- {
- if (Model.DeviceModel.DefaultWarrantyProvider == null)
- {
+ #line 140 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ }
+ }
+ else
+ {
+ if (Model.DeviceModel.DefaultWarrantyProvider == null)
+ {
#line default
@@ -477,85 +494,91 @@ public override void Execute()
WriteLiteral("><None Specified>\r\n");
- #line 138 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- }
- else
- {
- var provider = Model.WarrantyProviders.FirstOrDefault(wp => wp.Id == Model.DeviceModel.DefaultWarrantyProvider);
- if (provider == null)
- {
+ #line 147 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ }
+ else
+ {
+ var provider = Model.WarrantyProviders.FirstOrDefault(wp => wp.Id == Model.DeviceModel.DefaultWarrantyProvider);
+ if (provider == null)
+ {
#line default
#line hidden
-WriteLiteral(" <None Specified>\r\n");
- #line 145 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- }
- else
- {
-
+ #line 154 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ }
+ else
+ {
+
#line default
#line hidden
- #line 148 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- Write(provider.Name);
+ #line 157 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ Write(provider.Name);
#line default
#line hidden
- #line 148 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
-
- }
- }
+ #line 157 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+
}
+ }
+ }
#line default
#line hidden
-WriteLiteral(" | \r\n
\r\n \r\n Default Repair Pr" +
-"ovider:\r\n | \r\n ");
+WriteLiteral(" | \r\n
\r\n\r\n \r\n Default Repair Provider:\r\n | \r\n \r\n");
- #line 157 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- if (canConfig)
- {
- if (Model.RepairProviders.Count > 0)
- {
+ #line 168 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+
+
+ #line default
+ #line hidden
+
+ #line 168 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ if (canConfig)
+ {
+ if (Model.RepairProviders.Count > 0)
+ {
#line default
#line hidden
- #line 161 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ #line 172 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
Write(Html.DropDownListFor(model => model.DeviceModel.DefaultRepairProvider, Model.RepairProviders.ToSelectListItems(Model.DeviceModel.DefaultRepairProvider, true, "None")));
#line default
#line hidden
- #line 161 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ #line 172 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
#line default
#line hidden
- #line 162 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ #line 173 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
Write(AjaxHelpers.AjaxLoader());
#line default
#line hidden
- #line 162 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ #line 173 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
@@ -569,7 +592,7 @@ public override void Execute()
'");
- #line 168 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ #line 179 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
Write(Url.Action(MVC.API.DeviceModel.UpdateDefaultRepairProvider(Model.DeviceModel.Id)));
@@ -579,10 +602,10 @@ public override void Execute()
");\r\n });\r\n \r\n");
- #line 173 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- }
- else
- {
+ #line 184 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ }
+ else
+ {
#line default
@@ -590,10 +613,10 @@ public override void Execute()
WriteLiteral(" No repair provider plugins installed
\r\n");
- #line 177 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- }
- if (canViewPlugins)
- {
+ #line 188 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ }
+ if (canViewPlugins)
+ {
#line default
@@ -612,27 +635,27 @@ public override void Execute()
WriteLiteral(">View the (Url.Action(MVC.Config.Plugins.Install())
+ #line 193 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+, Tuple.Create(Tuple.Create("", 6987), Tuple.Create(Url.Action(MVC.Config.Plugins.Install())
#line default
#line hidden
-, 7333), false)
+, 6987), false)
);
WriteLiteral(">Plugin Catalogue to discover and install repair provider plugins.\r\n " +
" \r\n \r\n");
- #line 185 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- }
- }
- else
- {
- if (Model.DeviceModel.DefaultRepairProvider == null)
- {
+ #line 196 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ }
+ }
+ else
+ {
+ if (Model.DeviceModel.DefaultRepairProvider == null)
+ {
#line default
@@ -644,103 +667,102 @@ public override void Execute()
WriteLiteral("><None Specified>\r\n");
- #line 192 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- }
- else
- {
- var provider = Model.RepairProviders.FirstOrDefault(wp => wp.Id == Model.DeviceModel.DefaultRepairProvider);
- if (provider == null)
- {
+ #line 203 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ }
+ else
+ {
+ var provider = Model.RepairProviders.FirstOrDefault(wp => wp.Id == Model.DeviceModel.DefaultRepairProvider);
+ if (provider == null)
+ {
#line default
#line hidden
-WriteLiteral(" <None Specified>\r\n");
- #line 199 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- }
- else
- {
-
+ #line 210 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ }
+ else
+ {
+
#line default
#line hidden
- #line 202 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- Write(provider.Name);
+ #line 213 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ Write(provider.Name);
#line default
#line hidden
- #line 202 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
-
- }
- }
+ #line 213 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+
}
+ }
+ }
#line default
#line hidden
-WriteLiteral(" \r\n
\r\n \r\n Type:\r\n " +
-" | \r\n \r\n");
+WriteLiteral(" | \r\n
\r\n\r\n \r\n Type:\r\n | \r\n \r\n");
-WriteLiteral(" ");
+WriteLiteral(" ");
- #line 212 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- Write(Html.DisplayFor(model => model.DeviceModel.ModelType));
+ #line 224 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ Write(Html.DisplayFor(model => model.DeviceModel.ModelType));
#line default
#line hidden
-WriteLiteral("\r\n | \r\n
\r\n \r\n Image:\r\n " +
-" | \r\n \r\n \r\n |
\r\n\r\n \r\n Image:\r\n | \r\n \r\n " +
+"(Url.Action(MVC.API.DeviceModel.Image(Model.DeviceModel.Id, Model.DeviceModel.ImageHash()))
+ #line 232 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+, Tuple.Create(Tuple.Create("", 8047), Tuple.Create(Url.Action(MVC.API.DeviceModel.Image(Model.DeviceModel.Id, Model.DeviceModel.ImageHash()))
#line default
#line hidden
-, 8625), false)
+, 8047), false)
);
WriteLiteral(" />\r\n");
- #line 220 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
-
+ #line 233 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+
#line default
#line hidden
- #line 220 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- if (canConfig)
- {
+ #line 233 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ if (canConfig)
+ {
#line default
#line hidden
-WriteLiteral(" \r\n");
+WriteLiteral(" \r\n");
- #line 223 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- using (Html.BeginForm(MVC.API.DeviceModel.Image(Model.DeviceModel.Id, true, null), FormMethod.Post, new { enctype = "multipart/form-data" }))
- {
+ #line 236 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ using (Html.BeginForm(MVC.API.DeviceModel.Image(Model.DeviceModel.Id, true, null), FormMethod.Post, new { enctype = "multipart/form-data" }))
+ {
#line default
#line hidden
-WriteLiteral(" \r\n");
-WriteLiteral(" \r\n");
- #line 227 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- }
- }
+ #line 240 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ }
+ }
#line default
#line hidden
-WriteLiteral(" | \r\n
\r\n \r\n \r\n\r\n");
- #line 236 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ #line 250 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
#line default
#line hidden
- #line 236 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ #line 250 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
if (Model.CanDelete)
- {
+ {
#line default
#line hidden
- #line 238 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ #line 252 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
Write(Html.ActionLinkButton("Delete", MVC.API.DeviceModel.Delete(Model.DeviceModel.Id, true), "buttonDelete"));
#line default
#line hidden
- #line 238 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ #line 252 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
}
@@ -817,42 +848,42 @@ public override void Execute()
WriteLiteral(" ");
- #line 240 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ #line 254 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
if (Model.DeviceCount > 0)
{
if (Authorization.Has(Claims.Device.Actions.Export))
{
-
+
#line default
#line hidden
- #line 244 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- Write(Html.ActionLinkButton("Export Devices", MVC.Device.Export(null, Disco.Models.Services.Devices.Exporting.DeviceExportTypes.Model, Model.DeviceModel.Id)));
+ #line 258 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ Write(Html.ActionLinkButton("Export Devices", MVC.Device.Export(null, Disco.Models.Services.Devices.Exporting.DeviceExportTypes.Model, Model.DeviceModel.Id)));
#line default
#line hidden
- #line 244 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
-
+ #line 258 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+
}
if (Authorization.Has(Claims.Device.Search) && Model.DeviceCount > 0)
{
-
+
#line default
#line hidden
- #line 248 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
- Write(Html.ActionLinkButton(string.Format("View {0} Device{1}", Model.DeviceCount, (Model.DeviceCount != 1 ? "s" : null)), MVC.Search.Query(Model.DeviceModel.Id.ToString(), "DeviceModel")));
+ #line 262 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+ Write(Html.ActionLinkButton(string.Format("View {0} Device{1}", Model.DeviceCount, (Model.DeviceCount != 1 ? "s" : null)), MVC.Search.Query(Model.DeviceModel.Id.ToString(), "DeviceModel")));
#line default
#line hidden
- #line 248 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
-
+ #line 262 "..\..\Areas\Config\Views\DeviceModel\Show.cshtml"
+
}
}
diff --git a/Disco.Web/Areas/Config/Views/DeviceProfile/Show.cshtml b/Disco.Web/Areas/Config/Views/DeviceProfile/Show.cshtml
index 8ffe2419..78785cf5 100644
--- a/Disco.Web/Areas/Config/Views/DeviceProfile/Show.cshtml
+++ b/Disco.Web/Areas/Config/Views/DeviceProfile/Show.cshtml
@@ -38,7 +38,7 @@
@if (canConfig)
- {
+ {
@Html.TextBoxFor(model => model.DeviceProfile.Name)
@AjaxHelpers.AjaxSave()
@AjaxHelpers.AjaxLoader()
@@ -512,7 +512,7 @@
@if (canConfig)
{
-
+
}
+@Html.Partial(MVC.Config.Shared.Views._DeviceGroupDocumentBulkGenerate, Model);
@if (canDelete)
{
diff --git a/Disco.Web/Areas/Config/Views/DeviceProfile/Show.generated.cs b/Disco.Web/Areas/Config/Views/DeviceProfile/Show.generated.cs
index 6f1112be..6c92ed5e 100644
--- a/Disco.Web/Areas/Config/Views/DeviceProfile/Show.generated.cs
+++ b/Disco.Web/Areas/Config/Views/DeviceProfile/Show.generated.cs
@@ -125,7 +125,7 @@ public override void Execute()
#line 40 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
if (canConfig)
- {
+ {
#line default
@@ -724,14 +724,14 @@ enrolment with a one-to-one device isn't considered complete until it is assigne
WriteLiteral(">The profile address is used to separate jobs for (Url.Action(MVC.Config.Organisation.Index())
+ , Tuple.Create(Tuple.Create("", 8103), Tuple.Create(Url.Action(MVC.Config.Organisation.Index())
#line default
#line hidden
-, 8099), false)
+, 8103), false)
);
WriteLiteral(@">multi-site mode.
@@ -1186,14 +1186,14 @@ Computer Name
WriteLiteral(" id=\"expressionBrowserAnchor\"");
-WriteAttribute("href", Tuple.Create(" href=\"", 14667), Tuple.Create("\"", 14736)
+WriteAttribute("href", Tuple.Create(" href=\"", 14671), Tuple.Create("\"", 14740)
#line 303 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
-, Tuple.Create(Tuple.Create("", 14674), Tuple.Create (Url.Action(MVC.Config.DocumentTemplate.ExpressionBrowser())
+, Tuple.Create(Tuple.Create("", 14678), Tuple.Create(Url.Action(MVC.Config.DocumentTemplate.ExpressionBrowser())
#line default
#line hidden
-, 14674), false)
+, 14678), false)
);
WriteLiteral("> \r\n");
@@ -1714,7 +1714,7 @@ If the device has already joined the domain when enrolment occurs the name will
#line default
#line hidden
-WriteLiteral(" />\r\n");
+WriteLiteral(" />\r\n");
WriteLiteral("
+ }
+}
\ No newline at end of file
diff --git a/Disco.Web/Areas/Config/Views/Shared/_DeviceGroupDocumentBulkGenerate.generated.cs b/Disco.Web/Areas/Config/Views/Shared/_DeviceGroupDocumentBulkGenerate.generated.cs
new file mode 100644
index 00000000..6a00e38b
--- /dev/null
+++ b/Disco.Web/Areas/Config/Views/Shared/_DeviceGroupDocumentBulkGenerate.generated.cs
@@ -0,0 +1,288 @@
+#pragma warning disable 1591
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.42000
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace Disco.Web.Areas.Config.Views.Shared
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Linq;
+ using System.Net;
+ using System.Text;
+ using System.Web;
+ using System.Web.Helpers;
+ using System.Web.Mvc;
+ using System.Web.Mvc.Ajax;
+ using System.Web.Mvc.Html;
+ using System.Web.Routing;
+ using System.Web.Security;
+ using System.Web.UI;
+ using System.Web.WebPages;
+ using Disco;
+ using Disco.Models.Repository;
+ using Disco.Services;
+ using Disco.Services.Authorization;
+ using Disco.Services.Web;
+ using Disco.Web;
+ using Disco.Web.Extensions;
+
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
+ [System.Web.WebPages.PageVirtualPathAttribute("~/Areas/Config/Views/Shared/_DeviceGroupDocumentBulkGenerate.cshtml")]
+ public partial class _DeviceGroupDocumentBulkGenerate : Disco.Services.Web.WebViewPage
+ {
+ public _DeviceGroupDocumentBulkGenerate()
+ {
+ }
+ public override void Execute()
+ {
+
+ #line 2 "..\..\Areas\Config\Views\Shared\_DeviceGroupDocumentBulkGenerate.cshtml"
+ if (Model.BulkGenerateDocumentTemplates != null && Model.BulkGenerateDocumentTemplates.Any())
+{
+ List allowedTargets = new List();
+ if (Authorization.HasAll(Claims.Device.Actions.GenerateDocuments, Claims.Config.DocumentTemplate.BulkGenerate))
+ {
+ allowedTargets.Add(AttachmentTypes.Device);
+ }
+ if (Authorization.HasAll(Claims.Job.Actions.GenerateDocuments, Claims.Config.DocumentTemplate.BulkGenerate))
+ {
+ allowedTargets.Add(AttachmentTypes.Job);
+ }
+ if (Authorization.HasAll(Claims.User.Actions.GenerateDocuments, Claims.Config.DocumentTemplate.BulkGenerate))
+ {
+ allowedTargets.Add(AttachmentTypes.User);
+ }
+ var allowedTemplates = Model.BulkGenerateDocumentTemplates.Where(m => allowedTargets.Contains(m.AttachmentType)).ToList();
+ if (allowedTemplates.Any())
+ {
+ string targetDescription;
+ int targetId = Model.DeviceGroupId;
+ Func urlDelegate;
+ if (Model is Disco.Web.Areas.Config.Models.DeviceBatch.ShowModel)
+ {
+ targetDescription = "Batch";
+ urlDelegate = MVC.API.DocumentTemplate.BulkGenerateDeviceBatch;
+ }
+ else if (Model is Disco.Web.Areas.Config.Models.DeviceModel.ShowModel)
+ {
+ urlDelegate = MVC.API.DocumentTemplate.BulkGenerateDeviceModel;
+ targetDescription = "Model";
+ }
+ else if (Model is Disco.Web.Areas.Config.Models.DeviceProfile.ShowModel)
+ {
+ urlDelegate = MVC.API.DocumentTemplate.BulkGenerateDeviceProfile;
+ targetDescription = "Profile";
+ }
+ else
+ {
+ throw new NotSupportedException("Unsupported Device Group Model");
+ }
+
+
+ #line default
+ #line hidden
+WriteLiteral(" (targetDescription
+
+ #line default
+ #line hidden
+, 2017), false)
+);
+
+WriteLiteral(">\r\n \r\n Bulk generate documents for devices, users or" +
+" jobs (based on document template scope) associated with this Device ");
+
+
+ #line 44 "..\..\Areas\Config\Views\Shared\_DeviceGroupDocumentBulkGenerate.cshtml"
+ Write(targetDescription);
+
+
+ #line default
+ #line hidden
+WriteLiteral(".\r\n \r\n");
+
+
+ #line 46 "..\..\Areas\Config\Views\Shared\_DeviceGroupDocumentBulkGenerate.cshtml"
+
+
+ #line default
+ #line hidden
+
+ #line 46 "..\..\Areas\Config\Views\Shared\_DeviceGroupDocumentBulkGenerate.cshtml"
+ using (Html.BeginForm(urlDelegate(), FormMethod.Post))
+ {
+
+
+ #line default
+ #line hidden
+
+ #line 48 "..\..\Areas\Config\Views\Shared\_DeviceGroupDocumentBulkGenerate.cshtml"
+ Write(Html.AntiForgeryToken());
+
+
+ #line default
+ #line hidden
+
+ #line 48 "..\..\Areas\Config\Views\Shared\_DeviceGroupDocumentBulkGenerate.cshtml"
+
+
+
+ #line default
+ #line hidden
+
+ #line 49 "..\..\Areas\Config\Views\Shared\_DeviceGroupDocumentBulkGenerate.cshtml"
+ Write(Html.Hidden("deviceGroupId", targetId));
+
+
+ #line default
+ #line hidden
+
+ #line 49 "..\..\Areas\Config\Views\Shared\_DeviceGroupDocumentBulkGenerate.cshtml"
+
+
+
+ #line default
+ #line hidden
+WriteLiteral(" \r\n");
+
+
+ #line 57 "..\..\Areas\Config\Views\Shared\_DeviceGroupDocumentBulkGenerate.cshtml"
+ }
+
+
+ #line default
+ #line hidden
+WriteLiteral(" \r\n");
+
+WriteLiteral("
+");
+
+
+ #line 89 "..\..\Areas\Config\Views\Shared\_DeviceGroupDocumentBulkGenerate.cshtml"
+ }
+}
+
+ #line default
+ #line hidden
+ }
+ }
+}
+#pragma warning restore 1591
diff --git a/Disco.Web/Disco.Web.csproj b/Disco.Web/Disco.Web.csproj
index b82e3801..b2e028d4 100644
--- a/Disco.Web/Disco.Web.csproj
+++ b/Disco.Web/Disco.Web.csproj
@@ -231,6 +231,7 @@
+
@@ -336,6 +337,11 @@
True
TaskStatus.cshtml
+
+ True
+ True
+ _DeviceGroupDocumentBulkGenerate.cshtml
+
Create.cshtml
True
@@ -1281,6 +1287,10 @@
RazorGenerator
TaskStatus.generated.cs
+
+ RazorGenerator
+ _DeviceGroupDocumentBulkGenerate.generated.cs
+
RazorGenerator
Create.generated.cs
diff --git a/Disco.Web/Extensions/T4MVC/API.DocumentTemplateController.generated.cs b/Disco.Web/Extensions/T4MVC/API.DocumentTemplateController.generated.cs
index 4ef7880d..fcc91fe7 100644
--- a/Disco.Web/Extensions/T4MVC/API.DocumentTemplateController.generated.cs
+++ b/Disco.Web/Extensions/T4MVC/API.DocumentTemplateController.generated.cs
@@ -169,6 +169,24 @@ public virtual System.Web.Mvc.ActionResult ImporterUndetectedDelete()
}
[NonAction]
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
+ public virtual System.Web.Mvc.ActionResult BulkGenerateDeviceModel()
+ {
+ return new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.BulkGenerateDeviceModel);
+ }
+ [NonAction]
+ [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
+ public virtual System.Web.Mvc.ActionResult BulkGenerateDeviceProfile()
+ {
+ return new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.BulkGenerateDeviceProfile);
+ }
+ [NonAction]
+ [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
+ public virtual System.Web.Mvc.ActionResult BulkGenerateDeviceBatch()
+ {
+ return new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.BulkGenerateDeviceBatch);
+ }
+ [NonAction]
+ [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
public virtual System.Web.Mvc.ActionResult BulkGenerate()
{
return new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.BulkGenerate);
@@ -298,6 +316,9 @@ public class ActionNamesClass
public readonly string ImporterUndetectedFile = "ImporterUndetectedFile";
public readonly string ImporterUndetectedAssign = "ImporterUndetectedAssign";
public readonly string ImporterUndetectedDelete = "ImporterUndetectedDelete";
+ public readonly string BulkGenerateDeviceModel = "BulkGenerateDeviceModel";
+ public readonly string BulkGenerateDeviceProfile = "BulkGenerateDeviceProfile";
+ public readonly string BulkGenerateDeviceBatch = "BulkGenerateDeviceBatch";
public readonly string BulkGenerate = "BulkGenerate";
public readonly string BulkGenerateDownload = "BulkGenerateDownload";
public readonly string BulkGenerateAddUsers = "BulkGenerateAddUsers";
@@ -338,6 +359,9 @@ public class ActionNameConstants
public const string ImporterUndetectedFile = "ImporterUndetectedFile";
public const string ImporterUndetectedAssign = "ImporterUndetectedAssign";
public const string ImporterUndetectedDelete = "ImporterUndetectedDelete";
+ public const string BulkGenerateDeviceModel = "BulkGenerateDeviceModel";
+ public const string BulkGenerateDeviceProfile = "BulkGenerateDeviceProfile";
+ public const string BulkGenerateDeviceBatch = "BulkGenerateDeviceBatch";
public const string BulkGenerate = "BulkGenerate";
public const string BulkGenerateDownload = "BulkGenerateDownload";
public const string BulkGenerateAddUsers = "BulkGenerateAddUsers";
@@ -535,6 +559,33 @@ public class ActionParamsClass_ImporterUndetectedDelete
{
public readonly string id = "id";
}
+ static readonly ActionParamsClass_BulkGenerateDeviceModel s_params_BulkGenerateDeviceModel = new ActionParamsClass_BulkGenerateDeviceModel();
+ [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
+ public ActionParamsClass_BulkGenerateDeviceModel BulkGenerateDeviceModelParams { get { return s_params_BulkGenerateDeviceModel; } }
+ [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
+ public class ActionParamsClass_BulkGenerateDeviceModel
+ {
+ public readonly string id = "id";
+ public readonly string deviceGroupId = "deviceGroupId";
+ }
+ static readonly ActionParamsClass_BulkGenerateDeviceProfile s_params_BulkGenerateDeviceProfile = new ActionParamsClass_BulkGenerateDeviceProfile();
+ [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
+ public ActionParamsClass_BulkGenerateDeviceProfile BulkGenerateDeviceProfileParams { get { return s_params_BulkGenerateDeviceProfile; } }
+ [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
+ public class ActionParamsClass_BulkGenerateDeviceProfile
+ {
+ public readonly string id = "id";
+ public readonly string deviceGroupId = "deviceGroupId";
+ }
+ static readonly ActionParamsClass_BulkGenerateDeviceBatch s_params_BulkGenerateDeviceBatch = new ActionParamsClass_BulkGenerateDeviceBatch();
+ [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
+ public ActionParamsClass_BulkGenerateDeviceBatch BulkGenerateDeviceBatchParams { get { return s_params_BulkGenerateDeviceBatch; } }
+ [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
+ public class ActionParamsClass_BulkGenerateDeviceBatch
+ {
+ public readonly string id = "id";
+ public readonly string deviceGroupId = "deviceGroupId";
+ }
static readonly ActionParamsClass_BulkGenerate s_params_BulkGenerate = new ActionParamsClass_BulkGenerate();
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
public ActionParamsClass_BulkGenerate BulkGenerateParams { get { return s_params_BulkGenerate; } }
@@ -969,6 +1020,45 @@ public override System.Web.Mvc.ActionResult ImporterUndetectedDelete(string id)
return callInfo;
}
+ [NonAction]
+ partial void BulkGenerateDeviceModelOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, string id, int deviceGroupId);
+
+ [NonAction]
+ public override System.Web.Mvc.ActionResult BulkGenerateDeviceModel(string id, int deviceGroupId)
+ {
+ var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.BulkGenerateDeviceModel);
+ ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "id", id);
+ ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "deviceGroupId", deviceGroupId);
+ BulkGenerateDeviceModelOverride(callInfo, id, deviceGroupId);
+ return callInfo;
+ }
+
+ [NonAction]
+ partial void BulkGenerateDeviceProfileOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, string id, int deviceGroupId);
+
+ [NonAction]
+ public override System.Web.Mvc.ActionResult BulkGenerateDeviceProfile(string id, int deviceGroupId)
+ {
+ var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.BulkGenerateDeviceProfile);
+ ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "id", id);
+ ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "deviceGroupId", deviceGroupId);
+ BulkGenerateDeviceProfileOverride(callInfo, id, deviceGroupId);
+ return callInfo;
+ }
+
+ [NonAction]
+ partial void BulkGenerateDeviceBatchOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, string id, int deviceGroupId);
+
+ [NonAction]
+ public override System.Web.Mvc.ActionResult BulkGenerateDeviceBatch(string id, int deviceGroupId)
+ {
+ var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.BulkGenerateDeviceBatch);
+ ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "id", id);
+ ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "deviceGroupId", deviceGroupId);
+ BulkGenerateDeviceBatchOverride(callInfo, id, deviceGroupId);
+ return callInfo;
+ }
+
[NonAction]
partial void BulkGenerateOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, string id, string DataIds, bool InsertBlankPage);
diff --git a/Disco.Web/Extensions/T4MVC/Config.SharedController.generated.cs b/Disco.Web/Extensions/T4MVC/Config.SharedController.generated.cs
index aa7b566b..580569b5 100644
--- a/Disco.Web/Extensions/T4MVC/Config.SharedController.generated.cs
+++ b/Disco.Web/Extensions/T4MVC/Config.SharedController.generated.cs
@@ -38,11 +38,13 @@ public class ViewsClass
public _ViewNamesClass ViewNames { get { return s_ViewNames; } }
public class _ViewNamesClass
{
+ public readonly string _DeviceGroupDocumentBulkGenerate = "_DeviceGroupDocumentBulkGenerate";
public readonly string LinkedGroupInstance = "LinkedGroupInstance";
public readonly string LinkedGroupShared = "LinkedGroupShared";
public readonly string LogEvents = "LogEvents";
public readonly string TaskStatus = "TaskStatus";
}
+ public readonly string _DeviceGroupDocumentBulkGenerate = "~/Areas/Config/Views/Shared/_DeviceGroupDocumentBulkGenerate.cshtml";
public readonly string LinkedGroupInstance = "~/Areas/Config/Views/Shared/LinkedGroupInstance.cshtml";
public readonly string LinkedGroupShared = "~/Areas/Config/Views/Shared/LinkedGroupShared.cshtml";
public readonly string LogEvents = "~/Areas/Config/Views/Shared/LogEvents.cshtml";
|