@model Disco.Web.Models.Job.ShowModel @{ Authorization.Require(Claims.Job.ShowNonWarrantyInsurance); } @if (Model.Job.JobMetaNonWarranty.IsInsuranceClaim) { if (Authorization.Has(Claims.Job.Properties.NonWarrantyProperties.InsuranceDetails)) { Html.BundleDeferred("~/ClientScripts/Modules/Disco-PropertyChangeHelpers"); } else { } if (Authorization.Has(Claims.Job.Properties.NonWarrantyProperties.InsuranceClaimFormSent)) { } else { } if (!string.IsNullOrEmpty(Model.Job.JobMetaInsurance.Insurer)) { } } @if (Authorization.Has(Claims.Job.Properties.NonWarrantyProperties.IsInsuranceClaim) && Model.Job.JobMetaInsurance == null || string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.Insurer)) { }
Date of Loss or Damage @Html.EditorFor(m => m.Job.JobMetaInsurance.LossOrDamageDate) @AjaxHelpers.AjaxLoader()
Event Location @Html.EditorFor(m => m.Job.JobMetaInsurance.EventLocation) @AjaxHelpers.AjaxSave() @AjaxHelpers.AjaxLoader()
Description @Html.EditorFor(m => m.Job.JobMetaInsurance.Description) @AjaxHelpers.AjaxSave() @AjaxHelpers.AjaxLoader()
  @Html.EditorFor(m => m.Job.JobMetaInsurance.ThirdPartyCaused)@Html.LabelFor(m => m.Job.JobMetaInsurance.ThirdPartyCaused) @AjaxHelpers.AjaxSave() @AjaxHelpers.AjaxLoader()
Third Party Name
@Html.EditorFor(m => m.Job.JobMetaInsurance.ThirdPartyCausedName) @AjaxHelpers.AjaxSave() @AjaxHelpers.AjaxLoader()
Why Third Parties Fault
@Html.EditorFor(m => m.Job.JobMetaInsurance.ThirdPartyCausedWhy) @AjaxHelpers.AjaxSave() @AjaxHelpers.AjaxLoader()
Witnessed by (Name/Address) @Html.EditorFor(m => m.Job.JobMetaInsurance.WitnessesNamesAddresses) @AjaxHelpers.AjaxSave() @AjaxHelpers.AjaxLoader()
Burglary/Theft - Method of Entry @Html.EditorFor(m => m.Job.JobMetaInsurance.BurglaryTheftMethodOfEntry) @AjaxHelpers.AjaxSave() @AjaxHelpers.AjaxLoader()
Property Last Seen @Html.EditorFor(m => m.Job.JobMetaInsurance.PropertyLastSeenDate) @AjaxHelpers.AjaxLoader()
  @Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotified)@Html.LabelFor(m => m.Job.JobMetaInsurance.PoliceNotified) @AjaxHelpers.AjaxSave() @AjaxHelpers.AjaxLoader()
