Add date-based managed group filtering
This commit is contained in:
@@ -21,7 +21,6 @@ namespace Disco.Services.Documents.ManagedGroups
|
|||||||
private IDisposable repositoryAddSubscription;
|
private IDisposable repositoryAddSubscription;
|
||||||
private IDisposable repositoryRemoveSubscription;
|
private IDisposable repositoryRemoveSubscription;
|
||||||
private IDisposable deviceRenameRepositorySubscription;
|
private IDisposable deviceRenameRepositorySubscription;
|
||||||
private IDisposable jobCloseRepositorySubscription;
|
|
||||||
private IDisposable deviceAssignmentRepositorySubscription;
|
private IDisposable deviceAssignmentRepositorySubscription;
|
||||||
private string DocumentTemplateId;
|
private string DocumentTemplateId;
|
||||||
private string DocumentTemplateDescription;
|
private string DocumentTemplateDescription;
|
||||||
@@ -62,9 +61,6 @@ namespace Disco.Services.Documents.ManagedGroups
|
|||||||
repositoryRemoveSubscription = DocumentTemplateManagedGroups.JobAttachmentRemoveEvents.Value
|
repositoryRemoveSubscription = DocumentTemplateManagedGroups.JobAttachmentRemoveEvents.Value
|
||||||
.Where(e => e.Item3 == DocumentTemplateId)
|
.Where(e => e.Item3 == DocumentTemplateId)
|
||||||
.Subscribe(ProcessJobAttachmentRemoveEvent);
|
.Subscribe(ProcessJobAttachmentRemoveEvent);
|
||||||
// Observe Job Close/Reopen
|
|
||||||
jobCloseRepositorySubscription = DocumentTemplateManagedGroups.JobCloseRepositoryEvents.Value
|
|
||||||
.Subscribe(ProcessJobCloseRepositoryEvent);
|
|
||||||
break;
|
break;
|
||||||
case DocumentTemplate.DocumentTemplateScopes.User:
|
case DocumentTemplate.DocumentTemplateScopes.User:
|
||||||
// Observe User Attachments
|
// Observe User Attachments
|
||||||
@@ -161,27 +157,64 @@ namespace Disco.Services.Documents.ManagedGroups
|
|||||||
switch (DocumentTemplateScope)
|
switch (DocumentTemplateScope)
|
||||||
{
|
{
|
||||||
case DocumentTemplate.DocumentTemplateScopes.Device:
|
case DocumentTemplate.DocumentTemplateScopes.Device:
|
||||||
|
if (Configuration.FilterBeginDate.HasValue)
|
||||||
|
{
|
||||||
|
return Database.Devices
|
||||||
|
.Where(d => d.DeviceDomainId != null && d.DeviceAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId && a.Timestamp >= Configuration.FilterBeginDate))
|
||||||
|
.Select(d => d.DeviceDomainId)
|
||||||
|
.ToList()
|
||||||
|
.Where(ActiveDirectory.IsValidDomainAccountId)
|
||||||
|
.Select(id => id + "$");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
return Database.Devices
|
return Database.Devices
|
||||||
.Where(d => d.DeviceDomainId != null && d.DeviceAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId))
|
.Where(d => d.DeviceDomainId != null && d.DeviceAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId))
|
||||||
.Select(d => d.DeviceDomainId)
|
.Select(d => d.DeviceDomainId)
|
||||||
.ToList()
|
.ToList()
|
||||||
.Where(ActiveDirectory.IsValidDomainAccountId)
|
.Where(ActiveDirectory.IsValidDomainAccountId)
|
||||||
.Select(id => id + "$");
|
.Select(id => id + "$");
|
||||||
|
}
|
||||||
case DocumentTemplate.DocumentTemplateScopes.Job:
|
case DocumentTemplate.DocumentTemplateScopes.Job:
|
||||||
|
if (Configuration.FilterBeginDate.HasValue)
|
||||||
|
{
|
||||||
return Database.Jobs
|
return Database.Jobs
|
||||||
.Where(j => !j.ClosedDate.HasValue && j.Device.DeviceDomainId != null && j.JobAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId))
|
.Where(j => j.Device.DeviceDomainId != null && j.JobAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId && a.Timestamp >= Configuration.FilterBeginDate))
|
||||||
.Select(j => j.Device.DeviceDomainId)
|
.Select(j => j.Device.DeviceDomainId)
|
||||||
.Distinct()
|
.Distinct()
|
||||||
.ToList()
|
.ToList()
|
||||||
.Where(ActiveDirectory.IsValidDomainAccountId)
|
.Where(ActiveDirectory.IsValidDomainAccountId)
|
||||||
.Select(id => id + "$");
|
.Select(id => id + "$");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return Database.Jobs
|
||||||
|
.Where(j => j.Device.DeviceDomainId != null && j.JobAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId))
|
||||||
|
.Select(j => j.Device.DeviceDomainId)
|
||||||
|
.Distinct()
|
||||||
|
.ToList()
|
||||||
|
.Where(ActiveDirectory.IsValidDomainAccountId)
|
||||||
|
.Select(id => id + "$");
|
||||||
|
}
|
||||||
case DocumentTemplate.DocumentTemplateScopes.User:
|
case DocumentTemplate.DocumentTemplateScopes.User:
|
||||||
|
if (Configuration.FilterBeginDate.HasValue)
|
||||||
|
{
|
||||||
|
return Database.Users
|
||||||
|
.Where(u => u.UserAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId && a.Timestamp >= Configuration.FilterBeginDate))
|
||||||
|
.SelectMany(u => u.DeviceUserAssignments.Where(dua => !dua.UnassignedDate.HasValue && dua.Device.DeviceDomainId != null), (u, dua) => dua.Device.DeviceDomainId)
|
||||||
|
.ToList()
|
||||||
|
.Where(ActiveDirectory.IsValidDomainAccountId)
|
||||||
|
.Select(id => id + "$");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
return Database.Users
|
return Database.Users
|
||||||
.Where(u => u.UserAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId))
|
.Where(u => u.UserAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId))
|
||||||
.SelectMany(u => u.DeviceUserAssignments.Where(dua => !dua.UnassignedDate.HasValue && dua.Device.DeviceDomainId != null), (u, dua) => dua.Device.DeviceDomainId)
|
.SelectMany(u => u.DeviceUserAssignments.Where(dua => !dua.UnassignedDate.HasValue && dua.Device.DeviceDomainId != null), (u, dua) => dua.Device.DeviceDomainId)
|
||||||
.ToList()
|
.ToList()
|
||||||
.Where(ActiveDirectory.IsValidDomainAccountId)
|
.Where(ActiveDirectory.IsValidDomainAccountId)
|
||||||
.Select(id => id + "$");
|
.Select(id => id + "$");
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
return Enumerable.Empty<string>();
|
return Enumerable.Empty<string>();
|
||||||
}
|
}
|
||||||
@@ -190,10 +223,22 @@ namespace Disco.Services.Documents.ManagedGroups
|
|||||||
#region Device Scope
|
#region Device Scope
|
||||||
private bool DeviceContainsAttachment(DiscoDataContext Database, string DeviceSerialNumber, out string DeviceAccountId)
|
private bool DeviceContainsAttachment(DiscoDataContext Database, string DeviceSerialNumber, out string DeviceAccountId)
|
||||||
{
|
{
|
||||||
var result = Database.Devices
|
Tuple<string, bool> result;
|
||||||
|
|
||||||
|
if (Configuration.FilterBeginDate.HasValue)
|
||||||
|
{
|
||||||
|
result = Database.Devices
|
||||||
.Where(d => d.SerialNumber == DeviceSerialNumber && d.DeviceDomainId != null)
|
.Where(d => d.SerialNumber == DeviceSerialNumber && d.DeviceDomainId != null)
|
||||||
.Select(d => new Tuple<string, bool>(d.DeviceDomainId, d.DeviceAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId)))
|
.Select(d => Tuple.Create(d.DeviceDomainId, d.DeviceAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId && a.Timestamp >= Configuration.FilterBeginDate)))
|
||||||
.FirstOrDefault();
|
.FirstOrDefault();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
result = Database.Devices
|
||||||
|
.Where(d => d.SerialNumber == DeviceSerialNumber && d.DeviceDomainId != null)
|
||||||
|
.Select(d => Tuple.Create(d.DeviceDomainId, d.DeviceAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId)))
|
||||||
|
.FirstOrDefault();
|
||||||
|
}
|
||||||
|
|
||||||
if (result == null)
|
if (result == null)
|
||||||
{
|
{
|
||||||
@@ -241,13 +286,29 @@ namespace Disco.Services.Documents.ManagedGroups
|
|||||||
#region Job Scope
|
#region Job Scope
|
||||||
private bool JobsContainAttachment(DiscoDataContext Database, int JobId, out string DeviceAccountId, out string DeviceSerialNumber)
|
private bool JobsContainAttachment(DiscoDataContext Database, int JobId, out string DeviceAccountId, out string DeviceSerialNumber)
|
||||||
{
|
{
|
||||||
var result = Database.Jobs
|
Tuple<string, string, bool> result;
|
||||||
|
|
||||||
|
if (Configuration.FilterBeginDate.HasValue)
|
||||||
|
{
|
||||||
|
result = Database.Jobs
|
||||||
.Where(j => j.Id == JobId && j.Device.DeviceDomainId != null)
|
.Where(j => j.Id == JobId && j.Device.DeviceDomainId != null)
|
||||||
.Select(j => new Tuple<string, string, bool>(
|
.Select(j => new Tuple<string, string, bool>(
|
||||||
j.Device.DeviceDomainId,
|
j.Device.DeviceDomainId,
|
||||||
j.Device.SerialNumber,
|
j.Device.SerialNumber,
|
||||||
j.Device.Jobs.Where(dj => !dj.ClosedDate.HasValue).Any(dj => dj.JobAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId)))
|
j.Device.Jobs.Any(dj => dj.JobAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId && a.Timestamp >= Configuration.FilterBeginDate))))
|
||||||
).FirstOrDefault();
|
.FirstOrDefault();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
result = Database.Jobs
|
||||||
|
.Where(j => j.Id == JobId && j.Device.DeviceDomainId != null)
|
||||||
|
.Select(j => new Tuple<string, string, bool>(
|
||||||
|
j.Device.DeviceDomainId,
|
||||||
|
j.Device.SerialNumber,
|
||||||
|
j.Device.Jobs.Any(dj => dj.JobAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId))))
|
||||||
|
.FirstOrDefault();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (result == null)
|
if (result == null)
|
||||||
{
|
{
|
||||||
@@ -304,14 +365,30 @@ namespace Disco.Services.Documents.ManagedGroups
|
|||||||
#region User Scope
|
#region User Scope
|
||||||
private bool DeviceUserContainAttachment(DiscoDataContext Database, string UserId, out List<Tuple<string, string>> Devices)
|
private bool DeviceUserContainAttachment(DiscoDataContext Database, string UserId, out List<Tuple<string, string>> Devices)
|
||||||
{
|
{
|
||||||
var result = Database.Users
|
Tuple<bool, IEnumerable<Tuple<string, string>>> result;
|
||||||
|
|
||||||
|
if (Configuration.FilterBeginDate.HasValue)
|
||||||
|
{
|
||||||
|
result = Database.Users
|
||||||
.Where(u => u.UserId == UserId)
|
.Where(u => u.UserId == UserId)
|
||||||
.Select(u => new Tuple<bool, IEnumerable<Tuple<string, string>>>(
|
.Select(u => Tuple.Create(
|
||||||
|
u.UserAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId && a.Timestamp >= Configuration.FilterBeginDate),
|
||||||
|
u.DeviceUserAssignments
|
||||||
|
.Where(dua => !dua.UnassignedDate.HasValue && dua.Device.DeviceDomainId != null)
|
||||||
|
.Select(dua => new Tuple<string, string>(dua.Device.DeviceDomainId, dua.Device.SerialNumber))))
|
||||||
|
.FirstOrDefault();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
result = Database.Users
|
||||||
|
.Where(u => u.UserId == UserId)
|
||||||
|
.Select(u => Tuple.Create(
|
||||||
u.UserAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId),
|
u.UserAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId),
|
||||||
u.DeviceUserAssignments
|
u.DeviceUserAssignments
|
||||||
.Where(dua => !dua.UnassignedDate.HasValue && dua.Device.DeviceDomainId != null)
|
.Where(dua => !dua.UnassignedDate.HasValue && dua.Device.DeviceDomainId != null)
|
||||||
.Select(dua => new Tuple<string, string>(dua.Device.DeviceDomainId, dua.Device.SerialNumber)))
|
.Select(dua => new Tuple<string, string>(dua.Device.DeviceDomainId, dua.Device.SerialNumber))))
|
||||||
).FirstOrDefault();
|
.FirstOrDefault();
|
||||||
|
}
|
||||||
|
|
||||||
if (result == null)
|
if (result == null)
|
||||||
{
|
{
|
||||||
@@ -376,9 +453,19 @@ namespace Disco.Services.Documents.ManagedGroups
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case DocumentTemplate.DocumentTemplateScopes.Job:
|
case DocumentTemplate.DocumentTemplateScopes.Job:
|
||||||
var jobsHaveTemplate = e.Database.Jobs
|
bool jobsHaveTemplate;
|
||||||
.Where(j => !j.ClosedDate.HasValue && j.DeviceSerialNumber == deviceSerialNumber)
|
if (Configuration.FilterBeginDate.HasValue)
|
||||||
|
{
|
||||||
|
jobsHaveTemplate = e.Database.Jobs
|
||||||
|
.Where(j => j.DeviceSerialNumber == deviceSerialNumber)
|
||||||
|
.Any(j => j.JobAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId && a.Timestamp >= Configuration.FilterBeginDate));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
jobsHaveTemplate = e.Database.Jobs
|
||||||
|
.Where(j => j.DeviceSerialNumber == deviceSerialNumber)
|
||||||
.Any(j => j.JobAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId));
|
.Any(j => j.JobAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId));
|
||||||
|
}
|
||||||
|
|
||||||
if (jobsHaveTemplate)
|
if (jobsHaveTemplate)
|
||||||
{
|
{
|
||||||
@@ -389,10 +476,21 @@ namespace Disco.Services.Documents.ManagedGroups
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case DocumentTemplate.DocumentTemplateScopes.User:
|
case DocumentTemplate.DocumentTemplateScopes.User:
|
||||||
var userHasTemplate = e.Database.Devices
|
bool userHasTemplate;
|
||||||
|
if (Configuration.FilterBeginDate.HasValue)
|
||||||
|
{
|
||||||
|
userHasTemplate = e.Database.Devices
|
||||||
|
.Where(d => d.SerialNumber == deviceSerialNumber)
|
||||||
|
.Select(d => d.AssignedUser)
|
||||||
|
.Any(u => u.UserAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId && a.Timestamp >= Configuration.FilterBeginDate));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
userHasTemplate = e.Database.Devices
|
||||||
.Where(d => d.SerialNumber == deviceSerialNumber)
|
.Where(d => d.SerialNumber == deviceSerialNumber)
|
||||||
.Select(d => d.AssignedUser)
|
.Select(d => d.AssignedUser)
|
||||||
.Any(u => u.UserAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId));
|
.Any(u => u.UserAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId));
|
||||||
|
}
|
||||||
|
|
||||||
if (userHasTemplate)
|
if (userHasTemplate)
|
||||||
{
|
{
|
||||||
@@ -407,30 +505,6 @@ namespace Disco.Services.Documents.ManagedGroups
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ProcessJobCloseRepositoryEvent(RepositoryMonitorEvent e)
|
|
||||||
{
|
|
||||||
var job = (Job)e.Entity;
|
|
||||||
|
|
||||||
if (job.DeviceSerialNumber != null)
|
|
||||||
{
|
|
||||||
var jobId = job.Id;
|
|
||||||
|
|
||||||
var relevantJob = e.Database.Jobs
|
|
||||||
.Where(j => j.Id == jobId && j.JobAttachments.Any(ja => ja.DocumentTemplateId == this.DocumentTemplateId))
|
|
||||||
.Any();
|
|
||||||
|
|
||||||
if (relevantJob)
|
|
||||||
{
|
|
||||||
string deviceAccountId;
|
|
||||||
string deviceSerialNumber;
|
|
||||||
if (JobsContainAttachment(e.Database, jobId, out deviceAccountId, out deviceSerialNumber))
|
|
||||||
AddMember(deviceSerialNumber, (database) => new string[] { deviceAccountId });
|
|
||||||
else
|
|
||||||
RemoveMember(deviceSerialNumber, (database) => new string[] { deviceAccountId });
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void ProcessDeviceAssignmentRepositoryEvent(RepositoryMonitorEvent Event)
|
private void ProcessDeviceAssignmentRepositoryEvent(RepositoryMonitorEvent Event)
|
||||||
{
|
{
|
||||||
var device = (Device)Event.Entity;
|
var device = (Device)Event.Entity;
|
||||||
@@ -448,14 +522,36 @@ namespace Disco.Services.Documents.ManagedGroups
|
|||||||
bool currentUserHasTemplate = false;
|
bool currentUserHasTemplate = false;
|
||||||
|
|
||||||
if (devicePreviousAssignedUserId != null)
|
if (devicePreviousAssignedUserId != null)
|
||||||
|
{
|
||||||
|
if (Configuration.FilterBeginDate.HasValue)
|
||||||
|
{
|
||||||
|
previousUserHasTemplate = e.Database.Users
|
||||||
|
.Where(u => u.UserId == devicePreviousAssignedUserId && u.UserAttachments.Any(ua => ua.DocumentTemplateId == this.DocumentTemplateId && ua.Timestamp >= Configuration.FilterBeginDate))
|
||||||
|
.Any();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
previousUserHasTemplate = e.Database.Users
|
previousUserHasTemplate = e.Database.Users
|
||||||
.Where(u => u.UserId == devicePreviousAssignedUserId && u.UserAttachments.Any(ua => ua.DocumentTemplateId == this.DocumentTemplateId))
|
.Where(u => u.UserId == devicePreviousAssignedUserId && u.UserAttachments.Any(ua => ua.DocumentTemplateId == this.DocumentTemplateId))
|
||||||
.Any();
|
.Any();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (deviceCurrentAssignedUserId != null)
|
if (deviceCurrentAssignedUserId != null)
|
||||||
|
{
|
||||||
|
if (Configuration.FilterBeginDate.HasValue)
|
||||||
|
{
|
||||||
|
currentUserHasTemplate = e.Database.Users
|
||||||
|
.Where(u => u.UserId == deviceCurrentAssignedUserId && u.UserAttachments.Any(ua => ua.DocumentTemplateId == this.DocumentTemplateId && ua.Timestamp >= Configuration.FilterBeginDate))
|
||||||
|
.Any();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
currentUserHasTemplate = e.Database.Users
|
currentUserHasTemplate = e.Database.Users
|
||||||
.Where(u => u.UserId == deviceCurrentAssignedUserId && u.UserAttachments.Any(ua => ua.DocumentTemplateId == this.DocumentTemplateId))
|
.Where(u => u.UserId == deviceCurrentAssignedUserId && u.UserAttachments.Any(ua => ua.DocumentTemplateId == this.DocumentTemplateId))
|
||||||
.Any();
|
.Any();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!previousUserHasTemplate && currentUserHasTemplate)
|
if (!previousUserHasTemplate && currentUserHasTemplate)
|
||||||
AddMember(deviceSerialNumber, (database) => new string[] { deviceAccountId + "$" });
|
AddMember(deviceSerialNumber, (database) => new string[] { deviceAccountId + "$" });
|
||||||
@@ -476,9 +572,6 @@ namespace Disco.Services.Documents.ManagedGroups
|
|||||||
if (deviceRenameRepositorySubscription != null)
|
if (deviceRenameRepositorySubscription != null)
|
||||||
deviceRenameRepositorySubscription.Dispose();
|
deviceRenameRepositorySubscription.Dispose();
|
||||||
|
|
||||||
if (jobCloseRepositorySubscription != null)
|
|
||||||
jobCloseRepositorySubscription.Dispose();
|
|
||||||
|
|
||||||
if (deviceAssignmentRepositorySubscription != null)
|
if (deviceAssignmentRepositorySubscription != null)
|
||||||
deviceAssignmentRepositorySubscription.Dispose();
|
deviceAssignmentRepositorySubscription.Dispose();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ namespace Disco.Services.Documents.ManagedGroups
|
|||||||
|
|
||||||
private IDisposable repositoryAddSubscription;
|
private IDisposable repositoryAddSubscription;
|
||||||
private IDisposable repositoryRemoveSubscription;
|
private IDisposable repositoryRemoveSubscription;
|
||||||
private IDisposable jobCloseRepositorySubscription;
|
|
||||||
private IDisposable deviceAssignmentRepositorySubscription;
|
private IDisposable deviceAssignmentRepositorySubscription;
|
||||||
private string DocumentTemplateId;
|
private string DocumentTemplateId;
|
||||||
private string DocumentTemplateDescription;
|
private string DocumentTemplateDescription;
|
||||||
@@ -64,9 +63,6 @@ namespace Disco.Services.Documents.ManagedGroups
|
|||||||
repositoryRemoveSubscription = DocumentTemplateManagedGroups.JobAttachmentRemoveEvents.Value
|
repositoryRemoveSubscription = DocumentTemplateManagedGroups.JobAttachmentRemoveEvents.Value
|
||||||
.Where(e => e.Item3 == DocumentTemplateId)
|
.Where(e => e.Item3 == DocumentTemplateId)
|
||||||
.Subscribe(ProcessJobAttachmentRemoveEvent);
|
.Subscribe(ProcessJobAttachmentRemoveEvent);
|
||||||
// Observe Job Close/Reopen
|
|
||||||
jobCloseRepositorySubscription = DocumentTemplateManagedGroups.JobCloseRepositoryEvents.Value
|
|
||||||
.Subscribe(ProcessJobCloseRepositoryEvent);
|
|
||||||
break;
|
break;
|
||||||
case DocumentTemplate.DocumentTemplateScopes.User:
|
case DocumentTemplate.DocumentTemplateScopes.User:
|
||||||
// Observe User Attachments
|
// Observe User Attachments
|
||||||
@@ -156,18 +152,46 @@ namespace Disco.Services.Documents.ManagedGroups
|
|||||||
switch (DocumentTemplateScope)
|
switch (DocumentTemplateScope)
|
||||||
{
|
{
|
||||||
case DocumentTemplate.DocumentTemplateScopes.Device:
|
case DocumentTemplate.DocumentTemplateScopes.Device:
|
||||||
|
if (Configuration.FilterBeginDate.HasValue)
|
||||||
|
{
|
||||||
|
return Database.Devices
|
||||||
|
.Where(d => d.AssignedUserId != null && d.DeviceAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId && a.Timestamp >= Configuration.FilterBeginDate))
|
||||||
|
.Select(d => d.AssignedUserId);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
return Database.Devices
|
return Database.Devices
|
||||||
.Where(d => d.AssignedUserId != null && d.DeviceAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId))
|
.Where(d => d.AssignedUserId != null && d.DeviceAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId))
|
||||||
.Select(d => d.AssignedUserId);
|
.Select(d => d.AssignedUserId);
|
||||||
|
}
|
||||||
case DocumentTemplate.DocumentTemplateScopes.Job:
|
case DocumentTemplate.DocumentTemplateScopes.Job:
|
||||||
|
if (Configuration.FilterBeginDate.HasValue)
|
||||||
|
{
|
||||||
return Database.Jobs
|
return Database.Jobs
|
||||||
.Where(j => !j.ClosedDate.HasValue && j.UserId != null && j.JobAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId))
|
.Where(j => j.UserId != null && j.JobAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId && a.Timestamp >= Configuration.FilterBeginDate))
|
||||||
.Select(j => j.UserId)
|
.Select(j => j.UserId)
|
||||||
.Distinct();
|
.Distinct();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return Database.Jobs
|
||||||
|
.Where(j => j.UserId != null && j.JobAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId))
|
||||||
|
.Select(j => j.UserId)
|
||||||
|
.Distinct();
|
||||||
|
}
|
||||||
case DocumentTemplate.DocumentTemplateScopes.User:
|
case DocumentTemplate.DocumentTemplateScopes.User:
|
||||||
|
if (Configuration.FilterBeginDate.HasValue)
|
||||||
|
{
|
||||||
|
return Database.Users
|
||||||
|
.Where(u => u.UserAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId && a.Timestamp >= Configuration.FilterBeginDate))
|
||||||
|
.Select(u => u.UserId);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
return Database.Users
|
return Database.Users
|
||||||
.Where(u => u.UserAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId))
|
.Where(u => u.UserAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId))
|
||||||
.Select(u => u.UserId);
|
.Select(u => u.UserId);
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
return Enumerable.Empty<string>();
|
return Enumerable.Empty<string>();
|
||||||
}
|
}
|
||||||
@@ -176,10 +200,26 @@ namespace Disco.Services.Documents.ManagedGroups
|
|||||||
#region Device Scope
|
#region Device Scope
|
||||||
private bool DeviceContainsAttachment(DiscoDataContext Database, string DeviceSerialNumber, out string UserId)
|
private bool DeviceContainsAttachment(DiscoDataContext Database, string DeviceSerialNumber, out string UserId)
|
||||||
{
|
{
|
||||||
var result = Database.Devices
|
Tuple<string, bool> result;
|
||||||
|
|
||||||
|
if (Configuration.FilterBeginDate.HasValue)
|
||||||
|
{
|
||||||
|
result = Database.Devices
|
||||||
.Where(d => d.SerialNumber == DeviceSerialNumber && d.AssignedUser != null)
|
.Where(d => d.SerialNumber == DeviceSerialNumber && d.AssignedUser != null)
|
||||||
.Select(d => new Tuple<string, bool>(d.AssignedUserId, d.DeviceAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId)))
|
.Select(d => Tuple.Create(
|
||||||
|
d.AssignedUserId,
|
||||||
|
d.DeviceAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId && a.Timestamp >= Configuration.FilterBeginDate)))
|
||||||
.FirstOrDefault();
|
.FirstOrDefault();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
result = Database.Devices
|
||||||
|
.Where(d => d.SerialNumber == DeviceSerialNumber && d.AssignedUser != null)
|
||||||
|
.Select(d => Tuple.Create(
|
||||||
|
d.AssignedUserId,
|
||||||
|
d.DeviceAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId)))
|
||||||
|
.FirstOrDefault();
|
||||||
|
}
|
||||||
|
|
||||||
if (result == null)
|
if (result == null)
|
||||||
{
|
{
|
||||||
@@ -222,12 +262,26 @@ namespace Disco.Services.Documents.ManagedGroups
|
|||||||
#region Job Scope
|
#region Job Scope
|
||||||
private bool JobsContainAttachment(DiscoDataContext Database, int JobId, out string UserId)
|
private bool JobsContainAttachment(DiscoDataContext Database, int JobId, out string UserId)
|
||||||
{
|
{
|
||||||
var result = Database.Jobs
|
Tuple<string, bool> result;
|
||||||
|
|
||||||
|
if (Configuration.FilterBeginDate.HasValue)
|
||||||
|
{
|
||||||
|
result = Database.Jobs
|
||||||
.Where(j => j.Id == JobId && j.UserId != null)
|
.Where(j => j.Id == JobId && j.UserId != null)
|
||||||
.Select(j => new Tuple<string, bool>(
|
.Select(j => Tuple.Create(
|
||||||
j.UserId,
|
j.UserId,
|
||||||
j.User.Jobs.Where(uj => !uj.ClosedDate.HasValue).Any(uj => uj.JobAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId)))
|
j.User.Jobs.Any(uj => uj.JobAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId && a.Timestamp >= Configuration.FilterBeginDate))))
|
||||||
).FirstOrDefault();
|
.FirstOrDefault();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
result = Database.Jobs
|
||||||
|
.Where(j => j.Id == JobId && j.UserId != null)
|
||||||
|
.Select(j => Tuple.Create(
|
||||||
|
j.UserId,
|
||||||
|
j.User.Jobs.Any(uj => uj.JobAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId))))
|
||||||
|
.FirstOrDefault();
|
||||||
|
}
|
||||||
|
|
||||||
if (result == null)
|
if (result == null)
|
||||||
{
|
{
|
||||||
@@ -270,11 +324,18 @@ namespace Disco.Services.Documents.ManagedGroups
|
|||||||
#region User Scope
|
#region User Scope
|
||||||
private bool UserContainAttachment(DiscoDataContext Database, string UserId)
|
private bool UserContainAttachment(DiscoDataContext Database, string UserId)
|
||||||
{
|
{
|
||||||
var result = Database.Users
|
if (Configuration.FilterBeginDate.HasValue)
|
||||||
|
{
|
||||||
|
return Database.Users
|
||||||
|
.Where(u => u.UserId == UserId)
|
||||||
|
.Any(u => u.UserAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId && a.Timestamp >= Configuration.FilterBeginDate));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return Database.Users
|
||||||
.Where(u => u.UserId == UserId)
|
.Where(u => u.UserId == UserId)
|
||||||
.Any(u => u.UserAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId));
|
.Any(u => u.UserAttachments.Any(a => a.DocumentTemplateId == this.DocumentTemplateId));
|
||||||
|
}
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ProcessUserAttachmentAddEvent(RepositoryMonitorEvent e)
|
private void ProcessUserAttachmentAddEvent(RepositoryMonitorEvent e)
|
||||||
@@ -299,37 +360,24 @@ namespace Disco.Services.Documents.ManagedGroups
|
|||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
private void ProcessJobCloseRepositoryEvent(RepositoryMonitorEvent e)
|
|
||||||
{
|
|
||||||
var job = (Job)e.Entity;
|
|
||||||
|
|
||||||
if (job.UserId != null)
|
|
||||||
{
|
|
||||||
var jobId = job.Id;
|
|
||||||
|
|
||||||
var relevantJob = e.Database.Jobs
|
|
||||||
.Where(j => j.Id == jobId && j.JobAttachments.Any(ja => ja.DocumentTemplateId == this.DocumentTemplateId))
|
|
||||||
.Any();
|
|
||||||
|
|
||||||
if (relevantJob)
|
|
||||||
{
|
|
||||||
string userId;
|
|
||||||
if (JobsContainAttachment(e.Database, jobId, out userId))
|
|
||||||
AddMember(userId, (database) => new string[] { userId });
|
|
||||||
else
|
|
||||||
RemoveMember(userId, (database) => new string[] { userId });
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void ProcessDeviceAssignmentRepositoryEvent(RepositoryMonitorEvent Event)
|
private void ProcessDeviceAssignmentRepositoryEvent(RepositoryMonitorEvent Event)
|
||||||
{
|
{
|
||||||
var device = (Device)Event.Entity;
|
var device = (Device)Event.Entity;
|
||||||
var deviceSerialNumber = device.SerialNumber;
|
var deviceSerialNumber = device.SerialNumber;
|
||||||
|
bool relevantDevice;
|
||||||
|
|
||||||
var relevantDevice = Event.Database.Devices
|
if (Configuration.FilterBeginDate.HasValue)
|
||||||
|
{
|
||||||
|
relevantDevice = Event.Database.Devices
|
||||||
|
.Where(d => d.SerialNumber == deviceSerialNumber && d.DeviceAttachments.Any(ja => ja.DocumentTemplateId == this.DocumentTemplateId && ja.Timestamp >= Configuration.FilterBeginDate))
|
||||||
|
.Any();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
relevantDevice = Event.Database.Devices
|
||||||
.Where(d => d.SerialNumber == deviceSerialNumber && d.DeviceAttachments.Any(ja => ja.DocumentTemplateId == this.DocumentTemplateId))
|
.Where(d => d.SerialNumber == deviceSerialNumber && d.DeviceAttachments.Any(ja => ja.DocumentTemplateId == this.DocumentTemplateId))
|
||||||
.Any();
|
.Any();
|
||||||
|
}
|
||||||
|
|
||||||
if (relevantDevice)
|
if (relevantDevice)
|
||||||
{
|
{
|
||||||
@@ -355,9 +403,6 @@ namespace Disco.Services.Documents.ManagedGroups
|
|||||||
if (repositoryRemoveSubscription != null)
|
if (repositoryRemoveSubscription != null)
|
||||||
repositoryRemoveSubscription.Dispose();
|
repositoryRemoveSubscription.Dispose();
|
||||||
|
|
||||||
if (jobCloseRepositorySubscription != null)
|
|
||||||
jobCloseRepositorySubscription.Dispose();
|
|
||||||
|
|
||||||
if (deviceAssignmentRepositorySubscription != null)
|
if (deviceAssignmentRepositorySubscription != null)
|
||||||
deviceAssignmentRepositorySubscription.Dispose();
|
deviceAssignmentRepositorySubscription.Dispose();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ namespace Disco.Services.Users.UserFlags
|
|||||||
public override string Description { get { return string.Format(DescriptionFormat, UserFlagName); } }
|
public override string Description { get { return string.Format(DescriptionFormat, UserFlagName); } }
|
||||||
public override string CategoryDescription { get { return CategoryDescriptionFormat; } }
|
public override string CategoryDescription { get { return CategoryDescriptionFormat; } }
|
||||||
public override string GroupDescription { get { return string.Format(GroupDescriptionFormat, UserFlagName); } }
|
public override string GroupDescription { get { return string.Format(GroupDescriptionFormat, UserFlagName); } }
|
||||||
public override bool IncludeFilterBeginDate { get { return false; } }
|
public override bool IncludeFilterBeginDate { get { return true; } }
|
||||||
|
|
||||||
private UserFlagUserDevicesManagedGroup(string Key, ADManagedGroupConfiguration Configuration, UserFlag UserFlag)
|
private UserFlagUserDevicesManagedGroup(string Key, ADManagedGroupConfiguration Configuration, UserFlag UserFlag)
|
||||||
: base(Key, Configuration)
|
: base(Key, Configuration)
|
||||||
@@ -105,7 +105,27 @@ namespace Disco.Services.Users.UserFlags
|
|||||||
|
|
||||||
private IEnumerable<string> DetermineDeviceMembers(DiscoDataContext Database, string UserId)
|
private IEnumerable<string> DetermineDeviceMembers(DiscoDataContext Database, string UserId)
|
||||||
{
|
{
|
||||||
return DetermineDeviceMembers(Database.Users.Where(u => u.UserId == UserId));
|
IQueryable<User> assignments;
|
||||||
|
|
||||||
|
if (Configuration.FilterBeginDate.HasValue)
|
||||||
|
{
|
||||||
|
assignments = Database.Users
|
||||||
|
.Where(u => u.UserId == UserId &&
|
||||||
|
u.UserFlagAssignments
|
||||||
|
.Any(a => a.UserFlagId == UserFlagId &&
|
||||||
|
!a.RemovedDate.HasValue &&
|
||||||
|
a.AddedDate >= Configuration.FilterBeginDate));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
assignments = Database.Users
|
||||||
|
.Where(u => u.UserId == UserId &&
|
||||||
|
u.UserFlagAssignments
|
||||||
|
.Any(a => a.UserFlagId == UserFlagId &&
|
||||||
|
!a.RemovedDate.HasValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
return DetermineDeviceMembers(assignments);
|
||||||
}
|
}
|
||||||
|
|
||||||
private IEnumerable<string> DetermineDeviceMembers(IQueryable<User> Users)
|
private IEnumerable<string> DetermineDeviceMembers(IQueryable<User> Users)
|
||||||
@@ -121,38 +141,85 @@ namespace Disco.Services.Users.UserFlags
|
|||||||
|
|
||||||
public override IEnumerable<string> DetermineMembers(DiscoDataContext Database)
|
public override IEnumerable<string> DetermineMembers(DiscoDataContext Database)
|
||||||
{
|
{
|
||||||
var assignments = Database.UserFlagAssignments
|
IQueryable<User> assignments;
|
||||||
.Where(a => a.UserFlagId == UserFlagId && !a.RemovedDate.HasValue)
|
|
||||||
|
if (Configuration.FilterBeginDate.HasValue)
|
||||||
|
{
|
||||||
|
assignments = Database.UserFlagAssignments
|
||||||
|
.Where(a => a.UserFlagId == UserFlagId &&
|
||||||
|
!a.RemovedDate.HasValue &&
|
||||||
|
a.AddedDate >= Configuration.FilterBeginDate)
|
||||||
.Select(a => a.User);
|
.Select(a => a.User);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
assignments = Database.UserFlagAssignments
|
||||||
|
.Where(a => a.UserFlagId == UserFlagId &&
|
||||||
|
!a.RemovedDate.HasValue)
|
||||||
|
.Select(a => a.User);
|
||||||
|
}
|
||||||
|
|
||||||
return DetermineDeviceMembers(assignments);
|
return DetermineDeviceMembers(assignments);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ProcessRepositoryEvent(RepositoryMonitorEvent Event)
|
private void ProcessRepositoryEvent(RepositoryMonitorEvent Event)
|
||||||
{
|
{
|
||||||
var userFlagAssignemnt = (UserFlagAssignment)Event.Entity;
|
var userFlagAssignment = (UserFlagAssignment)Event.Entity;
|
||||||
string userId = userFlagAssignemnt.UserId;
|
string userId = userFlagAssignment.UserId;
|
||||||
|
|
||||||
switch (Event.EventType)
|
switch (Event.EventType)
|
||||||
{
|
{
|
||||||
case RepositoryMonitorEventType.Added:
|
case RepositoryMonitorEventType.Added:
|
||||||
if (!userFlagAssignemnt.RemovedDate.HasValue)
|
if (Configuration.FilterBeginDate.HasValue)
|
||||||
AddMember(userFlagAssignemnt.UserId, (database) => DetermineDeviceMembers(database, userId));
|
{
|
||||||
|
if (!userFlagAssignment.RemovedDate.HasValue && userFlagAssignment.AddedDate >= Configuration.FilterBeginDate)
|
||||||
|
{
|
||||||
|
AddMember(userFlagAssignment.UserId, (database) => DetermineDeviceMembers(database, userId));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (!userFlagAssignment.RemovedDate.HasValue)
|
||||||
|
{
|
||||||
|
AddMember(userFlagAssignment.UserId, (database) => DetermineDeviceMembers(database, userId));
|
||||||
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case RepositoryMonitorEventType.Modified:
|
case RepositoryMonitorEventType.Modified:
|
||||||
if (userFlagAssignemnt.RemovedDate.HasValue)
|
if (!Configuration.FilterBeginDate.HasValue || userFlagAssignment.AddedDate >= Configuration.FilterBeginDate)
|
||||||
RemoveMember(userFlagAssignemnt.UserId, (database) => DetermineDeviceMembers(database, userId));
|
{
|
||||||
|
if (userFlagAssignment.RemovedDate.HasValue)
|
||||||
|
RemoveMember(userFlagAssignment.UserId, (database) => DetermineDeviceMembers(database, userId));
|
||||||
else
|
else
|
||||||
AddMember(userFlagAssignemnt.UserId, (database) => DetermineDeviceMembers(database, userId));
|
AddMember(userFlagAssignment.UserId, (database) => DetermineDeviceMembers(database, userId));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case RepositoryMonitorEventType.Deleted:
|
case RepositoryMonitorEventType.Deleted:
|
||||||
// Remove the user's devices if no other (non-removed) assignments exist.
|
// Remove the user's devices if no other (non-removed) assignments exist.
|
||||||
RemoveMember(userId, (database) =>
|
RemoveMember(userId, (database) =>
|
||||||
{
|
{
|
||||||
if (database.UserFlagAssignments.Any(a => a.UserFlagId == UserFlagId && a.UserId == userId && !a.RemovedDate.HasValue))
|
if (Configuration.FilterBeginDate.HasValue)
|
||||||
|
{
|
||||||
|
if (database.UserFlagAssignments.Any(a => a.UserFlagId == UserFlagId && a.UserId == userId && !a.RemovedDate.HasValue && a.AddedDate >= Configuration.FilterBeginDate))
|
||||||
|
{
|
||||||
return null;
|
return null;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
return DetermineDeviceMembers(database, userId);
|
return DetermineDeviceMembers(database, userId);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (database.UserFlagAssignments.Any(a => a.UserFlagId == UserFlagId && a.UserId == userId && !a.RemovedDate.HasValue))
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return DetermineDeviceMembers(database, userId);
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ namespace Disco.Services.Users.UserFlags
|
|||||||
public override string Description { get { return string.Format(DescriptionFormat, UserFlagName); } }
|
public override string Description { get { return string.Format(DescriptionFormat, UserFlagName); } }
|
||||||
public override string CategoryDescription { get { return CategoryDescriptionFormat; } }
|
public override string CategoryDescription { get { return CategoryDescriptionFormat; } }
|
||||||
public override string GroupDescription { get { return string.Format(GroupDescriptionFormat, UserFlagName); } }
|
public override string GroupDescription { get { return string.Format(GroupDescriptionFormat, UserFlagName); } }
|
||||||
public override bool IncludeFilterBeginDate { get { return false; } }
|
public override bool IncludeFilterBeginDate { get { return true; } }
|
||||||
|
|
||||||
private UserFlagUsersManagedGroup(string Key, ADManagedGroupConfiguration Configuration, UserFlag UserFlag)
|
private UserFlagUsersManagedGroup(string Key, ADManagedGroupConfiguration Configuration, UserFlag UserFlag)
|
||||||
: base(Key, Configuration)
|
: base(Key, Configuration)
|
||||||
@@ -104,37 +104,97 @@ namespace Disco.Services.Users.UserFlags
|
|||||||
}
|
}
|
||||||
|
|
||||||
public override IEnumerable<string> DetermineMembers(DiscoDataContext Database)
|
public override IEnumerable<string> DetermineMembers(DiscoDataContext Database)
|
||||||
|
{
|
||||||
|
if (Configuration.FilterBeginDate.HasValue)
|
||||||
|
{
|
||||||
|
return Database.UserFlagAssignments
|
||||||
|
.Where(a => a.UserFlagId == UserFlagId && !a.RemovedDate.HasValue && a.AddedDate >= Configuration.FilterBeginDate)
|
||||||
|
.Select(a => a.UserId);
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
return Database.UserFlagAssignments
|
return Database.UserFlagAssignments
|
||||||
.Where(a => a.UserFlagId == UserFlagId && !a.RemovedDate.HasValue)
|
.Where(a => a.UserFlagId == UserFlagId && !a.RemovedDate.HasValue)
|
||||||
.Select(a => a.UserId);
|
.Select(a => a.UserId);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void ProcessRepositoryEvent(RepositoryMonitorEvent Event)
|
private void ProcessRepositoryEvent(RepositoryMonitorEvent Event)
|
||||||
{
|
{
|
||||||
var userFlagAssignemnt = (UserFlagAssignment)Event.Entity;
|
var userFlagAssignment = (UserFlagAssignment)Event.Entity;
|
||||||
|
|
||||||
switch (Event.EventType)
|
switch (Event.EventType)
|
||||||
{
|
{
|
||||||
case RepositoryMonitorEventType.Added:
|
case RepositoryMonitorEventType.Added:
|
||||||
if (!userFlagAssignemnt.RemovedDate.HasValue)
|
if (Configuration.FilterBeginDate.HasValue)
|
||||||
AddMember(userFlagAssignemnt.UserId);
|
{
|
||||||
|
if (!userFlagAssignment.RemovedDate.HasValue && userFlagAssignment.AddedDate >= Configuration.FilterBeginDate)
|
||||||
|
{
|
||||||
|
AddMember(userFlagAssignment.UserId);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (!userFlagAssignment.RemovedDate.HasValue)
|
||||||
|
{
|
||||||
|
AddMember(userFlagAssignment.UserId);
|
||||||
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case RepositoryMonitorEventType.Modified:
|
case RepositoryMonitorEventType.Modified:
|
||||||
if (userFlagAssignemnt.RemovedDate.HasValue)
|
if (Configuration.FilterBeginDate.HasValue)
|
||||||
RemoveMember(userFlagAssignemnt.UserId);
|
{
|
||||||
|
if (userFlagAssignment.AddedDate >= Configuration.FilterBeginDate)
|
||||||
|
{
|
||||||
|
if (userFlagAssignment.RemovedDate.HasValue)
|
||||||
|
{
|
||||||
|
RemoveMember(userFlagAssignment.UserId);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
AddMember(userFlagAssignemnt.UserId);
|
{
|
||||||
|
AddMember(userFlagAssignment.UserId);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (userFlagAssignment.RemovedDate.HasValue)
|
||||||
|
{
|
||||||
|
RemoveMember(userFlagAssignment.UserId);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
AddMember(userFlagAssignment.UserId);
|
||||||
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case RepositoryMonitorEventType.Deleted:
|
case RepositoryMonitorEventType.Deleted:
|
||||||
string userId = userFlagAssignemnt.UserId;
|
string userId = userFlagAssignment.UserId;
|
||||||
// Remove the user if no other (non-removed) assignments exist.
|
// Remove the user if no other (non-removed) assignments exist.
|
||||||
RemoveMember(userId, (database) =>
|
RemoveMember(userId, (database) =>
|
||||||
{
|
{
|
||||||
if (database.UserFlagAssignments.Any(a => a.UserFlagId == UserFlagId && a.UserId == userId && !a.RemovedDate.HasValue))
|
if (Configuration.FilterBeginDate.HasValue)
|
||||||
|
{
|
||||||
|
if (database.UserFlagAssignments.Any(a => a.UserFlagId == UserFlagId && a.UserId == userId && !a.RemovedDate.HasValue && a.AddedDate >= Configuration.FilterBeginDate))
|
||||||
|
{
|
||||||
return null;
|
return null;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
return new string[] { userId };
|
return new string[] { userId };
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (database.UserFlagAssignments.Any(a => a.UserFlagId == UserFlagId && a.UserId == userId && !a.RemovedDate.HasValue))
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return new string[] { userId };
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using Disco.Models.Repository;
|
using Disco.Models.Repository;
|
||||||
using Disco.Models.Services.Interop.ActiveDirectory;
|
|
||||||
using Disco.Services.Authorization;
|
using Disco.Services.Authorization;
|
||||||
using Disco.Services.Interop.ActiveDirectory;
|
using Disco.Services.Interop.ActiveDirectory;
|
||||||
using Disco.Services.Tasks;
|
using Disco.Services.Tasks;
|
||||||
@@ -17,8 +16,6 @@ namespace Disco.Web.Areas.API.Controllers
|
|||||||
const string pDescription = "description";
|
const string pDescription = "description";
|
||||||
const string pIcon = "icon";
|
const string pIcon = "icon";
|
||||||
const string pIconColour = "iconcolour";
|
const string pIconColour = "iconcolour";
|
||||||
const string pAssignedUsersLinkedGroup = "assigneduserslinkedgroup";
|
|
||||||
const string pAssignedUserDevicesLinkedGroup = "assigneduserdeviceslinkedgroup";
|
|
||||||
|
|
||||||
[DiscoAuthorize(Claims.Config.UserFlag.Configure)]
|
[DiscoAuthorize(Claims.Config.UserFlag.Configure)]
|
||||||
public virtual ActionResult Update(int id, string key, string value = null, Nullable<bool> redirect = null)
|
public virtual ActionResult Update(int id, string key, string value = null, Nullable<bool> redirect = null)
|
||||||
@@ -48,12 +45,6 @@ namespace Disco.Web.Areas.API.Controllers
|
|||||||
case pIconColour:
|
case pIconColour:
|
||||||
UpdateIconColour(flag, value);
|
UpdateIconColour(flag, value);
|
||||||
break;
|
break;
|
||||||
case pAssignedUsersLinkedGroup:
|
|
||||||
UpdateAssignedUsersLinkedGroup(flag, value);
|
|
||||||
break;
|
|
||||||
case pAssignedUserDevicesLinkedGroup:
|
|
||||||
UpdateAssignedUserDevicesLinkedGroup(flag, value);
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
throw new Exception("Invalid Update Key");
|
throw new Exception("Invalid Update Key");
|
||||||
}
|
}
|
||||||
@@ -132,7 +123,7 @@ namespace Disco.Web.Areas.API.Controllers
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
[DiscoAuthorize(Claims.Config.UserFlag.Configure)]
|
[DiscoAuthorize(Claims.Config.UserFlag.Configure)]
|
||||||
public virtual ActionResult UpdateAssignedUsersLinkedGroup(int id, string GroupId = null, bool redirect = false)
|
public virtual ActionResult UpdateAssignedUsersLinkedGroup(int id, string GroupId = null, DateTime? FilterBeginDate = null, bool redirect = false)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -144,7 +135,7 @@ namespace Disco.Web.Areas.API.Controllers
|
|||||||
throw new ArgumentException("Invalid User Flag Id", "id");
|
throw new ArgumentException("Invalid User Flag Id", "id");
|
||||||
|
|
||||||
|
|
||||||
var syncTaskStatus = UpdateAssignedUsersLinkedGroup(UserFlag, GroupId);
|
var syncTaskStatus = UpdateAssignedUsersLinkedGroup(UserFlag, GroupId, FilterBeginDate);
|
||||||
if (redirect)
|
if (redirect)
|
||||||
if (syncTaskStatus == null)
|
if (syncTaskStatus == null)
|
||||||
return RedirectToAction(MVC.Config.UserFlag.Index(UserFlag.Id));
|
return RedirectToAction(MVC.Config.UserFlag.Index(UserFlag.Id));
|
||||||
@@ -165,7 +156,7 @@ namespace Disco.Web.Areas.API.Controllers
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
[DiscoAuthorize(Claims.Config.UserFlag.Configure)]
|
[DiscoAuthorize(Claims.Config.UserFlag.Configure)]
|
||||||
public virtual ActionResult UpdateAssignedUserDevicesLinkedGroup(int id, string GroupId = null, bool redirect = false)
|
public virtual ActionResult UpdateAssignedUserDevicesLinkedGroup(int id, string GroupId = null, DateTime? FilterBeginDate = null, bool redirect = false)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -177,7 +168,7 @@ namespace Disco.Web.Areas.API.Controllers
|
|||||||
throw new ArgumentException("Invalid User Flag Id", "id");
|
throw new ArgumentException("Invalid User Flag Id", "id");
|
||||||
|
|
||||||
|
|
||||||
var syncTaskStatus = UpdateAssignedUserDevicesLinkedGroup(UserFlag, GroupId);
|
var syncTaskStatus = UpdateAssignedUserDevicesLinkedGroup(UserFlag, GroupId, FilterBeginDate);
|
||||||
if (redirect)
|
if (redirect)
|
||||||
if (syncTaskStatus == null)
|
if (syncTaskStatus == null)
|
||||||
return RedirectToAction(MVC.Config.UserFlag.Index(UserFlag.Id));
|
return RedirectToAction(MVC.Config.UserFlag.Index(UserFlag.Id));
|
||||||
@@ -256,9 +247,9 @@ namespace Disco.Web.Areas.API.Controllers
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private ScheduledTaskStatus UpdateAssignedUsersLinkedGroup(UserFlag UserFlag, string AssignedUsersLinkedGroup)
|
private ScheduledTaskStatus UpdateAssignedUsersLinkedGroup(UserFlag UserFlag, string AssignedUsersLinkedGroup, DateTime? FilterBeginDate)
|
||||||
{
|
{
|
||||||
var configJson = ADManagedGroup.ValidConfigurationToJson(UserFlagUsersManagedGroup.GetKey(UserFlag), AssignedUsersLinkedGroup, null);
|
var configJson = ADManagedGroup.ValidConfigurationToJson(UserFlagUsersManagedGroup.GetKey(UserFlag), AssignedUsersLinkedGroup, FilterBeginDate);
|
||||||
|
|
||||||
if (UserFlag.UsersLinkedGroup != configJson)
|
if (UserFlag.UsersLinkedGroup != configJson)
|
||||||
{
|
{
|
||||||
@@ -278,9 +269,9 @@ namespace Disco.Web.Areas.API.Controllers
|
|||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
private ScheduledTaskStatus UpdateAssignedUserDevicesLinkedGroup(UserFlag UserFlag, string AssignedUserDevicesLinkedGroup)
|
private ScheduledTaskStatus UpdateAssignedUserDevicesLinkedGroup(UserFlag UserFlag, string AssignedUserDevicesLinkedGroup, DateTime? FilterBeginDate)
|
||||||
{
|
{
|
||||||
var configJson = ADManagedGroup.ValidConfigurationToJson(UserFlagUserDevicesManagedGroup.GetKey(UserFlag), AssignedUserDevicesLinkedGroup, null);
|
var configJson = ADManagedGroup.ValidConfigurationToJson(UserFlagUserDevicesManagedGroup.GetKey(UserFlag), AssignedUserDevicesLinkedGroup, FilterBeginDate);
|
||||||
|
|
||||||
if (UserFlag.UserDevicesLinkedGroup != configJson)
|
if (UserFlag.UserDevicesLinkedGroup != configJson)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,5 +12,6 @@ namespace Disco.Web.Areas.Config.Models.Shared
|
|||||||
public string UpdateUrl { get; set; }
|
public string UpdateUrl { get; set; }
|
||||||
|
|
||||||
public ADManagedGroup ManagedGroup { get; set; }
|
public ADManagedGroup ManagedGroup { get; set; }
|
||||||
|
public bool IncludeFilterBeginDate { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -212,7 +212,7 @@
|
|||||||
{
|
{
|
||||||
<hr />
|
<hr />
|
||||||
<h4>Job Type Filters:</h4>
|
<h4>Job Type Filters:</h4>
|
||||||
<div id="Config_DocumentTemplates_JobSubTypes" @(Model.DocumentTemplate.Scope != DocumentTemplate.DocumentTemplateScopes.Job ? "style=\"display: none;\" " : null)>
|
<div id="Config_DocumentTemplates_JobSubTypes" @(Model.DocumentTemplate.Scope !=DocumentTemplate.DocumentTemplateScopes.Job ? "style=\" display none;\" " : null)>
|
||||||
<div>
|
<div>
|
||||||
@if (Model.DocumentTemplate.JobSubTypes.Count > 0)
|
@if (Model.DocumentTemplate.JobSubTypes.Count > 0)
|
||||||
{
|
{
|
||||||
@@ -635,6 +635,7 @@
|
|||||||
CategoryDescription = DocumentTemplateUsersManagedGroup.GetCategoryDescription(Model.DocumentTemplate),
|
CategoryDescription = DocumentTemplateUsersManagedGroup.GetCategoryDescription(Model.DocumentTemplate),
|
||||||
Description = DocumentTemplateUsersManagedGroup.GetDescription(Model.DocumentTemplate),
|
Description = DocumentTemplateUsersManagedGroup.GetDescription(Model.DocumentTemplate),
|
||||||
ManagedGroup = Model.UsersLinkedGroup,
|
ManagedGroup = Model.UsersLinkedGroup,
|
||||||
|
IncludeFilterBeginDate = true,
|
||||||
UpdateUrl = Url.Action(MVC.API.DocumentTemplate.UpdateUsersLinkedGroup(Model.DocumentTemplate.Id, redirect: true))
|
UpdateUrl = Url.Action(MVC.API.DocumentTemplate.UpdateUsersLinkedGroup(Model.DocumentTemplate.Id, redirect: true))
|
||||||
})
|
})
|
||||||
@Html.Partial(MVC.Config.Shared.Views.LinkedGroupInstance, new LinkedGroupModel()
|
@Html.Partial(MVC.Config.Shared.Views.LinkedGroupInstance, new LinkedGroupModel()
|
||||||
@@ -643,6 +644,7 @@
|
|||||||
CategoryDescription = DocumentTemplateDevicesManagedGroup.GetCategoryDescription(Model.DocumentTemplate),
|
CategoryDescription = DocumentTemplateDevicesManagedGroup.GetCategoryDescription(Model.DocumentTemplate),
|
||||||
Description = DocumentTemplateDevicesManagedGroup.GetDescription(Model.DocumentTemplate),
|
Description = DocumentTemplateDevicesManagedGroup.GetDescription(Model.DocumentTemplate),
|
||||||
ManagedGroup = Model.DevicesLinkedGroup,
|
ManagedGroup = Model.DevicesLinkedGroup,
|
||||||
|
IncludeFilterBeginDate = true,
|
||||||
UpdateUrl = Url.Action(MVC.API.DocumentTemplate.UpdateDevicesLinkedGroup(Model.DocumentTemplate.Id, redirect: true))
|
UpdateUrl = Url.Action(MVC.API.DocumentTemplate.UpdateDevicesLinkedGroup(Model.DocumentTemplate.Id, redirect: true))
|
||||||
})
|
})
|
||||||
@if (canConfig)
|
@if (canConfig)
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ WriteLiteral("\r\n<div");
|
|||||||
|
|
||||||
WriteLiteral(" id=\"Config_DocumentTemplates_Show\"");
|
WriteLiteral(" id=\"Config_DocumentTemplates_Show\"");
|
||||||
|
|
||||||
WriteAttribute("class", Tuple.Create(" class=\"", 2024), Tuple.Create("\"", 2078)
|
WriteAttribute("class", Tuple.Create(" class=\"", 2024), Tuple.Create("\"", 2079)
|
||||||
|
|
||||||
#line 46 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 46 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
, Tuple.Create(Tuple.Create("", 2032), Tuple.Create<System.Object, System.Int32>(hideAdvanced ? " Config_HideAdvanced" : null
|
, Tuple.Create(Tuple.Create("", 2032), Tuple.Create<System.Object, System.Int32>(hideAdvanced ? " Config_HideAdvanced" : null
|
||||||
@@ -239,8 +239,7 @@ WriteLiteral(@">
|
|||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
WriteLiteral("\',\r\n \'Description\'\r\n " +
|
WriteLiteral("\',\r\n \'Description\'\r\n " +
|
||||||
" );\r\n });\r\n " +
|
" );\r\n });\r\n </script>\r\n");
|
||||||
" </script>\r\n");
|
|
||||||
|
|
||||||
|
|
||||||
#line 86 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 86 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
@@ -460,23 +459,23 @@ WriteLiteral("></i>This template is generated from ");
|
|||||||
#line hidden
|
#line hidden
|
||||||
WriteLiteral("s. Any expressions within the Template PDF will be evaluated within the <a");
|
WriteLiteral("s. Any expressions within the Template PDF will be evaluated within the <a");
|
||||||
|
|
||||||
WriteAttribute("href", Tuple.Create(" href=\"", 6999), Tuple.Create("\"", 7105)
|
WriteAttribute("href", Tuple.Create(" href=\"", 6865), Tuple.Create("\"", 6971)
|
||||||
|
|
||||||
#line 143 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 143 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
, Tuple.Create(Tuple.Create("", 7006), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.Config.DocumentTemplate.ExpressionBrowser())
|
, Tuple.Create(Tuple.Create("", 6872), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.Config.DocumentTemplate.ExpressionBrowser())
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
, 7006), false)
|
, 6872), false)
|
||||||
, Tuple.Create(Tuple.Create("", 7068), Tuple.Create("#", 7068), true)
|
, Tuple.Create(Tuple.Create("", 6934), Tuple.Create("#", 6934), true)
|
||||||
|
|
||||||
#line 143 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 143 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
, Tuple.Create(Tuple.Create("", 7069), Tuple.Create<System.Object, System.Int32>(Model.DocumentTemplate.Scope
|
, Tuple.Create(Tuple.Create("", 6935), Tuple.Create<System.Object, System.Int32>(Model.DocumentTemplate.Scope
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
, 7069), false)
|
, 6935), false)
|
||||||
, Tuple.Create(Tuple.Create("", 7100), Tuple.Create("Scope", 7100), true)
|
, Tuple.Create(Tuple.Create("", 6966), Tuple.Create("Scope", 6966), true)
|
||||||
);
|
);
|
||||||
|
|
||||||
WriteLiteral(">");
|
WriteLiteral(">");
|
||||||
@@ -567,24 +566,24 @@ WriteLiteral(">\r\n");
|
|||||||
#line hidden
|
#line hidden
|
||||||
WriteLiteral(" <option");
|
WriteLiteral(" <option");
|
||||||
|
|
||||||
WriteAttribute("value", Tuple.Create(" value=\"", 8217), Tuple.Create("\"", 8231)
|
WriteAttribute("value", Tuple.Create(" value=\"", 8031), Tuple.Create("\"", 8045)
|
||||||
|
|
||||||
#line 159 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 159 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
, Tuple.Create(Tuple.Create("", 8225), Tuple.Create<System.Object, System.Int32>(scope
|
, Tuple.Create(Tuple.Create("", 8039), Tuple.Create<System.Object, System.Int32>(scope
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
, 8225), false)
|
, 8039), false)
|
||||||
);
|
);
|
||||||
|
|
||||||
WriteAttribute("selected", Tuple.Create(" selected=\"", 8232), Tuple.Create("\"", 8303)
|
WriteAttribute("selected", Tuple.Create(" selected=\"", 8046), Tuple.Create("\"", 8118)
|
||||||
|
|
||||||
#line 159 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 159 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
, Tuple.Create(Tuple.Create("", 8243), Tuple.Create<System.Object, System.Int32>(scope == Model.DocumentTemplate.Scope ? "selected" : null
|
, Tuple.Create(Tuple.Create("", 8057), Tuple.Create<System.Object, System.Int32>(scope == Model.DocumentTemplate.Scope ? " selected" : null
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
, 8243), false)
|
, 8057), false)
|
||||||
);
|
);
|
||||||
|
|
||||||
WriteLiteral(">");
|
WriteLiteral(">");
|
||||||
@@ -605,8 +604,7 @@ WriteLiteral("</option>\r\n");
|
|||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
WriteLiteral(" </select>\r\n " +
|
WriteLiteral(" </select>\r\n </div>\r\n");
|
||||||
" </div>\r\n");
|
|
||||||
|
|
||||||
|
|
||||||
#line 163 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 163 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
@@ -628,8 +626,8 @@ WriteLiteral(">\r\n <i");
|
|||||||
WriteLiteral(" class=\"fa fa-info-circle\"");
|
WriteLiteral(" class=\"fa fa-info-circle\"");
|
||||||
|
|
||||||
WriteLiteral("></i>Expressions within the Template PDF may need to be updated to reflect any ch" +
|
WriteLiteral("></i>Expressions within the Template PDF may need to be updated to reflect any ch" +
|
||||||
"anges to the Document Template Scope.\r\n </p>\r" +
|
"anges to the Document Template Scope.\r\n </p>\r\n " +
|
||||||
"\n </div>\r\n");
|
" </div>\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 169 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 169 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
@@ -675,29 +673,28 @@ WriteLiteral(" <script");
|
|||||||
|
|
||||||
WriteLiteral(" type=\"text/javascript\"");
|
WriteLiteral(" type=\"text/javascript\"");
|
||||||
|
|
||||||
WriteLiteral(">\r\n $(function () {\r\n " +
|
WriteLiteral(">\r\n $(function () {\r\n v" +
|
||||||
" var dialog;\r\n\r\n function showDialog() " +
|
"ar dialog;\r\n\r\n function showDialog() {\r\n " +
|
||||||
"{\r\n if (dialog == null) {\r\n " +
|
" if (dialog == null) {\r\n " +
|
||||||
" dialog = $(\'#Config_DocumentTemplates_Scope_Dialog" +
|
" dialog = $(\'#Config_DocumentTemplates_Scope_Dialog\').dialog({\r\n " +
|
||||||
"\').dialog({\r\n width: 400,\r\n " +
|
" width: 400,\r\n " +
|
||||||
" resizable: false,\r\n " +
|
" resizable: false,\r\n mod" +
|
||||||
" modal: true,\r\n " +
|
"al: true,\r\n autoOpen: false,\r\n " +
|
||||||
" autoOpen: false,\r\n but" +
|
" buttons: {\r\n " +
|
||||||
"tons: {\r\n \'Save Changes\': fun" +
|
" \'Save Changes\': function () {\r\n " +
|
||||||
"ction () {\r\n dialog.dialo" +
|
" dialog.dialog(\'option\', \'buttons\', null);\r\n " +
|
||||||
"g(\'option\', \'buttons\', null);\r\n " +
|
|
||||||
" dialog.dialog(\'disable\');\r\n " +
|
" dialog.dialog(\'disable\');\r\n " +
|
||||||
" $(\'#Config_DocumentTemplates_Scope_Scope\').closest(\'form\').submit();\r\n" +
|
" $(\'#Config_DocumentTemplates_Scope_Scope\').clo" +
|
||||||
" },\r\n " +
|
"sest(\'form\').submit();\r\n },\r\n " +
|
||||||
" \'Cancel\': function () {\r\n " +
|
" \'Cancel\': function () {\r\n " +
|
||||||
" dialog.dialog(\'close\');\r\n " +
|
" dialog.dialog(\'close\');\r\n " +
|
||||||
" }\r\n }\r\n" +
|
" }\r\n " +
|
||||||
" });\r\n " +
|
" }\r\n });\r\n " +
|
||||||
" }\r\n\r\n dialog.dialog(\'open\');\r\n\r\n " +
|
" }\r\n\r\n dialog.dialog(\'open\');\r\n\r\n " +
|
||||||
" return false;\r\n " +
|
" return false;\r\n }\r\n\r\n" +
|
||||||
" }\r\n\r\n $(\'#Config_DocumentTemplates" +
|
" $(\'#Config_DocumentTemplates_Scope_Button\').clic" +
|
||||||
"_Scope_Button\').click(showDialog);\r\n });\r\n " +
|
"k(showDialog);\r\n });\r\n </scrip" +
|
||||||
" </script>\r\n");
|
"t>\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 210 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 210 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
@@ -728,7 +725,7 @@ WriteLiteral(" ");
|
|||||||
|
|
||||||
|
|
||||||
#line 215 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 215 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
Write(Model.DocumentTemplate.Scope != DocumentTemplate.DocumentTemplateScopes.Job ? "style=\"display: none;\" " : null);
|
Write(Model.DocumentTemplate.Scope !=DocumentTemplate.DocumentTemplateScopes.Job ? "style=\" display none;\" " : null);
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
@@ -922,29 +919,29 @@ WriteLiteral(" class=\"jobTypes\"");
|
|||||||
WriteLiteral(">\r\n <h4>\r\n " +
|
WriteLiteral(">\r\n <h4>\r\n " +
|
||||||
" <input");
|
" <input");
|
||||||
|
|
||||||
WriteAttribute("id", Tuple.Create(" id=\"", 14948), Tuple.Create("\"", 14967)
|
WriteAttribute("id", Tuple.Create(" id=\"", 14126), Tuple.Create("\"", 14145)
|
||||||
, Tuple.Create(Tuple.Create("", 14953), Tuple.Create("Types_", 14953), true)
|
, Tuple.Create(Tuple.Create("", 14131), Tuple.Create("Types_", 14131), true)
|
||||||
|
|
||||||
#line 257 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 257 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
, Tuple.Create(Tuple.Create("", 14959), Tuple.Create<System.Object, System.Int32>(jt.Id
|
, Tuple.Create(Tuple.Create("", 14137), Tuple.Create<System.Object, System.Int32>(jt.Id
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
, 14959), false)
|
, 14137), false)
|
||||||
);
|
);
|
||||||
|
|
||||||
WriteLiteral(" class=\"jobType\"");
|
WriteLiteral(" class=\"jobType\"");
|
||||||
|
|
||||||
WriteLiteral(" type=\"checkbox\"");
|
WriteLiteral(" type=\"checkbox\"");
|
||||||
|
|
||||||
WriteAttribute("value", Tuple.Create(" value=\"", 15000), Tuple.Create("\"", 15016)
|
WriteAttribute("value", Tuple.Create(" value=\"", 14178), Tuple.Create("\"", 14194)
|
||||||
|
|
||||||
#line 257 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 257 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
, Tuple.Create(Tuple.Create("", 15008), Tuple.Create<System.Object, System.Int32>(jt.Id
|
, Tuple.Create(Tuple.Create("", 14186), Tuple.Create<System.Object, System.Int32>(jt.Id
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
, 15008), false)
|
, 14186), false)
|
||||||
);
|
);
|
||||||
|
|
||||||
WriteLiteral(" ");
|
WriteLiteral(" ");
|
||||||
@@ -958,15 +955,15 @@ WriteLiteral(" ");
|
|||||||
#line hidden
|
#line hidden
|
||||||
WriteLiteral(" /><label");
|
WriteLiteral(" /><label");
|
||||||
|
|
||||||
WriteAttribute("for", Tuple.Create(" for=\"", 15087), Tuple.Create("\"", 15107)
|
WriteAttribute("for", Tuple.Create(" for=\"", 14266), Tuple.Create("\"", 14286)
|
||||||
, Tuple.Create(Tuple.Create("", 15093), Tuple.Create("Types_", 15093), true)
|
, Tuple.Create(Tuple.Create("", 14272), Tuple.Create("Types_", 14272), true)
|
||||||
|
|
||||||
#line 257 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 257 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
, Tuple.Create(Tuple.Create("", 15099), Tuple.Create<System.Object, System.Int32>(jt.Id
|
, Tuple.Create(Tuple.Create("", 14278), Tuple.Create<System.Object, System.Int32>(jt.Id
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
, 15099), false)
|
, 14278), false)
|
||||||
);
|
);
|
||||||
|
|
||||||
WriteLiteral(">");
|
WriteLiteral(">");
|
||||||
@@ -981,15 +978,15 @@ WriteLiteral(">");
|
|||||||
WriteLiteral("</label>\r\n </h4>\r\n " +
|
WriteLiteral("</label>\r\n </h4>\r\n " +
|
||||||
" <div");
|
" <div");
|
||||||
|
|
||||||
WriteAttribute("id", Tuple.Create(" id=\"", 15249), Tuple.Create("\"", 15271)
|
WriteAttribute("id", Tuple.Create(" id=\"", 14396), Tuple.Create("\"", 14418)
|
||||||
, Tuple.Create(Tuple.Create("", 15254), Tuple.Create("SubTypes_", 15254), true)
|
, Tuple.Create(Tuple.Create("", 14401), Tuple.Create("SubTypes_", 14401), true)
|
||||||
|
|
||||||
#line 259 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 259 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
, Tuple.Create(Tuple.Create("", 15263), Tuple.Create<System.Object, System.Int32>(jt.Id
|
, Tuple.Create(Tuple.Create("", 14410), Tuple.Create<System.Object, System.Int32>(jt.Id
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
, 15263), false)
|
, 14410), false)
|
||||||
);
|
);
|
||||||
|
|
||||||
WriteLiteral(" class=\"jobSubTypes\"");
|
WriteLiteral(" class=\"jobSubTypes\"");
|
||||||
@@ -1016,8 +1013,8 @@ WriteLiteral(" ");
|
|||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
WriteLiteral("\r\n </div>\r\n " +
|
WriteLiteral("\r\n </div>\r\n </d" +
|
||||||
" </div>\r\n");
|
"iv>\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 264 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 264 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
@@ -1029,53 +1026,48 @@ WriteLiteral("\r\n </div>\r\n
|
|||||||
#line hidden
|
#line hidden
|
||||||
WriteLiteral(" </div>\r\n");
|
WriteLiteral(" </div>\r\n");
|
||||||
|
|
||||||
WriteLiteral(" <script>\r\n " +
|
WriteLiteral(" <script>\r\n (function (" +
|
||||||
" (function () {\r\n var dialog;\r\n\r\n" +
|
") {\r\n var dialog;\r\n\r\n " +
|
||||||
" function showDialog() {\r\n " +
|
" function showDialog() {\r\n if " +
|
||||||
" if (!dialog) {\r\n " +
|
"(!dialog) {\r\n dialog = $(\'#Config_Doc" +
|
||||||
" dialog = $(\'#Config_DocumentTemplates_JobSubTypes_Updat" +
|
"umentTemplates_JobSubTypes_Update_Dialog\').dialog({\r\n " +
|
||||||
"e_Dialog\').dialog({\r\n res" +
|
" resizable: false,\r\n " +
|
||||||
"izable: false,\r\n modal: t" +
|
" modal: true,\r\n autoOpen: " +
|
||||||
"rue,\r\n autoOpen: false,\r\n" +
|
"false,\r\n width: 750,\r\n " +
|
||||||
" width: 750,\r\n " +
|
|
||||||
" height: 580,\r\n " +
|
" height: 580,\r\n " +
|
||||||
" buttons: {\r\n " +
|
" buttons: {\r\n " +
|
||||||
" \"Save Changes\": saveChanges,\r\n " +
|
" \"Save Changes\": saveChanges,\r\n " +
|
||||||
" Cancel: cancel\r\n " +
|
" Cancel: cancel\r\n }\r\n " +
|
||||||
" }\r\n " +
|
" });\r\n\r\n " +
|
||||||
" });\r\n\r\n dialog.find(\'.job" +
|
" dialog.find(\'.jobSubTypes\').hide();\r\n " +
|
||||||
"SubTypes\').hide();\r\n dialog.o" +
|
" dialog.on(\'change\', \'input.jobType\', function () {\r\n " +
|
||||||
"n(\'change\', \'input.jobType\', function () {\r\n " +
|
|
||||||
" var $this = $(this);\r\n " +
|
" var $this = $(this);\r\n " +
|
||||||
" if ($this.is(\':checked\'))\r\n " +
|
" if ($this.is(\':checked\'))\r\n " +
|
||||||
" $(\'#SubTypes_\' + $this.val()).slideDown(\'fast\');\r\n " +
|
" $(\'#SubTypes_\' + $this.val()).slideDown(\'fast\');\r\n " +
|
||||||
" else\r\n " +
|
" else\r\n " +
|
||||||
" $(\'#SubTypes_\' + $this.val()).slideUp(\'fast" +
|
" $(\'#SubTypes_\' + $this.val()).slideUp(\'fast\');\r\n " +
|
||||||
"\');\r\n }).find(\'input.jobType:" +
|
" }).find(\'input.jobType:checked\').each(function () {\r\n " +
|
||||||
"checked\').each(function () {\r\n " +
|
" $(\'#SubTypes_\' + $(this).val()).sh" +
|
||||||
" $(\'#SubTypes_\' + $(this).val()).show();\r\n " +
|
"ow();\r\n });\r\n " +
|
||||||
" });\r\n }\r\n\r\n " +
|
" }\r\n\r\n dialog.dialog(\'open" +
|
||||||
" dialog.dialog(\'open\');\r\n\r\n " +
|
"\');\r\n\r\n return false;\r\n " +
|
||||||
" return false;\r\n " +
|
" }\r\n\r\n function cancel() {\r\n" +
|
||||||
" }\r\n\r\n function canc" +
|
" dialog.dialog(\"disable\");\r\n " +
|
||||||
"el() {\r\n dialog.dialog(\"disable\")" +
|
" dialog.dialog(\"option\", \"buttons\", null);\r\n\r\n " +
|
||||||
";\r\n dialog.dialog(\"option\", \"butt" +
|
" // Refresh Page\r\n " +
|
||||||
"ons\", null);\r\n\r\n // Refresh Page\r" +
|
" window.location.reload(true);\r\n }\r\n\r" +
|
||||||
"\n window.location.reload(true);\r\n" +
|
"\n function saveChanges() {\r\n " +
|
||||||
" }\r\n\r\n " +
|
|
||||||
" function saveChanges() {\r\n " +
|
|
||||||
" var form = dialog.find(\'form\');\r\n\r\n " +
|
" var form = dialog.find(\'form\');\r\n\r\n " +
|
||||||
" $(\'input.jobType:unchecked\').each(function () {\r\n " +
|
" $(\'input.jobType:unchecked\').each(function () {\r\n " +
|
||||||
" $(\'#SubTypes_\' + $(this).val()).find(\'input\').pro" +
|
" $(\'#SubTypes_\' + $(this).val()).find(\'input\').pro" +
|
||||||
"p(\'checked\', false);\r\n });\r\n\r\n " +
|
"p(\'checked\', false);\r\n });\r\n\r\n " +
|
||||||
" form.submit();\r\n\r\n " +
|
" form.submit();\r\n\r\n " +
|
||||||
" dialog.dialog(\"disable\");\r\n " +
|
" dialog.dialog(\"disable\");\r\n dialog" +
|
||||||
" dialog.dialog(\"option\", \"buttons\", null);\r\n " +
|
".dialog(\"option\", \"buttons\", null);\r\n }\r\n\r\n " +
|
||||||
" }\r\n\r\n " +
|
" $(function () {\r\n " +
|
||||||
" $(function () {\r\n $(\'#Config_Do" +
|
" $(\'#Config_DocumentTemplates_JobSubTypes_Update\').click(showDialog);\r" +
|
||||||
"cumentTemplates_JobSubTypes_Update\').click(showDialog);\r\n " +
|
"\n });\r\n\r\n })()" +
|
||||||
" });\r\n\r\n })();\r\n " +
|
";\r\n </script>\r\n");
|
||||||
" </script>\r\n");
|
|
||||||
|
|
||||||
|
|
||||||
#line 329 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 329 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
@@ -1110,14 +1102,14 @@ WriteLiteral(">\r\n <img");
|
|||||||
|
|
||||||
WriteLiteral(" style=\"margin: 8px 5px;\"");
|
WriteLiteral(" style=\"margin: 8px 5px;\"");
|
||||||
|
|
||||||
WriteAttribute("src", Tuple.Create(" src=\"", 20213), Tuple.Create("\"", 20299)
|
WriteAttribute("src", Tuple.Create(" src=\"", 18860), Tuple.Create("\"", 18946)
|
||||||
|
|
||||||
#line 345 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 345 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
, Tuple.Create(Tuple.Create("", 20219), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.DocumentTemplate.TemplatePreview(Model.DocumentTemplate.Id))
|
, Tuple.Create(Tuple.Create("", 18866), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.DocumentTemplate.TemplatePreview(Model.DocumentTemplate.Id))
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
, 20219), false)
|
, 18866), false)
|
||||||
);
|
);
|
||||||
|
|
||||||
WriteLiteral(" />\r\n </div>\r\n </td>\r\n <" +
|
WriteLiteral(" />\r\n </div>\r\n </td>\r\n <" +
|
||||||
@@ -1184,8 +1176,8 @@ WriteLiteral(" title=\"Replace Document PDF Template\"");
|
|||||||
|
|
||||||
WriteLiteral(" class=\"dialog\"");
|
WriteLiteral(" class=\"dialog\"");
|
||||||
|
|
||||||
WriteLiteral(">\r\n <h4>Select a PDF Template to upload:</h4>\r" +
|
WriteLiteral(">\r\n <h4>Select a PDF Template to upload:</h4>\r\n " +
|
||||||
"\n <div>\r\n");
|
" <div>\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 360 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 360 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
@@ -1220,43 +1212,39 @@ WriteLiteral(" />\r\n");
|
|||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
WriteLiteral(" </div>\r\n </div" +
|
WriteLiteral(" </div>\r\n </div>\r\n");
|
||||||
">\r\n");
|
|
||||||
|
|
||||||
WriteLiteral(" <script");
|
WriteLiteral(" <script");
|
||||||
|
|
||||||
WriteLiteral(" type=\"text/javascript\"");
|
WriteLiteral(" type=\"text/javascript\"");
|
||||||
|
|
||||||
WriteLiteral(">\r\n $(function () {\r\n " +
|
WriteLiteral(">\r\n $(function () {\r\n v" +
|
||||||
" var dialog, template;\r\n\r\n " +
|
"ar dialog, template;\r\n\r\n function showDialog() {\r" +
|
||||||
"function showDialog() {\r\n if (dialog " +
|
"\n if (dialog == null) {\r\n " +
|
||||||
"== null) {\r\n template = $(\'#Confi" +
|
" template = $(\'#Config_DocumentTemplates_TemplatePdf_Template" +
|
||||||
"g_DocumentTemplates_TemplatePdf_Template\');\r\n\r\n " +
|
"\');\r\n\r\n dialog = $(\'#Config_DocumentTempl" +
|
||||||
" dialog = $(\'#Config_DocumentTemplates_TemplatePdf_Dialog\').dialog" +
|
"ates_TemplatePdf_Dialog\').dialog({\r\n " +
|
||||||
"({\r\n width: 350,\r\n " +
|
"width: 350,\r\n resizable: false,\r\n " +
|
||||||
" resizable: false,\r\n " +
|
|
||||||
" modal: true,\r\n " +
|
" modal: true,\r\n " +
|
||||||
" autoOpen: false,\r\n " +
|
" autoOpen: false,\r\n " +
|
||||||
" buttons: {\r\n \'Upl" +
|
"buttons: {\r\n \'Upload\': function (" +
|
||||||
"oad\': function () {\r\n " +
|
") {\r\n if (template.val() == \'" +
|
||||||
" if (template.val() == \'\') {\r\n " +
|
"\') {\r\n alert(\'A template " +
|
||||||
" alert(\'A template file is required to upload.\');\r\n " +
|
"file is required to upload.\');\r\n " +
|
||||||
" } else {\r\n " +
|
" } else {\r\n dialog.dia" +
|
||||||
" dialog.dialog(\'option\', \'buttons\', null);\r" +
|
"log(\'option\', \'buttons\', null);\r\n " +
|
||||||
"\n dialog.dialog(\'" +
|
" dialog.dialog(\'disable\');\r\n " +
|
||||||
"disable\');\r\n temp" +
|
" template.closest(\'form\').submit();\r\n " +
|
||||||
"late.closest(\'form\').submit();\r\n " +
|
|
||||||
" }\r\n },\r\n " +
|
" }\r\n },\r\n " +
|
||||||
" \'Cancel\': function () {\r\n " +
|
" \'Cancel\': function () {\r\n " +
|
||||||
" dialog.dialog(\'close\');\r" +
|
" dialog.dialog(\'close\');\r\n " +
|
||||||
"\n }\r\n " +
|
|
||||||
" }\r\n " +
|
" }\r\n " +
|
||||||
" });\r\n }\r\n\r\n " +
|
"}\r\n });\r\n " +
|
||||||
" dialog.dialog(\'open\');\r\n\r\n " +
|
" }\r\n\r\n dialog.dialog(\'open\');\r\n\r\n " +
|
||||||
" return false;\r\n }\r\n\r\n " +
|
" return false;\r\n }\r\n\r\n " +
|
||||||
" $(\'#Config_DocumentTemplates_TemplatePdf_Button\')" +
|
" $(\'#Config_DocumentTemplates_TemplatePdf_Button\')" +
|
||||||
".click(showDialog);\r\n });\r\n " +
|
".click(showDialog);\r\n });\r\n </" +
|
||||||
" </script>\r\n");
|
"script>\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 404 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 404 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
@@ -1377,20 +1365,19 @@ WriteLiteral(@">
|
|||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
WriteLiteral("\',\r\n \'FilterExpression\'\r\n " +
|
WriteLiteral("\',\r\n \'FilterExpression\'\r\n " +
|
||||||
" );\r\n\r\n field.focus(functio" +
|
" );\r\n\r\n field.focus(function () {\r\n " +
|
||||||
"n () {\r\n fieldOriginalWidth = field.width" +
|
" fieldOriginalWidth = field.width();\r\n " +
|
||||||
"();\r\n fieldOriginalHeight = field.height(" +
|
" fieldOriginalHeight = field.height();\r\n " +
|
||||||
");\r\n field.css(\'overflow\', \'visible\').ani" +
|
" field.css(\'overflow\', \'visible\').animate({ width: field.pare" +
|
||||||
"mate({ width: field.parent().width() - 42, height: 75 }, 200);\r\n " +
|
"nt().width() - 42, height: 75 }, 200);\r\n }).blur(" +
|
||||||
" }).blur(function () {\r\n " +
|
"function () {\r\n field.css(\'overflow\', \'hidden" +
|
||||||
" field.css(\'overflow\', \'hidden\').animate({ width: fieldOriginalWidth, height: " +
|
"\').animate({ width: fieldOriginalWidth, height: fieldOriginalHeight }, 200);\r\n " +
|
||||||
"fieldOriginalHeight }, 200);\r\n }).change(func" +
|
" }).change(function () {\r\n " +
|
||||||
"tion () {\r\n if (!!field.val()) {\r\n " +
|
" if (!!field.val()) {\r\n fieldRe" +
|
||||||
" fieldRemove.show();\r\n " +
|
"move.show();\r\n } else {\r\n " +
|
||||||
" } else {\r\n fieldRem" +
|
" fieldRemove.hide();\r\n }\r\n" +
|
||||||
"ove.hide();\r\n }\r\n " +
|
" }).attr(\'placeholder\', \'None\').attr(\'spellcheck\'" +
|
||||||
" }).attr(\'placeholder\', \'None\').attr(\'spellcheck\', \'false\');\r\n\r\n " +
|
", \'false\');\r\n\r\n fieldRemove.click(function () {\r\n" +
|
||||||
" fieldRemove.click(function () {\r\n " +
|
|
||||||
" field.val(\'\').change();\r\n " +
|
" field.val(\'\').change();\r\n " +
|
||||||
" });\r\n\r\n if (!!field.val()) {\r\n " +
|
" });\r\n\r\n if (!!field.val()) {\r\n " +
|
||||||
" fieldRemove.show();\r\n " +
|
" fieldRemove.show();\r\n " +
|
||||||
@@ -1566,25 +1553,24 @@ WriteLiteral(@">
|
|||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
WriteLiteral("\',\r\n \'OnGenerateExpression\'\r\n " +
|
WriteLiteral("\',\r\n \'OnGenerateExpression\'\r\n " +
|
||||||
" );\r\n\r\n field.focus(fun" +
|
" );\r\n\r\n field.focus(function () {\r\n" +
|
||||||
"ction () {\r\n fieldOriginalWidth = field.w" +
|
" fieldOriginalWidth = field.width();\r\n " +
|
||||||
"idth();\r\n fieldOriginalHeight = field.hei" +
|
" fieldOriginalHeight = field.height();\r\n " +
|
||||||
"ght();\r\n field.css(\'overflow\', \'visible\')" +
|
" field.css(\'overflow\', \'visible\').animate({ width: field." +
|
||||||
".animate({ width: field.parent().width() - 42, height: 75 }, 200);\r\n " +
|
"parent().width() - 42, height: 75 }, 200);\r\n }).b" +
|
||||||
" }).blur(function () {\r\n " +
|
"lur(function () {\r\n field.css(\'overflow\', \'hi" +
|
||||||
" field.css(\'overflow\', \'hidden\').animate({ width: fieldOriginalWidth, heig" +
|
"dden\').animate({ width: fieldOriginalWidth, height: fieldOriginalHeight }, 200);" +
|
||||||
"ht: fieldOriginalHeight }, 200);\r\n }).change(" +
|
"\r\n }).change(function () {\r\n " +
|
||||||
"function () {\r\n if (!!field.val()) {\r\n " +
|
" if (!!field.val()) {\r\n fie" +
|
||||||
" fieldRemove.show();\r\n " +
|
"ldRemove.show();\r\n } else {\r\n " +
|
||||||
" } else {\r\n fiel" +
|
" fieldRemove.hide();\r\n " +
|
||||||
"dRemove.hide();\r\n }\r\n " +
|
" }\r\n }).attr(\'placeholder\', \'None\').attr(\'spellch" +
|
||||||
" }).attr(\'placeholder\', \'None\').attr(\'spellcheck\', \'false\');\r\n\r\n " +
|
"eck\', \'false\');\r\n\r\n fieldRemove.click(function ()" +
|
||||||
" fieldRemove.click(function () {\r\n " +
|
" {\r\n field.val(\'\').change();\r\n " +
|
||||||
" field.val(\'\').change();\r\n " +
|
|
||||||
" });\r\n\r\n if (!!field.val()) {\r\n " +
|
" });\r\n\r\n if (!!field.val()) {\r\n " +
|
||||||
" fieldRemove.show();\r\n " +
|
" fieldRemove.show();\r\n " +
|
||||||
" } else {\r\n fieldRemove.hide();" +
|
" } else {\r\n fieldRemove.hide();\r\n " +
|
||||||
"\r\n }\r\n });\r\n " +
|
" }\r\n });\r\n " +
|
||||||
" </script>\r\n");
|
" </script>\r\n");
|
||||||
|
|
||||||
|
|
||||||
@@ -1755,26 +1741,25 @@ WriteLiteral(@">
|
|||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
WriteLiteral("\',\r\n \'OnImportAttachmentExpression\'\r\n " +
|
WriteLiteral("\',\r\n \'OnImportAttachmentExpression\'\r\n " +
|
||||||
" );\r\n\r\n field.f" +
|
" );\r\n\r\n field.focus(functio" +
|
||||||
"ocus(function () {\r\n fieldOriginalWidth =" +
|
"n () {\r\n fieldOriginalWidth = field.width();\r" +
|
||||||
" field.width();\r\n fieldOriginalHeight = f" +
|
"\n fieldOriginalHeight = field.height();\r\n " +
|
||||||
"ield.height();\r\n field.css(\'overflow\', \'v" +
|
" field.css(\'overflow\', \'visible\').animate({ width" +
|
||||||
"isible\').animate({ width: field.parent().width() - 42, height: 75 }, 200);\r\n " +
|
": field.parent().width() - 42, height: 75 }, 200);\r\n " +
|
||||||
" }).blur(function () {\r\n " +
|
" }).blur(function () {\r\n field.css(\'overfl" +
|
||||||
" field.css(\'overflow\', \'hidden\').animate({ width: fieldOriginalWid" +
|
"ow\', \'hidden\').animate({ width: fieldOriginalWidth, height: fieldOriginalHeight " +
|
||||||
"th, height: fieldOriginalHeight }, 200);\r\n })" +
|
"}, 200);\r\n }).change(function () {\r\n " +
|
||||||
".change(function () {\r\n if (!!field.val()" +
|
" if (!!field.val()) {\r\n " +
|
||||||
") {\r\n fieldRemove.show();\r\n " +
|
" fieldRemove.show();\r\n } else {\r\n " +
|
||||||
" } else {\r\n " +
|
" fieldRemove.hide();\r\n " +
|
||||||
" fieldRemove.hide();\r\n }\r\n " +
|
" }\r\n }).attr(\'placeholder\', \'None\').attr(" +
|
||||||
" }).attr(\'placeholder\', \'None\').attr(\'spellcheck\', \'false" +
|
"\'spellcheck\', \'false\');\r\n\r\n fieldRemove.click(fun" +
|
||||||
"\');\r\n\r\n fieldRemove.click(function () {\r\n " +
|
"ction () {\r\n field.val(\'\').change();\r\n " +
|
||||||
" field.val(\'\').change();\r\n " +
|
" });\r\n\r\n if (!!field.val(" +
|
||||||
" });\r\n\r\n if (!!field.val()) {" +
|
")) {\r\n fieldRemove.show();\r\n " +
|
||||||
"\r\n fieldRemove.show();\r\n " +
|
" } else {\r\n fieldRemove.hide();" +
|
||||||
" } else {\r\n fieldRemove" +
|
"\r\n }\r\n });\r\n " +
|
||||||
".hide();\r\n }\r\n " +
|
" </script>\r\n");
|
||||||
" });\r\n </script>\r\n");
|
|
||||||
|
|
||||||
|
|
||||||
#line 605 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 605 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
@@ -1862,6 +1847,7 @@ WriteLiteral(" ");
|
|||||||
CategoryDescription = DocumentTemplateUsersManagedGroup.GetCategoryDescription(Model.DocumentTemplate),
|
CategoryDescription = DocumentTemplateUsersManagedGroup.GetCategoryDescription(Model.DocumentTemplate),
|
||||||
Description = DocumentTemplateUsersManagedGroup.GetDescription(Model.DocumentTemplate),
|
Description = DocumentTemplateUsersManagedGroup.GetDescription(Model.DocumentTemplate),
|
||||||
ManagedGroup = Model.UsersLinkedGroup,
|
ManagedGroup = Model.UsersLinkedGroup,
|
||||||
|
IncludeFilterBeginDate = true,
|
||||||
UpdateUrl = Url.Action(MVC.API.DocumentTemplate.UpdateUsersLinkedGroup(Model.DocumentTemplate.Id, redirect: true))
|
UpdateUrl = Url.Action(MVC.API.DocumentTemplate.UpdateUsersLinkedGroup(Model.DocumentTemplate.Id, redirect: true))
|
||||||
}));
|
}));
|
||||||
|
|
||||||
@@ -1873,13 +1859,14 @@ WriteLiteral("\r\n");
|
|||||||
WriteLiteral(" ");
|
WriteLiteral(" ");
|
||||||
|
|
||||||
|
|
||||||
#line 640 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 641 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
Write(Html.Partial(MVC.Config.Shared.Views.LinkedGroupInstance, new LinkedGroupModel()
|
Write(Html.Partial(MVC.Config.Shared.Views.LinkedGroupInstance, new LinkedGroupModel()
|
||||||
{
|
{
|
||||||
CanConfigure = canConfig,
|
CanConfigure = canConfig,
|
||||||
CategoryDescription = DocumentTemplateDevicesManagedGroup.GetCategoryDescription(Model.DocumentTemplate),
|
CategoryDescription = DocumentTemplateDevicesManagedGroup.GetCategoryDescription(Model.DocumentTemplate),
|
||||||
Description = DocumentTemplateDevicesManagedGroup.GetDescription(Model.DocumentTemplate),
|
Description = DocumentTemplateDevicesManagedGroup.GetDescription(Model.DocumentTemplate),
|
||||||
ManagedGroup = Model.DevicesLinkedGroup,
|
ManagedGroup = Model.DevicesLinkedGroup,
|
||||||
|
IncludeFilterBeginDate = true,
|
||||||
UpdateUrl = Url.Action(MVC.API.DocumentTemplate.UpdateDevicesLinkedGroup(Model.DocumentTemplate.Id, redirect: true))
|
UpdateUrl = Url.Action(MVC.API.DocumentTemplate.UpdateDevicesLinkedGroup(Model.DocumentTemplate.Id, redirect: true))
|
||||||
}));
|
}));
|
||||||
|
|
||||||
@@ -1889,13 +1876,13 @@ WriteLiteral(" ");
|
|||||||
WriteLiteral("\r\n");
|
WriteLiteral("\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 648 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 650 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 648 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 650 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
if (canConfig)
|
if (canConfig)
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -1903,14 +1890,14 @@ WriteLiteral("\r\n");
|
|||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 650 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 652 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
Write(Html.Partial(MVC.Config.Shared.Views.LinkedGroupShared));
|
Write(Html.Partial(MVC.Config.Shared.Views.LinkedGroupShared));
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 650 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 652 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1927,7 +1914,7 @@ WriteLiteral(">\r\n <h2>Template Expressions</h2>\r\n");
|
|||||||
WriteLiteral(" ");
|
WriteLiteral(" ");
|
||||||
|
|
||||||
|
|
||||||
#line 660 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 662 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
Write(Html.Partial(MVC.Config.DocumentTemplate.Views._ExpressionsTable, Model.TemplateExpressions));
|
Write(Html.Partial(MVC.Config.DocumentTemplate.Views._ExpressionsTable, Model.TemplateExpressions));
|
||||||
|
|
||||||
|
|
||||||
@@ -1991,13 +1978,13 @@ WriteLiteral(" class=\"actionBar\"");
|
|||||||
WriteLiteral(">\r\n");
|
WriteLiteral(">\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 703 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 705 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 703 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 705 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
if (hideAdvanced)
|
if (hideAdvanced)
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -2023,7 +2010,7 @@ WriteLiteral(@" <script>
|
|||||||
");
|
");
|
||||||
|
|
||||||
|
|
||||||
#line 714 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 716 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -2032,7 +2019,7 @@ WriteLiteral(@" <script>
|
|||||||
WriteLiteral(" ");
|
WriteLiteral(" ");
|
||||||
|
|
||||||
|
|
||||||
#line 715 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 717 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
if (Authorization.Has(Claims.Config.Show))
|
if (Authorization.Has(Claims.Config.Show))
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -2040,14 +2027,14 @@ WriteLiteral(" ");
|
|||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 717 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 719 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
Write(Html.ActionLinkButton("Expression Browser", MVC.Config.DocumentTemplate.ExpressionBrowser()));
|
Write(Html.ActionLinkButton("Expression Browser", MVC.Config.DocumentTemplate.ExpressionBrowser()));
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 717 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 719 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2057,7 +2044,7 @@ WriteLiteral(" ");
|
|||||||
WriteLiteral(" ");
|
WriteLiteral(" ");
|
||||||
|
|
||||||
|
|
||||||
#line 719 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 721 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
if (canBulkGenerate)
|
if (canBulkGenerate)
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -2080,16 +2067,16 @@ WriteLiteral(" id=\"dialogBulkGenerate\"");
|
|||||||
|
|
||||||
WriteLiteral(" class=\"hiddenDialog\"");
|
WriteLiteral(" class=\"hiddenDialog\"");
|
||||||
|
|
||||||
WriteAttribute("title", Tuple.Create(" title=\"", 40427), Tuple.Create("\"", 40478)
|
WriteAttribute("title", Tuple.Create(" title=\"", 38244), Tuple.Create("\"", 38295)
|
||||||
, Tuple.Create(Tuple.Create("", 40435), Tuple.Create("Bulk", 40435), true)
|
, Tuple.Create(Tuple.Create("", 38252), Tuple.Create("Bulk", 38252), true)
|
||||||
, Tuple.Create(Tuple.Create(" ", 40439), Tuple.Create("Generate:", 40440), true)
|
, Tuple.Create(Tuple.Create(" ", 38256), Tuple.Create("Generate:", 38257), true)
|
||||||
|
|
||||||
#line 722 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 724 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
, Tuple.Create(Tuple.Create(" ", 40449), Tuple.Create<System.Object, System.Int32>(Model.DocumentTemplate.Id
|
, Tuple.Create(Tuple.Create(" ", 38266), Tuple.Create<System.Object, System.Int32>(Model.DocumentTemplate.Id
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
, 40450), false)
|
, 38267), false)
|
||||||
);
|
);
|
||||||
|
|
||||||
WriteLiteral(">\r\n <div");
|
WriteLiteral(">\r\n <div");
|
||||||
@@ -2099,13 +2086,13 @@ WriteLiteral(" class=\"brief\"");
|
|||||||
WriteLiteral(">\r\n");
|
WriteLiteral(">\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 724 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 726 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 724 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 726 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
switch (Model.DocumentTemplate.Scope)
|
switch (Model.DocumentTemplate.Scope)
|
||||||
{
|
{
|
||||||
case "Device":
|
case "Device":
|
||||||
@@ -2118,21 +2105,18 @@ WriteLiteral(" <div>\r\n Enter
|
|||||||
WriteLiteral(" class=\"scopeDescBulkGenerate\"");
|
WriteLiteral(" class=\"scopeDescBulkGenerate\"");
|
||||||
|
|
||||||
WriteLiteral(">Device Serial Numbers</span> separated by <code><new line></code>, commas " +
|
WriteLiteral(">Device Serial Numbers</span> separated by <code><new line></code>, commas " +
|
||||||
"(<code>,</code>) or semicolons (<code>;</code>).\r\n </div>" +
|
"(<code>,</code>) or semicolons (<code>;</code>).\r\n </div>\r\n");
|
||||||
"\r\n");
|
|
||||||
|
|
||||||
WriteLiteral(" <div");
|
WriteLiteral(" <div");
|
||||||
|
|
||||||
WriteLiteral(" class=\"examples clearfix\"");
|
WriteLiteral(" class=\"examples clearfix\"");
|
||||||
|
|
||||||
WriteLiteral(">\r\n <h4>Examples:</h4>\r\n <d" +
|
WriteLiteral(">\r\n <h4>Examples:</h4>\r\n <div");
|
||||||
"iv");
|
|
||||||
|
|
||||||
WriteLiteral(" class=\"example1 code\"");
|
WriteLiteral(" class=\"example1 code\"");
|
||||||
|
|
||||||
WriteLiteral(">\r\n 01234567<br />\r\n " +
|
WriteLiteral(">\r\n 01234567<br />\r\n ABCD9876<br />\r\n " +
|
||||||
" ABCD9876<br />\r\n 8VQ6G2R\r\n " +
|
" 8VQ6G2R\r\n </div>\r\n <div");
|
||||||
" </div>\r\n <div");
|
|
||||||
|
|
||||||
WriteLiteral(" class=\"example2 code\"");
|
WriteLiteral(" class=\"example2 code\"");
|
||||||
|
|
||||||
@@ -2143,7 +2127,7 @@ WriteLiteral(" class=\"example3 code\"");
|
|||||||
WriteLiteral(">01234567;ABCD9876;8VQ6G2R</div>\r\n </div>\r\n");
|
WriteLiteral(">01234567;ABCD9876;8VQ6G2R</div>\r\n </div>\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 740 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 742 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
break;
|
break;
|
||||||
case "Job":
|
case "Job":
|
||||||
|
|
||||||
@@ -2161,14 +2145,12 @@ WriteLiteral(" <div");
|
|||||||
|
|
||||||
WriteLiteral(" class=\"examples clearfix\"");
|
WriteLiteral(" class=\"examples clearfix\"");
|
||||||
|
|
||||||
WriteLiteral(">\r\n <h4>Examples:</h4>\r\n <d" +
|
WriteLiteral(">\r\n <h4>Examples:</h4>\r\n <div");
|
||||||
"iv");
|
|
||||||
|
|
||||||
WriteLiteral(" class=\"example1 code\"");
|
WriteLiteral(" class=\"example1 code\"");
|
||||||
|
|
||||||
WriteLiteral(">\r\n 86<br />\r\n 99<b" +
|
WriteLiteral(">\r\n 86<br />\r\n 99<br />\r\n " +
|
||||||
"r />\r\n 44\r\n </div>\r\n " +
|
" 44\r\n </div>\r\n <div");
|
||||||
" <div");
|
|
||||||
|
|
||||||
WriteLiteral(" class=\"example2 code\"");
|
WriteLiteral(" class=\"example2 code\"");
|
||||||
|
|
||||||
@@ -2179,7 +2161,7 @@ WriteLiteral(" class=\"example3 code\"");
|
|||||||
WriteLiteral(">86;99;44</div>\r\n </div>\r\n");
|
WriteLiteral(">86;99;44</div>\r\n </div>\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 755 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 757 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
break;
|
break;
|
||||||
case "User":
|
case "User":
|
||||||
|
|
||||||
@@ -2197,16 +2179,14 @@ WriteLiteral(" <div");
|
|||||||
|
|
||||||
WriteLiteral(" class=\"examples clearfix\"");
|
WriteLiteral(" class=\"examples clearfix\"");
|
||||||
|
|
||||||
WriteLiteral(">\r\n <h4>Examples:</h4>\r\n <d" +
|
WriteLiteral(">\r\n <h4>Examples:</h4>\r\n <div");
|
||||||
"iv");
|
|
||||||
|
|
||||||
WriteLiteral(" class=\"example1 code\"");
|
WriteLiteral(" class=\"example1 code\"");
|
||||||
|
|
||||||
WriteLiteral(">\r\n user6<br />\r\n s" +
|
WriteLiteral(">\r\n user6<br />\r\n smi0099<br />");
|
||||||
"mi0099<br />");
|
|
||||||
|
|
||||||
|
|
||||||
#line 764 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 766 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
Write(ActiveDirectory.Context.PrimaryDomain.NetBiosName);
|
Write(ActiveDirectory.Context.PrimaryDomain.NetBiosName);
|
||||||
|
|
||||||
|
|
||||||
@@ -2219,7 +2199,7 @@ WriteLiteral(" class=\"example2 code\"");
|
|||||||
WriteLiteral(">user6,smi0099,");
|
WriteLiteral(">user6,smi0099,");
|
||||||
|
|
||||||
|
|
||||||
#line 766 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 768 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
Write(ActiveDirectory.Context.PrimaryDomain.NetBiosName);
|
Write(ActiveDirectory.Context.PrimaryDomain.NetBiosName);
|
||||||
|
|
||||||
|
|
||||||
@@ -2232,7 +2212,7 @@ WriteLiteral(" class=\"example3 code\"");
|
|||||||
WriteLiteral(">user6;smi0099;");
|
WriteLiteral(">user6;smi0099;");
|
||||||
|
|
||||||
|
|
||||||
#line 767 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 769 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
Write(ActiveDirectory.Context.PrimaryDomain.NetBiosName);
|
Write(ActiveDirectory.Context.PrimaryDomain.NetBiosName);
|
||||||
|
|
||||||
|
|
||||||
@@ -2241,7 +2221,7 @@ WriteLiteral(">user6;smi0099;");
|
|||||||
WriteLiteral("\\rsmith</div>\r\n </div>\r\n");
|
WriteLiteral("\\rsmith</div>\r\n </div>\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 769 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 771 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2251,13 +2231,13 @@ WriteLiteral("\\rsmith</div>\r\n </div>\r\n");
|
|||||||
WriteLiteral(" </div>\r\n");
|
WriteLiteral(" </div>\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 772 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 774 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 772 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 774 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
using (Html.BeginForm(MVC.API.DocumentTemplate.BulkGenerate(Model.DocumentTemplate.Id), FormMethod.Post))
|
using (Html.BeginForm(MVC.API.DocumentTemplate.BulkGenerate(Model.DocumentTemplate.Id), FormMethod.Post))
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -2287,7 +2267,7 @@ WriteLiteral(" data-val-required=\"Identifiers are required\"");
|
|||||||
WriteLiteral("></textarea>\r\n");
|
WriteLiteral("></textarea>\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 776 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 778 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -2296,7 +2276,7 @@ WriteLiteral("></textarea>\r\n");
|
|||||||
WriteLiteral(" </div>\r\n");
|
WriteLiteral(" </div>\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 778 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 780 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -2335,7 +2315,7 @@ WriteLiteral(@" <script>
|
|||||||
");
|
");
|
||||||
|
|
||||||
|
|
||||||
#line 809 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 811 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -2344,7 +2324,7 @@ WriteLiteral(@" <script>
|
|||||||
WriteLiteral(" ");
|
WriteLiteral(" ");
|
||||||
|
|
||||||
|
|
||||||
#line 810 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 812 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
if (Authorization.Has(Claims.Config.DocumentTemplate.Delete))
|
if (Authorization.Has(Claims.Config.DocumentTemplate.Delete))
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -2352,14 +2332,14 @@ WriteLiteral(" ");
|
|||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 812 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 814 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
Write(Html.ActionLinkButton("Delete", MVC.API.DocumentTemplate.Delete(Model.DocumentTemplate.Id, true), "buttonDelete"));
|
Write(Html.ActionLinkButton("Delete", MVC.API.DocumentTemplate.Delete(Model.DocumentTemplate.Id, true), "buttonDelete"));
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 812 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
#line 814 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
<div class="code" title="@group.Id">
|
<div class="code" title="@group.Id">
|
||||||
<i class="fa fa-fw fa-lg fa-link success"></i>@group.Domain.FriendlyDistinguishedNamePath(group.DistinguishedName)
|
<i class="fa fa-fw fa-lg fa-link success"></i>@group.Domain.FriendlyDistinguishedNamePath(group.DistinguishedName)
|
||||||
</div>
|
</div>
|
||||||
<button class="button small Config_LinkedGroup_LinkButton" data-linkedgroupid="@(Model.ManagedGroup.Configuration.GroupId)" data-linkedroupdescription="@(Model.CategoryDescription)" data-linkedroupupdateurl="@(Model.UpdateUrl)">Change Link</button>
|
<button class="button small Config_LinkedGroup_LinkButton" data-linkedgroupid="@(Model.ManagedGroup.Configuration.GroupId)" data-linkedgroupfilterdateoption="@(Model.ManagedGroup.IncludeFilterBeginDate)" data-linkedgroupfilterdate="@(Model.ManagedGroup.Configuration.FilterBeginDate)" data-linkedroupdescription="@(Model.CategoryDescription)" data-linkedroupupdateurl="@(Model.UpdateUrl)">Change Link</button>
|
||||||
<a href="@(Url.Action(MVC.API.System.SyncActiveDirectoryManagedGroup(Model.ManagedGroup.Key, Context.Request.Path)))" class="button small">Synchronize Now</a>
|
<a href="@(Url.Action(MVC.API.System.SyncActiveDirectoryManagedGroup(Model.ManagedGroup.Key, Context.Request.Path)))" class="button small">Synchronize Now</a>
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -30,12 +30,12 @@
|
|||||||
<div class="code error">
|
<div class="code error">
|
||||||
<i class="fa fa-fw fa-lg fa-unlink error"></i>Group Not Found: <strong class="code">@Model.ManagedGroup.Configuration.GroupId</strong>
|
<i class="fa fa-fw fa-lg fa-unlink error"></i>Group Not Found: <strong class="code">@Model.ManagedGroup.Configuration.GroupId</strong>
|
||||||
</div>
|
</div>
|
||||||
<button class="button small Config_LinkedGroup_LinkButton" data-linkedgroupid="@(Model.ManagedGroup.Configuration.GroupId)" data-linkedroupdescription="@(Model.CategoryDescription)" data-linkedroupupdateurl="@(Model.UpdateUrl)">Change Link</button>
|
<button class="button small Config_LinkedGroup_LinkButton" data-linkedgroupid="@(Model.ManagedGroup.Configuration.GroupId)" data-linkedgroupfilterdateoption="@(Model.ManagedGroup.IncludeFilterBeginDate)" data-linkedgroupfilterdate="@(Model.ManagedGroup.Configuration.FilterBeginDate)" data-linkedroupdescription="@(Model.CategoryDescription)" data-linkedroupupdateurl="@(Model.UpdateUrl)">Change Link</button>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
<button class="button small Config_LinkedGroup_LinkButton" data-linkedgroupid="" data-linkedroupdescription="@(Model.CategoryDescription)" data-linkedroupupdateurl="@(Model.UpdateUrl)">Link Group</button>
|
<button class="button small Config_LinkedGroup_LinkButton" data-linkedgroupid="" data-linkedgroupfilterdateoption="@(Model.IncludeFilterBeginDate)" data-linkedroupdescription="@(Model.CategoryDescription)" data-linkedroupupdateurl="@(Model.UpdateUrl)">Link Group</button>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated by a tool.
|
// This code was generated by a tool.
|
||||||
// Runtime Version:4.0.30319.34014
|
// Runtime Version:4.0.30319.42000
|
||||||
//
|
//
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
// the code is regenerated.
|
// the code is regenerated.
|
||||||
@@ -27,7 +27,6 @@ namespace Disco.Web.Areas.Config.Views.Shared
|
|||||||
using System.Web.UI;
|
using System.Web.UI;
|
||||||
using System.Web.WebPages;
|
using System.Web.WebPages;
|
||||||
using Disco;
|
using Disco;
|
||||||
using Disco.BI.Extensions;
|
|
||||||
using Disco.Models.Repository;
|
using Disco.Models.Repository;
|
||||||
using Disco.Services;
|
using Disco.Services;
|
||||||
using Disco.Services.Authorization;
|
using Disco.Services.Authorization;
|
||||||
@@ -154,6 +153,28 @@ WriteLiteral(" data-linkedgroupid=\"");
|
|||||||
#line hidden
|
#line hidden
|
||||||
WriteLiteral("\"");
|
WriteLiteral("\"");
|
||||||
|
|
||||||
|
WriteLiteral(" data-linkedgroupfilterdateoption=\"");
|
||||||
|
|
||||||
|
|
||||||
|
#line 25 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
||||||
|
Write(Model.ManagedGroup.IncludeFilterBeginDate);
|
||||||
|
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
WriteLiteral("\"");
|
||||||
|
|
||||||
|
WriteLiteral(" data-linkedgroupfilterdate=\"");
|
||||||
|
|
||||||
|
|
||||||
|
#line 25 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
||||||
|
Write(Model.ManagedGroup.Configuration.FilterBeginDate);
|
||||||
|
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
WriteLiteral("\"");
|
||||||
|
|
||||||
WriteLiteral(" data-linkedroupdescription=\"");
|
WriteLiteral(" data-linkedroupdescription=\"");
|
||||||
|
|
||||||
|
|
||||||
@@ -180,14 +201,14 @@ WriteLiteral(">Change Link</button>\r\n");
|
|||||||
|
|
||||||
WriteLiteral(" <a");
|
WriteLiteral(" <a");
|
||||||
|
|
||||||
WriteAttribute("href", Tuple.Create(" href=\"", 1114), Tuple.Create("\"", 1228)
|
WriteAttribute("href", Tuple.Create(" href=\"", 1275), Tuple.Create("\"", 1389)
|
||||||
|
|
||||||
#line 26 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
#line 26 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
||||||
, Tuple.Create(Tuple.Create("", 1121), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.System.SyncActiveDirectoryManagedGroup(Model.ManagedGroup.Key, Context.Request.Path))
|
, Tuple.Create(Tuple.Create("", 1282), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.System.SyncActiveDirectoryManagedGroup(Model.ManagedGroup.Key, Context.Request.Path))
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
, 1121), false)
|
, 1282), false)
|
||||||
);
|
);
|
||||||
|
|
||||||
WriteLiteral(" class=\"button small\"");
|
WriteLiteral(" class=\"button small\"");
|
||||||
@@ -241,6 +262,28 @@ WriteLiteral(" data-linkedgroupid=\"");
|
|||||||
#line hidden
|
#line hidden
|
||||||
WriteLiteral("\"");
|
WriteLiteral("\"");
|
||||||
|
|
||||||
|
WriteLiteral(" data-linkedgroupfilterdateoption=\"");
|
||||||
|
|
||||||
|
|
||||||
|
#line 33 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
||||||
|
Write(Model.ManagedGroup.IncludeFilterBeginDate);
|
||||||
|
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
WriteLiteral("\"");
|
||||||
|
|
||||||
|
WriteLiteral(" data-linkedgroupfilterdate=\"");
|
||||||
|
|
||||||
|
|
||||||
|
#line 33 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
||||||
|
Write(Model.ManagedGroup.Configuration.FilterBeginDate);
|
||||||
|
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
WriteLiteral("\"");
|
||||||
|
|
||||||
WriteLiteral(" data-linkedroupdescription=\"");
|
WriteLiteral(" data-linkedroupdescription=\"");
|
||||||
|
|
||||||
|
|
||||||
@@ -281,6 +324,17 @@ WriteLiteral(" class=\"button small Config_LinkedGroup_LinkButton\"");
|
|||||||
|
|
||||||
WriteLiteral(" data-linkedgroupid=\"\"");
|
WriteLiteral(" data-linkedgroupid=\"\"");
|
||||||
|
|
||||||
|
WriteLiteral(" data-linkedgroupfilterdateoption=\"");
|
||||||
|
|
||||||
|
|
||||||
|
#line 38 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
||||||
|
Write(Model.IncludeFilterBeginDate);
|
||||||
|
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
WriteLiteral("\"");
|
||||||
|
|
||||||
WriteLiteral(" data-linkedroupdescription=\"");
|
WriteLiteral(" data-linkedroupdescription=\"");
|
||||||
|
|
||||||
|
|
||||||
@@ -323,14 +377,14 @@ WriteLiteral(" <div");
|
|||||||
|
|
||||||
WriteLiteral(" class=\"code\"");
|
WriteLiteral(" class=\"code\"");
|
||||||
|
|
||||||
WriteAttribute("title", Tuple.Create(" title=\"", 2272), Tuple.Create("\"", 2289)
|
WriteAttribute("title", Tuple.Create(" title=\"", 2661), Tuple.Create("\"", 2678)
|
||||||
|
|
||||||
#line 47 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
#line 47 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
||||||
, Tuple.Create(Tuple.Create("", 2280), Tuple.Create<System.Object, System.Int32>(group.Id
|
, Tuple.Create(Tuple.Create("", 2669), Tuple.Create<System.Object, System.Int32>(group.Id
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
, 2280), false)
|
, 2669), false)
|
||||||
);
|
);
|
||||||
|
|
||||||
WriteLiteral(">\r\n <i");
|
WriteLiteral(">\r\n <i");
|
||||||
|
|||||||
@@ -1,25 +1,45 @@
|
|||||||
<div id="Config_LinkedGroup_Dialog" title="Linked Group" class="dialog">
|
@{
|
||||||
|
Html.BundleDeferred("~/ClientScripts/Modules/jQueryUI-TimePicker");
|
||||||
|
}
|
||||||
|
<div id="Config_LinkedGroup_Dialog" title="Linked Group" class="dialog">
|
||||||
<h3 id="Config_LinkedGroup_Title"></h3>
|
<h3 id="Config_LinkedGroup_Title"></h3>
|
||||||
|
<form action="#" method="post">
|
||||||
|
<table class="input">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th>
|
||||||
|
<label for="Config_LinkedGroup_Id">Linked Group:</label>
|
||||||
|
</th>
|
||||||
|
<td>
|
||||||
|
<input id="Config_LinkedGroup_Id" type="text" name="GroupId" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>
|
||||||
|
<label for="Config_LinkedGroup_FilterDate">Filter Date: </label>
|
||||||
|
</th>
|
||||||
|
<td>
|
||||||
|
<input id="Config_LinkedGroup_FilterDate" type="text" name="FilterBeginDate" placeholder="No Filter" autocomplete="off" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
<div class="info-box error">
|
<div class="info-box error">
|
||||||
<p class="fa-p">
|
<p class="fa-p">
|
||||||
<i class="fa fa-exclamation-circle"></i><strong>Warning:</strong> This group will be managed by Disco ICT.<br />
|
<i class="fa fa-exclamation-circle"></i><strong>Warning:</strong> This group will be managed by Disco ICT.<br />
|
||||||
Any <strong>existing members will be removed from the group</strong>, and it will be automatically synchronized with related members.
|
Any <strong>existing members will be removed from the group</strong>, and it will be automatically synchronized with related members.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<form action="#" method="post">
|
|
||||||
<div class="input">
|
|
||||||
<label for="Config_LinkedGroup_Id">Linked Group: </label>
|
|
||||||
<input id="Config_LinkedGroup_Id" type="text" name="GroupId" />
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
$(function () {
|
$(function () {
|
||||||
var dialog;
|
var dialog;
|
||||||
var dialogGroupId;
|
var dialogGroupId;
|
||||||
|
var dialogFilterDate;
|
||||||
var dialogTitle;
|
var dialogTitle;
|
||||||
|
|
||||||
function showDialog(groupId, updateUrl, title) {
|
function showDialog(groupId, filterDateOption, filterDateValue, updateUrl, title) {
|
||||||
if (dialog == null) {
|
if (dialog == null) {
|
||||||
dialog = $('#Config_LinkedGroup_Dialog').dialog({
|
dialog = $('#Config_LinkedGroup_Dialog').dialog({
|
||||||
width: 450,
|
width: 450,
|
||||||
@@ -28,6 +48,14 @@
|
|||||||
autoOpen: false
|
autoOpen: false
|
||||||
});
|
});
|
||||||
|
|
||||||
|
dialogFilterDate = $('#Config_LinkedGroup_FilterDate');
|
||||||
|
dialogFilterDate.datetimepicker({
|
||||||
|
ampm: true,
|
||||||
|
changeYear: true,
|
||||||
|
changeMonth: true,
|
||||||
|
dateFormat: 'yy/mm/dd'
|
||||||
|
});
|
||||||
|
|
||||||
dialogGroupId = $('#Config_LinkedGroup_Id');
|
dialogGroupId = $('#Config_LinkedGroup_Id');
|
||||||
dialogGroupId.focus(function () { $(this).select(); });
|
dialogGroupId.focus(function () { $(this).select(); });
|
||||||
dialogGroupId.autocomplete({
|
dialogGroupId.autocomplete({
|
||||||
@@ -68,6 +96,18 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
dialogGroupId.val(groupId);
|
dialogGroupId.val(groupId);
|
||||||
|
|
||||||
|
if (!!filterDateOption) {
|
||||||
|
if (!!filterDateValue) {
|
||||||
|
dialogFilterDate.datetimepicker('setDate', moment(filterDateValue).toDate());
|
||||||
|
} else {
|
||||||
|
dialogFilterDate.val('');
|
||||||
|
}
|
||||||
|
dialogFilterDate.closest('tr').show();
|
||||||
|
} else {
|
||||||
|
dialogFilterDate.closest('tr').hide();
|
||||||
|
}
|
||||||
|
|
||||||
dialogTitle.text(title);
|
dialogTitle.text(title);
|
||||||
dialog.dialog('option', 'buttons', dialogButtons);
|
dialog.dialog('option', 'buttons', dialogButtons);
|
||||||
dialog.dialog('option', 'title', 'Linked Group: ' + title);
|
dialog.dialog('option', 'title', 'Linked Group: ' + title);
|
||||||
@@ -78,10 +118,12 @@
|
|||||||
$this = $(this);
|
$this = $(this);
|
||||||
|
|
||||||
var configuredGroupId = $this.attr('data-linkedgroupid');
|
var configuredGroupId = $this.attr('data-linkedgroupid');
|
||||||
|
var configuredFilterBeginDate = $this.attr('data-linkedgroupfilterdate');
|
||||||
|
var filterDateOption = $this.attr('data-linkedgroupfilterdateoption') == 'True';
|
||||||
var description = $this.attr('data-linkedroupdescription');
|
var description = $this.attr('data-linkedroupdescription');
|
||||||
var updateUrl = $this.attr('data-linkedroupupdateurl');
|
var updateUrl = $this.attr('data-linkedroupupdateurl');
|
||||||
|
|
||||||
showDialog(configuredGroupId, updateUrl, description);
|
showDialog(configuredGroupId, filterDateOption, configuredFilterBeginDate, updateUrl, description);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated by a tool.
|
// This code was generated by a tool.
|
||||||
// Runtime Version:4.0.30319.34014
|
// Runtime Version:4.0.30319.42000
|
||||||
//
|
//
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
// the code is regenerated.
|
// the code is regenerated.
|
||||||
@@ -27,7 +27,6 @@ namespace Disco.Web.Areas.Config.Views.Shared
|
|||||||
using System.Web.UI;
|
using System.Web.UI;
|
||||||
using System.Web.WebPages;
|
using System.Web.WebPages;
|
||||||
using Disco;
|
using Disco;
|
||||||
using Disco.BI.Extensions;
|
|
||||||
using Disco.Models.Repository;
|
using Disco.Models.Repository;
|
||||||
using Disco.Services;
|
using Disco.Services;
|
||||||
using Disco.Services.Authorization;
|
using Disco.Services.Authorization;
|
||||||
@@ -44,7 +43,15 @@ namespace Disco.Web.Areas.Config.Views.Shared
|
|||||||
}
|
}
|
||||||
public override void Execute()
|
public override void Execute()
|
||||||
{
|
{
|
||||||
WriteLiteral("<div");
|
|
||||||
|
#line 1 "..\..\Areas\Config\Views\Shared\LinkedGroupShared.cshtml"
|
||||||
|
|
||||||
|
Html.BundleDeferred("~/ClientScripts/Modules/jQueryUI-TimePicker");
|
||||||
|
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
WriteLiteral("\r\n<div");
|
||||||
|
|
||||||
WriteLiteral(" id=\"Config_LinkedGroup_Dialog\"");
|
WriteLiteral(" id=\"Config_LinkedGroup_Dialog\"");
|
||||||
|
|
||||||
@@ -56,7 +63,50 @@ WriteLiteral(">\r\n <h3");
|
|||||||
|
|
||||||
WriteLiteral(" id=\"Config_LinkedGroup_Title\"");
|
WriteLiteral(" id=\"Config_LinkedGroup_Title\"");
|
||||||
|
|
||||||
WriteLiteral("></h3>\r\n <div");
|
WriteLiteral("></h3>\r\n <form");
|
||||||
|
|
||||||
|
WriteLiteral(" action=\"#\"");
|
||||||
|
|
||||||
|
WriteLiteral(" method=\"post\"");
|
||||||
|
|
||||||
|
WriteLiteral(">\r\n <table");
|
||||||
|
|
||||||
|
WriteLiteral(" class=\"input\"");
|
||||||
|
|
||||||
|
WriteLiteral(">\r\n <tbody>\r\n <tr>\r\n <th>\r\n " +
|
||||||
|
" <label");
|
||||||
|
|
||||||
|
WriteLiteral(" for=\"Config_LinkedGroup_Id\"");
|
||||||
|
|
||||||
|
WriteLiteral(">Linked Group:</label>\r\n </th>\r\n <td>\r\n " +
|
||||||
|
" <input");
|
||||||
|
|
||||||
|
WriteLiteral(" id=\"Config_LinkedGroup_Id\"");
|
||||||
|
|
||||||
|
WriteLiteral(" type=\"text\"");
|
||||||
|
|
||||||
|
WriteLiteral(" name=\"GroupId\"");
|
||||||
|
|
||||||
|
WriteLiteral(" />\r\n </td>\r\n </tr>\r\n <tr>\r\n " +
|
||||||
|
" <th>\r\n <label");
|
||||||
|
|
||||||
|
WriteLiteral(" for=\"Config_LinkedGroup_FilterDate\"");
|
||||||
|
|
||||||
|
WriteLiteral(">Filter Date: </label>\r\n </th>\r\n <td>\r\n " +
|
||||||
|
" <input");
|
||||||
|
|
||||||
|
WriteLiteral(" id=\"Config_LinkedGroup_FilterDate\"");
|
||||||
|
|
||||||
|
WriteLiteral(" type=\"text\"");
|
||||||
|
|
||||||
|
WriteLiteral(" name=\"FilterBeginDate\"");
|
||||||
|
|
||||||
|
WriteLiteral(" placeholder=\"No Filter\"");
|
||||||
|
|
||||||
|
WriteLiteral(" autocomplete=\"off\"");
|
||||||
|
|
||||||
|
WriteLiteral(" />\r\n </td>\r\n </tr>\r\n </tbody>\r\n " +
|
||||||
|
" </table>\r\n </form>\r\n <div");
|
||||||
|
|
||||||
WriteLiteral(" class=\"info-box error\"");
|
WriteLiteral(" class=\"info-box error\"");
|
||||||
|
|
||||||
@@ -72,39 +122,15 @@ WriteLiteral(@"></i><strong>Warning:</strong> This group will be managed by Disc
|
|||||||
Any <strong>existing members will be removed from the group</strong>, and it will be automatically synchronized with related members.
|
Any <strong>existing members will be removed from the group</strong>, and it will be automatically synchronized with related members.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<form");
|
|
||||||
|
|
||||||
WriteLiteral(" action=\"#\"");
|
|
||||||
|
|
||||||
WriteLiteral(" method=\"post\"");
|
|
||||||
|
|
||||||
WriteLiteral(">\r\n <div");
|
|
||||||
|
|
||||||
WriteLiteral(" class=\"input\"");
|
|
||||||
|
|
||||||
WriteLiteral(">\r\n <label");
|
|
||||||
|
|
||||||
WriteLiteral(" for=\"Config_LinkedGroup_Id\"");
|
|
||||||
|
|
||||||
WriteLiteral(">Linked Group: </label>\r\n <input");
|
|
||||||
|
|
||||||
WriteLiteral(" id=\"Config_LinkedGroup_Id\"");
|
|
||||||
|
|
||||||
WriteLiteral(" type=\"text\"");
|
|
||||||
|
|
||||||
WriteLiteral(" name=\"GroupId\"");
|
|
||||||
|
|
||||||
WriteLiteral(@" />
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
$(function () {
|
$(function () {
|
||||||
var dialog;
|
var dialog;
|
||||||
var dialogGroupId;
|
var dialogGroupId;
|
||||||
|
var dialogFilterDate;
|
||||||
var dialogTitle;
|
var dialogTitle;
|
||||||
|
|
||||||
function showDialog(groupId, updateUrl, title) {
|
function showDialog(groupId, filterDateOption, filterDateValue, updateUrl, title) {
|
||||||
if (dialog == null) {
|
if (dialog == null) {
|
||||||
dialog = $('#Config_LinkedGroup_Dialog').dialog({
|
dialog = $('#Config_LinkedGroup_Dialog').dialog({
|
||||||
width: 450,
|
width: 450,
|
||||||
@@ -113,13 +139,21 @@ WriteLiteral(@" />
|
|||||||
autoOpen: false
|
autoOpen: false
|
||||||
});
|
});
|
||||||
|
|
||||||
|
dialogFilterDate = $('#Config_LinkedGroup_FilterDate');
|
||||||
|
dialogFilterDate.datetimepicker({
|
||||||
|
ampm: true,
|
||||||
|
changeYear: true,
|
||||||
|
changeMonth: true,
|
||||||
|
dateFormat: 'yy/mm/dd'
|
||||||
|
});
|
||||||
|
|
||||||
dialogGroupId = $('#Config_LinkedGroup_Id');
|
dialogGroupId = $('#Config_LinkedGroup_Id');
|
||||||
dialogGroupId.focus(function () { $(this).select(); });
|
dialogGroupId.focus(function () { $(this).select(); });
|
||||||
dialogGroupId.autocomplete({
|
dialogGroupId.autocomplete({
|
||||||
source: '");
|
source: '");
|
||||||
|
|
||||||
|
|
||||||
#line 34 "..\..\Areas\Config\Views\Shared\LinkedGroupShared.cshtml"
|
#line 62 "..\..\Areas\Config\Views\Shared\LinkedGroupShared.cshtml"
|
||||||
Write(Url.Action(MVC.API.System.SearchGroupSubjects()));
|
Write(Url.Action(MVC.API.System.SearchGroupSubjects()));
|
||||||
|
|
||||||
|
|
||||||
@@ -144,15 +178,23 @@ WriteLiteral("\',\r\n minLength: 2,\r\n se
|
|||||||
" dialogGroupId.closest(\'form\').attr(\'action\', updateUrl).submit();\r\n " +
|
" dialogGroupId.closest(\'form\').attr(\'action\', updateUrl).submit();\r\n " +
|
||||||
" }\r\n dialogButtons[\'Cancel\'] = function () {\r\n $(t" +
|
" }\r\n dialogButtons[\'Cancel\'] = function () {\r\n $(t" +
|
||||||
"his).dialog(\'close\');\r\n };\r\n\r\n dialogGroupId.val(groupId);" +
|
"his).dialog(\'close\');\r\n };\r\n\r\n dialogGroupId.val(groupId);" +
|
||||||
"\r\n dialogTitle.text(title);\r\n dialog.dialog(\'option\', \'but" +
|
"\r\n\r\n if (!!filterDateOption) {\r\n if (!!filterDateValue" +
|
||||||
"tons\', dialogButtons);\r\n dialog.dialog(\'option\', \'title\', \'Linked Gro" +
|
") {\r\n dialogFilterDate.datetimepicker(\'setDate\', moment(filte" +
|
||||||
"up: \' + title);\r\n dialog.dialog(\'open\');\r\n }\r\n\r\n $(docu" +
|
"rDateValue).toDate());\r\n } else {\r\n dialogFilt" +
|
||||||
"ment).on(\'click\', \'.Config_LinkedGroup_LinkButton\', function () {\r\n $" +
|
"erDate.val(\'\');\r\n }\r\n dialogFilterDate.closest(\'tr" +
|
||||||
"this = $(this);\r\n\r\n var configuredGroupId = $this.attr(\'data-linkedgr" +
|
"\').show();\r\n } else {\r\n dialogFilterDate.closest(\'tr\')" +
|
||||||
"oupid\');\r\n var description = $this.attr(\'data-linkedroupdescription\')" +
|
".hide();\r\n }\r\n\r\n dialogTitle.text(title);\r\n dia" +
|
||||||
";\r\n var updateUrl = $this.attr(\'data-linkedroupupdateurl\');\r\n\r\n " +
|
"log.dialog(\'option\', \'buttons\', dialogButtons);\r\n dialog.dialog(\'opti" +
|
||||||
" showDialog(configuredGroupId, updateUrl, description);\r\n\r\n retu" +
|
"on\', \'title\', \'Linked Group: \' + title);\r\n dialog.dialog(\'open\');\r\n " +
|
||||||
"rn false;\r\n });\r\n });\r\n</script>\r\n");
|
" }\r\n\r\n $(document).on(\'click\', \'.Config_LinkedGroup_LinkButton\', fun" +
|
||||||
|
"ction () {\r\n $this = $(this);\r\n\r\n var configuredGroupId = " +
|
||||||
|
"$this.attr(\'data-linkedgroupid\');\r\n var configuredFilterBeginDate = $" +
|
||||||
|
"this.attr(\'data-linkedgroupfilterdate\');\r\n var filterDateOption = $th" +
|
||||||
|
"is.attr(\'data-linkedgroupfilterdateoption\') == \'True\';\r\n var descript" +
|
||||||
|
"ion = $this.attr(\'data-linkedroupdescription\');\r\n var updateUrl = $th" +
|
||||||
|
"is.attr(\'data-linkedroupupdateurl\');\r\n\r\n showDialog(configuredGroupId" +
|
||||||
|
", filterDateOption, configuredFilterBeginDate, updateUrl, description);\r\n\r\n " +
|
||||||
|
" return false;\r\n });\r\n });\r\n</script>\r\n");
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,16 +21,19 @@
|
|||||||
<div id="Config_UserFlags_Show" class="form@(hideAdvanced ? " Config_HideAdvanced" : null)" style="width: 550px">
|
<div id="Config_UserFlags_Show" class="form@(hideAdvanced ? " Config_HideAdvanced" : null)" style="width: 550px">
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="width: 150px">Id:
|
<th style="width: 150px">
|
||||||
|
Id:
|
||||||
</th>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
@Html.DisplayFor(model => model.UserFlag.Id)
|
@Html.DisplayFor(model => model.UserFlag.Id)
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Name:
|
<th>
|
||||||
|
Name:
|
||||||
</th>
|
</th>
|
||||||
<td>@if (canConfig)
|
<td>
|
||||||
|
@if (canConfig)
|
||||||
{@Html.EditorFor(model => model.UserFlag.Name)
|
{@Html.EditorFor(model => model.UserFlag.Name)
|
||||||
@AjaxHelpers.AjaxSave()
|
@AjaxHelpers.AjaxSave()
|
||||||
@AjaxHelpers.AjaxLoader()
|
@AjaxHelpers.AjaxLoader()
|
||||||
@@ -52,9 +55,11 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Description:
|
<th>
|
||||||
|
Description:
|
||||||
</th>
|
</th>
|
||||||
<td>@if (canConfig)
|
<td>
|
||||||
|
@if (canConfig)
|
||||||
{@Html.EditorFor(model => model.UserFlag.Description)
|
{@Html.EditorFor(model => model.UserFlag.Description)
|
||||||
@AjaxHelpers.AjaxSave()
|
@AjaxHelpers.AjaxSave()
|
||||||
@AjaxHelpers.AjaxLoader()
|
@AjaxHelpers.AjaxLoader()
|
||||||
@@ -85,7 +90,8 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Statistics:
|
<th>
|
||||||
|
Statistics:
|
||||||
</th>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
<div><strong>@Model.CurrentAssignmentCount user@(Model.CurrentAssignmentCount != 1 ? "s" : null) currently assigned</strong></div>
|
<div><strong>@Model.CurrentAssignmentCount user@(Model.CurrentAssignmentCount != 1 ? "s" : null) currently assigned</strong></div>
|
||||||
@@ -93,7 +99,8 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Icon:
|
<th>
|
||||||
|
Icon:
|
||||||
</th>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
<i id="Config_UserFlags_Icon" data-icon="@(Model.UserFlag.Icon)" data-colour="@(Model.UserFlag.IconColour)" class="fa fa-@(Model.UserFlag.Icon) fa-4x d-@(Model.UserFlag.IconColour)"></i>
|
<i id="Config_UserFlags_Icon" data-icon="@(Model.UserFlag.Icon)" data-colour="@(Model.UserFlag.IconColour)" class="fa fa-@(Model.UserFlag.Icon) fa-4x d-@(Model.UserFlag.IconColour)"></i>
|
||||||
@@ -216,7 +223,8 @@
|
|||||||
</tr>
|
</tr>
|
||||||
}
|
}
|
||||||
<tr class="Config_HideAdvanced_Item">
|
<tr class="Config_HideAdvanced_Item">
|
||||||
<th>Linked Groups:
|
<th>
|
||||||
|
Linked Groups:
|
||||||
</th>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
<div>
|
<div>
|
||||||
@@ -226,6 +234,7 @@
|
|||||||
CategoryDescription = UserFlagUsersManagedGroup.GetCategoryDescription(Model.UserFlag),
|
CategoryDescription = UserFlagUsersManagedGroup.GetCategoryDescription(Model.UserFlag),
|
||||||
Description = UserFlagUsersManagedGroup.GetDescription(Model.UserFlag),
|
Description = UserFlagUsersManagedGroup.GetDescription(Model.UserFlag),
|
||||||
ManagedGroup = Model.UsersLinkedGroup,
|
ManagedGroup = Model.UsersLinkedGroup,
|
||||||
|
IncludeFilterBeginDate = true,
|
||||||
UpdateUrl = Url.Action(MVC.API.UserFlag.UpdateAssignedUsersLinkedGroup(Model.UserFlag.Id, redirect: true))
|
UpdateUrl = Url.Action(MVC.API.UserFlag.UpdateAssignedUsersLinkedGroup(Model.UserFlag.Id, redirect: true))
|
||||||
})
|
})
|
||||||
@Html.Partial(MVC.Config.Shared.Views.LinkedGroupInstance, new LinkedGroupModel()
|
@Html.Partial(MVC.Config.Shared.Views.LinkedGroupInstance, new LinkedGroupModel()
|
||||||
@@ -234,6 +243,7 @@
|
|||||||
CategoryDescription = UserFlagUserDevicesManagedGroup.GetCategoryDescription(Model.UserFlag),
|
CategoryDescription = UserFlagUserDevicesManagedGroup.GetCategoryDescription(Model.UserFlag),
|
||||||
Description = UserFlagUserDevicesManagedGroup.GetDescription(Model.UserFlag),
|
Description = UserFlagUserDevicesManagedGroup.GetDescription(Model.UserFlag),
|
||||||
ManagedGroup = Model.UserDevicesLinkedGroup,
|
ManagedGroup = Model.UserDevicesLinkedGroup,
|
||||||
|
IncludeFilterBeginDate = true,
|
||||||
UpdateUrl = Url.Action(MVC.API.UserFlag.UpdateAssignedUserDevicesLinkedGroup(Model.UserFlag.Id, redirect: true))
|
UpdateUrl = Url.Action(MVC.API.UserFlag.UpdateAssignedUserDevicesLinkedGroup(Model.UserFlag.Id, redirect: true))
|
||||||
})
|
})
|
||||||
@if (canConfig)
|
@if (canConfig)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated by a tool.
|
// This code was generated by a tool.
|
||||||
// Runtime Version:4.0.30319.34014
|
// Runtime Version:4.0.30319.42000
|
||||||
//
|
//
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
// the code is regenerated.
|
// the code is regenerated.
|
||||||
@@ -27,7 +27,6 @@ namespace Disco.Web.Areas.Config.Views.UserFlag
|
|||||||
using System.Web.UI;
|
using System.Web.UI;
|
||||||
using System.Web.WebPages;
|
using System.Web.WebPages;
|
||||||
using Disco;
|
using Disco;
|
||||||
using Disco.BI.Extensions;
|
|
||||||
using Disco.Models.Repository;
|
using Disco.Models.Repository;
|
||||||
using Disco.Services;
|
using Disco.Services;
|
||||||
using Disco.Services.Authorization;
|
using Disco.Services.Authorization;
|
||||||
@@ -104,64 +103,70 @@ WriteLiteral(">\r\n <table>\r\n <tr>\r\n <th");
|
|||||||
|
|
||||||
WriteLiteral(" style=\"width: 150px\"");
|
WriteLiteral(" style=\"width: 150px\"");
|
||||||
|
|
||||||
WriteLiteral(">Id:\r\n </th>\r\n <td>\r\n");
|
WriteLiteral(">\r\n Id:\r\n </th>\r\n <td>\r\n");
|
||||||
|
|
||||||
WriteLiteral(" ");
|
WriteLiteral(" ");
|
||||||
|
|
||||||
|
|
||||||
#line 27 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 28 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
Write(Html.DisplayFor(model => model.UserFlag.Id));
|
Write(Html.DisplayFor(model => model.UserFlag.Id));
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th>Name:\r\n " +
|
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th>\r\n " +
|
||||||
" </th>\r\n <td>");
|
" Name:\r\n </th>\r\n <td>\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 33 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 36 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
|
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
#line 36 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
if (canConfig)
|
if (canConfig)
|
||||||
{
|
{
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 34 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 37 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
Write(Html.EditorFor(model => model.UserFlag.Name));
|
Write(Html.EditorFor(model => model.UserFlag.Name));
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 34 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 37 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 35 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 38 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
Write(AjaxHelpers.AjaxSave());
|
Write(AjaxHelpers.AjaxSave());
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 35 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 38 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 36 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 39 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
Write(AjaxHelpers.AjaxLoader());
|
Write(AjaxHelpers.AjaxLoader());
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 36 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 39 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -171,12 +176,13 @@ WriteLiteral(" <script");
|
|||||||
|
|
||||||
WriteLiteral(" type=\"text/javascript\"");
|
WriteLiteral(" type=\"text/javascript\"");
|
||||||
|
|
||||||
WriteLiteral(">\r\n $(function () {\r\n document.DiscoFun" +
|
WriteLiteral(">\r\n $(function () {\r\n document." +
|
||||||
"ctions.PropertyChangeHelper(\r\n $(\'#UserFlag_Name\'),\r\n" +
|
"DiscoFunctions.PropertyChangeHelper(\r\n $(\'#UserFl" +
|
||||||
" \'Invalid Name\',\r\n \'");
|
"ag_Name\'),\r\n \'Invalid Name\',\r\n " +
|
||||||
|
" \'");
|
||||||
|
|
||||||
|
|
||||||
#line 42 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 45 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
Write(Url.Action(MVC.API.UserFlag.UpdateName(Model.UserFlag.Id)));
|
Write(Url.Action(MVC.API.UserFlag.UpdateName(Model.UserFlag.Id)));
|
||||||
|
|
||||||
|
|
||||||
@@ -186,7 +192,7 @@ WriteLiteral("\',\r\n \'FlagName\'\r\n
|
|||||||
" });\r\n </script>\r\n");
|
" });\r\n </script>\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 47 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 50 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -195,67 +201,73 @@ WriteLiteral("\',\r\n \'FlagName\'\r\n
|
|||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 50 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 53 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
Write(Model.UserFlag.Name);
|
Write(Model.UserFlag.Name);
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 50 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 53 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
WriteLiteral(" </td>\r\n </tr>\r\n <tr>\r\n <th>Description:\r\n " +
|
WriteLiteral(" </td>\r\n </tr>\r\n <tr>\r\n <th>\r\n " +
|
||||||
" </th>\r\n <td>");
|
" Description:\r\n </th>\r\n <td>\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 57 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 62 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
|
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
#line 62 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
if (canConfig)
|
if (canConfig)
|
||||||
{
|
{
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 58 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 63 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
Write(Html.EditorFor(model => model.UserFlag.Description));
|
Write(Html.EditorFor(model => model.UserFlag.Description));
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 58 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 63 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 59 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 64 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
Write(AjaxHelpers.AjaxSave());
|
Write(AjaxHelpers.AjaxSave());
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 59 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 64 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 60 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 65 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
Write(AjaxHelpers.AjaxLoader());
|
Write(AjaxHelpers.AjaxLoader());
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 60 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 65 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -265,23 +277,25 @@ WriteLiteral(" <script");
|
|||||||
|
|
||||||
WriteLiteral(" type=\"text/javascript\"");
|
WriteLiteral(" type=\"text/javascript\"");
|
||||||
|
|
||||||
WriteLiteral(">\r\n $(function () {\r\n document.DiscoFun" +
|
WriteLiteral(@">
|
||||||
"ctions.PropertyChangeHelper(\r\n $(\'#UserFlag_Descripti" +
|
$(function () {
|
||||||
"on\'),\r\n \'Invalid Description\',\r\n " +
|
document.DiscoFunctions.PropertyChangeHelper(
|
||||||
" \'");
|
$('#UserFlag_Description'),
|
||||||
|
'Invalid Description',
|
||||||
|
'");
|
||||||
|
|
||||||
|
|
||||||
#line 66 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 71 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
Write(Url.Action(MVC.API.UserFlag.UpdateDescription(Model.UserFlag.Id)));
|
Write(Url.Action(MVC.API.UserFlag.UpdateDescription(Model.UserFlag.Id)));
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
WriteLiteral("\',\r\n \'Description\'\r\n );\r\n " +
|
WriteLiteral("\',\r\n \'Description\'\r\n );" +
|
||||||
" });\r\n </script>\r\n");
|
"\r\n });\r\n </script>\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 71 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 76 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -292,13 +306,13 @@ WriteLiteral("\',\r\n \'Description\'\r\n
|
|||||||
WriteLiteral(" <pre>\r\n");
|
WriteLiteral(" <pre>\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 75 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 80 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 75 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 80 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
if (string.IsNullOrEmpty(Model.UserFlag.Description))
|
if (string.IsNullOrEmpty(Model.UserFlag.Description))
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -312,7 +326,7 @@ WriteLiteral("<None>");
|
|||||||
WriteLiteral("\r\n");
|
WriteLiteral("\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 78 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 83 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -321,14 +335,14 @@ WriteLiteral("\r\n");
|
|||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 81 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 86 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
Write(Model.UserFlag.Description.ToHtmlComment());
|
Write(Model.UserFlag.Description.ToHtmlComment());
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 81 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 86 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -338,17 +352,18 @@ WriteLiteral("\r\n");
|
|||||||
WriteLiteral(" </pre>\r\n");
|
WriteLiteral(" </pre>\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 84 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 89 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
WriteLiteral(" </td>\r\n </tr>\r\n <tr>\r\n <th>Statistics:\r\n " +
|
WriteLiteral(" </td>\r\n </tr>\r\n <tr>\r\n <th>\r\n " +
|
||||||
" </th>\r\n <td>\r\n <div><strong>");
|
" Statistics:\r\n </th>\r\n <td>\r\n <div><strong>" +
|
||||||
|
"");
|
||||||
|
|
||||||
|
|
||||||
#line 91 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 97 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
Write(Model.CurrentAssignmentCount);
|
Write(Model.CurrentAssignmentCount);
|
||||||
|
|
||||||
|
|
||||||
@@ -357,7 +372,7 @@ WriteLiteral(" </td>\r\n </tr>\r\n <tr>\r\n
|
|||||||
WriteLiteral(" user");
|
WriteLiteral(" user");
|
||||||
|
|
||||||
|
|
||||||
#line 91 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 97 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
Write(Model.CurrentAssignmentCount != 1 ? "s" : null);
|
Write(Model.CurrentAssignmentCount != 1 ? "s" : null);
|
||||||
|
|
||||||
|
|
||||||
@@ -366,7 +381,7 @@ WriteLiteral(" user");
|
|||||||
WriteLiteral(" currently assigned</strong></div>\r\n <div>");
|
WriteLiteral(" currently assigned</strong></div>\r\n <div>");
|
||||||
|
|
||||||
|
|
||||||
#line 92 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 98 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
Write(Model.TotalAssignmentCount);
|
Write(Model.TotalAssignmentCount);
|
||||||
|
|
||||||
|
|
||||||
@@ -375,21 +390,21 @@ WriteLiteral(" currently assigned</strong></div>\r\n <div>");
|
|||||||
WriteLiteral(" total user historical assignment");
|
WriteLiteral(" total user historical assignment");
|
||||||
|
|
||||||
|
|
||||||
#line 92 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 98 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
Write(Model.TotalAssignmentCount != 1 ? "s" : null);
|
Write(Model.TotalAssignmentCount != 1 ? "s" : null);
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
WriteLiteral("</div>\r\n </td>\r\n </tr>\r\n <tr>\r\n <th>Icon:\r\n " +
|
WriteLiteral("</div>\r\n </td>\r\n </tr>\r\n <tr>\r\n <th>\r\n " +
|
||||||
" </th>\r\n <td>\r\n <i");
|
" Icon:\r\n </th>\r\n <td>\r\n <i");
|
||||||
|
|
||||||
WriteLiteral(" id=\"Config_UserFlags_Icon\"");
|
WriteLiteral(" id=\"Config_UserFlags_Icon\"");
|
||||||
|
|
||||||
WriteLiteral(" data-icon=\"");
|
WriteLiteral(" data-icon=\"");
|
||||||
|
|
||||||
|
|
||||||
#line 99 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 106 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
Write(Model.UserFlag.Icon);
|
Write(Model.UserFlag.Icon);
|
||||||
|
|
||||||
|
|
||||||
@@ -400,7 +415,7 @@ WriteLiteral("\"");
|
|||||||
WriteLiteral(" data-colour=\"");
|
WriteLiteral(" data-colour=\"");
|
||||||
|
|
||||||
|
|
||||||
#line 99 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 106 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
Write(Model.UserFlag.IconColour);
|
Write(Model.UserFlag.IconColour);
|
||||||
|
|
||||||
|
|
||||||
@@ -408,37 +423,37 @@ WriteLiteral(" data-colour=\"");
|
|||||||
#line hidden
|
#line hidden
|
||||||
WriteLiteral("\"");
|
WriteLiteral("\"");
|
||||||
|
|
||||||
WriteAttribute("class", Tuple.Create(" class=\"", 4042), Tuple.Create("\"", 4115)
|
WriteAttribute("class", Tuple.Create(" class=\"", 4268), Tuple.Create("\"", 4341)
|
||||||
, Tuple.Create(Tuple.Create("", 4050), Tuple.Create("fa", 4050), true)
|
, Tuple.Create(Tuple.Create("", 4276), Tuple.Create("fa", 4276), true)
|
||||||
, Tuple.Create(Tuple.Create(" ", 4052), Tuple.Create("fa-", 4053), true)
|
, Tuple.Create(Tuple.Create(" ", 4278), Tuple.Create("fa-", 4279), true)
|
||||||
|
|
||||||
#line 99 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 106 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
, Tuple.Create(Tuple.Create("", 4056), Tuple.Create<System.Object, System.Int32>(Model.UserFlag.Icon
|
, Tuple.Create(Tuple.Create("", 4282), Tuple.Create<System.Object, System.Int32>(Model.UserFlag.Icon
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
, 4056), false)
|
, 4282), false)
|
||||||
, Tuple.Create(Tuple.Create(" ", 4078), Tuple.Create("fa-4x", 4079), true)
|
, Tuple.Create(Tuple.Create(" ", 4304), Tuple.Create("fa-4x", 4305), true)
|
||||||
, Tuple.Create(Tuple.Create(" ", 4084), Tuple.Create("d-", 4085), true)
|
, Tuple.Create(Tuple.Create(" ", 4310), Tuple.Create("d-", 4311), true)
|
||||||
|
|
||||||
#line 99 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 106 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
, Tuple.Create(Tuple.Create("", 4087), Tuple.Create<System.Object, System.Int32>(Model.UserFlag.IconColour
|
, Tuple.Create(Tuple.Create("", 4313), Tuple.Create<System.Object, System.Int32>(Model.UserFlag.IconColour
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
, 4087), false)
|
, 4313), false)
|
||||||
);
|
);
|
||||||
|
|
||||||
WriteLiteral("></i>\r\n");
|
WriteLiteral("></i>\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 100 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 107 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 100 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 107 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
if (canConfig)
|
if (canConfig)
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -468,13 +483,13 @@ WriteLiteral(" class=\"icons\"");
|
|||||||
WriteLiteral(">\r\n");
|
WriteLiteral(">\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 107 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 114 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 107 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 114 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
foreach (var icon in Model.Icons)
|
foreach (var icon in Model.Icons)
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -486,7 +501,7 @@ WriteLiteral(" <i");
|
|||||||
WriteLiteral(" data-icon=\"");
|
WriteLiteral(" data-icon=\"");
|
||||||
|
|
||||||
|
|
||||||
#line 109 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 116 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
Write(icon.Key);
|
Write(icon.Key);
|
||||||
|
|
||||||
|
|
||||||
@@ -494,32 +509,32 @@ WriteLiteral(" data-icon=\"");
|
|||||||
#line hidden
|
#line hidden
|
||||||
WriteLiteral("\"");
|
WriteLiteral("\"");
|
||||||
|
|
||||||
WriteAttribute("class", Tuple.Create(" class=\"", 4680), Tuple.Create("\"", 4705)
|
WriteAttribute("class", Tuple.Create(" class=\"", 4906), Tuple.Create("\"", 4931)
|
||||||
, Tuple.Create(Tuple.Create("", 4688), Tuple.Create("fa", 4688), true)
|
, Tuple.Create(Tuple.Create("", 4914), Tuple.Create("fa", 4914), true)
|
||||||
, Tuple.Create(Tuple.Create(" ", 4690), Tuple.Create("fa-", 4691), true)
|
, Tuple.Create(Tuple.Create(" ", 4916), Tuple.Create("fa-", 4917), true)
|
||||||
|
|
||||||
#line 109 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 116 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
, Tuple.Create(Tuple.Create("", 4694), Tuple.Create<System.Object, System.Int32>(icon.Key
|
, Tuple.Create(Tuple.Create("", 4920), Tuple.Create<System.Object, System.Int32>(icon.Key
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
, 4694), false)
|
, 4920), false)
|
||||||
);
|
);
|
||||||
|
|
||||||
WriteAttribute("title", Tuple.Create(" title=\"", 4706), Tuple.Create("\"", 4725)
|
WriteAttribute("title", Tuple.Create(" title=\"", 4932), Tuple.Create("\"", 4951)
|
||||||
|
|
||||||
#line 109 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 116 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
, Tuple.Create(Tuple.Create("", 4714), Tuple.Create<System.Object, System.Int32>(icon.Value
|
, Tuple.Create(Tuple.Create("", 4940), Tuple.Create<System.Object, System.Int32>(icon.Value
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
, 4714), false)
|
, 4940), false)
|
||||||
);
|
);
|
||||||
|
|
||||||
WriteLiteral("></i>\r\n");
|
WriteLiteral("></i>\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 110 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 117 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -532,13 +547,13 @@ WriteLiteral(" class=\"colours\"");
|
|||||||
WriteLiteral(">\r\n");
|
WriteLiteral(">\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 113 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 120 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 113 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 120 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
foreach (var colour in Model.ThemeColours)
|
foreach (var colour in Model.ThemeColours)
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -550,7 +565,7 @@ WriteLiteral(" <i");
|
|||||||
WriteLiteral(" data-colour=\"");
|
WriteLiteral(" data-colour=\"");
|
||||||
|
|
||||||
|
|
||||||
#line 115 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 122 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
Write(colour.Key);
|
Write(colour.Key);
|
||||||
|
|
||||||
|
|
||||||
@@ -558,33 +573,33 @@ WriteLiteral(" data-colour=\"");
|
|||||||
#line hidden
|
#line hidden
|
||||||
WriteLiteral("\"");
|
WriteLiteral("\"");
|
||||||
|
|
||||||
WriteAttribute("class", Tuple.Create(" class=\"", 5057), Tuple.Create("\"", 5093)
|
WriteAttribute("class", Tuple.Create(" class=\"", 5283), Tuple.Create("\"", 5319)
|
||||||
, Tuple.Create(Tuple.Create("", 5065), Tuple.Create("fa", 5065), true)
|
, Tuple.Create(Tuple.Create("", 5291), Tuple.Create("fa", 5291), true)
|
||||||
, Tuple.Create(Tuple.Create(" ", 5067), Tuple.Create("fa-square", 5068), true)
|
, Tuple.Create(Tuple.Create(" ", 5293), Tuple.Create("fa-square", 5294), true)
|
||||||
, Tuple.Create(Tuple.Create(" ", 5077), Tuple.Create("d-", 5078), true)
|
, Tuple.Create(Tuple.Create(" ", 5303), Tuple.Create("d-", 5304), true)
|
||||||
|
|
||||||
#line 115 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 122 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
, Tuple.Create(Tuple.Create("", 5080), Tuple.Create<System.Object, System.Int32>(colour.Key
|
, Tuple.Create(Tuple.Create("", 5306), Tuple.Create<System.Object, System.Int32>(colour.Key
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
, 5080), false)
|
, 5306), false)
|
||||||
);
|
);
|
||||||
|
|
||||||
WriteAttribute("title", Tuple.Create(" title=\"", 5094), Tuple.Create("\"", 5115)
|
WriteAttribute("title", Tuple.Create(" title=\"", 5320), Tuple.Create("\"", 5341)
|
||||||
|
|
||||||
#line 115 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 122 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
, Tuple.Create(Tuple.Create("", 5102), Tuple.Create<System.Object, System.Int32>(colour.Value
|
, Tuple.Create(Tuple.Create("", 5328), Tuple.Create<System.Object, System.Int32>(colour.Value
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
, 5102), false)
|
, 5328), false)
|
||||||
);
|
);
|
||||||
|
|
||||||
WriteLiteral("></i>\r\n");
|
WriteLiteral("></i>\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 116 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 123 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -631,7 +646,7 @@ WriteLiteral(" </div>\r\n
|
|||||||
"save() {\r\n var url = \'");
|
"save() {\r\n var url = \'");
|
||||||
|
|
||||||
|
|
||||||
#line 176 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 183 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
Write(Url.Action(MVC.API.UserFlag.UpdateIconAndColour(id: Model.UserFlag.Id, redirect: true)));
|
Write(Url.Action(MVC.API.UserFlag.UpdateIconAndColour(id: Model.UserFlag.Id, redirect: true)));
|
||||||
|
|
||||||
|
|
||||||
@@ -662,7 +677,7 @@ WriteLiteral(@"',
|
|||||||
");
|
");
|
||||||
|
|
||||||
|
|
||||||
#line 198 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 205 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -671,13 +686,13 @@ WriteLiteral(@"',
|
|||||||
WriteLiteral(" </td>\r\n </tr>\r\n");
|
WriteLiteral(" </td>\r\n </tr>\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 201 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 208 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 201 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 208 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
if (hideAdvanced)
|
if (hideAdvanced)
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -711,7 +726,7 @@ WriteLiteral(@">Show Advanced Options</button>
|
|||||||
");
|
");
|
||||||
|
|
||||||
|
|
||||||
#line 217 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 224 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -721,19 +736,20 @@ WriteLiteral(" <tr");
|
|||||||
|
|
||||||
WriteLiteral(" class=\"Config_HideAdvanced_Item\"");
|
WriteLiteral(" class=\"Config_HideAdvanced_Item\"");
|
||||||
|
|
||||||
WriteLiteral(">\r\n <th>Linked Groups:\r\n </th>\r\n <td>\r\n " +
|
WriteLiteral(">\r\n <th>\r\n Linked Groups:\r\n </th>\r\n " +
|
||||||
" <div>\r\n");
|
" <td>\r\n <div>\r\n");
|
||||||
|
|
||||||
WriteLiteral(" ");
|
WriteLiteral(" ");
|
||||||
|
|
||||||
|
|
||||||
#line 223 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 231 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
Write(Html.Partial(MVC.Config.Shared.Views.LinkedGroupInstance, new LinkedGroupModel()
|
Write(Html.Partial(MVC.Config.Shared.Views.LinkedGroupInstance, new LinkedGroupModel()
|
||||||
{
|
{
|
||||||
CanConfigure = canConfig,
|
CanConfigure = canConfig,
|
||||||
CategoryDescription = UserFlagUsersManagedGroup.GetCategoryDescription(Model.UserFlag),
|
CategoryDescription = UserFlagUsersManagedGroup.GetCategoryDescription(Model.UserFlag),
|
||||||
Description = UserFlagUsersManagedGroup.GetDescription(Model.UserFlag),
|
Description = UserFlagUsersManagedGroup.GetDescription(Model.UserFlag),
|
||||||
ManagedGroup = Model.UsersLinkedGroup,
|
ManagedGroup = Model.UsersLinkedGroup,
|
||||||
|
IncludeFilterBeginDate = true,
|
||||||
UpdateUrl = Url.Action(MVC.API.UserFlag.UpdateAssignedUsersLinkedGroup(Model.UserFlag.Id, redirect: true))
|
UpdateUrl = Url.Action(MVC.API.UserFlag.UpdateAssignedUsersLinkedGroup(Model.UserFlag.Id, redirect: true))
|
||||||
}));
|
}));
|
||||||
|
|
||||||
@@ -745,13 +761,14 @@ WriteLiteral("\r\n");
|
|||||||
WriteLiteral(" ");
|
WriteLiteral(" ");
|
||||||
|
|
||||||
|
|
||||||
#line 231 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 240 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
Write(Html.Partial(MVC.Config.Shared.Views.LinkedGroupInstance, new LinkedGroupModel()
|
Write(Html.Partial(MVC.Config.Shared.Views.LinkedGroupInstance, new LinkedGroupModel()
|
||||||
{
|
{
|
||||||
CanConfigure = canConfig,
|
CanConfigure = canConfig,
|
||||||
CategoryDescription = UserFlagUserDevicesManagedGroup.GetCategoryDescription(Model.UserFlag),
|
CategoryDescription = UserFlagUserDevicesManagedGroup.GetCategoryDescription(Model.UserFlag),
|
||||||
Description = UserFlagUserDevicesManagedGroup.GetDescription(Model.UserFlag),
|
Description = UserFlagUserDevicesManagedGroup.GetDescription(Model.UserFlag),
|
||||||
ManagedGroup = Model.UserDevicesLinkedGroup,
|
ManagedGroup = Model.UserDevicesLinkedGroup,
|
||||||
|
IncludeFilterBeginDate = true,
|
||||||
UpdateUrl = Url.Action(MVC.API.UserFlag.UpdateAssignedUserDevicesLinkedGroup(Model.UserFlag.Id, redirect: true))
|
UpdateUrl = Url.Action(MVC.API.UserFlag.UpdateAssignedUserDevicesLinkedGroup(Model.UserFlag.Id, redirect: true))
|
||||||
}));
|
}));
|
||||||
|
|
||||||
@@ -761,13 +778,13 @@ WriteLiteral(" ");
|
|||||||
WriteLiteral("\r\n");
|
WriteLiteral("\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 239 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 249 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 239 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 249 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
if (canConfig)
|
if (canConfig)
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -775,14 +792,14 @@ WriteLiteral("\r\n");
|
|||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 241 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 251 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
Write(Html.Partial(MVC.Config.Shared.Views.LinkedGroupShared));
|
Write(Html.Partial(MVC.Config.Shared.Views.LinkedGroupShared));
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 241 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 251 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -792,7 +809,7 @@ WriteLiteral("\r\n");
|
|||||||
WriteLiteral(" </div>\r\n </td>\r\n </tr>\r\n </table>\r\n</div>\r\n");
|
WriteLiteral(" </div>\r\n </td>\r\n </tr>\r\n </table>\r\n</div>\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 248 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 258 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
if (canBulkAssignment || canDelete || canShowUsers)
|
if (canBulkAssignment || canDelete || canShowUsers)
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -806,13 +823,13 @@ WriteLiteral(" class=\"actionBar\"");
|
|||||||
WriteLiteral(">\r\n");
|
WriteLiteral(">\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 251 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 261 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 251 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 261 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
if (canBulkAssignment)
|
if (canBulkAssignment)
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -898,7 +915,7 @@ WriteLiteral(">\r\n user6<br />\r\n
|
|||||||
WriteLiteral(" ");
|
WriteLiteral(" ");
|
||||||
|
|
||||||
|
|
||||||
#line 284 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 294 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
Write(ActiveDirectory.Context.PrimaryDomain.NetBiosName);
|
Write(ActiveDirectory.Context.PrimaryDomain.NetBiosName);
|
||||||
|
|
||||||
|
|
||||||
@@ -911,7 +928,7 @@ WriteLiteral(" class=\"code\"");
|
|||||||
WriteLiteral(">user6,smi0099,");
|
WriteLiteral(">user6,smi0099,");
|
||||||
|
|
||||||
|
|
||||||
#line 286 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 296 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
Write(ActiveDirectory.Context.PrimaryDomain.NetBiosName);
|
Write(ActiveDirectory.Context.PrimaryDomain.NetBiosName);
|
||||||
|
|
||||||
|
|
||||||
@@ -924,7 +941,7 @@ WriteLiteral(" class=\"code\"");
|
|||||||
WriteLiteral(">user6;smi0099;");
|
WriteLiteral(">user6;smi0099;");
|
||||||
|
|
||||||
|
|
||||||
#line 287 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 297 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
Write(ActiveDirectory.Context.PrimaryDomain.NetBiosName);
|
Write(ActiveDirectory.Context.PrimaryDomain.NetBiosName);
|
||||||
|
|
||||||
|
|
||||||
@@ -999,7 +1016,7 @@ WriteLiteral(" <script>\r\n $(function () {\r\n
|
|||||||
"\').attr(\'action\', \'");
|
"\').attr(\'action\', \'");
|
||||||
|
|
||||||
|
|
||||||
#line 354 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 364 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
Write(Url.Action(MVC.API.UserFlag.BulkAssignUsers(Model.UserFlag.Id, true)));
|
Write(Url.Action(MVC.API.UserFlag.BulkAssignUsers(Model.UserFlag.Id, true)));
|
||||||
|
|
||||||
|
|
||||||
@@ -1009,7 +1026,7 @@ WriteLiteral("\');\r\n\r\n assignDialog.addClass(\'lo
|
|||||||
" $.getJSON(\'");
|
" $.getJSON(\'");
|
||||||
|
|
||||||
|
|
||||||
#line 357 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 367 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
Write(Url.Action(MVC.API.UserFlag.AssignedUsers(Model.UserFlag.Id)));
|
Write(Url.Action(MVC.API.UserFlag.AssignedUsers(Model.UserFlag.Id)));
|
||||||
|
|
||||||
|
|
||||||
@@ -1035,7 +1052,7 @@ WriteLiteral(@"', function (response, result) {
|
|||||||
assignUserIds.closest('form').attr('action', '");
|
assignUserIds.closest('form').attr('action', '");
|
||||||
|
|
||||||
|
|
||||||
#line 374 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 384 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
Write(Url.Action(MVC.API.UserFlag.BulkAssignUsers(Model.UserFlag.Id, false)));
|
Write(Url.Action(MVC.API.UserFlag.BulkAssignUsers(Model.UserFlag.Id, false)));
|
||||||
|
|
||||||
|
|
||||||
@@ -1056,7 +1073,7 @@ WriteLiteral(@"');
|
|||||||
");
|
");
|
||||||
|
|
||||||
|
|
||||||
#line 386 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 396 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1065,13 +1082,13 @@ WriteLiteral(@"');
|
|||||||
WriteLiteral("\r\n\r\n\r\n");
|
WriteLiteral("\r\n\r\n\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 390 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 400 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 390 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 400 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
if (canDelete)
|
if (canDelete)
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -1079,14 +1096,14 @@ WriteLiteral("\r\n\r\n\r\n");
|
|||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 392 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 402 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
Write(Html.ActionLinkButton("Delete", MVC.API.UserFlag.Delete(Model.UserFlag.Id, true), "Config_UserFlags_Actions_Delete_Button"));
|
Write(Html.ActionLinkButton("Delete", MVC.API.UserFlag.Delete(Model.UserFlag.Id, true), "Config_UserFlags_Actions_Delete_Button"));
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 392 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 402 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1106,13 +1123,13 @@ WriteLiteral("></i>\r\n This item will be permanently deleted
|
|||||||
"covered.<br />\r\n <br />\r\n");
|
"covered.<br />\r\n <br />\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 398 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 408 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 398 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 408 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
if (Model.CurrentAssignmentCount > 0)
|
if (Model.CurrentAssignmentCount > 0)
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -1122,7 +1139,7 @@ WriteLiteral("></i>\r\n This item will be permanently deleted
|
|||||||
WriteLiteral(" <strong>");
|
WriteLiteral(" <strong>");
|
||||||
|
|
||||||
|
|
||||||
#line 400 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 410 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
Write(Model.CurrentAssignmentCount);
|
Write(Model.CurrentAssignmentCount);
|
||||||
|
|
||||||
|
|
||||||
@@ -1131,7 +1148,7 @@ WriteLiteral(" <strong>");
|
|||||||
WriteLiteral(" user");
|
WriteLiteral(" user");
|
||||||
|
|
||||||
|
|
||||||
#line 400 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 410 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
Write(Model.CurrentAssignmentCount != 1 ? "s are" : " is");
|
Write(Model.CurrentAssignmentCount != 1 ? "s are" : " is");
|
||||||
|
|
||||||
|
|
||||||
@@ -1144,7 +1161,7 @@ WriteLiteral(" <br />\r\n");
|
|||||||
WriteLiteral(" <br />\r\n");
|
WriteLiteral(" <br />\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 403 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 413 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1187,7 +1204,7 @@ WriteLiteral(@">
|
|||||||
");
|
");
|
||||||
|
|
||||||
|
|
||||||
#line 435 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 445 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1196,7 +1213,7 @@ WriteLiteral(@">
|
|||||||
WriteLiteral(" ");
|
WriteLiteral(" ");
|
||||||
|
|
||||||
|
|
||||||
#line 436 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 446 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
if (canShowUsers)
|
if (canShowUsers)
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -1204,14 +1221,14 @@ WriteLiteral(" ");
|
|||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 438 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 448 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
Write(Html.ActionLinkButton(string.Format("Show {0} user{1}", Model.CurrentAssignmentCount, (Model.CurrentAssignmentCount == 1 ? null : "s")), MVC.Search.Query(Model.UserFlag.Id.ToString(), "UserFlag"), "Config_UserFlags_Actions_ShowUsers_Button"));
|
Write(Html.ActionLinkButton(string.Format("Show {0} user{1}", Model.CurrentAssignmentCount, (Model.CurrentAssignmentCount == 1 ? null : "s")), MVC.Search.Query(Model.UserFlag.Id.ToString(), "UserFlag"), "Config_UserFlags_Actions_ShowUsers_Button"));
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
#line 438 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 448 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1221,7 +1238,7 @@ WriteLiteral(" ");
|
|||||||
WriteLiteral(" </div>\r\n");
|
WriteLiteral(" </div>\r\n");
|
||||||
|
|
||||||
|
|
||||||
#line 441 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
#line 451 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
|
||||||
}
|
}
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
|
|||||||
@@ -117,9 +117,12 @@
|
|||||||
#Config_LinkedGroup_Dialog h3 {
|
#Config_LinkedGroup_Dialog h3 {
|
||||||
margin-bottom: 6px;
|
margin-bottom: 6px;
|
||||||
}
|
}
|
||||||
#Config_LinkedGroup_Dialog div.input {
|
#Config_LinkedGroup_Dialog table.input {
|
||||||
margin-top: 12px;
|
margin-top: 12px;
|
||||||
}
|
}
|
||||||
|
#Config_LinkedGroup_Dialog table.input th {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
#expressionEditor #expressionEditorExceptionContainer {
|
#expressionEditor #expressionEditorExceptionContainer {
|
||||||
display: none;
|
display: none;
|
||||||
border: 1px dashed #FF9696;
|
border: 1px dashed #FF9696;
|
||||||
|
|||||||
@@ -49,8 +49,12 @@
|
|||||||
margin-bottom: 6px;
|
margin-bottom: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.input {
|
table.input {
|
||||||
margin-top: 12px;
|
margin-top: 12px;
|
||||||
|
|
||||||
|
th {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -239,6 +239,7 @@ namespace Disco.Web.Areas.API.Controllers
|
|||||||
{
|
{
|
||||||
public readonly string id = "id";
|
public readonly string id = "id";
|
||||||
public readonly string GroupId = "GroupId";
|
public readonly string GroupId = "GroupId";
|
||||||
|
public readonly string FilterBeginDate = "FilterBeginDate";
|
||||||
public readonly string redirect = "redirect";
|
public readonly string redirect = "redirect";
|
||||||
}
|
}
|
||||||
static readonly ActionParamsClass_UpdateAssignedUserDevicesLinkedGroup s_params_UpdateAssignedUserDevicesLinkedGroup = new ActionParamsClass_UpdateAssignedUserDevicesLinkedGroup();
|
static readonly ActionParamsClass_UpdateAssignedUserDevicesLinkedGroup s_params_UpdateAssignedUserDevicesLinkedGroup = new ActionParamsClass_UpdateAssignedUserDevicesLinkedGroup();
|
||||||
@@ -249,6 +250,7 @@ namespace Disco.Web.Areas.API.Controllers
|
|||||||
{
|
{
|
||||||
public readonly string id = "id";
|
public readonly string id = "id";
|
||||||
public readonly string GroupId = "GroupId";
|
public readonly string GroupId = "GroupId";
|
||||||
|
public readonly string FilterBeginDate = "FilterBeginDate";
|
||||||
public readonly string redirect = "redirect";
|
public readonly string redirect = "redirect";
|
||||||
}
|
}
|
||||||
static readonly ActionParamsClass_Delete s_params_Delete = new ActionParamsClass_Delete();
|
static readonly ActionParamsClass_Delete s_params_Delete = new ActionParamsClass_Delete();
|
||||||
@@ -385,30 +387,32 @@ namespace Disco.Web.Areas.API.Controllers
|
|||||||
}
|
}
|
||||||
|
|
||||||
[NonAction]
|
[NonAction]
|
||||||
partial void UpdateAssignedUsersLinkedGroupOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, int id, string GroupId, bool redirect);
|
partial void UpdateAssignedUsersLinkedGroupOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, int id, string GroupId, System.DateTime? FilterBeginDate, bool redirect);
|
||||||
|
|
||||||
[NonAction]
|
[NonAction]
|
||||||
public override System.Web.Mvc.ActionResult UpdateAssignedUsersLinkedGroup(int id, string GroupId, bool redirect)
|
public override System.Web.Mvc.ActionResult UpdateAssignedUsersLinkedGroup(int id, string GroupId, System.DateTime? FilterBeginDate, bool redirect)
|
||||||
{
|
{
|
||||||
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.UpdateAssignedUsersLinkedGroup);
|
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.UpdateAssignedUsersLinkedGroup);
|
||||||
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "id", id);
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "id", id);
|
||||||
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "GroupId", GroupId);
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "GroupId", GroupId);
|
||||||
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "FilterBeginDate", FilterBeginDate);
|
||||||
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "redirect", redirect);
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "redirect", redirect);
|
||||||
UpdateAssignedUsersLinkedGroupOverride(callInfo, id, GroupId, redirect);
|
UpdateAssignedUsersLinkedGroupOverride(callInfo, id, GroupId, FilterBeginDate, redirect);
|
||||||
return callInfo;
|
return callInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
[NonAction]
|
[NonAction]
|
||||||
partial void UpdateAssignedUserDevicesLinkedGroupOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, int id, string GroupId, bool redirect);
|
partial void UpdateAssignedUserDevicesLinkedGroupOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, int id, string GroupId, System.DateTime? FilterBeginDate, bool redirect);
|
||||||
|
|
||||||
[NonAction]
|
[NonAction]
|
||||||
public override System.Web.Mvc.ActionResult UpdateAssignedUserDevicesLinkedGroup(int id, string GroupId, bool redirect)
|
public override System.Web.Mvc.ActionResult UpdateAssignedUserDevicesLinkedGroup(int id, string GroupId, System.DateTime? FilterBeginDate, bool redirect)
|
||||||
{
|
{
|
||||||
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.UpdateAssignedUserDevicesLinkedGroup);
|
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.UpdateAssignedUserDevicesLinkedGroup);
|
||||||
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "id", id);
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "id", id);
|
||||||
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "GroupId", GroupId);
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "GroupId", GroupId);
|
||||||
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "FilterBeginDate", FilterBeginDate);
|
||||||
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "redirect", redirect);
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "redirect", redirect);
|
||||||
UpdateAssignedUserDevicesLinkedGroupOverride(callInfo, id, GroupId, redirect);
|
UpdateAssignedUserDevicesLinkedGroupOverride(callInfo, id, GroupId, FilterBeginDate, redirect);
|
||||||
return callInfo;
|
return callInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user