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.Shared
|
||||
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/Shared/Error.cshtml")]
|
||||
public partial class Error : System.Web.Mvc.WebViewPage<System.Web.Mvc.HandleErrorInfo>
|
||||
public partial class Error : Disco.Services.Web.WebViewPage<System.Web.Mvc.HandleErrorInfo>
|
||||
{
|
||||
public Error()
|
||||
{
|
||||
|
||||
@@ -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.Shared
|
||||
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/Shared/_DialogLayout.cshtml")]
|
||||
public partial class DialogLayout : System.Web.Mvc.WebViewPage<dynamic>
|
||||
public partial class DialogLayout : Disco.Services.Web.WebViewPage<dynamic>
|
||||
{
|
||||
public DialogLayout()
|
||||
{
|
||||
|
||||
@@ -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.Shared
|
||||
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/Shared/_EmptyLayout.cshtml")]
|
||||
public partial class EmptyLayout : System.Web.Mvc.WebViewPage<dynamic>
|
||||
public partial class EmptyLayout : Disco.Services.Web.WebViewPage<dynamic>
|
||||
{
|
||||
public EmptyLayout()
|
||||
{
|
||||
|
||||
@@ -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.Shared
|
||||
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/Shared/_JobTable.cshtml")]
|
||||
public partial class JobTable : System.Web.Mvc.WebViewPage<Disco.Models.BI.Job.JobTableModel>
|
||||
public partial class JobTable : Disco.Services.Web.WebViewPage<Disco.Models.BI.Job.JobTableModel>
|
||||
{
|
||||
public JobTable()
|
||||
{
|
||||
|
||||
@@ -9,36 +9,28 @@
|
||||
<thead>
|
||||
<tr>
|
||||
@if (Model.ShowId)
|
||||
{ <th class="id">
|
||||
Ref
|
||||
{ <th class="id">Ref
|
||||
</th> }
|
||||
@if (Model.ShowStatus)
|
||||
{ <th class="status">
|
||||
Status
|
||||
{ <th class="status">Status
|
||||
</th> }
|
||||
@if (Model.ShowDates)
|
||||
{ <th class="dates">
|
||||
Dates
|
||||
{ <th class="dates">Dates
|
||||
</th> }
|
||||
@if (Model.ShowType)
|
||||
{ <th class="type">
|
||||
Type
|
||||
{ <th class="type">Type
|
||||
</th> }
|
||||
@if (Model.ShowDevice)
|
||||
{<th class="device">
|
||||
Device
|
||||
{<th class="device">Device
|
||||
</th> }
|
||||
@if (Model.ShowUser)
|
||||
{ <th class="user">
|
||||
User
|
||||
{ <th class="user">User
|
||||
</th> }
|
||||
@if (Model.ShowTechnician)
|
||||
{ <th class="technician">
|
||||
Technician
|
||||
{ <th class="technician">Technician
|
||||
</th> }
|
||||
@if (Model.ShowLocation)
|
||||
{ <th class="location">
|
||||
Location
|
||||
{ <th class="location">Location
|
||||
</th> }
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -48,7 +40,14 @@
|
||||
<tr data-id="@(item.Id)" data-status="@(Model.ShowStatus ? item.StatusId : null)">
|
||||
@if (Model.ShowId)
|
||||
{ <td class="id">
|
||||
@Html.ActionLink(item.Id.ToString(), MVC.Job.Show(item.Id))
|
||||
@if (Authorization.Has(Claims.Job.Show))
|
||||
{
|
||||
@Html.ActionLink(item.Id.ToString(), MVC.Job.Show(item.Id))
|
||||
}
|
||||
else
|
||||
{
|
||||
@item.Id.ToString()
|
||||
}
|
||||
</td> }
|
||||
@if (Model.ShowStatus)
|
||||
{ <td class="status">
|
||||
@@ -68,7 +67,14 @@
|
||||
{ <td class="device">
|
||||
@if (item.DeviceSerialNumber != null)
|
||||
{
|
||||
if (Authorization.Has(Claims.Device.Show))
|
||||
{
|
||||
@Html.ActionLink(item.DeviceSerialNumber, MVC.Device.Show(item.DeviceSerialNumber), new { Title = item.DeviceModelDescription })
|
||||
}
|
||||
else
|
||||
{
|
||||
<span title="@item.DeviceModelDescription">@item.DeviceSerialNumber</span>
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -79,7 +85,14 @@
|
||||
{<td class="user">
|
||||
@if (item.UserId != null)
|
||||
{
|
||||
if (Authorization.Has(Claims.User.Show))
|
||||
{
|
||||
@Html.ActionLink(string.Format("{0} ({1})", item.UserDisplayName, item.UserId), MVC.User.Show(item.UserId))
|
||||
}
|
||||
else
|
||||
{
|
||||
@(string.Format("{0} ({1})", item.UserDisplayName, item.UserId))
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -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.Shared
|
||||
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/Shared/_JobTableRender.cshtml")]
|
||||
public partial class JobTableRender : System.Web.Mvc.WebViewPage<Disco.Models.BI.Job.JobTableModel>
|
||||
public partial class JobTableRender : Disco.Services.Web.WebViewPage<Disco.Models.BI.Job.JobTableModel>
|
||||
{
|
||||
public JobTableRender()
|
||||
{
|
||||
@@ -121,10 +123,10 @@ WriteLiteral(" <th");
|
||||
|
||||
WriteLiteral(" class=\"id\"");
|
||||
|
||||
WriteLiteral(">\r\n Ref\r\n </th> ");
|
||||
WriteLiteral(">Ref\r\n </th> ");
|
||||
|
||||
|
||||
#line 14 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 13 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -133,7 +135,7 @@ WriteLiteral(">\r\n Ref\r\n </th> ");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 15 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 14 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
if (Model.ShowStatus)
|
||||
{
|
||||
|
||||
@@ -143,10 +145,10 @@ WriteLiteral(" <th");
|
||||
|
||||
WriteLiteral(" class=\"status\"");
|
||||
|
||||
WriteLiteral(">\r\n Status\r\n </th> ");
|
||||
WriteLiteral(">Status\r\n </th> ");
|
||||
|
||||
|
||||
#line 18 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 16 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -155,7 +157,7 @@ WriteLiteral(">\r\n Status\r\n </th> "
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 19 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 17 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
if (Model.ShowDates)
|
||||
{
|
||||
|
||||
@@ -165,7 +167,29 @@ WriteLiteral(" <th");
|
||||
|
||||
WriteLiteral(" class=\"dates\"");
|
||||
|
||||
WriteLiteral(">\r\n Dates\r\n </th> ");
|
||||
WriteLiteral(">Dates\r\n </th> ");
|
||||
|
||||
|
||||
#line 19 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 20 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
if (Model.ShowType)
|
||||
{
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <th");
|
||||
|
||||
WriteLiteral(" class=\"type\"");
|
||||
|
||||
WriteLiteral(">Type\r\n </th> ");
|
||||
|
||||
|
||||
#line 22 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
@@ -178,28 +202,6 @@ WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 23 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
if (Model.ShowType)
|
||||
{
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <th");
|
||||
|
||||
WriteLiteral(" class=\"type\"");
|
||||
|
||||
WriteLiteral(">\r\n Type\r\n </th> ");
|
||||
|
||||
|
||||
#line 26 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 27 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
if (Model.ShowDevice)
|
||||
{
|
||||
|
||||
@@ -209,10 +211,10 @@ WriteLiteral("<th");
|
||||
|
||||
WriteLiteral(" class=\"device\"");
|
||||
|
||||
WriteLiteral(">\r\n Device\r\n </th> ");
|
||||
WriteLiteral(">Device\r\n </th> ");
|
||||
|
||||
|
||||
#line 30 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 25 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -221,7 +223,7 @@ WriteLiteral(">\r\n Device\r\n </th> "
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 31 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 26 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
if (Model.ShowUser)
|
||||
{
|
||||
|
||||
@@ -231,10 +233,10 @@ WriteLiteral(" <th");
|
||||
|
||||
WriteLiteral(" class=\"user\"");
|
||||
|
||||
WriteLiteral(">\r\n User\r\n </th> ");
|
||||
WriteLiteral(">User\r\n </th> ");
|
||||
|
||||
|
||||
#line 34 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 28 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -243,7 +245,7 @@ WriteLiteral(">\r\n User\r\n </th> ");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 35 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 29 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
if (Model.ShowTechnician)
|
||||
{
|
||||
|
||||
@@ -253,10 +255,10 @@ WriteLiteral(" <th");
|
||||
|
||||
WriteLiteral(" class=\"technician\"");
|
||||
|
||||
WriteLiteral(">\r\n Technician\r\n </th> ");
|
||||
WriteLiteral(">Technician\r\n </th> ");
|
||||
|
||||
|
||||
#line 38 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 31 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -265,7 +267,7 @@ WriteLiteral(">\r\n Technician\r\n </t
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 39 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 32 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
if (Model.ShowLocation)
|
||||
{
|
||||
|
||||
@@ -275,10 +277,10 @@ WriteLiteral(" <th");
|
||||
|
||||
WriteLiteral(" class=\"location\"");
|
||||
|
||||
WriteLiteral(">\r\n Location\r\n </th> ");
|
||||
WriteLiteral(">Location\r\n </th> ");
|
||||
|
||||
|
||||
#line 42 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 34 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -287,13 +289,13 @@ WriteLiteral(">\r\n Location\r\n </th>
|
||||
WriteLiteral(" </tr>\r\n </thead>\r\n <tbody>\r\n");
|
||||
|
||||
|
||||
#line 46 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 38 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 46 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 38 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
foreach (var item in Model.Items)
|
||||
{
|
||||
|
||||
@@ -305,7 +307,7 @@ WriteLiteral(" <tr");
|
||||
WriteLiteral(" data-id=\"");
|
||||
|
||||
|
||||
#line 48 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 40 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
Write(item.Id);
|
||||
|
||||
|
||||
@@ -316,7 +318,7 @@ WriteLiteral("\"");
|
||||
WriteLiteral(" data-status=\"");
|
||||
|
||||
|
||||
#line 48 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 40 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
Write(Model.ShowStatus ? item.StatusId : null);
|
||||
|
||||
|
||||
@@ -327,13 +329,13 @@ WriteLiteral("\"");
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 49 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 41 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 49 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 41 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
if (Model.ShowId)
|
||||
{
|
||||
|
||||
@@ -345,19 +347,56 @@ WriteLiteral(" class=\"id\"");
|
||||
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 51 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
Write(Html.ActionLink(item.Id.ToString(), MVC.Job.Show(item.Id)));
|
||||
#line 43 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 43 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
if (Authorization.Has(Claims.Job.Show))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 45 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
Write(Html.ActionLink(item.Id.ToString(), MVC.Job.Show(item.Id)));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n </td> ");
|
||||
|
||||
#line 45 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 49 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
Write(item.Id.ToString());
|
||||
|
||||
|
||||
#line 52 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 49 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" </td> ");
|
||||
|
||||
|
||||
#line 51 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -366,7 +405,7 @@ WriteLiteral("\r\n </td> ");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 53 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 52 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
if (Model.ShowStatus)
|
||||
{
|
||||
|
||||
@@ -378,16 +417,16 @@ WriteLiteral(" class=\"status\"");
|
||||
|
||||
WriteLiteral(">\r\n <span");
|
||||
|
||||
WriteAttribute("class", Tuple.Create(" class=\"", 2259), Tuple.Create("\"", 2297)
|
||||
, Tuple.Create(Tuple.Create("", 2267), Tuple.Create("icon", 2267), true)
|
||||
, Tuple.Create(Tuple.Create(" ", 2271), Tuple.Create("JobStatus", 2272), true)
|
||||
WriteAttribute("class", Tuple.Create(" class=\"", 2336), Tuple.Create("\"", 2374)
|
||||
, Tuple.Create(Tuple.Create("", 2344), Tuple.Create("icon", 2344), true)
|
||||
, Tuple.Create(Tuple.Create(" ", 2348), Tuple.Create("JobStatus", 2349), true)
|
||||
|
||||
#line 55 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 2281), Tuple.Create<System.Object, System.Int32>(item.StatusId
|
||||
#line 54 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 2358), Tuple.Create<System.Object, System.Int32>(item.StatusId
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 2281), false)
|
||||
, 2358), false)
|
||||
);
|
||||
|
||||
WriteLiteral("></span>\r\n");
|
||||
@@ -395,7 +434,7 @@ WriteLiteral("></span>\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 56 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 55 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
Write(item.StatusDescription);
|
||||
|
||||
|
||||
@@ -404,7 +443,7 @@ WriteLiteral(" ");
|
||||
WriteLiteral("\r\n </td> ");
|
||||
|
||||
|
||||
#line 57 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 56 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -413,7 +452,7 @@ WriteLiteral("\r\n </td> ");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 58 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 57 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
if (Model.ShowDates)
|
||||
{
|
||||
|
||||
@@ -428,7 +467,7 @@ WriteLiteral(">\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 60 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 59 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
Write(CommonHelpers.FriendlyDate(item.OpenedDate));
|
||||
|
||||
|
||||
@@ -437,7 +476,7 @@ WriteLiteral(" ");
|
||||
WriteLiteral("\r\n - ");
|
||||
|
||||
|
||||
#line 61 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 60 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
Write(CommonHelpers.FriendlyDate(item.ClosedDate));
|
||||
|
||||
|
||||
@@ -446,7 +485,7 @@ WriteLiteral("\r\n - ");
|
||||
WriteLiteral("\r\n </td>");
|
||||
|
||||
|
||||
#line 62 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 61 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -455,7 +494,7 @@ WriteLiteral("\r\n </td>");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 63 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 62 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
if (Model.ShowType)
|
||||
{
|
||||
|
||||
@@ -467,20 +506,20 @@ WriteLiteral(" class=\"type\"");
|
||||
|
||||
WriteLiteral(">\r\n <span");
|
||||
|
||||
WriteAttribute("title", Tuple.Create(" title=\"", 2793), Tuple.Create("\"", 2822)
|
||||
WriteAttribute("title", Tuple.Create(" title=\"", 2870), Tuple.Create("\"", 2899)
|
||||
|
||||
#line 65 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 2801), Tuple.Create<System.Object, System.Int32>(item.TypeDescription
|
||||
#line 64 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 2878), Tuple.Create<System.Object, System.Int32>(item.TypeDescription
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 2801), false)
|
||||
, 2878), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 65 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 64 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
Write(item.TypeId);
|
||||
|
||||
|
||||
@@ -489,7 +528,7 @@ WriteLiteral(">");
|
||||
WriteLiteral("</span>\r\n </td>");
|
||||
|
||||
|
||||
#line 66 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 65 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -498,7 +537,7 @@ WriteLiteral("</span>\r\n </td>");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 67 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 66 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
if (Model.ShowDevice)
|
||||
{
|
||||
|
||||
@@ -511,29 +550,64 @@ WriteLiteral(" class=\"device\"");
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 69 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 68 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 69 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 68 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
if (item.DeviceSerialNumber != null)
|
||||
{
|
||||
if (Authorization.Has(Claims.Device.Show))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 71 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 72 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
Write(Html.ActionLink(item.DeviceSerialNumber, MVC.Device.Show(item.DeviceSerialNumber), new { Title = item.DeviceModelDescription }));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 71 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 72 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <span");
|
||||
|
||||
WriteAttribute("title", Tuple.Create(" title=\"", 3565), Tuple.Create("\"", 3601)
|
||||
|
||||
#line 76 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 3573), Tuple.Create<System.Object, System.Int32>(item.DeviceModelDescription
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 3573), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 76 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
Write(item.DeviceSerialNumber);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</span>\r\n");
|
||||
|
||||
|
||||
#line 77 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -548,7 +622,7 @@ WriteLiteral(" class=\"smallMessage\"");
|
||||
WriteLiteral(">N/A</span>\r\n");
|
||||
|
||||
|
||||
#line 76 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 82 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -557,7 +631,7 @@ WriteLiteral(">N/A</span>\r\n");
|
||||
WriteLiteral(" </td> ");
|
||||
|
||||
|
||||
#line 77 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 83 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -566,7 +640,7 @@ WriteLiteral(" </td> ");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 78 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 84 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
if (Model.ShowUser)
|
||||
{
|
||||
|
||||
@@ -579,29 +653,49 @@ WriteLiteral(" class=\"user\"");
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 80 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 86 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 80 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 86 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
if (item.UserId != null)
|
||||
{
|
||||
if (Authorization.Has(Claims.User.Show))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 82 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 90 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
Write(Html.ActionLink(string.Format("{0} ({1})", item.UserDisplayName, item.UserId), MVC.User.Show(item.UserId)));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 82 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 90 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 94 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
Write(string.Format("{0} ({1})", item.UserDisplayName, item.UserId));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 94 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -616,7 +710,7 @@ WriteLiteral(" class=\"smallMessage\"");
|
||||
WriteLiteral(">N/A</span>\r\n");
|
||||
|
||||
|
||||
#line 87 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 100 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -625,7 +719,7 @@ WriteLiteral(">N/A</span>\r\n");
|
||||
WriteLiteral(" </td>");
|
||||
|
||||
|
||||
#line 88 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 101 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -634,7 +728,7 @@ WriteLiteral(" </td>");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 89 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 102 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
if (Model.ShowTechnician)
|
||||
{
|
||||
|
||||
@@ -646,20 +740,20 @@ WriteLiteral(" class=\"technician\"");
|
||||
|
||||
WriteLiteral(">\r\n <span");
|
||||
|
||||
WriteAttribute("title", Tuple.Create(" title=\"", 4148), Tuple.Create("\"", 4187)
|
||||
WriteAttribute("title", Tuple.Create(" title=\"", 4937), Tuple.Create("\"", 4976)
|
||||
|
||||
#line 91 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 4156), Tuple.Create<System.Object, System.Int32>(item.OpenedTechUserDisplayName
|
||||
#line 104 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 4945), Tuple.Create<System.Object, System.Int32>(item.OpenedTechUserDisplayName
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 4156), false)
|
||||
, 4945), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 91 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 104 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
Write(item.OpenedTechUserId);
|
||||
|
||||
|
||||
@@ -668,7 +762,7 @@ WriteLiteral(">");
|
||||
WriteLiteral("\r\n </span>\r\n </td>");
|
||||
|
||||
|
||||
#line 93 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 106 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -677,7 +771,7 @@ WriteLiteral("\r\n </span>\r\n
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 94 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 107 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
if (Model.ShowLocation)
|
||||
{
|
||||
|
||||
@@ -690,7 +784,7 @@ WriteLiteral(" class=\"technician\"");
|
||||
WriteLiteral(">\r\n <span>");
|
||||
|
||||
|
||||
#line 96 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 109 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
Write(item.Location ?? "Unknown");
|
||||
|
||||
|
||||
@@ -699,7 +793,7 @@ WriteLiteral(">\r\n <span>");
|
||||
WriteLiteral("\r\n </span>\r\n </td>");
|
||||
|
||||
|
||||
#line 98 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 111 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -708,7 +802,7 @@ WriteLiteral("\r\n </span>\r\n
|
||||
WriteLiteral(" </tr>\r\n");
|
||||
|
||||
|
||||
#line 100 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 113 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -717,7 +811,7 @@ WriteLiteral(" </tr>\r\n");
|
||||
WriteLiteral(" </tbody>\r\n </table>\r\n");
|
||||
|
||||
|
||||
#line 103 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 116 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -732,7 +826,7 @@ WriteLiteral(" class=\"smallMessage\"");
|
||||
WriteLiteral(">No Jobs Found</span>\r\n");
|
||||
|
||||
|
||||
#line 107 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
#line 120 "..\..\Views\Shared\_JobTableRender.cshtml"
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -22,28 +22,72 @@
|
||||
<img src="@Links.ClientSource.Style.Images.Heading_png" alt="DISCO - ICT Asset Management" /></a>
|
||||
</div>
|
||||
<div id="headerMenu">
|
||||
<span>Welcome @Html.ActionLink(DiscoApplication.CurrentUser.ToString(), MVC.User.Show(DiscoApplication.CurrentUser.Id))</span>
|
||||
@using (Html.BeginForm(MVC.Search.Query(), FormMethod.Get)) { @Html.TextBox("term", null, new { accesskey = "s" }) }
|
||||
<span>Welcome @if (Authorization.Has(Claims.User.Show))
|
||||
{ @Html.ActionLink(CurrentUser.ToString(), MVC.User.Show(CurrentUser.Id))}
|
||||
else
|
||||
{@CurrentUser.ToString()}</span>
|
||||
@using (Html.BeginForm(MVC.Search.Query(), FormMethod.Get))
|
||||
{ @Html.TextBox("term", null, new { accesskey = "s" }) }
|
||||
</div>
|
||||
</div>
|
||||
<nav>
|
||||
<ul id="menu">
|
||||
<li class="hasSubMenu">@Html.ActionLink("Jobs", MVC.Job.Index(), accesskey: "1")
|
||||
<ul class="subMenu">
|
||||
<li>@Html.ActionLink("Devices Ready for Return", MVC.Job.DevicesReadyForReturn())</li>
|
||||
<li>@Html.ActionLink("Device Held Locations", MVC.Job.Locations())</li>
|
||||
<li>@Html.ActionLink("Awaiting User Action", MVC.Job.AwaitingUserAction())</li>
|
||||
<li class="hasSubMenu">@Html.ActionLink("Awaiting Finance", MVC.Job.AwaitingFinance())
|
||||
<ul class="subMenu">
|
||||
<li>@Html.ActionLink("Accounting Charge", MVC.Job.AwaitingFinanceCharge())</li>
|
||||
<li>@Html.ActionLink("Accounting Payment", MVC.Job.AwaitingFinancePayment())</li>
|
||||
<li>@Html.ActionLink("Agreement Breach", MVC.Job.AwaitingFinanceAgreementBreach())</li>
|
||||
<li>@Html.ActionLink("Insurance Processing", MVC.Job.AwaitingFinanceInsuranceProcessing())</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>@Html.ActionLink("Awaiting Device Repair", MVC.Job.DevicesAwaitingRepair())</li>
|
||||
<li>@Html.ActionLink("All Open", MVC.Job.AllOpen())</li>
|
||||
<li>@Html.ActionLink("Recently Closed", MVC.Job.RecentlyClosed())</li>
|
||||
@if (Authorization.Has(Claims.Job.Lists.DevicesReadyForReturn))
|
||||
{
|
||||
<li>@Html.ActionLink("Devices Ready for Return", MVC.Job.DevicesReadyForReturn())</li>
|
||||
}
|
||||
@if (Authorization.Has(Claims.Job.Lists.Locations))
|
||||
{
|
||||
<li>@Html.ActionLink("Device Held Locations", MVC.Job.Locations())</li>
|
||||
}
|
||||
@if (Authorization.Has(Claims.Job.Lists.AwaitingUserAction))
|
||||
{
|
||||
<li>@Html.ActionLink("Awaiting User Action", MVC.Job.AwaitingUserAction())</li>
|
||||
}
|
||||
@if (Authorization.Has(Claims.Job.Lists.AwaitingFinance))
|
||||
{
|
||||
if (Authorization.HasAny(Claims.Job.Lists.AwaitingFinanceCharge, Claims.Job.Lists.AwaitingFinancePayment, Claims.Job.Lists.AwaitingFinanceAgreementBreach, Claims.Job.Lists.AwaitingFinanceInsuranceProcessing))
|
||||
{
|
||||
<li class="hasSubMenu">@Html.ActionLink("Awaiting Finance", MVC.Job.AwaitingFinance())
|
||||
<ul class="subMenu">
|
||||
@if (Authorization.Has(Claims.Job.Lists.AwaitingFinanceCharge))
|
||||
{
|
||||
<li>@Html.ActionLink("Accounting Charge", MVC.Job.AwaitingFinanceCharge())</li>
|
||||
}
|
||||
@if (Authorization.Has(Claims.Job.Lists.AwaitingFinancePayment))
|
||||
{
|
||||
<li>@Html.ActionLink("Accounting Payment", MVC.Job.AwaitingFinancePayment())</li>
|
||||
}
|
||||
@if (Authorization.Has(Claims.Job.Lists.AwaitingFinanceAgreementBreach))
|
||||
{
|
||||
<li>@Html.ActionLink("Agreement Breach", MVC.Job.AwaitingFinanceAgreementBreach())</li>
|
||||
}
|
||||
@if (Authorization.Has(Claims.Job.Lists.AwaitingFinanceInsuranceProcessing))
|
||||
{
|
||||
<li>@Html.ActionLink("Insurance Processing", MVC.Job.AwaitingFinanceInsuranceProcessing())</li>
|
||||
}
|
||||
</ul>
|
||||
</li>
|
||||
}
|
||||
else
|
||||
{
|
||||
<li>@Html.ActionLink("Awaiting Finance", MVC.Job.AwaitingFinance())</li>
|
||||
}
|
||||
}
|
||||
@if (Authorization.Has(Claims.Job.Lists.DevicesAwaitingRepair))
|
||||
{
|
||||
<li>@Html.ActionLink("Awaiting Device Repair", MVC.Job.DevicesAwaitingRepair())</li>
|
||||
}
|
||||
@if (Authorization.Has(Claims.Job.Lists.AllOpen))
|
||||
{
|
||||
<li>@Html.ActionLink("All Open", MVC.Job.AllOpen())</li>
|
||||
}
|
||||
@if (Authorization.Has(Claims.Job.Lists.RecentlyClosed))
|
||||
{
|
||||
<li>@Html.ActionLink("Recently Closed", MVC.Job.RecentlyClosed())</li>
|
||||
}
|
||||
</ul>
|
||||
</li>
|
||||
<li class="sep"></li>
|
||||
@@ -51,8 +95,11 @@
|
||||
<li class="sep"></li>
|
||||
<li>@Html.ActionLink("Users", MVC.User.Index(), accesskey: "3")</li>
|
||||
<li class="moveRight">@Html.ActionLink("Public Reports", MVC.Public.Public.Index())</li>
|
||||
<li class="sep"></li>
|
||||
<li>@Html.ActionLink("Configuration", MVC.Config.Config.Index(), accesskey: "0")</li>
|
||||
@if (Authorization.Has(Claims.Config.Show))
|
||||
{
|
||||
<li class="sep"></li>
|
||||
<li>@Html.ActionLink("Configuration", MVC.Config.Config.Index(), accesskey: "0")</li>
|
||||
}
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
@@ -28,12 +28,14 @@ namespace Disco.Web.Views.Shared
|
||||
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/Shared/_Layout.cshtml")]
|
||||
public partial class Layout : System.Web.Mvc.WebViewPage<dynamic>
|
||||
public partial class Layout : Disco.Services.Web.WebViewPage<dynamic>
|
||||
{
|
||||
public Layout()
|
||||
{
|
||||
@@ -154,35 +156,64 @@ WriteLiteral(">\r\n <span>Welcome ");
|
||||
|
||||
|
||||
#line 25 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.ActionLink(DiscoApplication.CurrentUser.ToString(), MVC.User.Show(DiscoApplication.CurrentUser.Id)));
|
||||
if (Authorization.Has(Claims.User.Show))
|
||||
{
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 26 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.ActionLink(CurrentUser.ToString(), MVC.User.Show(CurrentUser.Id)));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 26 "..\..\Views\Shared\_Layout.cshtml"
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 28 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(CurrentUser.ToString());
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 28 "..\..\Views\Shared\_Layout.cshtml"
|
||||
}
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</span>\r\n");
|
||||
|
||||
|
||||
#line 26 "..\..\Views\Shared\_Layout.cshtml"
|
||||
#line 29 "..\..\Views\Shared\_Layout.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 26 "..\..\Views\Shared\_Layout.cshtml"
|
||||
using (Html.BeginForm(MVC.Search.Query(), FormMethod.Get)) {
|
||||
#line 29 "..\..\Views\Shared\_Layout.cshtml"
|
||||
using (Html.BeginForm(MVC.Search.Query(), FormMethod.Get))
|
||||
{
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 26 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.TextBox("term", null, new { accesskey = "s" }));
|
||||
#line 30 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.TextBox("term", null, new { accesskey = "s" }));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 26 "..\..\Views\Shared\_Layout.cshtml"
|
||||
}
|
||||
#line 30 "..\..\Views\Shared\_Layout.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
@@ -199,7 +230,7 @@ WriteLiteral(" class=\"hasSubMenu\"");
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 31 "..\..\Views\Shared\_Layout.cshtml"
|
||||
#line 35 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.ActionLink("Jobs", MVC.Job.Index(), accesskey: "1"));
|
||||
|
||||
|
||||
@@ -209,123 +240,367 @@ WriteLiteral("\r\n <ul");
|
||||
|
||||
WriteLiteral(" class=\"subMenu\"");
|
||||
|
||||
WriteLiteral(">\r\n <li>");
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 33 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.ActionLink("Devices Ready for Return", MVC.Job.DevicesReadyForReturn()));
|
||||
#line 37 "..\..\Views\Shared\_Layout.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 37 "..\..\Views\Shared\_Layout.cshtml"
|
||||
if (Authorization.Has(Claims.Job.Lists.DevicesReadyForReturn))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</li>\r\n <li>");
|
||||
WriteLiteral(" <li>");
|
||||
|
||||
|
||||
#line 34 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.ActionLink("Device Held Locations", MVC.Job.Locations()));
|
||||
#line 39 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.ActionLink("Devices Ready for Return", MVC.Job.DevicesReadyForReturn()));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</li>\r\n <li>");
|
||||
WriteLiteral("</li>\r\n");
|
||||
|
||||
|
||||
#line 35 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.ActionLink("Awaiting User Action", MVC.Job.AwaitingUserAction()));
|
||||
#line 40 "..\..\Views\Shared\_Layout.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</li>\r\n <li");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 41 "..\..\Views\Shared\_Layout.cshtml"
|
||||
if (Authorization.Has(Claims.Job.Lists.Locations))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <li>");
|
||||
|
||||
|
||||
#line 43 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.ActionLink("Device Held Locations", MVC.Job.Locations()));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</li>\r\n");
|
||||
|
||||
|
||||
#line 44 "..\..\Views\Shared\_Layout.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 45 "..\..\Views\Shared\_Layout.cshtml"
|
||||
if (Authorization.Has(Claims.Job.Lists.AwaitingUserAction))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <li>");
|
||||
|
||||
|
||||
#line 47 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.ActionLink("Awaiting User Action", MVC.Job.AwaitingUserAction()));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</li>\r\n");
|
||||
|
||||
|
||||
#line 48 "..\..\Views\Shared\_Layout.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 49 "..\..\Views\Shared\_Layout.cshtml"
|
||||
if (Authorization.Has(Claims.Job.Lists.AwaitingFinance))
|
||||
{
|
||||
if (Authorization.HasAny(Claims.Job.Lists.AwaitingFinanceCharge, Claims.Job.Lists.AwaitingFinancePayment, Claims.Job.Lists.AwaitingFinanceAgreementBreach, Claims.Job.Lists.AwaitingFinanceInsuranceProcessing))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <li");
|
||||
|
||||
WriteLiteral(" class=\"hasSubMenu\"");
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 36 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.ActionLink("Awaiting Finance", MVC.Job.AwaitingFinance()));
|
||||
#line 53 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.ActionLink("Awaiting Finance", MVC.Job.AwaitingFinance()));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n <ul");
|
||||
WriteLiteral("\r\n <ul");
|
||||
|
||||
WriteLiteral(" class=\"subMenu\"");
|
||||
|
||||
WriteLiteral(">\r\n <li>");
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 38 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.ActionLink("Accounting Charge", MVC.Job.AwaitingFinanceCharge()));
|
||||
#line 55 "..\..\Views\Shared\_Layout.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 55 "..\..\Views\Shared\_Layout.cshtml"
|
||||
if (Authorization.Has(Claims.Job.Lists.AwaitingFinanceCharge))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</li>\r\n <li>");
|
||||
WriteLiteral(" <li>");
|
||||
|
||||
|
||||
#line 39 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.ActionLink("Accounting Payment", MVC.Job.AwaitingFinancePayment()));
|
||||
#line 57 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.ActionLink("Accounting Charge", MVC.Job.AwaitingFinanceCharge()));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</li>\r\n <li>");
|
||||
WriteLiteral("</li>\r\n");
|
||||
|
||||
|
||||
#line 40 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.ActionLink("Agreement Breach", MVC.Job.AwaitingFinanceAgreementBreach()));
|
||||
#line 58 "..\..\Views\Shared\_Layout.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</li>\r\n <li>");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 41 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.ActionLink("Insurance Processing", MVC.Job.AwaitingFinanceInsuranceProcessing()));
|
||||
#line 59 "..\..\Views\Shared\_Layout.cshtml"
|
||||
if (Authorization.Has(Claims.Job.Lists.AwaitingFinancePayment))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</li>\r\n </ul>\r\n </li>\r\n" +
|
||||
" <li>");
|
||||
WriteLiteral(" <li>");
|
||||
|
||||
|
||||
#line 44 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.ActionLink("Awaiting Device Repair", MVC.Job.DevicesAwaitingRepair()));
|
||||
#line 61 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.ActionLink("Accounting Payment", MVC.Job.AwaitingFinancePayment()));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</li>\r\n <li>");
|
||||
WriteLiteral("</li>\r\n");
|
||||
|
||||
|
||||
#line 45 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.ActionLink("All Open", MVC.Job.AllOpen()));
|
||||
#line 62 "..\..\Views\Shared\_Layout.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</li>\r\n <li>");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 46 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.ActionLink("Recently Closed", MVC.Job.RecentlyClosed()));
|
||||
#line 63 "..\..\Views\Shared\_Layout.cshtml"
|
||||
if (Authorization.Has(Claims.Job.Lists.AwaitingFinanceAgreementBreach))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</li>\r\n </ul>\r\n </li>\r\n " +
|
||||
" <li");
|
||||
WriteLiteral(" <li>");
|
||||
|
||||
|
||||
#line 65 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.ActionLink("Agreement Breach", MVC.Job.AwaitingFinanceAgreementBreach()));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</li>\r\n");
|
||||
|
||||
|
||||
#line 66 "..\..\Views\Shared\_Layout.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 67 "..\..\Views\Shared\_Layout.cshtml"
|
||||
if (Authorization.Has(Claims.Job.Lists.AwaitingFinanceInsuranceProcessing))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <li>");
|
||||
|
||||
|
||||
#line 69 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.ActionLink("Insurance Processing", MVC.Job.AwaitingFinanceInsuranceProcessing()));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</li>\r\n");
|
||||
|
||||
|
||||
#line 70 "..\..\Views\Shared\_Layout.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" </ul>\r\n </li>\r" +
|
||||
"\n");
|
||||
|
||||
|
||||
#line 73 "..\..\Views\Shared\_Layout.cshtml"
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <li>");
|
||||
|
||||
|
||||
#line 76 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.ActionLink("Awaiting Finance", MVC.Job.AwaitingFinance()));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</li>\r\n");
|
||||
|
||||
|
||||
#line 77 "..\..\Views\Shared\_Layout.cshtml"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 79 "..\..\Views\Shared\_Layout.cshtml"
|
||||
if (Authorization.Has(Claims.Job.Lists.DevicesAwaitingRepair))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <li>");
|
||||
|
||||
|
||||
#line 81 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.ActionLink("Awaiting Device Repair", MVC.Job.DevicesAwaitingRepair()));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</li>\r\n");
|
||||
|
||||
|
||||
#line 82 "..\..\Views\Shared\_Layout.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 83 "..\..\Views\Shared\_Layout.cshtml"
|
||||
if (Authorization.Has(Claims.Job.Lists.AllOpen))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <li>");
|
||||
|
||||
|
||||
#line 85 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.ActionLink("All Open", MVC.Job.AllOpen()));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</li>\r\n");
|
||||
|
||||
|
||||
#line 86 "..\..\Views\Shared\_Layout.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 87 "..\..\Views\Shared\_Layout.cshtml"
|
||||
if (Authorization.Has(Claims.Job.Lists.RecentlyClosed))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <li>");
|
||||
|
||||
|
||||
#line 89 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.ActionLink("Recently Closed", MVC.Job.RecentlyClosed()));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</li>\r\n");
|
||||
|
||||
|
||||
#line 90 "..\..\Views\Shared\_Layout.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" </ul>\r\n </li>\r\n <li" +
|
||||
"");
|
||||
|
||||
WriteLiteral(" class=\"sep\"");
|
||||
|
||||
WriteLiteral("></li>\r\n <li>");
|
||||
|
||||
|
||||
#line 50 "..\..\Views\Shared\_Layout.cshtml"
|
||||
#line 94 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.ActionLink("Devices", MVC.Device.Index(), accesskey: "2"));
|
||||
|
||||
|
||||
@@ -338,7 +613,7 @@ WriteLiteral(" class=\"sep\"");
|
||||
WriteLiteral("></li>\r\n <li>");
|
||||
|
||||
|
||||
#line 52 "..\..\Views\Shared\_Layout.cshtml"
|
||||
#line 96 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.ActionLink("Users", MVC.User.Index(), accesskey: "3"));
|
||||
|
||||
|
||||
@@ -351,34 +626,60 @@ WriteLiteral(" class=\"moveRight\"");
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 53 "..\..\Views\Shared\_Layout.cshtml"
|
||||
#line 97 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.ActionLink("Public Reports", MVC.Public.Public.Index()));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</li>\r\n <li");
|
||||
|
||||
WriteLiteral(" class=\"sep\"");
|
||||
|
||||
WriteLiteral("></li>\r\n <li>");
|
||||
WriteLiteral("</li>\r\n");
|
||||
|
||||
|
||||
#line 55 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.ActionLink("Configuration", MVC.Config.Config.Index(), accesskey: "0"));
|
||||
#line 98 "..\..\Views\Shared\_Layout.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 98 "..\..\Views\Shared\_Layout.cshtml"
|
||||
if (Authorization.Has(Claims.Config.Show))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</li>\r\n </ul>\r\n </nav>\r\n </header>\r\n <div" +
|
||||
"");
|
||||
WriteLiteral(" <li");
|
||||
|
||||
WriteLiteral(" class=\"sep\"");
|
||||
|
||||
WriteLiteral("></li>\r\n");
|
||||
|
||||
WriteLiteral(" <li>");
|
||||
|
||||
|
||||
#line 101 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.ActionLink("Configuration", MVC.Config.Config.Index(), accesskey: "0"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</li>\r\n");
|
||||
|
||||
|
||||
#line 102 "..\..\Views\Shared\_Layout.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" </ul>\r\n </nav>\r\n </header>\r\n <div");
|
||||
|
||||
WriteLiteral(" id=\"layout_PageHeading\"");
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 59 "..\..\Views\Shared\_Layout.cshtml"
|
||||
#line 106 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(CommonHelpers.Breadcrumbs(ViewBag.Title ?? string.Empty));
|
||||
|
||||
|
||||
@@ -393,7 +694,7 @@ WriteLiteral(">\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 61 "..\..\Views\Shared\_Layout.cshtml"
|
||||
#line 108 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(RenderBody());
|
||||
|
||||
|
||||
@@ -402,7 +703,7 @@ WriteLiteral(" ");
|
||||
WriteLiteral("\r\n </section>\r\n <footer>\r\n Disco v");
|
||||
|
||||
|
||||
#line 64 "..\..\Views\Shared\_Layout.cshtml"
|
||||
#line 111 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Disco.Web.DiscoApplication.Version);
|
||||
|
||||
|
||||
@@ -413,7 +714,7 @@ WriteLiteral(" ");
|
||||
WriteLiteral("@ ");
|
||||
|
||||
|
||||
#line 64 "..\..\Views\Shared\_Layout.cshtml"
|
||||
#line 111 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Disco.Web.DiscoApplication.OrganisationName);
|
||||
|
||||
|
||||
@@ -423,7 +724,7 @@ WriteLiteral(" | <a\r\n href=\"http://discoict.com.au/\" target=\
|
||||
"m.au</a> | ");
|
||||
|
||||
|
||||
#line 65 "..\..\Views\Shared\_Layout.cshtml"
|
||||
#line 112 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.ActionLink("Credits", MVC.Public.Public.Credits()));
|
||||
|
||||
|
||||
@@ -432,7 +733,7 @@ WriteLiteral(" | <a\r\n href=\"http://discoict.com.au/\" target=\
|
||||
WriteLiteral(" | ");
|
||||
|
||||
|
||||
#line 65 "..\..\Views\Shared\_Layout.cshtml"
|
||||
#line 112 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Write(Html.ActionLink("Licence", MVC.Public.Public.Licence()));
|
||||
|
||||
|
||||
@@ -441,13 +742,13 @@ WriteLiteral(" | ");
|
||||
WriteLiteral("\r\n </footer>\r\n </div>\r\n");
|
||||
|
||||
|
||||
#line 68 "..\..\Views\Shared\_Layout.cshtml"
|
||||
#line 115 "..\..\Views\Shared\_Layout.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 68 "..\..\Views\Shared\_Layout.cshtml"
|
||||
#line 115 "..\..\Views\Shared\_Layout.cshtml"
|
||||
Disco.Services.Plugins.Features.UIExtension.UIExtensions.ExecuteExtensionResult(this);
|
||||
|
||||
#line default
|
||||
|
||||
@@ -28,12 +28,14 @@ namespace Disco.Web.Views.Shared
|
||||
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/Shared/_SearchDialog.cshtml")]
|
||||
public partial class SearchDialog : System.Web.Mvc.WebViewPage<string>
|
||||
public partial class SearchDialog : Disco.Services.Web.WebViewPage<string>
|
||||
{
|
||||
public SearchDialog()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user