Update: New User UI (Initial)

This commit is contained in:
Gary Sharp
2013-06-20 16:51:26 +10:00
parent 7353c7c6b3
commit 86a107ed41
22 changed files with 1565 additions and 1061 deletions
+2 -2
View File
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0620.1229")]
[assembly: AssemblyFileVersion("1.2.0620.1229")]
[assembly: AssemblyVersion("1.2.0620.1540")]
[assembly: AssemblyFileVersion("1.2.0620.1540")]
+2 -2
View File
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0606.1909")]
[assembly: AssemblyFileVersion("1.2.0606.1909")]
[assembly: AssemblyVersion("1.2.0620.1243")]
[assembly: AssemblyFileVersion("1.2.0620.1243")]
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0606.1909")]
[assembly: AssemblyFileVersion("1.2.0606.1909")]
[assembly: AssemblyVersion("1.2.0620.1243")]
[assembly: AssemblyFileVersion("1.2.0620.1243")]
+2 -2
View File
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0620.1229")]
[assembly: AssemblyFileVersion("1.2.0620.1229")]
[assembly: AssemblyVersion("1.2.0620.1540")]
[assembly: AssemblyFileVersion("1.2.0620.1540")]
+2 -2
View File
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0620.1229")]
[assembly: AssemblyFileVersion("1.2.0620.1229")]
[assembly: AssemblyVersion("1.2.0620.1540")]
[assembly: AssemblyFileVersion("1.2.0620.1540")]
+2 -2
View File
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0620.1229")]
[assembly: AssemblyFileVersion("1.2.0620.1229")]
[assembly: AssemblyVersion("1.2.0620.1540")]
[assembly: AssemblyFileVersion("1.2.0620.1540")]
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0620.1229")]
[assembly: AssemblyFileVersion("1.2.0620.1229")]
[assembly: AssemblyVersion("1.2.0620.1540")]
[assembly: AssemblyFileVersion("1.2.0620.1540")]
+110 -17
View File
@@ -1,15 +1,22 @@
.tableData {
.tableData {
border: solid 1px #e8eef4;
border-collapse: collapse;
}
.tableData td {
.tableData > tbody > tr > td {
border: solid 1px #e8eef4;
background-color: #fff;
}
.tableData th {
.tableData > tbody > tr:nth-child(odd) > td {
background-color: #fcfcfd;
}
.tableData > thead > tr > th,
.tableData > tbody > tr > th {
background-color: #e8eef4;
border: solid 1px #e8eef4;
}
.tableData > tbody > tr:hover > td {
background-color: #e8eef4;
}
.tableDataDark {
border: solid 1px #8db2d8;
border-collapse: collapse;
@@ -64,31 +71,117 @@
-moz-opacity: 1;
opacity: 1;
}
table.userTable {
border: solid 1px #e8eef4;
border-collapse: collapse;
#User_Show #User_Show_Subjects {
table-layout: fixed;
}
table.userTable td {
border: solid 1px #e8eef4;
background-color: #fff;
#User_Show #User_Show_Subjects > tbody > tr > td {
padding-top: 0;
height: 100%;
}
table.userTable th {
background-color: #e8eef4;
border: solid 1px #e8eef4;
#User_Show #User_Show_Subjects > tbody > tr > td > div {
position: relative;
}
table.userShow td.details {
#User_Show #User_Show_Subjects > tbody > tr > td > div div.status {
margin-top: 2px;
padding-top: 2px;
border-top: 1px dashed #ddd;
}
#User_Show #User_Show_Subjects > tbody > tr > td > div input.discreet {
margin-left: -2px;
}
#User_Show #User_Show_Subjects > tbody > tr > td:not(:last-child) {
border-right: 1px dashed #aaa;
}
#User_Show #User_Show_Subjects .dialog {
display: none;
}
#User_Show #User_Show_Subjects #User_Show_Details {
width: 33%;
}
#User_Show #User_Show_Subjects #User_Show_Details table.verticalHeadings > tbody > tr > td:first-child {
width: 104px;
font-weight: bold;
}
#User_Show #User_Show_Subjects #User_Show_Details #User_Show_Details_Identity_Id {
font-weight: bold;
}
#User_Show #User_Show_Subjects #User_Show_Details #User_Show_GenerateDocument_Container {
padding-top: 4px;
}
#User_Show #User_Show_Subjects #User_Show_Details #User_Show_GenerateDocument_Container #User_Show_GenerateDocument {
padding: 0;
}
table.userShow th.name {
width: 150px;
text-align: right;
#User_Show #User_Show_Subjects #User_Show_Details #User_Show_Details_Actions {
margin-top: 4px;
}
#userShowResources {
#User_Show #User_Show_Subjects #User_Show_AssignedDevices {
width: 66%;
}
#User_Show #User_Show_Subjects #User_Show_AssignedDevices .User_Show_AssignedDevices_CurrentAssignment {
border-bottom: 1px dashed #ddd;
padding: 4px;
}
#User_Show #User_Show_Subjects #User_Show_AssignedDevices .User_Show_AssignedDevices_CurrentAssignment td:first-child {
width: 90px;
font-weight: bold;
}
#User_Show #User_Show_Subjects #User_Show_AssignedDevices .User_Show_AssignedDevices_CurrentAssignment img.User_Show_AssignedDevices_CurrentAssignment_Image {
float: left;
width: 64px;
height: 64px;
margin-right: 6px;
}
#User_Show #User_Show_Subjects #User_Show_AssignedDevices .User_Show_AssignedDevices_CurrentAssignment div.User_Show_AssignedDevices_CurrentAssignment_Details {
float: left;
}
#User_Show #User_Show_Subjects #User_Show_Subjects_Actions > td {
padding-top: 4px;
}
#UserDetailTabs {
margin-top: 10px;
/*jQuery Tab Extensions*/
border-radius: 0;
background-image: none;
background-color: #fff;
border: none;
padding: 0;
}
#UserDetailTabs #UserDetailTabItems {
border-radius: 0;
border-top: 1px solid #ddd;
border-right: 1px solid #ddd;
border-left: 1px solid #ddd;
border-bottom: none;
padding: 2px 0 0 4px;
background-image: none;
background-color: #eee;
display: table;
}
#UserDetailTabs #UserDetailTabItems > li {
top: 0;
border-radius: 0;
margin: 0 5px 0 0;
padding: 0;
line-height: normal;
margin-right: 4px;
}
#UserDetailTabs #UserDetailTabItems > li > a {
padding: 5px 8px;
}
#UserDetailTabs div.ui-tabs-panel {
border-radius: 0;
padding: 4px;
border-right: 1px solid #ddd;
border-bottom: 1px solid #ddd;
border-left: 1px solid #ddd;
border-top: none;
background-color: #eee;
}
#userShowResources #Attachments {
padding: 0;
border: 1px solid #cccccc;
background-color: #fff;
}
#userShowResources #Attachments div.attachmentOutput {
height: 115px;
+146 -12
View File
@@ -1,32 +1,152 @@
@import "Shared";
// User Table
table.userTable
{
.tableData;
#User_Show {
#User_Show_Subjects {
table-layout: fixed;
& > tbody > tr > td {
padding-top: 0;
height: 100%;
& > div /* Extra DIV added for FireFox TD relative position incompatibility */ {
position: relative;
div.status {
margin-top: 2px;
padding-top: 2px;
border-top: 1px dashed #ddd;
}
// User Show
table.userShow
{
td.details{
input.discreet {
margin-left: -2px;
}
}
}
& > tbody > tr > td:not(:last-child) {
border-right: 1px dashed #aaa;
}
.dialog {
display: none;
}
#User_Show_Details {
width: 33%;
table.verticalHeadings {
& > tbody > tr > td:first-child {
width: 104px;
font-weight: bold;
}
}
#User_Show_Details_Identity_Id {
font-weight: bold;
}
#User_Show_GenerateDocument_Container {
padding-top: 4px;
#User_Show_GenerateDocument {
padding: 0;
}
th.name {
width: 150px;
text-align: right;
}
#User_Show_Details_Actions {
margin-top: 4px;
}
}
#userShowResources {
#User_Show_AssignedDevices {
width: 66%;
.User_Show_AssignedDevices_CurrentAssignment {
border-bottom: 1px dashed #ddd;
padding: 4px;
td:first-child {
width: 90px;
font-weight: bold;
}
img.User_Show_AssignedDevices_CurrentAssignment_Image {
float: left;
width: 64px;
height: 64px;
margin-right: 6px;
}
div.User_Show_AssignedDevices_CurrentAssignment_Details {
float: left;
}
}
}
#User_Show_Subjects_Actions {
& > td {
padding-top: 4px;
}
}
}
}
#UserDetailTabs {
margin-top: 10px;
/*jQuery Tab Extensions*/
border-radius: 0;
background-image: none;
background-color: #fff;
border: none;
padding: 0;
#UserDetailTabItems {
border-radius: 0;
border-top: 1px solid #ddd;
border-right: 1px solid #ddd;
border-left: 1px solid #ddd;
border-bottom: none;
padding: 2px 0 0 4px;
background-image: none;
background-color: #eee;
display: table;
& > li {
top: 0;
border-radius: 0;
margin: 0 5px 0 0;
padding: 0;
line-height: normal;
margin-right: 4px;
& > a {
padding: 5px 8px;
}
}
}
div.ui-tabs-panel {
border-radius: 0;
padding: 4px;
border-right: 1px solid #ddd;
border-bottom: 1px solid #ddd;
border-left: 1px solid #ddd;
border-top: none;
background-color: #eee;
}
}
#userShowResources {
#Attachments {
padding: 0;
border: 1px solid @SubtleBorderColour;
background-color: #fff;
div.attachmentOutput {
height: 115px;
overflow: auto;
font-size: 0.95em;
& > a {
display: block;
float: left;
@@ -38,6 +158,7 @@ table.userShow
border: 1px solid #fff;
color: #000;
text-decoration: none;
span.comments, span.author, span.timestamp {
display: block;
float: left;
@@ -45,50 +166,60 @@ table.userShow
overflow: hidden;
height: 16px;
}
span.author {
color: #888;
width: 150px;
}
span.timestamp {
color: #888;
font-style: italic;
}
span.icon {
display: block;
float: left;
height: 48px;
width: 48px;
margin-right: 2px;
img {
height: 48px;
width: 48px;
}
}
&:hover {
background-color: @SubtleColour;
border: 1px solid @SubtleBorderColour;
.border-radius(3px);
span.remove {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAADHklEQVQ4T22SeUgUcRTHZ/aY2dnZLdfWI4KuP+zQsja7KMraXaMsOrUghe6DMjNXN7LlSyt2EHZAqbgdZFRQ/xR0QGVqZmi6h2mnVHYYBboVbgvS8evtSkHWF74w897nvTfv9xuO+48uRAyMrpqSnNSYssD6wJxqrUxISjonG6P7cv/otNZgfDR/cXrPwcO72dXrYK5TYKXlYMdLEUShw2uZu9wl6KP61oV1NiJmaFfGKhvLtYNtziJvA9u0FWzj1t73bTvAbHZ0LF2R55INw/8qPiboI9/PnpPH5i1C98RpaCP3TJ6On8kpYMlWfJthwSvLfAQnTQebtxBtU2fkH1JqjX8aVA0alvY13oQXsUPgWbkar5o8eEjgZ0MsvpAfWlPRTjFf5hq8jRmMwKhEXIkatCJcfICXjI8NsbsbVRJq4xIQCATAGIP/wwe4x09GU4IJne86wrFAMIgHI8fCp9KgQR/pcPKaaK5YKU24IehwjFPijCCiBXvwk+CQuzreo/Ptu/DzD/ITZxEuiRqcIPayQoMiXpzIOVWSuYSm2zkVijkFXBwHT64N/s4ufO7uDtvv98OXZ0cF5UqJ2UtsGS+gkBetnF0lWQrVEhZzPLZTsoigihHxeNbcjJevX+Nlezuet7bifMI4HKVcEU3fTJyDVyGfF1O4HKXGVCZosY4aZBNQPHoM6quq4aWi1qdPw/a2tKLhbi1KEidgFzFrid2nUCMntMIGTjCe1OgcRyhRNmQ4am7eRmVdHercHrizsuHZkoX7Hg9u1d6Fr9GLK4mTsJ/YEqXo2MgJvX/nLrWUVklrXJB1qN/jRLXbDU92DqoJrCF7qVENNWncfwAX+/XDNZpeoBB7rzGkTE4wuCS9rVkp4o5CgC/ZDB/t2UZ+QW6hT26ZZUYVXV8THWC5WsqnmgF/GoSUwQuDK7T9c98IMjpoalCtBYuMATMORI9Gj48Ua1dKqBBkWyYvDPur+LfSOXUkRN2yexFRBf64eHyflYLvMy34NGosGgwxBU5BTkvvO/l/WkIHu14lm3bqjGa7bDBvUMumpRTry4X0C+L3YvcBfxOhAAAAAElFTkSuQmCC) /*Images/Actions/removeSubtle.png*/;
}
}
span.remove {
display: block;
float: left;
height: 16px;
width: 16px;
margin-left: 2px;
&:hover {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAADG0lEQVQ4y3WTCUhUURSG35vlvnnzZsoJQyMo2nTMKdsXEtOcjKxogwhKaDFNysysJooQRzTLbIFScVrIaMEiElqgMjUzsnEWl1apbNG0dCqcJiarv+NEgWEPfnj3nO/+5567cAC4f3XOb5ChfFrkemvMgn0PoufllhkmJZ2R/Mf0xfYanFTr9A/nL77ozT3oxZVrgOUEUFAEHC2AJz3zm8M495KFaUf3aXDaLyCqc+WqdqSZgKRk0iZg/UYgcePv8aYtwFYTWpYu/2CRdMZeBkeYdmTrrDnvEbsIXZNnoInknRqOn5ExQORsdEcY8dI4H54p4UDsQjRNj+g8IFfr/xqUDx5W8iV0Ap4HDoV9xWq8rLWjnsBPukB8JtXPnodmijnj1uBNwBC4Q8JQOnBwqc9gLy/qH+kCvVaFiKogA9xuN3o+V1sbbOOnotYwAR1vW3wxt8eDB/qxcCpUqNEO6DbzKgOXJxcTrjMNjnBynGICGtIz8JPgHnW2tKLjzVvf/w/SY3MWLggqHCP2skyFLF7YwJkV4p58qm7iFMjjZLBQV/a0rXB1dOJTV5dPLpcLzm0mFFOugJhsYgt5hkxeyOVMCjEnUyliMcdjMyWzCCoODsXTujq8ePUKL5qb8ayxEWcN43CYcllUPYm43bwC23lhP5cqV60rZGrEk0EKAXmjx+B+eQUcNKnxyROfHA2NqLlThfywidhJzFpi98iUSO1pIYFj+uMqzbdDlCgcOhyVN26hrLoa1TY7bMkpsG9Ixj27HTer7sBpdaA0bApyiM2XC92JHDP4jnGnUiwpozbOSRrczzCjwmaDPSUVFQRWkhxkVEkm1py9KOnXD1ep+i6ZcPnvPYjj2AiLqG2vkwu4LWNwRkbDSX02kZ6TGmjJDVHRKKfjq6UNLFKKHTQnqNdVXsmz8GJ1/3evmYQWCnuUamBAAOA/CF6VFu0Ua5aLKGZSexzPZvX5mJZxylHpgub8Xb+BX11BofgeFYPvM434GDIWNbqAr2YmlSzjWPB/X+MfLaGNXaeQ4ndo/LNNki47QSnFL+VYSF/sL7crTEWWnWvrAAAAAElFTkSuQmCC) /*Images/Actions/remove.png*/;
}
}
}
}
div.attachmentInput {
border-top: 1px solid @SubtleBorderColour;
height: 40px;
background-color: #fff;
padding: 3px;
span.action {
display: block;
margin: 2px 4px 0 0;
@@ -100,15 +231,18 @@ table.userShow
padding: 3px;
background-repeat: no-repeat;
background-position: 2px 3px;
&:hover {
background-color: @SubtleColour;
border: 1px solid @SubtleBorderColour;
.border-radius(3px);
}
}
span.upload {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAFPUlEQVRYw7VXayzkVxRfy4yKTj0aj6JWJISuR9EiWj5IFZt4pB+kLYmdbEJEJpp2daeIJkRNMx7xqFcl0iXxaKwVj8ishhG+eARr10wY6hVMx3gM1mNxeo7YRDfzNr3Jyfzn/u/939899/x+59xbAHDLEIbNxNHRMSQ5OTmvuLi4pbS0tDU1NbXA3d09FN8ZqZxniMVZLJZvSUnJ0NHREVA7PDwEhUIBb1pNTU2PtbW1+/8CwMvLiz07O/uKFqqrq9sNDAzstLCw4Jubm/Pd3NyeZGdnb56dncH09LQUQfgaFIC9vX30+vr6uUwmg5CQkD509Rdo75HL0W6jWaJF+/n5CRcXF0EgEEiMjIw+MAgAbM7d3d1/y6QywAU68b+NmrFeYWFhwtPTU8jIyKi/MQDaXU5OjoDcHhsb+4x2fdX/jqqAwxbf0dFxNj4+vofPtjcCgO7+gRbn8/lSS0vLjPT09KrOp09F/f39S9XV1QOhoaFsXITxFoD3cfcv8MgA2RKuNwAzM7MgsVh8MDAwAAkJCRI8230CIxKJYHh4GLa2ti4jv6CggI7F7BoABlJ0cHNzEzA4v9ELADar1tZWkVQqBS6Xe4G/F/Pz8xAdHT2KwZWN7zkODg7NVVVVr87PzyErK6vp2lxTnDO2vLwMOCZeLwBsNvu3K9fDxMQEjI2NgZ2dXSl+3OnaQtZo3Pr6+qNt+TZ4enreu+q/09nZuUdeQrA+OgNwdXX9en9/H5qbm+Hx48dAO/fw8PiddqbEUyyMg66VlRVg379fQ32+vr4Z5Lnc3Nzn/zkabRY3MTHxmJmZ2UExgfz8fKBAiomJ+Usd9fCcc+fm5gDluB3HOSLwtcnJSXB2dv5JJxoS5crLy58dHx9DXl4eLCwsAMquFPs/VjcvPDy8dHV1FeLi4v7E6O+V4e7j4+MHiQ06AYiIiPiRzh2TC/T19YFQKASUWo4G0GZlZWUvpqamyAOLBATnb2N/sE5S7OTk9KVcLn/d09MDlZWVl+fu4+PTSIKjbh7GRuqCZIGSEAwNDV2gPgDmgYc6J6PMzMxW0nDk9MXa2hqkpaW9vB7xyozBYNzt7e3dHRkZuQxYiURCUv2HKtBqzx75yk1MTFwmFzY1Nb1G+sRrcL1RFpcr2NzYgNraWlheWgIOhyOmvKFXPYDtM3S/ggLP1tb2F3WFBZm/v/93BLaxsRFGR0ehoaHhBEF/pXYNdRUOj8cTUgCi0hHlWGqLEgvW5+j2EwrS9vb2SwB29vY/a2SZqhcoJFxaHClH0fuppqjHceO0exKpJXQ96kQ/9r+rFwAmkxmMCeeIdoGUe6gFVX8lnpPrUbCAV8iT4eKfaJVflHUidxtp9ygiAk2Uo927uLhUFBUVnVDkd3V1nZuamj7QOsEpy3iYNJZINq2srBK0zJKeKDT/EGVR8yk/3L4JgLuDg4PHLS0tB/j8oTYfSUpKqtuWyyElJeWltnPUAfDHKD5FEaHgs9T0gYCAAA4lJ6yEdnF8hM7lnRIAd1D5VijfI/eDNVRH/pjfD0jzsS54pFd9qQQAMygoqJ3Eh1dYSKU2U0WKdseiQ0QlVmRkJI0zNwiAKxAxWD5t7ezsAGa1IaTiR9dLK6xyvu3q7pYeHhwAFqQktZ56l/cqAJgaGxt/z+cXHSr2FEA3n8qKihEsRnoxOCUbqPVkmOdXcGzoje6U6vhNRWZUVNTztra2szmxGIhmVAei6u17e3s/wfchN77UarrxknvRHuAFtMjGxqacwWQ8omjXlBsMAuAtMMYEyFDX+Tf2LzGXbu1DZYkMAAAAAElFTkSuQmCC) /*Images/Actions/attach.png*/;
}
span.photo {
background-image: url(data:image/png;base64,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) /*Images/Actions/photo.png*/;
}
File diff suppressed because one or more lines are too long
+30 -32
View File
@@ -528,23 +528,23 @@
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
</Compile>
<Compile Include="Views\Device\DeviceParts\AssignmentHistory.generated.cs">
<Compile Include="Views\Device\DeviceParts\_AssignmentHistory.generated.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>AssignmentHistory.cshtml</DependentUpon>
<DependentUpon>_AssignmentHistory.cshtml</DependentUpon>
</Compile>
<Compile Include="Views\Device\DeviceParts\Certificates.generated.cs">
<Compile Include="Views\Device\DeviceParts\_Certificates.generated.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Certificates.cshtml</DependentUpon>
<DependentUpon>_Certificates.cshtml</DependentUpon>
</Compile>
<Compile Include="Views\Device\DeviceParts\Jobs.generated.cs">
<Compile Include="Views\Device\DeviceParts\_Jobs.generated.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Jobs.cshtml</DependentUpon>
<DependentUpon>_Jobs.cshtml</DependentUpon>
</Compile>
<Compile Include="Views\Device\DeviceParts\Resources.generated.cs">
<DependentUpon>Resources.cshtml</DependentUpon>
<Compile Include="Views\Device\DeviceParts\_Resources.generated.cs">
<DependentUpon>_Resources.cshtml</DependentUpon>
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
</Compile>
@@ -764,19 +764,19 @@
<DesignTime>True</DesignTime>
</Compile>
<Compile Include="Views\User\Show.generated.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Show.cshtml</DependentUpon>
</Compile>
<Compile Include="Views\User\UserParts\_Resources.generated.cs">
<DependentUpon>_Resources.cshtml</DependentUpon>
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
</Compile>
<Compile Include="Views\User\UserParts\Resources.generated.cs">
<DependentUpon>Resources.cshtml</DependentUpon>
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
</Compile>
<Compile Include="Views\User\_UserDeviceAssignmentHistoryTable.generated.cs">
<DependentUpon>_UserDeviceAssignmentHistoryTable.cshtml</DependentUpon>
<Compile Include="Views\User\UserParts\_Subject.generated.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>_Subject.cshtml</DependentUpon>
</Compile>
<Compile Include="Views\User\_UserTable.generated.cs">
<DependentUpon>_UserTable.cshtml</DependentUpon>
@@ -1393,21 +1393,21 @@
<Generator>RazorGenerator</Generator>
<LastGenOutput>AddOffline.generated.cs</LastGenOutput>
</None>
<None Include="Views\Device\DeviceParts\AssignmentHistory.cshtml">
<None Include="Views\Device\DeviceParts\_AssignmentHistory.cshtml">
<Generator>RazorGenerator</Generator>
<LastGenOutput>AssignmentHistory.generated.cs</LastGenOutput>
<LastGenOutput>_AssignmentHistory.generated.cs</LastGenOutput>
</None>
<None Include="Views\Device\DeviceParts\Certificates.cshtml">
<None Include="Views\Device\DeviceParts\_Certificates.cshtml">
<Generator>RazorGenerator</Generator>
<LastGenOutput>Certificates.generated.cs</LastGenOutput>
<LastGenOutput>_Certificates.generated.cs</LastGenOutput>
</None>
<None Include="Views\Device\DeviceParts\Jobs.cshtml">
<None Include="Views\Device\DeviceParts\_Jobs.cshtml">
<Generator>RazorGenerator</Generator>
<LastGenOutput>Jobs.generated.cs</LastGenOutput>
<LastGenOutput>_Jobs.generated.cs</LastGenOutput>
</None>
<None Include="Views\Device\DeviceParts\Resources.cshtml">
<None Include="Views\Device\DeviceParts\_Resources.cshtml">
<Generator>RazorGenerator</Generator>
<LastGenOutput>Resources.generated.cs</LastGenOutput>
<LastGenOutput>_Resources.generated.cs</LastGenOutput>
</None>
<None Include="Views\Device\DeviceParts\_Subject.cshtml">
<Generator>RazorGenerator</Generator>
@@ -1417,9 +1417,6 @@
<Generator>RazorGenerator</Generator>
<LastGenOutput>Index.generated.cs</LastGenOutput>
</None>
<None Include="Views\Device\ARCHIVE_Show.cshtml" />
<None Include="Views\Device\ARCHIVE_CertificateTable.cshtml" />
<None Include="Views\Device\ARCHIVE_DeviceActions.cshtml" />
<None Include="Views\Device\Show.cshtml">
<Generator>RazorGenerator</Generator>
<LastGenOutput>Show.generated.cs</LastGenOutput>
@@ -1428,7 +1425,6 @@
<Generator>RazorGenerator</Generator>
<LastGenOutput>_DeviceTable.generated.cs</LastGenOutput>
</None>
<None Include="Views\Device\ARCHIVE_DeviceUserAssignmentHistoryTable.cshtml" />
<None Include="Views\Device\_ViewStart.cshtml">
<Generator>RazorGenerator</Generator>
<LastGenOutput>_ViewStart.generated.cs</LastGenOutput>
@@ -1752,17 +1748,19 @@
<Generator>RazorGenerator</Generator>
<LastGenOutput>Index.generated.cs</LastGenOutput>
</None>
<None Include="Views\User\ARCHIVE_Show.cshtml" />
<None Include="Views\User\Show.cshtml">
<Generator>RazorGenerator</Generator>
<LastGenOutput>Show.generated.cs</LastGenOutput>
</None>
<None Include="Views\User\UserParts\Resources.cshtml">
<None Include="Views\User\UserParts\_Resources.cshtml">
<Generator>RazorGenerator</Generator>
<LastGenOutput>Resources.generated.cs</LastGenOutput>
<LastGenOutput>_Resources.generated.cs</LastGenOutput>
</None>
<None Include="Views\User\_UserDeviceAssignmentHistoryTable.cshtml">
<None Include="Views\User\ARCHIVE__UserDeviceAssignmentHistoryTable.cshtml" />
<None Include="Views\User\UserParts\_Subject.cshtml">
<Generator>RazorGenerator</Generator>
<LastGenOutput>_UserDeviceAssignmentHistoryTable.generated.cs</LastGenOutput>
<LastGenOutput>_Subject.generated.cs</LastGenOutput>
</None>
<None Include="Views\User\_UserTable.cshtml">
<Generator>RazorGenerator</Generator>
@@ -1874,7 +1872,7 @@
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
</WebProjectProperties>
</FlavorProperties>
<UserProperties BuildVersion_UpdateFileVersion="True" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_BuildVersioningStyle="None.DeltaBaseYear.MonthAndDayStamp.TimeStamp" BuildVersion_DetectChanges="False" BuildVersion_UseGlobalSettings="False" BuildVersion_BuildAction="Both" BuildVersion_StartDate="2011/7/1" />
<UserProperties BuildVersion_StartDate="2011/7/1" BuildVersion_BuildAction="Both" BuildVersion_UseGlobalSettings="False" BuildVersion_DetectChanges="False" BuildVersion_BuildVersioningStyle="None.DeltaBaseYear.MonthAndDayStamp.TimeStamp" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_UpdateFileVersion="True" />
</VisualStudio>
</ProjectExtensions>
<Import Project="$(SolutionDir)\.nuget\nuget.targets" />
+2 -2
View File
@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.2.0620.1229")]
[assembly: AssemblyFileVersion("1.2.0620.1229")]
[assembly: AssemblyVersion("1.2.0620.1540")]
[assembly: AssemblyFileVersion("1.2.0620.1540")]
+16 -42
View File
@@ -39,7 +39,6 @@ public static class MVC
public static Disco.Web.Controllers.SearchController Search = new Disco.Web.Controllers.T4MVC_SearchController();
public static Disco.Web.Controllers.UpdateController Update = new Disco.Web.Controllers.T4MVC_UpdateController();
public static Disco.Web.Controllers.UserController User = new Disco.Web.Controllers.T4MVC_UserController();
public static T4MVC.HomeController Home = new T4MVC.HomeController();
public static T4MVC.SharedController Shared = new T4MVC.SharedController();
}
@@ -1148,20 +1147,12 @@ namespace Disco.Web.Controllers
public readonly string _DeviceTable = "_DeviceTable";
public readonly string _ViewStart = "_ViewStart";
public readonly string AddOffline = "AddOffline";
public readonly string ARCHIVE_CertificateTable = "ARCHIVE_CertificateTable";
public readonly string ARCHIVE_DeviceActions = "ARCHIVE_DeviceActions";
public readonly string ARCHIVE_DeviceUserAssignmentHistoryTable = "ARCHIVE_DeviceUserAssignmentHistoryTable";
public readonly string ARCHIVE_Show = "ARCHIVE_Show";
public readonly string Index = "Index";
public readonly string Show = "Show";
}
public readonly string _DeviceTable = "~/Views/Device/_DeviceTable.cshtml";
public readonly string _ViewStart = "~/Views/Device/_ViewStart.cshtml";
public readonly string AddOffline = "~/Views/Device/AddOffline.cshtml";
public readonly string ARCHIVE_CertificateTable = "~/Views/Device/ARCHIVE_CertificateTable.cshtml";
public readonly string ARCHIVE_DeviceActions = "~/Views/Device/ARCHIVE_DeviceActions.cshtml";
public readonly string ARCHIVE_DeviceUserAssignmentHistoryTable = "~/Views/Device/ARCHIVE_DeviceUserAssignmentHistoryTable.cshtml";
public readonly string ARCHIVE_Show = "~/Views/Device/ARCHIVE_Show.cshtml";
public readonly string Index = "~/Views/Device/Index.cshtml";
public readonly string Show = "~/Views/Device/Show.cshtml";
static readonly _DevicePartsClass s_DeviceParts = new _DevicePartsClass();
@@ -1173,17 +1164,17 @@ namespace Disco.Web.Controllers
public _ViewNamesClass ViewNames { get { return s_ViewNames; } }
public class _ViewNamesClass
{
public readonly string _AssignmentHistory = "_AssignmentHistory";
public readonly string _Certificates = "_Certificates";
public readonly string _Jobs = "_Jobs";
public readonly string _Resources = "_Resources";
public readonly string _Subject = "_Subject";
public readonly string AssignmentHistory = "AssignmentHistory";
public readonly string Certificates = "Certificates";
public readonly string Jobs = "Jobs";
public readonly string Resources = "Resources";
}
public readonly string _AssignmentHistory = "~/Views/Device/DeviceParts/_AssignmentHistory.cshtml";
public readonly string _Certificates = "~/Views/Device/DeviceParts/_Certificates.cshtml";
public readonly string _Jobs = "~/Views/Device/DeviceParts/_Jobs.cshtml";
public readonly string _Resources = "~/Views/Device/DeviceParts/_Resources.cshtml";
public readonly string _Subject = "~/Views/Device/DeviceParts/_Subject.cshtml";
public readonly string AssignmentHistory = "~/Views/Device/DeviceParts/AssignmentHistory.cshtml";
public readonly string Certificates = "~/Views/Device/DeviceParts/Certificates.cshtml";
public readonly string Jobs = "~/Views/Device/DeviceParts/Jobs.cshtml";
public readonly string Resources = "~/Views/Device/DeviceParts/Resources.cshtml";
}
}
}
@@ -2242,15 +2233,17 @@ namespace Disco.Web.Controllers
public _ViewNamesClass ViewNames { get { return s_ViewNames; } }
public class _ViewNamesClass
{
public readonly string _UserDeviceAssignmentHistoryTable = "_UserDeviceAssignmentHistoryTable";
public readonly string _UserTable = "_UserTable";
public readonly string _ViewStart = "_ViewStart";
public readonly string ARCHIVE__UserDeviceAssignmentHistoryTable = "ARCHIVE__UserDeviceAssignmentHistoryTable";
public readonly string ARCHIVE_Show = "ARCHIVE_Show";
public readonly string Index = "Index";
public readonly string Show = "Show";
}
public readonly string _UserDeviceAssignmentHistoryTable = "~/Views/User/_UserDeviceAssignmentHistoryTable.cshtml";
public readonly string _UserTable = "~/Views/User/_UserTable.cshtml";
public readonly string _ViewStart = "~/Views/User/_ViewStart.cshtml";
public readonly string ARCHIVE__UserDeviceAssignmentHistoryTable = "~/Views/User/ARCHIVE__UserDeviceAssignmentHistoryTable.cshtml";
public readonly string ARCHIVE_Show = "~/Views/User/ARCHIVE_Show.cshtml";
public readonly string Index = "~/Views/User/Index.cshtml";
public readonly string Show = "~/Views/User/Show.cshtml";
static readonly _UserPartsClass s_UserParts = new _UserPartsClass();
@@ -2262,9 +2255,11 @@ namespace Disco.Web.Controllers
public _ViewNamesClass ViewNames { get { return s_ViewNames; } }
public class _ViewNamesClass
{
public readonly string Resources = "Resources";
public readonly string _Resources = "_Resources";
public readonly string _Subject = "_Subject";
}
public readonly string Resources = "~/Views/User/UserParts/Resources.cshtml";
public readonly string _Resources = "~/Views/User/UserParts/_Resources.cshtml";
public readonly string _Subject = "~/Views/User/UserParts/_Subject.cshtml";
}
}
}
@@ -2296,27 +2291,6 @@ namespace Disco.Web.Controllers
}
}
namespace T4MVC
{
public class HomeController
{
static readonly ViewsClass s_views = new ViewsClass();
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
public ViewsClass Views { get { return s_views; } }
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
public class ViewsClass
{
static readonly _ViewNamesClass s_ViewNames = new _ViewNamesClass();
public _ViewNamesClass ViewNames { get { return s_ViewNames; } }
public class _ViewNamesClass
{
}
}
}
}
namespace T4MVC
{
public class SharedController
+85
View File
@@ -0,0 +1,85 @@
@model Disco.Web.Models.User.ShowModel
@{
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");
}
<table class="userShow">
<tr>
<th class="name">Id:
</th>
<td class="value">
@Model.User.Id
</td>
<th class="name">Given Name:
</th>
<td class="value">
@Model.User.GivenName
</td>
</tr>
<tr>
<th class="name">Type:
</th>
<td class="value">
@Model.User.Type
</td>
<th class="name">Surname:
</th>
<td class="value">
@Model.User.Surname
</td>
</tr>
<tr>
<th class="name">Display Name:
</th>
<td class="value" colspan="3">
@Model.User.DisplayName
</td>
</tr>
<tr>
<th class="name">Email Address:
</th>
<td class="value">
@Model.User.EmailAddress
</td>
<th class="name">Phone Number:
</th>
<td class="value">
@Model.User.PhoneNumber
</td>
</tr>
<tr>
<th class="name">Assigned Devices:
</th>
<td class="value" colspan="3">
@Html.Partial(MVC.User.Views._UserDeviceAssignmentHistoryTable, Model.User)
</td>
</tr>
<tr>
<th class="name">Generate Documents:
</th>
<td class="value" colspan="3">
@Html.DropDownList("DocumentTemplates", Model.DocumentTemplatesSelectListItems)
<script type="text/javascript">
$(function () {
var generatePdfUrl = '@Url.Action(MVC.API.User.GeneratePdf(Model.User.Id, null))?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>
@Html.Partial(MVC.Shared.Views._JobTable, Model.Jobs)
<h2>Attachments</h2>
@Html.Partial(MVC.User.Views.UserParts.Resources, Model)
<div class="actionBar">
@Html.ActionLinkButton("Create Job", MVC.Job.Create(Model.PrimaryDeviceSerialNumber, Model.User.Id), "buttonCreateJob")
</div>
+30 -75
View File
@@ -1,85 +1,40 @@
@model Disco.Web.Models.User.ShowModel
@{
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");
ViewBag.Title = Html.ToBreadcrumb("Users", MVC.User.Index(), string.Format("User: {0} ({1})", Model.User.DisplayName, Model.User.Id));
}
<table class="userShow">
<tr>
<th class="name">Id:
</th>
<td class="value">
@Model.User.Id
</td>
<th class="name">Given Name:
</th>
<td class="value">
@Model.User.GivenName
</td>
</tr>
<tr>
<th class="name">Type:
</th>
<td class="value">
@Model.User.Type
</td>
<th class="name">Surname:
</th>
<td class="value">
@Model.User.Surname
</td>
</tr>
<tr>
<th class="name">Display Name:
</th>
<td class="value" colspan="3">
@Model.User.DisplayName
</td>
</tr>
<tr>
<th class="name">Email Address:
</th>
<td class="value">
@Model.User.EmailAddress
</td>
<th class="name">Phone Number:
</th>
<td class="value">
@Model.User.PhoneNumber
</td>
</tr>
<tr>
<th class="name">Assigned Devices:
</th>
<td class="value" colspan="3">
@Html.Partial(MVC.User.Views._UserDeviceAssignmentHistoryTable, Model.User)
</td>
</tr>
<tr>
<th class="name">Generate Documents:
</th>
<td class="value" colspan="3">
@Html.DropDownList("DocumentTemplates", Model.DocumentTemplatesSelectListItems)
<div id="User_Show">
@Html.Partial(MVC.User.Views.UserParts._Subject, Model)
<script type="text/javascript">
$(function () {
var generatePdfUrl = '@Url.Action(MVC.API.User.GeneratePdf(Model.User.Id, null))?DocumentTemplateId=';
var $documentTemplates = $('#DocumentTemplates');
$documentTemplates.change(function () {
var v = $documentTemplates.val();
if (v) {
window.location.href = generatePdfUrl + v;
$documentTemplates.val('');
var $tabs = $('#UserDetailTabs');
$tabs.tabs({
activate: function (event, ui) {
window.setTimeout(function () {
var $window = $(window);
var tabHeight = $tabs.height();
var tabOffset = $tabs.offset();
var windowScrollTop = $window.scrollTop();
var windowHeight = $window.height();
var tabTopNotShown = windowScrollTop - tabOffset.top;
if (tabTopNotShown > 0) {
$('html').animate({ scrollTop: tabOffset.top }, 125);
} else {
var tabBottomNotShown = ((windowScrollTop + windowHeight) - (tabHeight + tabOffset.top)) * -1;
if (tabBottomNotShown > 0) {
if (tabHeight > windowHeight)
$('html').animate({ scrollTop: tabOffset.top }, 125);
else
$('html').animate({ scrollTop: windowScrollTop + tabBottomNotShown }, 125);
}
}
}, 1);
}
});
});
</script>
</td>
</tr>
</table>
<h2>Jobs</h2>
@Html.Partial(MVC.Shared.Views._JobTable, Model.Jobs)
<h2>Attachments</h2>
@Html.Partial(MVC.User.Views.UserParts.Resources, Model)
<div class="actionBar">
@Html.ActionLinkButton("Create Job", MVC.Job.Create(Model.PrimaryDeviceSerialNumber, Model.User.Id), "buttonCreateJob")
<div id="UserDetailTabs">
<ul id="UserDetailTabItems"></ul>
@Html.Partial(MVC.User.Views.UserParts._Resources, Model)
</div>
</div>
+37 -214
View File
@@ -43,190 +43,22 @@ namespace Disco.Web.Views.User
#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");
ViewBag.Title = Html.ToBreadcrumb("Users", MVC.User.Index(), string.Format("User: {0} ({1})", Model.User.DisplayName, Model.User.Id));
#line default
#line hidden
WriteLiteral("\r\n<table");
WriteLiteral("\r\n<div");
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(" id=\"User_Show\"");
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 6 "..\..\Views\User\Show.cshtml"
Write(Html.Partial(MVC.User.Views.UserParts._Subject, Model));
#line default
@@ -235,64 +67,55 @@ WriteLiteral("\r\n <script");
WriteLiteral(" type=\"text/javascript\"");
WriteLiteral(">\r\n $(function () {\r\n var generatePdfUrl = \'");
WriteLiteral(@">
$(function () {
var $tabs = $('#UserDetailTabs');
$tabs.tabs({
activate: function (event, ui) {
window.setTimeout(function () {
var $window = $(window);
var tabHeight = $tabs.height();
var tabOffset = $tabs.offset();
var windowScrollTop = $window.scrollTop();
var windowHeight = $window.height();
#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('');
var tabTopNotShown = windowScrollTop - tabOffset.top;
if (tabTopNotShown > 0) {
$('html').animate({ scrollTop: tabOffset.top }, 125);
} else {
var tabBottomNotShown = ((windowScrollTop + windowHeight) - (tabHeight + tabOffset.top)) * -1;
if (tabBottomNotShown > 0) {
if (tabHeight > windowHeight)
$('html').animate({ scrollTop: tabOffset.top }, 125);
else
$('html').animate({ scrollTop: windowScrollTop + tabBottomNotShown }, 125);
}
}
}, 1);
}
});
});
</script>
</td>
</tr>
</table>
<h2>Jobs</h2>
");
<div");
WriteLiteral(" id=\"UserDetailTabs\"");
#line 80 "..\..\Views\User\Show.cshtml"
Write(Html.Partial(MVC.Shared.Views._JobTable, Model.Jobs));
WriteLiteral(">\r\n <ul");
WriteLiteral(" id=\"UserDetailTabItems\"");
#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("></ul>\r\n");
WriteLiteral(" ");
#line 84 "..\..\Views\User\Show.cshtml"
Write(Html.ActionLinkButton("Create Job", MVC.Job.Create(Model.PrimaryDeviceSerialNumber, Model.User.Id), "buttonCreateJob"));
#line 38 "..\..\Views\User\Show.cshtml"
Write(Html.Partial(MVC.User.Views.UserParts._Resources, Model));
#line default
#line hidden
WriteLiteral("\r\n</div>\r\n");
WriteLiteral("\r\n </div>\r\n</div>");
}
}
@@ -2,7 +2,9 @@
@{
Html.BundleDeferred("~/Style/Shadowbox");
Html.BundleDeferred("~/ClientScripts/Modules/Shadowbox");
Html.BundleDeferred("~/ClientScripts/Modules/Silverlight");
}
<div id="UserDetailTab-Resources" class="UserPart">
<table id="userShowResources">
<tr>
<td id="Attachments">
@@ -44,7 +46,8 @@
$attachmentOutput.find('span.remove').click(removeAttachment);
$('#dialogUpload').dialog({ autoOpen: false,
$('#dialogUpload').dialog({
autoOpen: false,
draggable: false,
modal: true,
resizable: false,
@@ -69,7 +72,8 @@
$('#silverlightHostUploadAttachment').get(0),
'silverlightUploadAttachment',
{ width: '840px', height: '500px', background: 'white', version: '4.0.60310.0' },
{ onLoad: function () {
{
onLoad: function () {
if (onLoadNavigation) {
silverlightUploadAttachment.content.Navigator.Navigate(onLoadNavigation);
isLoaded = true;
@@ -189,5 +193,10 @@
<div id="dialogRemoveAttachment" title="Remove this Attachment?">
<p>
<span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span>
Are you sure?</p>
Are you sure?
</p>
</div>
<script>
$('#UserDetailTabItems').append('<li><a href="#UserDetailTab-Resources" id="UserDetailTab-ResourcesLink">Attachments [@(Model.User.UserAttachments == null ? 0 : Model.User.UserAttachments.Count)]</a></li>');
</script>
</div>
@@ -32,7 +32,7 @@ namespace Disco.Web.Views.User.UserParts
using Disco.Web.Extensions;
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/User/UserParts/Resources.cshtml")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/User/UserParts/_Resources.cshtml")]
public partial class Resources : System.Web.Mvc.WebViewPage<Disco.Web.Models.User.ShowModel>
{
public Resources()
@@ -41,15 +41,22 @@ namespace Disco.Web.Views.User.UserParts
public override void Execute()
{
#line 2 "..\..\Views\User\UserParts\Resources.cshtml"
#line 2 "..\..\Views\User\UserParts\_Resources.cshtml"
Html.BundleDeferred("~/Style/Shadowbox");
Html.BundleDeferred("~/ClientScripts/Modules/Shadowbox");
Html.BundleDeferred("~/ClientScripts/Modules/Silverlight");
#line default
#line hidden
WriteLiteral("\r\n<table");
WriteLiteral("\r\n<div");
WriteLiteral(" id=\"UserDetailTab-Resources\"");
WriteLiteral(" class=\"UserPart\"");
WriteLiteral(">\r\n <table");
WriteLiteral(" id=\"userShowResources\"");
@@ -64,13 +71,13 @@ WriteLiteral(" class=\"attachmentOutput\"");
WriteLiteral(">\r\n");
#line 10 "..\..\Views\User\UserParts\Resources.cshtml"
#line 12 "..\..\Views\User\UserParts\_Resources.cshtml"
#line default
#line hidden
#line 10 "..\..\Views\User\UserParts\Resources.cshtml"
#line 12 "..\..\Views\User\UserParts\_Resources.cshtml"
if (Model.User.UserAttachments != null)
{
foreach (var ua in Model.User.UserAttachments)
@@ -81,20 +88,20 @@ WriteLiteral(">\r\n");
#line hidden
WriteLiteral(" <a");
WriteAttribute("href", Tuple.Create(" href=\"", 464), Tuple.Create("\"", 522)
WriteAttribute("href", Tuple.Create(" href=\"", 618), Tuple.Create("\"", 676)
#line 14 "..\..\Views\User\UserParts\Resources.cshtml"
, Tuple.Create(Tuple.Create("", 471), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.User.AttachmentDownload(ua.Id))
#line 16 "..\..\Views\User\UserParts\_Resources.cshtml"
, Tuple.Create(Tuple.Create("", 625), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.User.AttachmentDownload(ua.Id))
#line default
#line hidden
, 471), false)
, 625), false)
);
WriteLiteral(" data-attachmentid=\"");
#line 14 "..\..\Views\User\UserParts\Resources.cshtml"
#line 16 "..\..\Views\User\UserParts\_Resources.cshtml"
Write(ua.Id);
@@ -105,7 +112,7 @@ WriteLiteral("\"");
WriteLiteral(" data-mimetype=\"");
#line 14 "..\..\Views\User\UserParts\Resources.cshtml"
#line 16 "..\..\Views\User\UserParts\_Resources.cshtml"
Write(ua.MimeType);
@@ -117,68 +124,68 @@ WriteLiteral(">\r\n <span");
WriteLiteral(" class=\"icon\"");
WriteAttribute("title", Tuple.Create(" title=\"", 624), Tuple.Create("\"", 644)
WriteAttribute("title", Tuple.Create(" title=\"", 782), Tuple.Create("\"", 802)
#line 15 "..\..\Views\User\UserParts\Resources.cshtml"
, Tuple.Create(Tuple.Create("", 632), Tuple.Create<System.Object, System.Int32>(ua.Filename
#line 17 "..\..\Views\User\UserParts\_Resources.cshtml"
, Tuple.Create(Tuple.Create("", 790), Tuple.Create<System.Object, System.Int32>(ua.Filename
#line default
#line hidden
, 632), false)
, 790), false)
);
WriteLiteral(">\r\n <img");
WriteLiteral(" alt=\"Attachment Thumbnail\"");
WriteAttribute("src", Tuple.Create(" src=\"", 707), Tuple.Create("\"", 767)
WriteAttribute("src", Tuple.Create(" src=\"", 869), Tuple.Create("\"", 929)
#line 16 "..\..\Views\User\UserParts\Resources.cshtml"
, Tuple.Create(Tuple.Create("", 713), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.User.AttachmentThumbnail(ua.Id))
#line 18 "..\..\Views\User\UserParts\_Resources.cshtml"
, Tuple.Create(Tuple.Create("", 875), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.User.AttachmentThumbnail(ua.Id))
#line default
#line hidden
, 713), false)
, 875), false)
);
WriteLiteral(" /></span>\r\n <span");
WriteLiteral(" class=\"comments\"");
WriteAttribute("title", Tuple.Create(" title=\"", 826), Tuple.Create("\"", 846)
WriteAttribute("title", Tuple.Create(" title=\"", 992), Tuple.Create("\"", 1012)
#line 17 "..\..\Views\User\UserParts\Resources.cshtml"
, Tuple.Create(Tuple.Create("", 834), Tuple.Create<System.Object, System.Int32>(ua.Comments
#line 19 "..\..\Views\User\UserParts\_Resources.cshtml"
, Tuple.Create(Tuple.Create("", 1000), Tuple.Create<System.Object, System.Int32>(ua.Comments
#line default
#line hidden
, 834), false)
, 1000), false)
);
WriteLiteral(">\r\n");
#line 18 "..\..\Views\User\UserParts\Resources.cshtml"
#line 20 "..\..\Views\User\UserParts\_Resources.cshtml"
#line default
#line hidden
#line 18 "..\..\Views\User\UserParts\Resources.cshtml"
#line 20 "..\..\Views\User\UserParts\_Resources.cshtml"
if (!string.IsNullOrEmpty(ua.DocumentTemplateId))
{
#line default
#line hidden
#line 19 "..\..\Views\User\UserParts\Resources.cshtml"
#line 21 "..\..\Views\User\UserParts\_Resources.cshtml"
Write(ua.DocumentTemplate.Description);
#line default
#line hidden
#line 19 "..\..\Views\User\UserParts\Resources.cshtml"
#line 21 "..\..\Views\User\UserParts\_Resources.cshtml"
}
else
{
@@ -186,14 +193,14 @@ WriteLiteral(">\r\n");
#line default
#line hidden
#line 21 "..\..\Views\User\UserParts\Resources.cshtml"
#line 23 "..\..\Views\User\UserParts\_Resources.cshtml"
Write(ua.Comments);
#line default
#line hidden
#line 21 "..\..\Views\User\UserParts\Resources.cshtml"
#line 23 "..\..\Views\User\UserParts\_Resources.cshtml"
}
#line default
@@ -205,7 +212,7 @@ WriteLiteral(" class=\"author\"");
WriteLiteral(">");
#line 22 "..\..\Views\User\UserParts\Resources.cshtml"
#line 24 "..\..\Views\User\UserParts\_Resources.cshtml"
Write(ua.TechUser.ToString());
@@ -219,20 +226,20 @@ WriteLiteral("></span>\r\n <span");
WriteLiteral(" class=\"timestamp\"");
WriteAttribute("title", Tuple.Create(" title=\"", 1242), Tuple.Create("\"", 1280)
WriteAttribute("title", Tuple.Create(" title=\"", 1432), Tuple.Create("\"", 1470)
#line 23 "..\..\Views\User\UserParts\Resources.cshtml"
, Tuple.Create(Tuple.Create("", 1250), Tuple.Create<System.Object, System.Int32>(ua.Timestamp.ToFullDateTime()
#line 25 "..\..\Views\User\UserParts\_Resources.cshtml"
, Tuple.Create(Tuple.Create("", 1440), Tuple.Create<System.Object, System.Int32>(ua.Timestamp.ToFullDateTime()
#line default
#line hidden
, 1250), false)
, 1440), false)
);
WriteLiteral(">");
#line 23 "..\..\Views\User\UserParts\Resources.cshtml"
#line 25 "..\..\Views\User\UserParts\_Resources.cshtml"
Write(ua.Timestamp.ToFuzzy());
@@ -241,7 +248,7 @@ WriteLiteral(">");
WriteLiteral("</span>\r\n </a> \r\n");
#line 25 "..\..\Views\User\UserParts\Resources.cshtml"
#line 27 "..\..\Views\User\UserParts\_Resources.cshtml"
}
}
@@ -264,47 +271,30 @@ WriteLiteral("></span>\r\n </div>\r\n <script");
WriteLiteral(" type=\"text/javascript\"");
WriteLiteral(@">
Shadowbox.init({
skipSetup: true,
modal: true
});
$(function () {
if (!document.DiscoFunctions) {
document.DiscoFunctions = {};
}
document.DiscoFunctions.addAttachment = addAttachment;
$Attachments = $('#Attachments');
$attachmentOutput = $Attachments.find('.attachmentOutput');
$attachmentOutput.find('span.remove').click(removeAttachment);
$('#dialogUpload').dialog({ autoOpen: false,
draggable: false,
modal: true,
resizable: false,
width: 860,
height: 550,
close: function () {
silverlightUploadAttachment.content.Navigator.Navigate('/Hidden');
}
});
$('#dialogRemoveAttachment').dialog({
resizable: false,
height: 140,
modal: true,
autoOpen: false
});
var onLoadNavigation = null;
var isLoaded = null;
Silverlight.createObject(
'");
WriteLiteral(">\r\n Shadowbox.init({\r\n skipSetup: true," +
"\r\n modal: true\r\n });\r\n " +
" $(function () {\r\n if (!document.DiscoFunctions) {\r\n " +
" document.DiscoFunctions = {};\r\n " +
" }\r\n document.DiscoFunctions.addAttachment = addAttachmen" +
"t;\r\n\r\n $Attachments = $(\'#Attachments\');\r\n " +
" $attachmentOutput = $Attachments.find(\'.attachmentOutput\');\r\n\r\n " +
" $attachmentOutput.find(\'span.remove\').click(removeAttachment);\r\n" +
"\r\n $(\'#dialogUpload\').dialog({\r\n " +
" autoOpen: false,\r\n draggable: false,\r\n " +
" modal: true,\r\n resizable: false,\r\n " +
" width: 860,\r\n height: 550,\r\n" +
" close: function () {\r\n " +
" silverlightUploadAttachment.content.Navigator.Navigate(\'/Hidden\');\r\n " +
" }\r\n });\r\n\r\n $(\'#" +
"dialogRemoveAttachment\').dialog({\r\n resizable: false," +
"\r\n height: 140,\r\n modal: t" +
"rue,\r\n autoOpen: false\r\n });\r\n" +
"\r\n var onLoadNavigation = null;\r\n " +
"var isLoaded = null;\r\n Silverlight.createObject(\r\n " +
" \'");
#line 68 "..\..\Views\User\UserParts\Resources.cshtml"
#line 71 "..\..\Views\User\UserParts\_Resources.cshtml"
Write(Links.ClientBin.Disco_Silverlight_AttachmentUpload_xap);
@@ -314,7 +304,8 @@ WriteLiteral(@"',
$('#silverlightHostUploadAttachment').get(0),
'silverlightUploadAttachment',
{ width: '840px', height: '500px', background: 'white', version: '4.0.60310.0' },
{ onLoad: function () {
{
onLoad: function () {
if (onLoadNavigation) {
silverlightUploadAttachment.content.Navigator.Navigate(onLoadNavigation);
isLoaded = true;
@@ -324,7 +315,7 @@ WriteLiteral(@"',
'UploadUrl=");
#line 79 "..\..\Views\User\UserParts\Resources.cshtml"
#line 83 "..\..\Views\User\UserParts\_Resources.cshtml"
Write(Url.Action(MVC.API.User.AttachmentUpload(Model.User.Id, null)));
@@ -356,7 +347,7 @@ WriteLiteral(@"'
url: '");
#line 102 "..\..\Views\User\UserParts\Resources.cshtml"
#line 106 "..\..\Views\User\UserParts\_Resources.cshtml"
Write(Url.Action(MVC.API.User.Attachment()));
@@ -374,7 +365,7 @@ WriteLiteral(@"',
e.attr('data-attachmentid', a.Id).attr('data-mimetype', a.MimeType).attr('href', '");
#line 111 "..\..\Views\User\UserParts\Resources.cshtml"
#line 115 "..\..\Views\User\UserParts\_Resources.cshtml"
Write(Url.Action(MVC.API.User.AttachmentDownload()));
@@ -384,7 +375,7 @@ WriteLiteral("/\' + a.Id);\r\n e.find(\'.icon
"\'");
#line 112 "..\..\Views\User\UserParts\Resources.cshtml"
#line 116 "..\..\Views\User\UserParts\_Resources.cshtml"
Write(Url.Action(MVC.API.User.AttachmentThumbnail()));
@@ -417,7 +408,7 @@ WriteLiteral("/\' + a.Id);\r\n e.find(\'.comm
" $.ajax({\r\n url: \'");
#line 144 "..\..\Views\User\UserParts\Resources.cshtml"
#line 148 "..\..\Views\User\UserParts\_Resources.cshtml"
Write(Url.Action(MVC.API.User.AttachmentRemove()));
@@ -449,7 +440,8 @@ WriteLiteral("\',\r\n dataType: \'json\',\r\n
"is.attr(\'data-mimetype\').toLowerCase().indexOf(\'image/\') == 0)\r\n " +
" $this.shadowbox({ gallery: \'attachments\', player: \'img\', title: $thi" +
"s.find(\'.comments\').text() });\r\n });\r\n });\r\n " +
" </script>\r\n </td>\r\n </tr>\r\n</table>\r\n<div");
" </script>\r\n </td>\r\n </tr>\r\n </table>\r\n <di" +
"v");
WriteLiteral(" id=\"dialogUpload\"");
@@ -471,7 +463,18 @@ WriteLiteral(" class=\"ui-icon ui-icon-alert\"");
WriteLiteral(" style=\"float: left; margin: 0 7px 20px 0;\"");
WriteLiteral("></span>\r\n Are you sure?</p>\r\n</div>\r\n");
WriteLiteral("></span>\r\n Are you sure?\r\n </p>\r\n </div>\r\n <script>\r\n " +
" $(\'#UserDetailTabItems\').append(\'<li><a href=\"#UserDetailTab-Resources\" id=\"" +
"UserDetailTab-ResourcesLink\">Attachments [");
#line 200 "..\..\Views\User\UserParts\_Resources.cshtml"
Write(Model.User.UserAttachments == null ? 0 : Model.User.UserAttachments.Count);
#line default
#line hidden
WriteLiteral("]</a></li>\');\r\n </script>\r\n</div>\r\n");
}
}
@@ -0,0 +1,157 @@
@model Disco.Web.Models.User.ShowModel
<table id="User_Show_Subjects">
<tr>
<td id="User_Show_Details">
<div>
<div id="User_Show_Details_Identity">
<table class="none verticalHeadings">
<tr>
<td><span>Username (Id):</span>
</td>
<td>
<h4 id="User_Show_Details_Identity_Id" title="Username">@Model.User.Id</h4>
</td>
</tr>
<tr>
<td>Display Name:</td>
<td><span id="User_Show_Details_Identity_DisplayName" title="Display Name">@Model.User.DisplayName</span></td>
</tr>
<tr>
<td>Given Name:</td>
<td><span id="User_Show_Details_Identity_GivenName" title="Given Name">@Model.User.GivenName</span></td>
</tr>
<tr>
<td>Surname:</td>
<td><span id="User_Show_Details_Identity_Surname" title="Surname">@Model.User.Surname</span></td>
</tr>
</table>
</div>
<div id="User_Show_Details_Category" class="status">
<table class="none verticalHeadings">
<tr>
<td>Type:
</td>
<td><span id="User_Show_Details_Category_Type" title="Type">@Model.User.Type</span></td>
</tr>
</table>
</div>
<div id="User_Show_Details_Attributes" class="status">
<table class="none verticalHeadings">
<tr>
<td>Email:</td>
<td>
@if (!string.IsNullOrEmpty(Model.User.EmailAddress))
{
<span id="User_Show_Details_Attributes_Email" title="Email Address [Update in Active Directory]">@Model.User.EmailAddress</span>
}
else
{
<span class="smallMessage">Unknown</span>
}
</td>
</tr>
<tr>
<td>Phone:</td>
<td>
@if (!string.IsNullOrEmpty(Model.User.PhoneNumber))
{
<span id="User_Show_Details_Attributes_Phone" title="Phone Number [Update in Active Directory]">@Model.User.PhoneNumber</span>
}
else
{
<span class="smallMessage">Unknown</span>
}
</td>
</tr>
</table>
</div>
<div id="User_Show_GenerateDocument_Container" class="status">
@Html.DropDownList("User_Show_GenerateDocument", Model.DocumentTemplatesSelectListItems)
<script type="text/javascript">
$(function () {
var generatePdfUrl = '@Url.Action(MVC.API.User.GeneratePdf(Model.User.Id, null))?DocumentTemplateId=';
var $documentTemplates = $('#User_Show_GenerateDocument');
$documentTemplates.change(function () {
var v = $documentTemplates.val();
if (v) {
window.location.href = generatePdfUrl + v;
$documentTemplates.val('').blur();
}
});
});
</script>
</div>
<div id="User_Show_Details_Actions">
@{
Html.BundleDeferred("~/ClientScripts/Modules/Disco-CreateJob");
}
@Html.ActionLinkSmallButton("Create Job", MVC.Job.Create(Model.PrimaryDeviceSerialNumber, Model.User.Id), "buttonCreateJob")
</div>
</div>
</td>
<td id="User_Show_AssignedDevices">
<div>
<div id="User_Show_AssignedDevices_Active">
<h3>Current Device Assignments</h3>
@{
var currentAssignments = Model.User.DeviceUserAssignments.Where(dua => !dua.UnassignedDate.HasValue).ToList();
}
@if (currentAssignments.Count > 0)
{
foreach (var assignment in currentAssignments)
{
<div class="User_Show_AssignedDevices_CurrentAssignment clearfix" data-deviceserialnumber="@assignment.DeviceSerialNumber">
<a href="@Url.Action(MVC.Device.Show(assignment.Device.SerialNumber))">
<img class="User_Show_AssignedDevices_CurrentAssignment_Image" alt="Model Image" src="@Url.Action(MVC.API.DeviceModel.Image(assignment.Device.DeviceModel.Id, assignment.Device.DeviceModel.ImageHash()))" />
</a>
<div class="User_Show_AssignedDevices_CurrentAssignment_Details">
<table class="none">
<tbody>
<tr>
<td>Serial Number:
</td>
<td>
<span class="User_Show_AssignedDevices_CurrentAssignment_SerialNumber">@Html.ActionLink(assignment.Device.SerialNumber, MVC.Device.Show(assignment.Device.SerialNumber))</span> (<span>@assignment.Device.ComputerName</span>)
</td>
</tr>
<tr>
<td>Model:
</td>
<td>
<span class="User_Show_AssignedDevices_CurrentAssignment_Model">@assignment.Device.DeviceModel.ToString()</span>
</td>
</tr>
<tr>
<td>Asset:</td>
<td>
@if (!string.IsNullOrEmpty(assignment.Device.AssetNumber))
{
<span class="User_Show_AssignedDevices_CurrentAssignment_Asset">@assignment.Device.AssetNumber</span>
}
else
{
<span class="smallMessage">Unknown</span>
}
</td>
</tr>
<tr>
<td>Assigned:</td>
<td>
<span class="User_Show_AssignedDevices_CurrentAssignment_Assigned">@CommonHelpers.FriendlyDate(assignment.AssignedDate)</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
}
}
else
{
<span class="smallMessage">No Current Device Assignments</span>
}
</div>
</div>
</td>
</tr>
</table>
@@ -0,0 +1,607 @@
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18033
//
// 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.BI.Extensions;
using Disco.Models.Repository;
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 : System.Web.Mvc.WebViewPage<Disco.Web.Models.User.ShowModel>
{
public Subject()
{
}
public override void Execute()
{
WriteLiteral("<table");
WriteLiteral(" id=\"User_Show_Subjects\"");
WriteLiteral(">\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>Username (" +
"Id):</span>\r\n </td>\r\n <td>" +
"\r\n <h4");
WriteLiteral(" id=\"User_Show_Details_Identity_Id\"");
WriteLiteral(" title=\"Username\"");
WriteLiteral(">");
#line 12 "..\..\Views\User\UserParts\_Subject.cshtml"
Write(Model.User.Id);
#line default
#line hidden
WriteLiteral("</h4>\r\n </td>\r\n </tr>\r\n " +
" <tr>\r\n <td>Display Name:</td>\r\n " +
" <td><span");
WriteLiteral(" id=\"User_Show_Details_Identity_DisplayName\"");
WriteLiteral(" title=\"Display Name\"");
WriteLiteral(">");
#line 17 "..\..\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><spa" +
"n");
WriteLiteral(" id=\"User_Show_Details_Identity_GivenName\"");
WriteLiteral(" title=\"Given Name\"");
WriteLiteral(">");
#line 21 "..\..\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 25 "..\..\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 <div");
WriteLiteral(" id=\"User_Show_Details_Category\"");
WriteLiteral(" class=\"status\"");
WriteLiteral(">\r\n <table");
WriteLiteral(" class=\"none verticalHeadings\"");
WriteLiteral(">\r\n <tr>\r\n <td>Type:\r\n " +
" </td>\r\n <td><span");
WriteLiteral(" id=\"User_Show_Details_Category_Type\"");
WriteLiteral(" title=\"Type\"");
WriteLiteral(">");
#line 34 "..\..\Views\User\UserParts\_Subject.cshtml"
Write(Model.User.Type);
#line default
#line hidden
WriteLiteral("</span></td>\r\n </tr>\r\n </table>\r\n " +
" </div>\r\n <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 43 "..\..\Views\User\UserParts\_Subject.cshtml"
#line default
#line hidden
#line 43 "..\..\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 45 "..\..\Views\User\UserParts\_Subject.cshtml"
Write(Model.User.EmailAddress);
#line default
#line hidden
WriteLiteral("</span>\r\n");
#line 46 "..\..\Views\User\UserParts\_Subject.cshtml"
}
else
{
#line default
#line hidden
WriteLiteral(" <span");
WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">Unknown</span>\r\n");
#line 50 "..\..\Views\User\UserParts\_Subject.cshtml"
}
#line default
#line hidden
WriteLiteral(" </td>\r\n </tr>\r\n " +
" <tr>\r\n <td>Phone:</td>\r\n " +
" <td>\r\n");
#line 56 "..\..\Views\User\UserParts\_Subject.cshtml"
#line default
#line hidden
#line 56 "..\..\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 58 "..\..\Views\User\UserParts\_Subject.cshtml"
Write(Model.User.PhoneNumber);
#line default
#line hidden
WriteLiteral("</span>\r\n");
#line 59 "..\..\Views\User\UserParts\_Subject.cshtml"
}
else
{
#line default
#line hidden
WriteLiteral(" <span");
WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">Unknown</span>\r\n");
#line 63 "..\..\Views\User\UserParts\_Subject.cshtml"
}
#line default
#line hidden
WriteLiteral(" </td>\r\n </tr>\r\n " +
" </table>\r\n </div>\r\n <div");
WriteLiteral(" id=\"User_Show_GenerateDocument_Container\"");
WriteLiteral(" class=\"status\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 69 "..\..\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 gener" +
"atePdfUrl = \'");
#line 72 "..\..\Views\User\UserParts\_Subject.cshtml"
Write(Url.Action(MVC.API.User.GeneratePdf(Model.User.Id, null)));
#line default
#line hidden
WriteLiteral(@"?DocumentTemplateId=';
var $documentTemplates = $('#User_Show_GenerateDocument');
$documentTemplates.change(function () {
var v = $documentTemplates.val();
if (v) {
window.location.href = generatePdfUrl + v;
$documentTemplates.val('').blur();
}
});
});
</script>
</div>
<div");
WriteLiteral(" id=\"User_Show_Details_Actions\"");
WriteLiteral(">\r\n");
#line 85 "..\..\Views\User\UserParts\_Subject.cshtml"
#line default
#line hidden
#line 85 "..\..\Views\User\UserParts\_Subject.cshtml"
Html.BundleDeferred("~/ClientScripts/Modules/Disco-CreateJob");
#line default
#line hidden
WriteLiteral("\r\n");
WriteLiteral(" ");
#line 88 "..\..\Views\User\UserParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Create Job", MVC.Job.Create(Model.PrimaryDeviceSerialNumber, Model.User.Id), "buttonCreateJob"));
#line default
#line hidden
WriteLiteral("\r\n </div>\r\n </div>\r\n </td>\r\n <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 96 "..\..\Views\User\UserParts\_Subject.cshtml"
#line default
#line hidden
#line 96 "..\..\Views\User\UserParts\_Subject.cshtml"
var currentAssignments = Model.User.DeviceUserAssignments.Where(dua => !dua.UnassignedDate.HasValue).ToList();
#line default
#line hidden
WriteLiteral("\r\n");
#line 99 "..\..\Views\User\UserParts\_Subject.cshtml"
#line default
#line hidden
#line 99 "..\..\Views\User\UserParts\_Subject.cshtml"
if (currentAssignments.Count > 0)
{
foreach (var assignment in currentAssignments)
{
#line default
#line hidden
WriteLiteral(" <div");
WriteLiteral(" class=\"User_Show_AssignedDevices_CurrentAssignment clearfix\"");
WriteLiteral(" data-deviceserialnumber=\"");
#line 103 "..\..\Views\User\UserParts\_Subject.cshtml"
Write(assignment.DeviceSerialNumber);
#line default
#line hidden
WriteLiteral("\"");
WriteLiteral(">\r\n <a");
WriteAttribute("href", Tuple.Create(" href=\"", 5464), Tuple.Create("\"", 5531)
#line 104 "..\..\Views\User\UserParts\_Subject.cshtml"
, Tuple.Create(Tuple.Create("", 5471), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.Device.Show(assignment.Device.SerialNumber))
#line default
#line hidden
, 5471), false)
);
WriteLiteral(">\r\n <img");
WriteLiteral(" class=\"User_Show_AssignedDevices_CurrentAssignment_Image\"");
WriteLiteral(" alt=\"Model Image\"");
WriteAttribute("src", Tuple.Create(" src=\"", 5647), Tuple.Create("\"", 5768)
#line 105 "..\..\Views\User\UserParts\_Subject.cshtml"
, Tuple.Create(Tuple.Create("", 5653), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.DeviceModel.Image(assignment.Device.DeviceModel.Id, assignment.Device.DeviceModel.ImageHash()))
#line default
#line hidden
, 5653), false)
);
WriteLiteral(" />\r\n </a>\r\n <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(">");
#line 114 "..\..\Views\User\UserParts\_Subject.cshtml"
Write(Html.ActionLink(assignment.Device.SerialNumber, MVC.Device.Show(assignment.Device.SerialNumber)));
#line default
#line hidden
WriteLiteral("</span> (<span>");
#line 114 "..\..\Views\User\UserParts\_Subject.cshtml"
Write(assignment.Device.ComputerName);
#line default
#line hidden
WriteLiteral(@"</span>)
</td>
</tr>
<tr>
<td>Model:
</td>
<td>
<span");
WriteLiteral(" class=\"User_Show_AssignedDevices_CurrentAssignment_Model\"");
WriteLiteral(">");
#line 121 "..\..\Views\User\UserParts\_Subject.cshtml"
Write(assignment.Device.DeviceModel.ToString());
#line default
#line hidden
WriteLiteral(@"</span>
</td>
</tr>
<tr>
<td>Asset:</td>
<td>
");
#line 127 "..\..\Views\User\UserParts\_Subject.cshtml"
#line default
#line hidden
#line 127 "..\..\Views\User\UserParts\_Subject.cshtml"
if (!string.IsNullOrEmpty(assignment.Device.AssetNumber))
{
#line default
#line hidden
WriteLiteral(" <span");
WriteLiteral(" class=\"User_Show_AssignedDevices_CurrentAssignment_Asset\"");
WriteLiteral(">");
#line 129 "..\..\Views\User\UserParts\_Subject.cshtml"
Write(assignment.Device.AssetNumber);
#line default
#line hidden
WriteLiteral("</span>\r\n");
#line 130 "..\..\Views\User\UserParts\_Subject.cshtml"
}
else
{
#line default
#line hidden
WriteLiteral(" <span");
WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">Unknown</span>\r\n");
#line 134 "..\..\Views\User\UserParts\_Subject.cshtml"
}
#line default
#line hidden
WriteLiteral(@" </td>
</tr>
<tr>
<td>Assigned:</td>
<td>
<span");
WriteLiteral(" class=\"User_Show_AssignedDevices_CurrentAssignment_Assigned\"");
WriteLiteral(">");
#line 140 "..\..\Views\User\UserParts\_Subject.cshtml"
Write(CommonHelpers.FriendlyDate(assignment.AssignedDate));
#line default
#line hidden
WriteLiteral(@"</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
");
#line 147 "..\..\Views\User\UserParts\_Subject.cshtml"
}
}
else
{
#line default
#line hidden
WriteLiteral(" <span");
WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">No Current Device Assignments</span>\r\n");
#line 152 "..\..\Views\User\UserParts\_Subject.cshtml"
}
#line default
#line hidden
WriteLiteral(" </div>\r\n </div>\r\n </td>\r\n </tr>\r\n</table>\r\n");
}
}
}
#pragma warning restore 1591
@@ -1,334 +0,0 @@
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18033
//
// 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", "2.0.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/User/_UserDeviceAssignmentHistoryTable.cshtml")]
public partial class UserDeviceAssignmentHistoryTable : System.Web.Mvc.WebViewPage<Disco.Models.Repository.User>
{
public UserDeviceAssignmentHistoryTable()
{
}
public override void Execute()
{
#line 2 "..\..\Views\User\_UserDeviceAssignmentHistoryTable.cshtml"
var userId = Model.Id;
#line default
#line hidden
WriteLiteral("\r\n");
#line 5 "..\..\Views\User\_UserDeviceAssignmentHistoryTable.cshtml"
if (Model.DeviceUserAssignments.Count > 0)
{
#line default
#line hidden
WriteLiteral(" <table");
WriteLiteral(" class=\"genericData smallTable\"");
WriteAttribute("id", Tuple.Create(" id=\"", 162), Tuple.Create("\"", 204)
, Tuple.Create(Tuple.Create("", 167), Tuple.Create("User_AssignedDevice_History_", 167), true)
#line 7 "..\..\Views\User\_UserDeviceAssignmentHistoryTable.cshtml"
, Tuple.Create(Tuple.Create("", 195), Tuple.Create<System.Object, System.Int32>(userId
#line default
#line hidden
, 195), false)
);
WriteLiteral(@">
<tr>
<th>
Device Serial #
</th>
<th>
Device Asset #
</th>
<th>
Device Model
</th>
<th>
Assigned
</th>
<th>
Unassigned
</th>
</tr>
");
#line 25 "..\..\Views\User\_UserDeviceAssignmentHistoryTable.cshtml"
#line default
#line hidden
#line 25 "..\..\Views\User\_UserDeviceAssignmentHistoryTable.cshtml"
foreach (var dua in Model.DeviceUserAssignments.OrderByDescending(m => m.AssignedDate))
{
#line default
#line hidden
WriteLiteral(" <tr");
WriteAttribute("class", Tuple.Create(" class=\"", 695), Tuple.Create("\"", 763)
, Tuple.Create(Tuple.Create("", 703), Tuple.Create("assignmentActive", 703), true)
#line 27 "..\..\Views\User\_UserDeviceAssignmentHistoryTable.cshtml"
, Tuple.Create(Tuple.Create("", 719), Tuple.Create<System.Object, System.Int32>((!dua.UnassignedDate.HasValue).ToString()
#line default
#line hidden
, 719), false)
);
WriteLiteral(">\r\n <td>\r\n");
WriteLiteral(" ");
#line 29 "..\..\Views\User\_UserDeviceAssignmentHistoryTable.cshtml"
Write(Html.ActionLink(dua.Device.SerialNumber, MVC.Device.Show(dua.DeviceSerialNumber)));
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n <td>\r\n");
WriteLiteral(" ");
#line 32 "..\..\Views\User\_UserDeviceAssignmentHistoryTable.cshtml"
Write(dua.Device.AssetNumber);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n <td>\r\n");
WriteLiteral(" ");
#line 35 "..\..\Views\User\_UserDeviceAssignmentHistoryTable.cshtml"
Write(dua.Device.DeviceModel.ToString());
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n <td>\r\n");
WriteLiteral(" ");
#line 38 "..\..\Views\User\_UserDeviceAssignmentHistoryTable.cshtml"
Write(CommonHelpers.FriendlyDate(dua.AssignedDate));
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n <td>\r\n");
WriteLiteral(" ");
#line 41 "..\..\Views\User\_UserDeviceAssignmentHistoryTable.cshtml"
Write(CommonHelpers.FriendlyDate(dua.UnassignedDate, "Current"));
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n");
#line 44 "..\..\Views\User\_UserDeviceAssignmentHistoryTable.cshtml"
}
#line default
#line hidden
WriteLiteral(" ");
#line 45 "..\..\Views\User\_UserDeviceAssignmentHistoryTable.cshtml"
if (Model.DeviceUserAssignments.Count(m => !m.UnassignedDate.HasValue) == 0)
{
#line default
#line hidden
WriteLiteral(" <tr");
WriteLiteral(" class=\"noActiveAssignments\"");
WriteLiteral(">\r\n <td");
WriteLiteral(" colspan=\"5\"");
WriteLiteral(">\r\n <span");
WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">No Active Assignments</span>\r\n </td>\r\n </tr>\r\n");
#line 52 "..\..\Views\User\_UserDeviceAssignmentHistoryTable.cshtml"
}
#line default
#line hidden
WriteLiteral(" </table>\r\n");
WriteLiteral(" <a");
WriteLiteral(" href=\"#\"");
WriteAttribute("id", Tuple.Create(" id=\"", 1711), Tuple.Create("\"", 1761)
, Tuple.Create(Tuple.Create("", 1716), Tuple.Create("User_AssignedDevice_History_Trigger_", 1716), true)
#line 54 "..\..\Views\User\_UserDeviceAssignmentHistoryTable.cshtml"
, Tuple.Create(Tuple.Create("", 1752), Tuple.Create<System.Object, System.Int32>(userId
#line default
#line hidden
, 1752), false)
);
WriteLiteral(" class=\"smallLink\"");
WriteLiteral(">Show\r\n All Assignment History (<span");
WriteAttribute("id", Tuple.Create(" id=\"", 1824), Tuple.Create("\"", 1878)
, Tuple.Create(Tuple.Create("", 1829), Tuple.Create("User_AssignedDevice_History_RecordCount_", 1829), true)
#line 55 "..\..\Views\User\_UserDeviceAssignmentHistoryTable.cshtml"
, Tuple.Create(Tuple.Create("", 1869), Tuple.Create<System.Object, System.Int32>(userId
#line default
#line hidden
, 1869), false)
);
WriteLiteral("></span>)</a>\r\n");
WriteLiteral(" <script");
WriteLiteral(" type=\"text/javascript\"");
WriteLiteral(">\r\n $(function () {\r\n var $table = $(\'#User_AssignedDevice_Hist" +
"ory_");
#line 58 "..\..\Views\User\_UserDeviceAssignmentHistoryTable.cshtml"
Write(userId);
#line default
#line hidden
WriteLiteral(@"');
var $inactiveRecords = $table.find('tr.assignmentActiveFalse').hide();
if ($inactiveRecords.length != 0) {
var recordCountText = $inactiveRecords.length + ' record';
if ($inactiveRecords.length != 1)
recordCountText += 's';
$('#User_AssignedDevice_History_RecordCount_");
#line 64 "..\..\Views\User\_UserDeviceAssignmentHistoryTable.cshtml"
Write(userId);
#line default
#line hidden
WriteLiteral("\').text(recordCountText);\r\n $(\'#User_AssignedDevice_History_Trigge" +
"r_");
#line 65 "..\..\Views\User\_UserDeviceAssignmentHistoryTable.cshtml"
Write(userId);
#line default
#line hidden
WriteLiteral(@"').click(function () {
$(this).hide();
$table.find('tr.noActiveAssignments').hide();
$inactiveRecords.show();
return false;
});
} else {
$('#User_AssignedDevice_History_Trigger_");
#line 72 "..\..\Views\User\_UserDeviceAssignmentHistoryTable.cshtml"
Write(userId);
#line default
#line hidden
WriteLiteral("\').hide();\r\n }\r\n });\r\n </script>\r\n");
#line 76 "..\..\Views\User\_UserDeviceAssignmentHistoryTable.cshtml"
}
else
{
#line default
#line hidden
WriteLiteral(" <span");
WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">No Assignment History Available</span>\r\n");
#line 80 "..\..\Views\User\_UserDeviceAssignmentHistoryTable.cshtml"
}
#line default
#line hidden
}
}
}
#pragma warning restore 1591