72 lines
2.0 KiB
Plaintext
72 lines
2.0 KiB
Plaintext
@if (Row is not null && Verification is not null)
|
|
{
|
|
@if (Verification.Force == ItemVerification.VerificationForce.Optionnal)
|
|
{
|
|
<Alert Color="AlertColor.Info">
|
|
<Icon Name="IconName.InfoCircleFill" class="me-2" />
|
|
Cet item est une indication, il ne relève ni d'une recommandation, ni d'une obligation.
|
|
</Alert>
|
|
}
|
|
else if (Verification.Force == ItemVerification.VerificationForce.Recommandation)
|
|
{
|
|
<Alert Color="AlertColor.Warning">
|
|
<Icon Name="IconName.ExclamationDiamondFill" class="me-2" />
|
|
Cet item relève de la recommandation, il relève des recommandations opposables.
|
|
</Alert>
|
|
}
|
|
else if (Verification.Force == ItemVerification.VerificationForce.Mandatory)
|
|
{
|
|
<Alert Color="AlertColor.Danger">
|
|
<Icon Name="IconName.ExclamationTriangleFill" class="me-2" />
|
|
Cet item doit obligatoirement être suivi, car il fait l'objet d'un référentiel opposable.
|
|
</Alert>
|
|
}
|
|
|
|
<p>@Row.Item.Label</p>
|
|
|
|
<h6>Statut</h6>
|
|
<AnswerStateSelect
|
|
Value=@Row.Answer.CurrentState
|
|
ValueChanged="(v) => {
|
|
if(Row.Answer.CurrentState != v)
|
|
{
|
|
Row.Answer.CurrentState = v;
|
|
RowChanged(Row);
|
|
}
|
|
}" />
|
|
|
|
@if(String.IsNullOrEmpty(Row.Item.Description))
|
|
{
|
|
<h6>Description</h6>
|
|
<p>@Row.Item.Description</p>
|
|
}
|
|
|
|
<h6>Références</h6>
|
|
<p>@Row.Item.References</p>
|
|
|
|
<h6>Commentaires</h6>
|
|
<p></p>
|
|
|
|
<h6>Historique des modifications</h6>
|
|
<p></p>
|
|
}
|
|
else
|
|
{
|
|
<Spinner />
|
|
}
|
|
|
|
@code {
|
|
[Parameter]
|
|
public Shared.InspectionRow? Row { get; set; }
|
|
|
|
public Shared.ItemVerification? Verification { get {
|
|
if (Row == null)
|
|
return null;
|
|
|
|
return (Shared.ItemVerification)Row.Item ?? null;
|
|
} }
|
|
|
|
[Parameter]
|
|
public Action<Shared.InspectionRow> RowChanged { get; set; } = (Shared.InspectionRow r) => { };
|
|
}
|