Update grafico selezione
This commit is contained in:
@@ -102,23 +102,49 @@ else
|
||||
</div>
|
||||
<div class="card-body px-2">
|
||||
<ul class="list-group">
|
||||
<li class="list-group-item d-flex justify-content-between">
|
||||
<div class="px-0">
|
||||
Richiesta:
|
||||
</div>
|
||||
<div class="px-0">
|
||||
@($"{item.DtReq:ddd yyyy-MM-dd, HH:MM:ss}")
|
||||
</div>
|
||||
</li>
|
||||
@if (item.DictNumKVP() > nShort)
|
||||
{
|
||||
|
||||
@foreach (var kvp in item.DictAttribShort(nShort))
|
||||
{
|
||||
<li class="list-group-item">@kvp.Key : <b>@kvp.Value</b></li>
|
||||
<li class="list-group-item d-flex justify-content-between">
|
||||
<div class="px-0">@kvp.Key:</div>
|
||||
<div class="px-0"><b>@kvp.Value</b></div>
|
||||
</li>
|
||||
}
|
||||
<li class="list-group-item">...@(item.DictNumKVP() - nShort) more</li>
|
||||
<li class="list-group-item d-flex justify-content-between">
|
||||
<div class="px-0">
|
||||
@if (string.IsNullOrEmpty(item.UserAppr))
|
||||
{
|
||||
<button class="btn btn-success btn-sm" @onclick="() => DoSelect(item)">Select</button>
|
||||
}
|
||||
else
|
||||
{
|
||||
<button class="btn btn-secondary btn-sm" @onclick="() => DoSelect(item)">ShowDetail</button>
|
||||
}
|
||||
</div>
|
||||
<div class="px-0"><i>...@(item.DictNumKVP() - nShort) more</i></div>
|
||||
</li>
|
||||
}
|
||||
else
|
||||
{
|
||||
@foreach (var kvp in item.DictAttrib)
|
||||
{
|
||||
<li class="list-group-item">@kvp.Key : <b>@kvp.Value</b></li>
|
||||
<li class="list-group-item d-flex justify-content-between">
|
||||
<div class="px-0">@kvp.Key:</div>
|
||||
<div class="px-0"> <b>@kvp.Value</b> </div>
|
||||
</li>
|
||||
}
|
||||
}
|
||||
<li class="list-group-item p-0">
|
||||
@* <li class="list-group-item p-0">
|
||||
@if (string.IsNullOrEmpty(item.UserAppr))
|
||||
{
|
||||
<button class="btn btn-success w-100" @onclick="() => DoSelect(item)">Select</button>
|
||||
@@ -127,7 +153,7 @@ else
|
||||
{
|
||||
<button class="btn btn-secondary w-100" @onclick="() => DoSelect(item)">ShowDetail</button>
|
||||
}
|
||||
</li>
|
||||
</li> *@
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -57,6 +57,7 @@ namespace LiMan.UI.Components
|
||||
// registra approvazione
|
||||
SelRecord.DtAppr = DateTime.Now;
|
||||
SelRecord.UserAppr = user.Identity.Name;
|
||||
SelRecord.IdxLic = SelIdxLic;
|
||||
await LMDService.EnrollReqUpsert(SelRecord);
|
||||
SelRecord = null;
|
||||
await ReloadData();
|
||||
|
||||
Reference in New Issue
Block a user