#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.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.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/Job/LogRepairDisclose.cshtml")]
    public partial class LogRepairDisclose : Disco.Services.Web.WebViewPage<Disco.Web.Models.Job.LogRepairModel>
    {
        public LogRepairDisclose()
        {
        }
        public override void Execute()
        {
            
            #line 2 "..\..\Views\Job\LogRepairDisclose.cshtml"
  
    Authorization.Require(Claims.Job.Actions.LogRepair);
    
    ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Log Repair");

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

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

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

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

            
            #line default
            #line hidden
            
            #line 11 "..\..\Views\Job\LogRepairDisclose.cshtml"
                                                 
    
            
            #line default
            #line hidden
            
            #line 12 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(Html.HiddenFor(m => m.RepairProviderId));

            
            #line default
            #line hidden
            
            #line 12 "..\..\Views\Job\LogRepairDisclose.cshtml"
                                            
    
            
            #line default
            #line hidden
            
            #line 13 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(Html.HiddenFor(m => m.RepairDescription));

            
            #line default
            #line hidden
            
            #line 13 "..\..\Views\Job\LogRepairDisclose.cshtml"
                                             
    
            
            #line default
            #line hidden
            
            #line 14 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(Html.HiddenFor(m => m.ProviderPropertiesJson));

            
            #line default
            #line hidden
            
            #line 14 "..\..\Views\Job\LogRepairDisclose.cshtml"
                                                  

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

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

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

WriteLiteral(" value=\"Submit\"");

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

WriteLiteral("    <div");

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

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 23 "..\..\Views\Job\LogRepairDisclose.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 31 "..\..\Views\Job\LogRepairDisclose.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 39 "..\..\Views\Job\LogRepairDisclose.cshtml"
               Write(Model.Job.Device.DeviceModel.Manufacturer);

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

            
            #line 39 "..\..\Views\Job\LogRepairDisclose.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 47 "..\..\Views\Job\LogRepairDisclose.cshtml"
               Write(Model.TechUser.DisplayName);

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

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

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

            
            #line 49 "..\..\Views\Job\LogRepairDisclose.cshtml"
                                  Write(Model.TechUser.EmailAddress);

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

            
            #line 50 "..\..\Views\Job\LogRepairDisclose.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                    <div");

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

WriteLiteral(">\r\n");

WriteLiteral("                        ");

            
            #line 60 "..\..\Views\Job\LogRepairDisclose.cshtml"
                   Write(Model.OrganisationAddress.Name);

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

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

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

            
            #line 62 "..\..\Views\Job\LogRepairDisclose.cshtml"
                             Write(Model.OrganisationAddress.Address);

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

            
            #line 63 "..\..\Views\Job\LogRepairDisclose.cshtml"
                             Write(Model.OrganisationAddress.Suburb);

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

            
            #line 63 "..\..\Views\Job\LogRepairDisclose.cshtml"
                                                                Write(Model.OrganisationAddress.Postcode);

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

            
            #line 64 "..\..\Views\Job\LogRepairDisclose.cshtml"
                             Write(Model.OrganisationAddress.State);

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

            
            #line 64 "..\..\Views\Job\LogRepairDisclose.cshtml"
                                                               Write(Model.OrganisationAddress.Country);

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

WriteLiteral("                    ");

            
            #line 74 "..\..\Views\Job\LogRepairDisclose.cshtml"
               Write(Model.RepairProvider.Name);

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

            
            #line 74 "..\..\Views\Job\LogRepairDisclose.cshtml"
                                           Write(Model.RepairProvider.Id);

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

            
            #line 74 "..\..\Views\Job\LogRepairDisclose.cshtml"
                                                                     Write(Model.RepairProvider.PluginManifest.Version.ToString(3));

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

WriteLiteral("                    ");

            
            #line 82 "..\..\Views\Job\LogRepairDisclose.cshtml"
               Write(Model.RepairDescription.ToMultilineString());

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

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

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

            
            #line 92 "..\..\Views\Job\LogRepairDisclose.cshtml"
                            
            
            #line default
            #line hidden
            
            #line 92 "..\..\Views\Job\LogRepairDisclose.cshtml"
                             foreach (var dp in Model.DiscloseProperties)
                            {

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

            
            #line 95 "..\..\Views\Job\LogRepairDisclose.cshtml"
                                   Write(dp.Key);

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

            
            #line 97 "..\..\Views\Job\LogRepairDisclose.cshtml"
                                   Write(dp.Value);

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

            
            #line 100 "..\..\Views\Job\LogRepairDisclose.cshtml"
                            }

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

WriteLiteral("    <div");

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

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

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

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

WriteLiteral(" value=\"Submit Repair Request\"");

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

            
            #line 110 "..\..\Views\Job\LogRepairDisclose.cshtml"
}
            
            #line default
            #line hidden
        }
    }
}
#pragma warning restore 1591
