#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
//     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.
// </auto-generated>
//------------------------------------------------------------------------------

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

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

            
            #line 5 "..\..\Views\Job\JobParts\NonWarranty.cshtml"
 if (Authorization.Has(Claims.Job.ShowNonWarrantyComponents))
{

            
            #line default
            #line hidden
WriteLiteral("    <div");

WriteLiteral(" id=\"jobDetailTab-Components\"");

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

WriteLiteral(">\r\n");

WriteLiteral("        ");

            
            #line 8 "..\..\Views\Job\JobParts\NonWarranty.cshtml"
   Write(Html.Partial(MVC.Job.Views.JobParts.Components));

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

            
            #line 10 "..\..\Views\Job\JobParts\NonWarranty.cshtml"
}

            
            #line default
            #line hidden
            
            #line 11 "..\..\Views\Job\JobParts\NonWarranty.cshtml"
 if (Authorization.Has(Claims.Job.ShowNonWarrantyFinance))
{

            
            #line default
            #line hidden
WriteLiteral("    <div");

WriteLiteral(" id=\"jobDetailTab-NonWarrantyFinance\"");

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

WriteLiteral(">\r\n");

WriteLiteral("        ");

            
            #line 14 "..\..\Views\Job\JobParts\NonWarranty.cshtml"
   Write(Html.Partial(MVC.Job.Views.JobParts.NonWarrantyFinance));

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

            
            #line 16 "..\..\Views\Job\JobParts\NonWarranty.cshtml"
}

            
            #line default
            #line hidden
            
            #line 17 "..\..\Views\Job\JobParts\NonWarranty.cshtml"
 if (Authorization.Has(Claims.Job.ShowNonWarrantyRepairs))
{

            
            #line default
            #line hidden
WriteLiteral("    <div");

WriteLiteral(" id=\"jobDetailTab-NonWarrantyRepairs\"");

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

WriteLiteral(">\r\n");

WriteLiteral("        ");

            
            #line 20 "..\..\Views\Job\JobParts\NonWarranty.cshtml"
   Write(Html.Partial(MVC.Job.Views.JobParts.Repairs));

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

            
            #line 22 "..\..\Views\Job\JobParts\NonWarranty.cshtml"
}

            
            #line default
            #line hidden
            
            #line 23 "..\..\Views\Job\JobParts\NonWarranty.cshtml"
 if (Authorization.Has(Claims.Job.ShowNonWarrantyInsurance))
{

            
            #line default
            #line hidden
WriteLiteral("    <div");

WriteLiteral(" id=\"jobDetailTab-NonWarrantyInsurance\"");

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

WriteLiteral(">\r\n");

WriteLiteral("        ");

            
            #line 26 "..\..\Views\Job\JobParts\NonWarranty.cshtml"
   Write(Html.Partial(MVC.Job.Views.JobParts.Insurance));

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

            
            #line 28 "..\..\Views\Job\JobParts\NonWarranty.cshtml"
}

            
            #line default
            #line hidden
            
            #line 29 "..\..\Views\Job\JobParts\NonWarranty.cshtml"
 if (Authorization.HasAny(Claims.Job.ShowNonWarrantyComponents, Claims.Job.ShowNonWarrantyFinance, Claims.Job.ShowNonWarrantyRepairs, Claims.Job.ShowNonWarrantyInsurance))
{

            
            #line default
            #line hidden
WriteLiteral("    <script");

WriteLiteral(" type=\"text/javascript\"");

WriteLiteral(">\r\n        var addTabItems = \'\';\r\n");

            
            #line 33 "..\..\Views\Job\JobParts\NonWarranty.cshtml"
        
            
            #line default
            #line hidden
            
            #line 33 "..\..\Views\Job\JobParts\NonWarranty.cshtml"
         if (Authorization.Has(Claims.Job.ShowNonWarrantyComponents)){
            
            #line default
            #line hidden
WriteLiteral("addTabItems += \'<li><a");

WriteLiteral(" href=\"#jobDetailTab-Components\"");

WriteLiteral(">Components [");

            
            #line 33 "..\..\Views\Job\JobParts\NonWarranty.cshtml"
                                                                                                                                           Write(Model.Job.JobComponents.Count);

            
            #line default
            #line hidden
WriteLiteral("]</a></li>\';");

            
            #line 33 "..\..\Views\Job\JobParts\NonWarranty.cshtml"
                                                                                                                                                                                                  }

            
            #line default
            #line hidden
WriteLiteral("        ");

            
            #line 34 "..\..\Views\Job\JobParts\NonWarranty.cshtml"
         if (Authorization.Has(Claims.Job.ShowNonWarrantyFinance)){
            
            #line default
            #line hidden
WriteLiteral("addTabItems += \'<li><a");

WriteLiteral(" href=\"#jobDetailTab-NonWarrantyFinance\"");

WriteLiteral(">Finance</a></li>\';");

            
            #line 34 "..\..\Views\Job\JobParts\NonWarranty.cshtml"
                                                                                                                                                                 }

            
            #line default
            #line hidden
WriteLiteral("        ");

            
            #line 35 "..\..\Views\Job\JobParts\NonWarranty.cshtml"
         if (Authorization.Has(Claims.Job.ShowNonWarrantyRepairs)){
            
            #line default
            #line hidden
WriteLiteral("addTabItems += \'<li><a");

WriteLiteral(" href=\"#jobDetailTab-NonWarrantyRepairs\"");

WriteLiteral(">Repairs</a></li>\';");

            
            #line 35 "..\..\Views\Job\JobParts\NonWarranty.cshtml"
                                                                                                                                                                 }

            
            #line default
            #line hidden
WriteLiteral("        ");

            
            #line 36 "..\..\Views\Job\JobParts\NonWarranty.cshtml"
         if (Authorization.Has(Claims.Job.ShowNonWarrantyInsurance)){
            
            #line default
            #line hidden
WriteLiteral("addTabItems += \'<li><a");

WriteLiteral(" href=\"#jobDetailTab-NonWarrantyInsurance\"");

WriteLiteral(">Insurance</a></li>\';");

            
            #line 36 "..\..\Views\Job\JobParts\NonWarranty.cshtml"
                                                                                                                                                                       }

            
            #line default
            #line hidden
WriteLiteral("        $(\'#jobDetailTabItems\').append(addTabItems);\r\n    </script>\r\n");

            
            #line 39 "..\..\Views\Job\JobParts\NonWarranty.cshtml"
}
            
            #line default
            #line hidden
        }
    }
}
#pragma warning restore 1591
