Fix errore paste RA
This commit is contained in:
@@ -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>
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
}
|
||||
}*@
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user