#pragma warning disable 1591 //------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:4.0.30319.34003 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ namespace Disco.Web.Areas.Config.Views.DeviceBatch { 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.BI.Extensions; using Disco.Models.Repository; 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/DeviceBatch/Index.cshtml")] public partial class Index : Disco.Services.Web.WebViewPage { public Index() { } public override void Execute() { #line 2 "..\..\Areas\Config\Views\DeviceBatch\Index.cshtml" Authorization.Require(Claims.Config.DeviceBatch.Show); ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "Device Batches"); #line default #line hidden WriteLiteral("\r\n"); #line 6 "..\..\Areas\Config\Views\DeviceBatch\Index.cshtml" if (Model.DeviceBatches.Count == 0) { #line default #line hidden WriteLiteral(" \r\n

No device batches are configured

\r\n \r\n"); #line 11 "..\..\Areas\Config\Views\DeviceBatch\Index.cshtml" } else { #line default #line hidden WriteLiteral(" Name Default Model Purchase Date Warranty Expires Insurance Expires Device Count "); #line 29 "..\..\Areas\Config\Views\DeviceBatch\Index.cshtml" #line default #line hidden #line 29 "..\..\Areas\Config\Views\DeviceBatch\Index.cshtml" foreach (var item in Model.DeviceBatches) { #line default #line hidden WriteLiteral(" \r\n \r\n"); WriteLiteral(" "); #line 33 "..\..\Areas\Config\Views\DeviceBatch\Index.cshtml" Write(Html.ActionLink(item.Name, MVC.Config.DeviceBatch.Index(item.Id))); #line default #line hidden WriteLiteral("\r\n \r\n \r\n"); WriteLiteral(" "); #line 36 "..\..\Areas\Config\Views\DeviceBatch\Index.cshtml" Write(item.DefaultDeviceModel); #line default #line hidden WriteLiteral("\r\n \r\n \r\n"); WriteLiteral(" "); #line 39 "..\..\Areas\Config\Views\DeviceBatch\Index.cshtml" Write(CommonHelpers.FriendlyDate(item.PurchaseDate)); #line default #line hidden WriteLiteral("\r\n \r\n \r\n"); WriteLiteral(" "); #line 42 "..\..\Areas\Config\Views\DeviceBatch\Index.cshtml" Write(CommonHelpers.FriendlyDate(item.WarrantyExpires, "Unknown")); #line default #line hidden WriteLiteral("\r\n \r\n \r\n"); WriteLiteral(" "); #line 45 "..\..\Areas\Config\Views\DeviceBatch\Index.cshtml" Write(CommonHelpers.FriendlyDate(item.InsuredUntil, item.InsuranceSupplier == null ? "N/A" : "Unknown")); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 46 "..\..\Areas\Config\Views\DeviceBatch\Index.cshtml" Write(item.InsuranceSupplier == null ? string.Empty : string.Format("[{0}]", item.InsuranceSupplier)); #line default #line hidden WriteLiteral("\r\n \r\n \r\n"); #line 49 "..\..\Areas\Config\Views\DeviceBatch\Index.cshtml" #line default #line hidden #line 49 "..\..\Areas\Config\Views\DeviceBatch\Index.cshtml" if (item.PurchaseUnitQuantity.HasValue) { #line default #line hidden WriteLiteral(" "); #line 51 "..\..\Areas\Config\Views\DeviceBatch\Index.cshtml" Write(item.DeviceCount.ToString("n0")); #line default #line hidden WriteLiteral("/"); #line 51 "..\..\Areas\Config\Views\DeviceBatch\Index.cshtml" Write(item.PurchaseUnitQuantity.Value.ToString("n0")); #line default #line hidden WriteLiteral("\r\n"); #line 52 "..\..\Areas\Config\Views\DeviceBatch\Index.cshtml" } else { #line default #line hidden #line 55 "..\..\Areas\Config\Views\DeviceBatch\Index.cshtml" Write(item.DeviceCount.ToString("n0")); #line default #line hidden #line 55 "..\..\Areas\Config\Views\DeviceBatch\Index.cshtml" } #line default #line hidden WriteLiteral(" "); #line 57 "..\..\Areas\Config\Views\DeviceBatch\Index.cshtml" if (item.DeviceDecommissionedCount > 0) { #line default #line hidden WriteLiteral(" (item.DeviceDecommissionedCount.ToString("n0") #line default #line hidden , 2125), false) , Tuple.Create(Tuple.Create(" ", 2173), Tuple.Create("Decommissioned", 2174), true) ); WriteLiteral(">("); #line 59 "..\..\Areas\Config\Views\DeviceBatch\Index.cshtml" Write(item.DeviceDecommissionedCount.ToString("n0")); #line default #line hidden WriteLiteral(")\r\n"); #line 60 "..\..\Areas\Config\Views\DeviceBatch\Index.cshtml" } #line default #line hidden WriteLiteral(" \r\n \r\n"); #line 63 "..\..\Areas\Config\Views\DeviceBatch\Index.cshtml" } #line default #line hidden WriteLiteral(" \r\n"); #line 65 "..\..\Areas\Config\Views\DeviceBatch\Index.cshtml" } #line default #line hidden #line 66 "..\..\Areas\Config\Views\DeviceBatch\Index.cshtml" if (Authorization.HasAny(Claims.Config.DeviceBatch.Create, Claims.Config.DeviceBatch.ShowTimeline)) { #line default #line hidden WriteLiteral(" \r\n"); #line 69 "..\..\Areas\Config\Views\DeviceBatch\Index.cshtml" #line default #line hidden #line 69 "..\..\Areas\Config\Views\DeviceBatch\Index.cshtml" if (Authorization.Has(Claims.Config.DeviceBatch.ShowTimeline) && Model.DeviceBatches.Count > 0) { #line default #line hidden #line 71 "..\..\Areas\Config\Views\DeviceBatch\Index.cshtml" Write(Html.ActionLinkButton("Timeline", MVC.Config.DeviceBatch.Timeline())); #line default #line hidden #line 71 "..\..\Areas\Config\Views\DeviceBatch\Index.cshtml" } #line default #line hidden WriteLiteral(" "); #line 73 "..\..\Areas\Config\Views\DeviceBatch\Index.cshtml" if (Authorization.HasAll(Claims.Config.DeviceBatch.Create, Claims.Config.DeviceBatch.Configure)) { #line default #line hidden #line 75 "..\..\Areas\Config\Views\DeviceBatch\Index.cshtml" Write(Html.ActionLinkButton("Create Device Batch", MVC.Config.DeviceBatch.Create())); #line default #line hidden #line 75 "..\..\Areas\Config\Views\DeviceBatch\Index.cshtml" } #line default #line hidden WriteLiteral(" \r\n"); #line 78 "..\..\Areas\Config\Views\DeviceBatch\Index.cshtml" } #line default #line hidden } } } #pragma warning restore 1591