#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.User
{
    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/User/Show.cshtml")]
    public class Show : System.Web.Mvc.WebViewPage<Disco.Web.Models.User.ShowModel>
    {
        public Show()
        {
        }
        public override void Execute()
        {
            
            #line 2 "..\..\Views\User\Show.cshtml"
  
    ViewBag.Title = Html.ToBreadcrumb("Users", MVC.User.Index(), string.Format("{0} ({1})", Model.User.DisplayName, Model.User.Id));
    Html.BundleDeferred("~/ClientScripts/Modules/Silverlight");
    Html.BundleDeferred("~/ClientScripts/Modules/Disco-CreateJob");

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

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

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

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

WriteLiteral(">Id:\r\n        </th>\r\n        <td");

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

WriteLiteral(">\r\n");

WriteLiteral("            ");

            
            #line 12 "..\..\Views\User\Show.cshtml"
       Write(Model.User.Id);

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

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

WriteLiteral(">Given Name:\r\n        </th>\r\n        <td");

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

WriteLiteral(">\r\n");

WriteLiteral("            ");

            
            #line 17 "..\..\Views\User\Show.cshtml"
       Write(Model.User.GivenName);

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

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

WriteLiteral(">Type:\r\n        </th>\r\n        <td");

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

WriteLiteral(">\r\n");

WriteLiteral("            ");

            
            #line 24 "..\..\Views\User\Show.cshtml"
       Write(Model.User.Type);

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

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

WriteLiteral(">Surname:\r\n        </th>\r\n        <td");

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

WriteLiteral(">\r\n");

WriteLiteral("            ");

            
            #line 29 "..\..\Views\User\Show.cshtml"
       Write(Model.User.Surname);

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

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

WriteLiteral(">Display Name:\r\n        </th>\r\n        <td");

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

WriteLiteral(" colspan=\"3\"");

WriteLiteral(">\r\n");

WriteLiteral("            ");

            
            #line 36 "..\..\Views\User\Show.cshtml"
       Write(Model.User.DisplayName);

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

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

WriteLiteral(">Email Address:\r\n        </th>\r\n        <td");

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

WriteLiteral(">\r\n");

WriteLiteral("            ");

            
            #line 43 "..\..\Views\User\Show.cshtml"
       Write(Model.User.EmailAddress);

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

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

WriteLiteral(">Phone Number:\r\n        </th>\r\n        <td");

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

WriteLiteral(">\r\n");

WriteLiteral("            ");

            
            #line 48 "..\..\Views\User\Show.cshtml"
       Write(Model.User.PhoneNumber);

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

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

WriteLiteral(">Assigned Devices:\r\n        </th>\r\n        <td");

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

WriteLiteral(" colspan=\"3\"");

WriteLiteral(">\r\n");

WriteLiteral("            ");

            
            #line 55 "..\..\Views\User\Show.cshtml"
       Write(Html.Partial(MVC.User.Views._UserDeviceAssignmentHistoryTable, Model.User));

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

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

WriteLiteral(">Generate Documents:\r\n        </th>\r\n        <td");

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

WriteLiteral(" colspan=\"3\"");

WriteLiteral(">\r\n");

WriteLiteral("            ");

            
            #line 62 "..\..\Views\User\Show.cshtml"
       Write(Html.DropDownList("DocumentTemplates", Model.DocumentTemplatesSelectListItems));

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

WriteLiteral(" type=\"text/javascript\"");

WriteLiteral(">\r\n                $(function () {\r\n                    var generatePdfUrl = \'");

            
            #line 65 "..\..\Views\User\Show.cshtml"
                                     Write(Url.Action(MVC.API.User.GeneratePdf(Model.User.Id, null)));

            
            #line default
            #line hidden
WriteLiteral(@"?DocumentTemplateId=';
                    var $documentTemplates = $('#DocumentTemplates');
                    $documentTemplates.change(function () {
                        var v = $documentTemplates.val();
                        if (v) {
                            window.location.href = generatePdfUrl + v;
                            $documentTemplates.val('');
                        }
                    });
                });
            </script>
        </td>
    </tr>
</table>
<h2>Jobs</h2>
");

            
            #line 80 "..\..\Views\User\Show.cshtml"
Write(Html.Partial(MVC.Shared.Views._JobTable, Model.Jobs));

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

            
            #line 82 "..\..\Views\User\Show.cshtml"
Write(Html.Partial(MVC.User.Views.UserParts.Resources, Model));

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

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

WriteLiteral(">\r\n");

WriteLiteral("    ");

            
            #line 84 "..\..\Views\User\Show.cshtml"
Write(Html.ActionLinkButton("Create Job", MVC.Job.Create(Model.PrimaryDeviceSerialNumber, Model.User.Id), "buttonCreateJob"));

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

        }
    }
}
#pragma warning restore 1591
