#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.17929
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace Disco.Web.Views.Shared
{
    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.BI.Extensions;
    using Disco.Models.Repository;
    using Disco.Web;
    using Disco.Web.Extensions;
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "1.5.0.0")]
    [System.Web.WebPages.PageVirtualPathAttribute("~/Views/Shared/_JobTableRender.cshtml")]
    public class JobTableRender : System.Web.Mvc.WebViewPage<Disco.Models.BI.Job.JobTableModel>
    {
        public JobTableRender()
        {
        }
        public override void Execute()
        {
            
            #line 2 "..\..\Views\Shared\_JobTableRender.cshtml"
  
    Html.BundleDeferred("~/ClientScripts/Modules/Disco-DataTableHelpers");

            
            #line default
            #line hidden
WriteLiteral("\r\n<div");

WriteLiteral(" class=\"jobTable\"");

WriteLiteral(">\r\n");

            
            #line 6 "..\..\Views\Shared\_JobTableRender.cshtml"
    
            
            #line default
            #line hidden
            
            #line 6 "..\..\Views\Shared\_JobTableRender.cshtml"
     if (Model != null && Model.Items.Count() > 0)
    { 

            
            #line default
            #line hidden
WriteLiteral("        <table");

WriteAttribute("class", Tuple.Create(" class=\"", 223), Tuple.Create("\"", 351)
, Tuple.Create(Tuple.Create("", 231), Tuple.Create("jobTable", 231), true)
            
            #line 8 "..\..\Views\Shared\_JobTableRender.cshtml"
, Tuple.Create(Tuple.Create("", 239), Tuple.Create<System.Object, System.Int32>(Model.IsSmallTable ? " smallTable" : string.Empty
            
            #line default
            #line hidden
, 239), false)
            
            #line 8 "..\..\Views\Shared\_JobTableRender.cshtml"
    , Tuple.Create(Tuple.Create("", 291), Tuple.Create<System.Object, System.Int32>(Model.HideClosedJobs ? " hideStatusClosed" : string.Empty
            
            #line default
            #line hidden
, 291), false)
);

WriteLiteral(">\r\n            <thead>\r\n                <tr>\r\n");

            
            #line 11 "..\..\Views\Shared\_JobTableRender.cshtml"
                    
            
            #line default
            #line hidden
            
            #line 11 "..\..\Views\Shared\_JobTableRender.cshtml"
                     if (Model.ShowId)
                    {
            
            #line default
            #line hidden
WriteLiteral(" <th");

WriteLiteral(" class=\"id\"");

WriteLiteral(">\r\n                        Ref\r\n                    </th> ");

            
            #line 14 "..\..\Views\Shared\_JobTableRender.cshtml"
                          }

            
            #line default
            #line hidden
WriteLiteral("                    ");

            
            #line 15 "..\..\Views\Shared\_JobTableRender.cshtml"
                     if (Model.ShowStatus)
                    {
            
            #line default
            #line hidden
WriteLiteral(" <th");

WriteLiteral(" class=\"status\"");

WriteLiteral(">\r\n                        Status\r\n                    </th> ");

            
            #line 18 "..\..\Views\Shared\_JobTableRender.cshtml"
                          }

            
            #line default
            #line hidden
WriteLiteral("                    ");

            
            #line 19 "..\..\Views\Shared\_JobTableRender.cshtml"
                     if (Model.ShowDates)
                    {
            
            #line default
            #line hidden
WriteLiteral(" <th");

WriteLiteral(" class=\"dates\"");

WriteLiteral(">\r\n                        Dates\r\n                    </th> ");

            
            #line 22 "..\..\Views\Shared\_JobTableRender.cshtml"
                          }

            
            #line default
            #line hidden
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)
                    {
            
            #line default
            #line hidden
WriteLiteral("<th");

WriteLiteral(" class=\"device\"");

WriteLiteral(">\r\n                        Device\r\n                    </th> ");

            
            #line 30 "..\..\Views\Shared\_JobTableRender.cshtml"
                          }

            
            #line default
            #line hidden
WriteLiteral("                    ");

            
            #line 31 "..\..\Views\Shared\_JobTableRender.cshtml"
                     if (Model.ShowUser)
                    {
            
            #line default
            #line hidden
WriteLiteral(" <th");

WriteLiteral(" class=\"user\"");

WriteLiteral(">\r\n                        User\r\n                    </th> ");

            
            #line 34 "..\..\Views\Shared\_JobTableRender.cshtml"
                          }

            
            #line default
            #line hidden
WriteLiteral("                    ");

            
            #line 35 "..\..\Views\Shared\_JobTableRender.cshtml"
                     if (Model.ShowTechnician)
                    {
            
            #line default
            #line hidden
WriteLiteral(" <th");

WriteLiteral(" class=\"technician\"");

WriteLiteral(">\r\n                        Technician\r\n                    </th> ");

            
            #line 38 "..\..\Views\Shared\_JobTableRender.cshtml"
                          }

            
            #line default
            #line hidden
WriteLiteral("                    ");

            
            #line 39 "..\..\Views\Shared\_JobTableRender.cshtml"
                     if (Model.ShowLocation)
                    {
            
            #line default
            #line hidden
WriteLiteral(" <th");

WriteLiteral(" class=\"location\"");

WriteLiteral(">\r\n                        Location\r\n                    </th> ");

            
            #line 42 "..\..\Views\Shared\_JobTableRender.cshtml"
                          }

            
            #line default
            #line hidden
WriteLiteral("                </tr>\r\n            </thead>\r\n            <tbody>\r\n");

            
            #line 46 "..\..\Views\Shared\_JobTableRender.cshtml"
                
            
            #line default
            #line hidden
            
            #line 46 "..\..\Views\Shared\_JobTableRender.cshtml"
                 foreach (var item in Model.Items)
                {

            
            #line default
            #line hidden
WriteLiteral("                    <tr");

WriteLiteral(" data-id=\"");

            
            #line 48 "..\..\Views\Shared\_JobTableRender.cshtml"
                             Write(item.Id);

            
            #line default
            #line hidden
WriteLiteral("\"");

WriteLiteral(" data-status=\"");

            
            #line 48 "..\..\Views\Shared\_JobTableRender.cshtml"
                                                      Write(Model.ShowStatus ? item.StatusId : null);

            
            #line default
            #line hidden
WriteLiteral("\"");

WriteLiteral(">\r\n");

            
            #line 49 "..\..\Views\Shared\_JobTableRender.cshtml"
                        
            
            #line default
            #line hidden
            
            #line 49 "..\..\Views\Shared\_JobTableRender.cshtml"
                         if (Model.ShowId)
                        {
            
            #line default
            #line hidden
WriteLiteral(" <td");

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 default
            #line hidden
WriteLiteral("\r\n                        </td> ");

            
            #line 52 "..\..\Views\Shared\_JobTableRender.cshtml"
                              }

            
            #line default
            #line hidden
WriteLiteral("                        ");

            
            #line 53 "..\..\Views\Shared\_JobTableRender.cshtml"
                         if (Model.ShowStatus)
                        {
            
            #line default
            #line hidden
WriteLiteral(" <td");

WriteLiteral(" class=\"status\"");

WriteLiteral(">\r\n                            <span");

WriteAttribute("class", Tuple.Create(" class=\"", 2151), Tuple.Create("\"", 2189)
, Tuple.Create(Tuple.Create("", 2159), Tuple.Create("icon", 2159), true)
, Tuple.Create(Tuple.Create(" ", 2163), Tuple.Create("JobStatus", 2164), true)
            
            #line 55 "..\..\Views\Shared\_JobTableRender.cshtml"
, Tuple.Create(Tuple.Create("", 2173), Tuple.Create<System.Object, System.Int32>(item.StatusId
            
            #line default
            #line hidden
, 2173), false)
);

WriteLiteral("></span>\r\n");

WriteLiteral("                            ");

            
            #line 56 "..\..\Views\Shared\_JobTableRender.cshtml"
                       Write(item.StatusDescription);

            
            #line default
            #line hidden
WriteLiteral("\r\n                        </td> ");

            
            #line 57 "..\..\Views\Shared\_JobTableRender.cshtml"
                              }

            
            #line default
            #line hidden
WriteLiteral("                        ");

            
            #line 58 "..\..\Views\Shared\_JobTableRender.cshtml"
                         if (Model.ShowDates)
                        {
            
            #line default
            #line hidden
WriteLiteral(" <td");

WriteLiteral(" class=\"dates\"");

WriteLiteral(">\r\n");

WriteLiteral("                            ");

            
            #line 60 "..\..\Views\Shared\_JobTableRender.cshtml"
                       Write(CommonHelpers.FriendlyDate(item.OpenedDate));

            
            #line default
            #line hidden
WriteLiteral("\r\n                            - ");

            
            #line 61 "..\..\Views\Shared\_JobTableRender.cshtml"
                         Write(CommonHelpers.FriendlyDate(item.ClosedDate));

            
            #line default
            #line hidden
WriteLiteral("\r\n                        </td>");

            
            #line 62 "..\..\Views\Shared\_JobTableRender.cshtml"
                             }

            
            #line default
            #line hidden
WriteLiteral("                        ");

            
            #line 63 "..\..\Views\Shared\_JobTableRender.cshtml"
                         if (Model.ShowType)
                        {
            
            #line default
            #line hidden
WriteLiteral(" <td");

WriteLiteral(" class=\"type\"");

WriteLiteral(">\r\n                            <span");

WriteAttribute("title", Tuple.Create(" title=\"", 2685), Tuple.Create("\"", 2714)
            
            #line 65 "..\..\Views\Shared\_JobTableRender.cshtml"
, Tuple.Create(Tuple.Create("", 2693), Tuple.Create<System.Object, System.Int32>(item.TypeDescription
            
            #line default
            #line hidden
, 2693), false)
);

WriteLiteral(">");

            
            #line 65 "..\..\Views\Shared\_JobTableRender.cshtml"
                                                           Write(item.TypeId);

            
            #line default
            #line hidden
WriteLiteral("</span>\r\n                        </td>");

            
            #line 66 "..\..\Views\Shared\_JobTableRender.cshtml"
                             }

            
            #line default
            #line hidden
WriteLiteral("                        ");

            
            #line 67 "..\..\Views\Shared\_JobTableRender.cshtml"
                         if (Model.ShowDevice)
                        {
            
            #line default
            #line hidden
WriteLiteral(" <td");

WriteLiteral(" class=\"device\"");

WriteLiteral(">\r\n");

            
            #line 69 "..\..\Views\Shared\_JobTableRender.cshtml"
                            
            
            #line default
            #line hidden
            
            #line 69 "..\..\Views\Shared\_JobTableRender.cshtml"
                             if (item.DeviceSerialNumber != null)
                            {
                                
            
            #line default
            #line hidden
            
            #line 71 "..\..\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"
                                                                                                                                                                
                            }
                            else
                            { 

            
            #line default
            #line hidden
WriteLiteral("                                <span");

WriteLiteral(" class=\"smallMessage\"");

WriteLiteral(">N/A</span>\r\n");

            
            #line 76 "..\..\Views\Shared\_JobTableRender.cshtml"
                            }

            
            #line default
            #line hidden
WriteLiteral("                        </td> ");

            
            #line 77 "..\..\Views\Shared\_JobTableRender.cshtml"
                              }

            
            #line default
            #line hidden
WriteLiteral("                        ");

            
            #line 78 "..\..\Views\Shared\_JobTableRender.cshtml"
                         if (Model.ShowUser)
                        {
            
            #line default
            #line hidden
WriteLiteral("<td");

WriteLiteral(" class=\"user\"");

WriteLiteral(">\r\n");

            
            #line 80 "..\..\Views\Shared\_JobTableRender.cshtml"
                            
            
            #line default
            #line hidden
            
            #line 80 "..\..\Views\Shared\_JobTableRender.cshtml"
                             if (item.UserId != null)
                            {
                                
            
            #line default
            #line hidden
            
            #line 82 "..\..\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"
                                                                                                                                           
                            }
                            else
                            { 

            
            #line default
            #line hidden
WriteLiteral("                                <span");

WriteLiteral(" class=\"smallMessage\"");

WriteLiteral(">N/A</span>\r\n");

            
            #line 87 "..\..\Views\Shared\_JobTableRender.cshtml"
                            }

            
            #line default
            #line hidden
WriteLiteral("                        </td>");

            
            #line 88 "..\..\Views\Shared\_JobTableRender.cshtml"
                             }

            
            #line default
            #line hidden
WriteLiteral("                        ");

            
            #line 89 "..\..\Views\Shared\_JobTableRender.cshtml"
                         if (Model.ShowTechnician)
                        {
            
            #line default
            #line hidden
WriteLiteral(" <td");

WriteLiteral(" class=\"technician\"");

WriteLiteral(">\r\n                            <span");

WriteAttribute("title", Tuple.Create(" title=\"", 4040), Tuple.Create("\"", 4079)
            
            #line 91 "..\..\Views\Shared\_JobTableRender.cshtml"
, Tuple.Create(Tuple.Create("", 4048), Tuple.Create<System.Object, System.Int32>(item.OpenedTechUserDisplayName
            
            #line default
            #line hidden
, 4048), false)
);

WriteLiteral(">");

            
            #line 91 "..\..\Views\Shared\_JobTableRender.cshtml"
                                                                     Write(item.OpenedTechUserId);

            
            #line default
            #line hidden
WriteLiteral("\r\n                            </span>\r\n                        </td>");

            
            #line 93 "..\..\Views\Shared\_JobTableRender.cshtml"
                             }

            
            #line default
            #line hidden
WriteLiteral("                        ");

            
            #line 94 "..\..\Views\Shared\_JobTableRender.cshtml"
                         if (Model.ShowLocation)
                        {
            
            #line default
            #line hidden
WriteLiteral(" <td");

WriteLiteral(" class=\"technician\"");

WriteLiteral(">\r\n                            <span>");

            
            #line 96 "..\..\Views\Shared\_JobTableRender.cshtml"
                              Write(item.Location ?? "Unknown");

            
            #line default
            #line hidden
WriteLiteral("\r\n                            </span>\r\n                        </td>");

            
            #line 98 "..\..\Views\Shared\_JobTableRender.cshtml"
                             }

            
            #line default
            #line hidden
WriteLiteral("                    </tr>\r\n");

            
            #line 100 "..\..\Views\Shared\_JobTableRender.cshtml"
                }

            
            #line default
            #line hidden
WriteLiteral("            </tbody>\r\n        </table>\r\n");

            
            #line 103 "..\..\Views\Shared\_JobTableRender.cshtml"
    }
    else
    { 

            
            #line default
            #line hidden
WriteLiteral("        <span");

WriteLiteral(" class=\"smallMessage\"");

WriteLiteral(">No Jobs Found</span>\r\n");

            
            #line 107 "..\..\Views\Shared\_JobTableRender.cshtml"
    }

            
            #line default
            #line hidden
WriteLiteral("</div>\r\n");

        }
    }
}
#pragma warning restore 1591
