1276 lines
42 KiB
C#
1276 lines
42 KiB
C#
#pragma warning disable 1591
|
|
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by a tool.
|
|
// Runtime Version:4.0.30319.42000
|
|
//
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace Disco.Web.Views.Job.JobParts
|
|
{
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Text;
|
|
using System.Web;
|
|
using System.Web.Helpers;
|
|
using System.Web.Mvc;
|
|
using System.Web.Mvc.Ajax;
|
|
using System.Web.Mvc.Html;
|
|
using System.Web.Routing;
|
|
using System.Web.Security;
|
|
using System.Web.UI;
|
|
using System.Web.WebPages;
|
|
using Disco;
|
|
using Disco.Models.Repository;
|
|
using Disco.Services;
|
|
using Disco.Services.Authorization;
|
|
|
|
#line 2 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
using Disco.Services.Jobs.JobQueues;
|
|
|
|
#line default
|
|
#line hidden
|
|
using Disco.Services.Web;
|
|
using Disco.Web;
|
|
using Disco.Web.Extensions;
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
|
|
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/Job/JobParts/Queues.cshtml")]
|
|
public partial class Queues : Disco.Services.Web.WebViewPage<Disco.Web.Models.Job.ShowModel>
|
|
{
|
|
public Queues()
|
|
{
|
|
}
|
|
public override void Execute()
|
|
{
|
|
|
|
#line 3 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
|
|
Authorization.Require(Claims.Job.ShowJobsQueues);
|
|
|
|
var hasAddOwn = Authorization.Has(Claims.Job.Actions.AddOwnQueues);
|
|
var hasAddAny = Authorization.Has(Claims.Job.Actions.AddAnyQueues);
|
|
var hasRemoveOwn = Authorization.Has(Claims.Job.Actions.RemoveOwnQueues);
|
|
var hasRemoveAny = Authorization.Has(Claims.Job.Actions.RemoveAnyQueues);
|
|
|
|
var hasJobQueueShow = Authorization.Has(Claims.Config.JobQueue.Show);
|
|
|
|
var queues = JobQueueService.GetQueues();
|
|
var queueHistory = Model.Job.JobQueues.Select(jq => Tuple.Create(jq, queues.First(q => q.JobQueue.Id == jq.JobQueueId))).ToList();
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
|
|
#line 16 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
if (queueHistory.Count > 0)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <table");
|
|
|
|
WriteLiteral(" id=\"jobQueues\"");
|
|
|
|
WriteLiteral(">\r\n <tr>\r\n <th");
|
|
|
|
WriteLiteral(" class=\"name\"");
|
|
|
|
WriteLiteral(">Name</th>\r\n <th");
|
|
|
|
WriteLiteral(" class=\"added\"");
|
|
|
|
WriteLiteral(">Added</th>\r\n <th");
|
|
|
|
WriteLiteral(" class=\"removed\"");
|
|
|
|
WriteLiteral(">Removed</th>\r\n <th");
|
|
|
|
WriteLiteral(" class=\"sla\"");
|
|
|
|
WriteLiteral(">SLA</th>\r\n </tr>\r\n");
|
|
|
|
|
|
#line 25 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 25 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
foreach (var jq in queueHistory.OrderByDescending(jqj => jqj.Item1.AddedDate))
|
|
{
|
|
bool overdue = (jq.Item1.SLAExpiresDate.HasValue && jq.Item1.SLAExpiresDate.Value < (jq.Item1.RemovedDate.HasValue ? jq.Item1.RemovedDate : DateTime.Now));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <tr");
|
|
|
|
WriteLiteral(" data-jobqueuejobid=\"");
|
|
|
|
|
|
#line 28 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
Write(jq.Item1.Id);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\"");
|
|
|
|
WriteLiteral(" data-jobqueuejobaddeddate=\"");
|
|
|
|
|
|
#line 28 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
Write(jq.Item1.AddedDate.ToString("s"));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\"");
|
|
|
|
WriteAttribute("class", Tuple.Create(" class=\"", 1346), Tuple.Create("\"", 1409)
|
|
|
|
#line 28 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 1354), Tuple.Create<System.Object, System.Int32>(!jq.Item1.RemovedDate.HasValue ? "added" : "removed"
|
|
|
|
#line default
|
|
#line hidden
|
|
, 1354), false)
|
|
);
|
|
|
|
WriteLiteral(">\r\n <td");
|
|
|
|
WriteLiteral(" class=\"name\"");
|
|
|
|
WriteLiteral(">\r\n <i");
|
|
|
|
WriteAttribute("class", Tuple.Create(" class=\"", 1470), Tuple.Create("\"", 1555)
|
|
, Tuple.Create(Tuple.Create("", 1478), Tuple.Create("fa", 1478), true)
|
|
, Tuple.Create(Tuple.Create(" ", 1480), Tuple.Create("fa-", 1481), true)
|
|
|
|
#line 30 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 1484), Tuple.Create<System.Object, System.Int32>(jq.Item2.JobQueue.Icon
|
|
|
|
#line default
|
|
#line hidden
|
|
, 1484), false)
|
|
, Tuple.Create(Tuple.Create(" ", 1509), Tuple.Create("fa-fw", 1510), true)
|
|
, Tuple.Create(Tuple.Create(" ", 1515), Tuple.Create("fa-lg", 1516), true)
|
|
, Tuple.Create(Tuple.Create(" ", 1521), Tuple.Create("d-", 1522), true)
|
|
|
|
#line 30 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 1524), Tuple.Create<System.Object, System.Int32>(jq.Item2.JobQueue.IconColour
|
|
|
|
#line default
|
|
#line hidden
|
|
, 1524), false)
|
|
);
|
|
|
|
WriteLiteral("></i>\r\n");
|
|
|
|
|
|
#line 31 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 31 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
if (hasJobQueueShow)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 33 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
Write(Html.ActionLink(jq.Item2.JobQueue.Name, MVC.Config.JobQueue.Index(jq.Item2.JobQueue.Id)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 33 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 37 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
Write(jq.Item2.JobQueue.Name);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 37 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 39 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
if (jq.Item2.JobQueue.Priority != JobQueuePriority.Normal)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <i");
|
|
|
|
WriteAttribute("class", Tuple.Create(" class=\"", 2018), Tuple.Create("\"", 2090)
|
|
, Tuple.Create(Tuple.Create("", 2026), Tuple.Create("fa", 2026), true)
|
|
, Tuple.Create(Tuple.Create(" ", 2028), Tuple.Create("d-priority-", 2029), true)
|
|
|
|
#line 41 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 2040), Tuple.Create<System.Object, System.Int32>(jq.Item2.JobQueue.Priority.ToString().ToLower()
|
|
|
|
#line default
|
|
#line hidden
|
|
, 2040), false)
|
|
);
|
|
|
|
WriteAttribute("title", Tuple.Create(" title=\"", 2091), Tuple.Create("\"", 2154)
|
|
|
|
#line 41 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 2099), Tuple.Create<System.Object, System.Int32>(jq.Item2.JobQueue.Priority.ToString()
|
|
|
|
#line default
|
|
#line hidden
|
|
, 2099), false)
|
|
, Tuple.Create(Tuple.Create(" ", 2139), Tuple.Create("Queue", 2140), true)
|
|
, Tuple.Create(Tuple.Create(" ", 2145), Tuple.Create("Priority", 2146), true)
|
|
);
|
|
|
|
WriteLiteral("></i>\r\n");
|
|
|
|
|
|
#line 42 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </td>\r\n <td");
|
|
|
|
WriteLiteral(" class=\"added\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
|
|
#line 45 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 45 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
if (jq.Item1.CanEditAddedComment())
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <i");
|
|
|
|
WriteLiteral(" class=\"fa fa-fw fa-edit\"");
|
|
|
|
WriteLiteral(" title=\"Edit Comment\"");
|
|
|
|
WriteLiteral("></i>\r\n");
|
|
|
|
|
|
#line 48 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 49 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
if (jq.Item1.AddedComment == null)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"comments smallMessage\"");
|
|
|
|
WriteLiteral(">[no comment]</div>\r\n");
|
|
|
|
|
|
#line 52 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"comments\"");
|
|
|
|
WriteLiteral(">");
|
|
|
|
|
|
#line 55 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
Write(jq.Item1.AddedComment.ToHtmlComment());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</div>\r\n");
|
|
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"commentsRaw\"");
|
|
|
|
WriteLiteral(">");
|
|
|
|
|
|
#line 56 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
Write(jq.Item1.AddedComment);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</div>\r\n");
|
|
|
|
|
|
#line 57 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"when\"");
|
|
|
|
WriteLiteral(">");
|
|
|
|
|
|
#line 58 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
Write(CommonHelpers.FriendlyDateAndUser(jq.Item1.AddedDate, jq.Item1.AddedUser));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</div>\r\n </td>\r\n <td");
|
|
|
|
WriteAttribute("class", Tuple.Create(" class=\"", 3014), Tuple.Create("\"", 3077)
|
|
, Tuple.Create(Tuple.Create("", 3022), Tuple.Create("removed", 3022), true)
|
|
|
|
#line 60 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 3029), Tuple.Create<System.Object, System.Int32>(!jq.Item1.RemovedDate.HasValue ? " na" : null
|
|
|
|
#line default
|
|
#line hidden
|
|
, 3029), false)
|
|
);
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
|
|
#line 61 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 61 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
if (jq.Item1.RemovedDate.HasValue)
|
|
{
|
|
if (jq.Item1.CanEditRemovedComment())
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <i");
|
|
|
|
WriteLiteral(" class=\"fa fa-fw fa-edit\"");
|
|
|
|
WriteLiteral(" title=\"Edit Comment\"");
|
|
|
|
WriteLiteral("></i>\r\n");
|
|
|
|
|
|
#line 66 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
}
|
|
if (jq.Item1.RemovedComment == null)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"comments smallMessage\"");
|
|
|
|
WriteLiteral(">[no comment]</div>\r\n");
|
|
|
|
|
|
#line 70 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"comments\"");
|
|
|
|
WriteLiteral(">");
|
|
|
|
|
|
#line 73 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
Write(jq.Item1.RemovedComment.ToHtmlComment());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</div>\r\n");
|
|
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"commentsRaw\"");
|
|
|
|
WriteLiteral(">");
|
|
|
|
|
|
#line 74 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
Write(jq.Item1.RemovedComment);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</div>\r\n");
|
|
|
|
|
|
#line 75 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"when\"");
|
|
|
|
WriteLiteral(">");
|
|
|
|
|
|
#line 76 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
Write(CommonHelpers.FriendlyDateAndUser(jq.Item1.RemovedDate.Value, jq.Item1.RemovedUser));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</div>\r\n");
|
|
|
|
|
|
#line 77 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
}
|
|
else if (jq.Item1.CanRemove())
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <a");
|
|
|
|
WriteLiteral(" href=\"#\"");
|
|
|
|
WriteAttribute("class", Tuple.Create(" class=\"", 4078), Tuple.Create("\"", 4179)
|
|
, Tuple.Create(Tuple.Create("", 4086), Tuple.Create("button", 4086), true)
|
|
, Tuple.Create(Tuple.Create(" ", 4092), Tuple.Create("small", 4093), true)
|
|
, Tuple.Create(Tuple.Create(" ", 4098), Tuple.Create("remove", 4099), true)
|
|
|
|
#line 80 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
, Tuple.Create(Tuple.Create(" ", 4105), Tuple.Create<System.Object, System.Int32>(jq.Item1.CanCloseJobNormallyAfterRemoved() ? "canCloseNormally" : null
|
|
|
|
#line default
|
|
#line hidden
|
|
, 4106), false)
|
|
);
|
|
|
|
WriteLiteral(">Remove</a>\r\n");
|
|
|
|
|
|
#line 81 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <span");
|
|
|
|
WriteLiteral(" class=\"smallMessage\"");
|
|
|
|
WriteLiteral(">In Progress</span>\r\n");
|
|
|
|
|
|
#line 85 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </td>\r\n <td");
|
|
|
|
WriteAttribute("class", Tuple.Create(" class=\"", 4401), Tuple.Create("\"", 4546)
|
|
, Tuple.Create(Tuple.Create("", 4409), Tuple.Create("sla", 4409), true)
|
|
|
|
#line 87 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
, Tuple.Create(Tuple.Create(" ", 4412), Tuple.Create<System.Object, System.Int32>(overdue ? "overdue" : null
|
|
|
|
#line default
|
|
#line hidden
|
|
, 4413), false)
|
|
|
|
#line 87 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
, Tuple.Create(Tuple.Create(" ", 4442), Tuple.Create<System.Object, System.Int32>(jq.Item1.CanEditSla() ? "canEditSLA" : null
|
|
|
|
#line default
|
|
#line hidden
|
|
, 4443), false)
|
|
|
|
#line 87 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
, Tuple.Create(Tuple.Create(" ", 4489), Tuple.Create<System.Object, System.Int32>(jq.Item1.CanEditPriority() ? "canEditPriority" : null
|
|
|
|
#line default
|
|
#line hidden
|
|
, 4490), false)
|
|
);
|
|
|
|
WriteLiteral(" data-priority=\"");
|
|
|
|
|
|
#line 87 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
Write(jq.Item1.Priority.ToString());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\"");
|
|
|
|
WriteLiteral(" data-sla=\"");
|
|
|
|
|
|
#line 87 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
Write(jq.Item1.SLAExpiresDate.HasValue ? jq.Item1.SLAExpiresDate.Value.ToString("s") : null);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
|
|
#line 88 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 88 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
if (jq.Item1.CanEditSla() || jq.Item1.CanEditPriority())
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <i");
|
|
|
|
WriteLiteral(" class=\"fa fa-fw fa-edit\"");
|
|
|
|
WriteLiteral(" title=\"Edit SLA\"");
|
|
|
|
WriteLiteral("></i>\r\n");
|
|
|
|
|
|
#line 91 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <i");
|
|
|
|
WriteAttribute("class", Tuple.Create(" class=\"", 4920), Tuple.Create("\"", 4983)
|
|
, Tuple.Create(Tuple.Create("", 4928), Tuple.Create("fa", 4928), true)
|
|
, Tuple.Create(Tuple.Create(" ", 4930), Tuple.Create("d-priority-", 4931), true)
|
|
|
|
#line 92 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 4942), Tuple.Create<System.Object, System.Int32>(jq.Item1.Priority.ToString().ToLower()
|
|
|
|
#line default
|
|
#line hidden
|
|
, 4942), false)
|
|
);
|
|
|
|
WriteAttribute("title", Tuple.Create(" title=\"", 4984), Tuple.Create("\"", 5036)
|
|
|
|
#line 92 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 4992), Tuple.Create<System.Object, System.Int32>(jq.Item1.Priority.ToString()
|
|
|
|
#line default
|
|
#line hidden
|
|
, 4992), false)
|
|
, Tuple.Create(Tuple.Create(" ", 5023), Tuple.Create("Job", 5024), true)
|
|
, Tuple.Create(Tuple.Create(" ", 5027), Tuple.Create("Priority", 5028), true)
|
|
);
|
|
|
|
WriteLiteral("></i>\r\n");
|
|
|
|
|
|
#line 93 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 93 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
if (jq.Item1.SLAExpiresDate.HasValue)
|
|
{
|
|
if (jq.Item1.RemovedDate.HasValue)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 97 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
Write(CommonHelpers.FriendlyDate(jq.Item1.SLAExpiresDate.Value, WithoutSuffix: true));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 97 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
|
|
if (jq.Item1.RemovedDate.Value <= jq.Item1.SLAExpiresDate.Value)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <span>early</span>\r\n");
|
|
|
|
|
|
#line 101 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <span>late</span>\r\n");
|
|
|
|
|
|
#line 105 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
}
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <span>due </span>");
|
|
|
|
|
|
#line 109 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 109 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
Write(CommonHelpers.FriendlyDate(jq.Item1.SLAExpiresDate.Value));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 109 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
|
|
}
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </td>\r\n </tr>\r\n");
|
|
|
|
|
|
#line 114 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </table>\r\n");
|
|
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" id=\"Job_Show_Queues_Actions_Remove_Dialog\"");
|
|
|
|
WriteLiteral(" class=\"dialog\"");
|
|
|
|
WriteLiteral(" title=\"Remove this Job from the queue?\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
|
|
#line 117 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 117 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
using (Html.BeginForm(MVC.API.JobQueueJob.RemoveJob()))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <input");
|
|
|
|
WriteLiteral(" id=\"Job_Show_Queues_Actions_Remove_Dialog_Id\"");
|
|
|
|
WriteLiteral(" type=\"hidden\"");
|
|
|
|
WriteLiteral(" name=\"id\"");
|
|
|
|
WriteLiteral(" value=\"\"");
|
|
|
|
WriteLiteral(" />\r\n");
|
|
|
|
WriteLiteral(" <p>\r\n <i");
|
|
|
|
WriteLiteral(" class=\"fa fa-exclamation-triangle fa-lg\"");
|
|
|
|
WriteLiteral("></i> Are you sure?\r\n </p>\r\n");
|
|
|
|
WriteLiteral(" <h3>Comment:</h3>\r\n");
|
|
|
|
WriteLiteral(" <p>\r\n <textarea");
|
|
|
|
WriteLiteral(" name=\"Comment\"");
|
|
|
|
WriteLiteral(" class=\"block\"");
|
|
|
|
WriteLiteral("></textarea>\r\n </p>\r\n");
|
|
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" id=\"Job_Show_Queues_Actions_Remove_Dialog_CloseJob_Container\"");
|
|
|
|
WriteLiteral(">\r\n <input");
|
|
|
|
WriteLiteral(" id=\"Job_Show_Queues_Actions_Remove_Dialog_CloseJob\"");
|
|
|
|
WriteLiteral(" type=\"checkbox\"");
|
|
|
|
WriteLiteral(" name=\"CloseJob\"");
|
|
|
|
WriteLiteral(" value=\"true\"");
|
|
|
|
WriteLiteral(" />\r\n <label");
|
|
|
|
WriteLiteral(" for=\"Job_Show_Queues_Actions_Remove_Dialog_CloseJob\"");
|
|
|
|
WriteLiteral(">Close the Job</label>\r\n </div>\r\n");
|
|
|
|
|
|
#line 131 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </div>\r\n");
|
|
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" id=\"Job_Show_Queues_Actions_EditAddedComment_Dialog\"");
|
|
|
|
WriteLiteral(" class=\"dialog\"");
|
|
|
|
WriteLiteral(" title=\"Edit the Added Comment\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
|
|
#line 134 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 134 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
using (Html.BeginForm(MVC.API.JobQueueJob.UpdateAddedComment()))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <input");
|
|
|
|
WriteLiteral(" id=\"Job_Show_Queues_Actions_EditAddedComment_Dialog_Id\"");
|
|
|
|
WriteLiteral(" type=\"hidden\"");
|
|
|
|
WriteLiteral(" name=\"id\"");
|
|
|
|
WriteLiteral(" value=\"\"");
|
|
|
|
WriteLiteral(" />\r\n");
|
|
|
|
WriteLiteral(" <input");
|
|
|
|
WriteLiteral(" type=\"hidden\"");
|
|
|
|
WriteLiteral(" name=\"redirect\"");
|
|
|
|
WriteLiteral(" value=\"true\"");
|
|
|
|
WriteLiteral(" />\r\n");
|
|
|
|
WriteLiteral(" <h4>Comment:</h4>\r\n");
|
|
|
|
WriteLiteral(" <p>\r\n <textarea");
|
|
|
|
WriteLiteral(" id=\"Job_Show_Queues_Actions_EditAddedComment_Dialog_Comment\"");
|
|
|
|
WriteLiteral(" name=\"AddedComment\"");
|
|
|
|
WriteLiteral(" class=\"block\"");
|
|
|
|
WriteLiteral("></textarea>\r\n </p>\r\n");
|
|
|
|
|
|
#line 142 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </div>\r\n");
|
|
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" id=\"Job_Show_Queues_Actions_EditRemovedComment_Dialog\"");
|
|
|
|
WriteLiteral(" class=\"dialog\"");
|
|
|
|
WriteLiteral(" title=\"Edit the Removed Comment\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
|
|
#line 145 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 145 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
using (Html.BeginForm(MVC.API.JobQueueJob.UpdateRemovedComment()))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <input");
|
|
|
|
WriteLiteral(" id=\"Job_Show_Queues_Actions_EditRemovedComment_Dialog_Id\"");
|
|
|
|
WriteLiteral(" type=\"hidden\"");
|
|
|
|
WriteLiteral(" name=\"id\"");
|
|
|
|
WriteLiteral(" value=\"\"");
|
|
|
|
WriteLiteral(" />\r\n");
|
|
|
|
WriteLiteral(" <input");
|
|
|
|
WriteLiteral(" type=\"hidden\"");
|
|
|
|
WriteLiteral(" name=\"redirect\"");
|
|
|
|
WriteLiteral(" value=\"true\"");
|
|
|
|
WriteLiteral(" />\r\n");
|
|
|
|
WriteLiteral(" <h4>Comment:</h4>\r\n");
|
|
|
|
WriteLiteral(" <p>\r\n <textarea");
|
|
|
|
WriteLiteral(" id=\"Job_Show_Queues_Actions_EditRemovedComment_Dialog_Comment\"");
|
|
|
|
WriteLiteral(" name=\"RemovedComment\"");
|
|
|
|
WriteLiteral(" class=\"block\"");
|
|
|
|
WriteLiteral("></textarea>\r\n </p>\r\n");
|
|
|
|
|
|
#line 153 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </div>\r\n");
|
|
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" id=\"Job_Show_Queues_Actions_EditSla_Dialog\"");
|
|
|
|
WriteLiteral(" class=\"dialog\"");
|
|
|
|
WriteLiteral(" title=\"Edit the SLA\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
|
|
#line 156 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 156 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
using (Html.BeginForm(MVC.API.JobQueueJob.UpdateSlaAndPriority()))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <input");
|
|
|
|
WriteLiteral(" id=\"Job_Show_Queues_Actions_EditSla_Dialog_Id\"");
|
|
|
|
WriteLiteral(" type=\"hidden\"");
|
|
|
|
WriteLiteral(" name=\"id\"");
|
|
|
|
WriteLiteral(" value=\"\"");
|
|
|
|
WriteLiteral(" />\r\n");
|
|
|
|
WriteLiteral(" <input");
|
|
|
|
WriteLiteral(" type=\"hidden\"");
|
|
|
|
WriteLiteral(" name=\"redirect\"");
|
|
|
|
WriteLiteral(" value=\"true\"");
|
|
|
|
WriteLiteral(" />\r\n");
|
|
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"priority\"");
|
|
|
|
WriteLiteral(">\r\n <h4>Job Priority:</h4>\r\n <p>\r\n " +
|
|
" <i");
|
|
|
|
WriteLiteral(" class=\"fa\"");
|
|
|
|
WriteLiteral("></i>\r\n <select");
|
|
|
|
WriteLiteral(" id=\"Job_Show_Queues_Actions_EditSla_Dialog_Priority\"");
|
|
|
|
WriteLiteral(" name=\"Priority\"");
|
|
|
|
WriteLiteral(" autofocus=\"autofocus\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
|
|
#line 165 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 165 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
foreach (var priorityItem in Enum.GetNames(typeof(JobQueuePriority)))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <option");
|
|
|
|
WriteAttribute("value", Tuple.Create(" value=\"", 8819), Tuple.Create("\"", 8842)
|
|
|
|
#line 167 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 8827), Tuple.Create<System.Object, System.Int32>(priorityItem
|
|
|
|
#line default
|
|
#line hidden
|
|
, 8827), false)
|
|
);
|
|
|
|
WriteLiteral(">");
|
|
|
|
|
|
#line 167 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
Write(priorityItem);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</option>\r\n");
|
|
|
|
|
|
#line 168 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </select>\r\n </p>\r\n </div>\r\n");
|
|
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"sla\"");
|
|
|
|
WriteLiteral(">\r\n <h4>SLA Target:</h4>\r\n <p>\r\n " +
|
|
" <input");
|
|
|
|
WriteLiteral(" id=\"Job_Show_Queues_Actions_EditSla_Dialog_Sla\"");
|
|
|
|
WriteLiteral(" name=\"Sla\"");
|
|
|
|
WriteLiteral(" type=\"text\"");
|
|
|
|
WriteLiteral(" placeholder=\"None\"");
|
|
|
|
WriteLiteral(" />\r\n </p>\r\n </div>\r\n");
|
|
|
|
|
|
#line 178 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </div>\r\n");
|
|
|
|
WriteLiteral(" <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
WriteLiteral(@">
|
|
$(function () {
|
|
var jobQueues = $('#jobQueues');
|
|
|
|
var dialog = null;
|
|
var dialogEditAddedComment = null;
|
|
var dialogEditRemovedComment = null;
|
|
var dialogEditSla = null;
|
|
var dialogEditSla_BothUrl = '");
|
|
|
|
|
|
#line 188 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
Write(Url.Action(MVC.API.JobQueueJob.UpdateSlaAndPriority()));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\';\r\n var dialogEditSla_SlaUrl = \'");
|
|
|
|
|
|
#line 189 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
Write(Url.Action(MVC.API.JobQueueJob.UpdateSla()));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\';\r\n var dialogEditSla_PriorityUrl = \'");
|
|
|
|
|
|
#line 190 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
Write(Url.Action(MVC.API.JobQueueJob.UpdatePriority()));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\';\r\n\r\n jobQueues.on(\'click\', \'a.remove\', function (e) {\r\n " +
|
|
" var $this = $(this);\r\n var jobQueueJobId = $this.closest(\'tr\')" +
|
|
".attr(\'data-jobqueuejobid\');\r\n\r\n if (!dialog) {\r\n " +
|
|
" dialog = $(\'#Job_Show_Queues_Actions_Remove_Dialog\');\r\n d" +
|
|
"ialog.dialog({\r\n resizable: false,\r\n " +
|
|
" modal: true,\r\n autoOpen: false,\r\n " +
|
|
" buttons: {\r\n \"Remove Job\": function () {\r\n " +
|
|
" var $this = $(this);\r\n $t" +
|
|
"his.dialog(\"disable\");\r\n $this.dialog(\"option\", \"" +
|
|
"buttons\", null);\r\n $this.find(\'form\').submit();\r\n" +
|
|
" },\r\n Cancel: function () " +
|
|
"{\r\n $(this).dialog(\"close\");\r\n " +
|
|
" }\r\n }\r\n });\r\n " +
|
|
"}\r\n\r\n if ($this.hasClass(\'canCloseNormally\')) {\r\n " +
|
|
" $(\'#Job_Show_Queues_Actions_Remove_Dialog_CloseJob_Container\').show();\r\n " +
|
|
" } else {\r\n $(\'#Job_Show_Queues_Actions_Remove_Dia" +
|
|
"log_CloseJob_Container\').hide();\r\n }\r\n $(\'#Job_Sho" +
|
|
"w_Queues_Actions_Remove_Dialog_CloseJob\').prop(\'checked\', false);\r\n\r\n " +
|
|
" $(\'#Job_Show_Queues_Actions_Remove_Dialog_Id\').val(jobQueueJobId);\r\n " +
|
|
" dialog.dialog(\'open\');\r\n\r\n e.preventDefault();\r\n " +
|
|
" return false;\r\n });\r\n\r\n jobQueues.on(\'click\', \'td." +
|
|
"added i.fa-edit\', function (e) {\r\n var $this = $(this);\r\n " +
|
|
" var jobQueueJobId = $this.closest(\'tr\').attr(\'data-jobqueuejobid\');\r\n\r\n " +
|
|
" if (!dialogEditAddedComment) {\r\n dialogEditAdd" +
|
|
"edComment = $(\'#Job_Show_Queues_Actions_EditAddedComment_Dialog\');\r\n " +
|
|
" dialogEditAddedComment.dialog({\r\n resizable: fals" +
|
|
"e,\r\n modal: true,\r\n width: 320,\r\n " +
|
|
" autoOpen: false,\r\n buttons: {\r\n " +
|
|
" \"Save Changes\": function () {\r\n " +
|
|
" var $this = $(this);\r\n $this.dialog(\"disa" +
|
|
"ble\");\r\n $this.dialog(\"option\", \"buttons\", null);" +
|
|
"\r\n $this.find(\'form\').submit();\r\n " +
|
|
" },\r\n Cancel: function () {\r\n " +
|
|
" $(this).dialog(\"close\");\r\n }\r\n " +
|
|
" }\r\n });\r\n }\r\n\r\n " +
|
|
" var $comments = $this.closest(\'td\').find(\'.commentsRaw\');\r\n " +
|
|
"if ($comments.hasClass(\'smallMessage\')) {\r\n $(\'#Job_Show_Queu" +
|
|
"es_Actions_EditAddedComment_Dialog_Comment\').val(\'\');\r\n } else {\r" +
|
|
"\n $(\'#Job_Show_Queues_Actions_EditAddedComment_Dialog_Comment" +
|
|
"\').val($comments.text());\r\n }\r\n\r\n $(\'#Job_Show_Que" +
|
|
"ues_Actions_EditAddedComment_Dialog_Id\').val(jobQueueJobId);\r\n di" +
|
|
"alogEditAddedComment.dialog(\'open\');\r\n e.preventDefault();\r\n " +
|
|
" return false;\r\n });\r\n\r\n jobQueues.on(\'click\', \'" +
|
|
"td.removed i.fa-edit\', function (e) {\r\n var $this = $(this);\r\n " +
|
|
" var jobQueueJobId = $this.closest(\'tr\').attr(\'data-jobqueuejobid\');" +
|
|
"\r\n\r\n if (!dialogEditRemovedComment) {\r\n dialog" +
|
|
"EditRemovedComment = $(\'#Job_Show_Queues_Actions_EditRemovedComment_Dialog\');\r\n " +
|
|
" dialogEditRemovedComment.dialog({\r\n re" +
|
|
"sizable: false,\r\n modal: true,\r\n w" +
|
|
"idth: 320,\r\n autoOpen: false,\r\n bu" +
|
|
"ttons: {\r\n \"Save Changes\": function () {\r\n " +
|
|
" var $this = $(this);\r\n $this" +
|
|
".dialog(\"disable\");\r\n $this.dialog(\"option\", \"but" +
|
|
"tons\", null);\r\n $this.find(\'form\').submit();\r\n " +
|
|
" },\r\n Cancel: function () {\r\n" +
|
|
" $(this).dialog(\"close\");\r\n " +
|
|
" }\r\n }\r\n });\r\n }\r\n" +
|
|
"\r\n var $comments = $this.closest(\'td\').find(\'.commentsRaw\');\r\n " +
|
|
" if ($comments.hasClass(\'smallMessage\')) {\r\n $(\'#" +
|
|
"Job_Show_Queues_Actions_EditRemovedComment_Dialog_Comment\').val(\'\');\r\n " +
|
|
" } else {\r\n $(\'#Job_Show_Queues_Actions_EditRemovedComme" +
|
|
"nt_Dialog_Comment\').val($comments.text());\r\n }\r\n\r\n " +
|
|
" $(\'#Job_Show_Queues_Actions_EditRemovedComment_Dialog_Id\').val(jobQueueJobId);\r" +
|
|
"\n dialogEditRemovedComment.dialog(\'open\');\r\n e.pre" +
|
|
"ventDefault();\r\n return false;\r\n });\r\n\r\n jo" +
|
|
"bQueues.on(\'click\', \'td.sla i.fa-edit\', function (e) {\r\n var $thi" +
|
|
"s = $(this);\r\n var jobQueueJobId = $this.closest(\'tr\').attr(\'data" +
|
|
"-jobqueuejobid\');\r\n\r\n var priorityChange = function () {\r\n " +
|
|
" var $element = $(\'#Job_Show_Queues_Actions_EditSla_Dialog_Priority\'" +
|
|
");\r\n var icon = dialogEditSla.find(\'.priority i\');\r\n " +
|
|
" icon[0].className = \'\';\r\n icon.addClass(\'fa d-prio" +
|
|
"rity-\' + $element.val().toLowerCase()).attr(\'title\', $element.val() + \' Priority" +
|
|
"\');\r\n };\r\n\r\n if (!dialogEditSla) {\r\n " +
|
|
" dialogEditSla = $(\'#Job_Show_Queues_Actions_EditSla_Dialog\');\r\n " +
|
|
" dialogEditSla.dialog({\r\n resizable: false,\r\n " +
|
|
" modal: true,\r\n width: 320,\r\n " +
|
|
" autoOpen: false,\r\n buttons: {\r\n " +
|
|
" \"Save Changes\": function () {\r\n " +
|
|
"var $this = $(this);\r\n $this.dialog(\"disable\");\r\n" +
|
|
" $this.dialog(\"option\", \"buttons\", null);\r\n " +
|
|
" $this.find(\'form\').submit();\r\n " +
|
|
" },\r\n Cancel: function () {\r\n " +
|
|
" $(this).dialog(\"close\");\r\n }\r\n " +
|
|
" }\r\n });\r\n\r\n $(\'#Job_Show_Queue" +
|
|
"s_Actions_EditSla_Dialog_Priority\').change(priorityChange);\r\n }\r\n" +
|
|
"\r\n var $td = $this.closest(\'td\');\r\n var priority =" +
|
|
" $td.attr(\'data-priority\');\r\n var sla = $td.attr(\'data-sla\');\r\n " +
|
|
" var slaStart = $this.closest(\'tr\').attr(\'data-jobqueuejobaddeddate" +
|
|
"\');\r\n\r\n var canEditSla = $td.hasClass(\'canEditSLA\');\r\n " +
|
|
" var canEditPriority = $td.hasClass(\'canEditPriority\');\r\n\r\n i" +
|
|
"f (canEditPriority) {\r\n $(\'#Job_Show_Queues_Actions_EditSla_D" +
|
|
"ialog_Priority\').val(priority);\r\n priorityChange();\r\n " +
|
|
" dialogEditSla.find(\'div.priority\').show();\r\n } else {" +
|
|
"\r\n dialogEditSla.find(\'div.priority\').hide();\r\n " +
|
|
" }\r\n\r\n if (canEditSla) {\r\n var $sla = $(\'#Job" +
|
|
"_Show_Queues_Actions_EditSla_Dialog_Sla\');\r\n\r\n $sla.datetimep" +
|
|
"icker(\'destroy\').datetimepicker({\r\n defaultDate: new Date" +
|
|
"(),\r\n ampm: true,\r\n changeYear: tr" +
|
|
"ue,\r\n changeMonth: true,\r\n minDate" +
|
|
": moment(slaStart).add(\'m\', 1).toDate(),\r\n dateFormat: \'y" +
|
|
"y/mm/dd\'\r\n });\r\n\r\n if (sla) {\r\n " +
|
|
" $sla.datetimepicker(\'setDate\', moment(sla).toDate());\r\n " +
|
|
" } else {\r\n $sla.val(\'\');\r\n }\r\n" +
|
|
" dialogEditSla.find(\'div.sla\').show();\r\n } els" +
|
|
"e {\r\n dialogEditSla.find(\'div.sla\').hide();\r\n " +
|
|
"}\r\n\r\n if (canEditPriority && canEditSla)\r\n dia" +
|
|
"logEditSla.find(\'form\').attr(\'action\', dialogEditSla_BothUrl);\r\n " +
|
|
"else if (canEditPriority)\r\n dialogEditSla.find(\'form\').attr(\'" +
|
|
"action\', dialogEditSla_PriorityUrl);\r\n else if (canEditSla)\r\n " +
|
|
" dialogEditSla.find(\'form\').attr(\'action\', dialogEditSla_SlaUrl);" +
|
|
"\r\n\r\n $(\'#Job_Show_Queues_Actions_EditSla_Dialog_Id\').val(jobQueue" +
|
|
"JobId);\r\n dialogEditSla.dialog(\'open\');\r\n e.preven" +
|
|
"tDefault();\r\n return false;\r\n });\r\n });\r\n </" +
|
|
"script>\r\n");
|
|
|
|
|
|
#line 392 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"none\"");
|
|
|
|
WriteLiteral(">This job has no associated queue history</div>\r\n");
|
|
|
|
|
|
#line 396 "..\..\Views\Job\JobParts\Queues.cshtml"
|
|
}
|
|
|
|
#line default
|
|
#line hidden
|
|
}
|
|
}
|
|
}
|
|
#pragma warning restore 1591
|