Permissions & Authorization for Users #24

Initial Release; Includes Database and MVC refactoring
This commit is contained in:
Gary Sharp
2013-10-10 19:13:16 +11:00
parent 172ce5524a
commit a099d68915
458 changed files with 40221 additions and 12130 deletions
@@ -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/LogWarrantyError.cshtml")]
public partial class LogWarrantyError : System.Web.Mvc.WebViewPage<Disco.Web.Models.Job.LogWarrantyModel>
public partial class LogWarrantyError : Disco.Services.Web.WebViewPage<Disco.Web.Models.Job.LogWarrantyModel>
{
public LogWarrantyError()
{
@@ -43,6 +45,8 @@ namespace Disco.Web.Views.Job
#line 2 "..\..\Views\Job\LogWarrantyError.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 Error");
@@ -58,7 +62,7 @@ WriteLiteral(">\r\n <h2>\r\n Submission Error</h2>\r\n <table>\r\n
" <td>\r\n <div>\r\n <strong>");
#line 12 "..\..\Views\Job\LogWarrantyError.cshtml"
#line 14 "..\..\Views\Job\LogWarrantyError.cshtml"
Write(Model.Error.Message);
@@ -81,7 +85,7 @@ WriteLiteral(" style=\"display: none\"");
WriteLiteral(">\r\n <br />\r\n <strong>Error Type: </strong>");
#line 17 "..\..\Views\Job\LogWarrantyError.cshtml"
#line 19 "..\..\Views\Job\LogWarrantyError.cshtml"
Write(Model.Error.GetType().Name);
@@ -97,7 +101,7 @@ WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 21 "..\..\Views\Job\LogWarrantyError.cshtml"
#line 23 "..\..\Views\Job\LogWarrantyError.cshtml"
Write(Model.Error.StackTrace.ToMultilineString());
@@ -106,13 +110,13 @@ WriteLiteral(" ");
WriteLiteral("\r\n </div>\r\n");
#line 23 "..\..\Views\Job\LogWarrantyError.cshtml"
#line 25 "..\..\Views\Job\LogWarrantyError.cshtml"
#line default
#line hidden
#line 23 "..\..\Views\Job\LogWarrantyError.cshtml"
#line 25 "..\..\Views\Job\LogWarrantyError.cshtml"
if (Model.Error.InnerException != null)
{
@@ -125,7 +129,7 @@ WriteLiteral(" <div>\r\n <stro
"n:</strong> ");
#line 27 "..\..\Views\Job\LogWarrantyError.cshtml"
#line 29 "..\..\Views\Job\LogWarrantyError.cshtml"
Write(Model.Error.InnerException.Message);
@@ -134,7 +138,7 @@ WriteLiteral(" <div>\r\n <stro
WriteLiteral("<br />\r\n <strong>Error Type:</strong> ");
#line 28 "..\..\Views\Job\LogWarrantyError.cshtml"
#line 30 "..\..\Views\Job\LogWarrantyError.cshtml"
Write(Model.Error.GetType().Name);
@@ -150,7 +154,7 @@ WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 31 "..\..\Views\Job\LogWarrantyError.cshtml"
#line 33 "..\..\Views\Job\LogWarrantyError.cshtml"
Write(Model.Error.InnerException.StackTrace);
@@ -159,7 +163,7 @@ WriteLiteral(" ");
WriteLiteral("\r\n </div>\r\n </div>\r\n");
#line 34 "..\..\Views\Job\LogWarrantyError.cshtml"
#line 36 "..\..\Views\Job\LogWarrantyError.cshtml"
}
@@ -196,7 +200,7 @@ WriteLiteral(">\r\n <h2>\r\n Warranty Submission Details</h2>\r\n <
WriteLiteral(" ");
#line 57 "..\..\Views\Job\LogWarrantyError.cshtml"
#line 59 "..\..\Views\Job\LogWarrantyError.cshtml"
Write(Model.JobId);
@@ -208,7 +212,7 @@ WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n
WriteLiteral(" ");
#line 65 "..\..\Views\Job\LogWarrantyError.cshtml"
#line 67 "..\..\Views\Job\LogWarrantyError.cshtml"
Write(Model.Job.Device.SerialNumber);
@@ -220,7 +224,7 @@ WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n
WriteLiteral(" ");
#line 73 "..\..\Views\Job\LogWarrantyError.cshtml"
#line 75 "..\..\Views\Job\LogWarrantyError.cshtml"
Write(Model.Job.Device.DeviceModel.Manufacturer);
@@ -229,7 +233,7 @@ WriteLiteral(" ");
WriteLiteral(" ");
#line 73 "..\..\Views\Job\LogWarrantyError.cshtml"
#line 75 "..\..\Views\Job\LogWarrantyError.cshtml"
Write(Model.Job.Device.DeviceModel.Model);
@@ -241,7 +245,7 @@ WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n
WriteLiteral(" ");
#line 81 "..\..\Views\Job\LogWarrantyError.cshtml"
#line 83 "..\..\Views\Job\LogWarrantyError.cshtml"
Write(Model.TechUser.DisplayName);
@@ -254,7 +258,7 @@ WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">\r\n Email Address: ");
#line 83 "..\..\Views\Job\LogWarrantyError.cshtml"
#line 85 "..\..\Views\Job\LogWarrantyError.cshtml"
Write(Model.TechUser.EmailAddress);
@@ -263,7 +267,7 @@ WriteLiteral(">\r\n Email Address: ");
WriteLiteral("<br />\r\n Phone Number: ");
#line 84 "..\..\Views\Job\LogWarrantyError.cshtml"
#line 86 "..\..\Views\Job\LogWarrantyError.cshtml"
Write(Model.TechUser.PhoneNumber);
@@ -284,7 +288,7 @@ WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 94 "..\..\Views\Job\LogWarrantyError.cshtml"
#line 96 "..\..\Views\Job\LogWarrantyError.cshtml"
Write(Model.OrganisationAddress.Name);
@@ -297,7 +301,7 @@ WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">\r\n <span>");
#line 96 "..\..\Views\Job\LogWarrantyError.cshtml"
#line 98 "..\..\Views\Job\LogWarrantyError.cshtml"
Write(Model.OrganisationAddress.Address);
@@ -306,7 +310,7 @@ WriteLiteral(">\r\n <span>");
WriteLiteral("</span><br />\r\n <span>");
#line 97 "..\..\Views\Job\LogWarrantyError.cshtml"
#line 99 "..\..\Views\Job\LogWarrantyError.cshtml"
Write(Model.OrganisationAddress.Suburb);
@@ -315,7 +319,7 @@ WriteLiteral("</span><br />\r\n <span>");
WriteLiteral(", ");
#line 97 "..\..\Views\Job\LogWarrantyError.cshtml"
#line 99 "..\..\Views\Job\LogWarrantyError.cshtml"
Write(Model.OrganisationAddress.Postcode);
@@ -324,7 +328,7 @@ WriteLiteral(", ");
WriteLiteral("</span><br />\r\n <span>");
#line 98 "..\..\Views\Job\LogWarrantyError.cshtml"
#line 100 "..\..\Views\Job\LogWarrantyError.cshtml"
Write(Model.OrganisationAddress.State);
@@ -333,7 +337,7 @@ WriteLiteral("</span><br />\r\n <span>");
WriteLiteral(", ");
#line 98 "..\..\Views\Job\LogWarrantyError.cshtml"
#line 100 "..\..\Views\Job\LogWarrantyError.cshtml"
Write(Model.OrganisationAddress.Country);
@@ -346,7 +350,7 @@ WriteLiteral("</span>\r\n </div>\r\n </div>\r\
WriteLiteral(" ");
#line 108 "..\..\Views\Job\LogWarrantyError.cshtml"
#line 110 "..\..\Views\Job\LogWarrantyError.cshtml"
Write(Model.WarrantyProvider.Name);
@@ -355,7 +359,7 @@ WriteLiteral(" ");
WriteLiteral(" (");
#line 108 "..\..\Views\Job\LogWarrantyError.cshtml"
#line 110 "..\..\Views\Job\LogWarrantyError.cshtml"
Write(Model.WarrantyProvider.Id);
@@ -364,7 +368,7 @@ WriteLiteral(" (");
WriteLiteral(") ");
#line 108 "..\..\Views\Job\LogWarrantyError.cshtml"
#line 110 "..\..\Views\Job\LogWarrantyError.cshtml"
Write(Model.WarrantyProvider.PluginManifest.Version.ToString(3));
@@ -376,7 +380,7 @@ WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n
WriteLiteral(" ");
#line 116 "..\..\Views\Job\LogWarrantyError.cshtml"
#line 118 "..\..\Views\Job\LogWarrantyError.cshtml"
Write(Model.FaultDescription.ToMultilineString());
@@ -391,7 +395,7 @@ WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 122 "..\..\Views\Job\LogWarrantyError.cshtml"
#line 124 "..\..\Views\Job\LogWarrantyError.cshtml"
Write(Html.ActionLinkButton("Try Again", MVC.Job.LogWarranty(Model.JobId, null, null)));
@@ -402,7 +406,7 @@ WriteLiteral("\r\n");
WriteLiteral(" ");
#line 123 "..\..\Views\Job\LogWarrantyError.cshtml"
#line 125 "..\..\Views\Job\LogWarrantyError.cshtml"
Write(Html.ActionLinkButton("Return to Job", MVC.Job.Show(Model.JobId)));