#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.DeviceProfile { 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/DeviceProfile/_TableRender.cshtml")] public partial class _TableRender : Disco.Services.Web.WebViewPage> { public _TableRender() { } public override void Execute() { #line 2 "..\..\Areas\Config\Views\DeviceProfile\_TableRender.cshtml" Authorization.Require(Claims.Config.DeviceProfile.Show); var showTags = Model.Any(i => i.IsLinked); #line default #line hidden WriteLiteral("\r\n\r\n \r\n \r\n Name\r\n \r\n \r\n Description\r\n \r\n \r\n Type\r\n \r\n \r\n Device Count\r\n \r\n"); #line 20 "..\..\Areas\Config\Views\DeviceProfile\_TableRender.cshtml" #line default #line hidden #line 20 "..\..\Areas\Config\Views\DeviceProfile\_TableRender.cshtml" if (showTags) { #line default #line hidden WriteLiteral("  \r\n"); #line 23 "..\..\Areas\Config\Views\DeviceProfile\_TableRender.cshtml" } #line default #line hidden WriteLiteral(" \r\n"); #line 25 "..\..\Areas\Config\Views\DeviceProfile\_TableRender.cshtml" #line default #line hidden #line 25 "..\..\Areas\Config\Views\DeviceProfile\_TableRender.cshtml" foreach (var item in Model) { #line default #line hidden WriteLiteral(" \r\n \r\n"); WriteLiteral(" "); #line 29 "..\..\Areas\Config\Views\DeviceProfile\_TableRender.cshtml" Write(Html.ActionLink(item.Name, MVC.Config.DeviceProfile.Index(item.Id))); #line default #line hidden WriteLiteral("\r\n \r\n \r\n"); WriteLiteral(" "); #line 32 "..\..\Areas\Config\Views\DeviceProfile\_TableRender.cshtml" Write(Html.DisplayFor(modelItem => item.Description)); #line default #line hidden WriteLiteral("\r\n \r\n \r\n"); WriteLiteral(" "); #line 35 "..\..\Areas\Config\Views\DeviceProfile\_TableRender.cshtml" Write(Html.DisplayFor(modelItem => item.DistributionType)); #line default #line hidden WriteLiteral("\r\n \r\n \r\n"); #line 38 "..\..\Areas\Config\Views\DeviceProfile\_TableRender.cshtml" #line default #line hidden #line 38 "..\..\Areas\Config\Views\DeviceProfile\_TableRender.cshtml" if (item.DeviceCount > 0 && Authorization.Has(Claims.Device.Search)) { #line default #line hidden WriteLiteral(" "); #line 40 "..\..\Areas\Config\Views\DeviceProfile\_TableRender.cshtml" Write(Html.ActionLink(string.Format("View {0}", item.DeviceCount), MVC.Search.Query(item.Id.ToString(), "DeviceProfile"))); #line default #line hidden WriteLiteral("\r\n"); #line 41 "..\..\Areas\Config\Views\DeviceProfile\_TableRender.cshtml" } else { #line default #line hidden WriteLiteral(" "); #line 44 "..\..\Areas\Config\Views\DeviceProfile\_TableRender.cshtml" Write(item.DeviceCount.ToString("n0")); #line default #line hidden WriteLiteral("\r\n"); #line 45 "..\..\Areas\Config\Views\DeviceProfile\_TableRender.cshtml" } #line default #line hidden WriteLiteral(" "); #line 46 "..\..\Areas\Config\Views\DeviceProfile\_TableRender.cshtml" if (item.DeviceDecommissionedCount > 0) { #line default #line hidden WriteLiteral(" (item.DeviceDecommissionedCount.ToString("n0") #line default #line hidden , 1548), false) , Tuple.Create(Tuple.Create(" ", 1596), Tuple.Create("Decommissioned", 1597), true) ); WriteLiteral(">\r\n ("); #line 49 "..\..\Areas\Config\Views\DeviceProfile\_TableRender.cshtml" Write(item.DeviceDecommissionedCount.ToString("n0")); #line default #line hidden WriteLiteral(")\r\n \r\n"); #line 51 "..\..\Areas\Config\Views\DeviceProfile\_TableRender.cshtml" } #line default #line hidden WriteLiteral(" \r\n"); #line 53 "..\..\Areas\Config\Views\DeviceProfile\_TableRender.cshtml" #line default #line hidden #line 53 "..\..\Areas\Config\Views\DeviceProfile\_TableRender.cshtml" if (showTags) { #line default #line hidden WriteLiteral(" \r\n"); #line 56 "..\..\Areas\Config\Views\DeviceProfile\_TableRender.cshtml" #line default #line hidden #line 56 "..\..\Areas\Config\Views\DeviceProfile\_TableRender.cshtml" if (item.IsLinked) { #line default #line hidden WriteLiteral(" \r\n"); #line 59 "..\..\Areas\Config\Views\DeviceProfile\_TableRender.cshtml" } else { #line default #line hidden WriteLiteral(" "); WriteLiteral(" "); WriteLiteral("\r\n"); #line 63 "..\..\Areas\Config\Views\DeviceProfile\_TableRender.cshtml" } #line default #line hidden WriteLiteral(" \r\n"); #line 65 "..\..\Areas\Config\Views\DeviceProfile\_TableRender.cshtml" } #line default #line hidden WriteLiteral(" \r\n"); #line 67 "..\..\Areas\Config\Views\DeviceProfile\_TableRender.cshtml" } #line default #line hidden WriteLiteral("\r\n"); } } } #pragma warning restore 1591