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

namespace Disco.Web.Views.User.UserParts
{
    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;
    using Disco.BI.Extensions;
    using Disco.Models.Repository;
    using Disco.Services;
    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/User/UserParts/_Subject.cshtml")]
    public partial class Subject : Disco.Services.Web.WebViewPage<Disco.Web.Models.User.ShowModel>
    {
        public Subject()
        {
        }
        public override void Execute()
        {
            
            #line 2 "..\..\Views\User\UserParts\_Subject.cshtml"
  
    Authorization.Require(Claims.User.Show);

    var currentDeviceAssignments = Model.User.DeviceUserAssignments.Where(dua => !dua.UnassignedDate.HasValue).OrderByDescending(dua => dua.AssignedDate).ToList();

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

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

WriteLiteral(">\r\n    <tbody>\r\n        <tr>\r\n            <td");

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

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

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

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

WriteLiteral(" class=\"none verticalHeadings\"");

WriteLiteral(">\r\n                            <tr>\r\n                                <td><span>Us" +
"ername (Id):</span>\r\n                                </td>\r\n                    " +
"            <td>\r\n                                    <h4");

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

WriteLiteral(" title=\"Username\"");

WriteLiteral(">");

            
            #line 18 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                       Write(Model.User.UserId);

            
            #line default
            #line hidden
WriteLiteral("</h4>\r\n                                </td>\r\n                            </tr>\r\n" +
"                            <tr>\r\n                                <td>Display Na" +
"me:</td>\r\n                                <td><span");

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

WriteLiteral(" title=\"Display Name\"");

WriteLiteral(">");

            
            #line 23 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                      Write(Model.User.DisplayName);

            
            #line default
            #line hidden
WriteLiteral("</span></td>\r\n                            </tr>\r\n                            <tr>" +
"\r\n                                <td>Given Name:</td>\r\n                        " +
"        <td><span");

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

WriteLiteral(" title=\"Given Name\"");

WriteLiteral(">");

            
            #line 27 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                  Write(Model.User.GivenName);

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

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

WriteLiteral(" title=\"Surname\"");

WriteLiteral(">");

            
            #line 31 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                             Write(Model.User.Surname);

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

            
            #line 35 "..\..\Views\User\UserParts\_Subject.cshtml"
                    
            
            #line default
            #line hidden
            
            #line 35 "..\..\Views\User\UserParts\_Subject.cshtml"
                     if (Authorization.Has(Claims.User.ShowDetails))
                    {

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

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

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

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

WriteLiteral(" class=\"none verticalHeadings\"");

WriteLiteral(">\r\n                                <tr>\r\n                                    <td>" +
"Email:</td>\r\n                                    <td>\r\n");

            
            #line 42 "..\..\Views\User\UserParts\_Subject.cshtml"
                                        
            
            #line default
            #line hidden
            
            #line 42 "..\..\Views\User\UserParts\_Subject.cshtml"
                                         if (!string.IsNullOrEmpty(Model.User.EmailAddress))
                                        {

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

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

WriteLiteral(" title=\"Email Address [Update in Active Directory]\"");

WriteLiteral(">");

            
            #line 44 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                                        Write(Model.User.EmailAddress);

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

            
            #line 45 "..\..\Views\User\UserParts\_Subject.cshtml"
                                        }
                                        else
                                        {

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

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

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

            
            #line 49 "..\..\Views\User\UserParts\_Subject.cshtml"
                                        }

            
            #line default
            #line hidden
WriteLiteral("                                    </td>\r\n                                </tr>\r" +
"\n                                <tr>\r\n                                    <td>P" +
"hone:</td>\r\n                                    <td>\r\n");

            
            #line 55 "..\..\Views\User\UserParts\_Subject.cshtml"
                                        
            
            #line default
            #line hidden
            
            #line 55 "..\..\Views\User\UserParts\_Subject.cshtml"
                                         if (!string.IsNullOrEmpty(Model.User.PhoneNumber))
                                        {

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

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

WriteLiteral(" title=\"Phone Number [Update in Active Directory]\"");

WriteLiteral(">");

            
            #line 57 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                                       Write(Model.User.PhoneNumber);

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

            
            #line 58 "..\..\Views\User\UserParts\_Subject.cshtml"
                                        }
                                        else
                                        {

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

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

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

            
            #line 62 "..\..\Views\User\UserParts\_Subject.cshtml"
                                        }

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

            
            #line 67 "..\..\Views\User\UserParts\_Subject.cshtml"
                    }

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

            
            #line 68 "..\..\Views\User\UserParts\_Subject.cshtml"
                     if (Authorization.Has(Claims.User.Actions.GenerateDocuments))
                    {

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

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

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

WriteLiteral(">\r\n");

WriteLiteral("                            ");

            
            #line 71 "..\..\Views\User\UserParts\_Subject.cshtml"
                       Write(Html.DropDownList("User_Show_GenerateDocument", Model.DocumentTemplatesSelectListItems));

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

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

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

            
            #line 74 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                     Write(Url.Action(MVC.API.User.GeneratePdf(Model.User.UserId, null)));

            
            #line default
            #line hidden
WriteLiteral("?DocumentTemplateId=\';\r\n                                    var $documentTemplate" +
"s = $(\'#User_Show_GenerateDocument\');\r\n                                    var $" +
"generationHost;\r\n\r\n                                    $documentTemplates.change" +
"(function () {\r\n                                        var v = $documentTemplat" +
"es.val();\r\n                                        if (v) {\r\n                   " +
"                         var url = generatePdfUrl + v;\r\n\r\n                      " +
"                      if ($.connection && $.connection.hub && $.connection.hub.t" +
"ransport &&\r\n                                                    $.connection.hu" +
"b.transport.name == \'foreverFrame\') {\r\n                                         " +
"       // SignalR active with foreverFrame transport - use popup window\r\n       " +
"                                         window.open(url, \'_blank\', \'height=150," +
"width=250,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no" +
"\');\r\n                                            } else {\r\n                     " +
"                           // use iFrame\r\n                                      " +
"          if (!$generationHost) {\r\n                                             " +
"       $generationHost = $(\'<iframe>\')\r\n                                        " +
"                .attr({ \'src\': url, \'title\': \'Document Generation Host\' })\r\n    " +
"                                                    .addClass(\'hidden\')\r\n       " +
"                                                 .appendTo(\'body\')\r\n            " +
"                                            .contents();\r\n                      " +
"                          } else {\r\n                                            " +
"        $generationHost[0].location.href = url;\r\n                               " +
"                 }\r\n                                            }\r\n\r\n           " +
"                                 $documentTemplates.val(\'\').blur();\r\n           " +
"                             }\r\n                                    });\r\n       " +
"                         });\r\n                            </script>\r\n           " +
"             </div>\r\n");

            
            #line 106 "..\..\Views\User\UserParts\_Subject.cshtml"
                    }

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

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

WriteLiteral(">\r\n");

            
            #line 108 "..\..\Views\User\UserParts\_Subject.cshtml"
                        
            
            #line default
            #line hidden
            
            #line 108 "..\..\Views\User\UserParts\_Subject.cshtml"
                         if (Model.User.CanCreateJob())
                        {
                            Html.BundleDeferred("~/ClientScripts/Modules/Disco-CreateJob");
                            
            
            #line default
            #line hidden
            
            #line 111 "..\..\Views\User\UserParts\_Subject.cshtml"
                       Write(Html.ActionLinkSmallButton("Create Job", MVC.Job.Create(Model.PrimaryDeviceSerialNumber, Model.User.UserId), "User_Show_Details_Actions_CreateJob_Button"));

            
            #line default
            #line hidden
            
            #line 111 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                                                                                       
                            if (currentDeviceAssignments.Count > 1)
                            {

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

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

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

WriteLiteral(" title=\"Create Job for Which Device?\"");

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

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

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

WriteLiteral(" class=\"fa fa-info-circle information\"");

WriteLiteral(@"></i>&nbsp;Multiple devices are assigned to this user.
                                    <br />
                                    <strong>Which device should be associated with this job?
                                    </strong>
                                </div>
                                <div>
                                    <ul");

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

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

WriteLiteral(">\r\n");

            
            #line 123 "..\..\Views\User\UserParts\_Subject.cshtml"
                                        
            
            #line default
            #line hidden
            
            #line 123 "..\..\Views\User\UserParts\_Subject.cshtml"
                                         foreach (var assignment in currentDeviceAssignments)
                                        {

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

WriteLiteral(" class=\"CreateJob_Assignment clearfix\"");

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

            
            #line 125 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                    Write(Url.Action(MVC.Job.Create(assignment.DeviceSerialNumber, Model.User.UserId)));

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

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

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

WriteLiteral(" alt=\"Model Image\"");

WriteAttribute("src", Tuple.Create(" src=\"", 7908), Tuple.Create("\"", 8029)
            
            #line 126 "..\..\Views\User\UserParts\_Subject.cshtml"
                               , Tuple.Create(Tuple.Create("", 7914), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.DeviceModel.Image(assignment.Device.DeviceModel.Id, assignment.Device.DeviceModel.ImageHash()))
            
            #line default
            #line hidden
, 7914), false)
);

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

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

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

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

WriteLiteral(@">
                                                        <tbody>
                                                            <tr>
                                                                <td>Serial Number:
                                                                </td>
                                                                <td>
                                                                    <span>");

            
            #line 134 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                     Write(assignment.Device.SerialNumber);

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

            
            #line 134 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                   Write(assignment.Device.ComputerName);

            
            #line default
            #line hidden
WriteLiteral(@"</span>)
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Model:
                                                                </td>
                                                                <td>
                                                                    <span>");

            
            #line 141 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                     Write(assignment.Device.DeviceModel.ToString());

            
            #line default
            #line hidden
WriteLiteral(@"</span>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Asset:</td>
                                                                <td>
");

            
            #line 147 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                    
            
            #line default
            #line hidden
            
            #line 147 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                     if (!string.IsNullOrEmpty(assignment.Device.AssetNumber))
                                                                    {

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

            
            #line 149 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                         Write(assignment.Device.AssetNumber);

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

            
            #line 150 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                    }
                                                                    else
                                                                    {

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

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

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

            
            #line 154 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                    }

            
            #line default
            #line hidden
WriteLiteral(@"                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Assigned:</td>
                                                                <td>
                                                                    <span>");

            
            #line 160 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                     Write(CommonHelpers.FriendlyDate(assignment.AssignedDate));

            
            #line default
            #line hidden
WriteLiteral(@"</span>
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </div>
                                            </li>   
");

            
            #line 167 "..\..\Views\User\UserParts\_Subject.cshtml"
                                        }

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

WriteLiteral("                            <script>\r\n                                $(function " +
"() {\r\n                                    var button = $(\'#User_Show_Details_Act" +
"ions_CreateJob_Button\');\r\n                                    var buttonDialog =" +
" null;\r\n\r\n                                    button.click(function () {\r\n      " +
"                                  if (!buttonDialog) {\r\n                        " +
"                    buttonDialog = $(\'#User_Show_Details_Actions_CreateJob_Dialo" +
"g\').dialog({\r\n                                                resizable: false,\r" +
"\n                                                width: 400,\r\n                  " +
"                              modal: true,\r\n                                    " +
"            autoOpen: false,\r\n                                                bu" +
"ttons: {\r\n                                                    Cancel: function (" +
") {\r\n                                                        $(this).dialog(\"clo" +
"se\");\r\n                                                    }\r\n                  " +
"                              }\r\n                                            });" +
"\r\n\r\n                                            dialogItems = buttonDialog.find(" +
"\'li.CreateJob_Assignment\');\r\n\r\n                                            dialo" +
"gItems.click(function () {\r\n                                                var " +
"$this = $(this);\r\n\r\n                                                buttonDialog" +
".dialog(\"close\");\r\n\r\n                                                var createJ" +
"obUrl = $this.attr(\'data-createjoburl\');\r\n                                      " +
"          document.DiscoFunctions.CreateOpenJobDialog(createJobUrl);\r\n          " +
"                                  });\r\n                                        }" +
"\r\n\r\n                                        buttonDialog.dialog(\'open\');\r\n      " +
"                                  return false;\r\n                               " +
"     });\r\n                                });\r\n                            </scr" +
"ipt>\r\n");

            
            #line 207 "..\..\Views\User\UserParts\_Subject.cshtml"
                            }
                            else
                            {

            
            #line default
            #line hidden
WriteLiteral(@"                            <script>
                                $(function () {
                                    $('#User_Show_Details_Actions_CreateJob_Button').click(function () {
                                        var $this = $(this);
                                        var href = $this.attr('href');

                                        document.DiscoFunctions.CreateOpenJobDialog(href);

                                        return false;
                                    });
                                });
                            </script>
");

            
            #line 222 "..\..\Views\User\UserParts\_Subject.cshtml"
                            }
                        }

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

            
            #line 227 "..\..\Views\User\UserParts\_Subject.cshtml"
            
            
            #line default
            #line hidden
            
            #line 227 "..\..\Views\User\UserParts\_Subject.cshtml"
             if (Authorization.Has(Claims.User.ShowAssignments))
            {

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

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

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

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

WriteLiteral(">\r\n                            <h3>Current Device Assignments</h3>\r\n");

            
            #line 233 "..\..\Views\User\UserParts\_Subject.cshtml"
                            
            
            #line default
            #line hidden
            
            #line 233 "..\..\Views\User\UserParts\_Subject.cshtml"
                             if (currentDeviceAssignments.Count > 0)
                            {
                                foreach (var assignment in currentDeviceAssignments)
                                {

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

WriteLiteral(" class=\"User_Show_AssignedDevices_CurrentAssignment clearfix\"");

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

            
            #line 237 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                      Write(assignment.DeviceSerialNumber);

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

WriteLiteral(">\r\n");

            
            #line 238 "..\..\Views\User\UserParts\_Subject.cshtml"
                                    
            
            #line default
            #line hidden
            
            #line 238 "..\..\Views\User\UserParts\_Subject.cshtml"
                                     if (Authorization.Has(Claims.Device.Show))
                                    {

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

WriteAttribute("href", Tuple.Create(" href=\"", 15030), Tuple.Create("\"", 15097)
            
            #line 240 "..\..\Views\User\UserParts\_Subject.cshtml"
, Tuple.Create(Tuple.Create("", 15037), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.Device.Show(assignment.Device.SerialNumber))
            
            #line default
            #line hidden
, 15037), false)
);

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

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

WriteLiteral(" alt=\"Model Image\"");

WriteAttribute("src", Tuple.Create(" src=\"", 15225), Tuple.Create("\"", 15346)
            
            #line 241 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                 , Tuple.Create(Tuple.Create("", 15231), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.DeviceModel.Image(assignment.Device.DeviceModel.Id, assignment.Device.DeviceModel.ImageHash()))
            
            #line default
            #line hidden
, 15231), false)
);

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

            
            #line 243 "..\..\Views\User\UserParts\_Subject.cshtml"
                                    }
                                    else
                                    {

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

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

WriteLiteral(" alt=\"Model Image\"");

WriteAttribute("src", Tuple.Create(" src=\"", 15638), Tuple.Create("\"", 15759)
            
            #line 246 "..\..\Views\User\UserParts\_Subject.cshtml"
                                             , Tuple.Create(Tuple.Create("", 15644), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.DeviceModel.Image(assignment.Device.DeviceModel.Id, assignment.Device.DeviceModel.ImageHash()))
            
            #line default
            #line hidden
, 15644), false)
);

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

            
            #line 247 "..\..\Views\User\UserParts\_Subject.cshtml"
                                    }

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

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

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

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

WriteLiteral(@">
                                            <tbody>
                                                <tr>
                                                    <td>Serial Number:
                                                    </td>
                                                    <td>
                                                        <span");

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

WriteLiteral(">\r\n");

            
            #line 256 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                            
            
            #line default
            #line hidden
            
            #line 256 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                             if (Authorization.Has(Claims.Device.Show))
                                                            {
                                                                
            
            #line default
            #line hidden
            
            #line 258 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                           Write(Html.ActionLink(assignment.Device.SerialNumber, MVC.Device.Show(assignment.Device.SerialNumber)));

            
            #line default
            #line hidden
            
            #line 258 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                                                                 
                                                            }
                                                            else
                                                            {
                                                                
            
            #line default
            #line hidden
            
            #line 262 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                           Write(assignment.Device.SerialNumber);

            
            #line default
            #line hidden
            
            #line 262 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                               
                                                            }

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

            
            #line 265 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                        
            
            #line default
            #line hidden
            
            #line 265 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                         if (!string.IsNullOrWhiteSpace(assignment.Device.ComputerName))
                                                        {

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

WriteLiteral("(<span");

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

WriteLiteral(">");

            
            #line 267 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                                     Write(assignment.Device.ComputerName);

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

WriteLiteral("\r\n");

            
            #line 268 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                        }

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

            
            #line 271 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                
            
            #line default
            #line hidden
            
            #line 271 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                 if (!string.IsNullOrEmpty(assignment.Device.AssetNumber))
                                                {

            
            #line default
            #line hidden
WriteLiteral(@"                                                    <tr>
                                                        <td>Asset:</td>
                                                        <td>
                                                            <span");

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

WriteLiteral(">");

            
            #line 276 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                       Write(assignment.Device.AssetNumber);

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

            
            #line 279 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                }

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

            
            #line 280 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                 if (assignment.Device.DeviceModelId.HasValue)
                                                {

            
            #line default
            #line hidden
WriteLiteral(@"                                                    <tr>
                                                        <td>Model:
                                                        </td>
                                                        <td>
                                                            <span");

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

WriteLiteral(">");

            
            #line 286 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                       Write(assignment.Device.DeviceModel.ToString());

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

            
            #line 289 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                }

            
            #line default
            #line hidden
WriteLiteral(@"                                                <tr>
                                                    <td>Profile:
                                                    </td>
                                                    <td>
                                                        <span");

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

WriteLiteral(">");

            
            #line 294 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                     Write(assignment.Device.DeviceProfile.ToString());

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

            
            #line 297 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                
            
            #line default
            #line hidden
            
            #line 297 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                 if (assignment.Device.DeviceBatchId.HasValue)
                                                {

            
            #line default
            #line hidden
WriteLiteral(@"                                                    <tr>
                                                        <td>Batch:
                                                        </td>
                                                        <td>
                                                            <span");

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

WriteLiteral(">");

            
            #line 303 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                       Write(assignment.Device.DeviceBatch.ToString());

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

            
            #line 306 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                }

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

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

WriteLiteral(">");

            
            #line 310 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                      Write(CommonHelpers.FriendlyDate(assignment.AssignedDate));

            
            #line default
            #line hidden
WriteLiteral(@"</span>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>   
");

            
            #line 317 "..\..\Views\User\UserParts\_Subject.cshtml"
                                }
                            }
                            else
                            {

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

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

WriteLiteral(">No Current Device Assignments</span>\r\n");

            
            #line 322 "..\..\Views\User\UserParts\_Subject.cshtml"
                            }

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

            
            #line 326 "..\..\Views\User\UserParts\_Subject.cshtml"
            }

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

        }
    }
}
#pragma warning restore 1591
