Fix errore paste RA

This commit is contained in:
Samuele Locatelli
2023-01-19 10:31:41 +01:00
parent 220aaf21c0
commit eb6652699a
3 changed files with 6 additions and 19 deletions
+1 -1
View File
@@ -170,7 +170,7 @@ else
{
<div class="p-1 text-center text-light">
<div>
<CompProj ListProgetti="listaP" ReqReload="ForceReload"></CompProj>
<CompProj ListProgetti="listaP" ReqReload="ForceReload" DtRif="@datiGiorno.DtRif"></CompProj>
</div>
</div>
}
+5 -3
View File
@@ -13,6 +13,9 @@ namespace GPW.CORE.Smart.Components
[Parameter]
public int IdxDipCurr { get; set; } = 0;
[Parameter]
public DateTime DtRif { get; set; } = DateTime.Today;
[Parameter]
public List<RegAttivitaModel>? ListProgetti
{
@@ -204,13 +207,12 @@ namespace GPW.CORE.Smart.Components
// altrimenti aggiunge comunque un attività...
else
{
DateTime oggi = DateTime.Today;
RegAttivitaModel? newItem = new RegAttivitaModel()
{
Inizio = oggi.AddHours(StartHour),
Inizio = DtRif.AddHours(StartHour),
IdxFase = 0,
Descrizione = "-",
Fine = oggi.AddHours(StartHour + 1),
Fine = DtRif.AddHours(StartHour + 1),
OreTot = 1
};
result.Add(newItem);
@@ -29,21 +29,6 @@
</div>
}
}
@* if (lastIdxRa > 0)
{
@if (hasClonedRa)
{
<button class="btn btn-warning btn-sm w-75 mt-2" @onclick="() => DoPaste(item)">
<i class="fa-regular fa-clipboard"></i>
</button>
}
else
{
<button class="btn btn-success btn-sm w-75 mt-2" @onclick="() => DoInsert(item)">
<i class="fa-solid fa-calendar-plus"></i>
</button>
}
}*@
}