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

    ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Lodge Warranty");

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

            
            #line 7 "..\..\Views\Job\LogWarranty.cshtml"
 using (Html.BeginForm(MVC.Job.LogWarranty(), FormMethod.Post))
{
    
            
            #line default
            #line hidden
            
            #line 9 "..\..\Views\Job\LogWarranty.cshtml"
Write(Html.AntiForgeryToken());

            
            #line default
            #line hidden
            
            #line 9 "..\..\Views\Job\LogWarranty.cshtml"
                            
    
            
            #line default
            #line hidden
            
            #line 10 "..\..\Views\Job\LogWarranty.cshtml"
Write(Html.ValidationSummary(true));

            
            #line default
            #line hidden
            
            #line 10 "..\..\Views\Job\LogWarranty.cshtml"
                                 
    
            
            #line default
            #line hidden
            
            #line 11 "..\..\Views\Job\LogWarranty.cshtml"
Write(Html.HiddenFor(m => m.JobId));

            
            #line default
            #line hidden
            
            #line 11 "..\..\Views\Job\LogWarranty.cshtml"
                                 
    
            
            #line default
            #line hidden
            
            #line 12 "..\..\Views\Job\LogWarranty.cshtml"
Write(Html.ValidationMessageFor(m => m.JobId));

            
            #line default
            #line hidden
            
            #line 12 "..\..\Views\Job\LogWarranty.cshtml"
                                            

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

WriteLiteral(" type=\"hidden\"");

WriteLiteral(" name=\"SubmissionAction\"");

WriteAttribute("value", Tuple.Create(" value=\"", 529), Tuple.Create("\"", 586)
            
            #line 13 "..\..\Views\Job\LogWarranty.cshtml"
, Tuple.Create(Tuple.Create("", 537), Tuple.Create<System.Object, System.Int32>(Model.IsManualProvider ? "Manual" : "Disclose"
            
            #line default
            #line hidden
, 537), false)
);

WriteLiteral(" />\r\n");

WriteLiteral("    <div");

WriteLiteral(" id=\"warrantyJobForm\"");

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

WriteLiteral(" style=\"width: 650px\"");

WriteLiteral(">\r\n        <table>\r\n            <tr>\r\n                <th>\r\n                    I" +
"nternal Job Id:\r\n                </th>\r\n                <td>\r\n");

WriteLiteral("                    ");

            
            #line 21 "..\..\Views\Job\LogWarranty.cshtml"
               Write(Model.JobId);

            
            #line default
            #line hidden
WriteLiteral("\r\n                </td>\r\n            </tr>\r\n            <tr>\r\n                <th" +
">\r\n                    Device Serial Number:\r\n                </th>\r\n           " +
"     <td>\r\n");

WriteLiteral("                    ");

            
            #line 29 "..\..\Views\Job\LogWarranty.cshtml"
               Write(Model.Job.Device.SerialNumber);

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

WriteLiteral("                    ");

            
            #line 37 "..\..\Views\Job\LogWarranty.cshtml"
               Write(Model.Job.Device.DeviceModel.Manufacturer);

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

            
            #line 37 "..\..\Views\Job\LogWarranty.cshtml"
                                                          Write(Model.Job.Device.DeviceModel.Model);

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

WriteLiteral("                    ");

            
            #line 45 "..\..\Views\Job\LogWarranty.cshtml"
               Write(Model.TechUser.DisplayName);

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

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

WriteLiteral(">\r\n                        Email Address: ");

            
            #line 47 "..\..\Views\Job\LogWarranty.cshtml"
                                  Write(Model.TechUser.EmailAddress);

            
            #line default
            #line hidden
WriteLiteral("<br />\r\n                        Phone Number: ");

            
            #line 48 "..\..\Views\Job\LogWarranty.cshtml"
                                 Write(Model.TechUser.PhoneNumber);

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

WriteLiteral(" style=\"width: 150px\"");

WriteLiteral(">\r\n                    Repair Address:\r\n                </th>\r\n                <t" +
"d>\r\n");

WriteLiteral("                    ");

            
            #line 57 "..\..\Views\Job\LogWarranty.cshtml"
               Write(Html.DropDownListFor(model => model.OrganisationAddressId, Model.OrganisationAddresses.ToSelectListItems(Model.OrganisationAddressId, (Model.OrganisationAddress == null))));

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

WriteLiteral("                    ");

            
            #line 58 "..\..\Views\Job\LogWarranty.cshtml"
               Write(Html.ValidationMessageFor(m => m.OrganisationAddressId));

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

WriteLiteral(" id=\"organisationAddressDetails\"");

WriteLiteral(">\r\n");

            
            #line 60 "..\..\Views\Job\LogWarranty.cshtml"
                        
            
            #line default
            #line hidden
            
            #line 60 "..\..\Views\Job\LogWarranty.cshtml"
                          
                            var oa = Model.OrganisationAddress;
                            if (oa != null)
                            {

            
            #line default
            #line hidden
WriteLiteral("                                <span>");

            
            #line 64 "..\..\Views\Job\LogWarranty.cshtml"
                                 Write(oa.Address);

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

WriteLiteral("                                <br />\r\n");

WriteLiteral("                                <span>");

            
            #line 66 "..\..\Views\Job\LogWarranty.cshtml"
                                 Write(oa.Suburb);

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

            
            #line 66 "..\..\Views\Job\LogWarranty.cshtml"
                                             Write(oa.Postcode);

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

WriteLiteral("                                <br />\r\n");

WriteLiteral("                                <span>");

            
            #line 68 "..\..\Views\Job\LogWarranty.cshtml"
                                 Write(oa.State);

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

            
            #line 68 "..\..\Views\Job\LogWarranty.cshtml"
                                            Write(oa.Country);

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

            
            #line 69 "..\..\Views\Job\LogWarranty.cshtml"
                            }
                        
            
            #line default
            #line hidden
WriteLiteral("\r\n                    </div>\r\n                </td>\r\n            </tr>\r\n         " +
"   <tr>\r\n                <th>\r\n                    Warranty Provider:\r\n         " +
"       </th>\r\n                <td>\r\n");

WriteLiteral("                    ");

            
            #line 79 "..\..\Views\Job\LogWarranty.cshtml"
               Write(Html.DropDownListFor(model => model.WarrantyProviderId, Model.WarrantyProviders.ToSelectListItems(Model.WarrantyProviderId, AdditionalItems: new Dictionary<string, string>() { { "MANUAL", "<Manually Submitted Claim>" } })));

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

WriteLiteral("                    ");

            
            #line 80 "..\..\Views\Job\LogWarranty.cshtml"
               Write(Html.ValidationMessageFor(m => m.WarrantyProviderId));

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

            
            #line 81 "..\..\Views\Job\LogWarranty.cshtml"
                    
            
            #line default
            #line hidden
            
            #line 81 "..\..\Views\Job\LogWarranty.cshtml"
                     if (Model.WarrantyProviders.Count == 0 && Authorization.Has(Claims.Config.Plugin.Install))
                    {

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

WriteLiteral(" class=\"info-box\"");

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

WriteLiteral(" class=\"fa-p\"");

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

WriteLiteral(" class=\"fa fa-info-circle\"");

WriteLiteral("></i>View the <a");

WriteAttribute("href", Tuple.Create(" href=\"", 3597), Tuple.Create("\"", 3647)
            
            #line 85 "..\..\Views\Job\LogWarranty.cshtml"
    , Tuple.Create(Tuple.Create("", 3604), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.Config.Plugins.Install())
            
            #line default
            #line hidden
, 3604), false)
);

