1096 lines
36 KiB
C#
1096 lines
36 KiB
C#
#pragma warning disable 1591
|
|
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by a tool.
|
|
// Runtime Version:4.0.30319.17929
|
|
//
|
|
// 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.BI.Extensions;
|
|
using Disco.Models.Repository;
|
|
using Disco.Web;
|
|
using Disco.Web.Extensions;
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "1.5.0.0")]
|
|
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/Job/JobParts/Insurance.cshtml")]
|
|
public class Insurance : System.Web.Mvc.WebViewPage<Disco.Web.Models.Job.ShowModel>
|
|
{
|
|
public Insurance()
|
|
{
|
|
}
|
|
public override void Execute()
|
|
{
|
|
WriteLiteral("<table");
|
|
|
|
WriteLiteral(" id=\"jobNonWarrantyInsurance\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
|
|
#line 3 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 3 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
if (Model.Job.JobMetaNonWarranty.IsInsuranceClaim)
|
|
{
|
|
|
|
|
|
#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 10 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.LossOrDamageDate));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 11 "..\..\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 18 "..\..\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 31 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.EventLocation));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 32 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxSave());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 33 "..\..\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 39 "..\..\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 51 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.Description));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 52 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxSave());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 53 "..\..\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 59 "..\..\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 71 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.ThirdPartyCaused));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 71 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.LabelFor(m => m.Job.JobMetaInsurance.ThirdPartyCaused));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 72 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxSave());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 73 "..\..\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>\r\n " +
|
|
" Third Party Name</h5>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 78 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.ThirdPartyCausedName));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 79 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxSave());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 80 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxLoader());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </div>\r\n <div>\r\n " +
|
|
"<h5>\r\n Why Third Parties Fault</h5>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 85 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.ThirdPartyCausedWhy));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 86 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxSave());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 87 "..\..\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 115 "..\..\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 121 "..\..\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 127 "..\..\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/Address)\r\n " +
|
|
" </th>\r\n <td>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 139 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.WitnessesNamesAddresses));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 140 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxSave());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 141 "..\..\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 147 "..\..\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 - Method of Entry\r" +
|
|
"\n </th>\r\n <td>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 159 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.BurglaryTheftMethodOfEntry));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 160 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxSave());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 161 "..\..\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 167 "..\..\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 179 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.PropertyLastSeenDate));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 180 "..\..\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 187 "..\..\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 </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 200 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotified));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 200 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.LabelFor(m => m.Job.JobMetaInsurance.PoliceNotified));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 201 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxSave());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 202 "..\..\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>\r\n " +
|
|
" Station</h5>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 207 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotifiedStation));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 208 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxSave());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 209 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxLoader());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </div>\r\n <div>\r\n " +
|
|
"<h5>\r\n Date</h5>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 214 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotifiedDate));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 215 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxLoader());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </div>\r\n <div>\r\n " +
|
|
"<h5>\r\n Crime Report #</h5>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 220 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotifiedCrimeReportNo));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 221 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxSave());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 222 "..\..\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 250 "..\..\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 256 "..\..\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 263 "..\..\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 271 "..\..\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/Reduce Loss\r\n " +
|
|
" </th>\r\n <td>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 283 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.RecoverReduceAction));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 284 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxSave());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 285 "..\..\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 291 "..\..\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 Parties\r\n " +
|
|
" </th>\r\n <td>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 303 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.OtherInterestedParties));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 304 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxSave());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 305 "..\..\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 311 "..\..\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 </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 323 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.DateOfPurchase));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 324 "..\..\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 331 "..\..\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");
|
|
|
|
WriteLiteral(" <tr>\r\n <th>\r\n Claim Form Sent Date\r\n " +
|
|
" </th>\r\n <td>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 345 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.ClaimFormSentDate));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n <span");
|
|
|
|
WriteLiteral(" id=\"Job_JobMetaInsurance_ClaimFormSentUserId\"");
|
|
|
|
WriteLiteral(">");
|
|
|
|
|
|
#line 346 "..\..\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");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 347 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(AjaxHelpers.AjaxLoader());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
WriteLiteral(@">
|
|
$(function () {
|
|
document.DiscoFunctions.DateChangeUserHelper(
|
|
$('#Job_JobMetaInsurance_ClaimFormSentDate'),
|
|
$('#Job_JobMetaInsurance_ClaimFormSentUserId'),
|
|
'Unknown',
|
|
'");
|
|
|
|
|
|
#line 354 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Url.Action(MVC.API.Job.UpdateInsuranceClaimFormSentDate(Model.Job.Id, null)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\',\r\n \'ClaimFormSentDate\',\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 356 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
Write(Model.Job.OpenedDate.ToJavascriptDate());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n );\r\n });\r\n </script>\r" +
|
|
"\n </td>\r\n </tr>\r\n");
|
|
|
|
|
|
#line 362 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
}
|
|
|
|
|
|
#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 369 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 369 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
if (Model.Job.JobMetaNonWarranty.IsInsuranceClaim)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 371 "..\..\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 371 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 375 "..\..\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 375 "..\..\Views\Job\JobParts\Insurance.cshtml"
|
|
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </div>\r\n </td>\r\n </tr>\r\n</table>\r\n");
|
|
|
|
}
|
|
}
|
|
}
|
|
#pragma warning restore 1591
|