@model Disco.Web.Models.Job.ShowModel @{ Authorization.Require(Claims.Job.Show); }
@Model.Job.JobType.Description
@Model.Job.JobType.Description@using (Html.BeginForm(MVC.API.Job.UpdateSubTypes(Model.Job.Id, redirect: true), FormMethod.Post, new { id = "formUpdateJobTypes" })) { @CommonHelpers.CheckBoxList("SubTypes", Model.UpdatableJobSubTypes.ToSelectListItems(Model.Job.JobSubTypes.ToList()), 3)
@Html.DropDownList("Job_Show_GenerateDocument", Model.DocumentTemplatesSelectListItems)
}
|
@if (Model.Job.Device != null)
{
@if (Authorization.Has(Claims.Device.Show)) {@Html.ActionLink(Model.Job.DeviceSerialNumber, MVC.Device.Show(Model.Job.DeviceSerialNumber))} else {@Model.Job.DeviceSerialNumber}@Model.Job.Device.ComputerName
@Html.ActionLink(Model.Job.Device.DeviceModel.ToString(), MVC.Config.DeviceModel.Index(Model.Job.Device.DeviceModelId))
@if (Model.Job.Device.DeviceBatch != null)
{
@Html.ActionLink(Model.Job.Device.DeviceBatch.Name, MVC.Config.DeviceBatch.Index(Model.Job.Device.DeviceBatchId))
}
DEVICE WARRANTY
Until: @Model.Job.Device.DeviceBatch.WarrantyValidUntil.ToFullDateTime("Unknown")
@if (!string.IsNullOrWhiteSpace(Model.Job.Device.DeviceBatch.WarrantyDetails))
{
Show Details
@(new HtmlString(Model.Job.Device.DeviceBatch.WarrantyDetails))
INSURANCE
@Model.Job.Device.DeviceBatch.InsuranceSupplier
Until: @Model.Job.Device.DeviceBatch.InsuredUntil.ToFullDateTime("Unknown")
@if (!string.IsNullOrWhiteSpace(Model.Job.Device.DeviceBatch.InsuranceDetails))
{
Show Details
@(new HtmlString(Model.Job.Device.DeviceBatch.InsuranceDetails))
|
}
@if (Model.Job.User != null)
{
@if (Authorization.Has(Claims.User.Show)) {@Html.ActionLink(Model.Job.User.DisplayName, MVC.User.Show(Model.Job.UserId))} else {@Model.Job.User.DisplayName}@Model.Job.UserId
@if (Authorization.Has(Claims.User.ShowDetails))
{
if (!string.IsNullOrWhiteSpace(Model.Job.User.PhoneNumber))
{Phone: @Model.Job.User.PhoneNumber }
if (!string.IsNullOrWhiteSpace(Model.Job.User.EmailAddress))
{Email: @Model.Job.User.EmailAddress }
}
@if (Model.Job.WaitingForUserAction.HasValue)
{
Awaiting ActionSince: @Model.Job.WaitingForUserAction.ToFullDateTime() |
}
||||||||||||||||
|
@if (Model.Job.CanCloseForced())
{
@Html.ActionLinkSmallButton("Forcibly Close", MVC.API.Job.Close(Model.Job.Id, true), "Job_Show_Job_Actions_ForceClose_Button")
@using (Html.BeginForm(MVC.API.Job.ForceClose(Model.Job.Id, null, true)))
{
}
@if (Model.Job.CanCloseNormally())
{
@Html.ActionLinkSmallButton("Close", MVC.API.Job.Close(Model.Job.Id, true), "Job_Show_Job_Actions_Close_Button")
Are you sure? Reason:} Are you sure? Are you sure? This item will be permanently deleted and cannot be recovered. Are you sure?
@using (Html.BeginForm(MVC.API.JobQueueJob.AddJob()))
{
}
@if (Model.Job.CanLogWarranty())
{
@Html.ActionLinkSmallButton("Log Warranty", MVC.Job.LogWarranty(Model.Job.Id, null, null), "Job_Show_Job_Actions_LogWarranty_Button")
}
@if (Model.Job.CanWarrantyCompleted())
{
@Html.ActionLinkSmallButton("Warranty Complete", MVC.API.Job.UpdateWarrantyExternalCompletedDate(Model.Job.Id, "Now", true), "Job_Show_Job_Actions_WarrantyComplete_Button", "alert")
}
@if (Model.Job.CanInsuranceClaimFormSent())
{
@Html.ActionLinkSmallButton("Insurance Claim Sent", MVC.API.Job.UpdateInsuranceClaimFormSentDate(Model.Job.Id, "Now", true), "Job_Show_Job_Actions_InsuranceClaimSent_Button", "alert")
}
@if (Model.Job.CanLogRepair())
{
@Html.ActionLinkSmallButton("Repairs Logged", MVC.API.Job.LogRepair(Model.Job.Id, null, null, true), "Job_Show_Job_Actions_LogRepair_Button")
@foreach (var jobQueue in Model.AvailableQueues.OrderBy(jq => jq.Name))
{
@jobQueue.Name
}
Job Priority@Html.DropDownList("Priority", priorityItems)SLA Target@Html.DropDownList("SLAExpiresMinutes", slaOptions)Tasks/Comment@Html.TextArea("Comment")
@using (Html.BeginForm(MVC.API.Job.LogRepair(Model.Job.Id, null, null, true)))
{
}
@if (Model.Job.CanRepairComplete())
{
@Html.ActionLinkSmallButton("Repairs Complete", MVC.API.Job.UpdateNonWarrantyRepairerCompletedDate(Model.Job.Id, "Now", true), "Job_Show_Job_Actions_RepairComplete_Button", "alert")
}
@if (Model.Job.CanConvertHWarToHNWar())
{
@Html.ActionLinkSmallButton("Convert to Non-Warranty", MVC.API.Job.ConvertHWarToHNWar(Model.Job.Id, true), "Job_Show_Job_Actions_ConvertToHNWar_Button")
Repairer Name:
Repairer Reference:}
This process is not reversible. |
@if (Model.Job.Device != null)
{
@if (Model.Job.CanDeviceHeld()) { @Html.ActionLinkSmallButton("Device Held", MVC.API.Job.DeviceHeld(Model.Job.Id, true), "Job_Show_Device_Actions_Held_Button") } @if (Model.Job.CanDeviceReadyForReturn()) { @Html.ActionLinkSmallButton("Device Ready For Return", MVC.API.Job.DeviceReadyForReturn(Model.Job.Id, true), "Job_Show_Device_Actions_DeviceReadyForReturn_Button", "alert") } @if (Model.Job.CanDeviceReturned()) { @Html.ActionLinkSmallButton("Device Returned", MVC.API.Job.DeviceReturned(Model.Job.Id, true), "Job_Show_Device_Actions_DeviceReturned_Button", Model.Job.CanDeviceReadyForReturn() ? null : "alert") } | } @if (Model.Job.User != null) {
@if (Model.Job.CanWaitingForUserAction())
{
Awaiting User Action
@using (Html.BeginForm(MVC.API.Job.WaitingForUserAction(Model.Job.Id, null, true)))
{
}
@if (Model.Job.CanNotWaitingForUserAction())
{
User Action Resolved
Reason:}
@using (Html.BeginForm(MVC.API.Job.NotWaitingForUserAction(Model.Job.Id, null, true)))
{
}
Resolution:} |
}