40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
|
|
|
|
<InputSelect class="form-select"
|
|
@bind-Value=(Value)>
|
|
<option value="@ItemAnswer.State.NotAnswed"></option>
|
|
<option value="@ItemAnswer.State.Compliant">✔️ Conforme</option>
|
|
<option value="@ItemAnswer.State.PartiallyCompliant">➰ Partiellement conforme</option>
|
|
<option value="@ItemAnswer.State.Improper">❌ Non conforme</option>
|
|
<option value="@ItemAnswer.State.Invalid">⏭️ Sans objet</option>
|
|
<option value="@ItemAnswer.State.Ignored">🏁 Non instruit</option>
|
|
</InputSelect>
|
|
|
|
@code {
|
|
[Parameter]
|
|
public ItemVerification Item { get; set; }
|
|
|
|
[Parameter]
|
|
public InspectionRegister Register { get; set; }
|
|
|
|
ItemAnswer.State Value
|
|
{
|
|
get
|
|
{
|
|
return Register.GetItemState(Item.Identifier);
|
|
}
|
|
set
|
|
{
|
|
Register.Add(new()
|
|
{
|
|
Identifier = Guid.NewGuid().ToString(),
|
|
Author = "(null)",
|
|
Type = InspectionEntry.EntryType.Set,
|
|
Target = Item.Identifier,
|
|
State = value
|
|
});
|
|
StateHasChanged();
|
|
}
|
|
}
|
|
}
|