WriteLiteral(">Plugin Catalogue</a> to discover and install warranty provider plugins.\r\n       " +
"                     </p>\r\n                        </div>\r\n");

            
            #line 88 "..\..\Views\Job\LogWarranty.cshtml"
                    }

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

            
            #line 91 "..\..\Views\Job\LogWarranty.cshtml"
            
            
            #line default
            #line hidden
            
            #line 91 "..\..\Views\Job\LogWarranty.cshtml"
             if (Model.IsManualProvider)
            {

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

WriteLiteral("                        ");

            
            #line 96 "..\..\Views\Job\LogWarranty.cshtml"
                   Write(Html.EditorFor(model => model.ManualProviderName));

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

WriteLiteral("                        ");

            
            #line 97 "..\..\Views\Job\LogWarranty.cshtml"
                   Write(Html.ValidationMessageFor(m => m.ManualProviderName));

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

WriteLiteral("                <tr>\r\n                    <th>Provider Job Reference:</th>\r\n     " +
"               <td>\r\n");

WriteLiteral("                        ");

            
            #line 103 "..\..\Views\Job\LogWarranty.cshtml"
                   Write(Html.EditorFor(model => model.ManualProviderReference));

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

WriteLiteral("                        ");

            
            #line 104 "..\..\Views\Job\LogWarranty.cshtml"
                   Write(Html.ValidationMessageFor(m => m.ManualProviderReference));

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

            
            #line 107 "..\..\Views\Job\LogWarranty.cshtml"
            }

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

