2027 lines
64 KiB
C#
2027 lines
64 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.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/Insurance.cshtml")]
|
|
public partial class Insurance : Disco.Services.Web.WebViewPage<Disco.Web.Models.Job.ShowModel>
|
|
{
|
|
public Insurance()
|
|
{
|
|
}
|
|
public override void Execute()
|
|
{
|
|
|
|
#line 2 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
Authorization.Require(Claims.Job.ShowNonWarrantyInsurance);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n<table");
|
|
|
|
WriteLiteral(" id=\"jobNonWarrantyInsurance\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
|
|
#line 6 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 6 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
if (Model.Job.JobMetaNonWarranty.IsInsuranceClaim)
|
|
{
|
|
if (Authorization.Has(Claims.Job.Properties.NonWarrantyProperties.InsuranceDetails))
|
|
{
|
|
Html.BundleDeferred("~/ClientScripts/Modules/Disco-PropertyChangeHelpers");
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <tr>\r\n <th");
|
|
|
|
WriteLiteral(" style=\"width: 230px;\"");
|
|
|
|
WriteLiteral(">\r\n Date of Loss or Damage\r\n </th>\r\n " +
|
|
" <td>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 16 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.LossOrDamageDate));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 17 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxLoader());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
WriteLiteral(@">
|
|
$(function () {
|
|
var dateField = $('#Job_JobMetaInsurance_LossOrDamageDate');
|
|
document.DiscoFunctions.DateChangeHelper(
|
|
dateField,
|
|
'Unknown',
|
|
'");
|
|
|
|
|
|
#line 24 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Url.Action(MVC.API.Job.UpdateInsuranceLossOrDamageDate(Model.Job.Id, null)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\',\r\n \'LossOrDamageDate\',\r\n null\r\n " +
|
|
" );\r\n });\r\n </script>" +
|
|
"\r\n </td>\r\n </tr>\r\n");
|
|
|
|
WriteLiteral(" <tr>\r\n <th>\r\n Event Location\r\n " +
|
|
" </th>\r\n <td>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 37 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.EventLocation));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 38 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxSave());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 39 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxLoader());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
WriteLiteral(">\r\n $(function () {\r\n document.DiscoFun" +
|
|
"ctions.PropertyChangeHelper(\r\n $(\'#Job_JobMetaInsuran" +
|
|
"ce_EventLocation\'),\r\n \'Unknown\',\r\n " +
|
|
" \'");
|
|
|
|
|
|
#line 45 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Url.Action(MVC.API.Job.UpdateInsuranceEventLocation(Model.Job.Id, null)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\',\r\n \'EventLocation\'\r\n );\r\n " +
|
|
" });\r\n </script>\r\n </td>\r\n " +
|
|
" </tr>\r\n");
|
|
|
|
WriteLiteral(" <tr>\r\n <th>\r\n Description\r\n " +
|
|
" </th>\r\n <td>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 57 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.Description));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 58 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxSave());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 59 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxLoader());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
WriteLiteral(">\r\n $(function () {\r\n document.DiscoFun" +
|
|
"ctions.PropertyChangeHelper(\r\n $(\'#Job_JobMetaInsuran" +
|
|
"ce_Description\'),\r\n \'None\',\r\n " +
|
|
" \'");
|
|
|
|
|
|
#line 65 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Url.Action(MVC.API.Job.UpdateInsuranceDescription(Model.Job.Id, null)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\',\r\n \'Description\'\r\n );\r\n " +
|
|
" });\r\n </script>\r\n </td>\r\n " +
|
|
" </tr>\r\n");
|
|
|
|
WriteLiteral(" <tr>\r\n <th");
|
|
|
|
WriteLiteral(" style=\"width: 200px;\"");
|
|
|
|
WriteLiteral(">\r\n \r\n </th>\r\n <td>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 77 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.ThirdPartyCaused));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 77 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.LabelFor(m => m.Job.JobMetaInsurance.ThirdPartyCaused));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 78 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxSave());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 79 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxLoader());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n <div");
|
|
|
|
WriteLiteral(" id=\"Job_JobMetaInsurance_ThirdPartyCaused_Details\"");
|
|
|
|
WriteLiteral(" style=\"padding-left: 25px;\"");
|
|
|
|
WriteLiteral(">\r\n <div>\r\n <h5>Third Party Nam" +
|
|
"e</h5>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 83 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.ThirdPartyCausedName));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 84 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxSave());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 85 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxLoader());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </div>\r\n <div>\r\n " +
|
|
" <h5>Why Third Parties Fault</h5>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 89 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.ThirdPartyCausedWhy));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 90 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxSave());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 91 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxLoader());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </div>\r\n </div>\r\n " +
|
|
" <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
WriteLiteral(@">
|
|
$(function () {
|
|
var thirdPartyField = $('#Job_JobMetaInsurance_ThirdPartyCaused');
|
|
var thirdPartyDetails = $('#Job_JobMetaInsurance_ThirdPartyCaused_Details');
|
|
var thirdPartyDetails_Changed = function (e, dontAnimate) {
|
|
if (thirdPartyField.is(':checked')) {
|
|
if (dontAnimate) {
|
|
thirdPartyDetails.show();
|
|
} else {
|
|
thirdPartyDetails.slideDown();
|
|
}
|
|
} else {
|
|
if (dontAnimate) {
|
|
thirdPartyDetails.hide();
|
|
} else {
|
|
thirdPartyDetails.slideUp();
|
|
}
|
|
}
|
|
};
|
|
thirdPartyDetails_Changed(null, true);
|
|
thirdPartyField.change(thirdPartyDetails_Changed);
|
|
|
|
document.DiscoFunctions.PropertyChangeHelper(
|
|
thirdPartyField,
|
|
null,
|
|
'");
|
|
|
|
|
|
#line 119 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Url.Action(MVC.API.Job.UpdateInsuranceThirdPartyCaused(Model.Job.Id, null)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(@"',
|
|
'ThirdPartyCaused'
|
|
);
|
|
document.DiscoFunctions.PropertyChangeHelper(
|
|
$('#Job_JobMetaInsurance_ThirdPartyCausedName'),
|
|
'None',
|
|
'");
|
|
|
|
|
|
#line 125 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Url.Action(MVC.API.Job.UpdateInsuranceThirdPartyCausedName(Model.Job.Id, null)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(@"',
|
|
'ThirdPartyCausedName'
|
|
);
|
|
document.DiscoFunctions.PropertyChangeHelper(
|
|
$('#Job_JobMetaInsurance_ThirdPartyCausedWhy'),
|
|
'Unknown',
|
|
'");
|
|
|
|
|
|
#line 131 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Url.Action(MVC.API.Job.UpdateInsuranceThirdPartyCausedWhy(Model.Job.Id, null)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\',\r\n \'ThirdPartyCausedWhy\'\r\n );" +
|
|
"\r\n });\r\n </script>\r\n </td>\r" +
|
|
"\n </tr>\r\n");
|
|
|
|
WriteLiteral(" <tr>\r\n <th>\r\n Witnessed by (Name/Ad" +
|
|
"dress)\r\n </th>\r\n <td>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 143 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.WitnessesNamesAddresses));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 144 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxSave());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 145 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxLoader());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
WriteLiteral(@">
|
|
$(function () {
|
|
document.DiscoFunctions.PropertyChangeHelper(
|
|
$('#Job_JobMetaInsurance_WitnessesNamesAddresses'),
|
|
'None',
|
|
'");
|
|
|
|
|
|
#line 151 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Url.Action(MVC.API.Job.UpdateInsuranceWitnessesNamesAddresses(Model.Job.Id, null)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\',\r\n \'WitnessesNamesAddresses\'\r\n " +
|
|
" );\r\n });\r\n </script>\r\n </" +
|
|
"td>\r\n </tr>\r\n");
|
|
|
|
WriteLiteral(" <tr>\r\n <th>\r\n Burglary/Theft - Meth" +
|
|
"od of Entry\r\n </th>\r\n <td>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 163 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.BurglaryTheftMethodOfEntry));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 164 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxSave());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 165 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxLoader());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
WriteLiteral(@">
|
|
$(function () {
|
|
document.DiscoFunctions.PropertyChangeHelper(
|
|
$('#Job_JobMetaInsurance_BurglaryTheftMethodOfEntry'),
|
|
'None',
|
|
'");
|
|
|
|
|
|
#line 171 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Url.Action(MVC.API.Job.UpdateInsuranceBurglaryTheftMethodOfEntry(Model.Job.Id, null)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\',\r\n \'BurglaryTheftMethodOfEntry\'\r\n " +
|
|
" );\r\n });\r\n </script>\r\n " +
|
|
" </td>\r\n </tr>\r\n");
|
|
|
|
WriteLiteral(" <tr>\r\n <th");
|
|
|
|
WriteLiteral(" style=\"width: 200px;\"");
|
|
|
|
WriteLiteral(">\r\n Property Last Seen\r\n </th>\r\n " +
|
|
" <td>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 183 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.PropertyLastSeenDate));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 184 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxLoader());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
WriteLiteral(@">
|
|
$(function () {
|
|
var dateField = $('#Job_JobMetaInsurance_PropertyLastSeenDate');
|
|
document.DiscoFunctions.DateChangeHelper(
|
|
dateField,
|
|
'Unknown/NA',
|
|
'");
|
|
|
|
|
|
#line 191 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Url.Action(MVC.API.Job.UpdateInsurancePropertyLastSeenDate(Model.Job.Id, null)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\',\r\n \'PropertyLastSeenDate\',\r\n null" +
|
|
"\r\n );\r\n });\r\n </scr" +
|
|
"ipt>\r\n </td>\r\n </tr>\r\n");
|
|
|
|
WriteLiteral(" <tr>\r\n <th");
|
|
|
|
WriteLiteral(" style=\"width: 200px;\"");
|
|
|
|
WriteLiteral(">\r\n \r\n </th>\r\n <td>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 204 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotified));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 204 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.LabelFor(m => m.Job.JobMetaInsurance.PoliceNotified));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 205 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxSave());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 206 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxLoader());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n <div");
|
|
|
|
WriteLiteral(" id=\"Job_JobMetaInsurance_PoliceNotified_Details\"");
|
|
|
|
WriteLiteral(" style=\"padding-left: 25px;\"");
|
|
|
|
WriteLiteral(">\r\n <div>\r\n <h5>Station</h5>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 210 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotifiedStation));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 211 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxSave());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 212 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxLoader());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </div>\r\n <div>\r\n " +
|
|
" <h5>Date</h5>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 216 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotifiedDate));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 217 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxLoader());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </div>\r\n <div>\r\n " +
|
|
" <h5>Crime Report #</h5>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 221 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotifiedCrimeReportNo));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 222 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxSave());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 223 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxLoader());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </div>\r\n </div>\r\n " +
|
|
" <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
WriteLiteral(@">
|
|
$(function () {
|
|
var policeNotifiedField = $('#Job_JobMetaInsurance_PoliceNotified');
|
|
var policeNotifiedDetails = $('#Job_JobMetaInsurance_PoliceNotified_Details');
|
|
var policeNotifiedDetails_Changed = function (e, dontAnimate) {
|
|
if (policeNotifiedField.is(':checked')) {
|
|
if (dontAnimate) {
|
|
policeNotifiedDetails.show();
|
|
} else {
|
|
policeNotifiedDetails.slideDown();
|
|
}
|
|
} else {
|
|
if (dontAnimate) {
|
|
policeNotifiedDetails.hide();
|
|
} else {
|
|
policeNotifiedDetails.slideUp();
|
|
}
|
|
}
|
|
};
|
|
policeNotifiedDetails_Changed(null, true);
|
|
policeNotifiedField.change(policeNotifiedDetails_Changed);
|
|
|
|
document.DiscoFunctions.PropertyChangeHelper(
|
|
policeNotifiedField,
|
|
null,
|
|
'");
|
|
|
|
|
|
#line 251 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Url.Action(MVC.API.Job.UpdateInsurancePoliceNotified(Model.Job.Id, null)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(@"',
|
|
'PoliceNotified'
|
|
);
|
|
document.DiscoFunctions.PropertyChangeHelper(
|
|
$('#Job_JobMetaInsurance_PoliceNotifiedStation'),
|
|
'Unknown',
|
|
'");
|
|
|
|
|
|
#line 257 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Url.Action(MVC.API.Job.UpdateInsurancePoliceNotifiedStation(Model.Job.Id, null)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(@"',
|
|
'PoliceNotifiedStation'
|
|
);
|
|
var dateField = $('#Job_JobMetaInsurance_PoliceNotifiedDate');
|
|
document.DiscoFunctions.DateChangeHelper(
|
|
dateField,
|
|
'Unknown',
|
|
'");
|
|
|
|
|
|
#line 264 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Url.Action(MVC.API.Job.UpdateInsurancePoliceNotifiedDate(Model.Job.Id, null)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(@"',
|
|
'PoliceNotifiedDate',
|
|
null,
|
|
true
|
|
);
|
|
document.DiscoFunctions.PropertyChangeHelper(
|
|
$('#Job_JobMetaInsurance_PoliceNotifiedCrimeReportNo'),
|
|
'Unknown',
|
|
'");
|
|
|
|
|
|
#line 272 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Url.Action(MVC.API.Job.UpdateInsurancePoliceNotifiedCrimeReportNo(Model.Job.Id, null)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\',\r\n \'PoliceNotifiedCrimeReportNo\'\r\n " +
|
|
" );\r\n });\r\n </script>\r\n " +
|
|
" </td>\r\n </tr>\r\n");
|
|
|
|
WriteLiteral(" <tr>\r\n <th>\r\n Action to Recover/Red" +
|
|
"uce Loss\r\n </th>\r\n <td>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 284 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.RecoverReduceAction));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 285 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxSave());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 286 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxLoader());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
WriteLiteral(">\r\n $(function () {\r\n document.DiscoFun" +
|
|
"ctions.PropertyChangeHelper(\r\n $(\'#Job_JobMetaInsuran" +
|
|
"ce_RecoverReduceAction\'),\r\n \'None\',\r\n " +
|
|
" \'");
|
|
|
|
|
|
#line 292 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Url.Action(MVC.API.Job.UpdateInsuranceRecoverReduceAction(Model.Job.Id, null)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\',\r\n \'RecoverReduceAction\'\r\n );" +
|
|
"\r\n });\r\n </script>\r\n </td>\r" +
|
|
"\n </tr>\r\n");
|
|
|
|
WriteLiteral(" <tr>\r\n <th>\r\n Other Interested Part" +
|
|
"ies\r\n </th>\r\n <td>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 304 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.OtherInterestedParties));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 305 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxSave());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 306 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxLoader());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
WriteLiteral(@">
|
|
$(function () {
|
|
document.DiscoFunctions.PropertyChangeHelper(
|
|
$('#Job_JobMetaInsurance_OtherInterestedParties'),
|
|
'None',
|
|
'");
|
|
|
|
|
|
#line 312 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Url.Action(MVC.API.Job.UpdateInsuranceOtherInterestedParties(Model.Job.Id, null)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\',\r\n \'OtherInterestedParties\'\r\n " +
|
|
" );\r\n });\r\n </script>\r\n </t" +
|
|
"d>\r\n </tr>\r\n");
|
|
|
|
WriteLiteral(" <tr>\r\n <th");
|
|
|
|
WriteLiteral(" style=\"width: 200px;\"");
|
|
|
|
WriteLiteral(">\r\n Date of Purchase\r\n </th>\r\n <" +
|
|
"td>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 324 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.DateOfPurchase));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 325 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxLoader());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
WriteLiteral(@">
|
|
$(function () {
|
|
var dateField = $('#Job_JobMetaInsurance_DateOfPurchase');
|
|
document.DiscoFunctions.DateChangeHelper(
|
|
dateField,
|
|
'Unknown',
|
|
'");
|
|
|
|
|
|
#line 332 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Url.Action(MVC.API.Job.UpdateInsuranceDateOfPurchase(Model.Job.Id, null)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\',\r\n \'DateOfPurchase\',\r\n null,\r\n " +
|
|
" true\r\n );\r\n });\r\n" +
|
|
" </script>\r\n </td>\r\n </tr>\r\n");
|
|
|
|
|
|
#line 341 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <tr>\r\n <th");
|
|
|
|
WriteLiteral(" style=\"width: 230px;\"");
|
|
|
|
WriteLiteral(">\r\n Date of Loss or Damage\r\n </th>\r\n " +
|
|
" <td>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 349 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.LossOrDamageDate, "Unknown", null));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </td>\r\n </tr>\r\n");
|
|
|
|
WriteLiteral(" <tr>\r\n <th>\r\n Event Location\r\n " +
|
|
" </th>\r\n <td>\r\n");
|
|
|
|
|
|
#line 357 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 357 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.EventLocation))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <span");
|
|
|
|
WriteLiteral(" class=\"smallMessage\"");
|
|
|
|
WriteLiteral("><Unknown/None></span>\r\n");
|
|
|
|
|
|
#line 360 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 363 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Model.Job.JobMetaInsurance.EventLocation);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 363 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </td>\r\n </tr>\r\n");
|
|
|
|
WriteLiteral(" <tr>\r\n <th>\r\n Description\r\n " +
|
|
" </th>\r\n <td>\r\n");
|
|
|
|
|
|
#line 372 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 372 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.Description))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <span");
|
|
|
|
WriteLiteral(" class=\"smallMessage\"");
|
|
|
|
WriteLiteral("><None></span>\r\n");
|
|
|
|
|
|
#line 375 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 378 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Model.Job.JobMetaInsurance.Description);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 378 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </td>\r\n </tr>\r\n");
|
|
|
|
WriteLiteral(" <tr>\r\n <th");
|
|
|
|
WriteLiteral(" style=\"width: 200px;\"");
|
|
|
|
WriteLiteral(">\r\n Caused by Third Party\r\n </th>\r\n " +
|
|
" <td>\r\n");
|
|
|
|
|
|
#line 387 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 387 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
if (Model.Job.JobMetaInsurance.ThirdPartyCaused)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" id=\"Job_JobMetaInsurance_ThirdPartyCaused_Details\"");
|
|
|
|
WriteLiteral(" style=\"padding-left: 25px;\"");
|
|
|
|
WriteLiteral(">\r\n <div>\r\n <h5>Third P" +
|
|
"arty Name</h5>\r\n");
|
|
|
|
|
|
#line 392 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 392 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.ThirdPartyCausedName))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <span");
|
|
|
|
WriteLiteral(" class=\"smallMessage\"");
|
|
|
|
WriteLiteral("><Unknown></span>\r\n");
|
|
|
|
|
|
#line 395 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 398 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Model.Job.JobMetaInsurance.ThirdPartyCausedName);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 398 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </div>\r\n <div>\r\n " +
|
|
" <h5>Why Third Parties Fault</h5>\r\n");
|
|
|
|
|
|
#line 403 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 403 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.ThirdPartyCausedWhy))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <span");
|
|
|
|
WriteLiteral(" class=\"smallMessage\"");
|
|
|
|
WriteLiteral("><Unknown></span>\r\n");
|
|
|
|
|
|
#line 406 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 409 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Model.Job.JobMetaInsurance.ThirdPartyCausedWhy);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 409 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </div>\r\n </div>\r\n");
|
|
|
|
|
|
#line 413 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <span");
|
|
|
|
WriteLiteral(" class=\"smallMessage\"");
|
|
|
|
WriteLiteral("><Not Caused by Third Party></span>\r\n");
|
|
|
|
|
|
#line 417 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </td>\r\n </tr>\r\n");
|
|
|
|
WriteLiteral(" <tr>\r\n <th>\r\n Witnessed by (Name/Ad" +
|
|
"dress)\r\n </th>\r\n <td>\r\n");
|
|
|
|
|
|
#line 425 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 425 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.WitnessesNamesAddresses))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <span");
|
|
|
|
WriteLiteral(" class=\"smallMessage\"");
|
|
|
|
WriteLiteral("><Unknown/None></span>\r\n");
|
|
|
|
|
|
#line 428 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 431 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Model.Job.JobMetaInsurance.WitnessesNamesAddresses);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 431 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </td>\r\n </tr>\r\n");
|
|
|
|
WriteLiteral(" <tr>\r\n <th>\r\n Burglary/Theft - Meth" +
|
|
"od of Entry\r\n </th>\r\n <td>\r\n");
|
|
|
|
|
|
#line 440 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 440 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.BurglaryTheftMethodOfEntry))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <span");
|
|
|
|
WriteLiteral(" class=\"smallMessage\"");
|
|
|
|
WriteLiteral("><Unknown/None></span>\r\n");
|
|
|
|
|
|
#line 443 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 446 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Model.Job.JobMetaInsurance.BurglaryTheftMethodOfEntry);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 446 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </td>\r\n </tr>\r\n");
|
|
|
|
WriteLiteral(" <tr>\r\n <th");
|
|
|
|
WriteLiteral(" style=\"width: 200px;\"");
|
|
|
|
WriteLiteral(">\r\n Property Last Seen\r\n </th>\r\n " +
|
|
" <td>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 455 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.PropertyLastSeenDate, "Unknown", null));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </td>\r\n </tr>\r\n");
|
|
|
|
WriteLiteral(" <tr>\r\n <th");
|
|
|
|
WriteLiteral(" style=\"width: 200px;\"");
|
|
|
|
WriteLiteral(">\r\n \r\n Police Notified\r\n " +
|
|
" </th>\r\n <td>\r\n");
|
|
|
|
|
|
#line 464 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 464 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
if (Model.Job.JobMetaInsurance.PoliceNotified)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" id=\"Job_JobMetaInsurance_PoliceNotified_Details\"");
|
|
|
|
WriteLiteral(" style=\"padding-left: 25px;\"");
|
|
|
|
WriteLiteral(">\r\n <div>\r\n <h5>Station" +
|
|
"</h5>\r\n");
|
|
|
|
|
|
#line 469 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 469 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.PoliceNotifiedStation))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <span");
|
|
|
|
WriteLiteral(" class=\"smallMessage\"");
|
|
|
|
WriteLiteral("><Unknown></span>\r\n");
|
|
|
|
|
|
#line 472 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 475 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Model.Job.JobMetaInsurance.PoliceNotifiedStation);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 475 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </div>\r\n <div>\r\n " +
|
|
" <h5>Date</h5>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 480 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.PoliceNotifiedDate, "Unknown", null));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </div>\r\n <div>\r\n " +
|
|
" <h5>Crime Report #</h5>\r\n");
|
|
|
|
|
|
#line 484 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 484 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.PoliceNotifiedCrimeReportNo))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <span");
|
|
|
|
WriteLiteral(" class=\"smallMessage\"");
|
|
|
|
WriteLiteral("><Unknown></span>\r\n");
|
|
|
|
|
|
#line 487 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 490 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Model.Job.JobMetaInsurance.PoliceNotifiedCrimeReportNo);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 490 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </div>\r\n </div>\r\n");
|
|
|
|
|
|
#line 494 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <span");
|
|
|
|
WriteLiteral(" class=\"smallMessage\"");
|
|
|
|
WriteLiteral("><Not Notified></span>\r\n");
|
|
|
|
|
|
#line 498 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </td>\r\n </tr>\r\n");
|
|
|
|
WriteLiteral(" <tr>\r\n <th>\r\n Action to Recover/Red" +
|
|
"uce Loss\r\n </th>\r\n <td>\r\n");
|
|
|
|
|
|
#line 506 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 506 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.RecoverReduceAction))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <span");
|
|
|
|
WriteLiteral(" class=\"smallMessage\"");
|
|
|
|
WriteLiteral("><Unknown/None></span>\r\n");
|
|
|
|
|
|
#line 509 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 512 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Model.Job.JobMetaInsurance.RecoverReduceAction);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 512 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </td>\r\n </tr>\r\n");
|
|
|
|
WriteLiteral(" <tr>\r\n <th>\r\n Other Interested Part" +
|
|
"ies\r\n </th>\r\n <td>\r\n");
|
|
|
|
|
|
#line 521 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 521 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.OtherInterestedParties))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <span");
|
|
|
|
WriteLiteral(" class=\"smallMessage\"");
|
|
|
|
WriteLiteral("><Unknown/None></span>\r\n");
|
|
|
|
|
|
#line 524 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 527 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Model.Job.JobMetaInsurance.OtherInterestedParties);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 527 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </td>\r\n </tr>\r\n");
|
|
|
|
WriteLiteral(" <tr>\r\n <th");
|
|
|
|
WriteLiteral(" style=\"width: 200px;\"");
|
|
|
|
WriteLiteral(">\r\n Date of Purchase\r\n </th>\r\n <" +
|
|
"td>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 536 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.DateOfPurchase, "Unknown", null));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </td>\r\n </tr>\r\n");
|
|
|
|
|
|
#line 539 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
}
|
|
if (Authorization.Has(Claims.Job.Properties.NonWarrantyProperties.InsuranceClaimFormSent))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <tr>\r\n <th>\r\n Claim Form Sent Date\r" +
|
|
"\n </th>\r\n <td>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 547 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.ClaimFormSentDate, "Not Sent", "Job_JobMetaInsurance_ClaimFormSentDate"));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n <span");
|
|
|
|
WriteLiteral(" id=\"Job_JobMetaInsurance_ClaimFormSentUserId\"");
|
|
|
|
WriteLiteral(">");
|
|
|
|
|
|
#line 548 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(string.IsNullOrEmpty(Model.Job.JobMetaInsurance.ClaimFormSentUserId) ? string.Empty : string.Format("by {0}", Model.Job.JobMetaInsurance.ClaimFormSentUser.ToString()));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</span>\r\n </td>\r\n </tr>\r\n");
|
|
|
|
WriteLiteral(" <tr>\r\n <th>\r\n Insurer\r\n " +
|
|
" </th>\r\n <td>\r\n");
|
|
|
|
|
|
#line 556 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 556 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.Insurer) && !Model.Job.JobMetaInsurance.ClaimFormSentDate.HasValue)
|
|
{
|
|
if (Model.Job.CanLogInsurance())
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 560 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.ActionLinkButton("Lodge Insurance Claim", MVC.Job.LogInsurance(Model.Job.Id, null, null)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 560 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <span>Not Logged</span>\r\n");
|
|
|
|
|
|
#line 565 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
}
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <span");
|
|
|
|
WriteLiteral(" id=\"Job_JobMetaInsurance_Insurer\"");
|
|
|
|
WriteLiteral(">");
|
|
|
|
|
|
#line 569 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Model.Job.JobMetaInsurance.Insurer);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</span>\r\n");
|
|
|
|
|
|
#line 570 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
if (!string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.InsurerReference))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <span>(reference: <span");
|
|
|
|
WriteLiteral(" id=\"Job_JobMetaInsurance_InsurerReference\"");
|
|
|
|
WriteLiteral(">");
|
|
|
|
|
|
#line 572 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Model.Job.JobMetaInsurance.InsurerReference);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</span>)</span>\r\n");
|
|
|
|
|
|
#line 573 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
}
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </td>\r\n </tr>\r\n");
|
|
|
|
|
|
#line 577 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <tr>\r\n <th>\r\n Claim Form Sent Date\r" +
|
|
"\n </th>\r\n <td>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 585 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.ClaimFormSentDate, "Not Sent", "Job_JobMetaInsurance_ClaimFormSentDate"));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n <span");
|
|
|
|
WriteLiteral(" id=\"Job_JobMetaInsurance_ClaimFormSentUserId\"");
|
|
|
|
WriteLiteral(">");
|
|
|
|
|
|
#line 586 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(string.IsNullOrEmpty(Model.Job.JobMetaInsurance.ClaimFormSentUserId) ? string.Empty : string.Format("by {0}", Model.Job.JobMetaInsurance.ClaimFormSentUser.ToString()));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</span>\r\n </td>\r\n </tr>\r\n");
|
|
|
|
WriteLiteral(" <tr>\r\n <th>\r\n Insurer\r\n " +
|
|
" </th>\r\n <td>\r\n <span");
|
|
|
|
WriteLiteral(" id=\"Job_JobMetaInsurance_Insurer\"");
|
|
|
|
WriteLiteral(">");
|
|
|
|
|
|
#line 594 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Model.Job.JobMetaInsurance.Insurer);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</span>\r\n");
|
|
|
|
|
|
#line 595 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 595 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
if (!string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.InsurerReference))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <span>(reference: <span");
|
|
|
|
WriteLiteral(" id=\"Job_JobMetaInsurance_InsurerReference\"");
|
|
|
|
WriteLiteral(">");
|
|
|
|
|
|
#line 597 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Model.Job.JobMetaInsurance.InsurerReference);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</span>)</span>\r\n");
|
|
|
|
|
|
#line 598 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </td>\r\n </tr>\r\n");
|
|
|
|
|
|
#line 601 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
}
|
|
if (!string.IsNullOrEmpty(Model.Job.JobMetaInsurance.Insurer))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <tr");
|
|
|
|
WriteLiteral(" id=\"jobInsuranceProviderDetailContainer\"");
|
|
|
|
WriteLiteral(" style=\"display: none\"");
|
|
|
|
WriteLiteral(">\r\n <th");
|
|
|
|
WriteLiteral(" style=\"width: 200px;\"");
|
|
|
|
WriteLiteral(">\r\n Provider Details\r\n </th>\r\n <" +
|
|
"td>\r\n <div");
|
|
|
|
WriteLiteral(" id=\"jobInsuranceProviderDetailLoading\"");
|
|
|
|
WriteLiteral(">\r\n <span");
|
|
|
|
WriteLiteral(" class=\"ajaxLoading showInitially\"");
|
|
|
|
WriteLiteral(" title=\"Loading...\"");
|
|
|
|
WriteLiteral("></span> Loading...\r\n </div>\r\n <div");
|
|
|
|
WriteLiteral(" id=\"jobInsuranceProviderDetailHost\"");
|
|
|
|
WriteLiteral(" class=\"clearfix\"");
|
|
|
|
WriteLiteral(" style=\"display: none\"");
|
|
|
|
WriteLiteral(">\r\n </div>\r\n </td>\r\n </tr>\r\n");
|
|
|
|
WriteLiteral(" <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
WriteLiteral(@">
|
|
$(function () {
|
|
let providerDetailLoaded = false;
|
|
|
|
$('#jobDetailTabs').on('tabsactivate', function (e, ui) {
|
|
if ($(ui.newPanel).is('#jobDetailTab-NonWarrantyInsurance')) {
|
|
if (!providerDetailLoaded) {
|
|
$('#jobInsuranceProviderDetailContainer').show();
|
|
$('#jobRepairProviderDetailLoading span').show();
|
|
$('#jobInsuranceProviderDetailHost').load(
|
|
'");
|
|
|
|
|
|
#line 626 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Url.Action(MVC.Job.InsuranceProviderJobDetails(Model.Job.Id)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(@"',
|
|
function () {
|
|
$('#jobInsuranceProviderDetailLoading').hide();
|
|
$(this).slideDown();
|
|
}
|
|
);
|
|
providerDetailLoaded = true;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
");
|
|
|
|
|
|
#line 638 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
}
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 640 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
if (Authorization.Has(Claims.Job.Properties.NonWarrantyProperties.IsInsuranceClaim) && Model.Job.JobMetaInsurance == null || string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.Insurer))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <tr>\r\n <th>\r\n Insurance Claim\r\n </th" +
|
|
">\r\n <td>\r\n <div");
|
|
|
|
WriteLiteral(" style=\"padding: 8px; text-align: center\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
|
|
#line 648 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 648 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
if (Model.Job.JobMetaNonWarranty.IsInsuranceClaim)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 650 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.ActionLinkButton("Remove Insurance Claim", MVC.API.Job.UpdateNonWarrantyIsInsuranceClaim(Model.Job.Id, false, true)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 650 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 654 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.ActionLinkButton("Add Insurance Claim", MVC.API.Job.UpdateNonWarrantyIsInsuranceClaim(Model.Job.Id, true, true)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 654 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </div>\r\n </td>\r\n </tr>\r\n");
|
|
|
|
|
|
#line 659 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</table>\r\n");
|
|
|
|
}
|
|
}
|
|
}
|
|
#pragma warning restore 1591
|