Fix update dettaglio elezione timbrature
This commit is contained in:
@@ -5,9 +5,15 @@
|
||||
<div class="card">
|
||||
<div class="card-header bg-dark text-light py-1">
|
||||
<div class="row">
|
||||
<div class="col-8">
|
||||
<div class="col-4">
|
||||
<h4>Timbrature</h4>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
@if (ListTimb != null && ListTimb.Count > 0)
|
||||
{
|
||||
<b>@ListTimb.FirstOrDefault().DataOra.ToString("ddd dd.MM.yyyy")</b>
|
||||
}
|
||||
</div>
|
||||
<div class="col-4 py-1">
|
||||
<button type="button" class="btn btn-block btn-warning py-1" @onclick="DoClose"><i class="fas fa-times"></i> Chiudi</button>
|
||||
</div>
|
||||
|
||||
@@ -64,7 +64,22 @@ namespace GPW.CORE.WRKLOG.Components
|
||||
public EventCallback<bool> ItemUpdated { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public List<TimbratureModel> ListTimb { get; set; } = new List<TimbratureModel>();
|
||||
public List<TimbratureModel> ListTimb { get
|
||||
{
|
||||
return _listTimb;
|
||||
}
|
||||
set
|
||||
{
|
||||
if (_listTimb != value)
|
||||
{
|
||||
_listTimb = value;
|
||||
var pUpd = Task.Run(async () => await ReloadData());
|
||||
pUpd.Wait();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected List<TimbratureModel> _listTimb { get; set; } = new List<TimbratureModel>();
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Version>3.0.2202.0809</Version>
|
||||
<Version>3.0.2202.0810</Version>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -130,7 +130,6 @@ else if (currRecord != null)
|
||||
|
||||
</div>
|
||||
<div class="col-7 pl-0">
|
||||
@*@if (ListTimbr != null && ListTimbr.Count() > 0)*@
|
||||
@if (showTimb)
|
||||
{
|
||||
<TimbrEditor ListTimb="@ListTimbr" CloseReq="ResetTimbData" ItemUpdated="UpdTimbData" IsPortrait="false"></TimbrEditor>
|
||||
|
||||
@@ -389,8 +389,8 @@ namespace GPW.CORE.WRKLOG.Pages
|
||||
/// </summary>
|
||||
protected void PeriodoSelect(List<TimbratureModel> newList)
|
||||
{
|
||||
ListTimbr = null;
|
||||
StateHasChanged();
|
||||
//ListTimbr = null;
|
||||
//StateHasChanged();
|
||||
// salvo periodo selezionato
|
||||
ListTimbr = newList;
|
||||
showDay = false;
|
||||
@@ -480,6 +480,10 @@ namespace GPW.CORE.WRKLOG.Pages
|
||||
|
||||
protected async Task ResetTimbData()
|
||||
{
|
||||
selPeriod = false;
|
||||
showTemp = false;
|
||||
showDay = false;
|
||||
showTimb = false;
|
||||
currRecord = null;
|
||||
ListTimbr = null;
|
||||
SelDayDTO = null;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>GPW - Gestione Presenze Web</i>
|
||||
<h4>Versione: 3.0.2202.0809</h4>
|
||||
<h4>Versione: 3.0.2202.0810</h4>
|
||||
<br /> Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
3.0.2202.0809
|
||||
3.0.2202.0810
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>3.0.2202.0809</version>
|
||||
<version>3.0.2202.0810</version>
|
||||
<url>http://nexus.steamware.net/repository/SWS/GWMS/stable/0/GWMS.UI.zip</url>
|
||||
<changelog>http://nexus.steamware.net/repository/SWS/GWMS/stable/0/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
Reference in New Issue
Block a user