f4394fe2a0
Logging Repair for Non-Warranty jobs has been brought into line with Logging Warranty. RepairProviderFeature implemented which allows plugins to be used in submitting jobs to third-parties for repair.
462 lines
13 KiB
C#
462 lines
13 KiB
C#
#pragma warning disable 1591
|
|
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by a tool.
|
|
// Runtime Version:4.0.30319.34014
|
|
//
|
|
// 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.BI.Extensions;
|
|
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/LogRepairError.cshtml")]
|
|
public partial class LogRepairError : Disco.Services.Web.WebViewPage<Disco.Web.Models.Job.LogRepairModel>
|
|
{
|
|
public LogRepairError()
|
|
{
|
|
}
|
|
public override void Execute()
|
|
{
|
|
|
|
#line 2 "..\..\Views\Job\LogRepairError.cshtml"
|
|
|
|
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");
|
|
|
|
|
|
#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\LogRepairError.cshtml"
|
|
Write(Model.Error.Message);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</strong>\r\n </div>\r\n <a");
|
|
|
|
WriteLiteral(" href=\"#\"");
|
|
|
|
WriteLiteral(" id=\"repairJobErrorShow\"");
|
|
|
|
WriteLiteral(" class=\"smallMessage\"");
|
|
|
|
WriteLiteral(">(show more)</a>\r\n <div");
|
|
|
|
WriteLiteral(" id=\"repairJobErrorMore\"");
|
|
|
|
WriteLiteral(" style=\"display: none\"");
|
|
|
|
WriteLiteral(">\r\n <br />\r\n <strong>Error Type: </strong>");
|
|
|
|
|
|
#line 18 "..\..\Views\Job\LogRepairError.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\LogRepairError.cshtml"
|
|
Write(Model.Error.StackTrace.ToMultilineString());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </div>\r\n");
|
|
|
|
|
|
#line 24 "..\..\Views\Job\LogRepairError.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 24 "..\..\Views\Job\LogRepairError.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\LogRepairError.cshtml"
|
|
Write(Model.Error.InnerException.Message);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("<br />\r\n <strong>Error Type:</strong> ");
|
|
|
|
|
|
#line 29 "..\..\Views\Job\LogRepairError.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\LogRepairError.cshtml"
|
|
Write(Model.Error.InnerException.StackTrace);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </div>\r\n </div>\r\n");
|
|
|
|
|
|
#line 35 "..\..\Views\Job\LogRepairError.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </div>\r\n <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
WriteLiteral(@">
|
|
$(function () {
|
|
$('#repairJobErrorShow').click(function () {
|
|
$(this).hide();
|
|
$('#repairJobErrorMore').slideDown();
|
|
return false;
|
|
});
|
|
});
|
|
</script>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div");
|
|
|
|
WriteLiteral(" id=\"repairJobForm\"");
|
|
|
|
WriteLiteral(" class=\"form\"");
|
|
|
|
WriteLiteral(" style=\"width: 650px; margin-top: 15px;\"");
|
|
|
|
WriteLiteral(">\r\n <h2>Repair 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\LogRepairError.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\LogRepairError.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\LogRepairError.cshtml"
|
|
Write(Model.Job.Device.DeviceModel.Manufacturer);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 71 "..\..\Views\Job\LogRepairError.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\LogRepairError.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\LogRepairError.cshtml"
|
|
Write(Model.TechUser.EmailAddress);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("<br />\r\n Phone Number: ");
|
|
|
|
|
|
#line 81 "..\..\Views\Job\LogRepairError.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(">Repair Address:\r\n </th>\r\n <td>\r\n <div");
|
|
|
|
WriteLiteral(" id=\"organisationAddressDetails\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 90 "..\..\Views\Job\LogRepairError.cshtml"
|
|
Write(Model.OrganisationAddress.Name);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n <div");
|
|
|
|
WriteLiteral(" class=\"smallMessage\"");
|
|
|
|
WriteLiteral(">\r\n <span>");
|
|
|
|
|
|
#line 92 "..\..\Views\Job\LogRepairError.cshtml"
|
|
Write(Model.OrganisationAddress.Address);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</span><br />\r\n <span>");
|
|
|
|
|
|
#line 93 "..\..\Views\Job\LogRepairError.cshtml"
|
|
Write(Model.OrganisationAddress.Suburb);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(", ");
|
|
|
|
|
|
#line 93 "..\..\Views\Job\LogRepairError.cshtml"
|
|
Write(Model.OrganisationAddress.Postcode);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</span><br />\r\n <span>");
|
|
|
|
|
|
#line 94 "..\..\Views\Job\LogRepairError.cshtml"
|
|
Write(Model.OrganisationAddress.State);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(", ");
|
|
|
|
|
|
#line 94 "..\..\Views\Job\LogRepairError.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>Repair Provider:\r\n </th>\r" +
|
|
"\n <td>\r\n");
|
|
|
|
|
|
#line 103 "..\..\Views\Job\LogRepairError.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 103 "..\..\Views\Job\LogRepairError.cshtml"
|
|
if (Model.RepairProvider != null)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <span>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 106 "..\..\Views\Job\LogRepairError.cshtml"
|
|
Write(Model.RepairProvider.Name);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" (");
|
|
|
|
|
|
#line 106 "..\..\Views\Job\LogRepairError.cshtml"
|
|
Write(Model.RepairProvider.Id);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(") ");
|
|
|
|
|
|
#line 106 "..\..\Views\Job\LogRepairError.cshtml"
|
|
Write(Model.RepairProvider.PluginManifest.Version.ToString(3));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </span>\r\n");
|
|
|
|
|
|
#line 108 "..\..\Views\Job\LogRepairError.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <span");
|
|
|
|
WriteLiteral(" class=\"smallMessage\"");
|
|
|
|
WriteLiteral(">None Selected</span>\r\n");
|
|
|
|
|
|
#line 112 "..\..\Views\Job\LogRepairError.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </td>\r\n </tr>\r\n <tr>\r\n <th>Repair Descriptio" +
|
|
"n:\r\n </th>\r\n <td>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 119 "..\..\Views\Job\LogRepairError.cshtml"
|
|
Write(Model.RepairDescription.ToMultilineString());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </td>\r\n </tr>\r\n </table>\r\n</div>\r\n<div");
|
|
|
|
WriteLiteral(" class=\"actionBar\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 125 "..\..\Views\Job\LogRepairError.cshtml"
|
|
Write(Html.ActionLinkButton("Try Again", MVC.Job.LogRepair(Model.JobId, null, null)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 126 "..\..\Views\Job\LogRepairError.cshtml"
|
|
Write(Html.ActionLinkButton("Return to Job", MVC.Job.Show(Model.JobId)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n</div>");
|
|
|
|
}
|
|
}
|
|
}
|
|
#pragma warning restore 1591
|