feature: lodge insurance

This commit is contained in:
Gary Sharp
2024-09-25 16:21:51 +10:00
parent 78b7b059ea
commit e0d620bf67
61 changed files with 5861 additions and 1808 deletions
@@ -0,0 +1,55 @@
@model Disco.Web.Models.Job.ProviderJobDetailsModel
@{ Layout = null;
Authorization.Require(Claims.Job.Properties.NonWarrantyProperties.InsuranceDetails);
if (Model.JobDetailsException != null)
{
<h3>
Error:</h3>
<div>
<strong>@Model.JobDetailsException.Message</strong>
</div>
<a href="#" id="errorShow" class="smallMessage">(show more)</a>
<div id="errorMore" style="display: none">
<br />
<strong>Error Type: </strong>@Model.JobDetailsException.GetType().Name
<br />
<strong>Stack Trace:</strong>
<div class="code">
@Model.JobDetailsException.StackTrace.ToMultilineString()
</div>
@if (Model.JobDetailsException.InnerException != null)
{
<hr />
<div>
<strong>Inner Exception:</strong> @Model.JobDetailsException.InnerException.Message<br />
<strong>Error Type:</strong> @Model.JobDetailsException.GetType().Name<br />
<strong>Stack Trace:</strong>
<div class="code">
@Model.JobDetailsException.InnerException.StackTrace
</div>
</div>
}
<script type="text/javascript">
$(function () {
$('#errorShow').click(function () {
$(this).hide();
$('#errorMore').slideDown();
});
});
</script>
</div>
}
else
{
if (Model.JobDetailsSupported)
{
@Html.PartialCompiled(Model.ViewType, Model.ViewModel)
}
else
{
<span class="smallMessage">@Model.JobDetailsNotSupportedMessage</span>
}
}
}
@@ -0,0 +1,236 @@
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Disco.Web.Views.Job
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Helpers;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html;
using System.Web.Routing;
using System.Web.Security;
using System.Web.UI;
using System.Web.WebPages;
using Disco;
using Disco.Models.Repository;
using Disco.Services;
using Disco.Services.Authorization;
using Disco.Services.Web;
using Disco.Web;
using Disco.Web.Extensions;
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/Job/InsuranceProviderJobDetails.cshtml")]
public partial class InsuranceProviderJobDetails : Disco.Services.Web.WebViewPage<Disco.Web.Models.Job.ProviderJobDetailsModel>
{
public InsuranceProviderJobDetails()
{
}
public override void Execute()
{
#line 2 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml"
Layout = null;
Authorization.Require(Claims.Job.Properties.NonWarrantyProperties.InsuranceDetails);
if (Model.JobDetailsException != null)
{
#line default
#line hidden
WriteLiteral(" <h3>\r\n Error:</h3>\r\n");
WriteLiteral(" <div>\r\n <strong>");
#line 11 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml"
Write(Model.JobDetailsException.Message);
#line default
#line hidden
WriteLiteral("</strong>\r\n </div>\r\n");
WriteLiteral(" <a");
WriteLiteral(" href=\"#\"");
WriteLiteral(" id=\"errorShow\"");
WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">(show more)</a>\r\n");
WriteLiteral(" <div");
WriteLiteral(" id=\"errorMore\"");
WriteLiteral(" style=\"display: none\"");
WriteLiteral(">\r\n <br />\r\n <strong>Error Type: </strong>");
#line 16 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml"
Write(Model.JobDetailsException.GetType().Name);
#line default
#line hidden
WriteLiteral("\r\n <br />\r\n <strong>Stack Trace:</strong>\r\n <div");
WriteLiteral(" class=\"code\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 20 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml"
Write(Model.JobDetailsException.StackTrace.ToMultilineString());
#line default
#line hidden
WriteLiteral("\r\n </div>\r\n");
#line 22 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml"
#line default
#line hidden
#line 22 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml"
if (Model.JobDetailsException.InnerException != null)
{
#line default
#line hidden
WriteLiteral(" <hr />\r\n");
WriteLiteral(" <div>\r\n <strong>Inner Exception:</strong> ");
#line 26 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml"
Write(Model.JobDetailsException.InnerException.Message);
#line default
#line hidden
WriteLiteral("<br />\r\n <strong>Error Type:</strong> ");
#line 27 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml"
Write(Model.JobDetailsException.GetType().Name);
#line default
#line hidden
WriteLiteral("<br />\r\n <strong>Stack Trace:</strong>\r\n <div");
WriteLiteral(" class=\"code\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 30 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml"
Write(Model.JobDetailsException.InnerException.StackTrace);
#line default
#line hidden
WriteLiteral("\r\n </div>\r\n </div>\r\n");
#line 33 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml"
}
#line default
#line hidden
WriteLiteral(" <script");
WriteLiteral(" type=\"text/javascript\"");
WriteLiteral(">\r\n $(function () {\r\n $(\'#errorShow\').click(function ()" +
" {\r\n $(this).hide();\r\n $(\'#errorMore\').sli" +
"deDown();\r\n });\r\n });\r\n </script>\r\n </div>\r\n" +
"");
#line 43 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml"
}
else
{
if (Model.JobDetailsSupported)
{
#line default
#line hidden
#line 48 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml"
Write(Html.PartialCompiled(Model.ViewType, Model.ViewModel));
#line default
#line hidden
#line 48 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml"
}
else
{
#line default
#line hidden
WriteLiteral(" <span");
WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">");
#line 52 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml"
Write(Model.JobDetailsNotSupportedMessage);
#line default
#line hidden
WriteLiteral("</span>\r\n");
#line 53 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml"
}
}
#line default
#line hidden
WriteLiteral("\r\n");
}
}
}
#pragma warning restore 1591
+449 -357
View File
@@ -8,13 +8,14 @@
if (Authorization.Has(Claims.Job.Properties.NonWarrantyProperties.InsuranceDetails))
{
Html.BundleDeferred("~/ClientScripts/Modules/Disco-PropertyChangeHelpers");
<tr>
<th style="width: 230px;">Date of Loss or Damage
</th>
<td>
@Html.EditorFor(m => m.Job.JobMetaInsurance.LossOrDamageDate)
@AjaxHelpers.AjaxLoader()
<script type="text/javascript">
<tr>
<th style="width: 230px;">
Date of Loss or Damage
</th>
<td>
@Html.EditorFor(m => m.Job.JobMetaInsurance.LossOrDamageDate)
@AjaxHelpers.AjaxLoader()
<script type="text/javascript">
$(function () {
var dateField = $('#Job_JobMetaInsurance_LossOrDamageDate');
document.DiscoFunctions.DateChangeHelper(
@@ -25,17 +26,18 @@
null
);
});
</script>
</td>
</tr>
<tr>
<th>Event Location
</th>
<td>
@Html.EditorFor(m => m.Job.JobMetaInsurance.EventLocation)
@AjaxHelpers.AjaxSave()
@AjaxHelpers.AjaxLoader()
<script type="text/javascript">
</script>
</td>
</tr>
<tr>
<th>
Event Location
</th>
<td>
@Html.EditorFor(m => m.Job.JobMetaInsurance.EventLocation)
@AjaxHelpers.AjaxSave()
@AjaxHelpers.AjaxLoader()
<script type="text/javascript">
$(function () {
document.DiscoFunctions.PropertyChangeHelper(
$('#Job_JobMetaInsurance_EventLocation'),
@@ -44,17 +46,18 @@
'EventLocation'
);
});
</script>
</td>
</tr>
<tr>
<th>Description
</th>
<td>
@Html.EditorFor(m => m.Job.JobMetaInsurance.Description)
@AjaxHelpers.AjaxSave()
@AjaxHelpers.AjaxLoader()
<script type="text/javascript">
</script>
</td>
</tr>
<tr>
<th>
Description
</th>
<td>
@Html.EditorFor(m => m.Job.JobMetaInsurance.Description)
@AjaxHelpers.AjaxSave()
@AjaxHelpers.AjaxLoader()
<script type="text/javascript">
$(function () {
document.DiscoFunctions.PropertyChangeHelper(
$('#Job_JobMetaInsurance_Description'),
@@ -63,31 +66,32 @@
'Description'
);
});
</script>
</td>
</tr>
<tr>
<th style="width: 200px;">&nbsp;
</th>
<td>
@Html.EditorFor(m => m.Job.JobMetaInsurance.ThirdPartyCaused)@Html.LabelFor(m => m.Job.JobMetaInsurance.ThirdPartyCaused)
@AjaxHelpers.AjaxSave()
@AjaxHelpers.AjaxLoader()
<div id="Job_JobMetaInsurance_ThirdPartyCaused_Details" style="padding-left: 25px;">
<div>
<h5>Third Party Name</h5>
@Html.EditorFor(m => m.Job.JobMetaInsurance.ThirdPartyCausedName)
@AjaxHelpers.AjaxSave()
@AjaxHelpers.AjaxLoader()
</script>
</td>
</tr>
<tr>
<th style="width: 200px;">
&nbsp;
</th>
<td>
@Html.EditorFor(m => m.Job.JobMetaInsurance.ThirdPartyCaused)@Html.LabelFor(m => m.Job.JobMetaInsurance.ThirdPartyCaused)
@AjaxHelpers.AjaxSave()
@AjaxHelpers.AjaxLoader()
<div id="Job_JobMetaInsurance_ThirdPartyCaused_Details" style="padding-left: 25px;">
<div>
<h5>Third Party Name</h5>
@Html.EditorFor(m => m.Job.JobMetaInsurance.ThirdPartyCausedName)
@AjaxHelpers.AjaxSave()
@AjaxHelpers.AjaxLoader()
</div>
<div>
<h5>Why Third Parties Fault</h5>
@Html.EditorFor(m => m.Job.JobMetaInsurance.ThirdPartyCausedWhy)
@AjaxHelpers.AjaxSave()
@AjaxHelpers.AjaxLoader()
</div>
</div>
<div>
<h5>Why Third Parties Fault</h5>
@Html.EditorFor(m => m.Job.JobMetaInsurance.ThirdPartyCausedWhy)
@AjaxHelpers.AjaxSave()
@AjaxHelpers.AjaxLoader()
</div>
</div>
<script type="text/javascript">
<script type="text/javascript">
$(function () {
var thirdPartyField = $('#Job_JobMetaInsurance_ThirdPartyCaused');
var thirdPartyDetails = $('#Job_JobMetaInsurance_ThirdPartyCaused_Details');
@@ -128,17 +132,18 @@
'ThirdPartyCausedWhy'
);
});
</script>
</td>
</tr>
<tr>
<th>Witnessed by (Name/Address)
</th>
<td>
@Html.EditorFor(m => m.Job.JobMetaInsurance.WitnessesNamesAddresses)
@AjaxHelpers.AjaxSave()
@AjaxHelpers.AjaxLoader()
<script type="text/javascript">
</script>
</td>
</tr>
<tr>
<th>
Witnessed by (Name/Address)
</th>
<td>
@Html.EditorFor(m => m.Job.JobMetaInsurance.WitnessesNamesAddresses)
@AjaxHelpers.AjaxSave()
@AjaxHelpers.AjaxLoader()
<script type="text/javascript">
$(function () {
document.DiscoFunctions.PropertyChangeHelper(
$('#Job_JobMetaInsurance_WitnessesNamesAddresses'),
@@ -147,17 +152,18 @@
'WitnessesNamesAddresses'
);
});
</script>
</td>
</tr>
<tr>
<th>Burglary/Theft - Method of Entry
</th>
<td>
@Html.EditorFor(m => m.Job.JobMetaInsurance.BurglaryTheftMethodOfEntry)
@AjaxHelpers.AjaxSave()
@AjaxHelpers.AjaxLoader()
<script type="text/javascript">
</script>
</td>
</tr>
<tr>
<th>
Burglary/Theft - Method of Entry
</th>
<td>
@Html.EditorFor(m => m.Job.JobMetaInsurance.BurglaryTheftMethodOfEntry)
@AjaxHelpers.AjaxSave()
@AjaxHelpers.AjaxLoader()
<script type="text/javascript">
$(function () {
document.DiscoFunctions.PropertyChangeHelper(
$('#Job_JobMetaInsurance_BurglaryTheftMethodOfEntry'),
@@ -166,16 +172,17 @@
'BurglaryTheftMethodOfEntry'
);
});
</script>
</td>
</tr>
<tr>
<th style="width: 200px;">Property Last Seen
</th>
<td>
@Html.EditorFor(m => m.Job.JobMetaInsurance.PropertyLastSeenDate)
@AjaxHelpers.AjaxLoader()
<script type="text/javascript">
</script>
</td>
</tr>
<tr>
<th style="width: 200px;">
Property Last Seen
</th>
<td>
@Html.EditorFor(m => m.Job.JobMetaInsurance.PropertyLastSeenDate)
@AjaxHelpers.AjaxLoader()
<script type="text/javascript">
$(function () {
var dateField = $('#Job_JobMetaInsurance_PropertyLastSeenDate');
document.DiscoFunctions.DateChangeHelper(
@@ -186,36 +193,37 @@
null
);
});
</script>
</td>
</tr>
<tr>
<th style="width: 200px;">&nbsp;
</th>
<td>
@Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotified)@Html.LabelFor(m => m.Job.JobMetaInsurance.PoliceNotified)
@AjaxHelpers.AjaxSave()
@AjaxHelpers.AjaxLoader()
<div id="Job_JobMetaInsurance_PoliceNotified_Details" style="padding-left: 25px;">
<div>
<h5>Station</h5>
@Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotifiedStation)
@AjaxHelpers.AjaxSave()
@AjaxHelpers.AjaxLoader()
</script>
</td>
</tr>
<tr>
<th style="width: 200px;">
&nbsp;
</th>
<td>
@Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotified)@Html.LabelFor(m => m.Job.JobMetaInsurance.PoliceNotified)
@AjaxHelpers.AjaxSave()
@AjaxHelpers.AjaxLoader()
<div id="Job_JobMetaInsurance_PoliceNotified_Details" style="padding-left: 25px;">
<div>
<h5>Station</h5>
@Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotifiedStation)
@AjaxHelpers.AjaxSave()
@AjaxHelpers.AjaxLoader()
</div>
<div>
<h5>Date</h5>
@Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotifiedDate)
@AjaxHelpers.AjaxLoader()
</div>
<div>
<h5>Crime Report #</h5>
@Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotifiedCrimeReportNo)
@AjaxHelpers.AjaxSave()
@AjaxHelpers.AjaxLoader()
</div>
</div>
<div>
<h5>Date</h5>
@Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotifiedDate)
@AjaxHelpers.AjaxLoader()
</div>
<div>
<h5>Crime Report #</h5>
@Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotifiedCrimeReportNo)
@AjaxHelpers.AjaxSave()
@AjaxHelpers.AjaxLoader()
</div>
</div>
<script type="text/javascript">
<script type="text/javascript">
$(function () {
var policeNotifiedField = $('#Job_JobMetaInsurance_PoliceNotified');
var policeNotifiedDetails = $('#Job_JobMetaInsurance_PoliceNotified_Details');
@@ -265,17 +273,18 @@
'PoliceNotifiedCrimeReportNo'
);
});
</script>
</td>
</tr>
<tr>
<th>Action to Recover/Reduce Loss
</th>
<td>
@Html.EditorFor(m => m.Job.JobMetaInsurance.RecoverReduceAction)
@AjaxHelpers.AjaxSave()
@AjaxHelpers.AjaxLoader()
<script type="text/javascript">
</script>
</td>
</tr>
<tr>
<th>
Action to Recover/Reduce Loss
</th>
<td>
@Html.EditorFor(m => m.Job.JobMetaInsurance.RecoverReduceAction)
@AjaxHelpers.AjaxSave()
@AjaxHelpers.AjaxLoader()
<script type="text/javascript">
$(function () {
document.DiscoFunctions.PropertyChangeHelper(
$('#Job_JobMetaInsurance_RecoverReduceAction'),
@@ -284,17 +293,18 @@
'RecoverReduceAction'
);
});
</script>
</td>
</tr>
<tr>
<th>Other Interested Parties
</th>
<td>
@Html.EditorFor(m => m.Job.JobMetaInsurance.OtherInterestedParties)
@AjaxHelpers.AjaxSave()
@AjaxHelpers.AjaxLoader()
<script type="text/javascript">
</script>
</td>
</tr>
<tr>
<th>
Other Interested Parties
</th>
<td>
@Html.EditorFor(m => m.Job.JobMetaInsurance.OtherInterestedParties)
@AjaxHelpers.AjaxSave()
@AjaxHelpers.AjaxLoader()
<script type="text/javascript">
$(function () {
document.DiscoFunctions.PropertyChangeHelper(
$('#Job_JobMetaInsurance_OtherInterestedParties'),
@@ -303,16 +313,17 @@
'OtherInterestedParties'
);
});
</script>
</td>
</tr>
<tr>
<th style="width: 200px;">Date of Purchase
</th>
<td>
@Html.EditorFor(m => m.Job.JobMetaInsurance.DateOfPurchase)
@AjaxHelpers.AjaxLoader()
<script type="text/javascript">
</script>
</td>
</tr>
<tr>
<th style="width: 200px;">
Date of Purchase
</th>
<td>
@Html.EditorFor(m => m.Job.JobMetaInsurance.DateOfPurchase)
@AjaxHelpers.AjaxLoader()
<script type="text/javascript">
$(function () {
var dateField = $('#Job_JobMetaInsurance_DateOfPurchase');
document.DiscoFunctions.DateChangeHelper(
@@ -324,232 +335,313 @@
true
);
});
</script>
</td>
</tr>
</script>
</td>
</tr>
}
else
{
<tr>
<th style="width: 230px;">Date of Loss or Damage
</th>
<td>
@CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.LossOrDamageDate, "Unknown", null)
</td>
</tr>
<tr>
<th>Event Location
</th>
<td>
@if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.EventLocation))
{
<span class="smallMessage">&lt;Unknown/None&gt;</span>
}
else
{
@Model.Job.JobMetaInsurance.EventLocation
}
</td>
</tr>
<tr>
<th>Description
</th>
<td>
@if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.Description))
{
<span class="smallMessage">&lt;None&gt;</span>
}
else
{
@Model.Job.JobMetaInsurance.Description
}
</td>
</tr>
<tr>
<th style="width: 200px;">Caused by Third Party
</th>
<td>
@if (Model.Job.JobMetaInsurance.ThirdPartyCaused)
{
<div id="Job_JobMetaInsurance_ThirdPartyCaused_Details" style="padding-left: 25px;">
<div>
<h5>Third Party Name</h5>
@if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.ThirdPartyCausedName))
{
<span class="smallMessage">&lt;Unknown&gt;</span>
}
else
{
@Model.Job.JobMetaInsurance.ThirdPartyCausedName
}
<tr>
<th style="width: 230px;">
Date of Loss or Damage
</th>
<td>
@CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.LossOrDamageDate, "Unknown", null)
</td>
</tr>
<tr>
<th>
Event Location
</th>
<td>
@if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.EventLocation))
{
<span class="smallMessage">&lt;Unknown/None&gt;</span>
}
else
{
@Model.Job.JobMetaInsurance.EventLocation
}
</td>
</tr>
<tr>
<th>
Description
</th>
<td>
@if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.Description))
{
<span class="smallMessage">&lt;None&gt;</span>
}
else
{
@Model.Job.JobMetaInsurance.Description
}
</td>
</tr>
<tr>
<th style="width: 200px;">
Caused by Third Party
</th>
<td>
@if (Model.Job.JobMetaInsurance.ThirdPartyCaused)
{
<div id="Job_JobMetaInsurance_ThirdPartyCaused_Details" style="padding-left: 25px;">
<div>
<h5>Third Party Name</h5>
@if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.ThirdPartyCausedName))
{
<span class="smallMessage">&lt;Unknown&gt;</span>
}
else
{
@Model.Job.JobMetaInsurance.ThirdPartyCausedName
}
</div>
<div>
<h5>Why Third Parties Fault</h5>
@if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.ThirdPartyCausedWhy))
{
<span class="smallMessage">&lt;Unknown&gt;</span>
}
else
{
@Model.Job.JobMetaInsurance.ThirdPartyCausedWhy
}
</div>
</div>
<div>
<h5>Why Third Parties Fault</h5>
@if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.ThirdPartyCausedWhy))
{
<span class="smallMessage">&lt;Unknown&gt;</span>
}
else
{
@Model.Job.JobMetaInsurance.ThirdPartyCausedWhy
}
}
else
{
<span class="smallMessage">&lt;Not Caused by Third Party&gt;</span>
}
</td>
</tr>
<tr>
<th>
Witnessed by (Name/Address)
</th>
<td>
@if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.WitnessesNamesAddresses))
{
<span class="smallMessage">&lt;Unknown/None&gt;</span>
}
else
{
@Model.Job.JobMetaInsurance.WitnessesNamesAddresses
}
</td>
</tr>
<tr>
<th>
Burglary/Theft - Method of Entry
</th>
<td>
@if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.BurglaryTheftMethodOfEntry))
{
<span class="smallMessage">&lt;Unknown/None&gt;</span>
}
else
{
@Model.Job.JobMetaInsurance.BurglaryTheftMethodOfEntry
}
</td>
</tr>
<tr>
<th style="width: 200px;">
Property Last Seen
</th>
<td>
@CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.PropertyLastSeenDate, "Unknown", null)
</td>
</tr>
<tr>
<th style="width: 200px;">
&nbsp;
Police Notified
</th>
<td>
@if (Model.Job.JobMetaInsurance.PoliceNotified)
{
<div id="Job_JobMetaInsurance_PoliceNotified_Details" style="padding-left: 25px;">
<div>
<h5>Station</h5>
@if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.PoliceNotifiedStation))
{
<span class="smallMessage">&lt;Unknown&gt;</span>
}
else
{
@Model.Job.JobMetaInsurance.PoliceNotifiedStation
}
</div>
<div>
<h5>Date</h5>
@CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.PoliceNotifiedDate, "Unknown", null)
</div>
<div>
<h5>Crime Report #</h5>
@if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.PoliceNotifiedCrimeReportNo))
{
<span class="smallMessage">&lt;Unknown&gt;</span>
}
else
{
@Model.Job.JobMetaInsurance.PoliceNotifiedCrimeReportNo
}
</div>
</div>
</div>
}
else
{
<span class="smallMessage">&lt;Not Caused by Third Party&gt;</span>
}
</td>
</tr>
<tr>
<th>Witnessed by (Name/Address)
</th>
<td>
@if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.WitnessesNamesAddresses))
{
<span class="smallMessage">&lt;Unknown/None&gt;</span>
}
else
{
@Model.Job.JobMetaInsurance.WitnessesNamesAddresses
}
</td>
</tr>
<tr>
<th>Burglary/Theft - Method of Entry
</th>
<td>
@if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.BurglaryTheftMethodOfEntry))
{
<span class="smallMessage">&lt;Unknown/None&gt;</span>
}
else
{
@Model.Job.JobMetaInsurance.BurglaryTheftMethodOfEntry
}
</td>
</tr>
<tr>
<th style="width: 200px;">Property Last Seen
</th>
<td>
@CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.PropertyLastSeenDate, "Unknown", null)
</td>
</tr>
<tr>
<th style="width: 200px;">&nbsp;
Police Notified
</th>
<td>
@if (Model.Job.JobMetaInsurance.PoliceNotified)
{
<div id="Job_JobMetaInsurance_PoliceNotified_Details" style="padding-left: 25px;">
<div>
<h5>Station</h5>
@if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.PoliceNotifiedStation))
{
<span class="smallMessage">&lt;Unknown&gt;</span>
}
else
{
@Model.Job.JobMetaInsurance.PoliceNotifiedStation
}
</div>
<div>
<h5>Date</h5>
@CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.PoliceNotifiedDate, "Unknown", null)
</div>
<div>
<h5>Crime Report #</h5>
@if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.PoliceNotifiedCrimeReportNo))
{
<span class="smallMessage">&lt;Unknown&gt;</span>
}
else
{
@Model.Job.JobMetaInsurance.PoliceNotifiedCrimeReportNo
}
</div>
</div>
}
else
{
<span class="smallMessage">&lt;Not Notified&gt;</span>
}
</td>
</tr>
<tr>
<th>Action to Recover/Reduce Loss
</th>
<td>
@if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.RecoverReduceAction))
{
<span class="smallMessage">&lt;Unknown/None&gt;</span>
}
else
{
@Model.Job.JobMetaInsurance.RecoverReduceAction
}
</td>
</tr>
<tr>
<th>Other Interested Parties
</th>
<td>
@if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.OtherInterestedParties))
{
<span class="smallMessage">&lt;Unknown/None&gt;</span>
}
else
{
@Model.Job.JobMetaInsurance.OtherInterestedParties
}
</td>
</tr>
<tr>
<th style="width: 200px;">Date of Purchase
</th>
<td>
@CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.DateOfPurchase, "Unknown", null)
</td>
</tr>
}
else
{
<span class="smallMessage">&lt;Not Notified&gt;</span>
}
</td>
</tr>
<tr>
<th>
Action to Recover/Reduce Loss
</th>
<td>
@if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.RecoverReduceAction))
{
<span class="smallMessage">&lt;Unknown/None&gt;</span>
}
else
{
@Model.Job.JobMetaInsurance.RecoverReduceAction
}
</td>
</tr>
<tr>
<th>
Other Interested Parties
</th>
<td>
@if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.OtherInterestedParties))
{
<span class="smallMessage">&lt;Unknown/None&gt;</span>
}
else
{
@Model.Job.JobMetaInsurance.OtherInterestedParties
}
</td>
</tr>
<tr>
<th style="width: 200px;">
Date of Purchase
</th>
<td>
@CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.DateOfPurchase, "Unknown", null)
</td>
</tr>
}
if (Authorization.Has(Claims.Job.Properties.NonWarrantyProperties.InsuranceClaimFormSent))
{
<tr>
<th>Claim Form Sent Date
</th>
<td>
@CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.ClaimFormSentDate, "Not Sent", "Job_JobMetaInsurance_ClaimFormSentDate")
<span id="Job_JobMetaInsurance_ClaimFormSentUserId">@(string.IsNullOrEmpty(Model.Job.JobMetaInsurance.ClaimFormSentUserId) ? string.Empty : string.Format("by {0}", Model.Job.JobMetaInsurance.ClaimFormSentUser.ToString()))</span>
<script>
$(function () {
var updateUrl = '@(Url.Action(MVC.API.Job.Update(Model.Job.Id, null)))';
var jobOpenDate = '@(Model.Job.OpenedDate.ToISO8601())';
document.DiscoFunctions.DateDialogCreateUpdater(updateUrl, 'Claim Form Sent Date', 'Job_JobMetaInsurance_ClaimFormSentDate', 'Job_JobMetaInsurance_ClaimFormSentUserId', 'InsuranceClaimFormSentDate', 'Not Sent', jobOpenDate, false);
});
</script>
</td>
</tr>
<tr>
<th>
Claim Form Sent Date
</th>
<td>
@CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.ClaimFormSentDate, "Not Sent", "Job_JobMetaInsurance_ClaimFormSentDate")
<span id="Job_JobMetaInsurance_ClaimFormSentUserId">@(string.IsNullOrEmpty(Model.Job.JobMetaInsurance.ClaimFormSentUserId) ? string.Empty : string.Format("by {0}", Model.Job.JobMetaInsurance.ClaimFormSentUser.ToString()))</span>
</td>
</tr>
<tr>
<th>
Insurer
</th>
<td>
@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
{
<span>Not Logged</span>
}
}
else
{
<span id="Job_JobMetaInsurance_Insurer">@Model.Job.JobMetaInsurance.Insurer</span>
if (!string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.InsurerReference))
{
<span>(reference: <span id="Job_JobMetaInsurance_InsurerReference">@Model.Job.JobMetaInsurance.InsurerReference</span>)</span>
}
}
</td>
</tr>
}
else
{
<tr>
<th>Claim Form Sent Date
</th>
<td>
@CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.ClaimFormSentDate, "Not Sent", "Job_JobMetaInsurance_ClaimFormSentDate")
<span id="Job_JobMetaInsurance_ClaimFormSentUserId">@(string.IsNullOrEmpty(Model.Job.JobMetaInsurance.ClaimFormSentUserId) ? string.Empty : string.Format("by {0}", Model.Job.JobMetaInsurance.ClaimFormSentUser.ToString()))</span>
</td>
</tr>
<tr>
<th>
Claim Form Sent Date
</th>
<td>
@CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.ClaimFormSentDate, "Not Sent", "Job_JobMetaInsurance_ClaimFormSentDate")
<span id="Job_JobMetaInsurance_ClaimFormSentUserId">@(string.IsNullOrEmpty(Model.Job.JobMetaInsurance.ClaimFormSentUserId) ? string.Empty : string.Format("by {0}", Model.Job.JobMetaInsurance.ClaimFormSentUser.ToString()))</span>
</td>
</tr>
<tr>
<th>
Insurer
</th>
<td>
<span id="Job_JobMetaInsurance_Insurer">@Model.Job.JobMetaInsurance.Insurer</span>
@if (!string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.InsurerReference))
{
<span>(reference: <span id="Job_JobMetaInsurance_InsurerReference">@Model.Job.JobMetaInsurance.InsurerReference</span>)</span>
}
</td>
</tr>
}
if (!string.IsNullOrEmpty(Model.Job.JobMetaInsurance.Insurer))
{
<tr id="jobInsuranceProviderDetailContainer" style="display: none">
<th style="width: 200px;">
Provider Details
</th>
<td>
<div id="jobInsuranceProviderDetailLoading">
<span class="ajaxLoading" title="Loading..."></span>Loading...
</div>
<div id="jobInsuranceProviderDetailHost" class="clearfix" style="display: none">
</div>
</td>
</tr>
<script type="text/javascript">
$(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(
'@(Url.Action(MVC.Job.InsuranceProviderJobDetails(Model.Job.Id)))',
function () {
$('#jobInsuranceProviderDetailLoading').hide();
$(this).slideDown();
}
);
providerDetailLoaded = true;
}
}
});
});
</script>
}
}
@if (Authorization.Has(Claims.Job.Properties.NonWarrantyProperties.IsInsuranceClaim))
@if (Authorization.Has(Claims.Job.Properties.NonWarrantyProperties.IsInsuranceClaim) && Model.Job.JobMetaInsurance == null || string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.Insurer))
{
<tr>
<th>Insurance Claim
<th>
Insurance Claim
</th>
<td>
<div style="padding: 8px; text-align: center">
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -128,7 +128,7 @@
<td>
@if (Model.Job.CanLogRepair())
{
@Html.ActionLinkSmallButton("Log Repair", MVC.Job.LogRepair(Model.Job.Id, null, null), "Job_Show_Repair_Actions_LogRepair_Button")
@Html.ActionLinkSmallButton("Lodge Repair", MVC.Job.LogRepair(Model.Job.Id, null, null), "Job_Show_Repair_Actions_LogRepair_Button")
}
else
{
@@ -599,14 +599,14 @@ WriteLiteral(">Actions\r\n </th>\r\n <td>\r\n");
#line hidden
#line 131 "..\..\Views\Job\JobParts\Repairs.cshtml"
Write(Html.ActionLinkSmallButton("Log Repair", MVC.Job.LogRepair(Model.Job.Id, null, null), "Job_Show_Repair_Actions_LogRepair_Button"));
Write(Html.ActionLinkSmallButton("Lodge Repair", MVC.Job.LogRepair(Model.Job.Id, null, null), "Job_Show_Repair_Actions_LogRepair_Button"));
#line default
#line hidden
#line 131 "..\..\Views\Job\JobParts\Repairs.cshtml"
}
else
{
+1 -1
View File
@@ -127,7 +127,7 @@
<td>
@if (Model.Job.CanLogWarranty())
{
@Html.ActionLinkSmallButton("Log Warranty", MVC.Job.LogWarranty(Model.Job.Id, null, null), "Job_Show_Warranty_Actions_LogWarranty_Button")
@Html.ActionLinkSmallButton("Lodge Warranty", MVC.Job.LogWarranty(Model.Job.Id, null, null), "Job_Show_Warranty_Actions_LogWarranty_Button")
}
else
{
@@ -612,14 +612,14 @@ WriteLiteral(">Actions\r\n </th>\r\n <td>\r\n");
#line hidden
#line 130 "..\..\Views\Job\JobParts\Warranty.cshtml"
Write(Html.ActionLinkSmallButton("Log Warranty", MVC.Job.LogWarranty(Model.Job.Id, null, null), "Job_Show_Warranty_Actions_LogWarranty_Button"));
Write(Html.ActionLinkSmallButton("Lodge Warranty", MVC.Job.LogWarranty(Model.Job.Id, null, null), "Job_Show_Warranty_Actions_LogWarranty_Button"));
#line default
#line hidden
#line 130 "..\..\Views\Job\JobParts\Warranty.cshtml"
}
else
{
+4 -4
View File
@@ -882,19 +882,19 @@
}
@if (Model.Job.CanLogWarranty())
{
@Html.ActionLinkSmallButton("Log Warranty", MVC.Job.LogWarranty(Model.Job.Id, null, null), "Job_Show_Job_Actions_LogWarranty_Button")
@Html.ActionLinkSmallButton("Lodge Warranty", MVC.Job.LogWarranty(Model.Job.Id, null, null), "Job_Show_Job_Actions_LogWarranty_Button")
}
@if (Model.Job.CanWarrantyCompleted())
{
@Html.ActionLinkSmallButton("Warranty Complete", MVC.API.Job.UpdateWarrantyExternalCompletedDate(Model.Job.Id, "Now", true), "Job_Show_Job_Actions_WarrantyComplete_Button", "alert")
}
@if (Model.Job.CanInsuranceClaimFormSent())
@if (Model.Job.CanLogInsurance())
{
@Html.ActionLinkSmallButton("Insurance Claim Sent", MVC.API.Job.UpdateInsuranceClaimFormSentDate(Model.Job.Id, "Now", true), "Job_Show_Job_Actions_InsuranceClaimSent_Button", "alert")
@Html.ActionLinkSmallButton("Lodge Insurance", MVC.Job.LogInsurance(Model.Job.Id, null, null), "Job_Show_Job_Actions_LogInsurance_Button", "alert")
}
@if (Model.Job.CanLogRepair())
{
@Html.ActionLinkSmallButton("Log Repair", MVC.Job.LogRepair(Model.Job.Id, null, null), "Job_Show_Job_Actions_LogRepair_Button")
@Html.ActionLinkSmallButton("Lodge Repair", MVC.Job.LogRepair(Model.Job.Id, null, null), "Job_Show_Job_Actions_LogRepair_Button")
}
@if (Model.Job.CanRepairComplete())
{
@@ -2980,14 +2980,14 @@ WriteLiteral(" ");
#line hidden
#line 885 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Log Warranty", MVC.Job.LogWarranty(Model.Job.Id, null, null), "Job_Show_Job_Actions_LogWarranty_Button"));
Write(Html.ActionLinkSmallButton("Lodge Warranty", MVC.Job.LogWarranty(Model.Job.Id, null, null), "Job_Show_Job_Actions_LogWarranty_Button"));
#line default
#line hidden
#line 885 "..\..\Views\Job\JobParts\_Subject.cshtml"
}
@@ -3022,7 +3022,7 @@ WriteLiteral(" ");
#line 891 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.CanInsuranceClaimFormSent())
if (Model.Job.CanLogInsurance())
{
@@ -3030,14 +3030,14 @@ WriteLiteral(" ");
#line hidden
#line 893 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Insurance Claim Sent", MVC.API.Job.UpdateInsuranceClaimFormSentDate(Model.Job.Id, "Now", true), "Job_Show_Job_Actions_InsuranceClaimSent_Button", "alert"));
Write(Html.ActionLinkSmallButton("Lodge Insurance", MVC.Job.LogInsurance(Model.Job.Id, null, null), "Job_Show_Job_Actions_LogInsurance_Button", "alert"));
#line default
#line hidden
#line 893 "..\..\Views\Job\JobParts\_Subject.cshtml"
}
@@ -3055,14 +3055,14 @@ WriteLiteral(" ");
#line hidden
#line 897 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Log Repair", MVC.Job.LogRepair(Model.Job.Id, null, null), "Job_Show_Job_Actions_LogRepair_Button"));
Write(Html.ActionLinkSmallButton("Lodge Repair", MVC.Job.LogRepair(Model.Job.Id, null, null), "Job_Show_Job_Actions_LogRepair_Button"));
#line default
#line hidden
#line 897 "..\..\Views\Job\JobParts\_Subject.cshtml"
}
+185
View File
@@ -0,0 +1,185 @@
@model Disco.Web.Models.Job.LogInsuranceModel
@{
Authorization.RequireAny(Claims.Job.Properties.NonWarrantyProperties.InsuranceClaimFormSent, Claims.Job.Actions.LogInsurance);
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Lodge Insurance Claim");
}
@using (Html.BeginForm(MVC.Job.LogInsurance(), FormMethod.Post))
{
@Html.AntiForgeryToken()
@Html.ValidationSummary(true)
@Html.HiddenFor(m => m.JobId)
@Html.ValidationMessageFor(m => m.JobId)
<input type="hidden" name="SubmissionAction" value="@(Model.IsManualProvider ? "Manual" : "Disclose")" />
<div id="insuranceJobForm" class="form" style="width: 650px">
<table>
<tr>
<th>Internal Job Id:
</th>
<td>
@Model.JobId
</td>
</tr>
<tr>
<th>Device Serial Number:
</th>
<td>
@Model.Job.Device.SerialNumber
</td>
</tr>
<tr>
<th>Device Model:
</th>
<td>
@Model.Job.Device.DeviceModel.Manufacturer @Model.Job.Device.DeviceModel.Model
</td>
</tr>
<tr>
<th>Technician:
</th>
<td>
@Model.TechUser.DisplayName
<div class="smallMessage">
Email Address: @Model.TechUser.EmailAddress<br />
Phone Number: @Model.TechUser.PhoneNumber
</div>
</td>
</tr>
<tr>
<th style="width: 150px">Address:
</th>
<td>
@Html.DropDownListFor(model => model.OrganisationAddressId, Model.OrganisationAddresses.ToSelectListItems(Model.OrganisationAddressId, (Model.OrganisationAddress == null)))<br />
@Html.ValidationMessageFor(m => m.OrganisationAddressId)
<div id="organisationAddressDetails">
@{
var oa = Model.OrganisationAddress;
if (oa != null)
{
<span>@oa.Address</span>
<br />
<span>@oa.Suburb, @oa.Postcode</span>
<br />
<span>@oa.State, @oa.Country</span>
}
}
</div>
</td>
</tr>
<tr>
<th>Insurance Provider:
</th>
<td>
@Html.DropDownListFor(model => model.ProviderId, Model.Providers.ToSelectListItems(Model.ProviderId, AdditionalItems: new Dictionary<string, string>() { { "MANUAL", "<Manually Submitted Request>" } }))<br />
@Html.ValidationMessageFor(m => m.ProviderId)
@if (Model.Providers.Count == 0 && Authorization.Has(Claims.Config.Plugin.Install))
{
<div class="info-box">
<p class="fa-p">
<i class="fa fa-info-circle"></i>View the <a href="@(Url.Action(MVC.Config.Plugins.Install()))">Plugin Catalogue</a> to discover and install provider plugins.
</p>
</div>
}
</td>
</tr>
@if (Model.IsManualProvider)
{
<tr>
<th>Insurer Name:</th>
<td>
@Html.EditorFor(model => model.ManualProviderName)<br />
@Html.ValidationMessageFor(m => m.ManualProviderName)
</td>
</tr>
<tr>
<th>Insurer Reference:</th>
<td>
@Html.EditorFor(model => model.ManualProviderReference)<br />
@Html.ValidationMessageFor(m => m.ManualProviderReference)
</td>
</tr>
}
</table>
</div>
if (!Model.IsManualProvider && Authorization.Has(Claims.Job.ShowAttachments) && Model.Job.JobAttachments.Count > 0)
{
<div class="form" style="width: 650px; margin-top: 15px;">
<h2>Send Attachments</h2>
<table>
<tr>
<td>
<div id="publishJobAttachments">
@foreach (var ja in Model.Job.JobAttachments)
{
<a href="@Url.Action(MVC.API.Job.AttachmentDownload(ja.Id))" data-attachmentid="@ja.Id" data-mimetype="@ja.MimeType">
<input type="checkbox" class="select" name="AttachmentIds" value="@ja.Id" @(Model.AttachmentIds.Contains(ja.Id) ? "checked" : null) />
<span class="icon" title="@ja.Filename">
<img alt="Attachment Thumbnail" src="@(Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id)))" /></span>
<span class="comments" title="@ja.Comments">
@{if (!string.IsNullOrEmpty(ja.DocumentTemplateId))
{ @ja.DocumentTemplate.Description}
else
{ @ja.Comments }}
</span><span class="author">@ja.TechUser.ToStringFriendly()</span><span class="timestamp" data-livestamp="@(ja.Timestamp.ToUnixEpoc())" title="@ja.Timestamp.ToFullDateTime()">@ja.Timestamp.ToFullDateTime()</span>
</a>
}
</div>
</td>
</tr>
</table>
</div>
}
if (Model.Provider != null && Model.ProviderSubmitJobBeginResult != null)
{
<div id="providerProperties">
@Html.PartialCompiled(Model.ProviderSubmitJobBeginResult.Item1, Model.ProviderSubmitJobBeginResult.Item2)
</div>
}
<div class="actionBar">
@if (Model.IsManualProvider)
{
<input type="submit" class="button" value="Save Insurance Claim" />
}
else
{
<input type="submit" class="button" value="Preview Insurance Claim" />
}
</div>
}
<script type="text/javascript">
$(function () {
var $providerId = $('#ProviderId');
var $addressId = $('#OrganisationAddressId');
function updateDetails() {
$('<form>').attr({
action: $providerId.closest('form').attr('action'),
method: 'post'
}).append(
$('<input>').attr({ type: 'hidden', name: 'SubmissionAction', value: 'Update' })
).append(
$('<input>').attr({ type: 'hidden', name: 'JobId', value: $('#JobId').val() })
).append(
$('<input>').attr({ type: 'hidden', name: 'ProviderId', value: $providerId.val() })
).append(
$('<input>').attr({ type: 'hidden', name: 'OrganisationAddressId', value: $addressId.val() })
).append(
$('<input>').attr({ type: 'hidden', name: 'ManualProviderName', value: $('#ManualProviderName').val() })
).append(
$('<input>').attr({ type: 'hidden', name: 'ManualProviderReference', value: $('#ManualProviderReference').val() })
).append(
$('<input>').attr({ type: 'hidden', name: '__RequestVerificationToken', value: $providerId.closest('form').find('input[name="__RequestVerificationToken"]').val() })
).appendTo('body').submit();
}
$providerId.change(updateDetails);
$addressId.change(updateDetails);
var manualProvider = $('#ManualProviderName');
if (manualProvider.length > 0 && !manualProvider.val()) {
manualProvider.focus();
} else {
$('#ProviderId').focus();
}
});
</script>
@@ -0,0 +1,855 @@
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Disco.Web.Views.Job
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Helpers;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html;
using System.Web.Routing;
using System.Web.Security;
using System.Web.UI;
using System.Web.WebPages;
using Disco;
using Disco.Models.Repository;
using Disco.Services;
using Disco.Services.Authorization;
using Disco.Services.Web;
using Disco.Web;
using Disco.Web.Extensions;
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/Job/LogInsurance.cshtml")]
public partial class LogInsurance : Disco.Services.Web.WebViewPage<Disco.Web.Models.Job.LogInsuranceModel>
{
public LogInsurance()
{
}
public override void Execute()
{
#line 2 "..\..\Views\Job\LogInsurance.cshtml"
Authorization.RequireAny(Claims.Job.Properties.NonWarrantyProperties.InsuranceClaimFormSent, Claims.Job.Actions.LogInsurance);
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Lodge Insurance Claim");
#line default
#line hidden
WriteLiteral("\r\n");
#line 7 "..\..\Views\Job\LogInsurance.cshtml"
using (Html.BeginForm(MVC.Job.LogInsurance(), FormMethod.Post))
{
#line default
#line hidden
#line 9 "..\..\Views\Job\LogInsurance.cshtml"
Write(Html.AntiForgeryToken());
#line default
#line hidden
#line 9 "..\..\Views\Job\LogInsurance.cshtml"
#line default
#line hidden
#line 10 "..\..\Views\Job\LogInsurance.cshtml"
Write(Html.ValidationSummary(true));
#line default
#line hidden
#line 10 "..\..\Views\Job\LogInsurance.cshtml"
#line default
#line hidden
#line 11 "..\..\Views\Job\LogInsurance.cshtml"
Write(Html.HiddenFor(m => m.JobId));
#line default
#line hidden
#line 11 "..\..\Views\Job\LogInsurance.cshtml"
#line default
#line hidden
#line 12 "..\..\Views\Job\LogInsurance.cshtml"
Write(Html.ValidationMessageFor(m => m.JobId));
#line default
#line hidden
#line 12 "..\..\Views\Job\LogInsurance.cshtml"
#line default
#line hidden
WriteLiteral(" <input");
WriteLiteral(" type=\"hidden\"");
WriteLiteral(" name=\"SubmissionAction\"");
WriteAttribute("value", Tuple.Create(" value=\"", 610), Tuple.Create("\"", 667)
#line 13 "..\..\Views\Job\LogInsurance.cshtml"
, Tuple.Create(Tuple.Create("", 618), Tuple.Create<System.Object, System.Int32>(Model.IsManualProvider ? "Manual" : "Disclose"
#line default
#line hidden
, 618), false)
);
WriteLiteral(" />\r\n");
WriteLiteral(" <div");
WriteLiteral(" id=\"insuranceJobForm\"");
WriteLiteral(" class=\"form\"");
WriteLiteral(" style=\"width: 650px\"");
WriteLiteral(">\r\n <table>\r\n <tr>\r\n <th>Internal Job Id:\r\n " +
" </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 20 "..\..\Views\Job\LogInsurance.cshtml"
Write(Model.JobId);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th" +
">Device Serial Number:\r\n </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 27 "..\..\Views\Job\LogInsurance.cshtml"
Write(Model.Job.Device.SerialNumber);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th" +
">Device Model:\r\n </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 34 "..\..\Views\Job\LogInsurance.cshtml"
Write(Model.Job.Device.DeviceModel.Manufacturer);
#line default
#line hidden
WriteLiteral(" ");
#line 34 "..\..\Views\Job\LogInsurance.cshtml"
Write(Model.Job.Device.DeviceModel.Model);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th" +
">Technician:\r\n </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 41 "..\..\Views\Job\LogInsurance.cshtml"
Write(Model.TechUser.DisplayName);
#line default
#line hidden
WriteLiteral("\r\n <div");
WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">\r\n Email Address: ");
#line 43 "..\..\Views\Job\LogInsurance.cshtml"
Write(Model.TechUser.EmailAddress);
#line default
#line hidden
WriteLiteral("<br />\r\n Phone Number: ");
#line 44 "..\..\Views\Job\LogInsurance.cshtml"
Write(Model.TechUser.PhoneNumber);
#line default
#line hidden
WriteLiteral("\r\n </div>\r\n </td>\r\n </tr>\r\n " +
" <tr>\r\n <th");
WriteLiteral(" style=\"width: 150px\"");
WriteLiteral(">Address:\r\n </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 52 "..\..\Views\Job\LogInsurance.cshtml"
Write(Html.DropDownListFor(model => model.OrganisationAddressId, Model.OrganisationAddresses.ToSelectListItems(Model.OrganisationAddressId, (Model.OrganisationAddress == null))));
#line default
#line hidden
WriteLiteral("<br />\r\n");
WriteLiteral(" ");
#line 53 "..\..\Views\Job\LogInsurance.cshtml"
Write(Html.ValidationMessageFor(m => m.OrganisationAddressId));
#line default
#line hidden
WriteLiteral("\r\n <div");
WriteLiteral(" id=\"organisationAddressDetails\"");
WriteLiteral(">\r\n");
#line 55 "..\..\Views\Job\LogInsurance.cshtml"
#line default
#line hidden
#line 55 "..\..\Views\Job\LogInsurance.cshtml"
var oa = Model.OrganisationAddress;
if (oa != null)
{
#line default
#line hidden
WriteLiteral(" <span>");
#line 59 "..\..\Views\Job\LogInsurance.cshtml"
Write(oa.Address);
#line default
#line hidden
WriteLiteral("</span>\r\n");
WriteLiteral(" <br />\r\n");
WriteLiteral(" <span>");
#line 61 "..\..\Views\Job\LogInsurance.cshtml"
Write(oa.Suburb);
#line default
#line hidden
WriteLiteral(", ");
#line 61 "..\..\Views\Job\LogInsurance.cshtml"
Write(oa.Postcode);
#line default
#line hidden
WriteLiteral("</span>\r\n");
WriteLiteral(" <br />\r\n");
WriteLiteral(" <span>");
#line 63 "..\..\Views\Job\LogInsurance.cshtml"
Write(oa.State);
#line default
#line hidden
WriteLiteral(", ");
#line 63 "..\..\Views\Job\LogInsurance.cshtml"
Write(oa.Country);
#line default
#line hidden
WriteLiteral("</span>\r\n");
#line 64 "..\..\Views\Job\LogInsurance.cshtml"
}
#line default
#line hidden
WriteLiteral("\r\n </div>\r\n </td>\r\n </tr>\r\n " +
" <tr>\r\n <th>Insurance Provider:\r\n </th>\r\n " +
" <td>\r\n");
WriteLiteral(" ");
#line 73 "..\..\Views\Job\LogInsurance.cshtml"
Write(Html.DropDownListFor(model => model.ProviderId, Model.Providers.ToSelectListItems(Model.ProviderId, AdditionalItems: new Dictionary<string, string>() { { "MANUAL", "<Manually Submitted Request>" } })));
#line default
#line hidden
WriteLiteral("<br />\r\n");
WriteLiteral(" ");
#line 74 "..\..\Views\Job\LogInsurance.cshtml"
Write(Html.ValidationMessageFor(m => m.ProviderId));
#line default
#line hidden
WriteLiteral("\r\n");
#line 75 "..\..\Views\Job\LogInsurance.cshtml"
#line default
#line hidden
#line 75 "..\..\Views\Job\LogInsurance.cshtml"
if (Model.Providers.Count == 0 && Authorization.Has(Claims.Config.Plugin.Install))
{
#line default
#line hidden
WriteLiteral(" <div");
WriteLiteral(" class=\"info-box\"");
WriteLiteral(">\r\n <p");
WriteLiteral(" class=\"fa-p\"");
WriteLiteral(">\r\n <i");
WriteLiteral(" class=\"fa fa-info-circle\"");
WriteLiteral("></i>View the <a");
WriteAttribute("href", Tuple.Create(" href=\"", 3387), Tuple.Create("\"", 3437)
#line 79 "..\..\Views\Job\LogInsurance.cshtml"
, Tuple.Create(Tuple.Create("", 3394), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.Config.Plugins.Install())
#line default
#line hidden
, 3394), false)
);
WriteLiteral(">Plugin Catalogue</a> to discover and install provider plugins.\r\n " +
" </p>\r\n </div>\r\n");
#line 82 "..\..\Views\Job\LogInsurance.cshtml"
}
#line default
#line hidden
WriteLiteral(" </td>\r\n </tr>\r\n");
#line 85 "..\..\Views\Job\LogInsurance.cshtml"
#line default
#line hidden
#line 85 "..\..\Views\Job\LogInsurance.cshtml"
if (Model.IsManualProvider)
{
#line default
#line hidden
WriteLiteral(" <tr>\r\n <th>Insurer Name:</th>\r\n " +
" <td>\r\n");
WriteLiteral(" ");
#line 90 "..\..\Views\Job\LogInsurance.cshtml"
Write(Html.EditorFor(model => model.ManualProviderName));
#line default
#line hidden
WriteLiteral("<br />\r\n");
WriteLiteral(" ");
#line 91 "..\..\Views\Job\LogInsurance.cshtml"
Write(Html.ValidationMessageFor(m => m.ManualProviderName));
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n");
WriteLiteral(" <tr>\r\n <th>Insurer Reference:</th>\r\n " +
" <td>\r\n");
WriteLiteral(" ");
#line 97 "..\..\Views\Job\LogInsurance.cshtml"
Write(Html.EditorFor(model => model.ManualProviderReference));
#line default
#line hidden
WriteLiteral("<br />\r\n");
WriteLiteral(" ");
#line 98 "..\..\Views\Job\LogInsurance.cshtml"
Write(Html.ValidationMessageFor(m => m.ManualProviderReference));
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n");
#line 101 "..\..\Views\Job\LogInsurance.cshtml"
}
#line default
#line hidden
WriteLiteral(" </table>\r\n </div>\r\n");
#line 104 "..\..\Views\Job\LogInsurance.cshtml"
if (!Model.IsManualProvider && Authorization.Has(Claims.Job.ShowAttachments) && Model.Job.JobAttachments.Count > 0)
{
#line default
#line hidden
WriteLiteral(" <div");
WriteLiteral(" class=\"form\"");
WriteLiteral(" style=\"width: 650px; margin-top: 15px;\"");
WriteLiteral(">\r\n <h2>Send Attachments</h2>\r\n <table>\r\n <tr>\r\n " +
" <td>\r\n <div");
WriteLiteral(" id=\"publishJobAttachments\"");
WriteLiteral(">\r\n");
#line 112 "..\..\Views\Job\LogInsurance.cshtml"
#line default
#line hidden
#line 112 "..\..\Views\Job\LogInsurance.cshtml"
foreach (var ja in Model.Job.JobAttachments)
{
#line default
#line hidden
WriteLiteral(" <a");
WriteAttribute("href", Tuple.Create(" href=\"", 4839), Tuple.Create("\"", 4896)
#line 114 "..\..\Views\Job\LogInsurance.cshtml"
, Tuple.Create(Tuple.Create("", 4846), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentDownload(ja.Id))
#line default
#line hidden
, 4846), false)
);
WriteLiteral(" data-attachmentid=\"");
#line 114 "..\..\Views\Job\LogInsurance.cshtml"
Write(ja.Id);
#line default
#line hidden
WriteLiteral("\"");
WriteLiteral(" data-mimetype=\"");
#line 114 "..\..\Views\Job\LogInsurance.cshtml"
Write(ja.MimeType);
#line default
#line hidden
WriteLiteral("\"");
WriteLiteral(">\r\n <input");
WriteLiteral(" type=\"checkbox\"");
WriteLiteral(" class=\"select\"");
WriteLiteral(" name=\"AttachmentIds\"");
WriteAttribute("value", Tuple.Create(" value=\"", 5046), Tuple.Create("\"", 5060)
#line 115 "..\..\Views\Job\LogInsurance.cshtml"
, Tuple.Create(Tuple.Create("", 5054), Tuple.Create<System.Object, System.Int32>(ja.Id
#line default
#line hidden
, 5054), false)
);
WriteLiteral(" ");
#line 115 "..\..\Views\Job\LogInsurance.cshtml"
Write(Model.AttachmentIds.Contains(ja.Id) ? "checked" : null);
#line default
#line hidden
WriteLiteral(" />\r\n <span");
WriteLiteral(" class=\"icon\"");
WriteAttribute("title", Tuple.Create(" title=\"", 5174), Tuple.Create("\"", 5194)
#line 116 "..\..\Views\Job\LogInsurance.cshtml"
, Tuple.Create(Tuple.Create("", 5182), Tuple.Create<System.Object, System.Int32>(ja.Filename
#line default
#line hidden
, 5182), false)
);
WriteLiteral(">\r\n <img");
WriteLiteral(" alt=\"Attachment Thumbnail\"");
WriteAttribute("src", Tuple.Create(" src=\"", 5265), Tuple.Create("\"", 5324)
#line 117 "..\..\Views\Job\LogInsurance.cshtml"
, Tuple.Create(Tuple.Create("", 5271), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id))
#line default
#line hidden
, 5271), false)
);
WriteLiteral(" /></span>\r\n <span");
WriteLiteral(" class=\"comments\"");
WriteAttribute("title", Tuple.Create(" title=\"", 5391), Tuple.Create("\"", 5411)
#line 118 "..\..\Views\Job\LogInsurance.cshtml"
, Tuple.Create(Tuple.Create("", 5399), Tuple.Create<System.Object, System.Int32>(ja.Comments
#line default
#line hidden
, 5399), false)
);
WriteLiteral(">\r\n");
#line 119 "..\..\Views\Job\LogInsurance.cshtml"
#line default
#line hidden
#line 119 "..\..\Views\Job\LogInsurance.cshtml"
if (!string.IsNullOrEmpty(ja.DocumentTemplateId))
{
#line default
#line hidden
#line 120 "..\..\Views\Job\LogInsurance.cshtml"
Write(ja.DocumentTemplate.Description);
#line default
#line hidden
#line 120 "..\..\Views\Job\LogInsurance.cshtml"
}
else
{
#line default
#line hidden
#line 122 "..\..\Views\Job\LogInsurance.cshtml"
Write(ja.Comments);
#line default
#line hidden
#line 122 "..\..\Views\Job\LogInsurance.cshtml"
}
#line default
#line hidden
WriteLiteral("\r\n </span><span");
WriteLiteral(" class=\"author\"");
WriteLiteral(">");
#line 123 "..\..\Views\Job\LogInsurance.cshtml"
Write(ja.TechUser.ToStringFriendly());
#line default
#line hidden
WriteLiteral("</span><span");
WriteLiteral(" class=\"timestamp\"");
WriteLiteral(" data-livestamp=\"");
#line 123 "..\..\Views\Job\LogInsurance.cshtml"
Write(ja.Timestamp.ToUnixEpoc());
#line default
#line hidden
WriteLiteral("\"");
WriteAttribute("title", Tuple.Create(" title=\"", 5847), Tuple.Create("\"", 5885)
#line 123 "..\..\Views\Job\LogInsurance.cshtml"
, Tuple.Create(Tuple.Create("", 5855), Tuple.Create<System.Object, System.Int32>(ja.Timestamp.ToFullDateTime()
#line default
#line hidden
, 5855), false)
);
WriteLiteral(">");
#line 123 "..\..\Views\Job\LogInsurance.cshtml"
Write(ja.Timestamp.ToFullDateTime());
#line default
#line hidden
WriteLiteral("</span>\r\n </a> \r\n");
#line 125 "..\..\Views\Job\LogInsurance.cshtml"
}
#line default
#line hidden
WriteLiteral(" </div>\r\n </td>\r\n </tr>\r\n </t" +
"able>\r\n </div>\r\n");
#line 131 "..\..\Views\Job\LogInsurance.cshtml"
}
if (Model.Provider != null && Model.ProviderSubmitJobBeginResult != null)
{
#line default
#line hidden
WriteLiteral(" <div");
WriteLiteral(" id=\"providerProperties\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 135 "..\..\Views\Job\LogInsurance.cshtml"
Write(Html.PartialCompiled(Model.ProviderSubmitJobBeginResult.Item1, Model.ProviderSubmitJobBeginResult.Item2));
#line default
#line hidden
WriteLiteral("\r\n </div>\r\n");
#line 137 "..\..\Views\Job\LogInsurance.cshtml"
}
#line default
#line hidden
WriteLiteral(" <div");
WriteLiteral(" class=\"actionBar\"");
WriteLiteral(">\r\n");
#line 139 "..\..\Views\Job\LogInsurance.cshtml"
#line default
#line hidden
#line 139 "..\..\Views\Job\LogInsurance.cshtml"
if (Model.IsManualProvider)
{
#line default
#line hidden
WriteLiteral(" <input");
WriteLiteral(" type=\"submit\"");
WriteLiteral(" class=\"button\"");
WriteLiteral(" value=\"Save Insurance Claim\"");
WriteLiteral(" />\r\n");
#line 142 "..\..\Views\Job\LogInsurance.cshtml"
}
else
{
#line default
#line hidden
WriteLiteral(" <input");
WriteLiteral(" type=\"submit\"");
WriteLiteral(" class=\"button\"");
WriteLiteral(" value=\"Preview Insurance Claim\"");
WriteLiteral(" />\r\n");
#line 146 "..\..\Views\Job\LogInsurance.cshtml"
}
#line default
#line hidden
WriteLiteral(" </div>\r\n");
#line 148 "..\..\Views\Job\LogInsurance.cshtml"
}
#line default
#line hidden
WriteLiteral("<script");
WriteLiteral(" type=\"text/javascript\"");
WriteLiteral(">\r\n $(function () {\r\n var $providerId = $(\'#ProviderId\');\r\n var " +
"$addressId = $(\'#OrganisationAddressId\');\r\n\r\n function updateDetails() {\r" +
"\n $(\'<form>\').attr({\r\n action: $providerId.closest(\'fo" +
"rm\').attr(\'action\'),\r\n method: \'post\'\r\n }).append(\r\n " +
" $(\'<input>\').attr({ type: \'hidden\', name: \'SubmissionAction\', valu" +
"e: \'Update\' })\r\n ).append(\r\n $(\'<input>\').attr({ type:" +
" \'hidden\', name: \'JobId\', value: $(\'#JobId\').val() })\r\n ).append(\r\n " +
" $(\'<input>\').attr({ type: \'hidden\', name: \'ProviderId\', value: $pr" +
"oviderId.val() })\r\n ).append(\r\n $(\'<input>\').attr({ ty" +
"pe: \'hidden\', name: \'OrganisationAddressId\', value: $addressId.val() })\r\n " +
" ).append(\r\n $(\'<input>\').attr({ type: \'hidden\', name: \'Manua" +
"lProviderName\', value: $(\'#ManualProviderName\').val() })\r\n ).append(\r" +
"\n $(\'<input>\').attr({ type: \'hidden\', name: \'ManualProviderRefere" +
"nce\', value: $(\'#ManualProviderReference\').val() })\r\n ).append(\r\n " +
" $(\'<input>\').attr({ type: \'hidden\', name: \'__RequestVerificationToke" +
"n\', value: $providerId.closest(\'form\').find(\'input[name=\"__RequestVerificationTo" +
"ken\"]\').val() })\r\n ).appendTo(\'body\').submit();\r\n }\r\n\r\n " +
" $providerId.change(updateDetails);\r\n $addressId.change(updateDetails);\r\n" +
"\r\n var manualProvider = $(\'#ManualProviderName\');\r\n if (manualProv" +
"ider.length > 0 && !manualProvider.val()) {\r\n manualProvider.focus();" +
"\r\n } else {\r\n $(\'#ProviderId\').focus();\r\n }\r\n });\r\n<" +
"/script>\r\n");
}
}
}
#pragma warning restore 1591
@@ -0,0 +1,145 @@
@model Disco.Web.Models.Job.LogInsuranceModel
@{
Authorization.RequireAny(Claims.Job.Properties.NonWarrantyProperties.InsuranceClaimFormSent, Claims.Job.Actions.LogInsurance);
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Lodge Insurance Claim");
}
@using (Html.BeginForm(MVC.Job.LogInsurance(), FormMethod.Post))
{
@Html.AntiForgeryToken()
@Html.ValidationSummary(true)
@Html.HiddenFor(m => m.JobId)
@Html.HiddenFor(m => m.OrganisationAddressId)
@Html.HiddenFor(m => m.ProviderId)
@Html.HiddenFor(m => m.ProviderPropertiesJson)
<input type="hidden" name="SubmissionAction" value="Submit" />
<div id="insuranceJobForm" class="form" style="width: 650px">
<table>
<tr>
<th>Internal Job Id:
</th>
<td>
@Model.JobId
</td>
</tr>
<tr>
<th>Device Serial Number:
</th>
<td>
@Model.Job.Device.SerialNumber
</td>
</tr>
<tr>
<th>Device Model:
</th>
<td>
@Model.Job.Device.DeviceModel.Manufacturer @Model.Job.Device.DeviceModel.Model
</td>
</tr>
<tr>
<th>Technician:
</th>
<td>
@Model.TechUser.DisplayName
<div class="smallMessage">
Email Address: @Model.TechUser.EmailAddress<br />
Phone Number: @Model.TechUser.PhoneNumber
</div>
</td>
</tr>
<tr>
<th style="width: 150px">Address:
</th>
<td>
<div id="organisationAddressDetails">
@Model.OrganisationAddress.Name
<div class="smallMessage">
<span>@Model.OrganisationAddress.Address</span><br />
<span>@Model.OrganisationAddress.Suburb, @Model.OrganisationAddress.Postcode</span><br />
<span>@Model.OrganisationAddress.State, @Model.OrganisationAddress.Country</span>
</div>
</div>
</td>
</tr>
<tr>
<th>Provider:
</th>
<td>
@Model.Provider.Name (@Model.Provider.Id) @Model.Provider.PluginManifest.Version.ToString(3)
</td>
</tr>
<tr>
<th>Disclosed Information
</th>
<td>
<div id="disclosedInformation">
<table>
@foreach (var dp in Model.DiscloseProperties)
{
<tr>
<th>@dp.Key:
</th>
<td>@dp.Value
</td>
</tr>
}
</table>
</div>
</td>
</tr>
@if (Model.Attachments.Count > 0)
{
<tr>
<th>Sending Attachments</th>
<td>
<div>
<div id="publishJobAttachments">
@foreach (var ja in Model.Attachments)
{
<input type="hidden" name="AttachmentIds" value="@ja.Id" />
<a href="@Url.Action(MVC.API.Job.AttachmentDownload(ja.Id))" data-attachmentid="@ja.Id" data-mimetype="@ja.MimeType">
<span class="icon" title="@ja.Filename">
<img alt="Attachment Thumbnail" src="@(Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id)))" /></span>
<span class="comments" title="@ja.Comments">
@{if (!string.IsNullOrEmpty(ja.DocumentTemplateId))
{ @ja.DocumentTemplate.Description}
else
{ @ja.Comments }}
</span><span class="author">@ja.TechUser.ToStringFriendly()</span><span class="timestamp" data-livestamp="@(ja.Timestamp.ToUnixEpoc())" title="@ja.Timestamp.ToFullDateTime()">@ja.Timestamp.ToFullDateTime()</span>
</a>
}
</div>
</div>
</td>
</tr>
}
</table>
</div>
<div id="submitDialog" class="dialog" title="Please Wait">
<h4><i class="fa fa-lg fa-cog fa-spin" title="Please Wait"></i>Lodging Insurance Claim...</h4>
</div>
<script>
$(function () {
var dialog = null;
$('#submitJob').closest('form').submit(function () {
if (dialog == null) {
dialog = $('#submitDialog').dialog({
width: 400,
height: 160,
resizable: false,
modal: true,
autoOpen: false
});
}
window.setTimeout(function () {
dialog.dialog('open');
}, 100);
});
});
</script>
<div class="actionBar">
<button id="submitJob" type="submit" class="button">Lodge Insurance Claim</button>
</div>
}
@@ -0,0 +1,704 @@
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Disco.Web.Views.Job
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Helpers;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html;
using System.Web.Routing;
using System.Web.Security;
using System.Web.UI;
using System.Web.WebPages;
using Disco;
using Disco.Models.Repository;
using Disco.Services;
using Disco.Services.Authorization;
using Disco.Services.Web;
using Disco.Web;
using Disco.Web.Extensions;
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/Job/LogInsuranceDisclose.cshtml")]
public partial class LogInsuranceDisclose : Disco.Services.Web.WebViewPage<Disco.Web.Models.Job.LogInsuranceModel>
{
public LogInsuranceDisclose()
{
}
public override void Execute()
{
#line 2 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
Authorization.RequireAny(Claims.Job.Properties.NonWarrantyProperties.InsuranceClaimFormSent, Claims.Job.Actions.LogInsurance);
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Lodge Insurance Claim");
#line default
#line hidden
WriteLiteral("\r\n");
#line 7 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
using (Html.BeginForm(MVC.Job.LogInsurance(), FormMethod.Post))
{
#line default
#line hidden
#line 9 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
Write(Html.AntiForgeryToken());
#line default
#line hidden
#line 9 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
#line default
#line hidden
#line 10 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
Write(Html.ValidationSummary(true));
#line default
#line hidden
#line 10 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
#line default
#line hidden
#line 11 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
Write(Html.HiddenFor(m => m.JobId));
#line default
#line hidden
#line 11 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
#line default
#line hidden
#line 12 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
Write(Html.HiddenFor(m => m.OrganisationAddressId));
#line default
#line hidden
#line 12 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
#line default
#line hidden
#line 13 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
Write(Html.HiddenFor(m => m.ProviderId));
#line default
#line hidden
#line 13 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
#line default
#line hidden
#line 14 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
Write(Html.HiddenFor(m => m.ProviderPropertiesJson));
#line default
#line hidden
#line 14 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
#line default
#line hidden
WriteLiteral(" <input");
WriteLiteral(" type=\"hidden\"");
WriteLiteral(" name=\"SubmissionAction\"");
WriteLiteral(" value=\"Submit\"");
WriteLiteral(" />\r\n");
WriteLiteral(" <div");
WriteLiteral(" id=\"insuranceJobForm\"");
WriteLiteral(" class=\"form\"");
WriteLiteral(" style=\"width: 650px\"");
WriteLiteral(">\r\n <table>\r\n <tr>\r\n <th>Internal Job Id:\r\n " +
" </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 22 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
Write(Model.JobId);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th" +
">Device Serial Number:\r\n </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 29 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
Write(Model.Job.Device.SerialNumber);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th" +
">Device Model:\r\n </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 36 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
Write(Model.Job.Device.DeviceModel.Manufacturer);
#line default
#line hidden
WriteLiteral(" ");
#line 36 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
Write(Model.Job.Device.DeviceModel.Model);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th" +
">Technician:\r\n </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 43 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
Write(Model.TechUser.DisplayName);
#line default
#line hidden
WriteLiteral("\r\n <div");
WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">\r\n Email Address: ");
#line 45 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
Write(Model.TechUser.EmailAddress);
#line default
#line hidden
WriteLiteral("<br />\r\n Phone Number: ");
#line 46 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
Write(Model.TechUser.PhoneNumber);
#line default
#line hidden
WriteLiteral("\r\n </div>\r\n </td>\r\n </tr>\r\n " +
" <tr>\r\n <th");
WriteLiteral(" style=\"width: 150px\"");
WriteLiteral(">Address:\r\n </th>\r\n <td>\r\n <div");
WriteLiteral(" id=\"organisationAddressDetails\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 55 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
Write(Model.OrganisationAddress.Name);
#line default
#line hidden
WriteLiteral("\r\n <div");
WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">\r\n <span>");
#line 57 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
Write(Model.OrganisationAddress.Address);
#line default
#line hidden
WriteLiteral("</span><br />\r\n <span>");
#line 58 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
Write(Model.OrganisationAddress.Suburb);
#line default
#line hidden
WriteLiteral(", ");
#line 58 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
Write(Model.OrganisationAddress.Postcode);
#line default
#line hidden
WriteLiteral("</span><br />\r\n <span>");
#line 59 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
Write(Model.OrganisationAddress.State);
#line default
#line hidden
WriteLiteral(", ");
#line 59 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
Write(Model.OrganisationAddress.Country);
#line default
#line hidden
WriteLiteral("</span>\r\n </div>\r\n </div>\r\n " +
" </td>\r\n </tr>\r\n <tr>\r\n <th>Provider:\r\n " +
" </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 68 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
Write(Model.Provider.Name);
#line default
#line hidden
WriteLiteral(" (");
#line 68 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
Write(Model.Provider.Id);
#line default
#line hidden
WriteLiteral(") ");
#line 68 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
Write(Model.Provider.PluginManifest.Version.ToString(3));
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th" +
">Disclosed Information\r\n </th>\r\n <td>\r\n " +
" <div");
WriteLiteral(" id=\"disclosedInformation\"");
WriteLiteral(">\r\n <table>\r\n");
#line 77 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
#line default
#line hidden
#line 77 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
foreach (var dp in Model.DiscloseProperties)
{
#line default
#line hidden
WriteLiteral(" <tr>\r\n <th>");
#line 80 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
Write(dp.Key);
#line default
#line hidden
WriteLiteral(":\r\n </th>\r\n " +
" <td>");
#line 82 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
Write(dp.Value);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr" +
"> \r\n");
#line 85 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
}
#line default
#line hidden
WriteLiteral(" </table>\r\n </div>\r\n </t" +
"d>\r\n </tr>\r\n");
#line 90 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
#line default
#line hidden
#line 90 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
if (Model.Attachments.Count > 0)
{
#line default
#line hidden
WriteLiteral(" <tr>\r\n <th>Sending Attachments</th>\r\n " +
" <td>\r\n <div>\r\n <div" +
"");
WriteLiteral(" id=\"publishJobAttachments\"");
WriteLiteral(">\r\n");
#line 97 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
#line default
#line hidden
#line 97 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
foreach (var ja in Model.Attachments)
{
#line default
#line hidden
WriteLiteral(" <input");
WriteLiteral(" type=\"hidden\"");
WriteLiteral(" name=\"AttachmentIds\"");
WriteAttribute("value", Tuple.Create(" value=\"", 3917), Tuple.Create("\"", 3931)
#line 99 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
, Tuple.Create(Tuple.Create("", 3925), Tuple.Create<System.Object, System.Int32>(ja.Id
#line default
#line hidden
, 3925), false)
);
WriteLiteral(" />\r\n");
WriteLiteral(" <a");
WriteAttribute("href", Tuple.Create(" href=\"", 3975), Tuple.Create("\"", 4032)
#line 100 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
, Tuple.Create(Tuple.Create("", 3982), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentDownload(ja.Id))
#line default
#line hidden
, 3982), false)
);
WriteLiteral(" data-attachmentid=\"");
#line 100 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
Write(ja.Id);
#line default
#line hidden
WriteLiteral("\"");
WriteLiteral(" data-mimetype=\"");
#line 100 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
Write(ja.MimeType);
#line default
#line hidden
WriteLiteral("\"");
WriteLiteral(">\r\n <span");
WriteLiteral(" class=\"icon\"");
WriteAttribute("title", Tuple.Create(" title=\"", 4150), Tuple.Create("\"", 4170)
#line 101 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
, Tuple.Create(Tuple.Create("", 4158), Tuple.Create<System.Object, System.Int32>(ja.Filename
#line default
#line hidden
, 4158), false)
);
WriteLiteral(">\r\n <img");
WriteLiteral(" alt=\"Attachment Thumbnail\"");
WriteAttribute("src", Tuple.Create(" src=\"", 4249), Tuple.Create("\"", 4308)
#line 102 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
, Tuple.Create(Tuple.Create("", 4255), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id))
#line default
#line hidden
, 4255), false)
);
WriteLiteral(" /></span>\r\n <span");
WriteLiteral(" class=\"comments\"");
WriteAttribute("title", Tuple.Create(" title=\"", 4383), Tuple.Create("\"", 4403)
#line 103 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
, Tuple.Create(Tuple.Create("", 4391), Tuple.Create<System.Object, System.Int32>(ja.Comments
#line default
#line hidden
, 4391), false)
);
WriteLiteral(">\r\n");
#line 104 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
#line default
#line hidden
#line 104 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
if (!string.IsNullOrEmpty(ja.DocumentTemplateId))
{
#line default
#line hidden
#line 105 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
Write(ja.DocumentTemplate.Description);
#line default
#line hidden
#line 105 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
}
else
{
#line default
#line hidden
#line 107 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
Write(ja.Comments);
#line default
#line hidden
#line 107 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
}
#line default
#line hidden
WriteLiteral("\r\n </span><span");
WriteLiteral(" class=\"author\"");
WriteLiteral(">");
#line 108 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
Write(ja.TechUser.ToStringFriendly());
#line default
#line hidden
WriteLiteral("</span><span");
WriteLiteral(" class=\"timestamp\"");
WriteLiteral(" data-livestamp=\"");
#line 108 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
Write(ja.Timestamp.ToUnixEpoc());
#line default
#line hidden
WriteLiteral("\"");
WriteAttribute("title", Tuple.Create(" title=\"", 4879), Tuple.Create("\"", 4917)
#line 108 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
, Tuple.Create(Tuple.Create("", 4887), Tuple.Create<System.Object, System.Int32>(ja.Timestamp.ToFullDateTime()
#line default
#line hidden
, 4887), false)
);
WriteLiteral(">");
#line 108 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
Write(ja.Timestamp.ToFullDateTime());
#line default
#line hidden
WriteLiteral("</span>\r\n </a> \r\n");
#line 110 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
}
#line default
#line hidden
WriteLiteral(" </div>\r\n </div>\r\n " +
" </td>\r\n </tr>\r\n");
#line 115 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
}
#line default
#line hidden
WriteLiteral(" </table>\r\n </div>\r\n");
WriteLiteral(" <div");
WriteLiteral(" id=\"submitDialog\"");
WriteLiteral(" class=\"dialog\"");
WriteLiteral(" title=\"Please Wait\"");
WriteLiteral(">\r\n <h4><i");
WriteLiteral(" class=\"fa fa-lg fa-cog fa-spin\"");
WriteLiteral(" title=\"Please Wait\"");
WriteLiteral("></i>Lodging Insurance Claim...</h4>\r\n </div>\r\n");
WriteLiteral(@" <script>
$(function () {
var dialog = null;
$('#submitJob').closest('form').submit(function () {
if (dialog == null) {
dialog = $('#submitDialog').dialog({
width: 400,
height: 160,
resizable: false,
modal: true,
autoOpen: false
});
}
window.setTimeout(function () {
dialog.dialog('open');
}, 100);
});
});
</script>
");
WriteLiteral(" <div");
WriteLiteral(" class=\"actionBar\"");
WriteLiteral(">\r\n <button");
WriteLiteral(" id=\"submitJob\"");
WriteLiteral(" type=\"submit\"");
WriteLiteral(" class=\"button\"");
WriteLiteral(">Lodge Insurance Claim</button>\r\n </div>\r\n");
#line 145 "..\..\Views\Job\LogInsuranceDisclose.cshtml"
}
#line default
#line hidden
}
}
}
#pragma warning restore 1591
@@ -0,0 +1,120 @@
@model Disco.Web.Models.Job.LogInsuranceModel
@{
Authorization.RequireAny(Claims.Job.Properties.NonWarrantyProperties.InsuranceClaimFormSent, Claims.Job.Actions.LogInsurance);
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Lodge Insurance Claim Error");
}
<div class="form" style="width: 650px">
<h2>Submission Error</h2>
<table>
<tr>
<td>
<div>
<strong>@Model.Error.Message</strong>
</div>
<a href="#" id="errorShow" class="smallMessage">(show more)</a>
<div id="errorMore" style="display: none">
<br />
<strong>Error Type: </strong>@Model.Error.GetType().Name
<br />
<strong>Stack Trace:</strong>
<div class="code">
@Model.Error.StackTrace.ToMultilineString()
</div>
@if (Model.Error.InnerException != null)
{
<hr />
<div>
<strong>Inner Exception:</strong> @Model.Error.InnerException.Message<br />
<strong>Error Type:</strong> @Model.Error.GetType().Name<br />
<strong>Stack Trace:</strong>
<div class="code">
@Model.Error.InnerException.StackTrace
</div>
</div>
}
</div>
<script type="text/javascript">
$(function () {
$('#errorShow').click(function () {
$(this).hide();
$('#errorMore').slideDown();
return false;
});
});
</script>
</td>
</tr>
</table>
</div>
<div id="insuranceJobForm" class="form" style="width: 650px; margin-top: 15px;">
<h2>Insurance Submission Details</h2>
<table>
<tr>
<th>Internal Job Id:
</th>
<td>
@Model.JobId
</td>
</tr>
<tr>
<th>Device Serial Number:
</th>
<td>
@Model.Job.Device.SerialNumber
</td>
</tr>
<tr>
<th>Device Model:
</th>
<td>
@Model.Job.Device.DeviceModel.Manufacturer @Model.Job.Device.DeviceModel.Model
</td>
</tr>
<tr>
<th>Technician:
</th>
<td>
@Model.TechUser.DisplayName
<div class="smallMessage">
Email Address: @Model.TechUser.EmailAddress<br />
Phone Number: @Model.TechUser.PhoneNumber
</div>
</td>
</tr>
<tr>
<th style="width: 150px">Address:
</th>
<td>
<div id="organisationAddressDetails">
@Model.OrganisationAddress.Name
<div class="smallMessage">
<span>@Model.OrganisationAddress.Address</span><br />
<span>@Model.OrganisationAddress.Suburb, @Model.OrganisationAddress.Postcode</span><br />
<span>@Model.OrganisationAddress.State, @Model.OrganisationAddress.Country</span>
</div>
</div>
</td>
</tr>
<tr>
<th>Provider:
</th>
<td>
@if (Model.Provider != null)
{
<span>
@Model.Provider.Name (@Model.Provider.Id) @Model.Provider.PluginManifest.Version.ToString(3)
</span>
}
else
{
<span class="smallMessage">None Selected</span>
}
</td>
</tr>
</table>
</div>
<div class="actionBar">
@Html.ActionLinkButton("Try Again", MVC.Job.LogInsurance(Model.JobId, null, null))
@Html.ActionLinkButton("Return to Job", MVC.Job.Show(Model.JobId))
</div>
@@ -0,0 +1,448 @@
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Disco.Web.Views.Job
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Helpers;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html;
using System.Web.Routing;
using System.Web.Security;
using System.Web.UI;
using System.Web.WebPages;
using Disco;
using Disco.Models.Repository;
using Disco.Services;
using Disco.Services.Authorization;
using Disco.Services.Web;
using Disco.Web;
using Disco.Web.Extensions;
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/Job/LogInsuranceError.cshtml")]
public partial class LogInsuranceError : Disco.Services.Web.WebViewPage<Disco.Web.Models.Job.LogInsuranceModel>
{
public LogInsuranceError()
{
}
public override void Execute()
{
#line 2 "..\..\Views\Job\LogInsuranceError.cshtml"
Authorization.RequireAny(Claims.Job.Properties.NonWarrantyProperties.InsuranceClaimFormSent, Claims.Job.Actions.LogInsurance);
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Lodge Insurance Claim Error");
#line default
#line hidden
WriteLiteral("\r\n<div");
WriteLiteral(" class=\"form\"");
WriteLiteral(" style=\"width: 650px\"");
WriteLiteral(">\r\n <h2>Submission Error</h2>\r\n <table>\r\n <tr>\r\n <td>\r\n " +
" <div>\r\n <strong>");
#line 13 "..\..\Views\Job\LogInsuranceError.cshtml"
Write(Model.Error.Message);
#line default
#line hidden
WriteLiteral("</strong>\r\n </div>\r\n <a");
WriteLiteral(" href=\"#\"");
WriteLiteral(" id=\"errorShow\"");
WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">(show more)</a>\r\n <div");
WriteLiteral(" id=\"errorMore\"");
WriteLiteral(" style=\"display: none\"");
WriteLiteral(">\r\n <br />\r\n <strong>Error Type: </strong>");
#line 18 "..\..\Views\Job\LogInsuranceError.cshtml"
Write(Model.Error.GetType().Name);
#line default
#line hidden
WriteLiteral("\r\n <br />\r\n <strong>Stack Trace:</strong>\r\n" +
" <div");
WriteLiteral(" class=\"code\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 22 "..\..\Views\Job\LogInsuranceError.cshtml"
Write(Model.Error.StackTrace.ToMultilineString());
#line default
#line hidden
WriteLiteral("\r\n </div>\r\n");
#line 24 "..\..\Views\Job\LogInsuranceError.cshtml"
#line default
#line hidden
#line 24 "..\..\Views\Job\LogInsuranceError.cshtml"
if (Model.Error.InnerException != null)
{
#line default
#line hidden
WriteLiteral(" <hr />\r\n");
WriteLiteral(" <div>\r\n <strong>Inner Exceptio" +
"n:</strong> ");
#line 28 "..\..\Views\Job\LogInsuranceError.cshtml"
Write(Model.Error.InnerException.Message);
#line default
#line hidden
WriteLiteral("<br />\r\n <strong>Error Type:</strong> ");
#line 29 "..\..\Views\Job\LogInsuranceError.cshtml"
Write(Model.Error.GetType().Name);
#line default
#line hidden
WriteLiteral("<br />\r\n <strong>Stack Trace:</strong>\r\n " +
" <div");
WriteLiteral(" class=\"code\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 32 "..\..\Views\Job\LogInsuranceError.cshtml"
Write(Model.Error.InnerException.StackTrace);
#line default
#line hidden
WriteLiteral("\r\n </div>\r\n </div>\r\n");
#line 35 "..\..\Views\Job\LogInsuranceError.cshtml"
}
#line default
#line hidden
WriteLiteral(" </div>\r\n <script");
WriteLiteral(" type=\"text/javascript\"");
WriteLiteral(@">
$(function () {
$('#errorShow').click(function () {
$(this).hide();
$('#errorMore').slideDown();
return false;
});
});
</script>
</td>
</tr>
</table>
</div>
<div");
WriteLiteral(" id=\"insuranceJobForm\"");
WriteLiteral(" class=\"form\"");
WriteLiteral(" style=\"width: 650px; margin-top: 15px;\"");
WriteLiteral(">\r\n <h2>Insurance Submission Details</h2>\r\n <table>\r\n <tr>\r\n " +
" <th>Internal Job Id:\r\n </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 57 "..\..\Views\Job\LogInsuranceError.cshtml"
Write(Model.JobId);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th>Device Serial N" +
"umber:\r\n </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 64 "..\..\Views\Job\LogInsuranceError.cshtml"
Write(Model.Job.Device.SerialNumber);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th>Device Model:\r\n" +
" </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 71 "..\..\Views\Job\LogInsuranceError.cshtml"
Write(Model.Job.Device.DeviceModel.Manufacturer);
#line default
#line hidden
WriteLiteral(" ");
#line 71 "..\..\Views\Job\LogInsuranceError.cshtml"
Write(Model.Job.Device.DeviceModel.Model);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th>Technician:\r\n " +
" </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 78 "..\..\Views\Job\LogInsuranceError.cshtml"
Write(Model.TechUser.DisplayName);
#line default
#line hidden
WriteLiteral("\r\n <div");
WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">\r\n Email Address: ");
#line 80 "..\..\Views\Job\LogInsuranceError.cshtml"
Write(Model.TechUser.EmailAddress);
#line default
#line hidden
WriteLiteral("<br />\r\n Phone Number: ");
#line 81 "..\..\Views\Job\LogInsuranceError.cshtml"
Write(Model.TechUser.PhoneNumber);
#line default
#line hidden
WriteLiteral("\r\n </div>\r\n </td>\r\n </tr>\r\n <tr>\r\n " +
" <th");
WriteLiteral(" style=\"width: 150px\"");
WriteLiteral(">Address:\r\n </th>\r\n <td>\r\n <div");
WriteLiteral(" id=\"organisationAddressDetails\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 90 "..\..\Views\Job\LogInsuranceError.cshtml"
Write(Model.OrganisationAddress.Name);
#line default
#line hidden
WriteLiteral("\r\n <div");
WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">\r\n <span>");
#line 92 "..\..\Views\Job\LogInsuranceError.cshtml"
Write(Model.OrganisationAddress.Address);
#line default
#line hidden
WriteLiteral("</span><br />\r\n <span>");
#line 93 "..\..\Views\Job\LogInsuranceError.cshtml"
Write(Model.OrganisationAddress.Suburb);
#line default
#line hidden
WriteLiteral(", ");
#line 93 "..\..\Views\Job\LogInsuranceError.cshtml"
Write(Model.OrganisationAddress.Postcode);
#line default
#line hidden
WriteLiteral("</span><br />\r\n <span>");
#line 94 "..\..\Views\Job\LogInsuranceError.cshtml"
Write(Model.OrganisationAddress.State);
#line default
#line hidden
WriteLiteral(", ");
#line 94 "..\..\Views\Job\LogInsuranceError.cshtml"
Write(Model.OrganisationAddress.Country);
#line default
#line hidden
WriteLiteral("</span>\r\n </div>\r\n </div>\r\n </td>\r\n " +
" </tr>\r\n <tr>\r\n <th>Provider:\r\n </th>\r\n " +
" <td>\r\n");
#line 103 "..\..\Views\Job\LogInsuranceError.cshtml"
#line default
#line hidden
#line 103 "..\..\Views\Job\LogInsuranceError.cshtml"
if (Model.Provider != null)
{
#line default
#line hidden
WriteLiteral(" <span>\r\n");
WriteLiteral(" ");
#line 106 "..\..\Views\Job\LogInsuranceError.cshtml"
Write(Model.Provider.Name);
#line default
#line hidden
WriteLiteral(" (");
#line 106 "..\..\Views\Job\LogInsuranceError.cshtml"
Write(Model.Provider.Id);
#line default
#line hidden
WriteLiteral(") ");
#line 106 "..\..\Views\Job\LogInsuranceError.cshtml"
Write(Model.Provider.PluginManifest.Version.ToString(3));
#line default
#line hidden
WriteLiteral("\r\n </span>\r\n");
#line 108 "..\..\Views\Job\LogInsuranceError.cshtml"
}
else
{
#line default
#line hidden
WriteLiteral(" <span");
WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">None Selected</span>\r\n");
#line 112 "..\..\Views\Job\LogInsuranceError.cshtml"
}
#line default
#line hidden
WriteLiteral(" </td>\r\n </tr>\r\n </table>\r\n</div>\r\n<div");
WriteLiteral(" class=\"actionBar\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 118 "..\..\Views\Job\LogInsuranceError.cshtml"
Write(Html.ActionLinkButton("Try Again", MVC.Job.LogInsurance(Model.JobId, null, null)));
#line default
#line hidden
WriteLiteral("\r\n");
WriteLiteral(" ");
#line 119 "..\..\Views\Job\LogInsuranceError.cshtml"
Write(Html.ActionLinkButton("Return to Job", MVC.Job.Show(Model.JobId)));
#line default
#line hidden
WriteLiteral("\r\n</div>\r\n");
}
}
}
#pragma warning restore 1591
+25 -16
View File
@@ -2,10 +2,11 @@
@{
Authorization.Require(Claims.Job.Actions.LogRepair);
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Log Repair");
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Lodge Repair");
}
@using (Html.BeginForm(MVC.Job.LogRepair(), FormMethod.Post))
{
@Html.AntiForgeryToken()
@Html.ValidationSummary(true)
@Html.HiddenFor(m => m.JobId)
@Html.ValidationMessageFor(m => m.JobId)
@@ -13,28 +14,32 @@
<div id="repairJobForm" class="form" style="width: 650px">
<table>
<tr>
<th>Internal Job Id:
<th>
Internal Job Id:
</th>
<td>
@Model.JobId
</td>
</tr>
<tr>
<th>Device Serial Number:
<th>
Device Serial Number:
</th>
<td>
@Model.Job.Device.SerialNumber
</td>
</tr>
<tr>
<th>Device Model:
<th>
Device Model:
</th>
<td>
@Model.Job.Device.DeviceModel.Manufacturer @Model.Job.Device.DeviceModel.Model
</td>
</tr>
<tr>
<th>Technician:
<th>
Technician:
</th>
<td>
@Model.TechUser.DisplayName
@@ -45,28 +50,30 @@
</td>
</tr>
<tr>
<th style="width: 150px">Repair Address:
<th style="width: 150px">
Repair Address:
</th>
<td>
@Html.DropDownListFor(model => model.OrganisationAddressId, Model.OrganisationAddresses.ToSelectListItems(Model.OrganisationAddressId, (Model.OrganisationAddress == null)))<br />
@Html.ValidationMessageFor(m => m.OrganisationAddressId)
<div id="organisationAddressDetails">
@{
var oa = Model.OrganisationAddress;
if (oa != null)
{
<span>@oa.Address</span>
<br />
<span>@oa.Suburb, @oa.Postcode</span>
<br />
<span>@oa.State, @oa.Country</span>
}
var oa = Model.OrganisationAddress;
if (oa != null)
{
<span>@oa.Address</span>
<br />
<span>@oa.Suburb, @oa.Postcode</span>
<br />
<span>@oa.State, @oa.Country</span>
}
}
</div>
</td>
</tr>
<tr>
<th>Repair Provider:
<th>
Repair Provider:
</th>
<td>
@Html.DropDownListFor(model => model.RepairProviderId, Model.RepairProviders.ToSelectListItems(Model.RepairProviderId, AdditionalItems: new Dictionary<string, string>() { { "MANUAL", "<Manually Submitted Request>" } }))<br />
@@ -179,6 +186,8 @@
$('<input>').attr({ type: 'hidden', name: 'ManualProviderName', value: $('#ManualProviderName').val() })
).append(
$('<input>').attr({ type: 'hidden', name: 'ManualProviderReference', value: $('#ManualProviderReference').val() })
).append(
$('<input>').attr({ type: 'hidden', name: '__RequestVerificationToken', value: $providerId.closest('form').find('input[name="__RequestVerificationToken"]').val() })
).appendTo('body').submit();
}
+142 -121
View File
@@ -48,7 +48,7 @@ namespace Disco.Web.Views.Job
Authorization.Require(Claims.Job.Actions.LogRepair);
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Log Repair");
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Lodge Repair");
#line default
@@ -65,41 +65,55 @@ WriteLiteral("\r\n");
#line hidden
#line 9 "..\..\Views\Job\LogRepair.cshtml"
Write(Html.ValidationSummary(true));
Write(Html.AntiForgeryToken());
#line default
#line hidden
#line 9 "..\..\Views\Job\LogRepair.cshtml"
#line default
#line hidden
#line 10 "..\..\Views\Job\LogRepair.cshtml"
Write(Html.ValidationSummary(true));
#line default
#line hidden
#line 10 "..\..\Views\Job\LogRepair.cshtml"
#line default
#line hidden
#line 11 "..\..\Views\Job\LogRepair.cshtml"
Write(Html.HiddenFor(m => m.JobId));
#line default
#line hidden
#line 10 "..\..\Views\Job\LogRepair.cshtml"
#line 11 "..\..\Views\Job\LogRepair.cshtml"
#line default
#line hidden
#line 11 "..\..\Views\Job\LogRepair.cshtml"
#line 12 "..\..\Views\Job\LogRepair.cshtml"
Write(Html.ValidationMessageFor(m => m.JobId));
#line default
#line hidden
#line 11 "..\..\Views\Job\LogRepair.cshtml"
#line 12 "..\..\Views\Job\LogRepair.cshtml"
@@ -111,14 +125,14 @@ WriteLiteral(" type=\"hidden\"");
WriteLiteral(" name=\"SubmissionAction\"");
WriteAttribute("value", Tuple.Create(" value=\"", 489), Tuple.Create("\"", 546)
WriteAttribute("value", Tuple.Create(" value=\"", 521), Tuple.Create("\"", 578)
#line 12 "..\..\Views\Job\LogRepair.cshtml"
, Tuple.Create(Tuple.Create("", 497), Tuple.Create<System.Object, System.Int32>(Model.IsManualProvider ? "Manual" : "Disclose"
#line 13 "..\..\Views\Job\LogRepair.cshtml"
, Tuple.Create(Tuple.Create("", 529), Tuple.Create<System.Object, System.Int32>(Model.IsManualProvider ? "Manual" : "Disclose"
#line default
#line hidden
, 497), false)
, 529), false)
);
WriteLiteral(" />\r\n");
@@ -131,37 +145,39 @@ WriteLiteral(" class=\"form\"");
WriteLiteral(" style=\"width: 650px\"");
WriteLiteral(">\r\n <table>\r\n <tr>\r\n <th>Internal Job Id:\r\n " +
" </th>\r\n <td>\r\n");
WriteLiteral(">\r\n <table>\r\n <tr>\r\n <th>\r\n I" +
"nternal Job Id:\r\n </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 19 "..\..\Views\Job\LogRepair.cshtml"
#line 21 "..\..\Views\Job\LogRepair.cshtml"
Write(Model.JobId);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th" +
">Device Serial Number:\r\n </th>\r\n <td>\r\n");
">\r\n Device Serial Number:\r\n </th>\r\n " +
" <td>\r\n");
WriteLiteral(" ");
#line 26 "..\..\Views\Job\LogRepair.cshtml"
#line 29 "..\..\Views\Job\LogRepair.cshtml"
Write(Model.Job.Device.SerialNumber);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th" +
">Device Model:\r\n </th>\r\n <td>\r\n");
">\r\n Device Model:\r\n </th>\r\n <td" +
">\r\n");
WriteLiteral(" ");
#line 33 "..\..\Views\Job\LogRepair.cshtml"
#line 37 "..\..\Views\Job\LogRepair.cshtml"
Write(Model.Job.Device.DeviceModel.Manufacturer);
@@ -170,19 +186,20 @@ WriteLiteral(" ");
WriteLiteral(" ");
#line 33 "..\..\Views\Job\LogRepair.cshtml"
#line 37 "..\..\Views\Job\LogRepair.cshtml"
Write(Model.Job.Device.DeviceModel.Model);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th" +
">Technician:\r\n </th>\r\n <td>\r\n");
">\r\n Technician:\r\n </th>\r\n <td>\r" +
"\n");
WriteLiteral(" ");
#line 40 "..\..\Views\Job\LogRepair.cshtml"
#line 45 "..\..\Views\Job\LogRepair.cshtml"
Write(Model.TechUser.DisplayName);
@@ -195,7 +212,7 @@ WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">\r\n Email Address: ");
#line 42 "..\..\Views\Job\LogRepair.cshtml"
#line 47 "..\..\Views\Job\LogRepair.cshtml"
Write(Model.TechUser.EmailAddress);
@@ -204,7 +221,7 @@ WriteLiteral(">\r\n Email Address: ");
WriteLiteral("<br />\r\n Phone Number: ");
#line 43 "..\..\Views\Job\LogRepair.cshtml"
#line 48 "..\..\Views\Job\LogRepair.cshtml"
Write(Model.TechUser.PhoneNumber);
@@ -215,12 +232,13 @@ WriteLiteral("\r\n </div>\r\n </td>\r\n
WriteLiteral(" style=\"width: 150px\"");
WriteLiteral(">Repair Address:\r\n </th>\r\n <td>\r\n");
WriteLiteral(">\r\n Repair Address:\r\n </th>\r\n <t" +
"d>\r\n");
WriteLiteral(" ");
#line 51 "..\..\Views\Job\LogRepair.cshtml"
#line 57 "..\..\Views\Job\LogRepair.cshtml"
Write(Html.DropDownListFor(model => model.OrganisationAddressId, Model.OrganisationAddresses.ToSelectListItems(Model.OrganisationAddressId, (Model.OrganisationAddress == null))));
@@ -231,7 +249,7 @@ WriteLiteral("<br />\r\n");
WriteLiteral(" ");
#line 52 "..\..\Views\Job\LogRepair.cshtml"
#line 58 "..\..\Views\Job\LogRepair.cshtml"
Write(Html.ValidationMessageFor(m => m.OrganisationAddressId));
@@ -244,39 +262,39 @@ WriteLiteral(" id=\"organisationAddressDetails\"");
WriteLiteral(">\r\n");
#line 54 "..\..\Views\Job\LogRepair.cshtml"
#line 60 "..\..\Views\Job\LogRepair.cshtml"
#line default
#line hidden
#line 54 "..\..\Views\Job\LogRepair.cshtml"
#line 60 "..\..\Views\Job\LogRepair.cshtml"
var oa = Model.OrganisationAddress;
if (oa != null)
{
var oa = Model.OrganisationAddress;
if (oa != null)
{
#line default
#line hidden
WriteLiteral(" <span>");
WriteLiteral(" <span>");
#line 58 "..\..\Views\Job\LogRepair.cshtml"
Write(oa.Address);
#line 64 "..\..\Views\Job\LogRepair.cshtml"
Write(oa.Address);
#line default
#line hidden
WriteLiteral("</span>\r\n");
WriteLiteral(" <br />\r\n");
WriteLiteral(" <br />\r\n");
WriteLiteral(" <span>");
WriteLiteral(" <span>");
#line 60 "..\..\Views\Job\LogRepair.cshtml"
Write(oa.Suburb);
#line 66 "..\..\Views\Job\LogRepair.cshtml"
Write(oa.Suburb);
#line default
@@ -284,21 +302,21 @@ WriteLiteral(" <span>");
WriteLiteral(", ");
#line 60 "..\..\Views\Job\LogRepair.cshtml"
Write(oa.Postcode);
#line 66 "..\..\Views\Job\LogRepair.cshtml"
Write(oa.Postcode);
#line default
#line hidden
WriteLiteral("</span>\r\n");
WriteLiteral(" <br />\r\n");
WriteLiteral(" <br />\r\n");
WriteLiteral(" <span>");
WriteLiteral(" <span>");
#line 62 "..\..\Views\Job\LogRepair.cshtml"
Write(oa.State);
#line 68 "..\..\Views\Job\LogRepair.cshtml"
Write(oa.State);
#line default
@@ -306,8 +324,8 @@ WriteLiteral(" <span>");
WriteLiteral(", ");
#line 62 "..\..\Views\Job\LogRepair.cshtml"
Write(oa.Country);
#line 68 "..\..\Views\Job\LogRepair.cshtml"
Write(oa.Country);
#line default
@@ -315,20 +333,20 @@ WriteLiteral(", ");
WriteLiteral("</span>\r\n");
#line 63 "..\..\Views\Job\LogRepair.cshtml"
}
#line 69 "..\..\Views\Job\LogRepair.cshtml"
}
#line default
#line hidden
WriteLiteral("\r\n </div>\r\n </td>\r\n </tr>\r\n " +
" <tr>\r\n <th>Repair Provider:\r\n </th>\r\n " +
" <td>\r\n");
" <tr>\r\n <th>\r\n Repair Provider:\r\n " +
" </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 72 "..\..\Views\Job\LogRepair.cshtml"
#line 79 "..\..\Views\Job\LogRepair.cshtml"
Write(Html.DropDownListFor(model => model.RepairProviderId, Model.RepairProviders.ToSelectListItems(Model.RepairProviderId, AdditionalItems: new Dictionary<string, string>() { { "MANUAL", "<Manually Submitted Request>" } })));
@@ -339,7 +357,7 @@ WriteLiteral("<br />\r\n");
WriteLiteral(" ");
#line 73 "..\..\Views\Job\LogRepair.cshtml"
#line 80 "..\..\Views\Job\LogRepair.cshtml"
Write(Html.ValidationMessageFor(m => m.RepairProviderId));
@@ -348,13 +366,13 @@ WriteLiteral(" ");
WriteLiteral("\r\n");
#line 74 "..\..\Views\Job\LogRepair.cshtml"
#line 81 "..\..\Views\Job\LogRepair.cshtml"
#line default
#line hidden
#line 74 "..\..\Views\Job\LogRepair.cshtml"
#line 81 "..\..\Views\Job\LogRepair.cshtml"
if (Model.RepairProviders.Count == 0 && Authorization.Has(Claims.Config.Plugin.Install))
{
@@ -375,21 +393,21 @@ WriteLiteral(" class=\"fa fa-info-circle\"");
WriteLiteral("></i>View the <a");
WriteAttribute("href", Tuple.Create(" href=\"", 3297), Tuple.Create("\"", 3347)
WriteAttribute("href", Tuple.Create(" href=\"", 3577), Tuple.Create("\"", 3627)
#line 78 "..\..\Views\Job\LogRepair.cshtml"
, Tuple.Create(Tuple.Create("", 3304), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.Config.Plugins.Install())
#line 85 "..\..\Views\Job\LogRepair.cshtml"
, Tuple.Create(Tuple.Create("", 3584), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.Config.Plugins.Install())
#line default
#line hidden
, 3304), false)
, 3584), false)
);
WriteLiteral(">Plugin Catalogue</a> to discover and install repair provider plugins.\r\n " +
" </p>\r\n </div>\r\n");
#line 81 "..\..\Views\Job\LogRepair.cshtml"
#line 88 "..\..\Views\Job\LogRepair.cshtml"
}
@@ -398,13 +416,13 @@ WriteLiteral(">Plugin Catalogue</a> to discover and install repair provider plug
WriteLiteral(" </td>\r\n </tr>\r\n");
#line 84 "..\..\Views\Job\LogRepair.cshtml"
#line 91 "..\..\Views\Job\LogRepair.cshtml"
#line default
#line hidden
#line 84 "..\..\Views\Job\LogRepair.cshtml"
#line 91 "..\..\Views\Job\LogRepair.cshtml"
if (Model.IsManualProvider)
{
@@ -417,7 +435,7 @@ WriteLiteral(" <tr>\r\n <th>Provider Name:</th
WriteLiteral(" ");
#line 89 "..\..\Views\Job\LogRepair.cshtml"
#line 96 "..\..\Views\Job\LogRepair.cshtml"
Write(Html.EditorFor(model => model.ManualProviderName));
@@ -428,7 +446,7 @@ WriteLiteral("<br />\r\n");
WriteLiteral(" ");
#line 90 "..\..\Views\Job\LogRepair.cshtml"
#line 97 "..\..\Views\Job\LogRepair.cshtml"
Write(Html.ValidationMessageFor(m => m.ManualProviderName));
@@ -442,7 +460,7 @@ WriteLiteral(" <tr>\r\n <th>Provider Job Refer
WriteLiteral(" ");
#line 96 "..\..\Views\Job\LogRepair.cshtml"
#line 103 "..\..\Views\Job\LogRepair.cshtml"
Write(Html.EditorFor(model => model.ManualProviderReference));
@@ -453,7 +471,7 @@ WriteLiteral("<br />\r\n");
WriteLiteral(" ");
#line 97 "..\..\Views\Job\LogRepair.cshtml"
#line 104 "..\..\Views\Job\LogRepair.cshtml"
Write(Html.ValidationMessageFor(m => m.ManualProviderReference));
@@ -462,7 +480,7 @@ WriteLiteral(" ");
WriteLiteral("\r\n </td>\r\n </tr>\r\n");
#line 100 "..\..\Views\Job\LogRepair.cshtml"
#line 107 "..\..\Views\Job\LogRepair.cshtml"
}
@@ -484,7 +502,7 @@ WriteLiteral(">\r\n <h2>Repair Description</h2>\r\n <table>\r\n
WriteLiteral(" ");
#line 108 "..\..\Views\Job\LogRepair.cshtml"
#line 115 "..\..\Views\Job\LogRepair.cshtml"
Write(Html.EditorFor(model => model.RepairDescription));
@@ -495,7 +513,7 @@ WriteLiteral("<br />\r\n");
WriteLiteral(" ");
#line 109 "..\..\Views\Job\LogRepair.cshtml"
#line 116 "..\..\Views\Job\LogRepair.cshtml"
Write(Html.ValidationMessageFor(m => m.RepairDescription));
@@ -504,7 +522,7 @@ WriteLiteral(" ");
WriteLiteral("\r\n </td>\r\n </tr>\r\n </table>\r\n </div>\r\n");
#line 114 "..\..\Views\Job\LogRepair.cshtml"
#line 121 "..\..\Views\Job\LogRepair.cshtml"
if (!Model.IsManualProvider && Authorization.Has(Claims.Job.ShowAttachments) && Model.Job.JobAttachments.Count > 0)
{
@@ -525,13 +543,13 @@ WriteLiteral(" id=\"publishJobAttachments\"");
WriteLiteral(">\r\n");
#line 122 "..\..\Views\Job\LogRepair.cshtml"
#line 129 "..\..\Views\Job\LogRepair.cshtml"
#line default
#line hidden
#line 122 "..\..\Views\Job\LogRepair.cshtml"
#line 129 "..\..\Views\Job\LogRepair.cshtml"
foreach (var ja in Model.Job.JobAttachments)
{
@@ -540,20 +558,20 @@ WriteLiteral(">\r\n");
#line hidden
WriteLiteral(" <a");
WriteAttribute("href", Tuple.Create(" href=\"", 5175), Tuple.Create("\"", 5232)
WriteAttribute("href", Tuple.Create(" href=\"", 5455), Tuple.Create("\"", 5512)
#line 124 "..\..\Views\Job\LogRepair.cshtml"
, Tuple.Create(Tuple.Create("", 5182), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentDownload(ja.Id))
#line 131 "..\..\Views\Job\LogRepair.cshtml"
, Tuple.Create(Tuple.Create("", 5462), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentDownload(ja.Id))
#line default
#line hidden
, 5182), false)
, 5462), false)
);
WriteLiteral(" data-attachmentid=\"");
#line 124 "..\..\Views\Job\LogRepair.cshtml"
#line 131 "..\..\Views\Job\LogRepair.cshtml"
Write(ja.Id);
@@ -564,7 +582,7 @@ WriteLiteral("\"");
WriteLiteral(" data-mimetype=\"");
#line 124 "..\..\Views\Job\LogRepair.cshtml"
#line 131 "..\..\Views\Job\LogRepair.cshtml"
Write(ja.MimeType);
@@ -580,20 +598,20 @@ WriteLiteral(" class=\"select\"");
WriteLiteral(" name=\"PublishAttachmentIds\"");
WriteAttribute("value", Tuple.Create(" value=\"", 5389), Tuple.Create("\"", 5403)
WriteAttribute("value", Tuple.Create(" value=\"", 5669), Tuple.Create("\"", 5683)
#line 125 "..\..\Views\Job\LogRepair.cshtml"
, Tuple.Create(Tuple.Create("", 5397), Tuple.Create<System.Object, System.Int32>(ja.Id
#line 132 "..\..\Views\Job\LogRepair.cshtml"
, Tuple.Create(Tuple.Create("", 5677), Tuple.Create<System.Object, System.Int32>(ja.Id
#line default
#line hidden
, 5397), false)
, 5677), false)
);
WriteLiteral(" ");
#line 125 "..\..\Views\Job\LogRepair.cshtml"
#line 132 "..\..\Views\Job\LogRepair.cshtml"
Write(Model.PublishAttachmentIds.Contains(ja.Id) ? "checked" : null);
@@ -603,68 +621,68 @@ WriteLiteral(" />\r\n <span");
WriteLiteral(" class=\"icon\"");
WriteAttribute("title", Tuple.Create(" title=\"", 5524), Tuple.Create("\"", 5544)
WriteAttribute("title", Tuple.Create(" title=\"", 5804), Tuple.Create("\"", 5824)
#line 126 "..\..\Views\Job\LogRepair.cshtml"
, Tuple.Create(Tuple.Create("", 5532), Tuple.Create<System.Object, System.Int32>(ja.Filename
#line 133 "..\..\Views\Job\LogRepair.cshtml"
, Tuple.Create(Tuple.Create("", 5812), Tuple.Create<System.Object, System.Int32>(ja.Filename
#line default
#line hidden
, 5532), false)
, 5812), false)
);
WriteLiteral(">\r\n <img");
WriteLiteral(" alt=\"Attachment Thumbnail\"");
WriteAttribute("src", Tuple.Create(" src=\"", 5615), Tuple.Create("\"", 5674)
WriteAttribute("src", Tuple.Create(" src=\"", 5895), Tuple.Create("\"", 5954)
#line 127 "..\..\Views\Job\LogRepair.cshtml"
, Tuple.Create(Tuple.Create("", 5621), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id))
#line 134 "..\..\Views\Job\LogRepair.cshtml"
, Tuple.Create(Tuple.Create("", 5901), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id))
#line default
#line hidden
, 5621), false)
, 5901), false)
);
WriteLiteral(" /></span>\r\n <span");
WriteLiteral(" class=\"comments\"");
WriteAttribute("title", Tuple.Create(" title=\"", 5741), Tuple.Create("\"", 5761)
WriteAttribute("title", Tuple.Create(" title=\"", 6021), Tuple.Create("\"", 6041)
#line 128 "..\..\Views\Job\LogRepair.cshtml"
, Tuple.Create(Tuple.Create("", 5749), Tuple.Create<System.Object, System.Int32>(ja.Comments
#line 135 "..\..\Views\Job\LogRepair.cshtml"
, Tuple.Create(Tuple.Create("", 6029), Tuple.Create<System.Object, System.Int32>(ja.Comments
#line default
#line hidden
, 5749), false)
, 6029), false)
);
WriteLiteral(">\r\n");
#line 129 "..\..\Views\Job\LogRepair.cshtml"
#line 136 "..\..\Views\Job\LogRepair.cshtml"
#line default
#line hidden
#line 129 "..\..\Views\Job\LogRepair.cshtml"
#line 136 "..\..\Views\Job\LogRepair.cshtml"
if (!string.IsNullOrEmpty(ja.DocumentTemplateId))
{
#line default
#line hidden
#line 130 "..\..\Views\Job\LogRepair.cshtml"
#line 137 "..\..\Views\Job\LogRepair.cshtml"
Write(ja.DocumentTemplate.Description);
#line default
#line hidden
#line 130 "..\..\Views\Job\LogRepair.cshtml"
#line 137 "..\..\Views\Job\LogRepair.cshtml"
}
else
{
@@ -672,14 +690,14 @@ WriteLiteral(">\r\n");
#line default
#line hidden
#line 132 "..\..\Views\Job\LogRepair.cshtml"
#line 139 "..\..\Views\Job\LogRepair.cshtml"
Write(ja.Comments);
#line default
#line hidden
#line 132 "..\..\Views\Job\LogRepair.cshtml"
#line 139 "..\..\Views\Job\LogRepair.cshtml"
}
#line default
@@ -691,7 +709,7 @@ WriteLiteral(" class=\"author\"");
WriteLiteral(">");
#line 133 "..\..\Views\Job\LogRepair.cshtml"
#line 140 "..\..\Views\Job\LogRepair.cshtml"
Write(ja.TechUser.ToStringFriendly());
@@ -704,7 +722,7 @@ WriteLiteral(" class=\"timestamp\"");
WriteLiteral(" data-livestamp=\"");
#line 133 "..\..\Views\Job\LogRepair.cshtml"
#line 140 "..\..\Views\Job\LogRepair.cshtml"
Write(ja.Timestamp.ToUnixEpoc());
@@ -712,20 +730,20 @@ WriteLiteral(" data-livestamp=\"");
#line hidden
WriteLiteral("\"");
WriteAttribute("title", Tuple.Create(" title=\"", 6197), Tuple.Create("\"", 6235)
WriteAttribute("title", Tuple.Create(" title=\"", 6477), Tuple.Create("\"", 6515)
#line 133 "..\..\Views\Job\LogRepair.cshtml"
, Tuple.Create(Tuple.Create("", 6205), Tuple.Create<System.Object, System.Int32>(ja.Timestamp.ToFullDateTime()
#line 140 "..\..\Views\Job\LogRepair.cshtml"
, Tuple.Create(Tuple.Create("", 6485), Tuple.Create<System.Object, System.Int32>(ja.Timestamp.ToFullDateTime()
#line default
#line hidden
, 6205), false)
, 6485), false)
);
WriteLiteral(">");
#line 133 "..\..\Views\Job\LogRepair.cshtml"
#line 140 "..\..\Views\Job\LogRepair.cshtml"
Write(ja.Timestamp.ToFullDateTime());
@@ -734,7 +752,7 @@ WriteLiteral(">");
WriteLiteral("</span>\r\n </a> \r\n");
#line 135 "..\..\Views\Job\LogRepair.cshtml"
#line 142 "..\..\Views\Job\LogRepair.cshtml"
}
@@ -744,7 +762,7 @@ WriteLiteral(" </div>\r\n </td>\r\n
"able>\r\n </div>\r\n");
#line 141 "..\..\Views\Job\LogRepair.cshtml"
#line 148 "..\..\Views\Job\LogRepair.cshtml"
}
if (Model.RepairProvider != null && Model.RepairProviderSubmitJobBeginResult != null)
{
@@ -761,7 +779,7 @@ WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 145 "..\..\Views\Job\LogRepair.cshtml"
#line 152 "..\..\Views\Job\LogRepair.cshtml"
Write(Html.PartialCompiled(Model.RepairProviderSubmitJobBeginResult.Item1, Model.RepairProviderSubmitJobBeginResult.Item2));
@@ -770,7 +788,7 @@ WriteLiteral(" ");
WriteLiteral("\r\n </div>\r\n");
#line 147 "..\..\Views\Job\LogRepair.cshtml"
#line 154 "..\..\Views\Job\LogRepair.cshtml"
}
@@ -783,13 +801,13 @@ WriteLiteral(" class=\"actionBar\"");
WriteLiteral(">\r\n");
#line 149 "..\..\Views\Job\LogRepair.cshtml"
#line 156 "..\..\Views\Job\LogRepair.cshtml"
#line default
#line hidden
#line 149 "..\..\Views\Job\LogRepair.cshtml"
#line 156 "..\..\Views\Job\LogRepair.cshtml"
if (Model.IsManualProvider)
{
@@ -807,7 +825,7 @@ WriteLiteral(" value=\"Save Repair Request\"");
WriteLiteral(" />\r\n");
#line 152 "..\..\Views\Job\LogRepair.cshtml"
#line 159 "..\..\Views\Job\LogRepair.cshtml"
}
else
{
@@ -826,7 +844,7 @@ WriteLiteral(" value=\"Preview Repair Request\"");
WriteLiteral(" />\r\n");
#line 156 "..\..\Views\Job\LogRepair.cshtml"
#line 163 "..\..\Views\Job\LogRepair.cshtml"
}
@@ -835,7 +853,7 @@ WriteLiteral(" />\r\n");
WriteLiteral(" </div>\r\n");
#line 158 "..\..\Views\Job\LogRepair.cshtml"
#line 165 "..\..\Views\Job\LogRepair.cshtml"
}
@@ -860,12 +878,15 @@ WriteLiteral(">\r\n $(function () {\r\n var $providerId = $(\'#RepairP
").append(\r\n $(\'<input>\').attr({ type: \'hidden\', name: \'ManualProv" +
"iderName\', value: $(\'#ManualProviderName\').val() })\r\n ).append(\r\n " +
" $(\'<input>\').attr({ type: \'hidden\', name: \'ManualProviderReference\'," +
" value: $(\'#ManualProviderReference\').val() })\r\n ).appendTo(\'body\').s" +
"ubmit();\r\n }\r\n\r\n $providerId.change(updateDetails);\r\n $addr" +
"essId.change(updateDetails);\r\n\r\n var manualProvider = $(\'#ManualProviderN" +
"ame\');\r\n if (manualProvider.length > 0 && !manualProvider.val()) {\r\n " +
" manualProvider.focus();\r\n } else {\r\n $(\'#RepairDescript" +
"ion\').focus();\r\n }\r\n });\r\n</script>\r\n");
" value: $(\'#ManualProviderReference\').val() })\r\n ).append(\r\n " +
" $(\'<input>\').attr({ type: \'hidden\', name: \'__RequestVerificationToken\', v" +
"alue: $providerId.closest(\'form\').find(\'input[name=\"__RequestVerificationToken\"]" +
"\').val() })\r\n ).appendTo(\'body\').submit();\r\n }\r\n\r\n $pro" +
"viderId.change(updateDetails);\r\n $addressId.change(updateDetails);\r\n\r\n " +
" var manualProvider = $(\'#ManualProviderName\');\r\n if (manualProvider." +
"length > 0 && !manualProvider.val()) {\r\n manualProvider.focus();\r\n " +
" } else {\r\n $(\'#RepairDescription\').focus();\r\n }\r\n });\r" +
"\n</script>\r\n");
}
}
+5 -4
View File
@@ -2,10 +2,11 @@
@{
Authorization.Require(Claims.Job.Actions.LogRepair);
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Log Repair");
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Lodge Repair");
}
@using (Html.BeginForm(MVC.Job.LogRepair(), FormMethod.Post))
{
@Html.AntiForgeryToken()
@Html.ValidationSummary(true)
@Html.HiddenFor(m => m.JobId)
@Html.HiddenFor(m => m.OrganisationAddressId)
@@ -79,7 +80,7 @@
<th>Disclosed Information
</th>
<td>
<div id="repairDisclosedInformation">
<div id="disclosedInformation">
<table>
@foreach (var dp in Model.DiscloseProperties)
{
@@ -123,7 +124,7 @@
</table>
</div>
<div id="submitDialog" class="dialog" title="Please Wait">
<h4><i class="fa fa-lg fa-cog fa-spin" title="Please Wait"></i>Submitting Repair Request...</h4>
<h4><i class="fa fa-lg fa-cog fa-spin" title="Please Wait"></i>Lodging Repair Request...</h4>
</div>
<script>
$(function () {
@@ -147,6 +148,6 @@
});
</script>
<div class="actionBar">
<input id="submitJob" type="submit" class="button" value="Submit Repair Request" />
<input id="submitJob" type="submit" class="button" value="Lodge Repair Request" />
</div>
}
@@ -48,7 +48,7 @@ namespace Disco.Web.Views.Job
Authorization.Require(Claims.Job.Actions.LogRepair);
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Log Repair");
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Lodge Repair");
#line default
@@ -65,83 +65,97 @@ WriteLiteral("\r\n");
#line hidden
#line 9 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(Html.ValidationSummary(true));
Write(Html.AntiForgeryToken());
#line default
#line hidden
#line 9 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line default
#line hidden
#line 10 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(Html.ValidationSummary(true));
#line default
#line hidden
#line 10 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line default
#line hidden
#line 11 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(Html.HiddenFor(m => m.JobId));
#line default
#line hidden
#line 10 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 11 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line default
#line hidden
#line 11 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 12 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(Html.HiddenFor(m => m.OrganisationAddressId));
#line default
#line hidden
#line 11 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 12 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line default
#line hidden
#line 12 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 13 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(Html.HiddenFor(m => m.RepairProviderId));
#line default
#line hidden
#line 12 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 13 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line default
#line hidden
#line 13 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 14 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(Html.HiddenFor(m => m.RepairDescription));
#line default
#line hidden
#line 13 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 14 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line default
#line hidden
#line 14 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 15 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(Html.HiddenFor(m => m.ProviderPropertiesJson));
#line default
#line hidden
#line 14 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 15 "..\..\Views\Job\LogRepairDisclose.cshtml"
@@ -171,7 +185,7 @@ WriteLiteral(">\r\n <table>\r\n <tr>\r\n <th>In
WriteLiteral(" ");
#line 22 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 23 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(Model.JobId);
@@ -183,7 +197,7 @@ WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>
WriteLiteral(" ");
#line 29 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 30 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(Model.Job.Device.SerialNumber);
@@ -195,7 +209,7 @@ WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>
WriteLiteral(" ");
#line 36 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 37 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(Model.Job.Device.DeviceModel.Manufacturer);
@@ -204,7 +218,7 @@ WriteLiteral(" ");
WriteLiteral(" ");
#line 36 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 37 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(Model.Job.Device.DeviceModel.Model);
@@ -216,7 +230,7 @@ WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>
WriteLiteral(" ");
#line 43 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 44 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(Model.TechUser.DisplayName);
@@ -229,7 +243,7 @@ WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">\r\n Email Address: ");
#line 45 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 46 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(Model.TechUser.EmailAddress);
@@ -238,7 +252,7 @@ WriteLiteral(">\r\n Email Address: ");
WriteLiteral("<br />\r\n Phone Number: ");
#line 46 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 47 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(Model.TechUser.PhoneNumber);
@@ -259,7 +273,7 @@ WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 55 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 56 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(Model.OrganisationAddress.Name);
@@ -272,7 +286,7 @@ WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">\r\n <span>");
#line 57 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 58 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(Model.OrganisationAddress.Address);
@@ -281,7 +295,7 @@ WriteLiteral(">\r\n <span>");
WriteLiteral("</span><br />\r\n <span>");
#line 58 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 59 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(Model.OrganisationAddress.Suburb);
@@ -290,7 +304,7 @@ WriteLiteral("</span><br />\r\n <span>");
WriteLiteral(", ");
#line 58 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 59 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(Model.OrganisationAddress.Postcode);
@@ -299,7 +313,7 @@ WriteLiteral(", ");
WriteLiteral("</span><br />\r\n <span>");
#line 59 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 60 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(Model.OrganisationAddress.State);
@@ -308,7 +322,7 @@ WriteLiteral("</span><br />\r\n <span>");
WriteLiteral(", ");
#line 59 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 60 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(Model.OrganisationAddress.Country);
@@ -321,7 +335,7 @@ WriteLiteral("</span>\r\n </div>\r\n <
WriteLiteral(" ");
#line 68 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 69 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(Model.RepairProvider.Name);
@@ -330,7 +344,7 @@ WriteLiteral(" ");
WriteLiteral(" (");
#line 68 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 69 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(Model.RepairProvider.Id);
@@ -339,7 +353,7 @@ WriteLiteral(" (");
WriteLiteral(") ");
#line 68 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 69 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(Model.RepairProvider.PluginManifest.Version.ToString(3));
@@ -351,7 +365,7 @@ WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>
WriteLiteral(" ");
#line 75 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 76 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(Model.RepairDescription.ToMultilineString());
@@ -361,18 +375,18 @@ WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>
">Disclosed Information\r\n </th>\r\n <td>\r\n " +
" <div");
WriteLiteral(" id=\"repairDisclosedInformation\"");
WriteLiteral(" id=\"disclosedInformation\"");
WriteLiteral(">\r\n <table>\r\n");
#line 84 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 85 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line default
#line hidden
#line 84 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 85 "..\..\Views\Job\LogRepairDisclose.cshtml"
foreach (var dp in Model.DiscloseProperties)
{
@@ -382,7 +396,7 @@ WriteLiteral(">\r\n <table>\r\n");
WriteLiteral(" <tr>\r\n <th>");
#line 87 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 88 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(dp.Key);
@@ -392,7 +406,7 @@ WriteLiteral(":\r\n </th>\r\n
" <td>");
#line 89 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 90 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(dp.Value);
@@ -402,7 +416,7 @@ WriteLiteral("\r\n </td>\r\n
"> \r\n");
#line 92 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 93 "..\..\Views\Job\LogRepairDisclose.cshtml"
}
@@ -412,13 +426,13 @@ WriteLiteral(" </table>\r\n </div>\r\n
"d>\r\n </tr>\r\n");
#line 97 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 98 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line default
#line hidden
#line 97 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 98 "..\..\Views\Job\LogRepairDisclose.cshtml"
if (Model.PublishAttachments.Count > 0)
{
@@ -434,13 +448,13 @@ WriteLiteral(" id=\"publishJobAttachments\"");
WriteLiteral(">\r\n");
#line 104 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 105 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line default
#line hidden
#line 104 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 105 "..\..\Views\Job\LogRepairDisclose.cshtml"
foreach (var ja in Model.PublishAttachments)
{
@@ -453,34 +467,34 @@ WriteLiteral(" type=\"hidden\"");
WriteLiteral(" name=\"PublishAttachmentIds\"");
WriteAttribute("value", Tuple.Create(" value=\"", 4117), Tuple.Create("\"", 4131)
WriteAttribute("value", Tuple.Create(" value=\"", 4143), Tuple.Create("\"", 4157)
#line 106 "..\..\Views\Job\LogRepairDisclose.cshtml"
, Tuple.Create(Tuple.Create("", 4125), Tuple.Create<System.Object, System.Int32>(ja.Id
#line 107 "..\..\Views\Job\LogRepairDisclose.cshtml"
, Tuple.Create(Tuple.Create("", 4151), Tuple.Create<System.Object, System.Int32>(ja.Id
#line default
#line hidden
, 4125), false)
, 4151), false)
);
WriteLiteral(" />\r\n");
WriteLiteral(" <a");
WriteAttribute("href", Tuple.Create(" href=\"", 4175), Tuple.Create("\"", 4232)
WriteAttribute("href", Tuple.Create(" href=\"", 4201), Tuple.Create("\"", 4258)
#line 107 "..\..\Views\Job\LogRepairDisclose.cshtml"
, Tuple.Create(Tuple.Create("", 4182), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentDownload(ja.Id))
#line 108 "..\..\Views\Job\LogRepairDisclose.cshtml"
, Tuple.Create(Tuple.Create("", 4208), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentDownload(ja.Id))
#line default
#line hidden
, 4182), false)
, 4208), false)
);
WriteLiteral(" data-attachmentid=\"");
#line 107 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 108 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(ja.Id);
@@ -491,7 +505,7 @@ WriteLiteral("\"");
WriteLiteral(" data-mimetype=\"");
#line 107 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 108 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(ja.MimeType);
@@ -503,68 +517,68 @@ WriteLiteral(">\r\n <span");
WriteLiteral(" class=\"icon\"");
WriteAttribute("title", Tuple.Create(" title=\"", 4350), Tuple.Create("\"", 4370)
WriteAttribute("title", Tuple.Create(" title=\"", 4376), Tuple.Create("\"", 4396)
#line 108 "..\..\Views\Job\LogRepairDisclose.cshtml"
, Tuple.Create(Tuple.Create("", 4358), Tuple.Create<System.Object, System.Int32>(ja.Filename
#line 109 "..\..\Views\Job\LogRepairDisclose.cshtml"
, Tuple.Create(Tuple.Create("", 4384), Tuple.Create<System.Object, System.Int32>(ja.Filename
#line default
#line hidden
, 4358), false)
, 4384), false)
);
WriteLiteral(">\r\n <img");
WriteLiteral(" alt=\"Attachment Thumbnail\"");
WriteAttribute("src", Tuple.Create(" src=\"", 4449), Tuple.Create("\"", 4508)
WriteAttribute("src", Tuple.Create(" src=\"", 4475), Tuple.Create("\"", 4534)
#line 109 "..\..\Views\Job\LogRepairDisclose.cshtml"
, Tuple.Create(Tuple.Create("", 4455), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id))
#line 110 "..\..\Views\Job\LogRepairDisclose.cshtml"
, Tuple.Create(Tuple.Create("", 4481), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id))
#line default
#line hidden
, 4455), false)
, 4481), false)
);
WriteLiteral(" /></span>\r\n <span");
WriteLiteral(" class=\"comments\"");
WriteAttribute("title", Tuple.Create(" title=\"", 4583), Tuple.Create("\"", 4603)
WriteAttribute("title", Tuple.Create(" title=\"", 4609), Tuple.Create("\"", 4629)
#line 110 "..\..\Views\Job\LogRepairDisclose.cshtml"
, Tuple.Create(Tuple.Create("", 4591), Tuple.Create<System.Object, System.Int32>(ja.Comments
#line 111 "..\..\Views\Job\LogRepairDisclose.cshtml"
, Tuple.Create(Tuple.Create("", 4617), Tuple.Create<System.Object, System.Int32>(ja.Comments
#line default
#line hidden
, 4591), false)
, 4617), false)
);
WriteLiteral(">\r\n");
#line 111 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 112 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line default
#line hidden
#line 111 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 112 "..\..\Views\Job\LogRepairDisclose.cshtml"
if (!string.IsNullOrEmpty(ja.DocumentTemplateId))
{
#line default
#line hidden
#line 112 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 113 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(ja.DocumentTemplate.Description);
#line default
#line hidden
#line 112 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 113 "..\..\Views\Job\LogRepairDisclose.cshtml"
}
else
{
@@ -572,14 +586,14 @@ WriteLiteral(">\r\n");
#line default
#line hidden
#line 114 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 115 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(ja.Comments);
#line default
#line hidden
#line 114 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 115 "..\..\Views\Job\LogRepairDisclose.cshtml"
}
#line default
@@ -591,7 +605,7 @@ WriteLiteral(" class=\"author\"");
WriteLiteral(">");
#line 115 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 116 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(ja.TechUser.ToStringFriendly());
@@ -604,7 +618,7 @@ WriteLiteral(" class=\"timestamp\"");
WriteLiteral(" data-livestamp=\"");
#line 115 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 116 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(ja.Timestamp.ToUnixEpoc());
@@ -612,20 +626,20 @@ WriteLiteral(" data-livestamp=\"");
#line hidden
WriteLiteral("\"");
WriteAttribute("title", Tuple.Create(" title=\"", 5079), Tuple.Create("\"", 5117)
WriteAttribute("title", Tuple.Create(" title=\"", 5105), Tuple.Create("\"", 5143)
#line 115 "..\..\Views\Job\LogRepairDisclose.cshtml"
, Tuple.Create(Tuple.Create("", 5087), Tuple.Create<System.Object, System.Int32>(ja.Timestamp.ToFullDateTime()
#line 116 "..\..\Views\Job\LogRepairDisclose.cshtml"
, Tuple.Create(Tuple.Create("", 5113), Tuple.Create<System.Object, System.Int32>(ja.Timestamp.ToFullDateTime()
#line default
#line hidden
, 5087), false)
, 5113), false)
);
WriteLiteral(">");
#line 115 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 116 "..\..\Views\Job\LogRepairDisclose.cshtml"
Write(ja.Timestamp.ToFullDateTime());
@@ -634,7 +648,7 @@ WriteLiteral(">");
WriteLiteral("</span>\r\n </a> \r\n");
#line 117 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 118 "..\..\Views\Job\LogRepairDisclose.cshtml"
}
@@ -644,7 +658,7 @@ WriteLiteral(" </div>\r\n </di
" </td>\r\n </tr>\r\n");
#line 122 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 123 "..\..\Views\Job\LogRepairDisclose.cshtml"
}
@@ -666,7 +680,7 @@ WriteLiteral(" class=\"fa fa-lg fa-cog fa-spin\"");
WriteLiteral(" title=\"Please Wait\"");
WriteLiteral("></i>Submitting Repair Request...</h4>\r\n </div>\r\n");
WriteLiteral("></i>Lodging Repair Request...</h4>\r\n </div>\r\n");
WriteLiteral(@" <script>
$(function () {
@@ -703,12 +717,12 @@ WriteLiteral(" type=\"submit\"");
WriteLiteral(" class=\"button\"");
WriteLiteral(" value=\"Submit Repair Request\"");
WriteLiteral(" value=\"Lodge Repair Request\"");
WriteLiteral(" />\r\n </div>\r\n");
#line 152 "..\..\Views\Job\LogRepairDisclose.cshtml"
#line 153 "..\..\Views\Job\LogRepairDisclose.cshtml"
}
#line default
+1 -1
View File
@@ -2,7 +2,7 @@
@{
Authorization.Require(Claims.Job.Actions.LogRepair);
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Log Repair Error");
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Lodge Repair Error");
}
<div class="form" style="width: 650px">
<h2>Submission Error</h2>
@@ -48,7 +48,7 @@ namespace Disco.Web.Views.Job
Authorization.Require(Claims.Job.Actions.LogRepair);
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Log Repair Error");
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Lodge Repair Error");
#line default
+60 -50
View File
@@ -2,10 +2,11 @@
@{
Authorization.Require(Claims.Job.Actions.LogWarranty);
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Log Warranty");
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Lodge Warranty");
}
@using (Html.BeginForm(MVC.Job.LogWarranty(), FormMethod.Post))
{
@Html.AntiForgeryToken()
@Html.ValidationSummary(true)
@Html.HiddenFor(m => m.JobId)
@Html.ValidationMessageFor(m => m.JobId)
@@ -13,28 +14,32 @@
<div id="warrantyJobForm" class="form" style="width: 650px">
<table>
<tr>
<th>Internal Job Id:
<th>
Internal Job Id:
</th>
<td>
@Model.JobId
</td>
</tr>
<tr>
<th>Device Serial Number:
<th>
Device Serial Number:
</th>
<td>
@Model.Job.Device.SerialNumber
</td>
</tr>
<tr>
<th>Device Model:
<th>
Device Model:
</th>
<td>
@Model.Job.Device.DeviceModel.Manufacturer @Model.Job.Device.DeviceModel.Model
</td>
</tr>
<tr>
<th>Technician:
<th>
Technician:
</th>
<td>
@Model.TechUser.DisplayName
@@ -45,28 +50,30 @@
</td>
</tr>
<tr>
<th style="width: 150px">Repair Address:
<th style="width: 150px">
Repair Address:
</th>
<td>
@Html.DropDownListFor(model => model.OrganisationAddressId, Model.OrganisationAddresses.ToSelectListItems(Model.OrganisationAddressId, (Model.OrganisationAddress == null)))<br />
@Html.ValidationMessageFor(m => m.OrganisationAddressId)
<div id="organisationAddressDetails">
@{
var oa = Model.OrganisationAddress;
if (oa != null)
{
<span>@oa.Address</span>
<br />
<span>@oa.Suburb, @oa.Postcode</span>
<br />
<span>@oa.State, @oa.Country</span>
}
var oa = Model.OrganisationAddress;
if (oa != null)
{
<span>@oa.Address</span>
<br />
<span>@oa.Suburb, @oa.Postcode</span>
<br />
<span>@oa.State, @oa.Country</span>
}
}
</div>
</td>
</tr>
<tr>
<th>Warranty Provider:
<th>
Warranty Provider:
</th>
<td>
@Html.DropDownListFor(model => model.WarrantyProviderId, Model.WarrantyProviders.ToSelectListItems(Model.WarrantyProviderId, AdditionalItems: new Dictionary<string, string>() { { "MANUAL", "<Manually Submitted Claim>" } }))<br />
@@ -111,40 +118,41 @@
</tr>
</table>
</div>
if (!Model.IsManualProvider && Authorization.Has(Claims.Job.ShowAttachments) && Model.Job.JobAttachments.Count > 0)
{
<div class="form" style="width: 650px; margin-top: 15px;">
<h2>Send Attachments</h2>
<table>
<tr>
<td>
<div id="publishJobAttachments">
@foreach (var ja in Model.Job.JobAttachments)
{
<a href="@Url.Action(MVC.API.Job.AttachmentDownload(ja.Id))" data-attachmentid="@ja.Id" data-mimetype="@ja.MimeType">
<input type="checkbox" class="select" name="PublishAttachmentIds" value="@ja.Id" @(Model.PublishAttachmentIds.Contains(ja.Id) ? "checked" : null) />
<span class="icon" title="@ja.Filename">
<img alt="Attachment Thumbnail" src="@(Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id)))" /></span>
<span class="comments" title="@ja.Comments">
@{if (!string.IsNullOrEmpty(ja.DocumentTemplateId))
{ @ja.DocumentTemplate.Description}
else
{ @ja.Comments }}
</span><span class="author">@ja.TechUser.ToStringFriendly()</span><span class="timestamp" data-livestamp="@(ja.Timestamp.ToUnixEpoc())" title="@ja.Timestamp.ToFullDateTime()">@ja.Timestamp.ToFullDateTime()</span>
</a>
}
</div>
</td>
</tr>
</table>
</div>
}
if (Model.WarrantyProvider != null && Model.WarrantyProviderSubmitJobViewType != null)
{
<div id="warrantyJobProviderProperties">
@Html.PartialCompiled(Model.WarrantyProviderSubmitJobViewType, Model.WarrantyProviderSubmitJobModel)
</div>
}
if (!Model.IsManualProvider && Authorization.Has(Claims.Job.ShowAttachments) && Model.Job.JobAttachments.Count > 0)
{
<div class="form" style="width: 650px; margin-top: 15px;">
<h2>Send Attachments</h2>
<table>
<tr>
<td>
<div id="publishJobAttachments">
@foreach (var ja in Model.Job.JobAttachments)
{
<a href="@Url.Action(MVC.API.Job.AttachmentDownload(ja.Id))" data-attachmentid="@ja.Id" data-mimetype="@ja.MimeType">
<input type="checkbox" class="select" name="PublishAttachmentIds" value="@ja.Id" @(Model.PublishAttachmentIds.Contains(ja.Id) ? "checked" : null) />
<span class="icon" title="@ja.Filename">
<img alt="Attachment Thumbnail" src="@(Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id)))" />
</span>
<span class="comments" title="@ja.Comments">
@{if (!string.IsNullOrEmpty(ja.DocumentTemplateId))
{ @ja.DocumentTemplate.Description}
else
{ @ja.Comments }}
</span><span class="author">@ja.TechUser.ToStringFriendly()</span><span class="timestamp" data-livestamp="@(ja.Timestamp.ToUnixEpoc())" title="@ja.Timestamp.ToFullDateTime()">@ja.Timestamp.ToFullDateTime()</span>
</a>
}
</div>
</td>
</tr>
</table>
</div>
}
if (Model.WarrantyProvider != null && Model.WarrantyProviderSubmitJobViewType != null)
{
<div id="warrantyJobProviderProperties">
@Html.PartialCompiled(Model.WarrantyProviderSubmitJobViewType, Model.WarrantyProviderSubmitJobModel)
</div>
}
<div class="actionBar">
@if (Model.IsManualProvider)
{
@@ -179,6 +187,8 @@
$('<input>').attr({ type: 'hidden', name: 'ManualProviderName', value: $('#ManualProviderName').val() })
).append(
$('<input>').attr({ type: 'hidden', name: 'ManualProviderReference', value: $('#ManualProviderReference').val() })
).append(
$('<input>').attr({ type: 'hidden', name: '__RequestVerificationToken', value: $providerId.closest('form').find('input[name="__RequestVerificationToken"]').val() })
).appendTo('body').submit();
}
+199 -177
View File
@@ -48,7 +48,7 @@ namespace Disco.Web.Views.Job
Authorization.Require(Claims.Job.Actions.LogWarranty);
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Log Warranty");
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Lodge Warranty");
#line default
@@ -65,41 +65,55 @@ WriteLiteral("\r\n");
#line hidden
#line 9 "..\..\Views\Job\LogWarranty.cshtml"
Write(Html.ValidationSummary(true));
Write(Html.AntiForgeryToken());
#line default
#line hidden
#line 9 "..\..\Views\Job\LogWarranty.cshtml"
#line default
#line hidden
#line 10 "..\..\Views\Job\LogWarranty.cshtml"
Write(Html.ValidationSummary(true));
#line default
#line hidden
#line 10 "..\..\Views\Job\LogWarranty.cshtml"
#line default
#line hidden
#line 11 "..\..\Views\Job\LogWarranty.cshtml"
Write(Html.HiddenFor(m => m.JobId));
#line default
#line hidden
#line 10 "..\..\Views\Job\LogWarranty.cshtml"
#line 11 "..\..\Views\Job\LogWarranty.cshtml"
#line default
#line hidden
#line 11 "..\..\Views\Job\LogWarranty.cshtml"
#line 12 "..\..\Views\Job\LogWarranty.cshtml"
Write(Html.ValidationMessageFor(m => m.JobId));
#line default
#line hidden
#line 11 "..\..\Views\Job\LogWarranty.cshtml"
#line 12 "..\..\Views\Job\LogWarranty.cshtml"
@@ -111,14 +125,14 @@ WriteLiteral(" type=\"hidden\"");
WriteLiteral(" name=\"SubmissionAction\"");
WriteAttribute("value", Tuple.Create(" value=\"", 497), Tuple.Create("\"", 554)
WriteAttribute("value", Tuple.Create(" value=\"", 529), Tuple.Create("\"", 586)
#line 12 "..\..\Views\Job\LogWarranty.cshtml"
, Tuple.Create(Tuple.Create("", 505), Tuple.Create<System.Object, System.Int32>(Model.IsManualProvider ? "Manual" : "Disclose"
#line 13 "..\..\Views\Job\LogWarranty.cshtml"
, Tuple.Create(Tuple.Create("", 537), Tuple.Create<System.Object, System.Int32>(Model.IsManualProvider ? "Manual" : "Disclose"
#line default
#line hidden
, 505), false)
, 537), false)
);
WriteLiteral(" />\r\n");
@@ -131,37 +145,39 @@ WriteLiteral(" class=\"form\"");
WriteLiteral(" style=\"width: 650px\"");
WriteLiteral(">\r\n <table>\r\n <tr>\r\n <th>Internal Job Id:\r\n " +
" </th>\r\n <td>\r\n");
WriteLiteral(">\r\n <table>\r\n <tr>\r\n <th>\r\n I" +
"nternal Job Id:\r\n </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 19 "..\..\Views\Job\LogWarranty.cshtml"
#line 21 "..\..\Views\Job\LogWarranty.cshtml"
Write(Model.JobId);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th" +
">Device Serial Number:\r\n </th>\r\n <td>\r\n");
">\r\n Device Serial Number:\r\n </th>\r\n " +
" <td>\r\n");
WriteLiteral(" ");
#line 26 "..\..\Views\Job\LogWarranty.cshtml"
#line 29 "..\..\Views\Job\LogWarranty.cshtml"
Write(Model.Job.Device.SerialNumber);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th" +
">Device Model:\r\n </th>\r\n <td>\r\n");
">\r\n Device Model:\r\n </th>\r\n <td" +
">\r\n");
WriteLiteral(" ");
#line 33 "..\..\Views\Job\LogWarranty.cshtml"
#line 37 "..\..\Views\Job\LogWarranty.cshtml"
Write(Model.Job.Device.DeviceModel.Manufacturer);
@@ -170,19 +186,20 @@ WriteLiteral(" ");
WriteLiteral(" ");
#line 33 "..\..\Views\Job\LogWarranty.cshtml"
#line 37 "..\..\Views\Job\LogWarranty.cshtml"
Write(Model.Job.Device.DeviceModel.Model);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th" +
">Technician:\r\n </th>\r\n <td>\r\n");
">\r\n Technician:\r\n </th>\r\n <td>\r" +
"\n");
WriteLiteral(" ");
#line 40 "..\..\Views\Job\LogWarranty.cshtml"
#line 45 "..\..\Views\Job\LogWarranty.cshtml"
Write(Model.TechUser.DisplayName);
@@ -195,7 +212,7 @@ WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">\r\n Email Address: ");
#line 42 "..\..\Views\Job\LogWarranty.cshtml"
#line 47 "..\..\Views\Job\LogWarranty.cshtml"
Write(Model.TechUser.EmailAddress);
@@ -204,7 +221,7 @@ WriteLiteral(">\r\n Email Address: ");
WriteLiteral("<br />\r\n Phone Number: ");
#line 43 "..\..\Views\Job\LogWarranty.cshtml"
#line 48 "..\..\Views\Job\LogWarranty.cshtml"
Write(Model.TechUser.PhoneNumber);
@@ -215,12 +232,13 @@ WriteLiteral("\r\n </div>\r\n </td>\r\n
WriteLiteral(" style=\"width: 150px\"");
WriteLiteral(">Repair Address:\r\n </th>\r\n <td>\r\n");
WriteLiteral(">\r\n Repair Address:\r\n </th>\r\n <t" +
"d>\r\n");
WriteLiteral(" ");
#line 51 "..\..\Views\Job\LogWarranty.cshtml"
#line 57 "..\..\Views\Job\LogWarranty.cshtml"
Write(Html.DropDownListFor(model => model.OrganisationAddressId, Model.OrganisationAddresses.ToSelectListItems(Model.OrganisationAddressId, (Model.OrganisationAddress == null))));
@@ -231,7 +249,7 @@ WriteLiteral("<br />\r\n");
WriteLiteral(" ");
#line 52 "..\..\Views\Job\LogWarranty.cshtml"
#line 58 "..\..\Views\Job\LogWarranty.cshtml"
Write(Html.ValidationMessageFor(m => m.OrganisationAddressId));
@@ -244,39 +262,39 @@ WriteLiteral(" id=\"organisationAddressDetails\"");
WriteLiteral(">\r\n");
#line 54 "..\..\Views\Job\LogWarranty.cshtml"
#line 60 "..\..\Views\Job\LogWarranty.cshtml"
#line default
#line hidden
#line 54 "..\..\Views\Job\LogWarranty.cshtml"
#line 60 "..\..\Views\Job\LogWarranty.cshtml"
var oa = Model.OrganisationAddress;
if (oa != null)
{
var oa = Model.OrganisationAddress;
if (oa != null)
{
#line default
#line hidden
WriteLiteral(" <span>");
WriteLiteral(" <span>");
#line 58 "..\..\Views\Job\LogWarranty.cshtml"
Write(oa.Address);
#line 64 "..\..\Views\Job\LogWarranty.cshtml"
Write(oa.Address);
#line default
#line hidden
WriteLiteral("</span>\r\n");
WriteLiteral(" <br />\r\n");
WriteLiteral(" <br />\r\n");
WriteLiteral(" <span>");
WriteLiteral(" <span>");
#line 60 "..\..\Views\Job\LogWarranty.cshtml"
Write(oa.Suburb);
#line 66 "..\..\Views\Job\LogWarranty.cshtml"
Write(oa.Suburb);
#line default
@@ -284,21 +302,21 @@ WriteLiteral(" <span>");
WriteLiteral(", ");
#line 60 "..\..\Views\Job\LogWarranty.cshtml"
Write(oa.Postcode);
#line 66 "..\..\Views\Job\LogWarranty.cshtml"
Write(oa.Postcode);
#line default
#line hidden
WriteLiteral("</span>\r\n");
WriteLiteral(" <br />\r\n");
WriteLiteral(" <br />\r\n");
WriteLiteral(" <span>");
WriteLiteral(" <span>");
#line 62 "..\..\Views\Job\LogWarranty.cshtml"
Write(oa.State);
#line 68 "..\..\Views\Job\LogWarranty.cshtml"
Write(oa.State);
#line default
@@ -306,8 +324,8 @@ WriteLiteral(" <span>");
WriteLiteral(", ");
#line 62 "..\..\Views\Job\LogWarranty.cshtml"
Write(oa.Country);
#line 68 "..\..\Views\Job\LogWarranty.cshtml"
Write(oa.Country);
#line default
@@ -315,20 +333,20 @@ WriteLiteral(", ");
WriteLiteral("</span>\r\n");
#line 63 "..\..\Views\Job\LogWarranty.cshtml"
}
#line 69 "..\..\Views\Job\LogWarranty.cshtml"
}
#line default
#line hidden
WriteLiteral("\r\n </div>\r\n </td>\r\n </tr>\r\n " +
" <tr>\r\n <th>Warranty Provider:\r\n </th>\r\n " +
" <td>\r\n");
" <tr>\r\n <th>\r\n Warranty Provider:\r\n " +
" </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 72 "..\..\Views\Job\LogWarranty.cshtml"
#line 79 "..\..\Views\Job\LogWarranty.cshtml"
Write(Html.DropDownListFor(model => model.WarrantyProviderId, Model.WarrantyProviders.ToSelectListItems(Model.WarrantyProviderId, AdditionalItems: new Dictionary<string, string>() { { "MANUAL", "<Manually Submitted Claim>" } })));
@@ -339,7 +357,7 @@ WriteLiteral("<br />\r\n");
WriteLiteral(" ");
#line 73 "..\..\Views\Job\LogWarranty.cshtml"
#line 80 "..\..\Views\Job\LogWarranty.cshtml"
Write(Html.ValidationMessageFor(m => m.WarrantyProviderId));
@@ -348,13 +366,13 @@ WriteLiteral(" ");
WriteLiteral("\r\n");
#line 74 "..\..\Views\Job\LogWarranty.cshtml"
#line 81 "..\..\Views\Job\LogWarranty.cshtml"
#line default
#line hidden
#line 74 "..\..\Views\Job\LogWarranty.cshtml"
#line 81 "..\..\Views\Job\LogWarranty.cshtml"
if (Model.WarrantyProviders.Count == 0 && Authorization.Has(Claims.Config.Plugin.Install))
{
@@ -375,21 +393,21 @@ WriteLiteral(" class=\"fa fa-info-circle\"");
WriteLiteral("></i>View the <a");
WriteAttribute("href", Tuple.Create(" href=\"", 3317), Tuple.Create("\"", 3367)
WriteAttribute("href", Tuple.Create(" href=\"", 3597), Tuple.Create("\"", 3647)
#line 78 "..\..\Views\Job\LogWarranty.cshtml"
, Tuple.Create(Tuple.Create("", 3324), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.Config.Plugins.Install())
#line 85 "..\..\Views\Job\LogWarranty.cshtml"
, Tuple.Create(Tuple.Create("", 3604), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.Config.Plugins.Install())
#line default
#line hidden
, 3324), false)
, 3604), false)
);
WriteLiteral(">Plugin Catalogue</a> to discover and install warranty provider plugins.\r\n " +
" </p>\r\n </div>\r\n");
#line 81 "..\..\Views\Job\LogWarranty.cshtml"
#line 88 "..\..\Views\Job\LogWarranty.cshtml"
}
@@ -398,13 +416,13 @@ WriteLiteral(">Plugin Catalogue</a> to discover and install warranty provider pl
WriteLiteral(" </td>\r\n </tr>\r\n");
#line 84 "..\..\Views\Job\LogWarranty.cshtml"
#line 91 "..\..\Views\Job\LogWarranty.cshtml"
#line default
#line hidden
#line 84 "..\..\Views\Job\LogWarranty.cshtml"
#line 91 "..\..\Views\Job\LogWarranty.cshtml"
if (Model.IsManualProvider)
{
@@ -417,7 +435,7 @@ WriteLiteral(" <tr>\r\n <th>Provider Name:</th
WriteLiteral(" ");
#line 89 "..\..\Views\Job\LogWarranty.cshtml"
#line 96 "..\..\Views\Job\LogWarranty.cshtml"
Write(Html.EditorFor(model => model.ManualProviderName));
@@ -428,7 +446,7 @@ WriteLiteral("<br />\r\n");
WriteLiteral(" ");
#line 90 "..\..\Views\Job\LogWarranty.cshtml"
#line 97 "..\..\Views\Job\LogWarranty.cshtml"
Write(Html.ValidationMessageFor(m => m.ManualProviderName));
@@ -442,7 +460,7 @@ WriteLiteral(" <tr>\r\n <th>Provider Job Refer
WriteLiteral(" ");
#line 96 "..\..\Views\Job\LogWarranty.cshtml"
#line 103 "..\..\Views\Job\LogWarranty.cshtml"
Write(Html.EditorFor(model => model.ManualProviderReference));
@@ -453,7 +471,7 @@ WriteLiteral("<br />\r\n");
WriteLiteral(" ");
#line 97 "..\..\Views\Job\LogWarranty.cshtml"
#line 104 "..\..\Views\Job\LogWarranty.cshtml"
Write(Html.ValidationMessageFor(m => m.ManualProviderReference));
@@ -462,7 +480,7 @@ WriteLiteral(" ");
WriteLiteral("\r\n </td>\r\n </tr>\r\n");
#line 100 "..\..\Views\Job\LogWarranty.cshtml"
#line 107 "..\..\Views\Job\LogWarranty.cshtml"
}
@@ -484,7 +502,7 @@ WriteLiteral(">\r\n <h2>Fault Description</h2>\r\n <table>\r\n
WriteLiteral(" ");
#line 108 "..\..\Views\Job\LogWarranty.cshtml"
#line 115 "..\..\Views\Job\LogWarranty.cshtml"
Write(Html.EditorFor(model => model.FaultDescription));
@@ -495,7 +513,7 @@ WriteLiteral("<br />\r\n");
WriteLiteral(" ");
#line 109 "..\..\Views\Job\LogWarranty.cshtml"
#line 116 "..\..\Views\Job\LogWarranty.cshtml"
Write(Html.ValidationMessageFor(m => m.FaultDescription));
@@ -504,57 +522,57 @@ WriteLiteral(" ");
WriteLiteral("\r\n </td>\r\n </tr>\r\n </table>\r\n </div>\r\n");
#line 114 "..\..\Views\Job\LogWarranty.cshtml"
if (!Model.IsManualProvider && Authorization.Has(Claims.Job.ShowAttachments) && Model.Job.JobAttachments.Count > 0)
{
#line 121 "..\..\Views\Job\LogWarranty.cshtml"
if (!Model.IsManualProvider && Authorization.Has(Claims.Job.ShowAttachments) && Model.Job.JobAttachments.Count > 0)
{
#line default
#line hidden
WriteLiteral(" <div");
WriteLiteral(" <div");
WriteLiteral(" class=\"form\"");
WriteLiteral(" style=\"width: 650px; margin-top: 15px;\"");
WriteLiteral(">\r\n <h2>Send Attachments</h2>\r\n <table>\r\n <tr>\r\n " +
" <td>\r\n <div");
WriteLiteral(">\r\n <h2>Send Attachments</h2>\r\n <table>\r\n <t" +
"r>\r\n <td>\r\n <div");
WriteLiteral(" id=\"publishJobAttachments\"");
WriteLiteral(">\r\n");
#line 122 "..\..\Views\Job\LogWarranty.cshtml"
#line 129 "..\..\Views\Job\LogWarranty.cshtml"
#line default
#line hidden
#line 122 "..\..\Views\Job\LogWarranty.cshtml"
foreach (var ja in Model.Job.JobAttachments)
{
#line 129 "..\..\Views\Job\LogWarranty.cshtml"
foreach (var ja in Model.Job.JobAttachments)
{
#line default
#line hidden
WriteLiteral(" <a");
WriteLiteral(" <a");
WriteAttribute("href", Tuple.Create(" href=\"", 5195), Tuple.Create("\"", 5252)
WriteAttribute("href", Tuple.Create(" href=\"", 5495), Tuple.Create("\"", 5552)
#line 124 "..\..\Views\Job\LogWarranty.cshtml"
, Tuple.Create(Tuple.Create("", 5202), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentDownload(ja.Id))
#line 131 "..\..\Views\Job\LogWarranty.cshtml"
, Tuple.Create(Tuple.Create("", 5502), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentDownload(ja.Id))
#line default
#line hidden
, 5202), false)
, 5502), false)
);
WriteLiteral(" data-attachmentid=\"");
#line 124 "..\..\Views\Job\LogWarranty.cshtml"
Write(ja.Id);
#line 131 "..\..\Views\Job\LogWarranty.cshtml"
Write(ja.Id);
#line default
@@ -564,15 +582,15 @@ WriteLiteral("\"");
WriteLiteral(" data-mimetype=\"");
#line 124 "..\..\Views\Job\LogWarranty.cshtml"
Write(ja.MimeType);
#line 131 "..\..\Views\Job\LogWarranty.cshtml"
Write(ja.MimeType);
#line default
#line hidden
WriteLiteral("\"");
WriteLiteral(">\r\n <input");
WriteLiteral(">\r\n <input");
WriteLiteral(" type=\"checkbox\"");
@@ -580,119 +598,120 @@ WriteLiteral(" class=\"select\"");
WriteLiteral(" name=\"PublishAttachmentIds\"");
WriteAttribute("value", Tuple.Create(" value=\"", 5409), Tuple.Create("\"", 5423)
WriteAttribute("value", Tuple.Create(" value=\"", 5713), Tuple.Create("\"", 5727)
#line 125 "..\..\Views\Job\LogWarranty.cshtml"
, Tuple.Create(Tuple.Create("", 5417), Tuple.Create<System.Object, System.Int32>(ja.Id
#line 132 "..\..\Views\Job\LogWarranty.cshtml"
, Tuple.Create(Tuple.Create("", 5721), Tuple.Create<System.Object, System.Int32>(ja.Id
#line default
#line hidden
, 5417), false)
, 5721), false)
);
WriteLiteral(" ");
#line 125 "..\..\Views\Job\LogWarranty.cshtml"
Write(Model.PublishAttachmentIds.Contains(ja.Id) ? "checked" : null);
#line 132 "..\..\Views\Job\LogWarranty.cshtml"
Write(Model.PublishAttachmentIds.Contains(ja.Id) ? "checked" : null);
#line default
#line hidden
WriteLiteral(" />\r\n <span");
WriteLiteral(" />\r\n <span");
WriteLiteral(" class=\"icon\"");
WriteAttribute("title", Tuple.Create(" title=\"", 5544), Tuple.Create("\"", 5564)
WriteAttribute("title", Tuple.Create(" title=\"", 5852), Tuple.Create("\"", 5872)
#line 126 "..\..\Views\Job\LogWarranty.cshtml"
, Tuple.Create(Tuple.Create("", 5552), Tuple.Create<System.Object, System.Int32>(ja.Filename
#line 133 "..\..\Views\Job\LogWarranty.cshtml"
, Tuple.Create(Tuple.Create("", 5860), Tuple.Create<System.Object, System.Int32>(ja.Filename
#line default
#line hidden
, 5552), false)
, 5860), false)
);
WriteLiteral(">\r\n <img");
WriteLiteral(">\r\n <img");
WriteLiteral(" alt=\"Attachment Thumbnail\"");
WriteAttribute("src", Tuple.Create(" src=\"", 5635), Tuple.Create("\"", 5694)
WriteAttribute("src", Tuple.Create(" src=\"", 5947), Tuple.Create("\"", 6006)
#line 127 "..\..\Views\Job\LogWarranty.cshtml"
, Tuple.Create(Tuple.Create("", 5641), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id))
#line 134 "..\..\Views\Job\LogWarranty.cshtml"
, Tuple.Create(Tuple.Create("", 5953), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id))
#line default
#line hidden
, 5641), false)
, 5953), false)
);
WriteLiteral(" /></span>\r\n <span");
WriteLiteral(" />\r\n </span>\r\n " +
" <span");
WriteLiteral(" class=\"comments\"");
WriteAttribute("title", Tuple.Create(" title=\"", 5761), Tuple.Create("\"", 5781)
WriteAttribute("title", Tuple.Create(" title=\"", 6115), Tuple.Create("\"", 6135)
#line 128 "..\..\Views\Job\LogWarranty.cshtml"
, Tuple.Create(Tuple.Create("", 5769), Tuple.Create<System.Object, System.Int32>(ja.Comments
#line 136 "..\..\Views\Job\LogWarranty.cshtml"
, Tuple.Create(Tuple.Create("", 6123), Tuple.Create<System.Object, System.Int32>(ja.Comments
#line default
#line hidden
, 5769), false)
, 6123), false)
);
WriteLiteral(">\r\n");
#line 129 "..\..\Views\Job\LogWarranty.cshtml"
#line 137 "..\..\Views\Job\LogWarranty.cshtml"
#line default
#line hidden
#line 129 "..\..\Views\Job\LogWarranty.cshtml"
if (!string.IsNullOrEmpty(ja.DocumentTemplateId))
{
#line 137 "..\..\Views\Job\LogWarranty.cshtml"
if (!string.IsNullOrEmpty(ja.DocumentTemplateId))
{
#line default
#line hidden
#line 130 "..\..\Views\Job\LogWarranty.cshtml"
Write(ja.DocumentTemplate.Description);
#line 138 "..\..\Views\Job\LogWarranty.cshtml"
Write(ja.DocumentTemplate.Description);
#line default
#line hidden
#line 130 "..\..\Views\Job\LogWarranty.cshtml"
}
else
{
#line 138 "..\..\Views\Job\LogWarranty.cshtml"
}
else
{
#line default
#line hidden
#line 132 "..\..\Views\Job\LogWarranty.cshtml"
Write(ja.Comments);
#line 140 "..\..\Views\Job\LogWarranty.cshtml"
Write(ja.Comments);
#line default
#line hidden
#line 132 "..\..\Views\Job\LogWarranty.cshtml"
}
#line 140 "..\..\Views\Job\LogWarranty.cshtml"
}
#line default
#line hidden
WriteLiteral("\r\n </span><span");
WriteLiteral("\r\n </span><span");
WriteLiteral(" class=\"author\"");
WriteLiteral(">");
#line 133 "..\..\Views\Job\LogWarranty.cshtml"
Write(ja.TechUser.ToStringFriendly());
#line 141 "..\..\Views\Job\LogWarranty.cshtml"
Write(ja.TechUser.ToStringFriendly());
#line default
@@ -704,74 +723,74 @@ WriteLiteral(" class=\"timestamp\"");
WriteLiteral(" data-livestamp=\"");
#line 133 "..\..\Views\Job\LogWarranty.cshtml"
Write(ja.Timestamp.ToUnixEpoc());
#line 141 "..\..\Views\Job\LogWarranty.cshtml"
Write(ja.Timestamp.ToUnixEpoc());
#line default
#line hidden
WriteLiteral("\"");
WriteAttribute("title", Tuple.Create(" title=\"", 6217), Tuple.Create("\"", 6255)
WriteAttribute("title", Tuple.Create(" title=\"", 6589), Tuple.Create("\"", 6627)
#line 133 "..\..\Views\Job\LogWarranty.cshtml"
, Tuple.Create(Tuple.Create("", 6225), Tuple.Create<System.Object, System.Int32>(ja.Timestamp.ToFullDateTime()
#line 141 "..\..\Views\Job\LogWarranty.cshtml"
, Tuple.Create(Tuple.Create("", 6597), Tuple.Create<System.Object, System.Int32>(ja.Timestamp.ToFullDateTime()
#line default
#line hidden
, 6225), false)
, 6597), false)
);
WriteLiteral(">");
#line 133 "..\..\Views\Job\LogWarranty.cshtml"
Write(ja.Timestamp.ToFullDateTime());
#line default
#line hidden
WriteLiteral("</span>\r\n </a> \r\n");
#line 135 "..\..\Views\Job\LogWarranty.cshtml"
}
#line default
#line hidden
WriteLiteral(" </div>\r\n </td>\r\n </tr>\r\n </t" +
"able>\r\n </div>\r\n");
#line 141 "..\..\Views\Job\LogWarranty.cshtml"
}
if (Model.WarrantyProvider != null && Model.WarrantyProviderSubmitJobViewType != null)
{
Write(ja.Timestamp.ToFullDateTime());
#line default
#line hidden
WriteLiteral(" <div");
WriteLiteral("</span>\r\n </a>\r\n");
#line 143 "..\..\Views\Job\LogWarranty.cshtml"
}
#line default
#line hidden
WriteLiteral(" </div>\r\n </td>\r\n </tr>\r" +
"\n </table>\r\n </div>\r\n");
#line 149 "..\..\Views\Job\LogWarranty.cshtml"
}
if (Model.WarrantyProvider != null && Model.WarrantyProviderSubmitJobViewType != null)
{
#line default
#line hidden
WriteLiteral(" <div");
WriteLiteral(" id=\"warrantyJobProviderProperties\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
WriteLiteral(" ");
#line 145 "..\..\Views\Job\LogWarranty.cshtml"
Write(Html.PartialCompiled(Model.WarrantyProviderSubmitJobViewType, Model.WarrantyProviderSubmitJobModel));
#line 153 "..\..\Views\Job\LogWarranty.cshtml"
Write(Html.PartialCompiled(Model.WarrantyProviderSubmitJobViewType, Model.WarrantyProviderSubmitJobModel));
#line default
#line hidden
WriteLiteral("\r\n </div>\r\n");
WriteLiteral("\r\n </div>\r\n");
#line 147 "..\..\Views\Job\LogWarranty.cshtml"
}
#line 155 "..\..\Views\Job\LogWarranty.cshtml"
}
#line default
@@ -783,13 +802,13 @@ WriteLiteral(" class=\"actionBar\"");
WriteLiteral(">\r\n");
#line 149 "..\..\Views\Job\LogWarranty.cshtml"
#line 157 "..\..\Views\Job\LogWarranty.cshtml"
#line default
#line hidden
#line 149 "..\..\Views\Job\LogWarranty.cshtml"
#line 157 "..\..\Views\Job\LogWarranty.cshtml"
if (Model.IsManualProvider)
{
@@ -807,7 +826,7 @@ WriteLiteral(" value=\"Save Warranty Claim\"");
WriteLiteral(" />\r\n");
#line 152 "..\..\Views\Job\LogWarranty.cshtml"
#line 160 "..\..\Views\Job\LogWarranty.cshtml"
}
else
{
@@ -826,7 +845,7 @@ WriteLiteral(" value=\"Preview Warranty Claim\"");
WriteLiteral(" />\r\n");
#line 156 "..\..\Views\Job\LogWarranty.cshtml"
#line 164 "..\..\Views\Job\LogWarranty.cshtml"
}
@@ -835,7 +854,7 @@ WriteLiteral(" />\r\n");
WriteLiteral(" </div>\r\n");
#line 158 "..\..\Views\Job\LogWarranty.cshtml"
#line 166 "..\..\Views\Job\LogWarranty.cshtml"
}
@@ -860,16 +879,19 @@ WriteLiteral(">\r\n $(function () {\r\n var $providerId = $(\'#Warrant
" ).append(\r\n $(\'<input>\').attr({ type: \'hidden\', name: \'ManualPr" +
"oviderName\', value: $(\'#ManualProviderName\').val() })\r\n ).append(\r\n " +
" $(\'<input>\').attr({ type: \'hidden\', name: \'ManualProviderReference" +
"\', value: $(\'#ManualProviderReference\').val() })\r\n ).appendTo(\'body\')" +
".submit();\r\n }\r\n\r\n $providerId.change(updateDetails);\r\n $ad" +
"dressId.change(updateDetails);\r\n\r\n var manualProvider = $(\'#ManualProvide" +
"rName\');\r\n if (manualProvider.length > 0 && !manualProvider.val()) {\r\n " +
" manualProvider.focus();\r\n } else {\r\n $(\'#FaultDescrip" +
"tion\').focus();\r\n }\r\n\r\n $(\'#publishJobAttachments\').on(\'click\', \'i" +
"nput\', function (e) {\r\n e.preventDefault();\r\n setTimeout(f" +
"unction () {\r\n var $i = $(e.currentTarget);\r\n $i.p" +
"rop(\'checked\', !$i.prop(\'checked\'));\r\n }, 0);\r\n return fal" +
"se;\r\n });\r\n });\r\n</script>\r\n");
"\', value: $(\'#ManualProviderReference\').val() })\r\n ).append(\r\n " +
" $(\'<input>\').attr({ type: \'hidden\', name: \'__RequestVerificationToken\'," +
" value: $providerId.closest(\'form\').find(\'input[name=\"__RequestVerificationToken" +
"\"]\').val() })\r\n ).appendTo(\'body\').submit();\r\n }\r\n\r\n $p" +
"roviderId.change(updateDetails);\r\n $addressId.change(updateDetails);\r\n\r\n " +
" var manualProvider = $(\'#ManualProviderName\');\r\n if (manualProvide" +
"r.length > 0 && !manualProvider.val()) {\r\n manualProvider.focus();\r\n " +
" } else {\r\n $(\'#FaultDescription\').focus();\r\n }\r\n\r\n " +
" $(\'#publishJobAttachments\').on(\'click\', \'input\', function (e) {\r\n " +
"e.preventDefault();\r\n setTimeout(function () {\r\n var $" +
"i = $(e.currentTarget);\r\n $i.prop(\'checked\', !$i.prop(\'checked\'))" +
";\r\n }, 0);\r\n return false;\r\n });\r\n });\r\n</script" +
">\r\n");
}
}
+35 -22
View File
@@ -2,10 +2,11 @@
@{
Authorization.Require(Claims.Job.Actions.LogWarranty);
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Log Warranty");
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Lodge Warranty");
}
@using (Html.BeginForm(MVC.Job.LogWarranty(), FormMethod.Post))
{
@Html.AntiForgeryToken()
@Html.ValidationSummary(true)
@Html.HiddenFor(m => m.JobId)
@Html.HiddenFor(m => m.OrganisationAddressId)
@@ -16,28 +17,32 @@
<div id="warrantyJobForm" class="form" style="width: 650px">
<table>
<tr>
<th>Internal Job Id:
<th>
Internal Job Id:
</th>
<td>
@Model.JobId
</td>
</tr>
<tr>
<th>Device Serial Number:
<th>
Device Serial Number:
</th>
<td>
@Model.Job.Device.SerialNumber
</td>
</tr>
<tr>
<th>Device Model:
<th>
Device Model:
</th>
<td>
@Model.Job.Device.DeviceModel.Manufacturer @Model.Job.Device.DeviceModel.Model
</td>
</tr>
<tr>
<th>Technician:
<th>
Technician:
</th>
<td>
@Model.TechUser.DisplayName
@@ -48,7 +53,8 @@
</td>
</tr>
<tr>
<th style="width: 150px">Warranty Address:
<th style="width: 150px">
Warranty Address:
</th>
<td>
<div id="organisationAddressDetails">
@@ -62,21 +68,24 @@
</td>
</tr>
<tr>
<th>Warranty Provider:
<th>
Warranty Provider:
</th>
<td>
@Model.WarrantyProvider.Name (@Model.WarrantyProvider.Id) @Model.WarrantyProvider.PluginManifest.Version.ToString(3)
</td>
</tr>
<tr>
<th>Fault Description:
<th>
Fault Description:
</th>
<td>
@Model.FaultDescription.ToMultilineString()
</td>
</tr>
<tr>
<th>Disclosed Information
<th>
Disclosed Information
</th>
<td>
<div id="warrantyDisclosedInformation">
@@ -84,12 +93,15 @@
@foreach (var dp in Model.DiscloseProperties)
{
<tr>
<th>@dp.Key:
</th>
<td>@dp.Value
</td>
</tr>
}
<th>
@dp.Key:
</th>
<td>
@dp.Value
</td>
</tr>
}
</table>
</div>
</td>
@@ -106,14 +118,15 @@
<input type="hidden" name="PublishAttachmentIds" value="@ja.Id" />
<a href="@Url.Action(MVC.API.Job.AttachmentDownload(ja.Id))" data-attachmentid="@ja.Id" data-mimetype="@ja.MimeType">
<span class="icon" title="@ja.Filename">
<img alt="Attachment Thumbnail" src="@(Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id)))" /></span>
<img alt="Attachment Thumbnail" src="@(Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id)))" />
</span>
<span class="comments" title="@ja.Comments">
@{if (!string.IsNullOrEmpty(ja.DocumentTemplateId))
{ @ja.DocumentTemplate.Description}
else
{ @ja.Comments }}
{ @ja.DocumentTemplate.Description}
else
{ @ja.Comments }}
</span><span class="author">@ja.TechUser.ToStringFriendly()</span><span class="timestamp" data-livestamp="@(ja.Timestamp.ToUnixEpoc())" title="@ja.Timestamp.ToFullDateTime()">@ja.Timestamp.ToFullDateTime()</span>
</a>
</a>
}
</div>
</div>
@@ -123,7 +136,7 @@
</table>
</div>
<div id="submitDialog" class="dialog" title="Please Wait">
<h4><i class="fa fa-lg fa-cog fa-spin" title="Please Wait"></i>Submitting Warranty Job...</h4>
<h4><i class="fa fa-lg fa-cog fa-spin" title="Please Wait"></i>Lodging Warranty Claim...</h4>
</div>
<script>
$(function () {
@@ -147,6 +160,6 @@
});
</script>
<div class="actionBar">
<input id="submitJob" type="submit" class="button" value="Submit Warranty Claim" />
<input id="submitJob" type="submit" class="button" value="Lodge Warranty Claim" />
</div>
}
@@ -48,7 +48,7 @@ namespace Disco.Web.Views.Job
Authorization.Require(Claims.Job.Actions.LogWarranty);
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Log Warranty");
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Lodge Warranty");
#line default
@@ -65,83 +65,97 @@ WriteLiteral("\r\n");
#line hidden
#line 9 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(Html.ValidationSummary(true));
Write(Html.AntiForgeryToken());
#line default
#line hidden
#line 9 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line default
#line hidden
#line 10 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(Html.ValidationSummary(true));
#line default
#line hidden
#line 10 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line default
#line hidden
#line 11 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(Html.HiddenFor(m => m.JobId));
#line default
#line hidden
#line 10 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 11 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line default
#line hidden
#line 11 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 12 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(Html.HiddenFor(m => m.OrganisationAddressId));
#line default
#line hidden
#line 11 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 12 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line default
#line hidden
#line 12 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 13 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(Html.HiddenFor(m => m.WarrantyProviderId));
#line default
#line hidden
#line 12 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 13 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line default
#line hidden
#line 13 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 14 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(Html.HiddenFor(m => m.FaultDescription));
#line default
#line hidden
#line 13 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 14 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line default
#line hidden
#line 14 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 15 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(Html.HiddenFor(m => m.ProviderPropertiesJson));
#line default
#line hidden
#line 14 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 15 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
@@ -165,37 +179,39 @@ WriteLiteral(" class=\"form\"");
WriteLiteral(" style=\"width: 650px\"");
WriteLiteral(">\r\n <table>\r\n <tr>\r\n <th>Internal Job Id:\r\n " +
" </th>\r\n <td>\r\n");
WriteLiteral(">\r\n <table>\r\n <tr>\r\n <th>\r\n I" +
"nternal Job Id:\r\n </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 22 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 24 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(Model.JobId);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th" +
">Device Serial Number:\r\n </th>\r\n <td>\r\n");
">\r\n Device Serial Number:\r\n </th>\r\n " +
" <td>\r\n");
WriteLiteral(" ");
#line 29 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 32 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(Model.Job.Device.SerialNumber);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th" +
">Device Model:\r\n </th>\r\n <td>\r\n");
">\r\n Device Model:\r\n </th>\r\n <td" +
">\r\n");
WriteLiteral(" ");
#line 36 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 40 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(Model.Job.Device.DeviceModel.Manufacturer);
@@ -204,19 +220,20 @@ WriteLiteral(" ");
WriteLiteral(" ");
#line 36 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 40 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(Model.Job.Device.DeviceModel.Model);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th" +
">Technician:\r\n </th>\r\n <td>\r\n");
">\r\n Technician:\r\n </th>\r\n <td>\r" +
"\n");
WriteLiteral(" ");
#line 43 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 48 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(Model.TechUser.DisplayName);
@@ -229,7 +246,7 @@ WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">\r\n Email Address: ");
#line 45 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 50 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(Model.TechUser.EmailAddress);
@@ -238,7 +255,7 @@ WriteLiteral(">\r\n Email Address: ");
WriteLiteral("<br />\r\n Phone Number: ");
#line 46 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 51 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(Model.TechUser.PhoneNumber);
@@ -249,8 +266,8 @@ WriteLiteral("\r\n </div>\r\n </td>\r\n
WriteLiteral(" style=\"width: 150px\"");
WriteLiteral(">Warranty Address:\r\n </th>\r\n <td>\r\n " +
" <div");
WriteLiteral(">\r\n Warranty Address:\r\n </th>\r\n " +
"<td>\r\n <div");
WriteLiteral(" id=\"organisationAddressDetails\"");
@@ -259,7 +276,7 @@ WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 55 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 61 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(Model.OrganisationAddress.Name);
@@ -272,7 +289,7 @@ WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">\r\n <span>");
#line 57 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 63 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(Model.OrganisationAddress.Address);
@@ -281,7 +298,7 @@ WriteLiteral(">\r\n <span>");
WriteLiteral("</span><br />\r\n <span>");
#line 58 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 64 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(Model.OrganisationAddress.Suburb);
@@ -290,7 +307,7 @@ WriteLiteral("</span><br />\r\n <span>");
WriteLiteral(", ");
#line 58 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 64 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(Model.OrganisationAddress.Postcode);
@@ -299,7 +316,7 @@ WriteLiteral(", ");
WriteLiteral("</span><br />\r\n <span>");
#line 59 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 65 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(Model.OrganisationAddress.State);
@@ -308,20 +325,20 @@ WriteLiteral("</span><br />\r\n <span>");
WriteLiteral(", ");
#line 59 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 65 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(Model.OrganisationAddress.Country);
#line default
#line hidden
WriteLiteral("</span>\r\n </div>\r\n </div>\r\n " +
" </td>\r\n </tr>\r\n <tr>\r\n <th>Warranty Pro" +
"vider:\r\n </th>\r\n <td>\r\n");
" </td>\r\n </tr>\r\n <tr>\r\n <th>\r\n " +
" Warranty Provider:\r\n </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 68 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 75 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(Model.WarrantyProvider.Name);
@@ -330,7 +347,7 @@ WriteLiteral(" ");
WriteLiteral(" (");
#line 68 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 75 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(Model.WarrantyProvider.Id);
@@ -339,71 +356,75 @@ WriteLiteral(" (");
WriteLiteral(") ");
#line 68 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 75 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(Model.WarrantyProvider.PluginManifest.Version.ToString(3));
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th" +
">Fault Description:\r\n </th>\r\n <td>\r\n");
">\r\n Fault Description:\r\n </th>\r\n " +
" <td>\r\n");
WriteLiteral(" ");
#line 75 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 83 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(Model.FaultDescription.ToMultilineString());
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th" +
">Disclosed Information\r\n </th>\r\n <td>\r\n " +
" <div");
">\r\n Disclosed Information\r\n </th>\r\n " +
" <td>\r\n <div");
WriteLiteral(" id=\"warrantyDisclosedInformation\"");
WriteLiteral(">\r\n <table>\r\n");
#line 84 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 93 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line default
#line hidden
#line 84 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 93 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
foreach (var dp in Model.DiscloseProperties)
{
#line default
#line hidden
WriteLiteral(" <tr>\r\n <th>");
WriteLiteral(" <tr>\r\n <th>\r\n");
WriteLiteral(" ");
#line 87 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 97 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(dp.Key);
#line default
#line hidden
WriteLiteral(":\r\n </th>\r\n " +
" <td>");
WriteLiteral(":\r\n </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 89 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(dp.Value);
#line 100 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(dp.Value);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr" +
"> \r\n");
WriteLiteral("\r\n </td>\r\n </tr>\r\n");
#line 92 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
}
#line 103 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
}
#line default
@@ -412,13 +433,13 @@ WriteLiteral(" </table>\r\n </div>\r\n
"d>\r\n </tr>\r\n");
#line 97 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 109 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line default
#line hidden
#line 97 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 109 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
if (Model.PublishAttachments.Count > 0)
{
@@ -434,13 +455,13 @@ WriteLiteral(" id=\"publishJobAttachments\"");
WriteLiteral(">\r\n");
#line 104 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 116 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line default
#line hidden
#line 104 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 116 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
foreach (var ja in Model.PublishAttachments)
{
@@ -453,34 +474,34 @@ WriteLiteral(" type=\"hidden\"");
WriteLiteral(" name=\"PublishAttachmentIds\"");
WriteAttribute("value", Tuple.Create(" value=\"", 4138), Tuple.Create("\"", 4152)
WriteAttribute("value", Tuple.Create(" value=\"", 4393), Tuple.Create("\"", 4407)
#line 106 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
, Tuple.Create(Tuple.Create("", 4146), Tuple.Create<System.Object, System.Int32>(ja.Id
#line 118 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
, Tuple.Create(Tuple.Create("", 4401), Tuple.Create<System.Object, System.Int32>(ja.Id
#line default
#line hidden
, 4146), false)
, 4401), false)
);
WriteLiteral(" />\r\n");
WriteLiteral(" <a");
WriteAttribute("href", Tuple.Create(" href=\"", 4196), Tuple.Create("\"", 4253)
WriteAttribute("href", Tuple.Create(" href=\"", 4451), Tuple.Create("\"", 4508)
#line 107 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
, Tuple.Create(Tuple.Create("", 4203), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentDownload(ja.Id))
#line 119 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
, Tuple.Create(Tuple.Create("", 4458), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentDownload(ja.Id))
#line default
#line hidden
, 4203), false)
, 4458), false)
);
WriteLiteral(" data-attachmentid=\"");
#line 107 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 119 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(ja.Id);
@@ -491,7 +512,7 @@ WriteLiteral("\"");
WriteLiteral(" data-mimetype=\"");
#line 107 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 119 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(ja.MimeType);
@@ -503,84 +524,85 @@ WriteLiteral(">\r\n <span");
WriteLiteral(" class=\"icon\"");
WriteAttribute("title", Tuple.Create(" title=\"", 4371), Tuple.Create("\"", 4391)
WriteAttribute("title", Tuple.Create(" title=\"", 4626), Tuple.Create("\"", 4646)
#line 108 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
, Tuple.Create(Tuple.Create("", 4379), Tuple.Create<System.Object, System.Int32>(ja.Filename
#line 120 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
, Tuple.Create(Tuple.Create("", 4634), Tuple.Create<System.Object, System.Int32>(ja.Filename
#line default
#line hidden
, 4379), false)
, 4634), false)
);
WriteLiteral(">\r\n <img");
WriteLiteral(" alt=\"Attachment Thumbnail\"");
WriteAttribute("src", Tuple.Create(" src=\"", 4470), Tuple.Create("\"", 4529)
WriteAttribute("src", Tuple.Create(" src=\"", 4725), Tuple.Create("\"", 4784)
#line 109 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
, Tuple.Create(Tuple.Create("", 4476), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id))
#line 121 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
, Tuple.Create(Tuple.Create("", 4731), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id))
#line default
#line hidden
, 4476), false)
, 4731), false)
);
WriteLiteral(" /></span>\r\n <span");
WriteLiteral(" />\r\n </span>\r\n " +
" <span");
WriteLiteral(" class=\"comments\"");
WriteAttribute("title", Tuple.Create(" title=\"", 4604), Tuple.Create("\"", 4624)
WriteAttribute("title", Tuple.Create(" title=\"", 4901), Tuple.Create("\"", 4921)
#line 110 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
, Tuple.Create(Tuple.Create("", 4612), Tuple.Create<System.Object, System.Int32>(ja.Comments
#line 123 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
, Tuple.Create(Tuple.Create("", 4909), Tuple.Create<System.Object, System.Int32>(ja.Comments
#line default
#line hidden
, 4612), false)
, 4909), false)
);
WriteLiteral(">\r\n");
#line 111 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 124 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line default
#line hidden
#line 111 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 124 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
if (!string.IsNullOrEmpty(ja.DocumentTemplateId))
{
{
#line default
#line hidden
#line 112 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(ja.DocumentTemplate.Description);
#line 125 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(ja.DocumentTemplate.Description);
#line default
#line hidden
#line 112 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
}
else
{
#line 125 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
}
else
{
#line default
#line hidden
#line 114 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(ja.Comments);
#line 127 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(ja.Comments);
#line default
#line hidden
#line 114 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
}
#line 127 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
}
#line default
#line hidden
@@ -591,7 +613,7 @@ WriteLiteral(" class=\"author\"");
WriteLiteral(">");
#line 115 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 128 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(ja.TechUser.ToStringFriendly());
@@ -604,7 +626,7 @@ WriteLiteral(" class=\"timestamp\"");
WriteLiteral(" data-livestamp=\"");
#line 115 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 128 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(ja.Timestamp.ToUnixEpoc());
@@ -612,29 +634,29 @@ WriteLiteral(" data-livestamp=\"");
#line hidden
WriteLiteral("\"");
WriteAttribute("title", Tuple.Create(" title=\"", 5100), Tuple.Create("\"", 5138)
WriteAttribute("title", Tuple.Create(" title=\"", 5395), Tuple.Create("\"", 5433)
#line 115 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
, Tuple.Create(Tuple.Create("", 5108), Tuple.Create<System.Object, System.Int32>(ja.Timestamp.ToFullDateTime()
#line 128 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
, Tuple.Create(Tuple.Create("", 5403), Tuple.Create<System.Object, System.Int32>(ja.Timestamp.ToFullDateTime()
#line default
#line hidden
, 5108), false)
, 5403), false)
);
WriteLiteral(">");
#line 115 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 128 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
Write(ja.Timestamp.ToFullDateTime());
#line default
#line hidden
WriteLiteral("</span>\r\n </a> \r\n");
WriteLiteral("</span>\r\n </a>\r\n");
#line 117 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 130 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
}
@@ -644,7 +666,7 @@ WriteLiteral(" </div>\r\n </di
" </td>\r\n </tr>\r\n");
#line 122 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 135 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
}
@@ -666,7 +688,7 @@ WriteLiteral(" class=\"fa fa-lg fa-cog fa-spin\"");
WriteLiteral(" title=\"Please Wait\"");
WriteLiteral("></i>Submitting Warranty Job...</h4>\r\n </div>\r\n");
WriteLiteral("></i>Lodging Warranty Claim...</h4>\r\n </div>\r\n");
WriteLiteral(@" <script>
$(function () {
@@ -703,12 +725,12 @@ WriteLiteral(" type=\"submit\"");
WriteLiteral(" class=\"button\"");
WriteLiteral(" value=\"Submit Warranty Claim\"");
WriteLiteral(" value=\"Lodge Warranty Claim\"");
WriteLiteral(" />\r\n </div>\r\n");
#line 152 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
#line 165 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
}
#line default
+1 -1
View File
@@ -2,7 +2,7 @@
@{
Authorization.Require(Claims.Job.Actions.LogWarranty);
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Log Warranty Error");
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Lodge Warranty Error");
}
<div class="form" style="width: 650px">
<h2>Submission Error</h2>
@@ -48,7 +48,7 @@ namespace Disco.Web.Views.Job
Authorization.Require(Claims.Job.Actions.LogWarranty);
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Log Warranty Error");
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Lodge Warranty Error");
#line default