705 lines
21 KiB
C#
705 lines
21 KiB
C#
#pragma warning disable 1591
|
|
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by a tool.
|
|
// Runtime Version:4.0.30319.42000
|
|
//
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace Disco.Web.Views.Job
|
|
{
|
|
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
|