+}
+
+
\ No newline at end of file
diff --git a/Lux.UI/Components/Compo/Generic/GenValMan.razor b/Lux.UI/Components/Compo/Generic/GenValMan.razor
index 8b8b76ec..9a009a22 100644
--- a/Lux.UI/Components/Compo/Generic/GenValMan.razor
+++ b/Lux.UI/Components/Compo/Generic/GenValMan.razor
@@ -85,4 +85,4 @@ else
}
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/Lux.UI/Components/Compo/Item/ItemEdit.razor b/Lux.UI/Components/Compo/Item/ItemEdit.razor
index 7ed81d18..82b37521 100644
--- a/Lux.UI/Components/Compo/Item/ItemEdit.razor
+++ b/Lux.UI/Components/Compo/Item/ItemEdit.razor
@@ -1,101 +1,98 @@
@inherits BaseComp
diff --git a/Lux.UI/Components/Compo/Item/SellingItemMan.razor b/Lux.UI/Components/Compo/Item/SellingItemMan.razor
index edacf9b4..0571b497 100644
--- a/Lux.UI/Components/Compo/Item/SellingItemMan.razor
+++ b/Lux.UI/Components/Compo/Item/SellingItemMan.razor
@@ -97,4 +97,4 @@ else
}
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/Lux.UI/Components/Compo/JobTask/JobStepMan.razor b/Lux.UI/Components/Compo/JobTask/JobStepMan.razor
index 69835e51..54ce4524 100644
--- a/Lux.UI/Components/Compo/JobTask/JobStepMan.razor
+++ b/Lux.UI/Components/Compo/JobTask/JobStepMan.razor
@@ -176,4 +176,4 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/Lux.UI/Components/Compo/JobTask/JobStepMan.razor.cs b/Lux.UI/Components/Compo/JobTask/JobStepMan.razor.cs
index f99f7984..e5e64a6d 100644
--- a/Lux.UI/Components/Compo/JobTask/JobStepMan.razor.cs
+++ b/Lux.UI/Components/Compo/JobTask/JobStepMan.razor.cs
@@ -7,7 +7,7 @@ namespace Lux.UI.Components.Compo.JobTask
#region Public Properties
[Parameter]
- public JobTaskModel CurrJob { get; set; }
+ public JobTaskModel CurrJob { get; set; } = null!;
[Parameter]
public List CurrRecords { get; set; } = null!;
@@ -25,10 +25,10 @@ namespace Lux.UI.Components.Compo.JobTask
public List ListAllTags { get; set; } = new List();
[Parameter]
- public List ListPhases { get; set; }
+ public List ListPhases { get; set; } = null!;
[Parameter]
- public List ListResources { get; set; }
+ public List ListResources { get; set; } = null!;
#endregion Public Properties
@@ -197,7 +197,8 @@ namespace Lux.UI.Components.Compo.JobTask
///
///
private async Task DoDelete(JobStepModel rec2del)
- {;
+ {
+ ;
mTitle = "Attenzione";
mMessage = $"Sicuro di voler eliminare il record? {rec2del.Description} ({rec2del.JobStepID})";
mMode = BootstrapModal.ModalMode.Confirm;
diff --git a/Lux.UI/Components/Compo/JobTask/JobTaskListMan.razor b/Lux.UI/Components/Compo/JobTask/JobTaskListMan.razor
index 0f244424..d765deb9 100644
--- a/Lux.UI/Components/Compo/JobTask/JobTaskListMan.razor
+++ b/Lux.UI/Components/Compo/JobTask/JobTaskListMan.razor
@@ -121,4 +121,4 @@ else
}
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/Lux.UI/Components/Compo/JobTask/ResourcesMan.razor b/Lux.UI/Components/Compo/JobTask/ResourcesMan.razor
index c5b53943..ea3b7978 100644
--- a/Lux.UI/Components/Compo/JobTask/ResourcesMan.razor
+++ b/Lux.UI/Components/Compo/JobTask/ResourcesMan.razor
@@ -66,4 +66,4 @@ else
}
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/Lux.UI/Components/Compo/JobTask/ResourcesMan.razor.cs b/Lux.UI/Components/Compo/JobTask/ResourcesMan.razor.cs
index ed901354..82ce2e5c 100644
--- a/Lux.UI/Components/Compo/JobTask/ResourcesMan.razor.cs
+++ b/Lux.UI/Components/Compo/JobTask/ResourcesMan.razor.cs
@@ -39,7 +39,9 @@ namespace Lux.UI.Components.Compo.JobTask
private int currPage = 1;
- private ResourceModel? editRecord = null;
+#if false
+ private ResourceModel? editRecord = null;
+#endif
private bool isLoading = false;
@@ -143,7 +145,9 @@ namespace Lux.UI.Components.Compo.JobTask
///
private async Task DoReset()
{
- editRecord = null;
+#if false
+ editRecord = null;
+#endif
selRecord = null;
await ReloadBaseData();
ReloadData();
diff --git a/Lux.UI/Components/Compo/Offer/OfferRowMan.razor b/Lux.UI/Components/Compo/Offer/OfferRowMan.razor
index d52d635e..82548732 100644
--- a/Lux.UI/Components/Compo/Offer/OfferRowMan.razor
+++ b/Lux.UI/Components/Compo/Offer/OfferRowMan.razor
@@ -466,4 +466,4 @@ else
}
}
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/Lux.UI/Components/Compo/Offer/OfferRowMan.razor.cs b/Lux.UI/Components/Compo/Offer/OfferRowMan.razor.cs
index 60f1d0e6..6195fde2 100644
--- a/Lux.UI/Components/Compo/Offer/OfferRowMan.razor.cs
+++ b/Lux.UI/Components/Compo/Offer/OfferRowMan.razor.cs
@@ -205,10 +205,12 @@ namespace Lux.UI.Components.Compo.Offer
///
private OfferRowModel? EditRecord = null;
+#if false
///
/// Abilita edit massivo record ITEM
///
- private bool enableMassEdit = false;
+ private bool enableMassEdit = false;
+#endif
private string genericBasePath = "";
@@ -233,12 +235,14 @@ namespace Lux.UI.Components.Compo.Offer
private int numRecord = 10;
+#if false
///
/// Versione originale (pre edit)
///
private string origJwd = "";
- private List PreparedFile = new();
+ private List PreparedFile = new();
+#endif
///
/// Versione precedente JWD x test e confronto
diff --git a/Lux.UI/Components/Compo/Order/OrderRowMan.razor b/Lux.UI/Components/Compo/Order/OrderRowMan.razor
index 19d7cccc..ed473da0 100644
--- a/Lux.UI/Components/Compo/Order/OrderRowMan.razor
+++ b/Lux.UI/Components/Compo/Order/OrderRowMan.razor
@@ -567,4 +567,4 @@ else if (WorkLoadRecord != null)
} *@
}
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/Lux.UI/Components/Compo/Order/OrderRowMan.razor.cs b/Lux.UI/Components/Compo/Order/OrderRowMan.razor.cs
index 18d67105..6e4ae73f 100644
--- a/Lux.UI/Components/Compo/Order/OrderRowMan.razor.cs
+++ b/Lux.UI/Components/Compo/Order/OrderRowMan.razor.cs
@@ -271,10 +271,12 @@ namespace Lux.UI.Components.Compo.Order
private string noteCss => EditRecord == null ? "btn-success" : "btn-primary bg-gradient";
+#if false
///
/// Versione originale (pre edit)
///
- private string origJwd = "";
+ private string origJwd = "";
+#endif
///
/// Versione precedente JWD x test e confronto
diff --git a/Lux.UI/Components/Compo/Planner/BalanceProgGroup.razor b/Lux.UI/Components/Compo/Planner/BalanceProgGroup.razor
index 88498d7c..04931a72 100644
--- a/Lux.UI/Components/Compo/Planner/BalanceProgGroup.razor
+++ b/Lux.UI/Components/Compo/Planner/BalanceProgGroup.razor
@@ -155,4 +155,4 @@
}
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/Lux.UI/Components/Compo/Planner/CalendarPlanner.razor.cs b/Lux.UI/Components/Compo/Planner/CalendarPlanner.razor.cs
index 17d583f2..ac8fe7ee 100644
--- a/Lux.UI/Components/Compo/Planner/CalendarPlanner.razor.cs
+++ b/Lux.UI/Components/Compo/Planner/CalendarPlanner.razor.cs
@@ -148,11 +148,14 @@ namespace Lux.UI.Components.Compo.Planner
///
/// Sistemazione colore sfonto di ogni evento mostrato
///
- ///
- private void OnAppointmentRender(SchedulerAppointmentRenderEventArgs args)
+ ///
+ private void OnAppointmentRender(SchedulerAppointmentRenderEventArgs selEv)
{
- // Never call StateHasChanged in AppointmentRender - would lead to infinite loop
- args.Attributes["style"] = $"background: {args.Data.Color}; color: {args.Data.ForeColor};";
+ if (selEv.Data != null)
+ {
+ // Never call StateHasChanged in AppointmentRender - would lead to infinite loop
+ selEv.Attributes["style"] = $"background: {selEv.Data.Color}; color: {selEv.Data.ForeColor};";
+ }
}
///
@@ -162,9 +165,11 @@ namespace Lux.UI.Components.Compo.Planner
///
private async Task OnAppointmentSelect(SchedulerAppointmentSelectEventArgs selEv)
{
- var copy = selEv.Data.Clone();
- await Task.Delay(1);
- var data = await DialogService.OpenAsync("", new Dictionary { { "ThisTask", copy } });
+ if (selEv.Data != null)
+ {
+ var copy = selEv.Data.Clone();
+ var data = await DialogService.OpenAsync("", new Dictionary { { "ThisTask", copy } });
+ }
}
///
@@ -175,7 +180,10 @@ namespace Lux.UI.Components.Compo.Planner
private async Task OnLoadData(SchedulerLoadDataEventArgs args)
{
await Task.Delay(1);
- currView = scheduler.SelectedView.Text.ToLowerInvariant();
+ if (scheduler.SelectedView != null)
+ {
+ currView = scheduler.SelectedView.Text.ToLowerInvariant();
+ }
DateTime dtMid = args.Start.AddDays(args.End.Subtract(args.Start).TotalDays / 2);
// controllo se sia cambiata data anno precedente...
if (dtMid.Year != SelDate.Year)
@@ -197,48 +205,53 @@ namespace Lux.UI.Components.Compo.Planner
private void OnSlotRender(SchedulerSlotRenderEventArgs args)
{
- // Highlight today in month view
- if (args.View.Text == "Month" && args.Start.Date == DateTime.Today)
+ if (args.View != null)
{
- args.Attributes["style"] = "background: var(--rz-scheduler-highlight-background-color, rgba(255,220,40,.2));";
- }
+ // Highlight today in month view
+ if (args.View.Text == "Month" && args.Start.Date == DateTime.Today)
+ {
+ args.Attributes["style"] = "background: var(--rz-scheduler-highlight-background-color, rgba(255,220,40,.2));";
+ }
- // Highlight working hours (9-18)
- if ((args.View.Text == "Week" || args.View.Text == "Day") && args.Start.Hour > 8 && args.Start.Hour < 19)
- {
- args.Attributes["style"] = "background: var(--rz-scheduler-highlight-background-color, rgba(255,220,40,.2));";
+ // Highlight working hours (9-18)
+ if ((args.View.Text == "Week" || args.View.Text == "Day") && args.Start.Hour > 8 && args.Start.Hour < 19)
+ {
+ args.Attributes["style"] = "background: var(--rz-scheduler-highlight-background-color, rgba(255,220,40,.2));";
+ }
}
}
private async Task OnSlotSelect(SchedulerSlotSelectEventArgs args)
{
int prevIdx = selectedIndex;
- await Task.Delay(1);
- // verifico indice corretto della vista...
- switch (args.View.Text)
+ if (args.View != null)
{
- case "Day":
- selectedIndex = 0;
- break;
+ // verifico indice corretto della vista...
+ switch (args.View.Text)
+ {
+ case "Day":
+ selectedIndex = 0;
+ break;
- case "Week":
- selectedIndex = 1;
- break;
+ case "Week":
+ selectedIndex = 1;
+ break;
- case "Month":
- selectedIndex = 2;
- break;
+ case "Month":
+ selectedIndex = 2;
+ break;
- case "Planner":
- selectedIndex = 3;
- break;
+ case "Planner":
+ selectedIndex = 3;
+ break;
- case "Year":
- selectedIndex = 4;
- break;
+ case "Year":
+ selectedIndex = 4;
+ break;
- default:
- break;
+ default:
+ break;
+ }
}
if (prevIdx != selectedIndex)
{
diff --git a/Lux.UI/Components/Compo/Planner/OdlMan.razor b/Lux.UI/Components/Compo/Planner/OdlMan.razor
index 5acba9ae..a3761649 100644
--- a/Lux.UI/Components/Compo/Planner/OdlMan.razor
+++ b/Lux.UI/Components/Compo/Planner/OdlMan.razor
@@ -15,38 +15,41 @@
- @foreach (var item in AllRecords)
+ @if (AllRecords != null)
{
-
-
-
-
-
- @*
+ foreach (var item in AllRecords)
+ {
+
+
+
+
+
+ @*
@(idx++)
*@
-
- @item.ProdBatchID
-
-
- @item.OdlTag
-
-
- @item.ProdPlantCod
-
-
- @item.Qty
-
-
- @item.Qty
-
-
- @FormatEstTime(item.EstimTime)
-
-
-
+
+ @item.ProdBatchID
+
+
+ @item.OdlTag
+
+
+ @item.ProdPlantCod
+
+
+ @item.Qty
+
+
+ @item.Qty
+
+
+ @FormatEstTime(item.EstimTime)
+
+
+
+ }
}
@*
diff --git a/Lux.UI/Components/Compo/Planner/WLB_Estimated.razor b/Lux.UI/Components/Compo/Planner/WLB_Estimated.razor
index a2db8e1c..cb4298ac 100644
--- a/Lux.UI/Components/Compo/Planner/WLB_Estimated.razor
+++ b/Lux.UI/Components/Compo/Planner/WLB_Estimated.razor
@@ -31,4 +31,4 @@ else
}
}
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/Lux.UI/Components/Compo/Stats/OfferStats.razor b/Lux.UI/Components/Compo/Stats/OfferStats.razor
index 4b107ab8..209b1195 100644
--- a/Lux.UI/Components/Compo/Stats/OfferStats.razor
+++ b/Lux.UI/Components/Compo/Stats/OfferStats.razor
@@ -1,111 +1,116 @@
-
-