#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/_JobTable.cshtml")]
    public class JobTable : System.Web.Mvc.WebViewPage<Disco.Models.BI.Job.JobTableModel>
    {
        public JobTable()
        {
        }
        public override void Execute()
        {
            
            #line 2 "..\..\Views\Shared\_JobTable.cshtml"
 if (DiscoApplication.MultiSiteMode)
{
    if (Model == null || Model.Items == null || Model.Items.Count == 0)
    { 

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

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

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

            
            #line 7 "..\..\Views\Shared\_JobTable.cshtml"
    }
    else
    {
        var modelItems = Model.Items;
        var modelItemsGrouped = modelItems.OrderBy(i => i.DeviceAddress).GroupBy(i => i.DeviceAddress);
        foreach (var modelItemsGroup in modelItemsGrouped)
        {
            Model.Items = modelItemsGroup.ToList();
            if (modelItemsGroup.Key != null)
            { 

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

WriteLiteral("        ");

            
            #line 18 "..\..\Views\Shared\_JobTable.cshtml"
   Write(modelItemsGroup.Key);

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

            
            #line 19 "..\..\Views\Shared\_JobTable.cshtml"
            }
    
            
            #line default
            #line hidden
            
            #line 20 "..\..\Views\Shared\_JobTable.cshtml"
Write(Html.Partial(MVC.Shared.Views._JobTableRender, Model, new ViewDataDictionary()));

            
            #line default
            #line hidden
            
            #line 20 "..\..\Views\Shared\_JobTable.cshtml"
                                                                                    
        }
    }
}
else
{ 
    
            
            #line default
            #line hidden
            
            #line 26 "..\..\Views\Shared\_JobTable.cshtml"
Write(Html.Partial(MVC.Shared.Views._JobTableRender, Model, new ViewDataDictionary()));

            
            #line default
            #line hidden
            
            #line 26 "..\..\Views\Shared\_JobTable.cshtml"
                                                                                    
}
            
            #line default
            #line hidden
        }
    }
}
#pragma warning restore 1591
