GIT: perform LF normalization

This commit is contained in:
Gary Sharp
2013-02-28 17:15:46 +11:00
parent 989f08a24d
commit 7d9be5620d
729 changed files with 300734 additions and 300712 deletions
+6 -6
View File
@@ -1,6 +1,6 @@
@{
ViewBag.Title = "Users";
}
<h3>
Search for a User</h3>
@Html.Partial(MVC.Shared.Views._SearchDialog, "users")
@{
ViewBag.Title = "Users";
}
<h3>
Search for a User</h3>
@Html.Partial(MVC.Shared.Views._SearchDialog, "users")
+65 -65
View File
@@ -1,65 +1,65 @@
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.17929
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Disco.Web.Views.User
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Helpers;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html;
using System.Web.Routing;
using System.Web.Security;
using System.Web.UI;
using System.Web.WebPages;
using Disco.BI.Extensions;
using Disco.Models.Repository;
using Disco.Web;
using Disco.Web.Extensions;
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "1.5.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/User/Index.cshtml")]
public class Index : System.Web.Mvc.WebViewPage<dynamic>
{
public Index()
{
}
public override void Execute()
{
#line 1 "..\..\Views\User\Index.cshtml"
ViewBag.Title = "Users";
#line default
#line hidden
WriteLiteral("\r\n<h3>\r\n Search for a User</h3>\r\n");
#line 6 "..\..\Views\User\Index.cshtml"
Write(Html.Partial(MVC.Shared.Views._SearchDialog, "users"));
#line default
#line hidden
WriteLiteral("\r\n");
}
}
}
#pragma warning restore 1591
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.17929
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Disco.Web.Views.User
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Helpers;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html;
using System.Web.Routing;
using System.Web.Security;
using System.Web.UI;
using System.Web.WebPages;
using Disco.BI.Extensions;
using Disco.Models.Repository;
using Disco.Web;
using Disco.Web.Extensions;
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "1.5.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/User/Index.cshtml")]
public class Index : System.Web.Mvc.WebViewPage<dynamic>
{
public Index()
{
}
public override void Execute()
{
#line 1 "..\..\Views\User\Index.cshtml"
ViewBag.Title = "Users";
#line default
#line hidden
WriteLiteral("\r\n<h3>\r\n Search for a User</h3>\r\n");
#line 6 "..\..\Views\User\Index.cshtml"
Write(Html.Partial(MVC.Shared.Views._SearchDialog, "users"));
#line default
#line hidden
WriteLiteral("\r\n");
}
}
}
#pragma warning restore 1591
+85 -85
View File
@@ -1,85 +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>
@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>
+300 -300
View File
@@ -1,300 +1,300 @@
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.17929
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Disco.Web.Views.User
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Helpers;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html;
using System.Web.Routing;
using System.Web.Security;
using System.Web.UI;
using System.Web.WebPages;
using Disco.BI.Extensions;
using Disco.Models.Repository;
using Disco.Web;
using Disco.Web.Extensions;
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "1.5.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/User/Show.cshtml")]
public class Show : System.Web.Mvc.WebViewPage<Disco.Web.Models.User.ShowModel>
{
public Show()
{
}
public override void Execute()
{
#line 2 "..\..\Views\User\Show.cshtml"
ViewBag.Title = Html.ToBreadcrumb("Users", MVC.User.Index(), string.Format("{0} ({1})", Model.User.DisplayName, Model.User.Id));
Html.BundleDeferred("~/ClientScripts/Modules/Silverlight");
Html.BundleDeferred("~/ClientScripts/Modules/Disco-CreateJob");
#line default
#line hidden
WriteLiteral("\r\n<table");
WriteLiteral(" class=\"userShow\"");
WriteLiteral(">\r\n <tr>\r\n <th");
WriteLiteral(" class=\"name\"");
WriteLiteral(">Id:\r\n </th>\r\n <td");
WriteLiteral(" class=\"value\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 12 "..\..\Views\User\Show.cshtml"
Write(Model.User.Id);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n <th");
WriteLiteral(" class=\"name\"");
WriteLiteral(">Given Name:\r\n </th>\r\n <td");
WriteLiteral(" class=\"value\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 17 "..\..\Views\User\Show.cshtml"
Write(Model.User.GivenName);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th");
WriteLiteral(" class=\"name\"");
WriteLiteral(">Type:\r\n </th>\r\n <td");
WriteLiteral(" class=\"value\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 24 "..\..\Views\User\Show.cshtml"
Write(Model.User.Type);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n <th");
WriteLiteral(" class=\"name\"");
WriteLiteral(">Surname:\r\n </th>\r\n <td");
WriteLiteral(" class=\"value\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 29 "..\..\Views\User\Show.cshtml"
Write(Model.User.Surname);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th");
WriteLiteral(" class=\"name\"");
WriteLiteral(">Display Name:\r\n </th>\r\n <td");
WriteLiteral(" class=\"value\"");
WriteLiteral(" colspan=\"3\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 36 "..\..\Views\User\Show.cshtml"
Write(Model.User.DisplayName);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th");
WriteLiteral(" class=\"name\"");
WriteLiteral(">Email Address:\r\n </th>\r\n <td");
WriteLiteral(" class=\"value\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 43 "..\..\Views\User\Show.cshtml"
Write(Model.User.EmailAddress);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n <th");
WriteLiteral(" class=\"name\"");
WriteLiteral(">Phone Number:\r\n </th>\r\n <td");
WriteLiteral(" class=\"value\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 48 "..\..\Views\User\Show.cshtml"
Write(Model.User.PhoneNumber);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th");
WriteLiteral(" class=\"name\"");
WriteLiteral(">Assigned Devices:\r\n </th>\r\n <td");
WriteLiteral(" class=\"value\"");
WriteLiteral(" colspan=\"3\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 55 "..\..\Views\User\Show.cshtml"
Write(Html.Partial(MVC.User.Views._UserDeviceAssignmentHistoryTable, Model.User));
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th");
WriteLiteral(" class=\"name\"");
WriteLiteral(">Generate Documents:\r\n </th>\r\n <td");
WriteLiteral(" class=\"value\"");
WriteLiteral(" colspan=\"3\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 62 "..\..\Views\User\Show.cshtml"
Write(Html.DropDownList("DocumentTemplates", Model.DocumentTemplatesSelectListItems));
#line default
#line hidden
WriteLiteral("\r\n <script");
WriteLiteral(" type=\"text/javascript\"");
WriteLiteral(">\r\n $(function () {\r\n var generatePdfUrl = \'");
#line 65 "..\..\Views\User\Show.cshtml"
Write(Url.Action(MVC.API.User.GeneratePdf(Model.User.Id, null)));
#line default
#line hidden
WriteLiteral(@"?DocumentTemplateId=';
var $documentTemplates = $('#DocumentTemplates');
$documentTemplates.change(function () {
var v = $documentTemplates.val();
if (v) {
window.location.href = generatePdfUrl + v;
$documentTemplates.val('');
}
});
});
</script>
</td>
</tr>
</table>
<h2>Jobs</h2>
");
#line 80 "..\..\Views\User\Show.cshtml"
Write(Html.Partial(MVC.Shared.Views._JobTable, Model.Jobs));
#line default
#line hidden
WriteLiteral("\r\n<h2>Attachments</h2>\r\n");
#line 82 "..\..\Views\User\Show.cshtml"
Write(Html.Partial(MVC.User.Views.UserParts.Resources, Model));
#line default
#line hidden
WriteLiteral("\r\n<div");
WriteLiteral(" class=\"actionBar\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 84 "..\..\Views\User\Show.cshtml"
Write(Html.ActionLinkButton("Create Job", MVC.Job.Create(Model.PrimaryDeviceSerialNumber, Model.User.Id), "buttonCreateJob"));
#line default
#line hidden
WriteLiteral("\r\n</div>\r\n");
}
}
}
#pragma warning restore 1591
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.17929
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Disco.Web.Views.User
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Helpers;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html;
using System.Web.Routing;
using System.Web.Security;
using System.Web.UI;
using System.Web.WebPages;
using Disco.BI.Extensions;
using Disco.Models.Repository;
using Disco.Web;
using Disco.Web.Extensions;
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "1.5.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/User/Show.cshtml")]
public class Show : System.Web.Mvc.WebViewPage<Disco.Web.Models.User.ShowModel>
{
public Show()
{
}
public override void Execute()
{
#line 2 "..\..\Views\User\Show.cshtml"
ViewBag.Title = Html.ToBreadcrumb("Users", MVC.User.Index(), string.Format("{0} ({1})", Model.User.DisplayName, Model.User.Id));
Html.BundleDeferred("~/ClientScripts/Modules/Silverlight");
Html.BundleDeferred("~/ClientScripts/Modules/Disco-CreateJob");
#line default
#line hidden
WriteLiteral("\r\n<table");
WriteLiteral(" class=\"userShow\"");
WriteLiteral(">\r\n <tr>\r\n <th");
WriteLiteral(" class=\"name\"");
WriteLiteral(">Id:\r\n </th>\r\n <td");
WriteLiteral(" class=\"value\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 12 "..\..\Views\User\Show.cshtml"
Write(Model.User.Id);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n <th");
WriteLiteral(" class=\"name\"");
WriteLiteral(">Given Name:\r\n </th>\r\n <td");
WriteLiteral(" class=\"value\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 17 "..\..\Views\User\Show.cshtml"
Write(Model.User.GivenName);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th");
WriteLiteral(" class=\"name\"");
WriteLiteral(">Type:\r\n </th>\r\n <td");
WriteLiteral(" class=\"value\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 24 "..\..\Views\User\Show.cshtml"
Write(Model.User.Type);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n <th");
WriteLiteral(" class=\"name\"");
WriteLiteral(">Surname:\r\n </th>\r\n <td");
WriteLiteral(" class=\"value\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 29 "..\..\Views\User\Show.cshtml"
Write(Model.User.Surname);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th");
WriteLiteral(" class=\"name\"");
WriteLiteral(">Display Name:\r\n </th>\r\n <td");
WriteLiteral(" class=\"value\"");
WriteLiteral(" colspan=\"3\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 36 "..\..\Views\User\Show.cshtml"
Write(Model.User.DisplayName);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th");
WriteLiteral(" class=\"name\"");
WriteLiteral(">Email Address:\r\n </th>\r\n <td");
WriteLiteral(" class=\"value\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 43 "..\..\Views\User\Show.cshtml"
Write(Model.User.EmailAddress);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n <th");
WriteLiteral(" class=\"name\"");
WriteLiteral(">Phone Number:\r\n </th>\r\n <td");
WriteLiteral(" class=\"value\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 48 "..\..\Views\User\Show.cshtml"
Write(Model.User.PhoneNumber);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th");
WriteLiteral(" class=\"name\"");
WriteLiteral(">Assigned Devices:\r\n </th>\r\n <td");
WriteLiteral(" class=\"value\"");
WriteLiteral(" colspan=\"3\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 55 "..\..\Views\User\Show.cshtml"
Write(Html.Partial(MVC.User.Views._UserDeviceAssignmentHistoryTable, Model.User));
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th");
WriteLiteral(" class=\"name\"");
WriteLiteral(">Generate Documents:\r\n </th>\r\n <td");
WriteLiteral(" class=\"value\"");
WriteLiteral(" colspan=\"3\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 62 "..\..\Views\User\Show.cshtml"
Write(Html.DropDownList("DocumentTemplates", Model.DocumentTemplatesSelectListItems));
#line default
#line hidden
WriteLiteral("\r\n <script");
WriteLiteral(" type=\"text/javascript\"");
WriteLiteral(">\r\n $(function () {\r\n var generatePdfUrl = \'");
#line 65 "..\..\Views\User\Show.cshtml"
Write(Url.Action(MVC.API.User.GeneratePdf(Model.User.Id, null)));
#line default
#line hidden
WriteLiteral(@"?DocumentTemplateId=';
var $documentTemplates = $('#DocumentTemplates');
$documentTemplates.change(function () {
var v = $documentTemplates.val();
if (v) {
window.location.href = generatePdfUrl + v;
$documentTemplates.val('');
}
});
});
</script>
</td>
</tr>
</table>
<h2>Jobs</h2>
");
#line 80 "..\..\Views\User\Show.cshtml"
Write(Html.Partial(MVC.Shared.Views._JobTable, Model.Jobs));
#line default
#line hidden
WriteLiteral("\r\n<h2>Attachments</h2>\r\n");
#line 82 "..\..\Views\User\Show.cshtml"
Write(Html.Partial(MVC.User.Views.UserParts.Resources, Model));
#line default
#line hidden
WriteLiteral("\r\n<div");
WriteLiteral(" class=\"actionBar\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 84 "..\..\Views\User\Show.cshtml"
Write(Html.ActionLinkButton("Create Job", MVC.Job.Create(Model.PrimaryDeviceSerialNumber, Model.User.Id), "buttonCreateJob"));
#line default
#line hidden
WriteLiteral("\r\n</div>\r\n");
}
}
}
#pragma warning restore 1591
+193 -193
View File
@@ -1,193 +1,193 @@
@model Disco.Web.Models.User.ShowModel
@{
Html.BundleDeferred("~/Style/Shadowbox");
Html.BundleDeferred("~/ClientScripts/Modules/Shadowbox");
}
<table id="userShowResources">
<tr>
<td id="Attachments">
<div class="attachmentOutput">
@if (Model.User.UserAttachments != null)
{
foreach (var ua in Model.User.UserAttachments)
{
<a href="@Url.Action(MVC.API.User.AttachmentDownload(ua.Id))" data-attachmentid="@ua.Id" data-mimetype="@ua.MimeType">
<span class="icon" title="@ua.Filename">
<img alt="Attachment Thumbnail" src="@(Url.Action(MVC.API.User.AttachmentThumbnail(ua.Id)))" /></span>
<span class="comments" title="@ua.Comments">
@{if (!string.IsNullOrEmpty(ua.DocumentTemplateId))
{ @ua.DocumentTemplate.Description}
else
{ @ua.Comments }}
</span><span class="author">@ua.TechUser.ToString()</span><span class="remove"></span>
<span class="timestamp" title="@ua.Timestamp.ToFullDateTime()">@ua.Timestamp.ToFuzzy()</span>
</a>
}
}
</div>
<div class="attachmentInput clearfix">
<span class="action upload"></span><span class="action photo"></span>
</div>
<script type="text/javascript">
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(
'@(Links.ClientBin.Disco_Silverlight_AttachmentUpload_xap)',
$('#silverlightHostUploadAttachment').get(0),
'silverlightUploadAttachment',
{ width: '840px', height: '500px', background: 'white', version: '4.0.60310.0' },
{ onLoad: function () {
if (onLoadNavigation) {
silverlightUploadAttachment.content.Navigator.Navigate(onLoadNavigation);
isLoaded = true;
}
}
},
'UploadUrl=@(Url.Action(MVC.API.User.AttachmentUpload(Model.User.Id, null)))'
);
$attachmentInput = $Attachments.find('.attachmentInput');
$attachmentInput.find('.photo').click(function () {
showDialog('/WebCam');
});
$attachmentInput.find('.upload').click(function () {
showDialog('/File');
});
silverlightUploadAttachment = $('#silverlightUploadAttachment').get(0);
function showDialog(navigationPath) {
$('#dialogUpload').dialog('open');
if (isLoaded) {
silverlightUploadAttachment.content.Navigator.Navigate(navigationPath);
} else {
onLoadNavigation = navigationPath;
}
};
function addAttachment(id, quick) {
var data = { id: id };
$.ajax({
url: '@Url.Action(MVC.API.User.Attachment())',
dataType: 'json',
data: data,
success: function (d) {
if (d.Result == 'OK') {
var a = d.Attachment;
var e = $('<a><span class="icon"><img alt="Attachment Thumbnail" /></span><span class="comments"></span><span class="author"></span><span class="remove"></span><span class="timestamp"></span></a>');
e.attr('data-attachmentid', a.Id).attr('data-mimetype', a.MimeType).attr('href', '@(Url.Action(MVC.API.User.AttachmentDownload()))/' + a.Id);
e.find('.icon img').attr('src', '@(Url.Action(MVC.API.User.AttachmentThumbnail()))/' + a.Id);
e.find('.comments').text(a.Comments);
e.find('.author').text(a.Author);
e.find('.timestamp').text(a.TimestampFuzzy).attr('title', a.TimestampFull);
e.find('.remove').click(removeAttachment);
if (!quick)
e.hide();
$attachmentOutput.append(e);
if (!quick)
e.show('slow');
if (a.MimeType.toLowerCase().indexOf('image/') == 0)
e.shadowbox({ gallery: 'attachments', player: 'img', title: a.Comments });
} else {
alert('Unable to add attachment: ' + d.Result);
}
},
error: function (jqXHR, textStatus, errorThrown) {
alert('Unable to add attachment: ' + textStatus);
}
});
}
function removeAttachment() {
$this = $(this).closest('a');
var data = { id: $this.attr('data-attachmentid') };
var $dialogRemoveAttachment = $('#dialogRemoveAttachment');
$dialogRemoveAttachment.dialog("enable");
$dialogRemoveAttachment.dialog('option', 'buttons', {
"Remove": function () {
$dialogRemoveAttachment.dialog("disable");
$dialogRemoveAttachment.dialog("option", "buttons", null);
$.ajax({
url: '@Url.Action(MVC.API.User.AttachmentRemove())',
dataType: 'json',
data: data,
success: function (d) {
if (d == 'OK') {
$this.hide(300).delay(300).queue(function () {
var $this = $(this);
if ($this.attr('data-mimetype').toLowerCase().indexOf('image/') == 0)
Shadowbox.removeCache(this);
$this.remove();
});
} else {
alert('Unable to remove attachment: ' + d);
}
$dialogRemoveAttachment.dialog("close");
},
error: function (jqXHR, textStatus, errorThrown) {
alert('Unable to remove attachment: ' + textStatus);
$dialogRemoveAttachment.dialog("close");
}
});
},
Cancel: function () {
$dialogRemoveAttachment.dialog("close");
}
});
$dialogRemoveAttachment.dialog('open');
return false;
}
$attachmentOutput.children('a').each(function () {
$this = $(this);
if ($this.attr('data-mimetype').toLowerCase().indexOf('image/') == 0)
$this.shadowbox({ gallery: 'attachments', player: 'img', title: $this.find('.comments').text() });
});
});
</script>
</td>
</tr>
</table>
<div id="dialogUpload" title="Upload Attachment">
<div id="silverlightHostUploadAttachment">
</div>
</div>
<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>
</div>
@model Disco.Web.Models.User.ShowModel
@{
Html.BundleDeferred("~/Style/Shadowbox");
Html.BundleDeferred("~/ClientScripts/Modules/Shadowbox");
}
<table id="userShowResources">
<tr>
<td id="Attachments">
<div class="attachmentOutput">
@if (Model.User.UserAttachments != null)
{
foreach (var ua in Model.User.UserAttachments)
{
<a href="@Url.Action(MVC.API.User.AttachmentDownload(ua.Id))" data-attachmentid="@ua.Id" data-mimetype="@ua.MimeType">
<span class="icon" title="@ua.Filename">
<img alt="Attachment Thumbnail" src="@(Url.Action(MVC.API.User.AttachmentThumbnail(ua.Id)))" /></span>
<span class="comments" title="@ua.Comments">
@{if (!string.IsNullOrEmpty(ua.DocumentTemplateId))
{ @ua.DocumentTemplate.Description}
else
{ @ua.Comments }}
</span><span class="author">@ua.TechUser.ToString()</span><span class="remove"></span>
<span class="timestamp" title="@ua.Timestamp.ToFullDateTime()">@ua.Timestamp.ToFuzzy()</span>
</a>
}
}
</div>
<div class="attachmentInput clearfix">
<span class="action upload"></span><span class="action photo"></span>
</div>
<script type="text/javascript">
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(
'@(Links.ClientBin.Disco_Silverlight_AttachmentUpload_xap)',
$('#silverlightHostUploadAttachment').get(0),
'silverlightUploadAttachment',
{ width: '840px', height: '500px', background: 'white', version: '4.0.60310.0' },
{ onLoad: function () {
if (onLoadNavigation) {
silverlightUploadAttachment.content.Navigator.Navigate(onLoadNavigation);
isLoaded = true;
}
}
},
'UploadUrl=@(Url.Action(MVC.API.User.AttachmentUpload(Model.User.Id, null)))'
);
$attachmentInput = $Attachments.find('.attachmentInput');
$attachmentInput.find('.photo').click(function () {
showDialog('/WebCam');
});
$attachmentInput.find('.upload').click(function () {
showDialog('/File');
});
silverlightUploadAttachment = $('#silverlightUploadAttachment').get(0);
function showDialog(navigationPath) {
$('#dialogUpload').dialog('open');
if (isLoaded) {
silverlightUploadAttachment.content.Navigator.Navigate(navigationPath);
} else {
onLoadNavigation = navigationPath;
}
};
function addAttachment(id, quick) {
var data = { id: id };
$.ajax({
url: '@Url.Action(MVC.API.User.Attachment())',
dataType: 'json',
data: data,
success: function (d) {
if (d.Result == 'OK') {
var a = d.Attachment;
var e = $('<a><span class="icon"><img alt="Attachment Thumbnail" /></span><span class="comments"></span><span class="author"></span><span class="remove"></span><span class="timestamp"></span></a>');
e.attr('data-attachmentid', a.Id).attr('data-mimetype', a.MimeType).attr('href', '@(Url.Action(MVC.API.User.AttachmentDownload()))/' + a.Id);
e.find('.icon img').attr('src', '@(Url.Action(MVC.API.User.AttachmentThumbnail()))/' + a.Id);
e.find('.comments').text(a.Comments);
e.find('.author').text(a.Author);
e.find('.timestamp').text(a.TimestampFuzzy).attr('title', a.TimestampFull);
e.find('.remove').click(removeAttachment);
if (!quick)
e.hide();
$attachmentOutput.append(e);
if (!quick)
e.show('slow');
if (a.MimeType.toLowerCase().indexOf('image/') == 0)
e.shadowbox({ gallery: 'attachments', player: 'img', title: a.Comments });
} else {
alert('Unable to add attachment: ' + d.Result);
}
},
error: function (jqXHR, textStatus, errorThrown) {
alert('Unable to add attachment: ' + textStatus);
}
});
}
function removeAttachment() {
$this = $(this).closest('a');
var data = { id: $this.attr('data-attachmentid') };
var $dialogRemoveAttachment = $('#dialogRemoveAttachment');
$dialogRemoveAttachment.dialog("enable");
$dialogRemoveAttachment.dialog('option', 'buttons', {
"Remove": function () {
$dialogRemoveAttachment.dialog("disable");
$dialogRemoveAttachment.dialog("option", "buttons", null);
$.ajax({
url: '@Url.Action(MVC.API.User.AttachmentRemove())',
dataType: 'json',
data: data,
success: function (d) {
if (d == 'OK') {
$this.hide(300).delay(300).queue(function () {
var $this = $(this);
if ($this.attr('data-mimetype').toLowerCase().indexOf('image/') == 0)
Shadowbox.removeCache(this);
$this.remove();
});
} else {
alert('Unable to remove attachment: ' + d);
}
$dialogRemoveAttachment.dialog("close");
},
error: function (jqXHR, textStatus, errorThrown) {
alert('Unable to remove attachment: ' + textStatus);
$dialogRemoveAttachment.dialog("close");
}
});
},
Cancel: function () {
$dialogRemoveAttachment.dialog("close");
}
});
$dialogRemoveAttachment.dialog('open');
return false;
}
$attachmentOutput.children('a').each(function () {
$this = $(this);
if ($this.attr('data-mimetype').toLowerCase().indexOf('image/') == 0)
$this.shadowbox({ gallery: 'attachments', player: 'img', title: $this.find('.comments').text() });
});
});
</script>
</td>
</tr>
</table>
<div id="dialogUpload" title="Upload Attachment">
<div id="silverlightHostUploadAttachment">
</div>
</div>
<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>
</div>
@@ -1,479 +1,479 @@
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.17929
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Disco.Web.Views.User.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", "1.5.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/User/UserParts/Resources.cshtml")]
public class Resources : System.Web.Mvc.WebViewPage<Disco.Web.Models.User.ShowModel>
{
public Resources()
{
}
public override void Execute()
{
#line 2 "..\..\Views\User\UserParts\Resources.cshtml"
Html.BundleDeferred("~/Style/Shadowbox");
Html.BundleDeferred("~/ClientScripts/Modules/Shadowbox");
#line default
#line hidden
WriteLiteral("\r\n<table");
WriteLiteral(" id=\"userShowResources\"");
WriteLiteral(">\r\n <tr>\r\n <td");
WriteLiteral(" id=\"Attachments\"");
WriteLiteral(">\r\n <div");
WriteLiteral(" class=\"attachmentOutput\"");
WriteLiteral(">\r\n");
#line 10 "..\..\Views\User\UserParts\Resources.cshtml"
#line default
#line hidden
#line 10 "..\..\Views\User\UserParts\Resources.cshtml"
if (Model.User.UserAttachments != null)
{
foreach (var ua in Model.User.UserAttachments)
{
#line default
#line hidden
WriteLiteral(" <a");
WriteAttribute("href", Tuple.Create(" href=\"", 464), Tuple.Create("\"", 522)
#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 default
#line hidden
, 471), false)
);
WriteLiteral(" data-attachmentid=\"");
#line 14 "..\..\Views\User\UserParts\Resources.cshtml"
Write(ua.Id);
#line default
#line hidden
WriteLiteral("\"");
WriteLiteral(" data-mimetype=\"");
#line 14 "..\..\Views\User\UserParts\Resources.cshtml"
Write(ua.MimeType);
#line default
#line hidden
WriteLiteral("\"");
WriteLiteral(">\r\n <span");
WriteLiteral(" class=\"icon\"");
WriteAttribute("title", Tuple.Create(" title=\"", 624), Tuple.Create("\"", 644)
#line 15 "..\..\Views\User\UserParts\Resources.cshtml"
, Tuple.Create(Tuple.Create("", 632), Tuple.Create<System.Object, System.Int32>(ua.Filename
#line default
#line hidden
, 632), false)
);
WriteLiteral(">\r\n <img");
WriteLiteral(" alt=\"Attachment Thumbnail\"");
WriteAttribute("src", Tuple.Create(" src=\"", 707), Tuple.Create("\"", 767)
#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 default
#line hidden
, 713), false)
);
WriteLiteral(" /></span>\r\n <span");
WriteLiteral(" class=\"comments\"");
WriteAttribute("title", Tuple.Create(" title=\"", 826), Tuple.Create("\"", 846)
#line 17 "..\..\Views\User\UserParts\Resources.cshtml"
, Tuple.Create(Tuple.Create("", 834), Tuple.Create<System.Object, System.Int32>(ua.Comments
#line default
#line hidden
, 834), false)
);
WriteLiteral(">\r\n");
#line 18 "..\..\Views\User\UserParts\Resources.cshtml"
#line default
#line hidden
#line 18 "..\..\Views\User\UserParts\Resources.cshtml"
if (!string.IsNullOrEmpty(ua.DocumentTemplateId))
{
#line default
#line hidden
#line 19 "..\..\Views\User\UserParts\Resources.cshtml"
Write(ua.DocumentTemplate.Description);
#line default
#line hidden
#line 19 "..\..\Views\User\UserParts\Resources.cshtml"
}
else
{
#line default
#line hidden
#line 21 "..\..\Views\User\UserParts\Resources.cshtml"
Write(ua.Comments);
#line default
#line hidden
#line 21 "..\..\Views\User\UserParts\Resources.cshtml"
}
#line default
#line hidden
WriteLiteral("\r\n </span><span");
WriteLiteral(" class=\"author\"");
WriteLiteral(">");
#line 22 "..\..\Views\User\UserParts\Resources.cshtml"
Write(ua.TechUser.ToString());
#line default
#line hidden
WriteLiteral("</span><span");
WriteLiteral(" class=\"remove\"");
WriteLiteral("></span>\r\n <span");
WriteLiteral(" class=\"timestamp\"");
WriteAttribute("title", Tuple.Create(" title=\"", 1242), Tuple.Create("\"", 1280)
#line 23 "..\..\Views\User\UserParts\Resources.cshtml"
, Tuple.Create(Tuple.Create("", 1250), Tuple.Create<System.Object, System.Int32>(ua.Timestamp.ToFullDateTime()
#line default
#line hidden
, 1250), false)
);
WriteLiteral(">");
#line 23 "..\..\Views\User\UserParts\Resources.cshtml"
Write(ua.Timestamp.ToFuzzy());
#line default
#line hidden
WriteLiteral("</span>\r\n </a> \r\n");
#line 25 "..\..\Views\User\UserParts\Resources.cshtml"
}
}
#line default
#line hidden
WriteLiteral(" </div>\r\n <div");
WriteLiteral(" class=\"attachmentInput clearfix\"");
WriteLiteral(">\r\n <span");
WriteLiteral(" class=\"action upload\"");
WriteLiteral("></span><span");
WriteLiteral(" class=\"action photo\"");
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(
'");
#line 68 "..\..\Views\User\UserParts\Resources.cshtml"
Write(Links.ClientBin.Disco_Silverlight_AttachmentUpload_xap);
#line default
#line hidden
WriteLiteral(@"',
$('#silverlightHostUploadAttachment').get(0),
'silverlightUploadAttachment',
{ width: '840px', height: '500px', background: 'white', version: '4.0.60310.0' },
{ onLoad: function () {
if (onLoadNavigation) {
silverlightUploadAttachment.content.Navigator.Navigate(onLoadNavigation);
isLoaded = true;
}
}
},
'UploadUrl=");
#line 79 "..\..\Views\User\UserParts\Resources.cshtml"
Write(Url.Action(MVC.API.User.AttachmentUpload(Model.User.Id, null)));
#line default
#line hidden
WriteLiteral(@"'
);
$attachmentInput = $Attachments.find('.attachmentInput');
$attachmentInput.find('.photo').click(function () {
showDialog('/WebCam');
});
$attachmentInput.find('.upload').click(function () {
showDialog('/File');
});
silverlightUploadAttachment = $('#silverlightUploadAttachment').get(0);
function showDialog(navigationPath) {
$('#dialogUpload').dialog('open');
if (isLoaded) {
silverlightUploadAttachment.content.Navigator.Navigate(navigationPath);
} else {
onLoadNavigation = navigationPath;
}
};
function addAttachment(id, quick) {
var data = { id: id };
$.ajax({
url: '");
#line 102 "..\..\Views\User\UserParts\Resources.cshtml"
Write(Url.Action(MVC.API.User.Attachment()));
#line default
#line hidden
WriteLiteral(@"',
dataType: 'json',
data: data,
success: function (d) {
if (d.Result == 'OK') {
var a = d.Attachment;
var e = $('<a><span class=""icon""><img alt=""Attachment Thumbnail"" /></span><span class=""comments""></span><span class=""author""></span><span class=""remove""></span><span class=""timestamp""></span></a>');
e.attr('data-attachmentid', a.Id).attr('data-mimetype', a.MimeType).attr('href', '");
#line 111 "..\..\Views\User\UserParts\Resources.cshtml"
Write(Url.Action(MVC.API.User.AttachmentDownload()));
#line default
#line hidden
WriteLiteral("/\' + a.Id);\r\n e.find(\'.icon img\').attr(\'src\', " +
"\'");
#line 112 "..\..\Views\User\UserParts\Resources.cshtml"
Write(Url.Action(MVC.API.User.AttachmentThumbnail()));
#line default
#line hidden
WriteLiteral("/\' + a.Id);\r\n e.find(\'.comments\').text(a.Comme" +
"nts);\r\n e.find(\'.author\').text(a.Author);\r\n " +
" e.find(\'.timestamp\').text(a.TimestampFuzzy).at" +
"tr(\'title\', a.TimestampFull);\r\n e.find(\'.remo" +
"ve\').click(removeAttachment);\r\n if (!quick)\r\n" +
" e.hide();\r\n " +
" $attachmentOutput.append(e);\r\n if (!qu" +
"ick)\r\n e.show(\'slow\');\r\n " +
" if (a.MimeType.toLowerCase().indexOf(\'image/\') == 0)\r\n " +
" e.shadowbox({ gallery: \'attachments\', player: \'" +
"img\', title: a.Comments });\r\n } else {\r\n " +
" alert(\'Unable to add attachment: \' + d.Result);\r\n " +
" }\r\n },\r\n " +
" error: function (jqXHR, textStatus, errorThrown) {\r\n " +
" alert(\'Unable to add attachment: \' + textStatus);\r\n " +
" }\r\n });\r\n }\r\n " +
" function removeAttachment() {\r\n $this = $(this)." +
"closest(\'a\');\r\n\r\n var data = { id: $this.attr(\'data-attac" +
"hmentid\') };\r\n var $dialogRemoveAttachment = $(\'#dialogRe" +
"moveAttachment\');\r\n $dialogRemoveAttachment.dialog(\"enabl" +
"e\");\r\n $dialogRemoveAttachment.dialog(\'option\', \'buttons\'" +
", {\r\n \"Remove\": function () {\r\n " +
" $dialogRemoveAttachment.dialog(\"disable\");\r\n " +
" $dialogRemoveAttachment.dialog(\"option\", \"buttons\", null);\r\n " +
" $.ajax({\r\n url: \'");
#line 144 "..\..\Views\User\UserParts\Resources.cshtml"
Write(Url.Action(MVC.API.User.AttachmentRemove()));
#line default
#line hidden
WriteLiteral("\',\r\n dataType: \'json\',\r\n " +
" data: data,\r\n success: function" +
" (d) {\r\n if (d == \'OK\') {\r\n " +
" $this.hide(300).delay(300).queue(function () {\r\n " +
" var $this = $(this);\r\n " +
" if ($this.attr(\'data-mimetype\').toLowerCase(" +
").indexOf(\'image/\') == 0)\r\n S" +
"hadowbox.removeCache(this);\r\n $th" +
"is.remove();\r\n });\r\n " +
" } else {\r\n ale" +
"rt(\'Unable to remove attachment: \' + d);\r\n " +
" }\r\n $dialogRemoveAttachment.dialog(\"clo" +
"se\");\r\n },\r\n " +
" error: function (jqXHR, textStatus, errorThrown) {\r\n " +
" alert(\'Unable to remove attachment: \' + textStatus);\r\n " +
" $dialogRemoveAttachment.dialog(\"close\");\r\n " +
" }\r\n });\r\n " +
" },\r\n Cancel: function () {\r\n " +
" $dialogRemoveAttachment.dialog(\"close\");\r\n " +
" }\r\n });\r\n\r\n $dialogRem" +
"oveAttachment.dialog(\'open\');\r\n\r\n return false;\r\n " +
" }\r\n $attachmentOutput.children(\'a\').each(function" +
" () {\r\n $this = $(this);\r\n if ($th" +
"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");
WriteLiteral(" id=\"dialogUpload\"");
WriteLiteral(" title=\"Upload Attachment\"");
WriteLiteral(">\r\n <div");
WriteLiteral(" id=\"silverlightHostUploadAttachment\"");
WriteLiteral(">\r\n </div>\r\n</div>\r\n<div");
WriteLiteral(" id=\"dialogRemoveAttachment\"");
WriteLiteral(" title=\"Remove this Attachment?\"");
WriteLiteral(">\r\n <p>\r\n <span");
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");
}
}
}
#pragma warning restore 1591
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.17929
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Disco.Web.Views.User.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", "1.5.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/User/UserParts/Resources.cshtml")]
public class Resources : System.Web.Mvc.WebViewPage<Disco.Web.Models.User.ShowModel>
{
public Resources()
{
}
public override void Execute()
{
#line 2 "..\..\Views\User\UserParts\Resources.cshtml"
Html.BundleDeferred("~/Style/Shadowbox");
Html.BundleDeferred("~/ClientScripts/Modules/Shadowbox");
#line default
#line hidden
WriteLiteral("\r\n<table");
WriteLiteral(" id=\"userShowResources\"");
WriteLiteral(">\r\n <tr>\r\n <td");
WriteLiteral(" id=\"Attachments\"");
WriteLiteral(">\r\n <div");
WriteLiteral(" class=\"attachmentOutput\"");
WriteLiteral(">\r\n");
#line 10 "..\..\Views\User\UserParts\Resources.cshtml"
#line default
#line hidden
#line 10 "..\..\Views\User\UserParts\Resources.cshtml"
if (Model.User.UserAttachments != null)
{
foreach (var ua in Model.User.UserAttachments)
{
#line default
#line hidden
WriteLiteral(" <a");
WriteAttribute("href", Tuple.Create(" href=\"", 464), Tuple.Create("\"", 522)
#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 default
#line hidden
, 471), false)
);
WriteLiteral(" data-attachmentid=\"");
#line 14 "..\..\Views\User\UserParts\Resources.cshtml"
Write(ua.Id);
#line default
#line hidden
WriteLiteral("\"");
WriteLiteral(" data-mimetype=\"");
#line 14 "..\..\Views\User\UserParts\Resources.cshtml"
Write(ua.MimeType);
#line default
#line hidden
WriteLiteral("\"");
WriteLiteral(">\r\n <span");
WriteLiteral(" class=\"icon\"");
WriteAttribute("title", Tuple.Create(" title=\"", 624), Tuple.Create("\"", 644)
#line 15 "..\..\Views\User\UserParts\Resources.cshtml"
, Tuple.Create(Tuple.Create("", 632), Tuple.Create<System.Object, System.Int32>(ua.Filename
#line default
#line hidden
, 632), false)
);
WriteLiteral(">\r\n <img");
WriteLiteral(" alt=\"Attachment Thumbnail\"");
WriteAttribute("src", Tuple.Create(" src=\"", 707), Tuple.Create("\"", 767)
#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 default
#line hidden
, 713), false)
);
WriteLiteral(" /></span>\r\n <span");
WriteLiteral(" class=\"comments\"");
WriteAttribute("title", Tuple.Create(" title=\"", 826), Tuple.Create("\"", 846)
#line 17 "..\..\Views\User\UserParts\Resources.cshtml"
, Tuple.Create(Tuple.Create("", 834), Tuple.Create<System.Object, System.Int32>(ua.Comments
#line default
#line hidden
, 834), false)
);
WriteLiteral(">\r\n");
#line 18 "..\..\Views\User\UserParts\Resources.cshtml"
#line default
#line hidden
#line 18 "..\..\Views\User\UserParts\Resources.cshtml"
if (!string.IsNullOrEmpty(ua.DocumentTemplateId))
{
#line default
#line hidden
#line 19 "..\..\Views\User\UserParts\Resources.cshtml"
Write(ua.DocumentTemplate.Description);
#line default
#line hidden
#line 19 "..\..\Views\User\UserParts\Resources.cshtml"
}
else
{
#line default
#line hidden
#line 21 "..\..\Views\User\UserParts\Resources.cshtml"
Write(ua.Comments);
#line default
#line hidden
#line 21 "..\..\Views\User\UserParts\Resources.cshtml"
}
#line default
#line hidden
WriteLiteral("\r\n </span><span");
WriteLiteral(" class=\"author\"");
WriteLiteral(">");
#line 22 "..\..\Views\User\UserParts\Resources.cshtml"
Write(ua.TechUser.ToString());
#line default
#line hidden
WriteLiteral("</span><span");
WriteLiteral(" class=\"remove\"");
WriteLiteral("></span>\r\n <span");
WriteLiteral(" class=\"timestamp\"");
WriteAttribute("title", Tuple.Create(" title=\"", 1242), Tuple.Create("\"", 1280)
#line 23 "..\..\Views\User\UserParts\Resources.cshtml"
, Tuple.Create(Tuple.Create("", 1250), Tuple.Create<System.Object, System.Int32>(ua.Timestamp.ToFullDateTime()
#line default
#line hidden
, 1250), false)
);
WriteLiteral(">");
#line 23 "..\..\Views\User\UserParts\Resources.cshtml"
Write(ua.Timestamp.ToFuzzy());
#line default
#line hidden
WriteLiteral("</span>\r\n </a> \r\n");
#line 25 "..\..\Views\User\UserParts\Resources.cshtml"
}
}
#line default
#line hidden
WriteLiteral(" </div>\r\n <div");
WriteLiteral(" class=\"attachmentInput clearfix\"");
WriteLiteral(">\r\n <span");
WriteLiteral(" class=\"action upload\"");
WriteLiteral("></span><span");
WriteLiteral(" class=\"action photo\"");
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(
'");
#line 68 "..\..\Views\User\UserParts\Resources.cshtml"
Write(Links.ClientBin.Disco_Silverlight_AttachmentUpload_xap);
#line default
#line hidden
WriteLiteral(@"',
$('#silverlightHostUploadAttachment').get(0),
'silverlightUploadAttachment',
{ width: '840px', height: '500px', background: 'white', version: '4.0.60310.0' },
{ onLoad: function () {
if (onLoadNavigation) {
silverlightUploadAttachment.content.Navigator.Navigate(onLoadNavigation);
isLoaded = true;
}
}
},
'UploadUrl=");
#line 79 "..\..\Views\User\UserParts\Resources.cshtml"
Write(Url.Action(MVC.API.User.AttachmentUpload(Model.User.Id, null)));
#line default
#line hidden
WriteLiteral(@"'
);
$attachmentInput = $Attachments.find('.attachmentInput');
$attachmentInput.find('.photo').click(function () {
showDialog('/WebCam');
});
$attachmentInput.find('.upload').click(function () {
showDialog('/File');
});
silverlightUploadAttachment = $('#silverlightUploadAttachment').get(0);
function showDialog(navigationPath) {
$('#dialogUpload').dialog('open');
if (isLoaded) {
silverlightUploadAttachment.content.Navigator.Navigate(navigationPath);
} else {
onLoadNavigation = navigationPath;
}
};
function addAttachment(id, quick) {
var data = { id: id };
$.ajax({
url: '");
#line 102 "..\..\Views\User\UserParts\Resources.cshtml"
Write(Url.Action(MVC.API.User.Attachment()));
#line default
#line hidden
WriteLiteral(@"',
dataType: 'json',
data: data,
success: function (d) {
if (d.Result == 'OK') {
var a = d.Attachment;
var e = $('<a><span class=""icon""><img alt=""Attachment Thumbnail"" /></span><span class=""comments""></span><span class=""author""></span><span class=""remove""></span><span class=""timestamp""></span></a>');
e.attr('data-attachmentid', a.Id).attr('data-mimetype', a.MimeType).attr('href', '");
#line 111 "..\..\Views\User\UserParts\Resources.cshtml"
Write(Url.Action(MVC.API.User.AttachmentDownload()));
#line default
#line hidden
WriteLiteral("/\' + a.Id);\r\n e.find(\'.icon img\').attr(\'src\', " +
"\'");
#line 112 "..\..\Views\User\UserParts\Resources.cshtml"
Write(Url.Action(MVC.API.User.AttachmentThumbnail()));
#line default
#line hidden
WriteLiteral("/\' + a.Id);\r\n e.find(\'.comments\').text(a.Comme" +
"nts);\r\n e.find(\'.author\').text(a.Author);\r\n " +
" e.find(\'.timestamp\').text(a.TimestampFuzzy).at" +
"tr(\'title\', a.TimestampFull);\r\n e.find(\'.remo" +
"ve\').click(removeAttachment);\r\n if (!quick)\r\n" +
" e.hide();\r\n " +
" $attachmentOutput.append(e);\r\n if (!qu" +
"ick)\r\n e.show(\'slow\');\r\n " +
" if (a.MimeType.toLowerCase().indexOf(\'image/\') == 0)\r\n " +
" e.shadowbox({ gallery: \'attachments\', player: \'" +
"img\', title: a.Comments });\r\n } else {\r\n " +
" alert(\'Unable to add attachment: \' + d.Result);\r\n " +
" }\r\n },\r\n " +
" error: function (jqXHR, textStatus, errorThrown) {\r\n " +
" alert(\'Unable to add attachment: \' + textStatus);\r\n " +
" }\r\n });\r\n }\r\n " +
" function removeAttachment() {\r\n $this = $(this)." +
"closest(\'a\');\r\n\r\n var data = { id: $this.attr(\'data-attac" +
"hmentid\') };\r\n var $dialogRemoveAttachment = $(\'#dialogRe" +
"moveAttachment\');\r\n $dialogRemoveAttachment.dialog(\"enabl" +
"e\");\r\n $dialogRemoveAttachment.dialog(\'option\', \'buttons\'" +
", {\r\n \"Remove\": function () {\r\n " +
" $dialogRemoveAttachment.dialog(\"disable\");\r\n " +
" $dialogRemoveAttachment.dialog(\"option\", \"buttons\", null);\r\n " +
" $.ajax({\r\n url: \'");
#line 144 "..\..\Views\User\UserParts\Resources.cshtml"
Write(Url.Action(MVC.API.User.AttachmentRemove()));
#line default
#line hidden
WriteLiteral("\',\r\n dataType: \'json\',\r\n " +
" data: data,\r\n success: function" +
" (d) {\r\n if (d == \'OK\') {\r\n " +
" $this.hide(300).delay(300).queue(function () {\r\n " +
" var $this = $(this);\r\n " +
" if ($this.attr(\'data-mimetype\').toLowerCase(" +
").indexOf(\'image/\') == 0)\r\n S" +
"hadowbox.removeCache(this);\r\n $th" +
"is.remove();\r\n });\r\n " +
" } else {\r\n ale" +
"rt(\'Unable to remove attachment: \' + d);\r\n " +
" }\r\n $dialogRemoveAttachment.dialog(\"clo" +
"se\");\r\n },\r\n " +
" error: function (jqXHR, textStatus, errorThrown) {\r\n " +
" alert(\'Unable to remove attachment: \' + textStatus);\r\n " +
" $dialogRemoveAttachment.dialog(\"close\");\r\n " +
" }\r\n });\r\n " +
" },\r\n Cancel: function () {\r\n " +
" $dialogRemoveAttachment.dialog(\"close\");\r\n " +
" }\r\n });\r\n\r\n $dialogRem" +
"oveAttachment.dialog(\'open\');\r\n\r\n return false;\r\n " +
" }\r\n $attachmentOutput.children(\'a\').each(function" +
" () {\r\n $this = $(this);\r\n if ($th" +
"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");
WriteLiteral(" id=\"dialogUpload\"");
WriteLiteral(" title=\"Upload Attachment\"");
WriteLiteral(">\r\n <div");
WriteLiteral(" id=\"silverlightHostUploadAttachment\"");
WriteLiteral(">\r\n </div>\r\n</div>\r\n<div");
WriteLiteral(" id=\"dialogRemoveAttachment\"");
WriteLiteral(" title=\"Remove this Attachment?\"");
WriteLiteral(">\r\n <p>\r\n <span");
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");
}
}
}
#pragma warning restore 1591
@@ -1,80 +1,80 @@
@model Disco.Models.Repository.User
@{
var userId = Model.Id;
}
@if (Model.DeviceUserAssignments.Count > 0)
{
<table class="genericData smallTable" id="User_AssignedDevice_History_@(userId)">
<tr>
<th>
Device Serial #
</th>
<th>
Device Asset #
</th>
<th>
Device Model
</th>
<th>
Assigned
</th>
<th>
Unassigned
</th>
</tr>
@foreach (var dua in Model.DeviceUserAssignments.OrderByDescending(m => m.AssignedDate))
{
<tr class="assignmentActive@((!dua.UnassignedDate.HasValue).ToString())">
<td>
@Html.ActionLink(dua.Device.SerialNumber, MVC.Device.Show(dua.DeviceSerialNumber))
</td>
<td>
@dua.Device.AssetNumber
</td>
<td>
@dua.Device.DeviceModel.ToString()
</td>
<td>
@CommonHelpers.FriendlyDate(dua.AssignedDate)
</td>
<td>
@CommonHelpers.FriendlyDate(dua.UnassignedDate, "Current")
</td>
</tr>
}
@if (Model.DeviceUserAssignments.Count(m => !m.UnassignedDate.HasValue) == 0)
{
<tr class="noActiveAssignments">
<td colspan="5">
<span class="smallMessage">No Active Assignments</span>
</td>
</tr>
}
</table>
<a href="#" id="User_AssignedDevice_History_Trigger_@(userId)" class="smallLink">Show
All Assignment History (<span id="User_AssignedDevice_History_RecordCount_@(userId)"></span>)</a>
<script type="text/javascript">
$(function () {
var $table = $('#User_AssignedDevice_History_@(userId)');
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_@(userId)').text(recordCountText);
$('#User_AssignedDevice_History_Trigger_@(userId)').click(function () {
$(this).hide();
$table.find('tr.noActiveAssignments').hide();
$inactiveRecords.show();
return false;
});
} else {
$('#User_AssignedDevice_History_Trigger_@(userId)').hide();
}
});
</script>
}
else
{
<span class="smallMessage">No Assignment History Available</span>
}
@model Disco.Models.Repository.User
@{
var userId = Model.Id;
}
@if (Model.DeviceUserAssignments.Count > 0)
{
<table class="genericData smallTable" id="User_AssignedDevice_History_@(userId)">
<tr>
<th>
Device Serial #
</th>
<th>
Device Asset #
</th>
<th>
Device Model
</th>
<th>
Assigned
</th>
<th>
Unassigned
</th>
</tr>
@foreach (var dua in Model.DeviceUserAssignments.OrderByDescending(m => m.AssignedDate))
{
<tr class="assignmentActive@((!dua.UnassignedDate.HasValue).ToString())">
<td>
@Html.ActionLink(dua.Device.SerialNumber, MVC.Device.Show(dua.DeviceSerialNumber))
</td>
<td>
@dua.Device.AssetNumber
</td>
<td>
@dua.Device.DeviceModel.ToString()
</td>
<td>
@CommonHelpers.FriendlyDate(dua.AssignedDate)
</td>
<td>
@CommonHelpers.FriendlyDate(dua.UnassignedDate, "Current")
</td>
</tr>
}
@if (Model.DeviceUserAssignments.Count(m => !m.UnassignedDate.HasValue) == 0)
{
<tr class="noActiveAssignments">
<td colspan="5">
<span class="smallMessage">No Active Assignments</span>
</td>
</tr>
}
</table>
<a href="#" id="User_AssignedDevice_History_Trigger_@(userId)" class="smallLink">Show
All Assignment History (<span id="User_AssignedDevice_History_RecordCount_@(userId)"></span>)</a>
<script type="text/javascript">
$(function () {
var $table = $('#User_AssignedDevice_History_@(userId)');
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_@(userId)').text(recordCountText);
$('#User_AssignedDevice_History_Trigger_@(userId)').click(function () {
$(this).hide();
$table.find('tr.noActiveAssignments').hide();
$inactiveRecords.show();
return false;
});
} else {
$('#User_AssignedDevice_History_Trigger_@(userId)').hide();
}
});
</script>
}
else
{
<span class="smallMessage">No Assignment History Available</span>
}
@@ -1,334 +1,334 @@
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.17929
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Disco.Web.Views.User
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Helpers;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html;
using System.Web.Routing;
using System.Web.Security;
using System.Web.UI;
using System.Web.WebPages;
using Disco.BI.Extensions;
using Disco.Models.Repository;
using Disco.Web;
using Disco.Web.Extensions;
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "1.5.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/User/_UserDeviceAssignmentHistoryTable.cshtml")]
public 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
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.17929
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Disco.Web.Views.User
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Helpers;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html;
using System.Web.Routing;
using System.Web.Security;
using System.Web.UI;
using System.Web.WebPages;
using Disco.BI.Extensions;
using Disco.Models.Repository;
using Disco.Web;
using Disco.Web.Extensions;
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "1.5.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/User/_UserDeviceAssignmentHistoryTable.cshtml")]
public 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
+59 -59
View File
@@ -1,59 +1,59 @@
@model IEnumerable<Disco.Models.BI.Search.UserSearchResultItem>
<div class="genericData userTable">
@if (Model != null && Model.Count() > 0)
{
<table class="genericData userTable">
<thead>
<tr>
<th>
Id
</th>
<th>
Surname
</th>
<th>
Given Name
</th>
<th>
Display Name
</th>
<th>
Assigned Devices
</th>
<th>
Jobs
</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model)
{
<tr>
<td>
@Html.ActionLink(item.Id, MVC.User.Show(item.Id))
</td>
<td>
@item.Surname
</td>
<td>
@item.GivenName
</td>
<td>
@item.DisplayName
</td>
<td>
@item.AssignedDevicesCount
</td>
<td>
@item.JobCount
</td>
</tr>
}
</tbody>
</table>
}
else
{
<span class="smallMessage">No Users Found</span>
}
</div>
@model IEnumerable<Disco.Models.BI.Search.UserSearchResultItem>
<div class="genericData userTable">
@if (Model != null && Model.Count() > 0)
{
<table class="genericData userTable">
<thead>
<tr>
<th>
Id
</th>
<th>
Surname
</th>
<th>
Given Name
</th>
<th>
Display Name
</th>
<th>
Assigned Devices
</th>
<th>
Jobs
</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model)
{
<tr>
<td>
@Html.ActionLink(item.Id, MVC.User.Show(item.Id))
</td>
<td>
@item.Surname
</td>
<td>
@item.GivenName
</td>
<td>
@item.DisplayName
</td>
<td>
@item.AssignedDevicesCount
</td>
<td>
@item.JobCount
</td>
</tr>
}
</tbody>
</table>
}
else
{
<span class="smallMessage">No Users Found</span>
}
</div>
+211 -211
View File
@@ -1,211 +1,211 @@
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.17929
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Disco.Web.Views.User
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Helpers;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html;
using System.Web.Routing;
using System.Web.Security;
using System.Web.UI;
using System.Web.WebPages;
using Disco.BI.Extensions;
using Disco.Models.Repository;
using Disco.Web;
using Disco.Web.Extensions;
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "1.5.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/User/_UserTable.cshtml")]
public class UserTable : System.Web.Mvc.WebViewPage<IEnumerable<Disco.Models.BI.Search.UserSearchResultItem>>
{
public UserTable()
{
}
public override void Execute()
{
WriteLiteral("<div");
WriteLiteral(" class=\"genericData userTable\"");
WriteLiteral(">\r\n");
#line 3 "..\..\Views\User\_UserTable.cshtml"
#line default
#line hidden
#line 3 "..\..\Views\User\_UserTable.cshtml"
if (Model != null && Model.Count() > 0)
{
#line default
#line hidden
WriteLiteral(" <table");
WriteLiteral(" class=\"genericData userTable\"");
WriteLiteral(@">
<thead>
<tr>
<th>
Id
</th>
<th>
Surname
</th>
<th>
Given Name
</th>
<th>
Display Name
</th>
<th>
Assigned Devices
</th>
<th>
Jobs
</th>
</tr>
</thead>
<tbody>
");
#line 29 "..\..\Views\User\_UserTable.cshtml"
#line default
#line hidden
#line 29 "..\..\Views\User\_UserTable.cshtml"
foreach (var item in Model)
{
#line default
#line hidden
WriteLiteral(" <tr>\r\n <td>\r\n");
WriteLiteral(" ");
#line 33 "..\..\Views\User\_UserTable.cshtml"
Write(Html.ActionLink(item.Id, MVC.User.Show(item.Id)));
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n <td>\r\n");
WriteLiteral(" ");
#line 36 "..\..\Views\User\_UserTable.cshtml"
Write(item.Surname);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n <td>\r\n");
WriteLiteral(" ");
#line 39 "..\..\Views\User\_UserTable.cshtml"
Write(item.GivenName);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n <td>\r\n");
WriteLiteral(" ");
#line 42 "..\..\Views\User\_UserTable.cshtml"
Write(item.DisplayName);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n <td>\r\n");
WriteLiteral(" ");
#line 45 "..\..\Views\User\_UserTable.cshtml"
Write(item.AssignedDevicesCount);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n <td>\r\n");
WriteLiteral(" ");
#line 48 "..\..\Views\User\_UserTable.cshtml"
Write(item.JobCount);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n");
#line 51 "..\..\Views\User\_UserTable.cshtml"
}
#line default
#line hidden
WriteLiteral(" </tbody>\r\n </table>\r\n");
#line 54 "..\..\Views\User\_UserTable.cshtml"
}
else
{
#line default
#line hidden
WriteLiteral(" <span");
WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">No Users Found</span>\r\n");
#line 58 "..\..\Views\User\_UserTable.cshtml"
}
#line default
#line hidden
WriteLiteral("</div>\r\n");
}
}
}
#pragma warning restore 1591
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.17929
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Disco.Web.Views.User
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Helpers;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html;
using System.Web.Routing;
using System.Web.Security;
using System.Web.UI;
using System.Web.WebPages;
using Disco.BI.Extensions;
using Disco.Models.Repository;
using Disco.Web;
using Disco.Web.Extensions;
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "1.5.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/User/_UserTable.cshtml")]
public class UserTable : System.Web.Mvc.WebViewPage<IEnumerable<Disco.Models.BI.Search.UserSearchResultItem>>
{
public UserTable()
{
}
public override void Execute()
{
WriteLiteral("<div");
WriteLiteral(" class=\"genericData userTable\"");
WriteLiteral(">\r\n");
#line 3 "..\..\Views\User\_UserTable.cshtml"
#line default
#line hidden
#line 3 "..\..\Views\User\_UserTable.cshtml"
if (Model != null && Model.Count() > 0)
{
#line default
#line hidden
WriteLiteral(" <table");
WriteLiteral(" class=\"genericData userTable\"");
WriteLiteral(@">
<thead>
<tr>
<th>
Id
</th>
<th>
Surname
</th>
<th>
Given Name
</th>
<th>
Display Name
</th>
<th>
Assigned Devices
</th>
<th>
Jobs
</th>
</tr>
</thead>
<tbody>
");
#line 29 "..\..\Views\User\_UserTable.cshtml"
#line default
#line hidden
#line 29 "..\..\Views\User\_UserTable.cshtml"
foreach (var item in Model)
{
#line default
#line hidden
WriteLiteral(" <tr>\r\n <td>\r\n");
WriteLiteral(" ");
#line 33 "..\..\Views\User\_UserTable.cshtml"
Write(Html.ActionLink(item.Id, MVC.User.Show(item.Id)));
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n <td>\r\n");
WriteLiteral(" ");
#line 36 "..\..\Views\User\_UserTable.cshtml"
Write(item.Surname);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n <td>\r\n");
WriteLiteral(" ");
#line 39 "..\..\Views\User\_UserTable.cshtml"
Write(item.GivenName);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n <td>\r\n");
WriteLiteral(" ");
#line 42 "..\..\Views\User\_UserTable.cshtml"
Write(item.DisplayName);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n <td>\r\n");
WriteLiteral(" ");
#line 45 "..\..\Views\User\_UserTable.cshtml"
Write(item.AssignedDevicesCount);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n <td>\r\n");
WriteLiteral(" ");
#line 48 "..\..\Views\User\_UserTable.cshtml"
Write(item.JobCount);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n");
#line 51 "..\..\Views\User\_UserTable.cshtml"
}
#line default
#line hidden
WriteLiteral(" </tbody>\r\n </table>\r\n");
#line 54 "..\..\Views\User\_UserTable.cshtml"
}
else
{
#line default
#line hidden
WriteLiteral(" <span");
WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">No Users Found</span>\r\n");
#line 58 "..\..\Views\User\_UserTable.cshtml"
}
#line default
#line hidden
WriteLiteral("</div>\r\n");
}
}
}
#pragma warning restore 1591
+2 -2
View File
@@ -1,3 +1,3 @@
@{
Html.BundleDeferred("~/Style/User");
@{
Html.BundleDeferred("~/Style/User");
}
+54 -54
View File
@@ -1,54 +1,54 @@
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.17929
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Disco.Web.Views.User
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Helpers;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html;
using System.Web.Routing;
using System.Web.Security;
using System.Web.UI;
using System.Web.WebPages;
using Disco.BI.Extensions;
using Disco.Models.Repository;
using Disco.Web;
using Disco.Web.Extensions;
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "1.5.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/User/_ViewStart.cshtml")]
public class ViewStart : System.Web.Mvc.ViewStartPage
{
public ViewStart()
{
}
public override void Execute()
{
#line 1 "..\..\Views\User\_ViewStart.cshtml"
Html.BundleDeferred("~/Style/User");
#line default
#line hidden
}
}
}
#pragma warning restore 1591
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.17929
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Disco.Web.Views.User
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Helpers;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html;
using System.Web.Routing;
using System.Web.Security;
using System.Web.UI;
using System.Web.WebPages;
using Disco.BI.Extensions;
using Disco.Models.Repository;
using Disco.Web;
using Disco.Web.Extensions;
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "1.5.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/User/_ViewStart.cshtml")]
public class ViewStart : System.Web.Mvc.ViewStartPage
{
public ViewStart()
{
}
public override void Execute()
{
#line 1 "..\..\Views\User\_ViewStart.cshtml"
Html.BundleDeferred("~/Style/User");
#line default
#line hidden
}
}
}
#pragma warning restore 1591