feature: add select all/none attachments when submitting waranty/repair/insurance job

This commit is contained in:
Gary Sharp
2024-12-11 15:15:22 +11:00
parent 343f20980d
commit 25e3a8e1f1
15 changed files with 327 additions and 196 deletions
+6 -4
View File
@@ -794,8 +794,9 @@
padding: 2px; padding: 2px;
} }
#warrantyJobFaultDescription #FaultDescription { #warrantyJobFaultDescription #FaultDescription {
width: 600px; box-sizing: border-box;
height: 250px; width: 100%;
height: 150px;
} }
#publishJobAttachments { #publishJobAttachments {
border: 1px solid #ccc; border: 1px solid #ccc;
@@ -898,8 +899,9 @@
padding: 2px; padding: 2px;
} }
#repairJobRepairDescription #RepairDescription { #repairJobRepairDescription #RepairDescription {
width: 600px; box-sizing: border-box;
height: 250px; width: 100%;
height: 150px;
} }
#createJob_Container { #createJob_Container {
margin: 0 -20px; margin: 0 -20px;
+6 -4
View File
@@ -840,8 +840,9 @@
#warrantyJobFaultDescription { #warrantyJobFaultDescription {
#FaultDescription { #FaultDescription {
width: 600px; box-sizing: border-box;
height: 250px; width: 100%;
height: 150px;
} }
} }
@@ -964,8 +965,9 @@
#repairJobRepairDescription { #repairJobRepairDescription {
#RepairDescription { #RepairDescription {
width: 600px; box-sizing: border-box;
height: 250px; width: 100%;
height: 150px;
} }
} }
File diff suppressed because one or more lines are too long
@@ -607,7 +607,7 @@
</th> </th>
<td> <td>
<div id="jobInsuranceProviderDetailLoading"> <div id="jobInsuranceProviderDetailLoading">
<span class="ajaxLoading" title="Loading..."></span>Loading... <span class="ajaxLoading showInitially" title="Loading..."></span> Loading...
</div> </div>
<div id="jobInsuranceProviderDetailHost" class="clearfix" style="display: none"> <div id="jobInsuranceProviderDetailHost" class="clearfix" style="display: none">
</div> </div>
@@ -1887,11 +1887,11 @@ WriteLiteral(" id=\"jobInsuranceProviderDetailLoading\"");
WriteLiteral(">\r\n <span"); WriteLiteral(">\r\n <span");
WriteLiteral(" class=\"ajaxLoading\""); WriteLiteral(" class=\"ajaxLoading showInitially\"");
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=\"jobInsuranceProviderDetailHost\""); WriteLiteral(" id=\"jobInsuranceProviderDetailHost\"");
+1 -1
View File
@@ -112,7 +112,7 @@
</th> </th>
<td> <td>
<div id="jobRepairProviderDetailLoading"> <div id="jobRepairProviderDetailLoading">
<span class="ajaxLoading" title="Loading..."></span>Loading... <span class="ajaxLoading showInitially" title="Loading..."></span> Loading...
</div> </div>
<div id="jobRepairProviderDetailHost" class="clearfix" style="display: none"> <div id="jobRepairProviderDetailHost" class="clearfix" style="display: none">
</div> </div>
@@ -553,11 +553,11 @@ WriteLiteral(" id=\"jobRepairProviderDetailLoading\"");
WriteLiteral(">\r\n <span"); WriteLiteral(">\r\n <span");
WriteLiteral(" class=\"ajaxLoading\""); WriteLiteral(" class=\"ajaxLoading showInitially\"");
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=\"jobRepairProviderDetailHost\""); WriteLiteral(" id=\"jobRepairProviderDetailHost\"");
+1 -1
View File
@@ -111,7 +111,7 @@
</th> </th>
<td> <td>
<div id="jobWarrantyProviderDetailLoading"> <div id="jobWarrantyProviderDetailLoading">
<span class="ajaxLoading" title="Loading..."></span>Loading... <span class="ajaxLoading showInitially" title="Loading..."></span> Loading...
</div> </div>
<div id="jobWarrantyProviderDetailHost" class="clearfix" style="display: none"> <div id="jobWarrantyProviderDetailHost" class="clearfix" style="display: none">
</div> </div>
@@ -566,11 +566,11 @@ WriteLiteral(" id=\"jobWarrantyProviderDetailLoading\"");
WriteLiteral(">\r\n <span"); WriteLiteral(">\r\n <span");
WriteLiteral(" class=\"ajaxLoading\""); WriteLiteral(" class=\"ajaxLoading showInitially\"");
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\"");
+27 -5
View File
@@ -108,20 +108,24 @@
<table> <table>
<tr> <tr>
<td> <td>
<p id="publishJobAttachmentsSelect">
Select <a href="#" class="all">All</a> | <a href="#" class="none">None</a>
</p>
<div id="publishJobAttachments"> <div id="publishJobAttachments">
@foreach (var ja in Model.Job.JobAttachments) @foreach (var ja in Model.Job.JobAttachments)
{ {
<a href="@Url.Action(MVC.API.Job.AttachmentDownload(ja.Id))" data-attachmentid="@ja.Id" data-mimetype="@ja.MimeType"> <a href="@Url.Action(MVC.API.Job.AttachmentDownload(ja.Id))" data-attachmentid="@ja.Id" data-mimetype="@ja.MimeType">
<input type="checkbox" class="select" name="AttachmentIds" value="@ja.Id" @(Model.AttachmentIds.Contains(ja.Id) ? "checked" : null) /> <input type="checkbox" class="select" name="AttachmentIds" value="@ja.Id" @(Model.AttachmentIds.Contains(ja.Id) ? "checked" : null) />
<span class="icon" title="@ja.Filename"> <span class="icon" title="@ja.Filename">
<img alt="Attachment Thumbnail" src="@(Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id)))" /></span> <img alt="Attachment Thumbnail" src="@(Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id)))" />
</span>
<span class="comments" title="@ja.Comments"> <span class="comments" title="@ja.Comments">
@{if (!string.IsNullOrEmpty(ja.DocumentTemplateId)) @{if (!string.IsNullOrEmpty(ja.DocumentTemplateId))
{ @ja.DocumentTemplate.Description} { @ja.DocumentTemplate.Description}
else else
{ @ja.Comments }} { @ja.Comments }}
</span><span class="author">@ja.TechUser.ToStringFriendly()</span><span class="timestamp" data-livestamp="@(ja.Timestamp.ToUnixEpoc())" title="@ja.Timestamp.ToFullDateTime()">@ja.Timestamp.ToFullDateTime()</span> </span><span class="author">@ja.TechUser.ToStringFriendly()</span><span class="timestamp" data-livestamp="@(ja.Timestamp.ToUnixEpoc())" title="@ja.Timestamp.ToFullDateTime()">@ja.Timestamp.ToFullDateTime()</span>
</a> </a>
} }
</div> </div>
</td> </td>
@@ -181,5 +185,23 @@
} else { } else {
$('#ProviderId').focus(); $('#ProviderId').focus();
} }
$('#publishJobAttachments').on('click', 'input', function (e) {
e.preventDefault();
setTimeout(function () {
var $i = $(e.currentTarget);
$i.prop('checked', !$i.prop('checked'));
}, 0);
return false;
});
$('#publishJobAttachmentsSelect').on('click', 'a', function (e) {
e.preventDefault();
var $i = $(e.currentTarget);
var $c = $i.hasClass('all');
setTimeout(function () {
$('#publishJobAttachments').find('input:not(:disabled)').prop('checked', $c).trigger('change');
}, 0);
return false;
});
}); });
</script> </script>
+85 -59
View File
@@ -499,20 +499,36 @@ WriteLiteral(" class=\"form\"");
WriteLiteral(" style=\"width: 650px; margin-top: 15px;\""); WriteLiteral(" style=\"width: 650px; margin-top: 15px;\"");
WriteLiteral(">\r\n <h2>Send Attachments</h2>\r\n <table>\r\n <tr>\r\n " + WriteLiteral(">\r\n <h2>Send Attachments</h2>\r\n <table>\r\n <tr>\r\n " +
" <td>\r\n <div"); " <td>\r\n <p");
WriteLiteral(" id=\"publishJobAttachmentsSelect\"");
WriteLiteral(">\r\n Select <a");
WriteLiteral(" href=\"#\"");
WriteLiteral(" class=\"all\"");
WriteLiteral(">All</a> | <a");
WriteLiteral(" href=\"#\"");
WriteLiteral(" class=\"none\"");
WriteLiteral(">None</a>\r\n </p>\r\n <div");
WriteLiteral(" id=\"publishJobAttachments\""); WriteLiteral(" id=\"publishJobAttachments\"");
WriteLiteral(">\r\n"); WriteLiteral(">\r\n");
#line 112 "..\..\Views\Job\LogInsurance.cshtml" #line 115 "..\..\Views\Job\LogInsurance.cshtml"
#line default #line default
#line hidden #line hidden
#line 112 "..\..\Views\Job\LogInsurance.cshtml" #line 115 "..\..\Views\Job\LogInsurance.cshtml"
foreach (var ja in Model.Job.JobAttachments) foreach (var ja in Model.Job.JobAttachments)
{ {
@@ -521,20 +537,20 @@ WriteLiteral(">\r\n");
#line hidden #line hidden
WriteLiteral(" <a"); WriteLiteral(" <a");
WriteAttribute("href", Tuple.Create(" href=\"", 4839), Tuple.Create("\"", 4896) WriteAttribute("href", Tuple.Create(" href=\"", 5023), Tuple.Create("\"", 5080)
#line 114 "..\..\Views\Job\LogInsurance.cshtml" #line 117 "..\..\Views\Job\LogInsurance.cshtml"
, Tuple.Create(Tuple.Create("", 4846), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentDownload(ja.Id)) , Tuple.Create(Tuple.Create("", 5030), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentDownload(ja.Id))
#line default #line default
#line hidden #line hidden
, 4846), false) , 5030), false)
); );
WriteLiteral(" data-attachmentid=\""); WriteLiteral(" data-attachmentid=\"");
#line 114 "..\..\Views\Job\LogInsurance.cshtml" #line 117 "..\..\Views\Job\LogInsurance.cshtml"
Write(ja.Id); Write(ja.Id);
@@ -545,7 +561,7 @@ WriteLiteral("\"");
WriteLiteral(" data-mimetype=\""); WriteLiteral(" data-mimetype=\"");
#line 114 "..\..\Views\Job\LogInsurance.cshtml" #line 117 "..\..\Views\Job\LogInsurance.cshtml"
Write(ja.MimeType); Write(ja.MimeType);
@@ -561,20 +577,20 @@ WriteLiteral(" class=\"select\"");
WriteLiteral(" name=\"AttachmentIds\""); WriteLiteral(" name=\"AttachmentIds\"");
WriteAttribute("value", Tuple.Create(" value=\"", 5046), Tuple.Create("\"", 5060) WriteAttribute("value", Tuple.Create(" value=\"", 5230), Tuple.Create("\"", 5244)
#line 115 "..\..\Views\Job\LogInsurance.cshtml" #line 118 "..\..\Views\Job\LogInsurance.cshtml"
, Tuple.Create(Tuple.Create("", 5054), Tuple.Create<System.Object, System.Int32>(ja.Id , Tuple.Create(Tuple.Create("", 5238), Tuple.Create<System.Object, System.Int32>(ja.Id
#line default #line default
#line hidden #line hidden
, 5054), false) , 5238), false)
); );
WriteLiteral(" "); WriteLiteral(" ");
#line 115 "..\..\Views\Job\LogInsurance.cshtml" #line 118 "..\..\Views\Job\LogInsurance.cshtml"
Write(Model.AttachmentIds.Contains(ja.Id) ? "checked" : null); Write(Model.AttachmentIds.Contains(ja.Id) ? "checked" : null);
@@ -584,84 +600,85 @@ WriteLiteral(" />\r\n <span");
WriteLiteral(" class=\"icon\""); WriteLiteral(" class=\"icon\"");
WriteAttribute("title", Tuple.Create(" title=\"", 5174), Tuple.Create("\"", 5194) WriteAttribute("title", Tuple.Create(" title=\"", 5358), Tuple.Create("\"", 5378)
#line 116 "..\..\Views\Job\LogInsurance.cshtml" #line 119 "..\..\Views\Job\LogInsurance.cshtml"
, Tuple.Create(Tuple.Create("", 5182), Tuple.Create<System.Object, System.Int32>(ja.Filename , Tuple.Create(Tuple.Create("", 5366), Tuple.Create<System.Object, System.Int32>(ja.Filename
#line default #line default
#line hidden #line hidden
, 5182), false) , 5366), false)
); );
WriteLiteral(">\r\n <img"); WriteLiteral(">\r\n <img");
WriteLiteral(" alt=\"Attachment Thumbnail\""); WriteLiteral(" alt=\"Attachment Thumbnail\"");
WriteAttribute("src", Tuple.Create(" src=\"", 5265), Tuple.Create("\"", 5324) WriteAttribute("src", Tuple.Create(" src=\"", 5449), Tuple.Create("\"", 5508)
#line 117 "..\..\Views\Job\LogInsurance.cshtml" #line 120 "..\..\Views\Job\LogInsurance.cshtml"
, Tuple.Create(Tuple.Create("", 5271), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id)) , Tuple.Create(Tuple.Create("", 5455), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id))
#line default #line default
#line hidden #line hidden
, 5271), false) , 5455), false)
); );
WriteLiteral(" /></span>\r\n <span"); WriteLiteral(" />\r\n </span>\r\n <sp" +
"an");
WriteLiteral(" class=\"comments\""); WriteLiteral(" class=\"comments\"");
WriteAttribute("title", Tuple.Create(" title=\"", 5391), Tuple.Create("\"", 5411) WriteAttribute("title", Tuple.Create(" title=\"", 5609), Tuple.Create("\"", 5629)
#line 118 "..\..\Views\Job\LogInsurance.cshtml" #line 122 "..\..\Views\Job\LogInsurance.cshtml"
, Tuple.Create(Tuple.Create("", 5399), Tuple.Create<System.Object, System.Int32>(ja.Comments , Tuple.Create(Tuple.Create("", 5617), Tuple.Create<System.Object, System.Int32>(ja.Comments
#line default #line default
#line hidden #line hidden
, 5399), false) , 5617), false)
); );
WriteLiteral(">\r\n"); WriteLiteral(">\r\n");
#line 119 "..\..\Views\Job\LogInsurance.cshtml" #line 123 "..\..\Views\Job\LogInsurance.cshtml"
#line default #line default
#line hidden #line hidden
#line 119 "..\..\Views\Job\LogInsurance.cshtml" #line 123 "..\..\Views\Job\LogInsurance.cshtml"
if (!string.IsNullOrEmpty(ja.DocumentTemplateId)) if (!string.IsNullOrEmpty(ja.DocumentTemplateId))
{ {
#line default #line default
#line hidden #line hidden
#line 120 "..\..\Views\Job\LogInsurance.cshtml" #line 124 "..\..\Views\Job\LogInsurance.cshtml"
Write(ja.DocumentTemplate.Description); Write(ja.DocumentTemplate.Description);
#line default #line default
#line hidden #line hidden
#line 120 "..\..\Views\Job\LogInsurance.cshtml" #line 124 "..\..\Views\Job\LogInsurance.cshtml"
} }
else else
{ {
#line default #line default
#line hidden #line hidden
#line 122 "..\..\Views\Job\LogInsurance.cshtml" #line 126 "..\..\Views\Job\LogInsurance.cshtml"
Write(ja.Comments); Write(ja.Comments);
#line default #line default
#line hidden #line hidden
#line 122 "..\..\Views\Job\LogInsurance.cshtml" #line 126 "..\..\Views\Job\LogInsurance.cshtml"
} }
#line default #line default
#line hidden #line hidden
@@ -672,7 +689,7 @@ WriteLiteral(" class=\"author\"");
WriteLiteral(">"); WriteLiteral(">");
#line 123 "..\..\Views\Job\LogInsurance.cshtml" #line 127 "..\..\Views\Job\LogInsurance.cshtml"
Write(ja.TechUser.ToStringFriendly()); Write(ja.TechUser.ToStringFriendly());
@@ -685,7 +702,7 @@ WriteLiteral(" class=\"timestamp\"");
WriteLiteral(" data-livestamp=\""); WriteLiteral(" data-livestamp=\"");
#line 123 "..\..\Views\Job\LogInsurance.cshtml" #line 127 "..\..\Views\Job\LogInsurance.cshtml"
Write(ja.Timestamp.ToUnixEpoc()); Write(ja.Timestamp.ToUnixEpoc());
@@ -693,29 +710,29 @@ WriteLiteral(" data-livestamp=\"");
#line hidden #line hidden
WriteLiteral("\""); WriteLiteral("\"");
WriteAttribute("title", Tuple.Create(" title=\"", 5847), Tuple.Create("\"", 5885) WriteAttribute("title", Tuple.Create(" title=\"", 6063), Tuple.Create("\"", 6101)
#line 123 "..\..\Views\Job\LogInsurance.cshtml" #line 127 "..\..\Views\Job\LogInsurance.cshtml"
, Tuple.Create(Tuple.Create("", 5855), Tuple.Create<System.Object, System.Int32>(ja.Timestamp.ToFullDateTime() , Tuple.Create(Tuple.Create("", 6071), Tuple.Create<System.Object, System.Int32>(ja.Timestamp.ToFullDateTime()
#line default #line default
#line hidden #line hidden
, 5855), false) , 6071), false)
); );
WriteLiteral(">"); WriteLiteral(">");
#line 123 "..\..\Views\Job\LogInsurance.cshtml" #line 127 "..\..\Views\Job\LogInsurance.cshtml"
Write(ja.Timestamp.ToFullDateTime()); Write(ja.Timestamp.ToFullDateTime());
#line default #line default
#line hidden #line hidden
WriteLiteral("</span>\r\n </a> \r\n"); WriteLiteral("</span>\r\n </a>\r\n");
#line 125 "..\..\Views\Job\LogInsurance.cshtml" #line 129 "..\..\Views\Job\LogInsurance.cshtml"
} }
@@ -725,7 +742,7 @@ WriteLiteral(" </div>\r\n </td>\r\n
"able>\r\n </div>\r\n"); "able>\r\n </div>\r\n");
#line 131 "..\..\Views\Job\LogInsurance.cshtml" #line 135 "..\..\Views\Job\LogInsurance.cshtml"
} }
if (Model.Provider != null && Model.ProviderSubmitJobBeginResult != null) if (Model.Provider != null && Model.ProviderSubmitJobBeginResult != null)
{ {
@@ -742,7 +759,7 @@ WriteLiteral(">\r\n");
WriteLiteral(" "); WriteLiteral(" ");
#line 135 "..\..\Views\Job\LogInsurance.cshtml" #line 139 "..\..\Views\Job\LogInsurance.cshtml"
Write(Html.PartialCompiled(Model.ProviderSubmitJobBeginResult.Item1, Model.ProviderSubmitJobBeginResult.Item2)); Write(Html.PartialCompiled(Model.ProviderSubmitJobBeginResult.Item1, Model.ProviderSubmitJobBeginResult.Item2));
@@ -751,7 +768,7 @@ WriteLiteral(" ");
WriteLiteral("\r\n </div>\r\n"); WriteLiteral("\r\n </div>\r\n");
#line 137 "..\..\Views\Job\LogInsurance.cshtml" #line 141 "..\..\Views\Job\LogInsurance.cshtml"
} }
@@ -764,13 +781,13 @@ WriteLiteral(" class=\"actionBar\"");
WriteLiteral(">\r\n"); WriteLiteral(">\r\n");
#line 139 "..\..\Views\Job\LogInsurance.cshtml" #line 143 "..\..\Views\Job\LogInsurance.cshtml"
#line default #line default
#line hidden #line hidden
#line 139 "..\..\Views\Job\LogInsurance.cshtml" #line 143 "..\..\Views\Job\LogInsurance.cshtml"
if (Model.IsManualProvider) if (Model.IsManualProvider)
{ {
@@ -788,7 +805,7 @@ WriteLiteral(" value=\"Save Insurance Claim\"");
WriteLiteral(" />\r\n"); WriteLiteral(" />\r\n");
#line 142 "..\..\Views\Job\LogInsurance.cshtml" #line 146 "..\..\Views\Job\LogInsurance.cshtml"
} }
else else
{ {
@@ -807,7 +824,7 @@ WriteLiteral(" value=\"Preview Insurance Claim\"");
WriteLiteral(" />\r\n"); WriteLiteral(" />\r\n");
#line 146 "..\..\Views\Job\LogInsurance.cshtml" #line 150 "..\..\Views\Job\LogInsurance.cshtml"
} }
@@ -816,7 +833,7 @@ WriteLiteral(" />\r\n");
WriteLiteral(" </div>\r\n"); WriteLiteral(" </div>\r\n");
#line 148 "..\..\Views\Job\LogInsurance.cshtml" #line 152 "..\..\Views\Job\LogInsurance.cshtml"
} }
@@ -846,8 +863,17 @@ WriteLiteral(">\r\n $(function () {\r\n var $providerId = $(\'#Provide
" $providerId.change(updateDetails);\r\n $addressId.change(updateDetails);\r\n" + " $providerId.change(updateDetails);\r\n $addressId.change(updateDetails);\r\n" +
"\r\n var manualProvider = $(\'#ManualProviderName\');\r\n if (manualProv" + "\r\n var manualProvider = $(\'#ManualProviderName\');\r\n if (manualProv" +
"ider.length > 0 && !manualProvider.val()) {\r\n manualProvider.focus();" + "ider.length > 0 && !manualProvider.val()) {\r\n manualProvider.focus();" +
"\r\n } else {\r\n $(\'#ProviderId\').focus();\r\n }\r\n });\r\n<" + "\r\n } else {\r\n $(\'#ProviderId\').focus();\r\n }\r\n\r\n " +
"/script>\r\n"); "$(\'#publishJobAttachments\').on(\'click\', \'input\', function (e) {\r\n e.p" +
"reventDefault();\r\n setTimeout(function () {\r\n var $i =" +
" $(e.currentTarget);\r\n $i.prop(\'checked\', !$i.prop(\'checked\'));\r\n" +
" }, 0);\r\n return false;\r\n });\r\n $(\'#publishJ" +
"obAttachmentsSelect\').on(\'click\', \'a\', function (e) {\r\n e.preventDefa" +
"ult();\r\n var $i = $(e.currentTarget);\r\n var $c = $i.hasCla" +
"ss(\'all\');\r\n setTimeout(function () {\r\n $(\'#publishJob" +
"Attachments\').find(\'input:not(:disabled)\').prop(\'checked\', $c).trigger(\'change\')" +
";\r\n }, 0);\r\n return false;\r\n });\r\n });\r\n</script" +
">\r\n");
} }
} }
+27 -5
View File
@@ -125,20 +125,24 @@
<table> <table>
<tr> <tr>
<td> <td>
<p id="publishJobAttachmentsSelect">
Select <a href="#" class="all">All</a> | <a href="#" class="none">None</a>
</p>
<div id="publishJobAttachments"> <div id="publishJobAttachments">
@foreach (var ja in Model.Job.JobAttachments) @foreach (var ja in Model.Job.JobAttachments)
{ {
<a href="@Url.Action(MVC.API.Job.AttachmentDownload(ja.Id))" data-attachmentid="@ja.Id" data-mimetype="@ja.MimeType"> <a href="@Url.Action(MVC.API.Job.AttachmentDownload(ja.Id))" data-attachmentid="@ja.Id" data-mimetype="@ja.MimeType">
<input type="checkbox" class="select" name="PublishAttachmentIds" value="@ja.Id" @(Model.PublishAttachmentIds.Contains(ja.Id) ? "checked" : null) /> <input type="checkbox" class="select" name="PublishAttachmentIds" value="@ja.Id" @(Model.PublishAttachmentIds.Contains(ja.Id) ? "checked" : null) />
<span class="icon" title="@ja.Filename"> <span class="icon" title="@ja.Filename">
<img alt="Attachment Thumbnail" src="@(Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id)))" /></span> <img alt="Attachment Thumbnail" src="@(Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id)))" />
</span>
<span class="comments" title="@ja.Comments"> <span class="comments" title="@ja.Comments">
@{if (!string.IsNullOrEmpty(ja.DocumentTemplateId)) @{if (!string.IsNullOrEmpty(ja.DocumentTemplateId))
{ @ja.DocumentTemplate.Description} { @ja.DocumentTemplate.Description}
else else
{ @ja.Comments }} { @ja.Comments }}
</span><span class="author">@ja.TechUser.ToStringFriendly()</span><span class="timestamp" data-livestamp="@(ja.Timestamp.ToUnixEpoc())" title="@ja.Timestamp.ToFullDateTime()">@ja.Timestamp.ToFullDateTime()</span> </span><span class="author">@ja.TechUser.ToStringFriendly()</span><span class="timestamp" data-livestamp="@(ja.Timestamp.ToUnixEpoc())" title="@ja.Timestamp.ToFullDateTime()">@ja.Timestamp.ToFullDateTime()</span>
</a> </a>
} }
</div> </div>
</td> </td>
@@ -200,5 +204,23 @@
} else { } else {
$('#RepairDescription').focus(); $('#RepairDescription').focus();
} }
$('#publishJobAttachments').on('click', 'input', function (e) {
e.preventDefault();
setTimeout(function () {
var $i = $(e.currentTarget);
$i.prop('checked', !$i.prop('checked'));
}, 0);
return false;
});
$('#publishJobAttachmentsSelect').on('click', 'a', function (e) {
e.preventDefault();
var $i = $(e.currentTarget);
var $c = $i.hasClass('all');
setTimeout(function () {
$('#publishJobAttachments').find('input:not(:disabled)').prop('checked', $c);
}, 0);
return false;
});
}); });
</script> </script>
+84 -59
View File
@@ -536,20 +536,36 @@ WriteLiteral(" class=\"form\"");
WriteLiteral(" style=\"width: 650px; margin-top: 15px;\""); WriteLiteral(" style=\"width: 650px; margin-top: 15px;\"");
WriteLiteral(">\r\n <h2>Send Attachments</h2>\r\n <table>\r\n <tr>\r\n " + WriteLiteral(">\r\n <h2>Send Attachments</h2>\r\n <table>\r\n <tr>\r\n " +
" <td>\r\n <div"); " <td>\r\n <p");
WriteLiteral(" id=\"publishJobAttachmentsSelect\"");
WriteLiteral(">\r\n Select <a");
WriteLiteral(" href=\"#\"");
WriteLiteral(" class=\"all\"");
WriteLiteral(">All</a> | <a");
WriteLiteral(" href=\"#\"");
WriteLiteral(" class=\"none\"");
WriteLiteral(">None</a>\r\n </p>\r\n <div");
WriteLiteral(" id=\"publishJobAttachments\""); WriteLiteral(" id=\"publishJobAttachments\"");
WriteLiteral(">\r\n"); WriteLiteral(">\r\n");
#line 129 "..\..\Views\Job\LogRepair.cshtml" #line 132 "..\..\Views\Job\LogRepair.cshtml"
#line default #line default
#line hidden #line hidden
#line 129 "..\..\Views\Job\LogRepair.cshtml" #line 132 "..\..\Views\Job\LogRepair.cshtml"
foreach (var ja in Model.Job.JobAttachments) foreach (var ja in Model.Job.JobAttachments)
{ {
@@ -558,20 +574,20 @@ WriteLiteral(">\r\n");
#line hidden #line hidden
WriteLiteral(" <a"); WriteLiteral(" <a");
WriteAttribute("href", Tuple.Create(" href=\"", 5455), Tuple.Create("\"", 5512) WriteAttribute("href", Tuple.Create(" href=\"", 5639), Tuple.Create("\"", 5696)
#line 131 "..\..\Views\Job\LogRepair.cshtml" #line 134 "..\..\Views\Job\LogRepair.cshtml"
, Tuple.Create(Tuple.Create("", 5462), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentDownload(ja.Id)) , Tuple.Create(Tuple.Create("", 5646), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentDownload(ja.Id))
#line default #line default
#line hidden #line hidden
, 5462), false) , 5646), false)
); );
WriteLiteral(" data-attachmentid=\""); WriteLiteral(" data-attachmentid=\"");
#line 131 "..\..\Views\Job\LogRepair.cshtml" #line 134 "..\..\Views\Job\LogRepair.cshtml"
Write(ja.Id); Write(ja.Id);
@@ -582,7 +598,7 @@ WriteLiteral("\"");
WriteLiteral(" data-mimetype=\""); WriteLiteral(" data-mimetype=\"");
#line 131 "..\..\Views\Job\LogRepair.cshtml" #line 134 "..\..\Views\Job\LogRepair.cshtml"
Write(ja.MimeType); Write(ja.MimeType);
@@ -598,20 +614,20 @@ WriteLiteral(" class=\"select\"");
WriteLiteral(" name=\"PublishAttachmentIds\""); WriteLiteral(" name=\"PublishAttachmentIds\"");
WriteAttribute("value", Tuple.Create(" value=\"", 5669), Tuple.Create("\"", 5683) WriteAttribute("value", Tuple.Create(" value=\"", 5853), Tuple.Create("\"", 5867)
#line 132 "..\..\Views\Job\LogRepair.cshtml" #line 135 "..\..\Views\Job\LogRepair.cshtml"
, Tuple.Create(Tuple.Create("", 5677), Tuple.Create<System.Object, System.Int32>(ja.Id , Tuple.Create(Tuple.Create("", 5861), Tuple.Create<System.Object, System.Int32>(ja.Id
#line default #line default
#line hidden #line hidden
, 5677), false) , 5861), false)
); );
WriteLiteral(" "); WriteLiteral(" ");
#line 132 "..\..\Views\Job\LogRepair.cshtml" #line 135 "..\..\Views\Job\LogRepair.cshtml"
Write(Model.PublishAttachmentIds.Contains(ja.Id) ? "checked" : null); Write(Model.PublishAttachmentIds.Contains(ja.Id) ? "checked" : null);
@@ -621,84 +637,85 @@ WriteLiteral(" />\r\n <span");
WriteLiteral(" class=\"icon\""); WriteLiteral(" class=\"icon\"");
WriteAttribute("title", Tuple.Create(" title=\"", 5804), Tuple.Create("\"", 5824) WriteAttribute("title", Tuple.Create(" title=\"", 5988), Tuple.Create("\"", 6008)
#line 133 "..\..\Views\Job\LogRepair.cshtml" #line 136 "..\..\Views\Job\LogRepair.cshtml"
, Tuple.Create(Tuple.Create("", 5812), Tuple.Create<System.Object, System.Int32>(ja.Filename , Tuple.Create(Tuple.Create("", 5996), Tuple.Create<System.Object, System.Int32>(ja.Filename
#line default #line default
#line hidden #line hidden
, 5812), false) , 5996), false)
); );
WriteLiteral(">\r\n <img"); WriteLiteral(">\r\n <img");
WriteLiteral(" alt=\"Attachment Thumbnail\""); WriteLiteral(" alt=\"Attachment Thumbnail\"");
WriteAttribute("src", Tuple.Create(" src=\"", 5895), Tuple.Create("\"", 5954) WriteAttribute("src", Tuple.Create(" src=\"", 6079), Tuple.Create("\"", 6138)
#line 134 "..\..\Views\Job\LogRepair.cshtml" #line 137 "..\..\Views\Job\LogRepair.cshtml"
, Tuple.Create(Tuple.Create("", 5901), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id)) , Tuple.Create(Tuple.Create("", 6085), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id))
#line default #line default
#line hidden #line hidden
, 5901), false) , 6085), false)
); );
WriteLiteral(" /></span>\r\n <span"); WriteLiteral(" />\r\n </span>\r\n <sp" +
"an");
WriteLiteral(" class=\"comments\""); WriteLiteral(" class=\"comments\"");
WriteAttribute("title", Tuple.Create(" title=\"", 6021), Tuple.Create("\"", 6041) WriteAttribute("title", Tuple.Create(" title=\"", 6239), Tuple.Create("\"", 6259)
#line 135 "..\..\Views\Job\LogRepair.cshtml" #line 139 "..\..\Views\Job\LogRepair.cshtml"
, Tuple.Create(Tuple.Create("", 6029), Tuple.Create<System.Object, System.Int32>(ja.Comments , Tuple.Create(Tuple.Create("", 6247), Tuple.Create<System.Object, System.Int32>(ja.Comments
#line default #line default
#line hidden #line hidden
, 6029), false) , 6247), false)
); );
WriteLiteral(">\r\n"); WriteLiteral(">\r\n");
#line 136 "..\..\Views\Job\LogRepair.cshtml" #line 140 "..\..\Views\Job\LogRepair.cshtml"
#line default #line default
#line hidden #line hidden
#line 136 "..\..\Views\Job\LogRepair.cshtml" #line 140 "..\..\Views\Job\LogRepair.cshtml"
if (!string.IsNullOrEmpty(ja.DocumentTemplateId)) if (!string.IsNullOrEmpty(ja.DocumentTemplateId))
{ {
#line default #line default
#line hidden #line hidden
#line 137 "..\..\Views\Job\LogRepair.cshtml" #line 141 "..\..\Views\Job\LogRepair.cshtml"
Write(ja.DocumentTemplate.Description); Write(ja.DocumentTemplate.Description);
#line default #line default
#line hidden #line hidden
#line 137 "..\..\Views\Job\LogRepair.cshtml" #line 141 "..\..\Views\Job\LogRepair.cshtml"
} }
else else
{ {
#line default #line default
#line hidden #line hidden
#line 139 "..\..\Views\Job\LogRepair.cshtml" #line 143 "..\..\Views\Job\LogRepair.cshtml"
Write(ja.Comments); Write(ja.Comments);
#line default #line default
#line hidden #line hidden
#line 139 "..\..\Views\Job\LogRepair.cshtml" #line 143 "..\..\Views\Job\LogRepair.cshtml"
} }
#line default #line default
#line hidden #line hidden
@@ -709,7 +726,7 @@ WriteLiteral(" class=\"author\"");
WriteLiteral(">"); WriteLiteral(">");
#line 140 "..\..\Views\Job\LogRepair.cshtml" #line 144 "..\..\Views\Job\LogRepair.cshtml"
Write(ja.TechUser.ToStringFriendly()); Write(ja.TechUser.ToStringFriendly());
@@ -722,7 +739,7 @@ WriteLiteral(" class=\"timestamp\"");
WriteLiteral(" data-livestamp=\""); WriteLiteral(" data-livestamp=\"");
#line 140 "..\..\Views\Job\LogRepair.cshtml" #line 144 "..\..\Views\Job\LogRepair.cshtml"
Write(ja.Timestamp.ToUnixEpoc()); Write(ja.Timestamp.ToUnixEpoc());
@@ -730,29 +747,29 @@ WriteLiteral(" data-livestamp=\"");
#line hidden #line hidden
WriteLiteral("\""); WriteLiteral("\"");
WriteAttribute("title", Tuple.Create(" title=\"", 6477), Tuple.Create("\"", 6515) WriteAttribute("title", Tuple.Create(" title=\"", 6693), Tuple.Create("\"", 6731)
#line 140 "..\..\Views\Job\LogRepair.cshtml" #line 144 "..\..\Views\Job\LogRepair.cshtml"
, Tuple.Create(Tuple.Create("", 6485), Tuple.Create<System.Object, System.Int32>(ja.Timestamp.ToFullDateTime() , Tuple.Create(Tuple.Create("", 6701), Tuple.Create<System.Object, System.Int32>(ja.Timestamp.ToFullDateTime()
#line default #line default
#line hidden #line hidden
, 6485), false) , 6701), false)
); );
WriteLiteral(">"); WriteLiteral(">");
#line 140 "..\..\Views\Job\LogRepair.cshtml" #line 144 "..\..\Views\Job\LogRepair.cshtml"
Write(ja.Timestamp.ToFullDateTime()); Write(ja.Timestamp.ToFullDateTime());
#line default #line default
#line hidden #line hidden
WriteLiteral("</span>\r\n </a> \r\n"); WriteLiteral("</span>\r\n </a>\r\n");
#line 142 "..\..\Views\Job\LogRepair.cshtml" #line 146 "..\..\Views\Job\LogRepair.cshtml"
} }
@@ -762,7 +779,7 @@ WriteLiteral(" </div>\r\n </td>\r\n
"able>\r\n </div>\r\n"); "able>\r\n </div>\r\n");
#line 148 "..\..\Views\Job\LogRepair.cshtml" #line 152 "..\..\Views\Job\LogRepair.cshtml"
} }
if (Model.RepairProvider != null && Model.RepairProviderSubmitJobBeginResult != null) if (Model.RepairProvider != null && Model.RepairProviderSubmitJobBeginResult != null)
{ {
@@ -779,7 +796,7 @@ WriteLiteral(">\r\n");
WriteLiteral(" "); WriteLiteral(" ");
#line 152 "..\..\Views\Job\LogRepair.cshtml" #line 156 "..\..\Views\Job\LogRepair.cshtml"
Write(Html.PartialCompiled(Model.RepairProviderSubmitJobBeginResult.Item1, Model.RepairProviderSubmitJobBeginResult.Item2)); Write(Html.PartialCompiled(Model.RepairProviderSubmitJobBeginResult.Item1, Model.RepairProviderSubmitJobBeginResult.Item2));
@@ -788,7 +805,7 @@ WriteLiteral(" ");
WriteLiteral("\r\n </div>\r\n"); WriteLiteral("\r\n </div>\r\n");
#line 154 "..\..\Views\Job\LogRepair.cshtml" #line 158 "..\..\Views\Job\LogRepair.cshtml"
} }
@@ -801,13 +818,13 @@ WriteLiteral(" class=\"actionBar\"");
WriteLiteral(">\r\n"); WriteLiteral(">\r\n");
#line 156 "..\..\Views\Job\LogRepair.cshtml" #line 160 "..\..\Views\Job\LogRepair.cshtml"
#line default #line default
#line hidden #line hidden
#line 156 "..\..\Views\Job\LogRepair.cshtml" #line 160 "..\..\Views\Job\LogRepair.cshtml"
if (Model.IsManualProvider) if (Model.IsManualProvider)
{ {
@@ -825,7 +842,7 @@ WriteLiteral(" value=\"Save Repair Request\"");
WriteLiteral(" />\r\n"); WriteLiteral(" />\r\n");
#line 159 "..\..\Views\Job\LogRepair.cshtml" #line 163 "..\..\Views\Job\LogRepair.cshtml"
} }
else else
{ {
@@ -844,7 +861,7 @@ WriteLiteral(" value=\"Preview Repair Request\"");
WriteLiteral(" />\r\n"); WriteLiteral(" />\r\n");
#line 163 "..\..\Views\Job\LogRepair.cshtml" #line 167 "..\..\Views\Job\LogRepair.cshtml"
} }
@@ -853,7 +870,7 @@ WriteLiteral(" />\r\n");
WriteLiteral(" </div>\r\n"); WriteLiteral(" </div>\r\n");
#line 165 "..\..\Views\Job\LogRepair.cshtml" #line 169 "..\..\Views\Job\LogRepair.cshtml"
} }
@@ -885,8 +902,16 @@ WriteLiteral(">\r\n $(function () {\r\n var $providerId = $(\'#RepairP
"viderId.change(updateDetails);\r\n $addressId.change(updateDetails);\r\n\r\n " + "viderId.change(updateDetails);\r\n $addressId.change(updateDetails);\r\n\r\n " +
" var manualProvider = $(\'#ManualProviderName\');\r\n if (manualProvider." + " var manualProvider = $(\'#ManualProviderName\');\r\n if (manualProvider." +
"length > 0 && !manualProvider.val()) {\r\n manualProvider.focus();\r\n " + "length > 0 && !manualProvider.val()) {\r\n manualProvider.focus();\r\n " +
" } else {\r\n $(\'#RepairDescription\').focus();\r\n }\r\n });\r" + " } else {\r\n $(\'#RepairDescription\').focus();\r\n }\r\n\r\n " +
"\n</script>\r\n"); " $(\'#publishJobAttachments\').on(\'click\', \'input\', function (e) {\r\n e" +
".preventDefault();\r\n setTimeout(function () {\r\n var $i" +
" = $(e.currentTarget);\r\n $i.prop(\'checked\', !$i.prop(\'checked\'));" +
"\r\n }, 0);\r\n return false;\r\n });\r\n $(\'#publis" +
"hJobAttachmentsSelect\').on(\'click\', \'a\', function (e) {\r\n e.preventDe" +
"fault();\r\n var $i = $(e.currentTarget);\r\n var $c = $i.hasC" +
"lass(\'all\');\r\n setTimeout(function () {\r\n $(\'#publishJ" +
"obAttachments\').find(\'input:not(:disabled)\').prop(\'checked\', $c);\r\n }" +
", 0);\r\n return false;\r\n });\r\n });\r\n</script>\r\n");
} }
} }
+12
View File
@@ -125,6 +125,9 @@
<table> <table>
<tr> <tr>
<td> <td>
<p id="publishJobAttachmentsSelect">
Select <a href="#" class="all">All</a> | <a href="#" class="none">None</a>
</p>
<div id="publishJobAttachments"> <div id="publishJobAttachments">
@foreach (var ja in Model.Job.JobAttachments) @foreach (var ja in Model.Job.JobAttachments)
{ {
@@ -210,5 +213,14 @@
}, 0); }, 0);
return false; return false;
}); });
$('#publishJobAttachmentsSelect').on('click', 'a', function (e) {
e.preventDefault();
var $i = $(e.currentTarget);
var $c = $i.hasClass('all');
setTimeout(function () {
$('#publishJobAttachments').find('input:not(:disabled)').prop('checked', $c);
}, 0);
return false;
});
}); });
</script> </script>
+70 -50
View File
@@ -536,20 +536,36 @@ WriteLiteral(" class=\"form\"");
WriteLiteral(" style=\"width: 650px; margin-top: 15px;\""); WriteLiteral(" style=\"width: 650px; margin-top: 15px;\"");
WriteLiteral(">\r\n <h2>Send Attachments</h2>\r\n <table>\r\n <t" + WriteLiteral(">\r\n <h2>Send Attachments</h2>\r\n <table>\r\n <t" +
"r>\r\n <td>\r\n <div"); "r>\r\n <td>\r\n <p");
WriteLiteral(" id=\"publishJobAttachmentsSelect\"");
WriteLiteral(">\r\n Select <a");
WriteLiteral(" href=\"#\"");
WriteLiteral(" class=\"all\"");
WriteLiteral(">All</a> | <a");
WriteLiteral(" href=\"#\"");
WriteLiteral(" class=\"none\"");
WriteLiteral(">None</a>\r\n </p>\r\n <div");
WriteLiteral(" id=\"publishJobAttachments\""); WriteLiteral(" id=\"publishJobAttachments\"");
WriteLiteral(">\r\n"); WriteLiteral(">\r\n");
#line 129 "..\..\Views\Job\LogWarranty.cshtml" #line 132 "..\..\Views\Job\LogWarranty.cshtml"
#line default #line default
#line hidden #line hidden
#line 129 "..\..\Views\Job\LogWarranty.cshtml" #line 132 "..\..\Views\Job\LogWarranty.cshtml"
foreach (var ja in Model.Job.JobAttachments) foreach (var ja in Model.Job.JobAttachments)
{ {
@@ -558,20 +574,20 @@ WriteLiteral(">\r\n");
#line hidden #line hidden
WriteLiteral(" <a"); WriteLiteral(" <a");
WriteAttribute("href", Tuple.Create(" href=\"", 5495), Tuple.Create("\"", 5552) WriteAttribute("href", Tuple.Create(" href=\"", 5691), Tuple.Create("\"", 5748)
#line 131 "..\..\Views\Job\LogWarranty.cshtml" #line 134 "..\..\Views\Job\LogWarranty.cshtml"
, Tuple.Create(Tuple.Create("", 5502), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentDownload(ja.Id)) , Tuple.Create(Tuple.Create("", 5698), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentDownload(ja.Id))
#line default #line default
#line hidden #line hidden
, 5502), false) , 5698), false)
); );
WriteLiteral(" data-attachmentid=\""); WriteLiteral(" data-attachmentid=\"");
#line 131 "..\..\Views\Job\LogWarranty.cshtml" #line 134 "..\..\Views\Job\LogWarranty.cshtml"
Write(ja.Id); Write(ja.Id);
@@ -582,7 +598,7 @@ WriteLiteral("\"");
WriteLiteral(" data-mimetype=\""); WriteLiteral(" data-mimetype=\"");
#line 131 "..\..\Views\Job\LogWarranty.cshtml" #line 134 "..\..\Views\Job\LogWarranty.cshtml"
Write(ja.MimeType); Write(ja.MimeType);
@@ -598,20 +614,20 @@ WriteLiteral(" class=\"select\"");
WriteLiteral(" name=\"PublishAttachmentIds\""); WriteLiteral(" name=\"PublishAttachmentIds\"");
WriteAttribute("value", Tuple.Create(" value=\"", 5713), Tuple.Create("\"", 5727) WriteAttribute("value", Tuple.Create(" value=\"", 5909), Tuple.Create("\"", 5923)
#line 132 "..\..\Views\Job\LogWarranty.cshtml" #line 135 "..\..\Views\Job\LogWarranty.cshtml"
, Tuple.Create(Tuple.Create("", 5721), Tuple.Create<System.Object, System.Int32>(ja.Id , Tuple.Create(Tuple.Create("", 5917), Tuple.Create<System.Object, System.Int32>(ja.Id
#line default #line default
#line hidden #line hidden
, 5721), false) , 5917), false)
); );
WriteLiteral(" "); WriteLiteral(" ");
#line 132 "..\..\Views\Job\LogWarranty.cshtml" #line 135 "..\..\Views\Job\LogWarranty.cshtml"
Write(Model.PublishAttachmentIds.Contains(ja.Id) ? "checked" : null); Write(Model.PublishAttachmentIds.Contains(ja.Id) ? "checked" : null);
@@ -621,28 +637,28 @@ WriteLiteral(" />\r\n <span");
WriteLiteral(" class=\"icon\""); WriteLiteral(" class=\"icon\"");
WriteAttribute("title", Tuple.Create(" title=\"", 5852), Tuple.Create("\"", 5872) WriteAttribute("title", Tuple.Create(" title=\"", 6048), Tuple.Create("\"", 6068)
#line 133 "..\..\Views\Job\LogWarranty.cshtml" #line 136 "..\..\Views\Job\LogWarranty.cshtml"
, Tuple.Create(Tuple.Create("", 5860), Tuple.Create<System.Object, System.Int32>(ja.Filename , Tuple.Create(Tuple.Create("", 6056), Tuple.Create<System.Object, System.Int32>(ja.Filename
#line default #line default
#line hidden #line hidden
, 5860), false) , 6056), false)
); );
WriteLiteral(">\r\n <img"); WriteLiteral(">\r\n <img");
WriteLiteral(" alt=\"Attachment Thumbnail\""); WriteLiteral(" alt=\"Attachment Thumbnail\"");
WriteAttribute("src", Tuple.Create(" src=\"", 5947), Tuple.Create("\"", 6006) WriteAttribute("src", Tuple.Create(" src=\"", 6143), Tuple.Create("\"", 6202)
#line 134 "..\..\Views\Job\LogWarranty.cshtml" #line 137 "..\..\Views\Job\LogWarranty.cshtml"
, Tuple.Create(Tuple.Create("", 5953), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id)) , Tuple.Create(Tuple.Create("", 6149), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id))
#line default #line default
#line hidden #line hidden
, 5953), false) , 6149), false)
); );
WriteLiteral(" />\r\n </span>\r\n " + WriteLiteral(" />\r\n </span>\r\n " +
@@ -650,40 +666,40 @@ WriteLiteral(" />\r\n </span>\r\n
WriteLiteral(" class=\"comments\""); WriteLiteral(" class=\"comments\"");
WriteAttribute("title", Tuple.Create(" title=\"", 6115), Tuple.Create("\"", 6135) WriteAttribute("title", Tuple.Create(" title=\"", 6311), Tuple.Create("\"", 6331)
#line 136 "..\..\Views\Job\LogWarranty.cshtml" #line 139 "..\..\Views\Job\LogWarranty.cshtml"
, Tuple.Create(Tuple.Create("", 6123), Tuple.Create<System.Object, System.Int32>(ja.Comments , Tuple.Create(Tuple.Create("", 6319), Tuple.Create<System.Object, System.Int32>(ja.Comments
#line default #line default
#line hidden #line hidden
, 6123), false) , 6319), false)
); );
WriteLiteral(">\r\n"); WriteLiteral(">\r\n");
#line 137 "..\..\Views\Job\LogWarranty.cshtml" #line 140 "..\..\Views\Job\LogWarranty.cshtml"
#line default #line default
#line hidden #line hidden
#line 137 "..\..\Views\Job\LogWarranty.cshtml" #line 140 "..\..\Views\Job\LogWarranty.cshtml"
if (!string.IsNullOrEmpty(ja.DocumentTemplateId)) if (!string.IsNullOrEmpty(ja.DocumentTemplateId))
{ {
#line default #line default
#line hidden #line hidden
#line 138 "..\..\Views\Job\LogWarranty.cshtml" #line 141 "..\..\Views\Job\LogWarranty.cshtml"
Write(ja.DocumentTemplate.Description); Write(ja.DocumentTemplate.Description);
#line default #line default
#line hidden #line hidden
#line 138 "..\..\Views\Job\LogWarranty.cshtml" #line 141 "..\..\Views\Job\LogWarranty.cshtml"
} }
else else
{ {
@@ -691,14 +707,14 @@ WriteLiteral(">\r\n");
#line default #line default
#line hidden #line hidden
#line 140 "..\..\Views\Job\LogWarranty.cshtml" #line 143 "..\..\Views\Job\LogWarranty.cshtml"
Write(ja.Comments); Write(ja.Comments);
#line default #line default
#line hidden #line hidden
#line 140 "..\..\Views\Job\LogWarranty.cshtml" #line 143 "..\..\Views\Job\LogWarranty.cshtml"
} }
#line default #line default
@@ -710,7 +726,7 @@ WriteLiteral(" class=\"author\"");
WriteLiteral(">"); WriteLiteral(">");
#line 141 "..\..\Views\Job\LogWarranty.cshtml" #line 144 "..\..\Views\Job\LogWarranty.cshtml"
Write(ja.TechUser.ToStringFriendly()); Write(ja.TechUser.ToStringFriendly());
@@ -723,7 +739,7 @@ WriteLiteral(" class=\"timestamp\"");
WriteLiteral(" data-livestamp=\""); WriteLiteral(" data-livestamp=\"");
#line 141 "..\..\Views\Job\LogWarranty.cshtml" #line 144 "..\..\Views\Job\LogWarranty.cshtml"
Write(ja.Timestamp.ToUnixEpoc()); Write(ja.Timestamp.ToUnixEpoc());
@@ -731,20 +747,20 @@ WriteLiteral(" data-livestamp=\"");
#line hidden #line hidden
WriteLiteral("\""); WriteLiteral("\"");
WriteAttribute("title", Tuple.Create(" title=\"", 6589), Tuple.Create("\"", 6627) WriteAttribute("title", Tuple.Create(" title=\"", 6785), Tuple.Create("\"", 6823)
#line 141 "..\..\Views\Job\LogWarranty.cshtml" #line 144 "..\..\Views\Job\LogWarranty.cshtml"
, Tuple.Create(Tuple.Create("", 6597), Tuple.Create<System.Object, System.Int32>(ja.Timestamp.ToFullDateTime() , Tuple.Create(Tuple.Create("", 6793), Tuple.Create<System.Object, System.Int32>(ja.Timestamp.ToFullDateTime()
#line default #line default
#line hidden #line hidden
, 6597), false) , 6793), false)
); );
WriteLiteral(">"); WriteLiteral(">");
#line 141 "..\..\Views\Job\LogWarranty.cshtml" #line 144 "..\..\Views\Job\LogWarranty.cshtml"
Write(ja.Timestamp.ToFullDateTime()); Write(ja.Timestamp.ToFullDateTime());
@@ -753,7 +769,7 @@ WriteLiteral(">");
WriteLiteral("</span>\r\n </a>\r\n"); WriteLiteral("</span>\r\n </a>\r\n");
#line 143 "..\..\Views\Job\LogWarranty.cshtml" #line 146 "..\..\Views\Job\LogWarranty.cshtml"
} }
@@ -763,7 +779,7 @@ WriteLiteral(" </div>\r\n </td>\r\n
"\n </table>\r\n </div>\r\n"); "\n </table>\r\n </div>\r\n");
#line 149 "..\..\Views\Job\LogWarranty.cshtml" #line 152 "..\..\Views\Job\LogWarranty.cshtml"
} }
if (Model.WarrantyProvider != null && Model.WarrantyProviderSubmitJobViewType != null) if (Model.WarrantyProvider != null && Model.WarrantyProviderSubmitJobViewType != null)
{ {
@@ -780,7 +796,7 @@ WriteLiteral(">\r\n");
WriteLiteral(" "); WriteLiteral(" ");
#line 153 "..\..\Views\Job\LogWarranty.cshtml" #line 156 "..\..\Views\Job\LogWarranty.cshtml"
Write(Html.PartialCompiled(Model.WarrantyProviderSubmitJobViewType, Model.WarrantyProviderSubmitJobModel)); Write(Html.PartialCompiled(Model.WarrantyProviderSubmitJobViewType, Model.WarrantyProviderSubmitJobModel));
@@ -789,7 +805,7 @@ WriteLiteral(" ");
WriteLiteral("\r\n </div>\r\n"); WriteLiteral("\r\n </div>\r\n");
#line 155 "..\..\Views\Job\LogWarranty.cshtml" #line 158 "..\..\Views\Job\LogWarranty.cshtml"
} }
@@ -802,13 +818,13 @@ WriteLiteral(" class=\"actionBar\"");
WriteLiteral(">\r\n"); WriteLiteral(">\r\n");
#line 157 "..\..\Views\Job\LogWarranty.cshtml" #line 160 "..\..\Views\Job\LogWarranty.cshtml"
#line default #line default
#line hidden #line hidden
#line 157 "..\..\Views\Job\LogWarranty.cshtml" #line 160 "..\..\Views\Job\LogWarranty.cshtml"
if (Model.IsManualProvider) if (Model.IsManualProvider)
{ {
@@ -826,7 +842,7 @@ WriteLiteral(" value=\"Save Warranty Claim\"");
WriteLiteral(" />\r\n"); WriteLiteral(" />\r\n");
#line 160 "..\..\Views\Job\LogWarranty.cshtml" #line 163 "..\..\Views\Job\LogWarranty.cshtml"
} }
else else
{ {
@@ -845,7 +861,7 @@ WriteLiteral(" value=\"Preview Warranty Claim\"");
WriteLiteral(" />\r\n"); WriteLiteral(" />\r\n");
#line 164 "..\..\Views\Job\LogWarranty.cshtml" #line 167 "..\..\Views\Job\LogWarranty.cshtml"
} }
@@ -854,7 +870,7 @@ WriteLiteral(" />\r\n");
WriteLiteral(" </div>\r\n"); WriteLiteral(" </div>\r\n");
#line 166 "..\..\Views\Job\LogWarranty.cshtml" #line 169 "..\..\Views\Job\LogWarranty.cshtml"
} }
@@ -890,8 +906,12 @@ WriteLiteral(">\r\n $(function () {\r\n var $providerId = $(\'#Warrant
" $(\'#publishJobAttachments\').on(\'click\', \'input\', function (e) {\r\n " + " $(\'#publishJobAttachments\').on(\'click\', \'input\', function (e) {\r\n " +
"e.preventDefault();\r\n setTimeout(function () {\r\n var $" + "e.preventDefault();\r\n setTimeout(function () {\r\n var $" +
"i = $(e.currentTarget);\r\n $i.prop(\'checked\', !$i.prop(\'checked\'))" + "i = $(e.currentTarget);\r\n $i.prop(\'checked\', !$i.prop(\'checked\'))" +
";\r\n }, 0);\r\n return false;\r\n });\r\n });\r\n</script" + ";\r\n }, 0);\r\n return false;\r\n });\r\n $(\'#publi" +
">\r\n"); "shJobAttachmentsSelect\').on(\'click\', \'a\', function (e) {\r\n e.preventD" +
"efault();\r\n var $i = $(e.currentTarget);\r\n var $c = $i.has" +
"Class(\'all\');\r\n setTimeout(function () {\r\n $(\'#publish" +
"JobAttachments\').find(\'input:not(:disabled)\').prop(\'checked\', $c);\r\n " +
"}, 0);\r\n return false;\r\n });\r\n });\r\n</script>\r\n");
} }
} }