#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.34014
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace Disco.Web.Views.Device.DeviceParts
{
    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;
    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("~/Views/Device/DeviceParts/_Details.cshtml")]
    public partial class Details : Disco.Services.Web.WebViewPage<Disco.Web.Models.Device.ShowModel>
    {
        public Details()
        {
        }
        public override void Execute()
        {
            
            #line 2 "..\..\Views\Device\DeviceParts\_Details.cshtml"
  
    Authorization.Require(Claims.Device.ShowDetails);

    var canConfig = Authorization.Has(Claims.Device.Properties.Details);

    if (canConfig)
    {
        Html.BundleDeferred("~/ClientScripts/Modules/Disco-PropertyChangeHelpers");
    }

            
            #line default
            #line hidden
WriteLiteral("\r\n<div");

WriteLiteral(" id=\"DeviceDetailTab-Details\"");

WriteLiteral(" class=\"DevicePart\"");

WriteLiteral(">\r\n    <div");

WriteLiteral(" id=\"DeviceDetailTab-DetailsContainer\"");

WriteLiteral(">\r\n        <table");

WriteLiteral(" class=\"tableData\"");

WriteLiteral(">\r\n            <tbody>\r\n                <tr>\r\n                    <th>LAN MAC Add" +
"ress</th>\r\n                    <td");

WriteLiteral(" class=\"code\"");

WriteLiteral(">");

            
            #line 18 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                                 Write(Model.Device.DeviceDetails.LanMacAddress() ?? "Unknown");

            
            #line default
            #line hidden
WriteLiteral("</td>\r\n                </tr>\r\n                <tr>\r\n                    <th>WLAN " +
"MAC Address</th>\r\n                    <td");

WriteLiteral(" class=\"code\"");

WriteLiteral(">");

            
            #line 22 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                                 Write(Model.Device.DeviceDetails.WLanMacAddress() ?? "Unknown");

            
            #line default
            #line hidden
WriteLiteral("</td>\r\n                </tr>\r\n                <tr>\r\n                    <th>AC Ad" +
"apter</th>\r\n                    <td>");

            
            #line 26 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                         if (canConfig)
                        {
                        
            
            #line default
            #line hidden
            
            #line 28 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                   Write(Html.TextBox("DeviceDetail_ACAdapter", Model.Device.DeviceDetails.ACAdapter()));

            
            #line default
            #line hidden
            
            #line 28 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                                                                                                        
            
            #line default
            #line hidden
            
            #line 28 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                                                                                                   Write(AjaxHelpers.AjaxSave());

            
            #line default
            #line hidden
            
            #line 28 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                                                                                                                                
            
            #line default
            #line hidden
            
            #line 28 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                                                                                                                           Write(AjaxHelpers.AjaxLoader());

            
            #line default
            #line hidden
            
            #line 28 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                                                                                                                                                         

            
            #line default
            #line hidden
WriteLiteral("                        <script>\r\n                            $(function () {\r\n  " +
"                              document.DiscoFunctions.PropertyChangeHelper($(\'#D" +
"eviceDetail_ACAdapter\'), \'Unknown\', \'");

            
            #line 31 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                                                                                                                  Write(Url.Action(MVC.API.Device.UpdateDetailACAdapter(Model.Device.SerialNumber, null)));

            
            #line default
            #line hidden
WriteLiteral("\', \'DetailACAdapter\');\r\n                            });\r\n                        " +
"</script>\r\n");

            
            #line 34 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                        }
                        else
                        {
                        
            
            #line default
            #line hidden
            
            #line 37 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                    Write(Model.Device.DeviceDetails.ACAdapter() ?? "Unknown");

            
            #line default
            #line hidden
            
            #line 37 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                                                                              
                        }

            
            #line default
            #line hidden
WriteLiteral("                    </td>\r\n                </tr>\r\n                <tr>\r\n         " +
"           <th>Battery</th>\r\n                    <td>");

            
            #line 43 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                         if (canConfig)
                        {
                        
            
            #line default
            #line hidden
            
            #line 45 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                   Write(Html.TextBox("DeviceDetail_Battery", Model.Device.DeviceDetails.Battery()));

            
            #line default
            #line hidden
            
            #line 45 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                                                                                                    
            
            #line default
            #line hidden
            
            #line 45 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                                                                                               Write(AjaxHelpers.AjaxSave());

            
            #line default
            #line hidden
            
            #line 45 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                                                                                                                            
            
            #line default
            #line hidden
            
            #line 45 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                                                                                                                       Write(AjaxHelpers.AjaxLoader());

            
            #line default
            #line hidden
            
            #line 45 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                                                                                                                                                     

            
            #line default
            #line hidden
WriteLiteral("                        <script>\r\n                            $(function () {\r\n  " +
"                              document.DiscoFunctions.PropertyChangeHelper($(\'#D" +
"eviceDetail_Battery\'), \'Unknown\', \'");

            
            #line 48 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                                                                                                                Write(Url.Action(MVC.API.Device.UpdateDetailBattery(Model.Device.SerialNumber, null)));

            
            #line default
            #line hidden
WriteLiteral("\', \'DetailBattery\');\r\n                            });\r\n                        </" +
"script>\r\n");

            
            #line 51 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                        }
                        else
                        {
                        
            
            #line default
            #line hidden
            
            #line 54 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                    Write(Model.Device.DeviceDetails.Battery() ?? "Unknown");

            
            #line default
            #line hidden
            
            #line 54 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                                                                            
                        }

            
            #line default
            #line hidden
WriteLiteral("                    </td>\r\n                </tr>\r\n                <tr>\r\n         " +
"           <th>Keyboard</th>\r\n                    <td>");

            
            #line 60 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                         if (canConfig)
                        {
                        
            
            #line default
            #line hidden
            
            #line 62 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                   Write(Html.TextBox("DeviceDetail_Keyboard", Model.Device.DeviceDetails.Keyboard()));

            
            #line default
            #line hidden
            
            #line 62 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                                                                                                      
            
            #line default
            #line hidden
            
            #line 62 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                                                                                                 Write(AjaxHelpers.AjaxSave());

            
            #line default
            #line hidden
            
            #line 62 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                                                                                                                              
            
            #line default
            #line hidden
            
            #line 62 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                                                                                                                         Write(AjaxHelpers.AjaxLoader());

            
            #line default
            #line hidden
            
            #line 62 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                                                                                                                                                       

            
            #line default
            #line hidden
WriteLiteral("                        <script>\r\n                            $(function () {\r\n  " +
"                              document.DiscoFunctions.PropertyChangeHelper($(\'#D" +
"eviceDetail_Keyboard\'), \'Unknown\', \'");

            
            #line 65 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                                                                                                                 Write(Url.Action(MVC.API.Device.UpdateDetailKeyboard(Model.Device.SerialNumber, null)));

            
            #line default
            #line hidden
WriteLiteral("\', \'DetailKeyboard\');\r\n                            });\r\n                        <" +
"/script>\r\n");

            
            #line 68 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                        }
                        else
                        {
                        
            
            #line default
            #line hidden
            
            #line 71 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                    Write(Model.Device.DeviceDetails.Keyboard() ?? "Unknown");

            
            #line default
            #line hidden
            
            #line 71 "..\..\Views\Device\DeviceParts\_Details.cshtml"
                                                                             
                        }

            
            #line default
            #line hidden
WriteLiteral("                    </td>\r\n                </tr>\r\n            </tbody>\r\n        <" +
"/table>\r\n    </div>\r\n    <script>\r\n        $(\'#DeviceDetailTabItems\').append(\'<l" +
"i><a href=\"#DeviceDetailTab-Details\">Details</a></li>\');\r\n    </script>\r\n</div>\r" +
"\n");

        }
    }
}
#pragma warning restore 1591
