Permissions & Authorization for Users #24
Initial Release; Includes Database and MVC refactoring
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.18033
|
||||
// Runtime Version:4.0.30319.18051
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
@@ -28,12 +28,14 @@ namespace Disco.Web.Views.Job
|
||||
using System.Web.WebPages;
|
||||
using Disco.BI.Extensions;
|
||||
using Disco.Models.Repository;
|
||||
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/LogWarrantyDisclose.cshtml")]
|
||||
public partial class LogWarrantyDisclose : System.Web.Mvc.WebViewPage<Disco.Web.Models.Job.LogWarrantyModel>
|
||||
public partial class LogWarrantyDisclose : Disco.Services.Web.WebViewPage<Disco.Web.Models.Job.LogWarrantyModel>
|
||||
{
|
||||
public LogWarrantyDisclose()
|
||||
{
|
||||
@@ -43,6 +45,8 @@ namespace Disco.Web.Views.Job
|
||||
|
||||
#line 2 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
|
||||
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");
|
||||
|
||||
|
||||
@@ -51,7 +55,7 @@ namespace Disco.Web.Views.Job
|
||||
WriteLiteral("\r\n");
|
||||
|
||||
|
||||
#line 5 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 7 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
using (Html.BeginForm(MVC.Job.LogWarranty(), FormMethod.Post))
|
||||
{
|
||||
|
||||
@@ -59,84 +63,84 @@ WriteLiteral("\r\n");
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 7 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 9 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
Write(Html.ValidationSummary(true));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 7 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 9 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 8 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 10 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
Write(Html.HiddenFor(m => m.JobId));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 8 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 10 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 9 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 11 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
Write(Html.HiddenFor(m => m.OrganisationAddressId));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 9 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 11 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 10 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 12 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
Write(Html.HiddenFor(m => m.WarrantyProviderId));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 10 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 12 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 11 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 13 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
Write(Html.HiddenFor(m => m.FaultDescription));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 11 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 13 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 12 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 14 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
Write(Html.HiddenFor(m => m.WarrantyProviderPropertiesJson));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 12 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 14 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
|
||||
|
||||
|
||||
@@ -166,7 +170,7 @@ WriteLiteral(">\r\n <table>\r\n <tr>\r\n <th>\r
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 21 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 23 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
Write(Model.JobId);
|
||||
|
||||
|
||||
@@ -179,7 +183,7 @@ WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 29 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 31 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
Write(Model.Job.Device.SerialNumber);
|
||||
|
||||
|
||||
@@ -192,7 +196,7 @@ WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 37 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 39 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
Write(Model.Job.Device.DeviceModel.Manufacturer);
|
||||
|
||||
|
||||
@@ -201,7 +205,7 @@ WriteLiteral(" ");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 37 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 39 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
Write(Model.Job.Device.DeviceModel.Model);
|
||||
|
||||
|
||||
@@ -214,7 +218,7 @@ WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 45 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 47 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
Write(Model.TechUser.DisplayName);
|
||||
|
||||
|
||||
@@ -227,7 +231,7 @@ WriteLiteral(" class=\"smallMessage\"");
|
||||
WriteLiteral(">\r\n Email Address: ");
|
||||
|
||||
|
||||
#line 47 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 49 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
Write(Model.TechUser.EmailAddress);
|
||||
|
||||
|
||||
@@ -236,7 +240,7 @@ WriteLiteral(">\r\n Email Address: ");
|
||||
WriteLiteral("<br />\r\n Phone Number: ");
|
||||
|
||||
|
||||
#line 48 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 50 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
Write(Model.TechUser.PhoneNumber);
|
||||
|
||||
|
||||
@@ -257,7 +261,7 @@ WriteLiteral(">\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 58 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 60 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
Write(Model.OrganisationAddress.Name);
|
||||
|
||||
|
||||
@@ -270,7 +274,7 @@ WriteLiteral(" class=\"smallMessage\"");
|
||||
WriteLiteral(">\r\n <span>");
|
||||
|
||||
|
||||
#line 60 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 62 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
Write(Model.OrganisationAddress.Address);
|
||||
|
||||
|
||||
@@ -279,7 +283,7 @@ WriteLiteral(">\r\n <span>");
|
||||
WriteLiteral("</span><br />\r\n <span>");
|
||||
|
||||
|
||||
#line 61 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 63 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
Write(Model.OrganisationAddress.Suburb);
|
||||
|
||||
|
||||
@@ -288,7 +292,7 @@ WriteLiteral("</span><br />\r\n <span>");
|
||||
WriteLiteral(", ");
|
||||
|
||||
|
||||
#line 61 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 63 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
Write(Model.OrganisationAddress.Postcode);
|
||||
|
||||
|
||||
@@ -297,7 +301,7 @@ WriteLiteral(", ");
|
||||
WriteLiteral("</span><br />\r\n <span>");
|
||||
|
||||
|
||||
#line 62 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 64 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
Write(Model.OrganisationAddress.State);
|
||||
|
||||
|
||||
@@ -306,7 +310,7 @@ WriteLiteral("</span><br />\r\n <span>");
|
||||
WriteLiteral(", ");
|
||||
|
||||
|
||||
#line 62 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 64 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
Write(Model.OrganisationAddress.Country);
|
||||
|
||||
|
||||
@@ -319,7 +323,7 @@ WriteLiteral("</span>\r\n </div>\r\n <
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 72 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 74 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
Write(Model.WarrantyProvider.Name);
|
||||
|
||||
|
||||
@@ -328,7 +332,7 @@ WriteLiteral(" ");
|
||||
WriteLiteral(" (");
|
||||
|
||||
|
||||
#line 72 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 74 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
Write(Model.WarrantyProvider.Id);
|
||||
|
||||
|
||||
@@ -337,7 +341,7 @@ WriteLiteral(" (");
|
||||
WriteLiteral(") ");
|
||||
|
||||
|
||||
#line 72 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 74 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
Write(Model.WarrantyProvider.PluginManifest.Version.ToString(3));
|
||||
|
||||
|
||||
@@ -350,7 +354,7 @@ WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 80 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 82 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
Write(Model.FaultDescription.ToMultilineString());
|
||||
|
||||
|
||||
@@ -365,13 +369,13 @@ WriteLiteral(" id=\"warrantyDisclosedInformation\"");
|
||||
WriteLiteral(">\r\n <table>\r\n");
|
||||
|
||||
|
||||
#line 90 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 92 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 90 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 92 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
foreach (var dp in Model.DiscloseProperties)
|
||||
{
|
||||
|
||||
@@ -381,7 +385,7 @@ WriteLiteral(">\r\n <table>\r\n");
|
||||
WriteLiteral(" <tr>\r\n <th>");
|
||||
|
||||
|
||||
#line 93 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 95 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
Write(dp.Key);
|
||||
|
||||
|
||||
@@ -391,7 +395,7 @@ WriteLiteral(":\r\n </th>\r\n
|
||||
" <td>");
|
||||
|
||||
|
||||
#line 95 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 97 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
Write(dp.Value);
|
||||
|
||||
|
||||
@@ -401,7 +405,7 @@ WriteLiteral("\r\n </td>\r\n
|
||||
"> \r\n");
|
||||
|
||||
|
||||
#line 98 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 100 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -425,7 +429,7 @@ WriteLiteral(" value=\"Submit Warranty Claim\"");
|
||||
WriteLiteral(" />\r\n </div>\r\n");
|
||||
|
||||
|
||||
#line 108 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
#line 110 "..\..\Views\Job\LogWarrantyDisclose.cshtml"
|
||||
}
|
||||
|
||||
#line default
|
||||
|
||||
Reference in New Issue
Block a user