WriteLiteral("    <div");

WriteLiteral(" id=\"warrantyJobFaultDescription\"");

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

WriteLiteral(" style=\"width: 650px; margin-top: 15px;\"");

WriteLiteral(">\r\n        <h2>Fault Description</h2>\r\n        <table>\r\n            <tr>\r\n       " +
"         <td>\r\n");

WriteLiteral("                    ");

            
            #line 115 "..\..\Views\Job\LogWarranty.cshtml"
               Write(Html.EditorFor(model => model.FaultDescription));

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

WriteLiteral("                    ");

            
            #line 116 "..\..\Views\Job\LogWarranty.cshtml"
               Write(Html.ValidationMessageFor(m => m.FaultDescription));

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

            
            #line 121 "..\..\Views\Job\LogWarranty.cshtml"
    if (!Model.IsManualProvider && Authorization.Has(Claims.Job.ShowAttachments) && Model.Job.JobAttachments.Count > 0)
    {

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

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

WriteLiteral(" style=\"width: 650px; margin-top: 15px;\"");

WriteLiteral(">\r\n            <h2>Send Attachments</h2>\r\n            <table>\r\n                <t" +
"r>\r\n                    <td>\r\n                        <p");

WriteLiteral(" id=\"publishJobAttachmentsSelect\"");

WriteLiteral(">\r\n                            Select <a");

WriteLiteral(" href=\"#\"");

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

WriteLiteral(">All</a> | <a");

WriteLiteral(" href=\"#\"");

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

WriteLiteral(">None</a>\r\n                        </p>\r\n                        <div");

WriteLiteral(" id=\"publishJobAttachments\"");

WriteLiteral(">\r\n");

            
            #line 132 "..\..\Views\Job\LogWarranty.cshtml"
                            
            
            #line default
            #line hidden
            
            #line 132 "..\..\Views\Job\LogWarranty.cshtml"
                             foreach (var ja in Model.Job.JobAttachments)
                            {

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

WriteAttribute("href", Tuple.Create(" href=\"", 5691), Tuple.Create("\"", 5748)
            
            #line 134 "..\..\Views\Job\LogWarranty.cshtml"
, Tuple.Create(Tuple.Create("", 5698), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentDownload(ja.Id))
            
            #line default
            #line hidden
, 5698), false)
);

WriteLiteral(" data-attachmentid=\"");

            
            #line 134 "..\..\Views\Job\LogWarranty.cshtml"
                                                                                                           Write(ja.Id);

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

WriteLiteral(" data-mimetype=\"");

            
            #line 134 "..\..\Views\Job\LogWarranty.cshtml"
                                                                                                                                  Write(ja.MimeType);

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

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

WriteLiteral(" type=\"checkbox\"");

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

WriteLiteral(" name=\"PublishAttachmentIds\"");

WriteAttribute("value", Tuple.Create(" value=\"", 5909), Tuple.Create("\"", 5923)
            
            #line 135 "..\..\Views\Job\LogWarranty.cshtml"
                             , Tuple.Create(Tuple.Create("", 5917), Tuple.Create<System.Object, System.Int32>(ja.Id
            
            #line default
            #line hidden
, 5917), false)
);

WriteLiteral(" ");

            
            #line 135 "..\..\Views\Job\LogWarranty.cshtml"
                                                                                                                 Write(Model.PublishAttachmentIds.Contains(ja.Id) ? "checked" : null);

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

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

