Sistemazioni grafiche
This commit is contained in:
@@ -575,6 +575,9 @@ else
|
|||||||
Steps = UserState.Steps;
|
Steps = UserState.Steps;
|
||||||
ActivityList = UserState.Activitys;
|
ActivityList = UserState.Activitys;
|
||||||
|
|
||||||
|
if (ActiveTab != UserState.ActiveTab)
|
||||||
|
SwitchTab(UserState.ActiveTab);
|
||||||
|
|
||||||
ApplyFiltersCommesse();
|
ApplyFiltersCommesse();
|
||||||
ApplyFiltersActivity();
|
ApplyFiltersActivity();
|
||||||
|
|
||||||
@@ -680,6 +683,7 @@ else
|
|||||||
private void SwitchTab(int tabIndex)
|
private void SwitchTab(int tabIndex)
|
||||||
{
|
{
|
||||||
ActiveTab = tabIndex;
|
ActiveTab = tabIndex;
|
||||||
|
UserState.ActiveTab = ActiveTab;
|
||||||
|
|
||||||
if (tabIndex == 1 && Commesse == null)
|
if (tabIndex == 1 && Commesse == null)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -44,21 +44,25 @@
|
|||||||
{
|
{
|
||||||
if (Steps is null) return;
|
if (Steps is null) return;
|
||||||
|
|
||||||
|
// Ultimo step non skip
|
||||||
var lastBeforeSkip = Steps
|
var lastBeforeSkip = Steps
|
||||||
.TakeWhile(s => s.Status is { Skip: false })
|
.LastOrDefault(s => s.Status is { Skip: false });
|
||||||
.LastOrDefault();
|
|
||||||
|
|
||||||
if (lastBeforeSkip is not null) Stato = lastBeforeSkip.StepName;
|
if (lastBeforeSkip is not null)
|
||||||
|
Stato = lastBeforeSkip.StepName;
|
||||||
|
|
||||||
|
// Ultima data disponibile
|
||||||
LastUpd = Steps
|
LastUpd = Steps
|
||||||
.Where(s => s.Date.HasValue)
|
.Where(s => s.Date.HasValue)
|
||||||
.Select(s => s.Date!.Value)
|
.Select(s => s.Date!.Value)
|
||||||
.DefaultIfEmpty()
|
.DefaultIfEmpty()
|
||||||
.Max();
|
.Max();
|
||||||
|
|
||||||
if (LastUpd.Equals(DateTime.MinValue)) LastUpd = null;
|
if (LastUpd.Equals(DateTime.MinValue))
|
||||||
|
LastUpd = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private void OpenPageCommessa()
|
private void OpenPageCommessa()
|
||||||
{
|
{
|
||||||
JobSteps.Steps = Steps;
|
JobSteps.Steps = Steps;
|
||||||
|
|||||||
@@ -80,12 +80,15 @@
|
|||||||
.title {
|
.title {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
margin-bottom: unset !important;
|
margin-bottom: unset !important;
|
||||||
|
line-height: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-time {
|
.section-time {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
gap: .65rem;
|
||||||
|
min-width: max-content;
|
||||||
|
justify-content: flex-end;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: .5rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.notification-time {
|
.notification-time {
|
||||||
@@ -99,7 +102,7 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.subtitle {
|
.notification-body ::deep > .subtitle {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: var(--mud-palette-drawer-text);
|
color: var(--mud-palette-drawer-text);
|
||||||
}
|
}
|
||||||
@@ -79,7 +79,6 @@
|
|||||||
<MudSelectExtended FullWidth="true" ReadOnly="@(IsView || ActivityModel.EstimatedTime == null)" T="int" Variant="Variant.Text" @bind-Value="ActivityModel.MinuteBefore" @bind-Value:after="OnAfterChangeTimeBefore" Class="customIcon-select" AdornmentIcon="@Icons.Material.Filled.Code">
|
<MudSelectExtended FullWidth="true" ReadOnly="@(IsView || ActivityModel.EstimatedTime == null)" T="int" Variant="Variant.Text" @bind-Value="ActivityModel.MinuteBefore" @bind-Value:after="OnAfterChangeTimeBefore" Class="customIcon-select" AdornmentIcon="@Icons.Material.Filled.Code">
|
||||||
<MudSelectItemExtended Class="custom-item-select" Text="Nessuno" Value="-1">Nessuno</MudSelectItemExtended>
|
<MudSelectItemExtended Class="custom-item-select" Text="Nessuno" Value="-1">Nessuno</MudSelectItemExtended>
|
||||||
<MudSelectItemExtended Class="custom-item-select" Text="All'ora pianificata" Value="0">All'ora pianificata</MudSelectItemExtended>
|
<MudSelectItemExtended Class="custom-item-select" Text="All'ora pianificata" Value="0">All'ora pianificata</MudSelectItemExtended>
|
||||||
<MudSelectItemExtended Class="custom-item-select" Text="15 minuti prima" Value="15">15 minuti prima</MudSelectItemExtended>
|
|
||||||
<MudSelectItemExtended Class="custom-item-select" Text="30 minuti prima" Value="30">30 minuti prima</MudSelectItemExtended>
|
<MudSelectItemExtended Class="custom-item-select" Text="30 minuti prima" Value="30">30 minuti prima</MudSelectItemExtended>
|
||||||
<MudSelectItemExtended Class="custom-item-select" Text="1 ora prima" Value="60">1 ora prima</MudSelectItemExtended>
|
<MudSelectItemExtended Class="custom-item-select" Text="1 ora prima" Value="60">1 ora prima</MudSelectItemExtended>
|
||||||
<MudSelectItemExtended Class="custom-item-select" Text="2 ore prima" Value="120">2 ore prima</MudSelectItemExtended>
|
<MudSelectItemExtended Class="custom-item-select" Text="2 ore prima" Value="120">2 ore prima</MudSelectItemExtended>
|
||||||
|
|||||||
@@ -14,4 +14,6 @@ public class UserPageState
|
|||||||
public StbUser? Agente { get; set; }
|
public StbUser? Agente { get; set; }
|
||||||
public Dictionary<string, List<CRMJobStepDTO>?> Steps { get; set; }
|
public Dictionary<string, List<CRMJobStepDTO>?> Steps { get; set; }
|
||||||
public List<ActivityDTO> Activitys { get; set; }
|
public List<ActivityDTO> Activitys { get; set; }
|
||||||
|
|
||||||
|
public int ActiveTab { get; set; }
|
||||||
}
|
}
|
||||||
@@ -62,8 +62,6 @@ article {
|
|||||||
transform: translateY(-35px);
|
transform: translateY(-35px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.page > .Connection.Hide ~ main .bottom-sheet-container.show { bottom: -35px; }
|
|
||||||
|
|
||||||
.btn-primary {
|
.btn-primary {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background-color: var(--primary-color);
|
background-color: var(--primary-color);
|
||||||
|
|||||||
Reference in New Issue
Block a user