Fix: Bugs

Javascript: Warranty Job Details; AD Interop
This commit is contained in:
Gary Sharp
2013-02-21 18:27:50 +11:00
parent 9e2f9a646f
commit e8e141c9af
11 changed files with 920 additions and 919 deletions
+303 -303
View File
@@ -1,303 +1,303 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using Disco.Models.Repository; using Disco.Models.Repository;
using Disco.Data.Repository; using Disco.Data.Repository;
using System.IO; using System.IO;
using Disco.Models.BI.DocumentTemplates; using Disco.Models.BI.DocumentTemplates;
using Disco.Services.Plugins; using Disco.Services.Plugins;
using Disco.Models.BI.Job; using Disco.Models.BI.Job;
namespace Disco.BI.Extensions namespace Disco.BI.Extensions
{ {
public static class JobExtensions public static class JobExtensions
{ {
public static void BroadcastUpdate(this Job j) public static void BroadcastUpdate(this Job j)
{ {
if (j.UserId != null) if (j.UserId != null)
Interop.SignalRHandlers.UserHeldDevices.UserJobUpdated(j.UserId); Interop.SignalRHandlers.UserHeldDevices.UserJobUpdated(j.UserId);
} }
public static JobAttachment CreateAttachment(this Job Job, DiscoDataContext dbContext, User CreatorUser, string Filename, string MimeType, string Comments, Stream Content, DocumentTemplate DocumentTemplate = null, byte[] PdfThumbnail = null) public static JobAttachment CreateAttachment(this Job Job, DiscoDataContext dbContext, User CreatorUser, string Filename, string MimeType, string Comments, Stream Content, DocumentTemplate DocumentTemplate = null, byte[] PdfThumbnail = null)
{ {
if (string.IsNullOrEmpty(MimeType) || MimeType.Equals("unknown/unknown", StringComparison.InvariantCultureIgnoreCase)) if (string.IsNullOrEmpty(MimeType) || MimeType.Equals("unknown/unknown", StringComparison.InvariantCultureIgnoreCase))
MimeType = Interop.MimeTypes.ResolveMimeType(Filename); MimeType = Interop.MimeTypes.ResolveMimeType(Filename);
JobAttachment ja = new JobAttachment() JobAttachment ja = new JobAttachment()
{ {
JobId = Job.Id, JobId = Job.Id,
TechUserId = CreatorUser.Id, TechUserId = CreatorUser.Id,
Filename = Filename, Filename = Filename,
MimeType = MimeType, MimeType = MimeType,
Timestamp = DateTime.Now, Timestamp = DateTime.Now,
Comments = Comments Comments = Comments
}; };
if (DocumentTemplate != null) if (DocumentTemplate != null)
ja.DocumentTemplateId = DocumentTemplate.Id; ja.DocumentTemplateId = DocumentTemplate.Id;
dbContext.JobAttachments.Add(ja); dbContext.JobAttachments.Add(ja);
dbContext.SaveChanges(); dbContext.SaveChanges();
ja.SaveAttachment(dbContext, Content); ja.SaveAttachment(dbContext, Content);
Content.Position = 0; Content.Position = 0;
if (PdfThumbnail == null) if (PdfThumbnail == null)
ja.GenerateThumbnail(dbContext, Content); ja.GenerateThumbnail(dbContext, Content);
else else
ja.SaveThumbnailAttachment(dbContext, PdfThumbnail); ja.SaveThumbnailAttachment(dbContext, PdfThumbnail);
return ja; return ja;
} }
public static Tuple<string, string> Status(this Job j) public static Tuple<string, string> Status(this Job j)
{ {
var statusId = j.CalculateStatusId(); var statusId = j.CalculateStatusId();
return new Tuple<string, string>(statusId, JobBI.Utilities.JobStatusDescription(statusId, j)); return new Tuple<string, string>(statusId, JobBI.Utilities.JobStatusDescription(statusId, j));
} }
public static JobTableModel.JobTableItemModelIncludeStatus ToJobTableItemModelIncludeStatus(this Job j) public static JobTableModel.JobTableItemModelIncludeStatus ToJobTableItemModelIncludeStatus(this Job j)
{ {
var i = new JobTableModel.JobTableItemModelIncludeStatus() var i = new JobTableModel.JobTableItemModelIncludeStatus()
{ {
Id = j.Id, Id = j.Id,
OpenedDate = j.OpenedDate, OpenedDate = j.OpenedDate,
ClosedDate = j.ClosedDate, ClosedDate = j.ClosedDate,
TypeId = j.JobTypeId, TypeId = j.JobTypeId,
TypeDescription = j.JobType.Description, TypeDescription = j.JobType.Description,
Location = j.DeviceHeldLocation, Location = j.DeviceHeldLocation,
WaitingForUserAction = j.WaitingForUserAction, WaitingForUserAction = j.WaitingForUserAction,
DeviceReadyForReturn = j.DeviceReadyForReturn, DeviceReadyForReturn = j.DeviceReadyForReturn,
DeviceHeld = j.DeviceHeld, DeviceHeld = j.DeviceHeld,
DeviceReturnedDate = j.DeviceReturnedDate DeviceReturnedDate = j.DeviceReturnedDate
}; };
if (j.Device != null) if (j.Device != null)
{ {
i.DeviceSerialNumber = j.DeviceSerialNumber; i.DeviceSerialNumber = j.DeviceSerialNumber;
i.DeviceModelDescription = j.Device.DeviceModel.Description; i.DeviceModelDescription = j.Device.DeviceModel.Description;
i.DeviceAddressId = j.Device.DeviceProfile.DefaultOrganisationAddress; i.DeviceAddressId = j.Device.DeviceProfile.DefaultOrganisationAddress;
if (j.JobMetaWarranty != null) if (j.JobMetaWarranty != null)
{ {
i.JobMetaWarranty_ExternalReference = j.JobMetaWarranty.ExternalReference; i.JobMetaWarranty_ExternalReference = j.JobMetaWarranty.ExternalReference;
i.JobMetaWarranty_ExternalCompletedDate = j.JobMetaWarranty.ExternalCompletedDate; i.JobMetaWarranty_ExternalCompletedDate = j.JobMetaWarranty.ExternalCompletedDate;
i.JobMetaWarranty_ExternalName = j.JobMetaWarranty.ExternalName; i.JobMetaWarranty_ExternalName = j.JobMetaWarranty.ExternalName;
} }
if (j.JobMetaNonWarranty != null) if (j.JobMetaNonWarranty != null)
{ {
i.JobMetaNonWarranty_RepairerLoggedDate = j.JobMetaNonWarranty.RepairerLoggedDate; i.JobMetaNonWarranty_RepairerLoggedDate = j.JobMetaNonWarranty.RepairerLoggedDate;
i.JobMetaNonWarranty_RepairerCompletedDate = j.JobMetaNonWarranty.RepairerCompletedDate; i.JobMetaNonWarranty_RepairerCompletedDate = j.JobMetaNonWarranty.RepairerCompletedDate;
i.JobMetaNonWarranty_AccountingChargeAddedDate = j.JobMetaNonWarranty.AccountingChargeAddedDate; i.JobMetaNonWarranty_AccountingChargeAddedDate = j.JobMetaNonWarranty.AccountingChargeAddedDate;
i.JobMetaNonWarranty_AccountingChargePaidDate = j.JobMetaNonWarranty.AccountingChargePaidDate; i.JobMetaNonWarranty_AccountingChargePaidDate = j.JobMetaNonWarranty.AccountingChargePaidDate;
i.JobMetaNonWarranty_AccountingChargeRequiredDate = j.JobMetaNonWarranty.AccountingChargeRequiredDate; i.JobMetaNonWarranty_AccountingChargeRequiredDate = j.JobMetaNonWarranty.AccountingChargeRequiredDate;
i.JobMetaNonWarranty_IsInsuranceClaim = j.JobMetaNonWarranty.IsInsuranceClaim; i.JobMetaNonWarranty_IsInsuranceClaim = j.JobMetaNonWarranty.IsInsuranceClaim;
i.JobMetaNonWarranty_RepairerName = j.JobMetaNonWarranty.RepairerName; i.JobMetaNonWarranty_RepairerName = j.JobMetaNonWarranty.RepairerName;
if (j.JobMetaInsurance != null) if (j.JobMetaInsurance != null)
{ {
i.JobMetaInsurance_ClaimFormSentDate = j.JobMetaInsurance.ClaimFormSentDate; i.JobMetaInsurance_ClaimFormSentDate = j.JobMetaInsurance.ClaimFormSentDate;
} }
} }
} }
if (j.User != null) if (j.User != null)
{ {
i.UserId = j.UserId; i.UserId = j.UserId;
i.UserDisplayName = j.User.DisplayName; i.UserDisplayName = j.User.DisplayName;
} }
if (j.OpenedTechUser != null) if (j.OpenedTechUser != null)
{ {
i.OpenedTechUserId = j.OpenedTechUserId; i.OpenedTechUserId = j.OpenedTechUserId;
i.OpenedTechUserDisplayName = j.OpenedTechUser.DisplayName; i.OpenedTechUserDisplayName = j.OpenedTechUser.DisplayName;
} }
return i; return i;
} }
public static string CalculateStatusId(this Job j) public static string CalculateStatusId(this Job j)
{ {
return j.ToJobTableItemModelIncludeStatus().CalculateStatusId(); return j.ToJobTableItemModelIncludeStatus().CalculateStatusId();
} }
public static string CalculateStatusId(this JobTableModel.JobTableItemModelIncludeStatus j) public static string CalculateStatusId(this JobTableModel.JobTableItemModelIncludeStatus j)
{ {
if (j.ClosedDate.HasValue) if (j.ClosedDate.HasValue)
return Job.JobStatusIds.Closed; return Job.JobStatusIds.Closed;
if (j.TypeId == JobType.JobTypeIds.HWar) if (j.TypeId == JobType.JobTypeIds.HWar)
{ {
if (!string.IsNullOrEmpty(j.JobMetaWarranty_ExternalReference) && !j.JobMetaWarranty_ExternalCompletedDate.HasValue) if (!string.IsNullOrEmpty(j.JobMetaWarranty_ExternalReference) && !j.JobMetaWarranty_ExternalCompletedDate.HasValue)
return Job.JobStatusIds.AwaitingWarrantyRepair; // Job Logged - but not marked as completed return Job.JobStatusIds.AwaitingWarrantyRepair; // Job Logged - but not marked as completed
} }
if (j.TypeId == JobType.JobTypeIds.HNWar) if (j.TypeId == JobType.JobTypeIds.HNWar)
{ {
if (j.JobMetaNonWarranty_RepairerLoggedDate.HasValue && !j.JobMetaNonWarranty_RepairerCompletedDate.HasValue) if (j.JobMetaNonWarranty_RepairerLoggedDate.HasValue && !j.JobMetaNonWarranty_RepairerCompletedDate.HasValue)
return Job.JobStatusIds.AwaitingRepairs; // Repairs logged - but not complete return Job.JobStatusIds.AwaitingRepairs; // Repairs logged - but not complete
if (j.JobMetaNonWarranty_AccountingChargeAddedDate.HasValue && !j.JobMetaNonWarranty_AccountingChargePaidDate.HasValue) if (j.JobMetaNonWarranty_AccountingChargeAddedDate.HasValue && !j.JobMetaNonWarranty_AccountingChargePaidDate.HasValue)
return Job.JobStatusIds.AwaitingAccountingPayment; // Accounting Charge Added, but not paid return Job.JobStatusIds.AwaitingAccountingPayment; // Accounting Charge Added, but not paid
if (j.JobMetaNonWarranty_AccountingChargeRequiredDate.HasValue && (!j.JobMetaNonWarranty_AccountingChargePaidDate.HasValue || !j.JobMetaNonWarranty_AccountingChargeAddedDate.HasValue)) if (j.JobMetaNonWarranty_AccountingChargeRequiredDate.HasValue && (!j.JobMetaNonWarranty_AccountingChargePaidDate.HasValue || !j.JobMetaNonWarranty_AccountingChargeAddedDate.HasValue))
return Job.JobStatusIds.AwaitingAccountingCharge; // Accounting Charge Required, but not added or paid return Job.JobStatusIds.AwaitingAccountingCharge; // Accounting Charge Required, but not added or paid
if (j.JobMetaNonWarranty_RepairerLoggedDate.HasValue && j.JobMetaNonWarranty_IsInsuranceClaim.Value && !j.JobMetaInsurance_ClaimFormSentDate.HasValue) if (j.JobMetaNonWarranty_RepairerLoggedDate.HasValue && j.JobMetaNonWarranty_IsInsuranceClaim.Value && !j.JobMetaInsurance_ClaimFormSentDate.HasValue)
return Job.JobStatusIds.AwaitingInsuranceProcessing; // Is insurance claim, but no Claim Form Sent return Job.JobStatusIds.AwaitingInsuranceProcessing; // Is insurance claim, but no Claim Form Sent
} }
if (j.WaitingForUserAction.HasValue) if (j.WaitingForUserAction.HasValue)
return Job.JobStatusIds.AwaitingUserAction; // Awaiting for User return Job.JobStatusIds.AwaitingUserAction; // Awaiting for User
if (j.DeviceReadyForReturn.HasValue && !j.DeviceReturnedDate.HasValue) if (j.DeviceReadyForReturn.HasValue && !j.DeviceReturnedDate.HasValue)
return Job.JobStatusIds.AwaitingDeviceReturn; // Device not returned to User return Job.JobStatusIds.AwaitingDeviceReturn; // Device not returned to User
return Job.JobStatusIds.Open; return Job.JobStatusIds.Open;
} }
public static List<DocumentTemplate> AvailableDocumentTemplates(this Job j, DiscoDataContext dbContext, User User, DateTime TimeStamp) public static List<DocumentTemplate> AvailableDocumentTemplates(this Job j, DiscoDataContext dbContext, User User, DateTime TimeStamp)
{ {
var dts = dbContext.DocumentTemplates.Include("JobSubTypes") var dts = dbContext.DocumentTemplates.Include("JobSubTypes")
.Where(dt => dt.Scope == DocumentTemplate.DocumentTemplateScopes.Job) .Where(dt => dt.Scope == DocumentTemplate.DocumentTemplateScopes.Job)
.ToList(); .ToList();
foreach (var dt in dts.ToArray()) foreach (var dt in dts.ToArray())
{ {
if (dt.JobSubTypes.Count != 0) if (dt.JobSubTypes.Count != 0)
{ // Filter Applied { // Filter Applied
bool match = false; bool match = false;
foreach (var st in j.JobSubTypes) foreach (var st in j.JobSubTypes)
{ {
if (dt.JobSubTypes.Contains(st)) if (dt.JobSubTypes.Contains(st))
{ {
match = true; match = true;
break; break;
} }
} }
if (!match) if (!match)
dts.Remove(dt); dts.Remove(dt);
} }
} }
// Evaluate Filters // Evaluate Filters
dts = dts.Where(dt => dt.FilterExpressionMatches(j, dbContext, User, TimeStamp, DocumentState.DefaultState())).ToList(); dts = dts.Where(dt => dt.FilterExpressionMatches(j, dbContext, User, TimeStamp, DocumentState.DefaultState())).ToList();
return dts; return dts;
} }
public static DateTime ValidateDateAfterOpened(this Job j, DateTime d) public static DateTime ValidateDateAfterOpened(this Job j, DateTime d)
{ {
if (d < j.OpenedDate) if (d < j.OpenedDate)
{ {
if (d > j.OpenedDate.AddMinutes(-1)) if (d > j.OpenedDate.AddMinutes(-1))
return j.OpenedDate; return j.OpenedDate;
else else
throw new ArgumentException("The Date must be >= the Open Date.", "d"); throw new ArgumentException("The Date must be >= the Open Date.", "d");
} }
return d; return d;
} }
public static string GenerateFaultDescription(this Job j, DiscoDataContext dbContext) public static string GenerateFaultDescription(this Job j, DiscoDataContext dbContext)
{ {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.AppendLine("Faulty Components:"); sb.AppendLine("Faulty Components:");
foreach (var jst in j.JobSubTypes) foreach (var jst in j.JobSubTypes)
sb.Append("- ").AppendLine(jst.Description).AppendLine(" - "); sb.Append("- ").AppendLine(jst.Description).AppendLine(" - ");
return sb.ToString(); return sb.ToString();
} }
public static string GenerateFaultDescriptionFooter(this Job j, DiscoDataContext dbContext, PluginFeatureManifest WarrantyProviderDefinition) public static string GenerateFaultDescriptionFooter(this Job j, DiscoDataContext dbContext, PluginFeatureManifest WarrantyProviderDefinition)
{ {
var versionDisco = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version; var versionDisco = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
return string.Format("Automation by Disco v{0}.{1:0000}.{2:0000} (Provider: {3} v{4})", return string.Format("Automation by Disco v{0}.{1}.{2:0000}.{3:0000} (Provider: {4} v{5})",
versionDisco.Major, versionDisco.Minor, versionDisco.Build, WarrantyProviderDefinition.Id, WarrantyProviderDefinition.PluginManifest.Version.ToString(3)); versionDisco.Major, versionDisco.Minor, versionDisco.Build, versionDisco.Revision, WarrantyProviderDefinition.Id, WarrantyProviderDefinition.PluginManifest.Version.ToString(4));
} }
public static void UpdateSubTypes(this Job j, DiscoDataContext dbContext, List<JobSubType> SubTypes, bool AddComponents, User TechUser) public static void UpdateSubTypes(this Job j, DiscoDataContext dbContext, List<JobSubType> SubTypes, bool AddComponents, User TechUser)
{ {
if (SubTypes == null || SubTypes.Count == 0) if (SubTypes == null || SubTypes.Count == 0)
throw new ArgumentException("The Job must contain at least one Sub Type"); throw new ArgumentException("The Job must contain at least one Sub Type");
List<JobSubType> addedSubTypes = new List<JobSubType>(); List<JobSubType> addedSubTypes = new List<JobSubType>();
List<JobSubType> removedSubTypes = new List<JobSubType>(); List<JobSubType> removedSubTypes = new List<JobSubType>();
// Removed Sub Types // Removed Sub Types
foreach (var t in j.JobSubTypes.ToArray()) foreach (var t in j.JobSubTypes.ToArray())
if (!SubTypes.Contains(t)) if (!SubTypes.Contains(t))
{ {
removedSubTypes.Add(t); removedSubTypes.Add(t);
j.JobSubTypes.Remove(t); j.JobSubTypes.Remove(t);
} }
// Added Sub Types // Added Sub Types
foreach (var t in SubTypes) foreach (var t in SubTypes)
if (!j.JobSubTypes.Contains(t)) if (!j.JobSubTypes.Contains(t))
{ {
addedSubTypes.Add(t); addedSubTypes.Add(t);
j.JobSubTypes.Add(t); j.JobSubTypes.Add(t);
} }
// Write Log // Write Log
if (addedSubTypes.Count > 0 || removedSubTypes.Count > 0) if (addedSubTypes.Count > 0 || removedSubTypes.Count > 0)
{ {
StringBuilder logBuilder = new StringBuilder(); StringBuilder logBuilder = new StringBuilder();
logBuilder.AppendLine("Updated Job Sub Types"); logBuilder.AppendLine("Updated Job Sub Types");
if (removedSubTypes.Count > 0) if (removedSubTypes.Count > 0)
{ {
logBuilder.AppendLine("Removed:"); logBuilder.AppendLine("Removed:");
foreach (var t in removedSubTypes) foreach (var t in removedSubTypes)
logBuilder.Append("- ").AppendLine(t.ToString()); logBuilder.Append("- ").AppendLine(t.ToString());
} }
if (addedSubTypes.Count > 0) if (addedSubTypes.Count > 0)
{ {
logBuilder.AppendLine("Added:"); logBuilder.AppendLine("Added:");
foreach (var t in addedSubTypes) foreach (var t in addedSubTypes)
logBuilder.Append("- ").AppendLine(t.ToString()); logBuilder.Append("- ").AppendLine(t.ToString());
} }
dbContext.JobLogs.Add(new JobLog() dbContext.JobLogs.Add(new JobLog()
{ {
JobId = j.Id, JobId = j.Id,
TechUserId = TechUser.Id, TechUserId = TechUser.Id,
Timestamp = DateTime.Now, Timestamp = DateTime.Now,
Comments = logBuilder.ToString() Comments = logBuilder.ToString()
}); });
} }
// Add Components // Add Components
if (AddComponents && addedSubTypes.Count > 0 && j.DeviceSerialNumber != null) if (AddComponents && addedSubTypes.Count > 0 && j.DeviceSerialNumber != null)
{ {
var components = dbContext.DeviceComponents.Include("JobSubTypes").Where(c => !c.DeviceModelId.HasValue || c.DeviceModelId == j.Device.DeviceModelId); var components = dbContext.DeviceComponents.Include("JobSubTypes").Where(c => !c.DeviceModelId.HasValue || c.DeviceModelId == j.Device.DeviceModelId);
var addedComponents = new List<DeviceComponent>(); var addedComponents = new List<DeviceComponent>();
foreach (var c in components) foreach (var c in components)
{ {
foreach (var st in c.JobSubTypes) foreach (var st in c.JobSubTypes)
{ {
foreach (var jst in addedSubTypes) foreach (var jst in addedSubTypes)
{ {
if (st.JobTypeId == jst.JobTypeId && st.Id == jst.Id) if (st.JobTypeId == jst.JobTypeId && st.Id == jst.Id)
{ {
addedComponents.Add(c); addedComponents.Add(c);
break; break;
} }
} }
if (addedComponents.Contains(c)) if (addedComponents.Contains(c))
break; break;
} }
} }
foreach (var c in addedComponents) foreach (var c in addedComponents)
{ {
if (!j.JobComponents.Any(jc => jc.Description.Equals(c.Description, StringComparison.InvariantCultureIgnoreCase))) if (!j.JobComponents.Any(jc => jc.Description.Equals(c.Description, StringComparison.InvariantCultureIgnoreCase)))
{ // Job Component with matching Description doesn't exist. { // Job Component with matching Description doesn't exist.
dbContext.JobComponents.Add(new JobComponent() dbContext.JobComponents.Add(new JobComponent()
{ {
Job = j, Job = j,
TechUserId = TechUser.Id, TechUserId = TechUser.Id,
Cost = c.Cost, Cost = c.Cost,
Description = c.Description Description = c.Description
}); });
} }
} }
} }
} }
} }
} }
@@ -245,6 +245,9 @@ namespace Disco.BI.Interop.ActiveDirectory
{ {
if (d.LastNetworkLogonDate.HasValue) if (d.LastNetworkLogonDate.HasValue)
{ {
// Change accuracy to the second
computerLastLogonDate = new DateTime((computerLastLogonDate.Ticks / 10000000L) * 10000000L);
if (System.DateTime.Compare(d.LastNetworkLogonDate.Value, computerLastLogonDate) < 0) if (System.DateTime.Compare(d.LastNetworkLogonDate.Value, computerLastLogonDate) < 0)
{ {
d.LastNetworkLogonDate = computerLastLogonDate; d.LastNetworkLogonDate = computerLastLogonDate;
+2 -2
View File
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0219.1854")] [assembly: AssemblyVersion("1.2.0221.1820")]
[assembly: AssemblyFileVersion("1.2.0219.1854")] [assembly: AssemblyFileVersion("1.2.0221.1820")]
Binary file not shown.
+2 -2
View File
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0219.1813")] [assembly: AssemblyVersion("1.2.0221.1820")]
[assembly: AssemblyFileVersion("1.2.0219.1813")] [assembly: AssemblyFileVersion("1.2.0221.1820")]
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0219.1813")] [assembly: AssemblyVersion("1.2.0221.1820")]
[assembly: AssemblyFileVersion("1.2.0219.1813")] [assembly: AssemblyFileVersion("1.2.0221.1820")]
+1 -1
View File
@@ -171,7 +171,7 @@ namespace Disco.Web
private static Lazy<string> _Version = new Lazy<string>(() => private static Lazy<string> _Version = new Lazy<string>(() =>
{ {
var AssemblyVersion = typeof(DiscoApplication).Assembly.GetName().Version; var AssemblyVersion = typeof(DiscoApplication).Assembly.GetName().Version;
return string.Format("{0}.{1}.{2:0000}", AssemblyVersion.Major, AssemblyVersion.Minor, AssemblyVersion.Build); return string.Format("{0}.{1}.{2:0000}.{3:0000}", AssemblyVersion.Major, AssemblyVersion.Minor, AssemblyVersion.Build, AssemblyVersion.Revision);
}); });
public static string Version public static string Version
{ {
+127 -127
View File
@@ -1,127 +1,127 @@
@model Disco.Web.Models.Job.ShowModel @model Disco.Web.Models.Job.ShowModel
<div id="jobDetailTab-Warranty" class="jobPart"> <div id="jobDetailTab-Warranty" class="jobPart">
<table id="jobNonWarrantyFinance"> <table id="jobNonWarrantyFinance">
<tr> <tr>
<th style="width: 200px;"> <th style="width: 200px;">
Warranty Provider Warranty Provider
</th> </th>
<td> <td>
@Html.EditorFor(m => m.Job.JobMetaWarranty.ExternalName) @Html.EditorFor(m => m.Job.JobMetaWarranty.ExternalName)
@AjaxHelpers.AjaxSave() @AjaxHelpers.AjaxSave()
@AjaxHelpers.AjaxLoader() @AjaxHelpers.AjaxLoader()
<script type="text/javascript"> <script type="text/javascript">
$(function () { $(function () {
document.DiscoFunctions.PropertyChangeHelper( document.DiscoFunctions.PropertyChangeHelper(
$('#Job_JobMetaWarranty_ExternalName'), $('#Job_JobMetaWarranty_ExternalName'),
'Unknown', 'Unknown',
'@Url.Action(MVC.API.Job.UpdateWarrantyExternalName(Model.Job.Id, null))', '@Url.Action(MVC.API.Job.UpdateWarrantyExternalName(Model.Job.Id, null))',
'ExternalName' 'ExternalName'
); );
}); });
</script> </script>
</td> </td>
</tr> </tr>
<tr> <tr>
<th style="width: 200px;"> <th style="width: 200px;">
Warranty Logged Warranty Logged
</th> </th>
<td> <td>
@Html.EditorFor(m => m.Job.JobMetaWarranty.ExternalLoggedDate) @Html.EditorFor(m => m.Job.JobMetaWarranty.ExternalLoggedDate)
@AjaxHelpers.AjaxLoader() @AjaxHelpers.AjaxLoader()
<script type="text/javascript"> <script type="text/javascript">
$(function () { $(function () {
var dateField = $('#Job_JobMetaWarranty_ExternalLoggedDate'); var dateField = $('#Job_JobMetaWarranty_ExternalLoggedDate');
document.DiscoFunctions.DateChangeHelper( document.DiscoFunctions.DateChangeHelper(
dateField, dateField,
'Unknown', 'Unknown',
'@(Url.Action(MVC.API.Job.UpdateWarrantyExternalLoggedDate(Model.Job.Id, null)))', '@(Url.Action(MVC.API.Job.UpdateWarrantyExternalLoggedDate(Model.Job.Id, null)))',
'ExternalLoggedDate', 'ExternalLoggedDate',
null null
); );
}); });
</script> </script>
</td> </td>
</tr> </tr>
<tr> <tr>
<th style="width: 200px;"> <th style="width: 200px;">
Warranty Reference Warranty Reference
</th> </th>
<td> <td>
@Html.EditorFor(m => m.Job.JobMetaWarranty.ExternalReference) @Html.EditorFor(m => m.Job.JobMetaWarranty.ExternalReference)
@AjaxHelpers.AjaxSave() @AjaxHelpers.AjaxSave()
@AjaxHelpers.AjaxLoader() @AjaxHelpers.AjaxLoader()
<script type="text/javascript"> <script type="text/javascript">
$(function () { $(function () {
document.DiscoFunctions.PropertyChangeHelper( document.DiscoFunctions.PropertyChangeHelper(
$('#Job_JobMetaWarranty_ExternalReference'), $('#Job_JobMetaWarranty_ExternalReference'),
'Unknown', 'Unknown',
'@Url.Action(MVC.API.Job.UpdateWarrantyExternalReference(Model.Job.Id, null))', '@Url.Action(MVC.API.Job.UpdateWarrantyExternalReference(Model.Job.Id, null))',
'ExternalReference' 'ExternalReference'
); );
}); });
</script> </script>
</td> </td>
</tr> </tr>
<tr> <tr>
<th style="width: 200px;"> <th style="width: 200px;">
Warranty Completed Warranty Completed
</th> </th>
<td> <td>
@Html.EditorFor(m => m.Job.JobMetaWarranty.ExternalCompletedDate) @Html.EditorFor(m => m.Job.JobMetaWarranty.ExternalCompletedDate)
@AjaxHelpers.AjaxLoader() @AjaxHelpers.AjaxLoader()
<script type="text/javascript"> <script type="text/javascript">
$(function () { $(function () {
var dateField = $('#Job_JobMetaWarranty_ExternalCompletedDate'); var dateField = $('#Job_JobMetaWarranty_ExternalCompletedDate');
document.DiscoFunctions.DateChangeHelper( document.DiscoFunctions.DateChangeHelper(
dateField, dateField,
'Unknown', 'Unknown',
'@(Url.Action(MVC.API.Job.UpdateWarrantyExternalCompletedDate(Model.Job.Id, null)))', '@(Url.Action(MVC.API.Job.UpdateWarrantyExternalCompletedDate(Model.Job.Id, null)))',
'ExternalCompletedDate', 'ExternalCompletedDate',
null null
); );
}); });
</script> </script>
</td> </td>
</tr> </tr>
<tr id="jobWarrantyProviderDetailContainer" style="display: none"> <tr id="jobWarrantyProviderDetailContainer" style="display: none">
<th style="width: 200px;"> <th style="width: 200px;">
Provider Details Provider Details
</th> </th>
<td> <td>
<div id="jobWarrantyProviderDetailLoading"> <div id="jobWarrantyProviderDetailLoading">
<span class="ajaxHelperIcon ajaxLoading" title="Loading..."></span> Loading... <span class="ajaxHelperIcon ajaxLoading" title="Loading..."></span> Loading...
</div> </div>
<div id="jobWarrantyProviderDetailHost" class="clearfix" style="display: none"> <div id="jobWarrantyProviderDetailHost" class="clearfix" style="display: none">
</div> </div>
</td> </td>
</tr> </tr>
</table> </table>
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
$('#jobDetailTabItems').append('<li><a href="#jobDetailTab-Warranty">Warranty</a></li>'); $('#jobDetailTabItems').append('<li><a href="#jobDetailTab-Warranty">Warranty</a></li>');
$(function () { $(function () {
var warrantyProviderDetailLoaded = false; var warrantyProviderDetailLoaded = false;
$('#jobDetailTabs').bind('tabsshow', function (e, ui) { $('#jobDetailTabs').on('tabsactivate', function (e, ui) {
if ($(ui.panel).is('#jobDetailTab-Warranty')) { if ($(ui.newPanel).is('#jobDetailTab-Warranty')) {
if (!warrantyProviderDetailLoaded) { if (!warrantyProviderDetailLoaded) {
var warrantyExternalName = $('#Job_JobMetaWarranty_ExternalName').val(); var warrantyExternalName = $('#Job_JobMetaWarranty_ExternalName').val();
if (warrantyExternalName) { if (warrantyExternalName) {
$('#jobWarrantyProviderDetailContainer').show(); $('#jobWarrantyProviderDetailContainer').show();
$('#jobWarrantyProviderDetailLoading span').show(); $('#jobWarrantyProviderDetailLoading span').show();
$('#jobWarrantyProviderDetailHost').load( $('#jobWarrantyProviderDetailHost').load(
'@(Url.Action(MVC.Job.WarrantyProviderJobDetails()))', '@(Url.Action(MVC.Job.WarrantyProviderJobDetails()))',
{ id: '@(Model.Job.Id)' }, { id: '@(Model.Job.Id)' },
function () { function () {
$('#jobWarrantyProviderDetailLoading').hide(); $('#jobWarrantyProviderDetailLoading').hide();
$(this).slideDown(); $(this).slideDown();
} }
); );
warrantyProviderDetailLoaded = true; warrantyProviderDetailLoaded = true;
} }
} }
} }
}); });
}); });
</script> </script>
+341 -341
View File
@@ -1,341 +1,341 @@
#pragma warning disable 1591 #pragma warning disable 1591
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
// Runtime Version:4.0.30319.17929 // Runtime Version:4.0.30319.17929
// //
// 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.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace Disco.Web.Views.Job.JobParts namespace Disco.Web.Views.Job.JobParts
{ {
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Net; using System.Net;
using System.Text; using System.Text;
using System.Web; using System.Web;
using System.Web.Helpers; using System.Web.Helpers;
using System.Web.Mvc; using System.Web.Mvc;
using System.Web.Mvc.Ajax; using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html; using System.Web.Mvc.Html;
using System.Web.Routing; using System.Web.Routing;
using System.Web.Security; using System.Web.Security;
using System.Web.UI; using System.Web.UI;
using System.Web.WebPages; using System.Web.WebPages;
using Disco.BI.Extensions; using Disco.BI.Extensions;
using Disco.Models.Repository; using Disco.Models.Repository;
using Disco.Web; using Disco.Web;
using Disco.Web.Extensions; using Disco.Web.Extensions;
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "1.5.0.0")] [System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "1.5.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/Job/JobParts/Warranty.cshtml")] [System.Web.WebPages.PageVirtualPathAttribute("~/Views/Job/JobParts/Warranty.cshtml")]
public class Warranty : System.Web.Mvc.WebViewPage<Disco.Web.Models.Job.ShowModel> public class Warranty : System.Web.Mvc.WebViewPage<Disco.Web.Models.Job.ShowModel>
{ {
public Warranty() public Warranty()
{ {
} }
public override void Execute() public override void Execute()
{ {
WriteLiteral("<div"); WriteLiteral("<div");
WriteLiteral(" id=\"jobDetailTab-Warranty\""); WriteLiteral(" id=\"jobDetailTab-Warranty\"");
WriteLiteral(" class=\"jobPart\""); WriteLiteral(" class=\"jobPart\"");
WriteLiteral(">\r\n <table"); WriteLiteral(">\r\n <table");
WriteLiteral(" id=\"jobNonWarrantyFinance\""); WriteLiteral(" id=\"jobNonWarrantyFinance\"");
WriteLiteral(">\r\n <tr>\r\n <th"); WriteLiteral(">\r\n <tr>\r\n <th");
WriteLiteral(" style=\"width: 200px;\""); WriteLiteral(" style=\"width: 200px;\"");
WriteLiteral(">\r\n Warranty Provider\r\n </th>\r\n <td>\r\n"); WriteLiteral(">\r\n Warranty Provider\r\n </th>\r\n <td>\r\n");
WriteLiteral(" "); WriteLiteral(" ");
#line 9 "..\..\Views\Job\JobParts\Warranty.cshtml" #line 9 "..\..\Views\Job\JobParts\Warranty.cshtml"
Write(Html.EditorFor(m => m.Job.JobMetaWarranty.ExternalName)); Write(Html.EditorFor(m => m.Job.JobMetaWarranty.ExternalName));
#line default #line default
#line hidden #line hidden
WriteLiteral("\r\n"); WriteLiteral("\r\n");
WriteLiteral(" "); WriteLiteral(" ");
#line 10 "..\..\Views\Job\JobParts\Warranty.cshtml" #line 10 "..\..\Views\Job\JobParts\Warranty.cshtml"
Write(AjaxHelpers.AjaxSave()); Write(AjaxHelpers.AjaxSave());
#line default #line default
#line hidden #line hidden
WriteLiteral("\r\n"); WriteLiteral("\r\n");
WriteLiteral(" "); WriteLiteral(" ");
#line 11 "..\..\Views\Job\JobParts\Warranty.cshtml" #line 11 "..\..\Views\Job\JobParts\Warranty.cshtml"
Write(AjaxHelpers.AjaxLoader()); Write(AjaxHelpers.AjaxLoader());
#line default #line default
#line hidden #line hidden
WriteLiteral("\r\n <script"); WriteLiteral("\r\n <script");
WriteLiteral(" type=\"text/javascript\""); WriteLiteral(" type=\"text/javascript\"");
WriteLiteral(">\r\n $(function () {\r\n document.DiscoFun" + WriteLiteral(">\r\n $(function () {\r\n document.DiscoFun" +
"ctions.PropertyChangeHelper(\r\n $(\'#Job_JobMetaWarrant" + "ctions.PropertyChangeHelper(\r\n $(\'#Job_JobMetaWarrant" +
"y_ExternalName\'),\r\n \'Unknown\',\r\n " + "y_ExternalName\'),\r\n \'Unknown\',\r\n " +
" \'"); " \'");
#line 17 "..\..\Views\Job\JobParts\Warranty.cshtml" #line 17 "..\..\Views\Job\JobParts\Warranty.cshtml"
Write(Url.Action(MVC.API.Job.UpdateWarrantyExternalName(Model.Job.Id, null))); Write(Url.Action(MVC.API.Job.UpdateWarrantyExternalName(Model.Job.Id, null)));
#line default #line default
#line hidden #line hidden
WriteLiteral("\',\r\n \'ExternalName\'\r\n );\r\n " + WriteLiteral("\',\r\n \'ExternalName\'\r\n );\r\n " +
" });\r\n </script>\r\n </td>\r\n </tr>\r" + " });\r\n </script>\r\n </td>\r\n </tr>\r" +
"\n <tr>\r\n <th"); "\n <tr>\r\n <th");
WriteLiteral(" style=\"width: 200px;\""); WriteLiteral(" style=\"width: 200px;\"");
WriteLiteral(">\r\n Warranty Logged\r\n </th>\r\n <td>\r\n"); WriteLiteral(">\r\n Warranty Logged\r\n </th>\r\n <td>\r\n");
WriteLiteral(" "); WriteLiteral(" ");
#line 29 "..\..\Views\Job\JobParts\Warranty.cshtml" #line 29 "..\..\Views\Job\JobParts\Warranty.cshtml"
Write(Html.EditorFor(m => m.Job.JobMetaWarranty.ExternalLoggedDate)); Write(Html.EditorFor(m => m.Job.JobMetaWarranty.ExternalLoggedDate));
#line default #line default
#line hidden #line hidden
WriteLiteral("\r\n"); WriteLiteral("\r\n");
WriteLiteral(" "); WriteLiteral(" ");
#line 30 "..\..\Views\Job\JobParts\Warranty.cshtml" #line 30 "..\..\Views\Job\JobParts\Warranty.cshtml"
Write(AjaxHelpers.AjaxLoader()); Write(AjaxHelpers.AjaxLoader());
#line default #line default
#line hidden #line hidden
WriteLiteral("\r\n <script"); WriteLiteral("\r\n <script");
WriteLiteral(" type=\"text/javascript\""); WriteLiteral(" type=\"text/javascript\"");
WriteLiteral(@"> WriteLiteral(@">
$(function () { $(function () {
var dateField = $('#Job_JobMetaWarranty_ExternalLoggedDate'); var dateField = $('#Job_JobMetaWarranty_ExternalLoggedDate');
document.DiscoFunctions.DateChangeHelper( document.DiscoFunctions.DateChangeHelper(
dateField, dateField,
'Unknown', 'Unknown',
'"); '");
#line 37 "..\..\Views\Job\JobParts\Warranty.cshtml" #line 37 "..\..\Views\Job\JobParts\Warranty.cshtml"
Write(Url.Action(MVC.API.Job.UpdateWarrantyExternalLoggedDate(Model.Job.Id, null))); Write(Url.Action(MVC.API.Job.UpdateWarrantyExternalLoggedDate(Model.Job.Id, null)));
#line default #line default
#line hidden #line hidden
WriteLiteral("\',\r\n \'ExternalLoggedDate\',\r\n null\r\n" + WriteLiteral("\',\r\n \'ExternalLoggedDate\',\r\n null\r\n" +
" );\r\n });\r\n </script>\r\n" + " );\r\n });\r\n </script>\r\n" +
" </td>\r\n </tr>\r\n <tr>\r\n <th"); " </td>\r\n </tr>\r\n <tr>\r\n <th");
WriteLiteral(" style=\"width: 200px;\""); WriteLiteral(" style=\"width: 200px;\"");
WriteLiteral(">\r\n Warranty Reference\r\n </th>\r\n <td>\r\n"); WriteLiteral(">\r\n Warranty Reference\r\n </th>\r\n <td>\r\n");
WriteLiteral(" "); WriteLiteral(" ");
#line 50 "..\..\Views\Job\JobParts\Warranty.cshtml" #line 50 "..\..\Views\Job\JobParts\Warranty.cshtml"
Write(Html.EditorFor(m => m.Job.JobMetaWarranty.ExternalReference)); Write(Html.EditorFor(m => m.Job.JobMetaWarranty.ExternalReference));
#line default #line default
#line hidden #line hidden
WriteLiteral("\r\n"); WriteLiteral("\r\n");
WriteLiteral(" "); WriteLiteral(" ");
#line 51 "..\..\Views\Job\JobParts\Warranty.cshtml" #line 51 "..\..\Views\Job\JobParts\Warranty.cshtml"
Write(AjaxHelpers.AjaxSave()); Write(AjaxHelpers.AjaxSave());
#line default #line default
#line hidden #line hidden
WriteLiteral("\r\n"); WriteLiteral("\r\n");
WriteLiteral(" "); WriteLiteral(" ");
#line 52 "..\..\Views\Job\JobParts\Warranty.cshtml" #line 52 "..\..\Views\Job\JobParts\Warranty.cshtml"
Write(AjaxHelpers.AjaxLoader()); Write(AjaxHelpers.AjaxLoader());
#line default #line default
#line hidden #line hidden
WriteLiteral("\r\n <script"); WriteLiteral("\r\n <script");
WriteLiteral(" type=\"text/javascript\""); WriteLiteral(" type=\"text/javascript\"");
WriteLiteral(">\r\n $(function () {\r\n document.DiscoFun" + WriteLiteral(">\r\n $(function () {\r\n document.DiscoFun" +
"ctions.PropertyChangeHelper(\r\n $(\'#Job_JobMetaWarrant" + "ctions.PropertyChangeHelper(\r\n $(\'#Job_JobMetaWarrant" +
"y_ExternalReference\'),\r\n \'Unknown\',\r\n " + "y_ExternalReference\'),\r\n \'Unknown\',\r\n " +
" \'"); " \'");
#line 58 "..\..\Views\Job\JobParts\Warranty.cshtml" #line 58 "..\..\Views\Job\JobParts\Warranty.cshtml"
Write(Url.Action(MVC.API.Job.UpdateWarrantyExternalReference(Model.Job.Id, null))); Write(Url.Action(MVC.API.Job.UpdateWarrantyExternalReference(Model.Job.Id, null)));
#line default #line default
#line hidden #line hidden
WriteLiteral("\',\r\n \'ExternalReference\'\r\n );\r\n" + WriteLiteral("\',\r\n \'ExternalReference\'\r\n );\r\n" +
" });\r\n </script>\r\n </td>\r\n <" + " });\r\n </script>\r\n </td>\r\n <" +
"/tr>\r\n <tr>\r\n <th"); "/tr>\r\n <tr>\r\n <th");
WriteLiteral(" style=\"width: 200px;\""); WriteLiteral(" style=\"width: 200px;\"");
WriteLiteral(">\r\n Warranty Completed\r\n </th>\r\n <td>\r\n"); WriteLiteral(">\r\n Warranty Completed\r\n </th>\r\n <td>\r\n");
WriteLiteral(" "); WriteLiteral(" ");
#line 70 "..\..\Views\Job\JobParts\Warranty.cshtml" #line 70 "..\..\Views\Job\JobParts\Warranty.cshtml"
Write(Html.EditorFor(m => m.Job.JobMetaWarranty.ExternalCompletedDate)); Write(Html.EditorFor(m => m.Job.JobMetaWarranty.ExternalCompletedDate));
#line default #line default
#line hidden #line hidden
WriteLiteral("\r\n"); WriteLiteral("\r\n");
WriteLiteral(" "); WriteLiteral(" ");
#line 71 "..\..\Views\Job\JobParts\Warranty.cshtml" #line 71 "..\..\Views\Job\JobParts\Warranty.cshtml"
Write(AjaxHelpers.AjaxLoader()); Write(AjaxHelpers.AjaxLoader());
#line default #line default
#line hidden #line hidden
WriteLiteral("\r\n <script"); WriteLiteral("\r\n <script");
WriteLiteral(" type=\"text/javascript\""); WriteLiteral(" type=\"text/javascript\"");
WriteLiteral(@"> WriteLiteral(@">
$(function () { $(function () {
var dateField = $('#Job_JobMetaWarranty_ExternalCompletedDate'); var dateField = $('#Job_JobMetaWarranty_ExternalCompletedDate');
document.DiscoFunctions.DateChangeHelper( document.DiscoFunctions.DateChangeHelper(
dateField, dateField,
'Unknown', 'Unknown',
'"); '");
#line 78 "..\..\Views\Job\JobParts\Warranty.cshtml" #line 78 "..\..\Views\Job\JobParts\Warranty.cshtml"
Write(Url.Action(MVC.API.Job.UpdateWarrantyExternalCompletedDate(Model.Job.Id, null))); Write(Url.Action(MVC.API.Job.UpdateWarrantyExternalCompletedDate(Model.Job.Id, null)));
#line default #line default
#line hidden #line hidden
WriteLiteral("\',\r\n \'ExternalCompletedDate\',\r\n nul" + WriteLiteral("\',\r\n \'ExternalCompletedDate\',\r\n nul" +
"l\r\n );\r\n });\r\n </script" + "l\r\n );\r\n });\r\n </script" +
">\r\n </td>\r\n </tr>\r\n <tr"); ">\r\n </td>\r\n </tr>\r\n <tr");
WriteLiteral(" id=\"jobWarrantyProviderDetailContainer\""); WriteLiteral(" id=\"jobWarrantyProviderDetailContainer\"");
WriteLiteral(" style=\"display: none\""); WriteLiteral(" style=\"display: none\"");
WriteLiteral(">\r\n <th"); WriteLiteral(">\r\n <th");
WriteLiteral(" style=\"width: 200px;\""); WriteLiteral(" style=\"width: 200px;\"");
WriteLiteral(">\r\n Provider Details\r\n </th>\r\n <td>\r\n " + WriteLiteral(">\r\n Provider Details\r\n </th>\r\n <td>\r\n " +
" <div"); " <div");
WriteLiteral(" id=\"jobWarrantyProviderDetailLoading\""); WriteLiteral(" id=\"jobWarrantyProviderDetailLoading\"");
WriteLiteral(">\r\n <span"); WriteLiteral(">\r\n <span");
WriteLiteral(" class=\"ajaxHelperIcon ajaxLoading\""); WriteLiteral(" class=\"ajaxHelperIcon ajaxLoading\"");
WriteLiteral(" title=\"Loading...\""); WriteLiteral(" title=\"Loading...\"");
WriteLiteral("></span> Loading...\r\n </div>\r\n <div"); WriteLiteral("></span> Loading...\r\n </div>\r\n <div");
WriteLiteral(" id=\"jobWarrantyProviderDetailHost\""); WriteLiteral(" id=\"jobWarrantyProviderDetailHost\"");
WriteLiteral(" class=\"clearfix\""); WriteLiteral(" class=\"clearfix\"");
WriteLiteral(" style=\"display: none\""); WriteLiteral(" style=\"display: none\"");
WriteLiteral(">\r\n </div>\r\n </td>\r\n </tr>\r\n </table>\r\n</div>" + WriteLiteral(">\r\n </div>\r\n </td>\r\n </tr>\r\n </table>\r\n</div>" +
"\r\n<script"); "\r\n<script");
WriteLiteral(" type=\"text/javascript\""); WriteLiteral(" type=\"text/javascript\"");
WriteLiteral(@"> WriteLiteral(@">
$('#jobDetailTabItems').append('<li><a href=""#jobDetailTab-Warranty"">Warranty</a></li>'); $('#jobDetailTabItems').append('<li><a href=""#jobDetailTab-Warranty"">Warranty</a></li>');
$(function () { $(function () {
var warrantyProviderDetailLoaded = false; var warrantyProviderDetailLoaded = false;
$('#jobDetailTabs').bind('tabsshow', function (e, ui) { $('#jobDetailTabs').on('tabsactivate', function (e, ui) {
if ($(ui.panel).is('#jobDetailTab-Warranty')) { if ($(ui.newPanel).is('#jobDetailTab-Warranty')) {
if (!warrantyProviderDetailLoaded) { if (!warrantyProviderDetailLoaded) {
var warrantyExternalName = $('#Job_JobMetaWarranty_ExternalName').val(); var warrantyExternalName = $('#Job_JobMetaWarranty_ExternalName').val();
if (warrantyExternalName) { if (warrantyExternalName) {
$('#jobWarrantyProviderDetailContainer').show(); $('#jobWarrantyProviderDetailContainer').show();
$('#jobWarrantyProviderDetailLoading span').show(); $('#jobWarrantyProviderDetailLoading span').show();
$('#jobWarrantyProviderDetailHost').load( $('#jobWarrantyProviderDetailHost').load(
'"); '");
#line 113 "..\..\Views\Job\JobParts\Warranty.cshtml" #line 113 "..\..\Views\Job\JobParts\Warranty.cshtml"
Write(Url.Action(MVC.Job.WarrantyProviderJobDetails())); Write(Url.Action(MVC.Job.WarrantyProviderJobDetails()));
#line default #line default
#line hidden #line hidden
WriteLiteral("\',\r\n { id: \'"); WriteLiteral("\',\r\n { id: \'");
#line 114 "..\..\Views\Job\JobParts\Warranty.cshtml" #line 114 "..\..\Views\Job\JobParts\Warranty.cshtml"
Write(Model.Job.Id); Write(Model.Job.Id);
#line default #line default
#line hidden #line hidden
WriteLiteral(@"' }, WriteLiteral(@"' },
function () { function () {
$('#jobWarrantyProviderDetailLoading').hide(); $('#jobWarrantyProviderDetailLoading').hide();
$(this).slideDown(); $(this).slideDown();
} }
); );
warrantyProviderDetailLoaded = true; warrantyProviderDetailLoaded = true;
} }
} }
} }
}); });
}); });
</script> </script>
"); ");
} }
} }
} }
#pragma warning restore 1591 #pragma warning restore 1591
+7 -4
View File
@@ -178,8 +178,10 @@
<div id="Job_Show_Device_Batch" title="Batch">@Html.ActionLink(Model.Job.Device.DeviceBatch.Name, MVC.Config.DeviceBatch.Index(Model.Job.Device.DeviceBatchId))</div> <div id="Job_Show_Device_Batch" title="Batch">@Html.ActionLink(Model.Job.Device.DeviceBatch.Name, MVC.Config.DeviceBatch.Index(Model.Job.Device.DeviceBatchId))</div>
} }
</div> </div>
@if (Model.Job.JobTypeId == JobType.JobTypeIds.HWar) @if (Model.Job.Device.DeviceBatch != null)
{ {
if (Model.Job.JobTypeId == JobType.JobTypeIds.HWar)
{
<div id="Job_Show_Device_Details_HWar"> <div id="Job_Show_Device_Details_HWar">
<div>DEVICE WARRANTY</div> <div>DEVICE WARRANTY</div>
<div>Until: <span id="Job_Show_Device_Details_HWar_ValidUntil">@Model.Job.Device.DeviceBatch.WarrantyValidUntil.ToFuzzy("Unknown")</span></div> <div>Until: <span id="Job_Show_Device_Details_HWar_ValidUntil">@Model.Job.Device.DeviceBatch.WarrantyValidUntil.ToFuzzy("Unknown")</span></div>
@@ -206,9 +208,9 @@
</script> </script>
} }
</div> </div>
} }
@if (Model.Job.JobTypeId == JobType.JobTypeIds.HNWar) if (Model.Job.JobTypeId == JobType.JobTypeIds.HNWar)
{ {
<div id="Job_Show_Device_Details_HNWar"> <div id="Job_Show_Device_Details_HNWar">
<div>INSURANCE</div> <div>INSURANCE</div>
<div id="Job_Show_Device_Details_HNWar_InsuranceSupplier">@Model.Job.Device.DeviceBatch.InsuranceSupplier</div> <div id="Job_Show_Device_Details_HNWar_InsuranceSupplier">@Model.Job.Device.DeviceBatch.InsuranceSupplier</div>
@@ -236,6 +238,7 @@
</script> </script>
} }
</div> </div>
}
} }
</div> </div>
@if (Model.Job.DeviceHeld.HasValue) @if (Model.Job.DeviceHeld.HasValue)
+132 -137
View File
@@ -686,8 +686,10 @@ WriteLiteral(" </div>\r\n");
#line hidden #line hidden
#line 181 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 181 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.JobTypeId == JobType.JobTypeIds.HWar) if (Model.Job.Device.DeviceBatch != null)
{ {
if (Model.Job.JobTypeId == JobType.JobTypeIds.HWar)
{
#line default #line default
@@ -704,7 +706,7 @@ WriteLiteral(" id=\"Job_Show_Device_Details_HWar_ValidUntil\"");
WriteLiteral(">"); WriteLiteral(">");
#line 185 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 187 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Model.Job.Device.DeviceBatch.WarrantyValidUntil.ToFuzzy("Unknown")); Write(Model.Job.Device.DeviceBatch.WarrantyValidUntil.ToFuzzy("Unknown"));
@@ -713,13 +715,13 @@ WriteLiteral(">");
WriteLiteral("</span></div>\r\n"); WriteLiteral("</span></div>\r\n");
#line 186 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 188 "..\..\Views\Job\JobParts\_Subject.cshtml"
#line default #line default
#line hidden #line hidden
#line 186 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 188 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (!string.IsNullOrWhiteSpace(Model.Job.Device.DeviceBatch.WarrantyDetails)) if (!string.IsNullOrWhiteSpace(Model.Job.Device.DeviceBatch.WarrantyDetails))
{ {
@@ -740,23 +742,23 @@ WriteLiteral(" id=\"Job_Show_Device_Details_HWar_Details_Dialog\"");
WriteLiteral(" class=\"dialog\""); WriteLiteral(" class=\"dialog\"");
WriteAttribute("title", Tuple.Create(" title=\"", 12473), Tuple.Create("\"", 12538) WriteAttribute("title", Tuple.Create(" title=\"", 12575), Tuple.Create("\"", 12640)
, Tuple.Create(Tuple.Create("", 12481), Tuple.Create("Warranty", 12481), true) , Tuple.Create(Tuple.Create("", 12583), Tuple.Create("Warranty", 12583), true)
, Tuple.Create(Tuple.Create(" ", 12489), Tuple.Create("Details", 12490), true) , Tuple.Create(Tuple.Create(" ", 12591), Tuple.Create("Details", 12592), true)
, Tuple.Create(Tuple.Create(" ", 12497), Tuple.Create("for", 12498), true) , Tuple.Create(Tuple.Create(" ", 12599), Tuple.Create("for", 12600), true)
#line 189 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 191 "..\..\Views\Job\JobParts\_Subject.cshtml"
, Tuple.Create(Tuple.Create(" ", 12501), Tuple.Create<System.Object, System.Int32>(Model.Job.Device.DeviceBatch.Name , Tuple.Create(Tuple.Create(" ", 12603), Tuple.Create<System.Object, System.Int32>(Model.Job.Device.DeviceBatch.Name
#line default #line default
#line hidden #line hidden
, 12502), false) , 12604), false)
); );
WriteLiteral(">\r\n <div>"); WriteLiteral(">\r\n <div>");
#line 190 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 192 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(new HtmlString(Model.Job.Device.DeviceBatch.WarrantyDetails)); Write(new HtmlString(Model.Job.Device.DeviceBatch.WarrantyDetails));
@@ -786,7 +788,7 @@ WriteLiteral(@">
"); ");
#line 207 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 209 "..\..\Views\Job\JobParts\_Subject.cshtml"
} }
@@ -795,18 +797,10 @@ WriteLiteral(@">
WriteLiteral(" </div> \r\n"); WriteLiteral(" </div> \r\n");
#line 209 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 211 "..\..\Views\Job\JobParts\_Subject.cshtml"
} }
if (Model.Job.JobTypeId == JobType.JobTypeIds.HNWar)
{
#line default
#line hidden
WriteLiteral(" ");
#line 210 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.JobTypeId == JobType.JobTypeIds.HNWar)
{
#line default #line default
@@ -823,7 +817,7 @@ WriteLiteral(" id=\"Job_Show_Device_Details_HNWar_InsuranceSupplier\"");
WriteLiteral(">"); WriteLiteral(">");
#line 214 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 216 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Model.Job.Device.DeviceBatch.InsuranceSupplier); Write(Model.Job.Device.DeviceBatch.InsuranceSupplier);
@@ -836,7 +830,7 @@ WriteLiteral(" id=\"Job_Show_Device_Details_HNWar_ValidUntil\"");
WriteLiteral(">"); WriteLiteral(">");
#line 215 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 217 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Model.Job.Device.DeviceBatch.InsuredUntil.ToFuzzy("Unknown")); Write(Model.Job.Device.DeviceBatch.InsuredUntil.ToFuzzy("Unknown"));
@@ -845,13 +839,13 @@ WriteLiteral(">");
WriteLiteral("</span></div>\r\n"); WriteLiteral("</span></div>\r\n");
#line 216 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 218 "..\..\Views\Job\JobParts\_Subject.cshtml"
#line default #line default
#line hidden #line hidden
#line 216 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 218 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (!string.IsNullOrWhiteSpace(Model.Job.Device.DeviceBatch.InsuranceDetails)) if (!string.IsNullOrWhiteSpace(Model.Job.Device.DeviceBatch.InsuranceDetails))
{ {
@@ -872,23 +866,23 @@ WriteLiteral(" id=\"Job_Show_Device_Details_HNWar_Details_Dialog\"");
WriteLiteral(" class=\"dialog\""); WriteLiteral(" class=\"dialog\"");
WriteAttribute("title", Tuple.Create(" title=\"", 14710), Tuple.Create("\"", 14776) WriteAttribute("title", Tuple.Create(" title=\"", 14823), Tuple.Create("\"", 14889)
, Tuple.Create(Tuple.Create("", 14718), Tuple.Create("Insurance", 14718), true) , Tuple.Create(Tuple.Create("", 14831), Tuple.Create("Insurance", 14831), true)
, Tuple.Create(Tuple.Create(" ", 14727), Tuple.Create("Details", 14728), true) , Tuple.Create(Tuple.Create(" ", 14840), Tuple.Create("Details", 14841), true)
, Tuple.Create(Tuple.Create(" ", 14735), Tuple.Create("for", 14736), true) , Tuple.Create(Tuple.Create(" ", 14848), Tuple.Create("for", 14849), true)
#line 219 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 221 "..\..\Views\Job\JobParts\_Subject.cshtml"
, Tuple.Create(Tuple.Create(" ", 14739), Tuple.Create<System.Object, System.Int32>(Model.Job.Device.DeviceBatch.Name , Tuple.Create(Tuple.Create(" ", 14852), Tuple.Create<System.Object, System.Int32>(Model.Job.Device.DeviceBatch.Name
#line default #line default
#line hidden #line hidden
, 14740), false) , 14853), false)
); );
WriteLiteral(">\r\n <div>"); WriteLiteral(">\r\n <div>");
#line 220 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 222 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(new HtmlString(Model.Job.Device.DeviceBatch.InsuranceDetails)); Write(new HtmlString(Model.Job.Device.DeviceBatch.InsuranceDetails));
@@ -918,7 +912,7 @@ WriteLiteral(@">
"); ");
#line 237 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 239 "..\..\Views\Job\JobParts\_Subject.cshtml"
} }
@@ -927,7 +921,8 @@ WriteLiteral(@">
WriteLiteral(" </div> \r\n"); WriteLiteral(" </div> \r\n");
#line 239 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 241 "..\..\Views\Job\JobParts\_Subject.cshtml"
}
} }
@@ -936,13 +931,13 @@ WriteLiteral(" </div> \r\n");
WriteLiteral(" </div>\r\n"); WriteLiteral(" </div>\r\n");
#line 241 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 244 "..\..\Views\Job\JobParts\_Subject.cshtml"
#line default #line default
#line hidden #line hidden
#line 241 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 244 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.DeviceHeld.HasValue) if (Model.Job.DeviceHeld.HasValue)
{ {
@@ -963,7 +958,7 @@ WriteLiteral(">\r\n <tr>\r\n
"Location:</td>\r\n <td>"); "Location:</td>\r\n <td>");
#line 247 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 250 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Html.TextBoxFor(m => m.Job.DeviceHeldLocation, new { @class = "small discreet" })); Write(Html.TextBoxFor(m => m.Job.DeviceHeldLocation, new { @class = "small discreet" }));
@@ -972,7 +967,7 @@ WriteLiteral(">\r\n <tr>\r\n
WriteLiteral(" "); WriteLiteral(" ");
#line 247 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 250 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(AjaxHelpers.AjaxSave()); Write(AjaxHelpers.AjaxSave());
@@ -981,7 +976,7 @@ WriteLiteral(" ");
WriteLiteral(" "); WriteLiteral(" ");
#line 247 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 250 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(AjaxHelpers.AjaxLoader()); Write(AjaxHelpers.AjaxLoader());
@@ -996,7 +991,7 @@ WriteLiteral(" id=\"Job_Show_Device_DeviceHeld_DeviceHeld\"");
WriteLiteral(">"); WriteLiteral(">");
#line 251 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 254 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(CommonHelpers.FriendlyDateAndTitleUser(Model.Job.DeviceHeld, Model.Job.DeviceHeldTechUser)); Write(CommonHelpers.FriendlyDateAndTitleUser(Model.Job.DeviceHeld, Model.Job.DeviceHeldTechUser));
@@ -1005,13 +1000,13 @@ WriteLiteral(">");
WriteLiteral("</span></td>\r\n </tr>\r\n"); WriteLiteral("</span></td>\r\n </tr>\r\n");
#line 253 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 256 "..\..\Views\Job\JobParts\_Subject.cshtml"
#line default #line default
#line hidden #line hidden
#line 253 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 256 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.DeviceReadyForReturn.HasValue) if (Model.Job.DeviceReadyForReturn.HasValue)
{ {
@@ -1026,7 +1021,7 @@ WriteLiteral(" id=\"Job_Show_Device_DeviceHeld_DeviceReadyForReturn\"");
WriteLiteral(">"); WriteLiteral(">");
#line 257 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 260 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(CommonHelpers.FriendlyDateAndTitleUser(Model.Job.DeviceReadyForReturn, Model.Job.DeviceReadyForReturnTechUser)); Write(CommonHelpers.FriendlyDateAndTitleUser(Model.Job.DeviceReadyForReturn, Model.Job.DeviceReadyForReturnTechUser));
@@ -1035,7 +1030,7 @@ WriteLiteral(">");
WriteLiteral("</span></td>\r\n </tr>\r\n"); WriteLiteral("</span></td>\r\n </tr>\r\n");
#line 259 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 262 "..\..\Views\Job\JobParts\_Subject.cshtml"
} }
@@ -1044,7 +1039,7 @@ WriteLiteral("</span></td>\r\n </tr>\r\n");
WriteLiteral(" "); WriteLiteral(" ");
#line 260 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 263 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.DeviceReturnedDate.HasValue) if (Model.Job.DeviceReturnedDate.HasValue)
{ {
@@ -1059,7 +1054,7 @@ WriteLiteral(" id=\"Job_Show_Device_DeviceHeld_DeviceReturnedDate\"");
WriteLiteral(">"); WriteLiteral(">");
#line 264 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 267 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(CommonHelpers.FriendlyDateAndTitleUser(Model.Job.DeviceReturnedDate, Model.Job.DeviceReturnedTechUser)); Write(CommonHelpers.FriendlyDateAndTitleUser(Model.Job.DeviceReturnedDate, Model.Job.DeviceReturnedTechUser));
@@ -1068,7 +1063,7 @@ WriteLiteral(">");
WriteLiteral("</span></td>\r\n </tr>\r\n"); WriteLiteral("</span></td>\r\n </tr>\r\n");
#line 266 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 269 "..\..\Views\Job\JobParts\_Subject.cshtml"
} }
@@ -1102,7 +1097,7 @@ WriteLiteral(@">
url: '"); url: '");
#line 290 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 293 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Url.Action(MVC.API.Job.UpdateDeviceHeldLocation(Model.Job.Id, null))); Write(Url.Action(MVC.API.Job.UpdateDeviceHeldLocation(Model.Job.Id, null)));
@@ -1131,7 +1126,7 @@ WriteLiteral(@"',
"); ");
#line 310 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 313 "..\..\Views\Job\JobParts\_Subject.cshtml"
} }
@@ -1140,7 +1135,7 @@ WriteLiteral(@"',
WriteLiteral(" </div>\r\n </td>\r\n"); WriteLiteral(" </div>\r\n </td>\r\n");
#line 313 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 316 "..\..\Views\Job\JobParts\_Subject.cshtml"
} }
@@ -1149,7 +1144,7 @@ WriteLiteral(" </div>\r\n </td>\r\n");
WriteLiteral(" "); WriteLiteral(" ");
#line 314 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 317 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.User != null) if (Model.Job.User != null)
{ {
@@ -1169,7 +1164,7 @@ WriteLiteral(" title=\"Display Name\"");
WriteLiteral(">"); WriteLiteral(">");
#line 318 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 321 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Html.ActionLink(Model.Job.User.DisplayName, MVC.User.Show(Model.Job.UserId))); Write(Html.ActionLink(Model.Job.User.DisplayName, MVC.User.Show(Model.Job.UserId)));
@@ -1184,7 +1179,7 @@ WriteLiteral(" title=\"Id\"");
WriteLiteral(">"); WriteLiteral(">");
#line 319 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 322 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Model.Job.UserId); Write(Model.Job.UserId);
@@ -1199,7 +1194,7 @@ WriteLiteral(" title=\"Type\"");
WriteLiteral(">["); WriteLiteral(">[");
#line 319 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 322 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Model.Job.User.Type); Write(Model.Job.User.Type);
@@ -1208,13 +1203,13 @@ WriteLiteral(">[");
WriteLiteral("]</span></div>\r\n"); WriteLiteral("]</span></div>\r\n");
#line 320 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 323 "..\..\Views\Job\JobParts\_Subject.cshtml"
#line default #line default
#line hidden #line hidden
#line 320 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 323 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (!string.IsNullOrWhiteSpace(Model.Job.User.PhoneNumber)) if (!string.IsNullOrWhiteSpace(Model.Job.User.PhoneNumber))
{ {
@@ -1229,7 +1224,7 @@ WriteLiteral(" title=\"Phone Number\"");
WriteLiteral(">Phone: "); WriteLiteral(">Phone: ");
#line 321 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 324 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Model.Job.User.PhoneNumber); Write(Model.Job.User.PhoneNumber);
@@ -1238,7 +1233,7 @@ WriteLiteral(">Phone: ");
WriteLiteral("</div>"); WriteLiteral("</div>");
#line 321 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 324 "..\..\Views\Job\JobParts\_Subject.cshtml"
} }
@@ -1247,7 +1242,7 @@ WriteLiteral("</div>");
WriteLiteral(" "); WriteLiteral(" ");
#line 322 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 325 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (!string.IsNullOrWhiteSpace(Model.Job.User.EmailAddress)) if (!string.IsNullOrWhiteSpace(Model.Job.User.EmailAddress))
{ {
@@ -1261,21 +1256,21 @@ WriteLiteral(" title=\"Email Address\"");
WriteLiteral(">Email: <a"); WriteLiteral(">Email: <a");
WriteAttribute("href", Tuple.Create(" href=\"", 21663), Tuple.Create("\"", 21707) WriteAttribute("href", Tuple.Create(" href=\"", 21807), Tuple.Create("\"", 21851)
, Tuple.Create(Tuple.Create("", 21670), Tuple.Create("mailto:", 21670), true) , Tuple.Create(Tuple.Create("", 21814), Tuple.Create("mailto:", 21814), true)
#line 323 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 326 "..\..\Views\Job\JobParts\_Subject.cshtml"
, Tuple.Create(Tuple.Create("", 21677), Tuple.Create<System.Object, System.Int32>(Model.Job.User.EmailAddress , Tuple.Create(Tuple.Create("", 21821), Tuple.Create<System.Object, System.Int32>(Model.Job.User.EmailAddress
#line default #line default
#line hidden #line hidden
, 21677), false) , 21821), false)
); );
WriteLiteral(">"); WriteLiteral(">");
#line 323 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 326 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Model.Job.User.EmailAddress); Write(Model.Job.User.EmailAddress);
@@ -1284,7 +1279,7 @@ WriteLiteral(">");
WriteLiteral("</a></div>"); WriteLiteral("</a></div>");
#line 323 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 326 "..\..\Views\Job\JobParts\_Subject.cshtml"
} }
@@ -1293,7 +1288,7 @@ WriteLiteral("</a></div>");
WriteLiteral(" "); WriteLiteral(" ");
#line 324 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 327 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.WaitingForUserAction.HasValue) if (Model.Job.WaitingForUserAction.HasValue)
{ {
@@ -1310,7 +1305,7 @@ WriteLiteral(">\r\n <h4>Awaiting Action</h4>\r\n
" Since: "); " Since: ");
#line 328 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 331 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Model.Job.WaitingForUserAction.ToFuzzy()); Write(Model.Job.WaitingForUserAction.ToFuzzy());
@@ -1319,7 +1314,7 @@ WriteLiteral(">\r\n <h4>Awaiting Action</h4>\r\n
WriteLiteral("\r\n </div>\r\n"); WriteLiteral("\r\n </div>\r\n");
#line 330 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 333 "..\..\Views\Job\JobParts\_Subject.cshtml"
} }
@@ -1328,7 +1323,7 @@ WriteLiteral("\r\n </div>\r\n");
WriteLiteral(" </div>\r\n </td>\r\n"); WriteLiteral(" </div>\r\n </td>\r\n");
#line 333 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 336 "..\..\Views\Job\JobParts\_Subject.cshtml"
} }
@@ -1345,13 +1340,13 @@ WriteLiteral(" id=\"Job_Show_Job_Actions\"");
WriteLiteral(">\r\n"); WriteLiteral(">\r\n");
#line 337 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 340 "..\..\Views\Job\JobParts\_Subject.cshtml"
#line default #line default
#line hidden #line hidden
#line 337 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 340 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.CanClose()) if (Model.Job.CanClose())
{ {
@@ -1359,14 +1354,14 @@ WriteLiteral(">\r\n");
#line default #line default
#line hidden #line hidden
#line 339 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 342 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Close Job", MVC.API.Job.Close(Model.Job.Id, true), "Job_Show_Job_Actions_Close_Button")); Write(Html.ActionLinkSmallButton("Close Job", MVC.API.Job.Close(Model.Job.Id, true), "Job_Show_Job_Actions_Close_Button"));
#line default #line default
#line hidden #line hidden
#line 339 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 342 "..\..\Views\Job\JobParts\_Subject.cshtml"
@@ -1415,7 +1410,7 @@ WriteLiteral(">\r\n $(function () {\r\n
" });\r\n });\r\n </script>\r\n"); " });\r\n });\r\n </script>\r\n");
#line 377 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 380 "..\..\Views\Job\JobParts\_Subject.cshtml"
} }
@@ -1424,7 +1419,7 @@ WriteLiteral(">\r\n $(function () {\r\n
WriteLiteral(" "); WriteLiteral(" ");
#line 378 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 381 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.CanReopen()) if (Model.Job.CanReopen())
{ {
@@ -1432,14 +1427,14 @@ WriteLiteral(" ");
#line default #line default
#line hidden #line hidden
#line 380 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 383 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Reopen Job", MVC.API.Job.Reopen(Model.Job.Id, true), "Job_Show_Job_Actions_Reopen_Button")); Write(Html.ActionLinkSmallButton("Reopen Job", MVC.API.Job.Reopen(Model.Job.Id, true), "Job_Show_Job_Actions_Reopen_Button"));
#line default #line default
#line hidden #line hidden
#line 380 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 383 "..\..\Views\Job\JobParts\_Subject.cshtml"
@@ -1489,7 +1484,7 @@ WriteLiteral(">\r\n $(function () {\r\n
" });\r\n </script>\r\n"); " });\r\n </script>\r\n");
#line 419 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 422 "..\..\Views\Job\JobParts\_Subject.cshtml"
} }
@@ -1498,7 +1493,7 @@ WriteLiteral(">\r\n $(function () {\r\n
WriteLiteral(" "); WriteLiteral(" ");
#line 420 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 423 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.CanDelete()) if (Model.Job.CanDelete())
{ {
@@ -1506,14 +1501,14 @@ WriteLiteral(" ");
#line default #line default
#line hidden #line hidden
#line 422 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 425 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Delete Job", MVC.API.Job.Delete(Model.Job.Id, true), "Job_Show_Job_Actions_Delete_Button")); Write(Html.ActionLinkSmallButton("Delete Job", MVC.API.Job.Delete(Model.Job.Id, true), "Job_Show_Job_Actions_Delete_Button"));
#line default #line default
#line hidden #line hidden
#line 422 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 425 "..\..\Views\Job\JobParts\_Subject.cshtml"
@@ -1564,7 +1559,7 @@ WriteLiteral(">\r\n $(function () {\r\n
" </script>\r\n"); " </script>\r\n");
#line 461 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 464 "..\..\Views\Job\JobParts\_Subject.cshtml"
} }
@@ -1573,7 +1568,7 @@ WriteLiteral(">\r\n $(function () {\r\n
WriteLiteral(" "); WriteLiteral(" ");
#line 462 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 465 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.CanLogWarranty()) if (Model.Job.CanLogWarranty())
{ {
@@ -1581,14 +1576,14 @@ WriteLiteral(" ");
#line default #line default
#line hidden #line hidden
#line 464 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 467 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Log Warranty", MVC.Job.LogWarranty(Model.Job.Id, null, null), "Job_Show_Job_Actions_LogWarranty_Button")); Write(Html.ActionLinkSmallButton("Log Warranty", MVC.Job.LogWarranty(Model.Job.Id, null, null), "Job_Show_Job_Actions_LogWarranty_Button"));
#line default #line default
#line hidden #line hidden
#line 464 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 467 "..\..\Views\Job\JobParts\_Subject.cshtml"
} }
@@ -1598,7 +1593,7 @@ WriteLiteral(" ");
WriteLiteral(" "); WriteLiteral(" ");
#line 466 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 469 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.CanWarrantyCompleted()) if (Model.Job.CanWarrantyCompleted())
{ {
@@ -1606,14 +1601,14 @@ WriteLiteral(" ");
#line default #line default
#line hidden #line hidden
#line 468 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 471 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Warranty Complete", MVC.API.Job.UpdateWarrantyExternalCompletedDate(Model.Job.Id, "Now", true), "Job_Show_Job_Actions_WarrantyComplete_Button", "alert")); Write(Html.ActionLinkSmallButton("Warranty Complete", MVC.API.Job.UpdateWarrantyExternalCompletedDate(Model.Job.Id, "Now", true), "Job_Show_Job_Actions_WarrantyComplete_Button", "alert"));
#line default #line default
#line hidden #line hidden
#line 468 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 471 "..\..\Views\Job\JobParts\_Subject.cshtml"
} }
@@ -1623,7 +1618,7 @@ WriteLiteral(" ");
WriteLiteral(" "); WriteLiteral(" ");
#line 470 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 473 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.CanInsuranceClaimFormSent()) if (Model.Job.CanInsuranceClaimFormSent())
{ {
@@ -1631,14 +1626,14 @@ WriteLiteral(" ");
#line default #line default
#line hidden #line hidden
#line 472 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 475 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Insurance Claim Form Sent", MVC.API.Job.UpdateInsuranceClaimFormSentDate(Model.Job.Id, "Now", true), "Job_Show_Job_Actions_InsuranceClaimFormSent_Button", "alert")); Write(Html.ActionLinkSmallButton("Insurance Claim Form Sent", MVC.API.Job.UpdateInsuranceClaimFormSentDate(Model.Job.Id, "Now", true), "Job_Show_Job_Actions_InsuranceClaimFormSent_Button", "alert"));
#line default #line default
#line hidden #line hidden
#line 472 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 475 "..\..\Views\Job\JobParts\_Subject.cshtml"
} }
@@ -1648,7 +1643,7 @@ WriteLiteral(" ");
WriteLiteral(" "); WriteLiteral(" ");
#line 474 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 477 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.CanLogRepair()) if (Model.Job.CanLogRepair())
{ {
@@ -1656,14 +1651,14 @@ WriteLiteral(" ");
#line default #line default
#line hidden #line hidden
#line 476 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 479 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Repairs Logged", MVC.API.Job.LogRepair(Model.Job.Id, null, null, true), "Job_Show_Job_Actions_LogRepair_Button")); Write(Html.ActionLinkSmallButton("Repairs Logged", MVC.API.Job.LogRepair(Model.Job.Id, null, null, true), "Job_Show_Job_Actions_LogRepair_Button"));
#line default #line default
#line hidden #line hidden
#line 476 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 479 "..\..\Views\Job\JobParts\_Subject.cshtml"
@@ -1680,13 +1675,13 @@ WriteLiteral(" title=\"Repairs Logged\"");
WriteLiteral(">\r\n"); WriteLiteral(">\r\n");
#line 478 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 481 "..\..\Views\Job\JobParts\_Subject.cshtml"
#line default #line default
#line hidden #line hidden
#line 478 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 481 "..\..\Views\Job\JobParts\_Subject.cshtml"
using (Html.BeginForm(MVC.API.Job.LogRepair(Model.Job.Id, null, null, true))) using (Html.BeginForm(MVC.API.Job.LogRepair(Model.Job.Id, null, null, true)))
{ {
@@ -1718,7 +1713,7 @@ WriteLiteral(" name=\"RepairerReference\"");
WriteLiteral(" />\r\n </p>\r\n"); WriteLiteral(" />\r\n </p>\r\n");
#line 488 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 491 "..\..\Views\Job\JobParts\_Subject.cshtml"
} }
@@ -1756,7 +1751,7 @@ WriteLiteral(">\r\n $(function () {\r\n
" });\r\n });\r\n </script>\r\n"); " });\r\n });\r\n </script>\r\n");
#line 526 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 529 "..\..\Views\Job\JobParts\_Subject.cshtml"
} }
@@ -1765,7 +1760,7 @@ WriteLiteral(">\r\n $(function () {\r\n
WriteLiteral(" "); WriteLiteral(" ");
#line 527 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 530 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.CanRepairComplete()) if (Model.Job.CanRepairComplete())
{ {
@@ -1773,14 +1768,14 @@ WriteLiteral(" ");
#line default #line default
#line hidden #line hidden
#line 529 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 532 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Repairs Complete", MVC.API.Job.UpdateNonWarrantyRepairerCompletedDate(Model.Job.Id, "Now", true), "Job_Show_Job_Actions_RepairComplete_Button", "alert")); Write(Html.ActionLinkSmallButton("Repairs Complete", MVC.API.Job.UpdateNonWarrantyRepairerCompletedDate(Model.Job.Id, "Now", true), "Job_Show_Job_Actions_RepairComplete_Button", "alert"));
#line default #line default
#line hidden #line hidden
#line 529 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 532 "..\..\Views\Job\JobParts\_Subject.cshtml"
} }
@@ -1790,7 +1785,7 @@ WriteLiteral(" ");
WriteLiteral(" "); WriteLiteral(" ");
#line 531 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 534 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.CanConvertHWarToHNWar()) if (Model.Job.CanConvertHWarToHNWar())
{ {
@@ -1798,14 +1793,14 @@ WriteLiteral(" ");
#line default #line default
#line hidden #line hidden
#line 533 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 536 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Convert to Non-Warranty", MVC.API.Job.ConvertHWarToHNWar(Model.Job.Id, true), "Job_Show_Job_Actions_ConvertToHNWar_Button")); Write(Html.ActionLinkSmallButton("Convert to Non-Warranty", MVC.API.Job.ConvertHWarToHNWar(Model.Job.Id, true), "Job_Show_Job_Actions_ConvertToHNWar_Button"));
#line default #line default
#line hidden #line hidden
#line 533 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 536 "..\..\Views\Job\JobParts\_Subject.cshtml"
@@ -1856,7 +1851,7 @@ WriteLiteral(">\r\n $(function () {\r\n
" \r\n });\r\n </script>\r\n"); " \r\n });\r\n </script>\r\n");
#line 574 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 577 "..\..\Views\Job\JobParts\_Subject.cshtml"
} }
@@ -1865,13 +1860,13 @@ WriteLiteral(">\r\n $(function () {\r\n
WriteLiteral(" </td>\r\n"); WriteLiteral(" </td>\r\n");
#line 576 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 579 "..\..\Views\Job\JobParts\_Subject.cshtml"
#line default #line default
#line hidden #line hidden
#line 576 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 579 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.Device != null) if (Model.Job.Device != null)
{ {
@@ -1885,13 +1880,13 @@ WriteLiteral(" id=\"Job_Show_Device_Actions\"");
WriteLiteral(">\r\n"); WriteLiteral(">\r\n");
#line 579 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 582 "..\..\Views\Job\JobParts\_Subject.cshtml"
#line default #line default
#line hidden #line hidden
#line 579 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 582 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.CanDeviceHeld()) if (Model.Job.CanDeviceHeld())
{ {
@@ -1899,14 +1894,14 @@ WriteLiteral(">\r\n");
#line default #line default
#line hidden #line hidden
#line 581 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 584 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Held", MVC.API.Job.DeviceHeld(Model.Job.Id, true), "Job_Show_Device_Actions_Held_Button")); Write(Html.ActionLinkSmallButton("Held", MVC.API.Job.DeviceHeld(Model.Job.Id, true), "Job_Show_Device_Actions_Held_Button"));
#line default #line default
#line hidden #line hidden
#line 581 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 584 "..\..\Views\Job\JobParts\_Subject.cshtml"
} }
@@ -1916,7 +1911,7 @@ WriteLiteral(">\r\n");
WriteLiteral(" "); WriteLiteral(" ");
#line 583 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 586 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.CanDeviceReadyForReturn()) if (Model.Job.CanDeviceReadyForReturn())
{ {
@@ -1924,14 +1919,14 @@ WriteLiteral(" ");
#line default #line default
#line hidden #line hidden
#line 585 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 588 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Ready For Return", MVC.API.Job.DeviceReadyForReturn(Model.Job.Id, true), "Job_Show_Device_Actions_DeviceReadyForReturn_Button", "alert")); Write(Html.ActionLinkSmallButton("Ready For Return", MVC.API.Job.DeviceReadyForReturn(Model.Job.Id, true), "Job_Show_Device_Actions_DeviceReadyForReturn_Button", "alert"));
#line default #line default
#line hidden #line hidden
#line 585 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 588 "..\..\Views\Job\JobParts\_Subject.cshtml"
} }
@@ -1941,7 +1936,7 @@ WriteLiteral(" ");
WriteLiteral(" "); WriteLiteral(" ");
#line 587 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 590 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.CanDeviceReturned()) if (Model.Job.CanDeviceReturned())
{ {
@@ -1949,14 +1944,14 @@ WriteLiteral(" ");
#line default #line default
#line hidden #line hidden
#line 589 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 592 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Returned", MVC.API.Job.DeviceReturned(Model.Job.Id, true), "Job_Show_Device_Actions_DeviceReturned_Button", Model.Job.CanDeviceReadyForReturn() ? null : "alert")); Write(Html.ActionLinkSmallButton("Returned", MVC.API.Job.DeviceReturned(Model.Job.Id, true), "Job_Show_Device_Actions_DeviceReturned_Button", Model.Job.CanDeviceReadyForReturn() ? null : "alert"));
#line default #line default
#line hidden #line hidden
#line 589 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 592 "..\..\Views\Job\JobParts\_Subject.cshtml"
} }
@@ -1966,7 +1961,7 @@ WriteLiteral(" ");
WriteLiteral(" </td>\r\n"); WriteLiteral(" </td>\r\n");
#line 592 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 595 "..\..\Views\Job\JobParts\_Subject.cshtml"
} }
@@ -1975,7 +1970,7 @@ WriteLiteral(" </td>\r\n");
WriteLiteral(" "); WriteLiteral(" ");
#line 593 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 596 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.User != null) if (Model.Job.User != null)
{ {
@@ -1989,13 +1984,13 @@ WriteLiteral(" id=\"Job_Show_User_Actions\"");
WriteLiteral(">\r\n\r\n\r\n"); WriteLiteral(">\r\n\r\n\r\n");
#line 598 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 601 "..\..\Views\Job\JobParts\_Subject.cshtml"
#line default #line default
#line hidden #line hidden
#line 598 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 601 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.CanWaitingForUserAction()) if (Model.Job.CanWaitingForUserAction())
{ {
@@ -2023,13 +2018,13 @@ WriteLiteral(" title=\"Waiting for User Action\"");
WriteLiteral(">\r\n"); WriteLiteral(">\r\n");
#line 602 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 605 "..\..\Views\Job\JobParts\_Subject.cshtml"
#line default #line default
#line hidden #line hidden
#line 602 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 605 "..\..\Views\Job\JobParts\_Subject.cshtml"
using (Html.BeginForm(MVC.API.Job.WaitingForUserAction(Model.Job.Id, null, true))) using (Html.BeginForm(MVC.API.Job.WaitingForUserAction(Model.Job.Id, null, true)))
{ {
@@ -2047,7 +2042,7 @@ WriteLiteral(" class=\"block\"");
WriteLiteral("></textarea>\r\n </p>\r\n"); WriteLiteral("></textarea>\r\n </p>\r\n");
#line 608 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 611 "..\..\Views\Job\JobParts\_Subject.cshtml"
} }
@@ -2082,7 +2077,7 @@ WriteLiteral(">\r\n $(function () {\r\n
" });\r\n </script>\r\n"); " });\r\n </script>\r\n");
#line 641 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 644 "..\..\Views\Job\JobParts\_Subject.cshtml"
} }
@@ -2091,7 +2086,7 @@ WriteLiteral(">\r\n $(function () {\r\n
WriteLiteral(" "); WriteLiteral(" ");
#line 642 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 645 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.CanNotWaitingForUserAction()) if (Model.Job.CanNotWaitingForUserAction())
{ {
@@ -2119,13 +2114,13 @@ WriteLiteral(" title=\"Not Waiting for User Action\"");
WriteLiteral(">\r\n"); WriteLiteral(">\r\n");
#line 646 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 649 "..\..\Views\Job\JobParts\_Subject.cshtml"
#line default #line default
#line hidden #line hidden
#line 646 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 649 "..\..\Views\Job\JobParts\_Subject.cshtml"
using (Html.BeginForm(MVC.API.Job.NotWaitingForUserAction(Model.Job.Id, null, true))) using (Html.BeginForm(MVC.API.Job.NotWaitingForUserAction(Model.Job.Id, null, true)))
{ {
@@ -2143,7 +2138,7 @@ WriteLiteral(" class=\"block\"");
WriteLiteral("></textarea>\r\n </p>\r\n"); WriteLiteral("></textarea>\r\n </p>\r\n");
#line 652 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 655 "..\..\Views\Job\JobParts\_Subject.cshtml"
} }
@@ -2179,7 +2174,7 @@ WriteLiteral(">\r\n $(function () {\r\n
" });\r\n </script>\r\n"); " });\r\n </script>\r\n");
#line 686 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 689 "..\..\Views\Job\JobParts\_Subject.cshtml"
} }
@@ -2188,7 +2183,7 @@ WriteLiteral(">\r\n $(function () {\r\n
WriteLiteral("\r\n </td>\r\n"); WriteLiteral("\r\n </td>\r\n");
#line 689 "..\..\Views\Job\JobParts\_Subject.cshtml" #line 692 "..\..\Views\Job\JobParts\_Subject.cshtml"
} }