WriteAttribute("title", Tuple.Create(" title=\"", 6048), Tuple.Create("\"", 6068)
            
            #line 136 "..\..\Views\Job\LogWarranty.cshtml"
, Tuple.Create(Tuple.Create("", 6056), Tuple.Create<System.Object, System.Int32>(ja.Filename
            
            #line default
            #line hidden
, 6056), false)
);

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

WriteLiteral(" alt=\"Attachment Thumbnail\"");

WriteAttribute("src", Tuple.Create(" src=\"", 6143), Tuple.Create("\"", 6202)
            
            #line 137 "..\..\Views\Job\LogWarranty.cshtml"
, Tuple.Create(Tuple.Create("", 6149), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id))
            
            #line default
            #line hidden
, 6149), false)
);

WriteLiteral(" />\r\n                                    </span>\r\n                               " +
"     <span");

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

WriteAttribute("title", Tuple.Create(" title=\"", 6311), Tuple.Create("\"", 6331)
            
            #line 139 "..\..\Views\Job\LogWarranty.cshtml"
, Tuple.Create(Tuple.Create("", 6319), Tuple.Create<System.Object, System.Int32>(ja.Comments
            
            #line default
            #line hidden
, 6319), false)
);

WriteLiteral(">\r\n");

            
            #line 140 "..\..\Views\Job\LogWarranty.cshtml"
                                        
            
            #line default
            #line hidden
            
            #line 140 "..\..\Views\Job\LogWarranty.cshtml"
                                          if (!string.IsNullOrEmpty(ja.DocumentTemplateId))
                                            { 
            
            #line default
            #line hidden
            
            #line 141 "..\..\Views\Job\LogWarranty.cshtml"
                                         Write(ja.DocumentTemplate.Description);

            
            #line default
            #line hidden
            
            #line 141 "..\..\Views\Job\LogWarranty.cshtml"
                                                                              }
                                        else
                                        { 
            
            #line default
            #line hidden
            
            #line 143 "..\..\Views\Job\LogWarranty.cshtml"
                                     Write(ja.Comments);

            
            #line default
            #line hidden
            
            #line 143 "..\..\Views\Job\LogWarranty.cshtml"
                                                       }
            
            #line default
            #line hidden
WriteLiteral("\r\n                                    </span><span");

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

WriteLiteral(">");

            
            #line 144 "..\..\Views\Job\LogWarranty.cshtml"
                                                           Write(ja.TechUser.ToStringFriendly());

            
            #line default
            #line hidden
WriteLiteral("</span><span");

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

WriteLiteral(" data-livestamp=\"");

            
            #line 144 "..\..\Views\Job\LogWarranty.cshtml"
                                                                                                                                          Write(ja.Timestamp.ToUnixEpoc());

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

WriteAttribute("title", Tuple.Create(" title=\"", 6785), Tuple.Create("\"", 6823)
            
            #line 144 "..\..\Views\Job\LogWarranty.cshtml"
                                                                                                   , Tuple.Create(Tuple.Create("", 6793), Tuple.Create<System.Object, System.Int32>(ja.Timestamp.ToFullDateTime()
            
            #line default
            #line hidden
, 6793), false)
);

WriteLiteral(">");

            
            #line 144 "..\..\Views\Job\LogWarranty.cshtml"
                                                                                                                                                                                                              Write(ja.Timestamp.ToFullDateTime());

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

            
            #line 146 "..\..\Views\Job\LogWarranty.cshtml"
                            }

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

            
            #line 152 "..\..\Views\Job\LogWarranty.cshtml"
    }
    if (Model.WarrantyProvider != null && Model.WarrantyProviderSubmitJobViewType != null)
    {

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

WriteLiteral(" id=\"warrantyJobProviderProperties\"");

WriteLiteral(">\r\n");

WriteLiteral("            ");

            
            #line 156 "..\..\Views\Job\LogWarranty.cshtml"
       Write(Html.PartialCompiled(Model.WarrantyProviderSubmitJobViewType, Model.WarrantyProviderSubmitJobModel));

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

            
            #line 158 "..\..\Views\Job\LogWarranty.cshtml"
    }

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

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

