Update: Auth Claims Refinement, Job Creation
Auth Claims for Job Creation types, user details.
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
{
|
||||
@Html.HiddenFor(m => m.DeviceSerialNumber)
|
||||
@Html.HiddenFor(m => m.UserId)
|
||||
@Html.HiddenFor(m => m.QuickLogDestinationUrl)
|
||||
@Html.HiddenFor(m => m.SourceUrl)
|
||||
|
||||
@Html.Partial(MVC.Job.Views._CreateSubject, Model)
|
||||
@Html.ValidationSummary(true)
|
||||
@@ -62,6 +62,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
if (Authorization.Has(Claims.Job.Actions.Close)){
|
||||
<div id="createJob_QuickLogContainer" class="createJob_Component">
|
||||
<div id="createJob_QuickLogAutoCloseContainer">
|
||||
<input id="createJob_QuickLog" name="QuickLog" type="checkbox" value="true" /><label for="createJob_QuickLog">Automatically close this job</label>
|
||||
@@ -80,6 +81,7 @@
|
||||
@Html.ValidationMessageFor(m => m.QuickLogTaskTimeMinutes)
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
@@ -87,7 +89,7 @@
|
||||
var init = true;
|
||||
//#region Parent Dialog
|
||||
if (window.parent && window.parent.document) {
|
||||
$('#QuickLogDestinationUrl').val(window.parent.window.location.href);
|
||||
$('#SourceUrl').val(window.parent.window.location.href);
|
||||
|
||||
var parentDialog = $('#createJobDialog', window.parent.document);
|
||||
if (parentDialog.length > 0) {
|
||||
@@ -165,6 +167,8 @@
|
||||
isValid = false;
|
||||
}
|
||||
|
||||
@if (Authorization.Has(Claims.Job.Actions.Close)){
|
||||
<text>
|
||||
// Validate QuickLog Task Time
|
||||
if ($quickLog.is(':checked')) {
|
||||
var selectedTime = $quickLogTaskTimes.filter(':checked');
|
||||
@@ -186,6 +190,8 @@
|
||||
} else {
|
||||
$quickLogTaskTimeValidationMessage.removeClass('field-validation-valid').addClass('field-validation-error');
|
||||
}
|
||||
</text>
|
||||
}
|
||||
|
||||
return isValid;
|
||||
}
|
||||
@@ -233,6 +239,8 @@
|
||||
}
|
||||
//#endregion
|
||||
|
||||
@if (Authorization.Has(Claims.Job.Actions.Close)){
|
||||
<text>
|
||||
//#region QuickLog
|
||||
var $quickLog = $('#createJob_QuickLog');
|
||||
var $quickLogContainer = $('#createJob_QuickLogContainer');
|
||||
@@ -295,6 +303,8 @@
|
||||
}
|
||||
});
|
||||
//#endregion
|
||||
</text>
|
||||
}
|
||||
|
||||
init = false;
|
||||
});
|
||||
|
||||
@@ -105,14 +105,14 @@ WriteLiteral(">\r\n");
|
||||
#line hidden
|
||||
|
||||
#line 13 "..\..\Views\Job\Create.cshtml"
|
||||
Write(Html.HiddenFor(m => m.QuickLogDestinationUrl));
|
||||
Write(Html.HiddenFor(m => m.SourceUrl));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 13 "..\..\Views\Job\Create.cshtml"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -210,15 +210,15 @@ WriteLiteral(">\r\n");
|
||||
#line hidden
|
||||
WriteLiteral(" <div");
|
||||
|
||||
WriteAttribute("id", Tuple.Create(" id=\"", 1091), Tuple.Create("\"", 1122)
|
||||
, Tuple.Create(Tuple.Create("", 1096), Tuple.Create("createJob_SubType_", 1096), true)
|
||||
WriteAttribute("id", Tuple.Create(" id=\"", 1078), Tuple.Create("\"", 1109)
|
||||
, Tuple.Create(Tuple.Create("", 1083), Tuple.Create("createJob_SubType_", 1083), true)
|
||||
|
||||
#line 28 "..\..\Views\Job\Create.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1114), Tuple.Create<System.Object, System.Int32>(jt.Id
|
||||
, Tuple.Create(Tuple.Create("", 1101), Tuple.Create<System.Object, System.Int32>(jt.Id
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1114), false)
|
||||
, 1101), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" class=\"createJob_SubType\"");
|
||||
@@ -333,6 +333,13 @@ WriteLiteral(" ");
|
||||
WriteLiteral("\r\n </td>\r\n </tr>\r\n </table>\r\n " +
|
||||
" </div>\r\n");
|
||||
|
||||
|
||||
#line 65 "..\..\Views\Job\Create.cshtml"
|
||||
if (Authorization.Has(Claims.Job.Actions.Close)){
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <div");
|
||||
|
||||
WriteLiteral(" id=\"createJob_QuickLogContainer\"");
|
||||
@@ -452,7 +459,7 @@ WriteLiteral(" />\r\n Minutes\r\n </span>\r\n"
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 80 "..\..\Views\Job\Create.cshtml"
|
||||
#line 81 "..\..\Views\Job\Create.cshtml"
|
||||
Write(Html.ValidationMessageFor(m => m.QuickLogTaskTimeMinutes));
|
||||
|
||||
|
||||
@@ -461,7 +468,8 @@ WriteLiteral(" ");
|
||||
WriteLiteral("\r\n </div>\r\n </div>\r\n");
|
||||
|
||||
|
||||
#line 83 "..\..\Views\Job\Create.cshtml"
|
||||
#line 84 "..\..\Views\Job\Create.cshtml"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -473,129 +481,187 @@ WriteLiteral(" type=\"text/javascript\"");
|
||||
|
||||
WriteLiteral(">\r\n $(function () {\r\n var discoDialogMethods;\r\n var " +
|
||||
"init = true;\r\n //#region Parent Dialog\r\n if (window.parent" +
|
||||
" && window.parent.document) {\r\n $(\'#QuickLogDestinationUrl\').val(" +
|
||||
"window.parent.window.location.href);\r\n\r\n var parentDialog = $(\'#c" +
|
||||
"reateJobDialog\', window.parent.document);\r\n if (parentDialog.leng" +
|
||||
"th > 0) {\r\n discoDialogMethods = parentDialog[0].discoDialogM" +
|
||||
"ethods;\r\n var buttons = {\r\n \"Create Jo" +
|
||||
"b\": function () {\r\n createJobForm.submit()\r\n " +
|
||||
" },\r\n Cancel: function () {\r\n " +
|
||||
" discoDialogMethods.close();\r\n }\r\n " +
|
||||
" }\r\n\r\n discoDialogMethods.setButtons(buttons);\r\n " +
|
||||
" }\r\n }\r\n //#endregion\r\n\r\n\r\n var crea" +
|
||||
"teJobForm = $(\'form\');\r\n var validator = createJobForm.data(\'validato" +
|
||||
"r\');\r\n var unobtrusiveValidation = createJobForm.data(\'unobtrusiveVal" +
|
||||
"idation\');\r\n\r\n // Validate all Fields\r\n validator.settings" +
|
||||
".ignore = \'\';\r\n\r\n //#region Job Type/SubTypes\r\n var $jobTy" +
|
||||
"peContainer = $(\'#createJob_Type\');\r\n var $typeValidationMessage = $(" +
|
||||
"\'[data-valmsg-for=\"Type\"]\', $jobTypeContainer)\r\n var $subTypesValidat" +
|
||||
"ionMessage = $(\'[data-valmsg-for=\"SubTypes\"]\', $jobTypeContainer)\r\n v" +
|
||||
"ar $jobTypes = $jobTypeContainer.find(\'input[type=\"radio\"]\').change(jobTypeChang" +
|
||||
"e);\r\n $(\'#createJob_SubTypes\').find(\'input[type=\"checkbox\"]\').change(" +
|
||||
"jobSubTypeHighlight).each(jobSubTypeHighlight);\r\n jobTypeChange();\r\n " +
|
||||
" function jobSubTypeHighlight() {\r\n var $this = $(this)" +
|
||||
";\r\n if ($this.is(\':checked\'))\r\n $this.closest(" +
|
||||
"\'li\').addClass(\'highlight\');\r\n else\r\n $this.cl" +
|
||||
"osest(\'li\').removeClass(\'highlight\');\r\n }\r\n function jobTy" +
|
||||
"peChange() {\r\n var $checkedItem = $jobTypes.filter(\':checked\');\r\n" +
|
||||
"\r\n $jobTypes.closest(\'li\').removeClass(\'highlight\');\r\n\r\n " +
|
||||
" $checkedItem.closest(\'li\').addClass(\'highlight\');\r\n\r\n if (" +
|
||||
"init) {\r\n var jobType = $checkedItem.val();\r\n " +
|
||||
" $(\'#createJob_SubType_\' + jobType).show();\r\n } else {\r\n " +
|
||||
" $(\'#createJob_SubTypes\').find(\'.createJob_SubType:visible\').slideU" +
|
||||
"p();\r\n var jobType = $checkedItem.val();\r\n " +
|
||||
" $(\'#createJob_SubType_\' + jobType).slideDown();\r\n }\r\n " +
|
||||
" }\r\n\r\n\r\n var additionalValidation = function (form) {\r\n " +
|
||||
" var isValid = true;\r\n\r\n // Validate Type\r\n var t" +
|
||||
"ypeValue = $jobTypes.filter(\':checked\').val();\r\n if (typeValue) {" +
|
||||
"\r\n $typeValidationMessage.removeClass(\'field-validation-error" +
|
||||
"\').addClass(\'field-validation-valid\');\r\n // Validate SubTypes" +
|
||||
"\r\n if ($(\'#createJob_SubType_\' + typeValue).find(\'input:check" +
|
||||
"ed\').length > 0) {\r\n $subTypesValidationMessage.removeCla" +
|
||||
"ss(\'field-validation-error\').addClass(\'field-validation-valid\');\r\n " +
|
||||
" } else {\r\n $subTypesValidationMessage.text(\'At leas" +
|
||||
"t one Job Sub Type is required\').removeClass(\'field-validation-valid\').addClass(" +
|
||||
"\'field-validation-error\');\r\n isValid = false;\r\n " +
|
||||
" }\r\n } else {\r\n $typeValidationMessag" +
|
||||
"e.text(\'A Job Type is required\').removeClass(\'field-validation-valid\').addClass(" +
|
||||
"\'field-validation-error\');\r\n isValid = false;\r\n " +
|
||||
" }\r\n\r\n // Validate QuickLog Task Time\r\n if ($quic" +
|
||||
"kLog.is(\':checked\')) {\r\n var selectedTime = $quickLogTaskTime" +
|
||||
"s.filter(\':checked\');\r\n if (selectedTime.length > 0) {\r\n " +
|
||||
" if (selectedTime.val() === \'\') {\r\n " +
|
||||
" // Handle \'Other\'\r\n var otherTime = parseInt($quickL" +
|
||||
"ogTaskTimeOtherMinutes.val());\r\n if (!otherTime || ot" +
|
||||
"herTime <= 0) {\r\n $quickLogTaskTimeValidationMess" +
|
||||
"age.text(\'A Task Time is required\').removeClass(\'field-validation-valid\').addCla" +
|
||||
"ss(\'field-validation-error\');\r\n isValid = false;\r" +
|
||||
"\n }\r\n } else {\r\n " +
|
||||
" $quickLogTaskTimeValidationMessage.removeClass(\'field-validation-v" +
|
||||
"alid\').addClass(\'field-validation-error\');\r\n }\r\n " +
|
||||
" } else {\r\n $quickLogTaskTimeValidationMessage." +
|
||||
"text(\'A Task Time is required\').removeClass(\'field-validation-valid\').addClass(\'" +
|
||||
"field-validation-error\');\r\n isValid = false;\r\n " +
|
||||
" }\r\n } else {\r\n $quickLogTaskTimeValid" +
|
||||
"ationMessage.removeClass(\'field-validation-valid\').addClass(\'field-validation-er" +
|
||||
"ror\');\r\n }\r\n\r\n return isValid;\r\n }\r\n\r\n " +
|
||||
" validator.settings.submitHandler = function (form) {\r\n " +
|
||||
" if (additionalValidation()) {\r\n discoDialogMethods.setButton" +
|
||||
"s({});\r\n form.submit();\r\n }\r\n }\r\n " +
|
||||
" //#endregion\r\n\r\n //#region DeviceHeld\r\n var $dev" +
|
||||
"iceHeld = $(\'#DeviceHeld\');\r\n\r\n if ($(\'#DeviceSerialNumber\').val()) {" +
|
||||
"\r\n switch ($deviceHeld.val()) {\r\n case \'True\':" +
|
||||
"\r\n $(\'#createJob_DeviceHeld\').prop(\'checked\', true);\r\n " +
|
||||
" $(\'#createJob_DeviceNotHeld\').prop(\'checked\', false);\r\n " +
|
||||
" break;\r\n case \'False\':\r\n " +
|
||||
" $(\'#createJob_DeviceHeld\').prop(\'checked\', false);\r\n " +
|
||||
" $(\'#createJob_DeviceNotHeld\').prop(\'checked\', true);\r\n " +
|
||||
" break;\r\n default:\r\n $(\'#createJob_Dev" +
|
||||
"iceHeld\').prop(\'checked\', false);\r\n $(\'#createJob_DeviceN" +
|
||||
"otHeld\').prop(\'checked\', false);\r\n break;\r\n " +
|
||||
" }\r\n $(\'#createJob_DeviceHeldContainer\').find(\'input[type=\"radio" +
|
||||
"\"]\').change(function () {\r\n // Update Hidden Field with Boole" +
|
||||
"an Value\r\n // Set DeviceHeld\r\n var deviceH" +
|
||||
"eldValue = \'\';\r\n if ($(\'#createJob_DeviceHeld\').is(\':checked\'" +
|
||||
"))\r\n deviceHeldValue = \'True\';\r\n if ($" +
|
||||
"(\'#createJob_DeviceNotHeld\').is(\':checked\'))\r\n deviceHeld" +
|
||||
"Value = \'False\';\r\n $deviceHeld.val(deviceHeldValue).change();" +
|
||||
"\r\n });\r\n } else {\r\n // No Device Associ" +
|
||||
"ated\r\n $deviceHeld.val(\'False\');\r\n $(\'#createJob_D" +
|
||||
"eviceHeldContainer\').hide();\r\n }\r\n //#endregion\r\n\r\n " +
|
||||
" //#region QuickLog\r\n var $quickLog = $(\'#createJob_QuickLog\');\r\n" +
|
||||
" var $quickLogContainer = $(\'#createJob_QuickLogContainer\');\r\n " +
|
||||
" var $quickLogTaskTimeContainer = $(\'#createJob_QuickLogTaskTimeContainer\');" +
|
||||
"\r\n var $quickLogTaskTimes = $quickLogTaskTimeContainer.find(\'input[ty" +
|
||||
"pe=\"radio\"]\');\r\n var $quickLogTaskTimeOtherMinutes = $(\'#createJob_Ta" +
|
||||
"skTimeOtherMinutes\');\r\n var $quickLogTaskTimeValidationMessage = $qui" +
|
||||
"ckLogTaskTimeContainer.find(\'[data-valmsg-for=\"QuickLogTaskTimeMinutes\"]\');\r\n\r\n " +
|
||||
" $deviceHeld.change(validateQuickLog);\r\n $jobTypes.change(v" +
|
||||
"alidateQuickLog);\r\n validateQuickLog();\r\n\r\n function valid" +
|
||||
"ateQuickLog() {\r\n var quickLogAllowed = false;\r\n\r\n " +
|
||||
" if ($deviceHeld.val() === \'True\') {\r\n quickLogAllowed = fals" +
|
||||
"e;\r\n } else {\r\n var selectedType = $jobTypes.f" +
|
||||
"ilter(\':checked\').val();\r\n switch (selectedType) {\r\n " +
|
||||
" case \'HMisc\':\r\n case \'SApp\':\r\n " +
|
||||
" case \'SImg\':\r\n case \'SOS\':\r\n " +
|
||||
" case \'UMgmt\':\r\n quickLogAllowed = true;\r\n " +
|
||||
" break;\r\n default:\r\n " +
|
||||
" quickLogAllowed = false;\r\n break;\r\n " +
|
||||
" }\r\n }\r\n\r\n if (quickLogAllowed) {\r\n " +
|
||||
" $quickLogContainer.slideDown();\r\n } else {\r\n " +
|
||||
" if (init)\r\n $quickLogContainer.hide();\r" +
|
||||
"\n else\r\n $quickLogContainer.slideUp();" +
|
||||
"\r\n $quickLog.prop(\'checked\', false).change();\r\n " +
|
||||
" }\r\n }\r\n\r\n $quickLog.change(function () {\r\n " +
|
||||
" if ($(this).is(\':checked\')) {\r\n $quickLogTaskTimeContainer." +
|
||||
"slideDown();\r\n } else {\r\n $quickLogTaskTimeCon" +
|
||||
"tainer.slideUp();\r\n }\r\n });\r\n\r\n $quickLogTa" +
|
||||
"skTimes.change(function () {\r\n if ($quickLogTaskTimes.filter(\':ch" +
|
||||
"ecked\').val() === \"\") {\r\n $(\'#createJob_TaskTimeOtherMinutesC" +
|
||||
"ontainer\').show();\r\n $quickLogTaskTimeOtherMinutes.attr(\'disa" +
|
||||
"bled\', null).focus().select();\r\n } else {\r\n $(" +
|
||||
"\'#createJob_TaskTimeOtherMinutesContainer\').hide();\r\n $quickL" +
|
||||
"ogTaskTimeOtherMinutes.attr(\'disabled\', \'disabled\');\r\n }\r\n " +
|
||||
" });\r\n //#endregion\r\n\r\n init = false;\r\n });\r\n " +
|
||||
" </script>\r\n</div>\r\n");
|
||||
" && window.parent.document) {\r\n $(\'#SourceUrl\').val(window.parent" +
|
||||
".window.location.href);\r\n\r\n var parentDialog = $(\'#createJobDialo" +
|
||||
"g\', window.parent.document);\r\n if (parentDialog.length > 0) {\r\n " +
|
||||
" discoDialogMethods = parentDialog[0].discoDialogMethods;\r\n " +
|
||||
" var buttons = {\r\n \"Create Job\": function " +
|
||||
"() {\r\n createJobForm.submit()\r\n " +
|
||||
" },\r\n Cancel: function () {\r\n " +
|
||||
" discoDialogMethods.close();\r\n }\r\n }\r\n" +
|
||||
"\r\n discoDialogMethods.setButtons(buttons);\r\n }" +
|
||||
"\r\n }\r\n //#endregion\r\n\r\n\r\n var createJobForm = $" +
|
||||
"(\'form\');\r\n var validator = createJobForm.data(\'validator\');\r\n " +
|
||||
" var unobtrusiveValidation = createJobForm.data(\'unobtrusiveValidation\');\r\n\r" +
|
||||
"\n // Validate all Fields\r\n validator.settings.ignore = \'\';" +
|
||||
"\r\n\r\n //#region Job Type/SubTypes\r\n var $jobTypeContainer =" +
|
||||
" $(\'#createJob_Type\');\r\n var $typeValidationMessage = $(\'[data-valmsg" +
|
||||
"-for=\"Type\"]\', $jobTypeContainer)\r\n var $subTypesValidationMessage = " +
|
||||
"$(\'[data-valmsg-for=\"SubTypes\"]\', $jobTypeContainer)\r\n var $jobTypes " +
|
||||
"= $jobTypeContainer.find(\'input[type=\"radio\"]\').change(jobTypeChange);\r\n " +
|
||||
" $(\'#createJob_SubTypes\').find(\'input[type=\"checkbox\"]\').change(jobSubTypeHig" +
|
||||
"hlight).each(jobSubTypeHighlight);\r\n jobTypeChange();\r\n fu" +
|
||||
"nction jobSubTypeHighlight() {\r\n var $this = $(this);\r\n " +
|
||||
" if ($this.is(\':checked\'))\r\n $this.closest(\'li\').addClas" +
|
||||
"s(\'highlight\');\r\n else\r\n $this.closest(\'li\').r" +
|
||||
"emoveClass(\'highlight\');\r\n }\r\n function jobTypeChange() {\r" +
|
||||
"\n var $checkedItem = $jobTypes.filter(\':checked\');\r\n\r\n " +
|
||||
" $jobTypes.closest(\'li\').removeClass(\'highlight\');\r\n\r\n $check" +
|
||||
"edItem.closest(\'li\').addClass(\'highlight\');\r\n\r\n if (init) {\r\n " +
|
||||
" var jobType = $checkedItem.val();\r\n $(\'#creat" +
|
||||
"eJob_SubType_\' + jobType).show();\r\n } else {\r\n " +
|
||||
" $(\'#createJob_SubTypes\').find(\'.createJob_SubType:visible\').slideUp();\r\n " +
|
||||
" var jobType = $checkedItem.val();\r\n $(\'#createJo" +
|
||||
"b_SubType_\' + jobType).slideDown();\r\n }\r\n }\r\n\r\n\r\n " +
|
||||
" var additionalValidation = function (form) {\r\n var isValid" +
|
||||
" = true;\r\n\r\n // Validate Type\r\n var typeValue = $j" +
|
||||
"obTypes.filter(\':checked\').val();\r\n if (typeValue) {\r\n " +
|
||||
" $typeValidationMessage.removeClass(\'field-validation-error\').addClass(\'" +
|
||||
"field-validation-valid\');\r\n // Validate SubTypes\r\n " +
|
||||
" if ($(\'#createJob_SubType_\' + typeValue).find(\'input:checked\').length >" +
|
||||
" 0) {\r\n $subTypesValidationMessage.removeClass(\'field-val" +
|
||||
"idation-error\').addClass(\'field-validation-valid\');\r\n } else " +
|
||||
"{\r\n $subTypesValidationMessage.text(\'At least one Job Sub" +
|
||||
" Type is required\').removeClass(\'field-validation-valid\').addClass(\'field-valida" +
|
||||
"tion-error\');\r\n isValid = false;\r\n }\r\n" +
|
||||
" } else {\r\n $typeValidationMessage.text(\'A Job" +
|
||||
" Type is required\').removeClass(\'field-validation-valid\').addClass(\'field-valida" +
|
||||
"tion-error\');\r\n isValid = false;\r\n }\r\n\r\n");
|
||||
|
||||
|
||||
#line 170 "..\..\Views\Job\Create.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 170 "..\..\Views\Job\Create.cshtml"
|
||||
if (Authorization.Has(Claims.Job.Actions.Close)){
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" ");
|
||||
|
||||
WriteLiteral(@"
|
||||
// Validate QuickLog Task Time
|
||||
if ($quickLog.is(':checked')) {
|
||||
var selectedTime = $quickLogTaskTimes.filter(':checked');
|
||||
if (selectedTime.length > 0) {
|
||||
if (selectedTime.val() === '') {
|
||||
// Handle 'Other'
|
||||
var otherTime = parseInt($quickLogTaskTimeOtherMinutes.val());
|
||||
if (!otherTime || otherTime <= 0) {
|
||||
$quickLogTaskTimeValidationMessage.text('A Task Time is required').removeClass('field-validation-valid').addClass('field-validation-error');
|
||||
isValid = false;
|
||||
}
|
||||
} else {
|
||||
$quickLogTaskTimeValidationMessage.removeClass('field-validation-valid').addClass('field-validation-error');
|
||||
}
|
||||
} else {
|
||||
$quickLogTaskTimeValidationMessage.text('A Task Time is required').removeClass('field-validation-valid').addClass('field-validation-error');
|
||||
isValid = false;
|
||||
}
|
||||
} else {
|
||||
$quickLogTaskTimeValidationMessage.removeClass('field-validation-valid').addClass('field-validation-error');
|
||||
}
|
||||
");
|
||||
|
||||
WriteLiteral("\r\n");
|
||||
|
||||
|
||||
#line 194 "..\..\Views\Job\Create.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n return isValid;\r\n }\r\n\r\n validator.setting" +
|
||||
"s.submitHandler = function (form) {\r\n if (additionalValidation())" +
|
||||
" {\r\n discoDialogMethods.setButtons({});\r\n " +
|
||||
"form.submit();\r\n }\r\n }\r\n //#endregion\r\n\r\n " +
|
||||
" //#region DeviceHeld\r\n var $deviceHeld = $(\'#DeviceHeld\');\r" +
|
||||
"\n\r\n if ($(\'#DeviceSerialNumber\').val()) {\r\n switch ($d" +
|
||||
"eviceHeld.val()) {\r\n case \'True\':\r\n $(" +
|
||||
"\'#createJob_DeviceHeld\').prop(\'checked\', true);\r\n $(\'#cre" +
|
||||
"ateJob_DeviceNotHeld\').prop(\'checked\', false);\r\n break;\r\n" +
|
||||
" case \'False\':\r\n $(\'#createJob_DeviceH" +
|
||||
"eld\').prop(\'checked\', false);\r\n $(\'#createJob_DeviceNotHe" +
|
||||
"ld\').prop(\'checked\', true);\r\n break;\r\n " +
|
||||
" default:\r\n $(\'#createJob_DeviceHeld\').prop(\'checked\', fa" +
|
||||
"lse);\r\n $(\'#createJob_DeviceNotHeld\').prop(\'checked\', fal" +
|
||||
"se);\r\n break;\r\n }\r\n $(\'#cre" +
|
||||
"ateJob_DeviceHeldContainer\').find(\'input[type=\"radio\"]\').change(function () {\r\n " +
|
||||
" // Update Hidden Field with Boolean Value\r\n " +
|
||||
" // Set DeviceHeld\r\n var deviceHeldValue = \'\';\r\n " +
|
||||
" if ($(\'#createJob_DeviceHeld\').is(\':checked\'))\r\n " +
|
||||
"deviceHeldValue = \'True\';\r\n if ($(\'#createJob_DeviceNotHeld\')" +
|
||||
".is(\':checked\'))\r\n deviceHeldValue = \'False\';\r\n " +
|
||||
" $deviceHeld.val(deviceHeldValue).change();\r\n });\r\n " +
|
||||
" } else {\r\n // No Device Associated\r\n $devic" +
|
||||
"eHeld.val(\'False\');\r\n $(\'#createJob_DeviceHeldContainer\').hide();" +
|
||||
"\r\n }\r\n //#endregion\r\n\r\n");
|
||||
|
||||
|
||||
#line 242 "..\..\Views\Job\Create.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 242 "..\..\Views\Job\Create.cshtml"
|
||||
if (Authorization.Has(Claims.Job.Actions.Close)){
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" ");
|
||||
|
||||
WriteLiteral("\r\n //#region QuickLog\r\n var $quickLog = $(\'#createJob_Quick" +
|
||||
"Log\');\r\n var $quickLogContainer = $(\'#createJob_QuickLogContainer\');\r" +
|
||||
"\n var $quickLogTaskTimeContainer = $(\'#createJob_QuickLogTaskTimeCont" +
|
||||
"ainer\');\r\n var $quickLogTaskTimes = $quickLogTaskTimeContainer.find(\'" +
|
||||
"input[type=\"radio\"]\');\r\n var $quickLogTaskTimeOtherMinutes = $(\'#crea" +
|
||||
"teJob_TaskTimeOtherMinutes\');\r\n var $quickLogTaskTimeValidationMessag" +
|
||||
"e = $quickLogTaskTimeContainer.find(\'[data-valmsg-for=\"QuickLogTaskTimeMinutes\"]" +
|
||||
"\');\r\n\r\n $deviceHeld.change(validateQuickLog);\r\n $jobTypes." +
|
||||
"change(validateQuickLog);\r\n validateQuickLog();\r\n\r\n functi" +
|
||||
"on validateQuickLog() {\r\n var quickLogAllowed = false;\r\n\r\n " +
|
||||
" if ($deviceHeld.val() === \'True\') {\r\n quickLogAllowe" +
|
||||
"d = false;\r\n } else {\r\n var selectedType = $jo" +
|
||||
"bTypes.filter(\':checked\').val();\r\n switch (selectedType) {\r\n " +
|
||||
" case \'HMisc\':\r\n case \'SApp\':\r\n " +
|
||||
" case \'SImg\':\r\n case \'SOS\':\r\n " +
|
||||
" case \'UMgmt\':\r\n quickLogAllowed = true" +
|
||||
";\r\n break;\r\n default:\r\n " +
|
||||
" quickLogAllowed = false;\r\n break" +
|
||||
";\r\n }\r\n }\r\n\r\n if (quickLogAllow" +
|
||||
"ed) {\r\n $quickLogContainer.slideDown();\r\n } el" +
|
||||
"se {\r\n if (init)\r\n $quickLogContainer." +
|
||||
"hide();\r\n else\r\n $quickLogContainer.sl" +
|
||||
"ideUp();\r\n $quickLog.prop(\'checked\', false).change();\r\n " +
|
||||
" }\r\n }\r\n\r\n $quickLog.change(function () {\r\n " +
|
||||
" if ($(this).is(\':checked\')) {\r\n $quickLogTaskTimeCo" +
|
||||
"ntainer.slideDown();\r\n } else {\r\n $quickLogTas" +
|
||||
"kTimeContainer.slideUp();\r\n }\r\n });\r\n\r\n $qu" +
|
||||
"ickLogTaskTimes.change(function () {\r\n if ($quickLogTaskTimes.fil" +
|
||||
"ter(\':checked\').val() === \"\") {\r\n $(\'#createJob_TaskTimeOther" +
|
||||
"MinutesContainer\').show();\r\n $quickLogTaskTimeOtherMinutes.at" +
|
||||
"tr(\'disabled\', null).focus().select();\r\n } else {\r\n " +
|
||||
" $(\'#createJob_TaskTimeOtherMinutesContainer\').hide();\r\n " +
|
||||
" $quickLogTaskTimeOtherMinutes.attr(\'disabled\', \'disabled\');\r\n }\r" +
|
||||
"\n });\r\n //#endregion\r\n ");
|
||||
|
||||
WriteLiteral("\r\n");
|
||||
|
||||
|
||||
#line 307 "..\..\Views\Job\Create.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n init = false;\r\n });\r\n </script>\r\n</div>\r\n");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,16 +1,23 @@
|
||||
@model Disco.Web.Models.Job.CreateRedirectModel
|
||||
@{
|
||||
Authorization.Require(Claims.Job.Actions.Create);
|
||||
|
||||
Layout = null;
|
||||
|
||||
Layout = MVC.Shared.Views._DialogLayout;
|
||||
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), "Create - Redirecting...");
|
||||
}
|
||||
<a id="redirectLink" href="@Model.RedirectLink">Redirecting...</a>
|
||||
<div id="createJobRedirect">
|
||||
<h1>Job Created Successfully</h1>
|
||||
|
||||
<div>
|
||||
<i class="ajaxLoading" title="Loading..."></i><a id="redirectLink" href="@Model.RedirectLink">Redirecting...</a>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
var redirectLink = document.getElementById('redirectLink').getAttribute('href');
|
||||
var redirectLink = '@(Model.RedirectLink)';
|
||||
var redirectDelay = parseInt(@(Model.RedirectDelay.HasValue ? Model.RedirectDelay.Value.TotalMilliseconds : 0));
|
||||
|
||||
//#region Parent Dialog
|
||||
if (window.parent) {
|
||||
function parentRedirect() {
|
||||
window.parent.window.location.href = redirectLink;
|
||||
|
||||
var parentDialog = window.parent.document.getElementById('createJobDialog');
|
||||
@@ -19,5 +26,12 @@
|
||||
discoDialogMethods.close();
|
||||
}
|
||||
}
|
||||
|
||||
if (window.parent) {
|
||||
if (redirectDelay)
|
||||
window.setTimeout(parentRedirect, redirectDelay);
|
||||
else
|
||||
parentRedirect();
|
||||
}
|
||||
//#endregion
|
||||
</script>
|
||||
|
||||
@@ -29,6 +29,7 @@ namespace Disco.Web.Views.Job
|
||||
using Disco;
|
||||
using Disco.BI.Extensions;
|
||||
using Disco.Models.Repository;
|
||||
using Disco.Services;
|
||||
using Disco.Services.Authorization;
|
||||
using Disco.Services.Web;
|
||||
using Disco.Web;
|
||||
@@ -47,33 +48,59 @@ namespace Disco.Web.Views.Job
|
||||
#line 2 "..\..\Views\Job\Create_Redirect.cshtml"
|
||||
|
||||
Authorization.Require(Claims.Job.Actions.Create);
|
||||
|
||||
Layout = null;
|
||||
|
||||
Layout = MVC.Shared.Views._DialogLayout;
|
||||
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), "Create - Redirecting...");
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n<a");
|
||||
WriteLiteral("\r\n<div");
|
||||
|
||||
WriteLiteral(" id=\"createJobRedirect\"");
|
||||
|
||||
WriteLiteral(">\r\n <h1>Job Created Successfully</h1>\r\n\r\n <div>\r\n <i");
|
||||
|
||||
WriteLiteral(" class=\"ajaxLoading\"");
|
||||
|
||||
WriteLiteral(" title=\"Loading...\"");
|
||||
|
||||
WriteLiteral("></i><a");
|
||||
|
||||
WriteLiteral(" id=\"redirectLink\"");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 249), Tuple.Create("\"", 275)
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 407), Tuple.Create("\"", 433)
|
||||
|
||||
#line 8 "..\..\Views\Job\Create_Redirect.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 256), Tuple.Create<System.Object, System.Int32>(Model.RedirectLink
|
||||
#line 12 "..\..\Views\Job\Create_Redirect.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 414), Tuple.Create<System.Object, System.Int32>(Model.RedirectLink
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 256), false)
|
||||
, 414), false)
|
||||
);
|
||||
|
||||
WriteLiteral(@">Redirecting...</a>
|
||||
<script>
|
||||
var redirectLink = document.getElementById('redirectLink').getAttribute('href');
|
||||
WriteLiteral(">Redirecting...</a>\r\n </div>\r\n</div>\r\n<script>\r\n var redirectLink = \'");
|
||||
|
||||
|
||||
#line 16 "..\..\Views\Job\Create_Redirect.cshtml"
|
||||
Write(Model.RedirectLink);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\';\r\n var redirectDelay = parseInt(");
|
||||
|
||||
|
||||
#line 17 "..\..\Views\Job\Create_Redirect.cshtml"
|
||||
Write(Model.RedirectDelay.HasValue ? Model.RedirectDelay.Value.TotalMilliseconds : 0);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(@");
|
||||
|
||||
//#region Parent Dialog
|
||||
if (window.parent) {
|
||||
function parentRedirect() {
|
||||
window.parent.window.location.href = redirectLink;
|
||||
|
||||
var parentDialog = window.parent.document.getElementById('createJobDialog');
|
||||
@@ -82,6 +109,13 @@ WriteLiteral(@">Redirecting...</a>
|
||||
discoDialogMethods.close();
|
||||
}
|
||||
}
|
||||
|
||||
if (window.parent) {
|
||||
if (redirectDelay)
|
||||
window.setTimeout(parentRedirect, redirectDelay);
|
||||
else
|
||||
parentRedirect();
|
||||
}
|
||||
//#endregion
|
||||
</script>
|
||||
");
|
||||
|
||||
@@ -359,10 +359,13 @@
|
||||
{@Model.Job.User.DisplayName}
|
||||
</h2>
|
||||
<div id="Job_Show_User_Id" title="Id">@Model.Job.UserId</div>
|
||||
@if (!string.IsNullOrWhiteSpace(Model.Job.User.PhoneNumber))
|
||||
@if (Authorization.Has(Claims.User.ShowDetails))
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(Model.Job.User.PhoneNumber))
|
||||
{<div id="Job_Show_User_PhoneNumber" title="Phone Number">Phone: @Model.Job.User.PhoneNumber</div>}
|
||||
@if (!string.IsNullOrWhiteSpace(Model.Job.User.EmailAddress))
|
||||
if (!string.IsNullOrWhiteSpace(Model.Job.User.EmailAddress))
|
||||
{<div id="Job_Show_User_EmailAddress" title="Email Address">Email: <a href="mailto:@(Model.Job.User.EmailAddress)">@Model.Job.User.EmailAddress</a></div>}
|
||||
}
|
||||
@if (Model.Job.WaitingForUserAction.HasValue)
|
||||
{
|
||||
<div id="Job_Show_User_WaitingForUserAction" class="status">
|
||||
|
||||
@@ -1455,7 +1455,9 @@ WriteLiteral("</div>\r\n");
|
||||
#line hidden
|
||||
|
||||
#line 362 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
if (!string.IsNullOrWhiteSpace(Model.Job.User.PhoneNumber))
|
||||
if (Authorization.Has(Claims.User.ShowDetails))
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(Model.Job.User.PhoneNumber))
|
||||
{
|
||||
|
||||
#line default
|
||||
@@ -1469,7 +1471,7 @@ WriteLiteral(" title=\"Phone Number\"");
|
||||
WriteLiteral(">Phone: ");
|
||||
|
||||
|
||||
#line 363 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 365 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
Write(Model.Job.User.PhoneNumber);
|
||||
|
||||
|
||||
@@ -1478,17 +1480,9 @@ WriteLiteral(">Phone: ");
|
||||
WriteLiteral("</div>");
|
||||
|
||||
|
||||
#line 363 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 365 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 364 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
if (!string.IsNullOrWhiteSpace(Model.Job.User.EmailAddress))
|
||||
if (!string.IsNullOrWhiteSpace(Model.Job.User.EmailAddress))
|
||||
{
|
||||
|
||||
#line default
|
||||
@@ -1501,21 +1495,21 @@ WriteLiteral(" title=\"Email Address\"");
|
||||
|
||||
WriteLiteral(">Email: <a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 24636), Tuple.Create("\"", 24680)
|
||||
, Tuple.Create(Tuple.Create("", 24643), Tuple.Create("mailto:", 24643), true)
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 24727), Tuple.Create("\"", 24771)
|
||||
, Tuple.Create(Tuple.Create("", 24734), Tuple.Create("mailto:", 24734), true)
|
||||
|
||||
#line 365 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 24650), Tuple.Create<System.Object, System.Int32>(Model.Job.User.EmailAddress
|
||||
#line 367 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 24741), Tuple.Create<System.Object, System.Int32>(Model.Job.User.EmailAddress
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 24650), false)
|
||||
, 24741), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 365 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 367 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
Write(Model.Job.User.EmailAddress);
|
||||
|
||||
|
||||
@@ -1524,8 +1518,9 @@ WriteLiteral(">");
|
||||
WriteLiteral("</a></div>");
|
||||
|
||||
|
||||
#line 365 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 367 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
@@ -1533,7 +1528,7 @@ WriteLiteral("</a></div>");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 366 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 369 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
if (Model.Job.WaitingForUserAction.HasValue)
|
||||
{
|
||||
|
||||
@@ -1550,7 +1545,7 @@ WriteLiteral(">\r\n <h4>Awaiting Action</h4>\r\n
|
||||
" Since: ");
|
||||
|
||||
|
||||
#line 370 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 373 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
Write(Model.Job.WaitingForUserAction.FromNow());
|
||||
|
||||
|
||||
@@ -1559,7 +1554,7 @@ WriteLiteral(">\r\n <h4>Awaiting Action</h4>\r\n
|
||||
WriteLiteral("\r\n </div>\r\n");
|
||||
|
||||
|
||||
#line 372 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 375 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -1568,7 +1563,7 @@ WriteLiteral("\r\n </div>\r\n");
|
||||
WriteLiteral(" </div>\r\n </td>\r\n");
|
||||
|
||||
|
||||
#line 375 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 378 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -1585,13 +1580,13 @@ WriteLiteral(" id=\"Job_Show_Job_Actions\"");
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 379 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 382 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 379 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 382 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
if (Model.Job.CanCloseForced())
|
||||
{
|
||||
|
||||
@@ -1599,14 +1594,14 @@ WriteLiteral(">\r\n");
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 381 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 384 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
Write(Html.ActionLinkSmallButton("Forcibly Close", MVC.API.Job.Close(Model.Job.Id, true), "Job_Show_Job_Actions_ForceClose_Button"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 381 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 384 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
|
||||
|
||||
|
||||
@@ -1623,13 +1618,13 @@ WriteLiteral(" title=\"Forcibly Close this Job?\"");
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 383 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 386 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 383 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 386 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
using (Html.BeginForm(MVC.API.Job.ForceClose(Model.Job.Id, null, true)))
|
||||
{
|
||||
|
||||
@@ -1653,7 +1648,7 @@ WriteLiteral(" class=\"block\"");
|
||||
WriteLiteral("></textarea>\r\n </p>\r\n");
|
||||
|
||||
|
||||
#line 392 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 395 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -1686,7 +1681,7 @@ WriteLiteral(">\r\n $(function () {\r\n
|
||||
" });\r\n });\r\n </script>\r\n");
|
||||
|
||||
|
||||
#line 425 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 428 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -1695,13 +1690,13 @@ WriteLiteral(">\r\n $(function () {\r\n
|
||||
WriteLiteral("\r\n");
|
||||
|
||||
|
||||
#line 427 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 430 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 427 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 430 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
if (Model.Job.CanCloseNormally())
|
||||
{
|
||||
|
||||
@@ -1709,14 +1704,14 @@ WriteLiteral("\r\n");
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 429 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 432 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
Write(Html.ActionLinkSmallButton("Close", MVC.API.Job.Close(Model.Job.Id, true), "Job_Show_Job_Actions_Close_Button"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 429 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 432 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
|
||||
|
||||
|
||||
@@ -1762,7 +1757,7 @@ WriteLiteral(">\r\n $(function () {\r\n
|
||||
" });\r\n });\r\n </script>\r\n");
|
||||
|
||||
|
||||
#line 466 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 469 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -1771,7 +1766,7 @@ WriteLiteral(">\r\n $(function () {\r\n
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 467 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 470 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
if (Model.Job.CanReopen())
|
||||
{
|
||||
|
||||
@@ -1779,14 +1774,14 @@ WriteLiteral(" ");
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 469 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 472 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
Write(Html.ActionLinkSmallButton("Reopen Job", MVC.API.Job.Reopen(Model.Job.Id, true), "Job_Show_Job_Actions_Reopen_Button"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 469 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 472 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
|
||||
|
||||
|
||||
@@ -1833,7 +1828,7 @@ WriteLiteral(">\r\n $(function () {\r\n
|
||||
" });\r\n </script>\r\n");
|
||||
|
||||
|
||||
#line 507 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 510 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -1842,7 +1837,7 @@ WriteLiteral(">\r\n $(function () {\r\n
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 508 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 511 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
if (Model.Job.CanDelete())
|
||||
{
|
||||
|
||||
@@ -1850,14 +1845,14 @@ WriteLiteral(" ");
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 510 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 513 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
Write(Html.ActionLinkSmallButton("Delete", MVC.API.Job.Delete(Model.Job.Id, true), "Job_Show_Job_Actions_Delete_Button"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 510 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 513 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
|
||||
|
||||
|
||||
@@ -1905,7 +1900,7 @@ WriteLiteral(">\r\n $(function () {\r\n
|
||||
" </script>\r\n");
|
||||
|
||||
|
||||
#line 548 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 551 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -1914,7 +1909,7 @@ WriteLiteral(">\r\n $(function () {\r\n
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 549 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 552 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
if (Model.Job.CanAddQueues() && Model.AvailableQueues != null && Model.AvailableQueues.Count > 0)
|
||||
{
|
||||
|
||||
@@ -1928,14 +1923,14 @@ WriteLiteral(" ");
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 557 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 560 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
Write(Html.ActionLinkSmallButton("Add to Queue", MVC.API.JobQueueJob.AddJob(), "Job_Show_Job_Actions_AddQueue_Button"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 557 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 560 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
|
||||
|
||||
|
||||
@@ -1952,13 +1947,13 @@ WriteLiteral(" title=\"Add Job to Queue\"");
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 559 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 562 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 559 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 562 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
using (Html.BeginForm(MVC.API.JobQueueJob.AddJob())){
|
||||
|
||||
|
||||
@@ -1982,14 +1977,14 @@ WriteLiteral(" type=\"hidden\"");
|
||||
|
||||
WriteLiteral(" name=\"JobId\"");
|
||||
|
||||
WriteAttribute("value", Tuple.Create(" value=\"", 35204), Tuple.Create("\"", 35225)
|
||||
WriteAttribute("value", Tuple.Create(" value=\"", 35318), Tuple.Create("\"", 35339)
|
||||
|
||||
#line 561 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 35212), Tuple.Create<System.Object, System.Int32>(Model.Job.Id
|
||||
#line 564 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 35326), Tuple.Create<System.Object, System.Int32>(Model.Job.Id
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 35212), false)
|
||||
, 35326), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" />\r\n");
|
||||
@@ -2001,13 +1996,13 @@ WriteLiteral(" class=\"queuePicker\"");
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 563 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 566 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 563 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 566 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
foreach (var jobQueue in Model.AvailableQueues.OrderBy(jq => jq.Name))
|
||||
{
|
||||
|
||||
@@ -2021,7 +2016,7 @@ WriteLiteral(" class=\"queue\"");
|
||||
WriteLiteral(" data-queueid=\"");
|
||||
|
||||
|
||||
#line 565 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 568 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
Write(jobQueue.Id);
|
||||
|
||||
|
||||
@@ -2032,7 +2027,7 @@ WriteLiteral("\"");
|
||||
WriteLiteral(" data-queuesla=\"");
|
||||
|
||||
|
||||
#line 565 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 568 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
Write(jobQueue.DefaultSLAExpiry.HasValue ? jobQueue.DefaultSLAExpiry.Value.ToString() : null);
|
||||
|
||||
|
||||
@@ -2043,7 +2038,7 @@ WriteLiteral("\"");
|
||||
WriteLiteral(" data-queuepriority=\"");
|
||||
|
||||
|
||||
#line 565 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 568 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
Write(jobQueue.Priority.ToString());
|
||||
|
||||
|
||||
@@ -2053,32 +2048,32 @@ WriteLiteral("\"");
|
||||
|
||||
WriteLiteral(">\r\n <i");
|
||||
|
||||
WriteAttribute("class", Tuple.Create(" class=\"", 35674), Tuple.Create("\"", 35741)
|
||||
, Tuple.Create(Tuple.Create("", 35682), Tuple.Create("fa", 35682), true)
|
||||
, Tuple.Create(Tuple.Create(" ", 35684), Tuple.Create("fa-", 35685), true)
|
||||
WriteAttribute("class", Tuple.Create(" class=\"", 35788), Tuple.Create("\"", 35855)
|
||||
, Tuple.Create(Tuple.Create("", 35796), Tuple.Create("fa", 35796), true)
|
||||
, Tuple.Create(Tuple.Create(" ", 35798), Tuple.Create("fa-", 35799), true)
|
||||
|
||||
#line 566 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 35688), Tuple.Create<System.Object, System.Int32>(jobQueue.Icon
|
||||
#line 569 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 35802), Tuple.Create<System.Object, System.Int32>(jobQueue.Icon
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 35688), false)
|
||||
, Tuple.Create(Tuple.Create(" ", 35704), Tuple.Create("fa-fw", 35705), true)
|
||||
, Tuple.Create(Tuple.Create(" ", 35710), Tuple.Create("fa-lg", 35711), true)
|
||||
, Tuple.Create(Tuple.Create(" ", 35716), Tuple.Create("d-", 35717), true)
|
||||
, 35802), false)
|
||||
, Tuple.Create(Tuple.Create(" ", 35818), Tuple.Create("fa-fw", 35819), true)
|
||||
, Tuple.Create(Tuple.Create(" ", 35824), Tuple.Create("fa-lg", 35825), true)
|
||||
, Tuple.Create(Tuple.Create(" ", 35830), Tuple.Create("d-", 35831), true)
|
||||
|
||||
#line 566 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 35719), Tuple.Create<System.Object, System.Int32>(jobQueue.IconColour
|
||||
#line 569 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 35833), Tuple.Create<System.Object, System.Int32>(jobQueue.IconColour
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 35719), false)
|
||||
, 35833), false)
|
||||
);
|
||||
|
||||
WriteLiteral("></i>");
|
||||
|
||||
|
||||
#line 566 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 569 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
Write(jobQueue.Name);
|
||||
|
||||
|
||||
@@ -2087,7 +2082,7 @@ WriteLiteral("></i>");
|
||||
WriteLiteral("\r\n </div>\r\n");
|
||||
|
||||
|
||||
#line 568 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 571 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -2105,7 +2100,7 @@ WriteLiteral(">\r\n <div>\r\n
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 573 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 576 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
Write(Html.DropDownList("Priority", priorityItems));
|
||||
|
||||
|
||||
@@ -2113,27 +2108,27 @@ WriteLiteral(" ");
|
||||
#line hidden
|
||||
WriteLiteral(" <i");
|
||||
|
||||
WriteAttribute("class", Tuple.Create(" class=\"", 36055), Tuple.Create("\"", 36103)
|
||||
, Tuple.Create(Tuple.Create("", 36063), Tuple.Create("fa", 36063), true)
|
||||
, Tuple.Create(Tuple.Create(" ", 36065), Tuple.Create("d-priority-", 36066), true)
|
||||
WriteAttribute("class", Tuple.Create(" class=\"", 36169), Tuple.Create("\"", 36217)
|
||||
, Tuple.Create(Tuple.Create("", 36177), Tuple.Create("fa", 36177), true)
|
||||
, Tuple.Create(Tuple.Create(" ", 36179), Tuple.Create("d-priority-", 36180), true)
|
||||
|
||||
#line 573 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 36077), Tuple.Create<System.Object, System.Int32>(priorityValue.ToLower()
|
||||
#line 576 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 36191), Tuple.Create<System.Object, System.Int32>(priorityValue.ToLower()
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 36077), false)
|
||||
, 36191), false)
|
||||
);
|
||||
|
||||
WriteAttribute("title", Tuple.Create(" title=\"", 36104), Tuple.Create("\"", 36137)
|
||||
WriteAttribute("title", Tuple.Create(" title=\"", 36218), Tuple.Create("\"", 36251)
|
||||
|
||||
#line 573 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 36112), Tuple.Create<System.Object, System.Int32>(priorityValue
|
||||
#line 576 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 36226), Tuple.Create<System.Object, System.Int32>(priorityValue
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 36112), false)
|
||||
, Tuple.Create(Tuple.Create(" ", 36128), Tuple.Create("Priority", 36129), true)
|
||||
, 36226), false)
|
||||
, Tuple.Create(Tuple.Create(" ", 36242), Tuple.Create("Priority", 36243), true)
|
||||
);
|
||||
|
||||
WriteLiteral("></i>\r\n </div>\r\n <div>\r\n " +
|
||||
@@ -2142,7 +2137,7 @@ WriteLiteral("></i>\r\n </div>\r\n
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 577 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 580 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
Write(Html.DropDownList("SLAExpiresMinutes", slaOptions));
|
||||
|
||||
|
||||
@@ -2154,7 +2149,7 @@ WriteLiteral("\r\n </div>\r\n <div
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 581 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 584 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
Write(Html.TextArea("Comment"));
|
||||
|
||||
|
||||
@@ -2163,7 +2158,7 @@ WriteLiteral(" ");
|
||||
WriteLiteral("\r\n </div>\r\n </div>\r\n");
|
||||
|
||||
|
||||
#line 584 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 587 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -2219,7 +2214,7 @@ WriteLiteral(">\r\n $(function () {\r\n
|
||||
" });\r\n });\r\n </script>\r\n");
|
||||
|
||||
|
||||
#line 654 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 657 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -2228,7 +2223,7 @@ WriteLiteral(">\r\n $(function () {\r\n
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 655 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 658 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
if (Model.Job.CanLogWarranty())
|
||||
{
|
||||
|
||||
@@ -2236,14 +2231,14 @@ WriteLiteral(" ");
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 657 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 660 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
Write(Html.ActionLinkSmallButton("Log Warranty", MVC.Job.LogWarranty(Model.Job.Id, null, null), "Job_Show_Job_Actions_LogWarranty_Button"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 657 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 660 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
|
||||
}
|
||||
|
||||
@@ -2253,7 +2248,7 @@ WriteLiteral(" ");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 659 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 662 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
if (Model.Job.CanWarrantyCompleted())
|
||||
{
|
||||
|
||||
@@ -2261,14 +2256,14 @@ WriteLiteral(" ");
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 661 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 664 "..\..\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"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 661 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 664 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
|
||||
}
|
||||
|
||||
@@ -2278,7 +2273,7 @@ WriteLiteral(" ");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 663 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 666 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
if (Model.Job.CanInsuranceClaimFormSent())
|
||||
{
|
||||
|
||||
@@ -2286,14 +2281,14 @@ WriteLiteral(" ");
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 665 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 668 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
Write(Html.ActionLinkSmallButton("Insurance Claim Sent", MVC.API.Job.UpdateInsuranceClaimFormSentDate(Model.Job.Id, "Now", true), "Job_Show_Job_Actions_InsuranceClaimSent_Button", "alert"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 665 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 668 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
|
||||
}
|
||||
|
||||
@@ -2303,7 +2298,7 @@ WriteLiteral(" ");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 667 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 670 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
if (Model.Job.CanLogRepair())
|
||||
{
|
||||
|
||||
@@ -2311,14 +2306,14 @@ WriteLiteral(" ");
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 669 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 672 "..\..\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"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 669 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 672 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
|
||||
|
||||
|
||||
@@ -2335,13 +2330,13 @@ WriteLiteral(" title=\"Repairs Logged\"");
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 671 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 674 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 671 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 674 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
using (Html.BeginForm(MVC.API.Job.LogRepair(Model.Job.Id, null, null, true)))
|
||||
{
|
||||
|
||||
@@ -2373,7 +2368,7 @@ WriteLiteral(" name=\"RepairerReference\"");
|
||||
WriteLiteral(" />\r\n </p>\r\n");
|
||||
|
||||
|
||||
#line 681 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 684 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -2411,7 +2406,7 @@ WriteLiteral(">\r\n $(function () {\r\n
|
||||
" });\r\n });\r\n </script>\r\n");
|
||||
|
||||
|
||||
#line 719 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 722 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -2420,7 +2415,7 @@ WriteLiteral(">\r\n $(function () {\r\n
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 720 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 723 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
if (Model.Job.CanRepairComplete())
|
||||
{
|
||||
|
||||
@@ -2428,14 +2423,14 @@ WriteLiteral(" ");
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 722 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 725 "..\..\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"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 722 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 725 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
|
||||
}
|
||||
|
||||
@@ -2445,7 +2440,7 @@ WriteLiteral(" ");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 724 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 727 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
if (Model.Job.CanConvertHWarToHNWar())
|
||||
{
|
||||
|
||||
@@ -2453,14 +2448,14 @@ WriteLiteral(" ");
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 726 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 729 "..\..\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"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 726 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 729 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
|
||||
|
||||
|
||||
@@ -2508,7 +2503,7 @@ WriteLiteral(">\r\n $(function () {\r\n
|
||||
" \r\n });\r\n </script>\r\n");
|
||||
|
||||
|
||||
#line 766 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 769 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -2517,13 +2512,13 @@ WriteLiteral(">\r\n $(function () {\r\n
|
||||
WriteLiteral(" </td>\r\n");
|
||||
|
||||
|
||||
#line 768 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 771 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 768 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 771 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
if (Model.Job.Device != null)
|
||||
{
|
||||
|
||||
@@ -2537,13 +2532,13 @@ WriteLiteral(" id=\"Job_Show_Device_Actions\"");
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 771 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 774 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 771 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 774 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
if (Model.Job.CanDeviceHeld())
|
||||
{
|
||||
|
||||
@@ -2551,14 +2546,14 @@ WriteLiteral(">\r\n");
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 773 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 776 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
Write(Html.ActionLinkSmallButton("Device Held", MVC.API.Job.DeviceHeld(Model.Job.Id, true), "Job_Show_Device_Actions_Held_Button"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 773 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 776 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
|
||||
}
|
||||
|
||||
@@ -2568,7 +2563,7 @@ WriteLiteral(">\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 775 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 778 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
if (Model.Job.CanDeviceReadyForReturn())
|
||||
{
|
||||
|
||||
@@ -2576,14 +2571,14 @@ WriteLiteral(" ");
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 777 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 780 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
Write(Html.ActionLinkSmallButton("Device Ready For Return", MVC.API.Job.DeviceReadyForReturn(Model.Job.Id, true), "Job_Show_Device_Actions_DeviceReadyForReturn_Button", "alert"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 777 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 780 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
|
||||
}
|
||||
|
||||
@@ -2593,7 +2588,7 @@ WriteLiteral(" ");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 779 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 782 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
if (Model.Job.CanDeviceReturned())
|
||||
{
|
||||
|
||||
@@ -2601,14 +2596,14 @@ WriteLiteral(" ");
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 781 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 784 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
Write(Html.ActionLinkSmallButton("Device Returned", MVC.API.Job.DeviceReturned(Model.Job.Id, true), "Job_Show_Device_Actions_DeviceReturned_Button", Model.Job.CanDeviceReadyForReturn() ? null : "alert"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 781 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 784 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
|
||||
}
|
||||
|
||||
@@ -2618,7 +2613,7 @@ WriteLiteral(" ");
|
||||
WriteLiteral(" </td>\r\n");
|
||||
|
||||
|
||||
#line 784 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 787 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -2627,7 +2622,7 @@ WriteLiteral(" </td>\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 785 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 788 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
if (Model.Job.User != null)
|
||||
{
|
||||
|
||||
@@ -2641,13 +2636,13 @@ WriteLiteral(" id=\"Job_Show_User_Actions\"");
|
||||
WriteLiteral(">\r\n\r\n\r\n");
|
||||
|
||||
|
||||
#line 790 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 793 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 790 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 793 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
if (Model.Job.CanWaitingForUserAction())
|
||||
{
|
||||
|
||||
@@ -2675,13 +2670,13 @@ WriteLiteral(" title=\"Waiting for User Action\"");
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 794 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 797 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 794 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 797 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
using (Html.BeginForm(MVC.API.Job.WaitingForUserAction(Model.Job.Id, null, true)))
|
||||
{
|
||||
|
||||
@@ -2699,7 +2694,7 @@ WriteLiteral(" class=\"block\"");
|
||||
WriteLiteral("></textarea>\r\n </p>\r\n");
|
||||
|
||||
|
||||
#line 800 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 803 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -2734,7 +2729,7 @@ WriteLiteral(">\r\n $(function () {\r\n
|
||||
" });\r\n </script>\r\n");
|
||||
|
||||
|
||||
#line 833 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 836 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -2743,7 +2738,7 @@ WriteLiteral(">\r\n $(function () {\r\n
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 834 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 837 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
if (Model.Job.CanNotWaitingForUserAction())
|
||||
{
|
||||
|
||||
@@ -2771,13 +2766,13 @@ WriteLiteral(" title=\"Not Waiting for User Action\"");
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 838 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 841 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 838 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 841 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
using (Html.BeginForm(MVC.API.Job.NotWaitingForUserAction(Model.Job.Id, null, true)))
|
||||
{
|
||||
|
||||
@@ -2795,7 +2790,7 @@ WriteLiteral(" class=\"block\"");
|
||||
WriteLiteral("></textarea>\r\n </p>\r\n");
|
||||
|
||||
|
||||
#line 844 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 847 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -2831,7 +2826,7 @@ WriteLiteral(">\r\n $(function () {\r\n
|
||||
" });\r\n </script>\r\n");
|
||||
|
||||
|
||||
#line 878 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 881 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -2840,7 +2835,7 @@ WriteLiteral(">\r\n $(function () {\r\n
|
||||
WriteLiteral("\r\n </td>\r\n");
|
||||
|
||||
|
||||
#line 881 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
#line 884 "..\..\Views\Job\JobParts\_Subject.cshtml"
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user