133 lines
5.1 KiB
Plaintext
133 lines
5.1 KiB
Plaintext
@page "/Planner"
|
|
@using GPW.CORE.UI.Components
|
|
|
|
|
|
|
|
<div class="card">
|
|
<div class="card-header table-primary py-1">
|
|
<div class="row">
|
|
<div class="col-12 col-lg-2 text-center">
|
|
<h3>Week Plan</h3>
|
|
<div class="d-flex justify-content-between">
|
|
<div class="py-0 px-1">
|
|
<sub>@currWeekSel.inizio.ToString("ddd dd.MM")</sub>
|
|
</div>
|
|
<div class="py-0 px-1">
|
|
W<b>@currWeekNum</b>
|
|
</div>
|
|
<div class="py-0 px-1">
|
|
<sub>@currWeekSel.fine.ToString("ddd dd.MM")</sub>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-12 col-lg-10">
|
|
@if (weekStatList != null)
|
|
{
|
|
<div class="row">
|
|
@foreach (var item in weekStatList)
|
|
{
|
|
<div class="col px-1">
|
|
<WeekStat currData="@item" WeekSel="@currWeekNum" weekSelected="setWeekNumber"></WeekStat>
|
|
</div>
|
|
}
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
|
|
@if (currRecord != null)
|
|
{
|
|
@*<WeekPlanEditor currItem="@currRecord" DataReset="ResetData" DataUpdated="UpdateData"></WeekPlanEditor>*@
|
|
}
|
|
@if (ListRecords == null)
|
|
{
|
|
<LoadingData></LoadingData>
|
|
}
|
|
else
|
|
{
|
|
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<DayHoriz IsTitle="true" StartHour="@startHour" EndHour="@endHour" ListFasi="@ListFasi"></DayHoriz>
|
|
</div>
|
|
@foreach (var currItem in ListRecords)
|
|
{
|
|
<div class="col-12">
|
|
<DayHoriz DayDTO="@currItem" StartHour="@startHour" EndHour="@endHour" ListFasi="@ListFasi"></DayHoriz>
|
|
</div>
|
|
}
|
|
</div>
|
|
|
|
|
|
@*<div class="row">
|
|
<div class="col-12 text-center">
|
|
<table class="table table-sm table-striped table-responsive-sm">
|
|
<thead>
|
|
<tr>
|
|
<th></th>
|
|
<th>LUN</th>
|
|
<th>MAR</th>
|
|
<th>MER</th>
|
|
<th>GIO</th>
|
|
<th>VEN</th>
|
|
<th>SAB</th>
|
|
<th>DOM</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@for (int i = startHour; i <= endHour; i++)
|
|
{
|
|
<tr class="small">
|
|
<td style="width: 3.4%;">@i</td>
|
|
<DayAgendaDetail Ora="@i" CurrDay="DayOfWeek.Monday"></DayAgendaDetail>
|
|
<DayAgendaDetail Ora="@i" CurrDay="DayOfWeek.Thursday"></DayAgendaDetail>
|
|
<DayAgendaDetail Ora="@i" CurrDay="DayOfWeek.Wednesday"></DayAgendaDetail>
|
|
<DayAgendaDetail Ora="@i" CurrDay="DayOfWeek.Thursday"></DayAgendaDetail>
|
|
<DayAgendaDetail Ora="@i" CurrDay="DayOfWeek.Friday"></DayAgendaDetail>
|
|
<DayAgendaDetail Ora="@i" CurrDay="DayOfWeek.Saturday"></DayAgendaDetail>
|
|
<DayAgendaDetail Ora="@i" CurrDay="DayOfWeek.Sunday"></DayAgendaDetail>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>*@
|
|
}
|
|
|
|
<div class="small">
|
|
|
|
|
|
|
|
@*selRecordChanged="EditRecord" currList="@SlotList(DayOfWeek.Monday, i)"*@
|
|
|
|
Pagina principale formato "agenda":
|
|
<ul>
|
|
<li>schema agenda settimanale x la settimana corrente / selezionata</li>
|
|
<li>per ogni giorno (stile google) nome + numero gg in testa</li>
|
|
<li>blocco verticale (configirabile, default 7-21) ogni 30'</li>
|
|
<li> click --> modal compilazione record (selettore gerarchico + ricerca ultimi progetti pareto a dx)</li>
|
|
<li>click + trascina?!?!? da verificare</li>
|
|
<li> in testa 2 icone x indicare OK temperatura e OK x check C19</li>
|
|
<li> sulla dx una colonna di "tempo timbrato"</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="card-footer py-1">
|
|
<div class="row small">
|
|
<div class="col-3">
|
|
Selezione range orario:
|
|
<input @bind="startHour" style="width: 3em;" type="number" />
|
|
|
|
<i class="fas fa-angle-double-right"></i>
|
|
<input @bind="endHour" style="width: 3em;" type="number" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|