Sistemazioni grafiche
This commit is contained in:
@@ -575,6 +575,9 @@ else
|
||||
Steps = UserState.Steps;
|
||||
ActivityList = UserState.Activitys;
|
||||
|
||||
if (ActiveTab != UserState.ActiveTab)
|
||||
SwitchTab(UserState.ActiveTab);
|
||||
|
||||
ApplyFiltersCommesse();
|
||||
ApplyFiltersActivity();
|
||||
|
||||
@@ -680,6 +683,7 @@ else
|
||||
private void SwitchTab(int tabIndex)
|
||||
{
|
||||
ActiveTab = tabIndex;
|
||||
UserState.ActiveTab = ActiveTab;
|
||||
|
||||
if (tabIndex == 1 && Commesse == null)
|
||||
{
|
||||
|
||||
@@ -44,21 +44,25 @@
|
||||
{
|
||||
if (Steps is null) return;
|
||||
|
||||
// Ultimo step non skip
|
||||
var lastBeforeSkip = Steps
|
||||
.TakeWhile(s => s.Status is { Skip: false })
|
||||
.LastOrDefault();
|
||||
.LastOrDefault(s => s.Status is { Skip: false });
|
||||
|
||||
if (lastBeforeSkip is not null) Stato = lastBeforeSkip.StepName;
|
||||
if (lastBeforeSkip is not null)
|
||||
Stato = lastBeforeSkip.StepName;
|
||||
|
||||
// Ultima data disponibile
|
||||
LastUpd = Steps
|
||||
.Where(s => s.Date.HasValue)
|
||||
.Select(s => s.Date!.Value)
|
||||
.DefaultIfEmpty()
|
||||
.Max();
|
||||
|
||||
if (LastUpd.Equals(DateTime.MinValue)) LastUpd = null;
|
||||
if (LastUpd.Equals(DateTime.MinValue))
|
||||
LastUpd = null;
|
||||
}
|
||||
|
||||
|
||||
private void OpenPageCommessa()
|
||||
{
|
||||
JobSteps.Steps = Steps;
|
||||
|
||||
@@ -80,12 +80,15 @@
|
||||
.title {
|
||||
font-weight: 700;
|
||||
margin-bottom: unset !important;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
.section-time {
|
||||
display: flex;
|
||||
gap: .65rem;
|
||||
min-width: max-content;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
gap: .5rem;
|
||||
}
|
||||
|
||||
.notification-time {
|
||||
@@ -99,7 +102,7 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
.notification-body ::deep > .subtitle {
|
||||
font-size: 12px;
|
||||
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">
|
||||
<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="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="1 ora prima" Value="60">1 ora 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 Dictionary<string, List<CRMJobStepDTO>?> Steps { get; set; }
|
||||
public List<ActivityDTO> Activitys { get; set; }
|
||||
|
||||
public int ActiveTab { get; set; }
|
||||
}
|
||||
@@ -62,8 +62,6 @@ article {
|
||||
transform: translateY(-35px);
|
||||
}
|
||||
|
||||
.page > .Connection.Hide ~ main .bottom-sheet-container.show { bottom: -35px; }
|
||||
|
||||
.btn-primary {
|
||||
color: #fff;
|
||||
background-color: var(--primary-color);
|
||||
|
||||
Reference in New Issue
Block a user