237 lines
6.4 KiB
C#
237 lines
6.4 KiB
C#
#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/InsuranceProviderJobDetails.cshtml")]
|
|
public partial class InsuranceProviderJobDetails : Disco.Services.Web.WebViewPage<Disco.Web.Models.Job.ProviderJobDetailsModel>
|
|
{
|
|
public InsuranceProviderJobDetails()
|
|
{
|
|
}
|
|
public override void Execute()
|
|
{
|
|
|
|
#line 2 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml"
|
|
Layout = null;
|
|
|
|
Authorization.Require(Claims.Job.Properties.NonWarrantyProperties.InsuranceDetails);
|
|
|
|
if (Model.JobDetailsException != null)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <h3>\r\n Error:</h3>\r\n");
|
|
|
|
WriteLiteral(" <div>\r\n <strong>");
|
|
|
|
|
|
#line 11 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml"
|
|
Write(Model.JobDetailsException.Message);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</strong>\r\n </div>\r\n");
|
|
|
|
WriteLiteral(" <a");
|
|
|
|
WriteLiteral(" href=\"#\"");
|
|
|
|
WriteLiteral(" id=\"errorShow\"");
|
|
|
|
WriteLiteral(" class=\"smallMessage\"");
|
|
|
|
WriteLiteral(">(show more)</a>\r\n");
|
|
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" id=\"errorMore\"");
|
|
|
|
WriteLiteral(" style=\"display: none\"");
|
|
|
|
WriteLiteral(">\r\n <br />\r\n <strong>Error Type: </strong>");
|
|
|
|
|
|
#line 16 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml"
|
|
Write(Model.JobDetailsException.GetType().Name);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n <br />\r\n <strong>Stack Trace:</strong>\r\n <div");
|
|
|
|
WriteLiteral(" class=\"code\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 20 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml"
|
|
Write(Model.JobDetailsException.StackTrace.ToMultilineString());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </div>\r\n");
|
|
|
|
|
|
#line 22 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 22 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml"
|
|
if (Model.JobDetailsException.InnerException != null)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <hr />\r\n");
|
|
|
|
WriteLiteral(" <div>\r\n <strong>Inner Exception:</strong> ");
|
|
|
|
|
|
#line 26 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml"
|
|
Write(Model.JobDetailsException.InnerException.Message);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("<br />\r\n <strong>Error Type:</strong> ");
|
|
|
|
|
|
#line 27 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml"
|
|
Write(Model.JobDetailsException.GetType().Name);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("<br />\r\n <strong>Stack Trace:</strong>\r\n <div");
|
|
|
|
WriteLiteral(" class=\"code\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 30 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml"
|
|
Write(Model.JobDetailsException.InnerException.StackTrace);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </div>\r\n </div>\r\n");
|
|
|
|
|
|
#line 33 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
WriteLiteral(">\r\n $(function () {\r\n $(\'#errorShow\').click(function ()" +
|
|
" {\r\n $(this).hide();\r\n $(\'#errorMore\').sli" +
|
|
"deDown();\r\n });\r\n });\r\n </script>\r\n </div>\r\n" +
|
|
"");
|
|
|
|
|
|
#line 43 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml"
|
|
}
|
|
else
|
|
{
|
|
if (Model.JobDetailsSupported)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 48 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml"
|
|
Write(Html.PartialCompiled(Model.ViewType, Model.ViewModel));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 48 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml"
|
|
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <span");
|
|
|
|
WriteLiteral(" class=\"smallMessage\"");
|
|
|
|
WriteLiteral(">");
|
|
|
|
|
|
#line 52 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml"
|
|
Write(Model.JobDetailsNotSupportedMessage);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</span>\r\n");
|
|
|
|
|
|
#line 53 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml"
|
|
}
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
}
|
|
}
|
|
}
|
|
#pragma warning restore 1591
|