Merged PR 16782: Added logic to display Category and Training Notification fields on PDF

Added logic to display Category and Training Notification fields on PDF

Related work items: #135474, #225483
This commit is contained in:
2025-05-19 22:20:00 +02:00
parent 032c971472
commit 8bae94de96
4 changed files with 148 additions and 77 deletions

View File

@ -29,12 +29,12 @@
</tr>
}
@if (@Model.ConvertedFromNumber == null && @Model.ConvertedToNumber == null)
{
<tr>
<td>
ECN# @Model.ECNNumber
</td>
</tr>
{
<tr>
<td>
ECN# @Model.ECNNumber
</td>
</tr>
}
<tr>
@ -57,20 +57,20 @@
</font>
</td>
</tr>
</table>
</td>
<td>
<table border="0">
@*<tr>
<td>
<font size="2">
Affected Department:&nbsp;
</font>
<font size="1">
@Model.AffectedDepartments
</font>
</td>
<td>
<font size="2">
Affected Department:&nbsp;
</font>
<font size="1">
@Model.AffectedDepartments
</font>
</td>
</tr>*@
<tr>
@ -84,6 +84,16 @@
</font>
</td>
</tr>
<tr>
<td>
<font size="2">
Category:&nbsp;
</font>
<font size="1">
@(ViewBag.Category)
</font>
</td>
</tr>
<tr>
<td>
<font size="2">
@ -97,11 +107,11 @@
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="1">
@ -141,7 +151,7 @@
Expiration Date:
</font>
<font size="1">
@Convert.ToString(string.Format("{0:MM/dd/yyyy}", Model.ExpirationDate))
</font>
</td>
@ -150,7 +160,7 @@
Extension Date:
</font>
<font size="1">
@Convert.ToString(string.Format("{0:MM/dd/yyyy}", @Model.ExtensionDate))
</font>
</td>
@ -191,7 +201,7 @@
</tr>
</table>
</td>
</tr>
</tr>
<tr>
<td>
<table border="0">
@ -216,15 +226,15 @@
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="1" >
<table border="1">
<tr bgcolor="#c4baba" color="#000000">
<td> Description of Change</td>
<td> Reason for Change</td>
@ -245,33 +255,33 @@
</td>
</tr>
@*<tr>
<td>
<td>
<table border="1">
<tr bgcolor="#c4baba" color="#000000">
<td colspan="3">Training Notification</td>
</tr>
<tr>
<td>
<table border="0">
<tr>
<td>
<font size="1">
Training:
@(Model.TrainingRequired ? "Yes" : "No")
</font>
<font size="1">
@(Model.TrainingBy.Length > 0 ? "(" + Model.TrainingBy + ")" : Model.TrainingBy)
</font>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border="1">
<tr bgcolor="#c4baba" color="#000000">
<td colspan="3">Training Notification</td>
</tr>
<tr>
<td>
<table border="0">
<tr>
<td>
<font size="1">
Training:
@(Model.TrainingRequired ? "Yes" : "No")
</font>
</td>
<font size="1">
@(Model.TrainingBy.Length > 0 ? "(" + Model.TrainingBy + ")" : Model.TrainingBy)
</font>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>*@
<tr>
<td>
@ -286,7 +296,7 @@
PCRB:
</font>
<font size="1">
@(Model.PCRBRequired ? "Yes": "No")
@(Model.PCRBRequired ? "Yes" : "No")
</font>
</td>
<td>
@ -300,7 +310,7 @@
Metrology Change: &nbsp;&nbsp;
</font>
<font size="1">
@(Model.MetrologyChangeRequired ? "Yes": "No")
@(Model.MetrologyChangeRequired ? "Yes" : "No")
</font>
</td>
<td>
@ -308,7 +318,7 @@
SPC Change:
</font>
<font size="1">
@(Model.SPCChangeRequired ? "Yes": "No")
@(Model.SPCChangeRequired ? "Yes" : "No")
</font>
</td>
<td>
@ -316,7 +326,7 @@
FI Change:
</font>
<font size="1">
@(Model.FIChangeRequired ? "Yes" : "No")
@(Model.FIChangeRequired ? "Yes" : "No")
</font>
</td>
<td>
@ -327,9 +337,37 @@
@(Model.SPNChangeRequired ? "Yes" : "No")
</font>
</td>
<td></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="1">
<tr bgcolor="#c4baba" color="#000000">
<td colspan="5">Training Notification</td>
</tr>
<tr style="display:block;">
<td>
<font size="2">
Training:
</font>
<font size="1">
@(Model.TrainingRequired ? "Yes" : "No")
</font>
</td>
<td>
<font size="2">
Training Notification to: &nbsp;
@(ViewBag.TrainingNotificationTo)
</font>
</td>
</tr>
</table>
@ -355,11 +393,11 @@
@: Positive
}
else if (Model.ImpactOnEnvironment == 2)
{
{
@: Negative
}
else
{
{
@: N/A
}
</font>
@ -369,7 +407,7 @@
<td>
<font size="1">
@Html.Raw(@Model.ImpactOnEnvironmentDescription)
</font>
</font>
</td>
</tr>
</table>
@ -390,23 +428,23 @@
<td>
<font size="1">
@Html.Raw(@Model.ImpactOnCapacityDescription)
</font>
</font>
</td>
</tr>
</table>
</td>
<td>
@*<table border="0">
<tr>
<td>
<font size="2">
RH(ITAR):
</font>
<font size="1">
@(Model.IsRH ? "Yes" : "No")
</font>
</td>
</tr>
<tr>
<td>
<font size="2">
RH(ITAR):
</font>
<font size="1">
@(Model.IsRH ? "Yes" : "No")
</font>
</td>
</tr>
</table>*@
</td>
<td>
@ -483,15 +521,15 @@
</table>
</td>
</tr>
</table> <!--main table -->