Bozza veisione orizzontale dati...
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
<h3>Test</h3>
|
||||
|
||||
<b>Test</b>
|
||||
|
||||
<div style="height: 4em;">
|
||||
<div class="progress" style="height: 4em; width: 20%; float:left; vertical-align: middle;">
|
||||
|
||||
@@ -36,18 +36,29 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<Test></Test>
|
||||
|
||||
@if (currRecord != null)
|
||||
{
|
||||
@*<WeekPlanEditor currItem="@currRecord" DataReset="ResetData" DataUpdated="UpdateData"></WeekPlanEditor>*@
|
||||
}
|
||||
@*@if (ListRecords == null)
|
||||
{
|
||||
@if (ListRecords == null)
|
||||
{
|
||||
<LoadingData></LoadingData>
|
||||
}*@
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
<div class="row">
|
||||
@foreach (var currItem in ListRecords)
|
||||
{
|
||||
<div class="col-12">
|
||||
@currItem.DtInizio
|
||||
<Test></Test>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12 text-center">
|
||||
<table class="table table-sm table-striped table-responsive-sm">
|
||||
|
||||
@@ -28,9 +28,9 @@ namespace GPW.CORE.UI.Pages
|
||||
|
||||
private List<CORE.Data.DTO.WeekStatDTO> weekStatList;
|
||||
|
||||
private List<CORE.Data.DTO.DailyDataDTO> ListRecords;
|
||||
#if false
|
||||
private WeekPlanModel currRecord = null;
|
||||
private List<WeekPlanModel> ListRecords;
|
||||
private List<PlantDTO> PlantsList;
|
||||
private List<SupplierModel> SuppliersList;
|
||||
private List<TransporterModel> TransportersList;
|
||||
@@ -185,12 +185,10 @@ namespace GPW.CORE.UI.Pages
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
#if false
|
||||
if (ListRecords != null)
|
||||
{
|
||||
answ = ListRecords.Count;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
@@ -234,11 +232,19 @@ namespace GPW.CORE.UI.Pages
|
||||
#endif
|
||||
}
|
||||
|
||||
private async Task ReloadData()
|
||||
private async Task InitData()
|
||||
{
|
||||
isLoading = true;
|
||||
weekStatList = await DataService.LastWeeks(1, DateTime.Today, 4);
|
||||
currWeekNum = weekStatList.Last().WeekNumber;
|
||||
isLoading = false;
|
||||
}
|
||||
|
||||
private async Task ReloadData()
|
||||
{
|
||||
isLoading = true;
|
||||
ListRecords = await DataService.DailyDetails(1, currWeekSel.inizio, currWeekSel.fine);
|
||||
|
||||
#if false
|
||||
ListRecords = await DataService.WeekPlanGet();
|
||||
#endif
|
||||
@@ -284,6 +290,7 @@ namespace GPW.CORE.UI.Pages
|
||||
AppMService.PageName = "Planner Consegne";
|
||||
AppMService.PageIcon = "fas fa-calendar pr-2";
|
||||
#endif
|
||||
await InitData();
|
||||
await ReloadAllData();
|
||||
|
||||
}
|
||||
@@ -304,6 +311,7 @@ namespace GPW.CORE.UI.Pages
|
||||
DataService.rollBackEdit(currRecord);
|
||||
currRecord = null;
|
||||
#endif
|
||||
await InitData();
|
||||
await ReloadData();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user