Files
Disco/Disco.Web/Views/Job/JobParts/Insurance.generated.cs
T
2013-04-02 14:03:23 +11:00

1081 lines
35 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.4.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/Job/JobParts/Insurance.cshtml")]
public partial 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)
{
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 11 "..\..\Views\Job\JobParts\Insurance.cshtml"
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.LossOrDamageDate));
#line default
#line hidden
WriteLiteral("\r\n");
WriteLiteral(" ");
#line 12 "..\..\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 19 "..\..\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 32 "..\..\Views\Job\JobParts\Insurance.cshtml"
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.EventLocation));
#line default
#line hidden
WriteLiteral("\r\n");
WriteLiteral(" ");
#line 33 "..\..\Views\Job\JobParts\Insurance.cshtml"
Write(AjaxHelpers.AjaxSave());
#line default
#line hidden
WriteLiteral("\r\n");
WriteLiteral(" ");
#line 34 "..\..\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 40 "..\..\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 52 "..\..\Views\Job\JobParts\Insurance.cshtml"
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.Description));
#line default
#line hidden
WriteLiteral("\r\n");
WriteLiteral(" ");
#line 53 "..\..\Views\Job\JobParts\Insurance.cshtml"
Write(AjaxHelpers.AjaxSave());
#line default
#line hidden
WriteLiteral("\r\n");
WriteLiteral(" ");
#line 54 "..\..\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 60 "..\..\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 &nbsp;\r\n </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 72 "..\..\Views\Job\JobParts\Insurance.cshtml"
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.ThirdPartyCaused));
#line default
#line hidden
#line 72 "..\..\Views\Job\JobParts\Insurance.cshtml"
Write(Html.LabelFor(m => m.Job.JobMetaInsurance.ThirdPartyCaused));
#line default
#line hidden
WriteLiteral("\r\n");
WriteLiteral(" ");
#line 73 "..\..\Views\Job\JobParts\Insurance.cshtml"
Write(AjaxHelpers.AjaxSave());
#line default
#line hidden
WriteLiteral("\r\n");
WriteLiteral(" ");
#line 74 "..\..\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 79 "..\..\Views\Job\JobParts\Insurance.cshtml"
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.ThirdPartyCausedName));
#line default
#line hidden
WriteLiteral("\r\n");
WriteLiteral(" ");
#line 80 "..\..\Views\Job\JobParts\Insurance.cshtml"
Write(AjaxHelpers.AjaxSave());
#line default
#line hidden
WriteLiteral("\r\n");
WriteLiteral(" ");
#line 81 "..\..\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 86 "..\..\Views\Job\JobParts\Insurance.cshtml"
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.ThirdPartyCausedWhy));
#line default
#line hidden
WriteLiteral("\r\n");
WriteLiteral(" ");
#line 87 "..\..\Views\Job\JobParts\Insurance.cshtml"
Write(AjaxHelpers.AjaxSave());
#line default
#line hidden
WriteLiteral("\r\n");
WriteLiteral(" ");
#line 88 "..\..\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 116 "..\..\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 122 "..\..\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 128 "..\..\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 140 "..\..\Views\Job\JobParts\Insurance.cshtml"
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.WitnessesNamesAddresses));
#line default
#line hidden
WriteLiteral("\r\n");
WriteLiteral(" ");
#line 141 "..\..\Views\Job\JobParts\Insurance.cshtml"
Write(AjaxHelpers.AjaxSave());
#line default
#line hidden
WriteLiteral("\r\n");
WriteLiteral(" ");
#line 142 "..\..\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 148 "..\..\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 160 "..\..\Views\Job\JobParts\Insurance.cshtml"
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.BurglaryTheftMethodOfEntry));
#line default
#line hidden
WriteLiteral("\r\n");
WriteLiteral(" ");
#line 161 "..\..\Views\Job\JobParts\Insurance.cshtml"
Write(AjaxHelpers.AjaxSave());
#line default
#line hidden
WriteLiteral("\r\n");
WriteLiteral(" ");
#line 162 "..\..\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 168 "..\..\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 180 "..\..\Views\Job\JobParts\Insurance.cshtml"
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.PropertyLastSeenDate));
#line default
#line hidden
WriteLiteral("\r\n");
WriteLiteral(" ");
#line 181 "..\..\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 188 "..\..\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 &nbsp;\r\n </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 201 "..\..\Views\Job\JobParts\Insurance.cshtml"
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotified));
#line default
#line hidden
#line 201 "..\..\Views\Job\JobParts\Insurance.cshtml"
Write(Html.LabelFor(m => m.Job.JobMetaInsurance.PoliceNotified));
#line default
#line hidden
WriteLiteral("\r\n");
WriteLiteral(" ");
#line 202 "..\..\Views\Job\JobParts\Insurance.cshtml"
Write(AjaxHelpers.AjaxSave());
#line default
#line hidden
WriteLiteral("\r\n");
WriteLiteral(" ");
#line 203 "..\..\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 208 "..\..\Views\Job\JobParts\Insurance.cshtml"
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotifiedStation));
#line default
#line hidden
WriteLiteral("\r\n");
WriteLiteral(" ");
#line 209 "..\..\Views\Job\JobParts\Insurance.cshtml"
Write(AjaxHelpers.AjaxSave());
#line default
#line hidden
WriteLiteral("\r\n");
WriteLiteral(" ");
#line 210 "..\..\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 215 "..\..\Views\Job\JobParts\Insurance.cshtml"
Write(Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotifiedDate));
#line default
#line hidden
WriteLiteral("\r\n");
WriteLiteral(" ");
#line 216 "..\..\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 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/Reduce 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 Parties\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 </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 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");
WriteLiteral(" <tr>\r\n <th>\r\n Claim Form Sent Date\r\n " +
" </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 346 "..\..\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 347 "..\..\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 <script>\r\n $(function () {\r\n " +
" var updateUrl = \'");
#line 350 "..\..\Views\Job\JobParts\Insurance.cshtml"
Write(Url.Action(MVC.API.Job.Update(Model.Job.Id, null)));
#line default
#line hidden
WriteLiteral("\';\r\n var jobOpenDate = \'");
#line 351 "..\..\Views\Job\JobParts\Insurance.cshtml"
Write(Model.Job.OpenedDate.ToJavascriptDateTime());
#line default
#line hidden
WriteLiteral(@"';
document.DiscoFunctions.DateDialogCreateUpdater(updateUrl, 'Claim Form Sent Date', 'Job_JobMetaInsurance_ClaimFormSentDate', 'Job_JobMetaInsurance_ClaimFormSentUserId', 'InsuranceClaimFormSentDate', 'Not Sent', jobOpenDate, false);
});
</script>
</td>
</tr>
");
#line 358 "..\..\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 365 "..\..\Views\Job\JobParts\Insurance.cshtml"
#line default
#line hidden
#line 365 "..\..\Views\Job\JobParts\Insurance.cshtml"
if (Model.Job.JobMetaNonWarranty.IsInsuranceClaim)
{
#line default
#line hidden
#line 367 "..\..\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 367 "..\..\Views\Job\JobParts\Insurance.cshtml"
}
else
{
#line default
#line hidden
#line 371 "..\..\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 371 "..\..\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