WriteLiteral(">\r\n");

            
            #line 160 "..\..\Views\Job\LogWarranty.cshtml"
        
            
            #line default
            #line hidden
            
            #line 160 "..\..\Views\Job\LogWarranty.cshtml"
         if (Model.IsManualProvider)
        {

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

WriteLiteral(" type=\"submit\"");

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

WriteLiteral(" value=\"Save Warranty Claim\"");

WriteLiteral(" />\r\n");

            
            #line 163 "..\..\Views\Job\LogWarranty.cshtml"
        }
        else
        {

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

WriteLiteral(" type=\"submit\"");

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

WriteLiteral(" value=\"Preview Warranty Claim\"");

WriteLiteral(" />\r\n");

            
            #line 167 "..\..\Views\Job\LogWarranty.cshtml"
        }

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

            
            #line 169 "..\..\Views\Job\LogWarranty.cshtml"
}

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

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

WriteLiteral(">\r\n    $(function () {\r\n        var $providerId = $(\'#WarrantyProviderId\');\r\n    " +
"    var $addressId = $(\'#OrganisationAddressId\');\r\n\r\n        function updateDeta" +
"ils() {\r\n            $(\'<form>\').attr({\r\n                action: $providerId.clo" +
"sest(\'form\').attr(\'action\'),\r\n                method: \'post\'\r\n            }).app" +
"end(\r\n                $(\'<input>\').attr({ type: \'hidden\', name: \'SubmissionActio" +
"n\', value: \'Update\' })\r\n            ).append(\r\n                $(\'<input>\').attr" +
"({ type: \'hidden\', name: \'JobId\', value: $(\'#JobId\').val() })\r\n            ).app" +
"end(\r\n                $(\'<input>\').attr({ type: \'hidden\', name: \'WarrantyProvide" +
"rId\', value: $providerId.val() })\r\n            ).append(\r\n                $(\'<in" +
"put>\').attr({ type: \'hidden\', name: \'OrganisationAddressId\', value: $addressId.v" +
"al() })\r\n            ).append(\r\n                $(\'<input>\').attr({ type: \'hidde" +
"n\', name: \'FaultDescription\', value: $(\'#FaultDescription\').val() })\r\n          " +
"  ).append(\r\n                $(\'<input>\').attr({ type: \'hidden\', name: \'ManualPr" +
"oviderName\', value: $(\'#ManualProviderName\').val() })\r\n            ).append(\r\n  " +
"              $(\'<input>\').attr({ type: \'hidden\', name: \'ManualProviderReference" +
"\', value: $(\'#ManualProviderReference\').val() })\r\n            ).append(\r\n       " +
"         $(\'<input>\').attr({ type: \'hidden\', name: \'__RequestVerificationToken\'," +
" value: $providerId.closest(\'form\').find(\'input[name=\"__RequestVerificationToken" +
"\"]\').val() })\r\n            ).appendTo(\'body\').submit();\r\n        }\r\n\r\n        $p" +
"roviderId.change(updateDetails);\r\n        $addressId.change(updateDetails);\r\n\r\n " +
"       var manualProvider = $(\'#ManualProviderName\');\r\n        if (manualProvide" +
"r.length > 0 && !manualProvider.val()) {\r\n            manualProvider.focus();\r\n " +
"       } else {\r\n            $(\'#FaultDescription\').focus();\r\n        }\r\n\r\n     " +
"   $(\'#publishJobAttachments\').on(\'click\', \'input\', function (e) {\r\n            " +
"e.preventDefault();\r\n            setTimeout(function () {\r\n                var $" +
"i = $(e.currentTarget);\r\n                $i.prop(\'checked\', !$i.prop(\'checked\'))" +
";\r\n            }, 0);\r\n            return false;\r\n        });\r\n        $(\'#publi" +
"shJobAttachmentsSelect\').on(\'click\', \'a\', function (e) {\r\n            e.preventD" +
"efault();\r\n            var $i = $(e.currentTarget);\r\n            var $c = $i.has" +
"Class(\'all\');\r\n            setTimeout(function () {\r\n                $(\'#publish" +
"JobAttachments\').find(\'input:not(:disabled)\').prop(\'checked\', $c);\r\n            " +
"}, 0);\r\n            return false;\r\n        });\r\n    });\r\n</script>\r\n");

        }
    }
}
#pragma warning restore 1591