Station
@Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotifiedStation) @AjaxHelpers.AjaxSave() @AjaxHelpers.AjaxLoader()
Date
@Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotifiedDate) @AjaxHelpers.AjaxLoader()
Crime Report #
@Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotifiedCrimeReportNo) @AjaxHelpers.AjaxSave() @AjaxHelpers.AjaxLoader()
Action to Recover/Reduce Loss @Html.EditorFor(m => m.Job.JobMetaInsurance.RecoverReduceAction) @AjaxHelpers.AjaxSave() @AjaxHelpers.AjaxLoader()
Other Interested Parties @Html.EditorFor(m => m.Job.JobMetaInsurance.OtherInterestedParties) @AjaxHelpers.AjaxSave() @AjaxHelpers.AjaxLoader()
Date of Purchase @Html.EditorFor(m => m.Job.JobMetaInsurance.DateOfPurchase) @AjaxHelpers.AjaxLoader()
Date of Loss or Damage @CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.LossOrDamageDate, "Unknown", null)
Event Location @if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.EventLocation)) { <Unknown/None> } else { @Model.Job.JobMetaInsurance.EventLocation }
Description @if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.Description)) { <None> } else { @Model.Job.JobMetaInsurance.Description }
Caused by Third Party @if (Model.Job.JobMetaInsurance.ThirdPartyCaused) {
Third Party Name
@if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.ThirdPartyCausedName)) { <Unknown> } else { @Model.Job.JobMetaInsurance.ThirdPartyCausedName }
Why Third Parties Fault
@if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.ThirdPartyCausedWhy)) { <Unknown> } else { @Model.Job.JobMetaInsurance.ThirdPartyCausedWhy }
} else { <Not Caused by Third Party> }
Witnessed by (Name/Address) @if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.WitnessesNamesAddresses)) { <Unknown/None> } else { @Model.Job.JobMetaInsurance.WitnessesNamesAddresses }
Burglary/Theft - Method of Entry @if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.BurglaryTheftMethodOfEntry)) { <Unknown/None> } else { @Model.Job.JobMetaInsurance.BurglaryTheftMethodOfEntry }
Property Last Seen @CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.PropertyLastSeenDate, "Unknown", null)
  Police Notified @if (Model.Job.JobMetaInsurance.PoliceNotified) {
Station
@if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.PoliceNotifiedStation)) { <Unknown> } else { @Model.Job.JobMetaInsurance.PoliceNotifiedStation }
Date
@CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.PoliceNotifiedDate, "Unknown", null)
Crime Report #
@if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.PoliceNotifiedCrimeReportNo)) { <Unknown> } else { @Model.Job.JobMetaInsurance.PoliceNotifiedCrimeReportNo }
} else { <Not Notified> }
Action to Recover/Reduce Loss @if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.RecoverReduceAction)) { <Unknown/None> } else { @Model.Job.JobMetaInsurance.RecoverReduceAction }
Other Interested Parties @if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.OtherInterestedParties)) { <Unknown/None> } else { @Model.Job.JobMetaInsurance.OtherInterestedParties }
Date of Purchase @CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.DateOfPurchase, "Unknown", null)
Claim Form Sent Date @CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.ClaimFormSentDate, "Not Sent", "Job_JobMetaInsurance_ClaimFormSentDate") @(string.IsNullOrEmpty(Model.Job.JobMetaInsurance.ClaimFormSentUserId) ? string.Empty : string.Format("by {0}", Model.Job.JobMetaInsurance.ClaimFormSentUser.ToString()))
Insurer @if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.Insurer) && !Model.Job.JobMetaInsurance.ClaimFormSentDate.HasValue) { if (Model.Job.CanLogInsurance()) { @Html.ActionLinkButton("Lodge Insurance Claim", MVC.Job.LogInsurance(Model.Job.Id, null, null)) } else { Not Logged } } else { @Model.Job.JobMetaInsurance.Insurer if (!string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.InsurerReference)) { (reference: @Model.Job.JobMetaInsurance.InsurerReference) } }
Claim Form Sent Date @CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.ClaimFormSentDate, "Not Sent", "Job_JobMetaInsurance_ClaimFormSentDate") @(string.IsNullOrEmpty(Model.Job.JobMetaInsurance.ClaimFormSentUserId) ? string.Empty : string.Format("by {0}", Model.Job.JobMetaInsurance.ClaimFormSentUser.ToString()))
Insurer @Model.Job.JobMetaInsurance.Insurer @if (!string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.InsurerReference)) { (reference: @Model.Job.JobMetaInsurance.InsurerReference) }
Insurance Claim
@if (Model.Job.JobMetaNonWarranty.IsInsuranceClaim) { @Html.ActionLinkButton("Remove Insurance Claim", MVC.API.Job.UpdateNonWarrantyIsInsuranceClaim(Model.Job.Id, false, true)) } else { @Html.ActionLinkButton("Add Insurance Claim", MVC.API.Job.UpdateNonWarrantyIsInsuranceClaim(Model.Job.Id, true, true)) }