Files
2024-07-19 16:54:36 +02:00

52 lines
1.2 KiB
Plaintext

@using MP.AppAuth.Models
@inject IJSRuntime JSRuntime
<div class="card text-center my-2">
<div class="card-header list-group-item-info">
<div class="row">
<div class="col-6 text-start">
<b>@Environment</b>
</div>
<div class="col-6 text-end">
<b>Matr. @CurrItem.MatrOpr</b>
</div>
</div>
</div>
<div class="card-body text-center">
<QrCodeDisplayJS rawCode="@rawCode" objId="@qrId"></QrCodeDisplayJS>
</div>
<div class="card-footer text-center text-muted ">
<b>@CurrItem.Cognome @CurrItem.Nome</b>
</div>
</div>
@code {
[Parameter]
public AnagraficaOperatori CurrItem { get; set; }
protected string qrId
{
get => $"qrCodeImg_{CurrItem.MatrOpr}";
}
[Parameter]
public string BaseUrl { get; set; }
[Parameter]
public string Environment { get; set; }
protected string rawCode
{
get
{
string answ = "";
if (CurrItem != null)
{
answ = $"{BaseUrl}MatrOpr={CurrItem.MatrOpr}&UserAuthKey={CurrItem.AuthKey}";
}
return answ;
}
}
}