diff --git a/NKC_WF/WebUserControls/cmp_DailyStatsPlot.ascx b/NKC_WF/WebUserControls/cmp_DailyStatsPlot.ascx
index de06480..89c333c 100644
--- a/NKC_WF/WebUserControls/cmp_DailyStatsPlot.ascx
+++ b/NKC_WF/WebUserControls/cmp_DailyStatsPlot.ascx
@@ -6,6 +6,14 @@
@@ -28,6 +36,11 @@
});
//console.log('labels data', labels);
+ var dataNE01 = dataTS.filter(record => record.label == "NE01");
+ var dataNE02 = dataTS.filter(record => record.label == "NE02");
+ //console.log('dataNE01 data', dataNE01);
+ //console.log('dataNE02 data', dataNE02);
+
var myOptions = {
responsive: true,
maintainAspectRatio: false,
@@ -51,16 +64,30 @@
data: {
labels: labelsTS,
- datasets: [{
- label: '<%=hfLegend.Value %>',
- borderColor: 'rgb(7, 173, 236)',
- lineTension: 0,
- //steppedLine: false,
- data: dataTS
- }]
+ datasets: [
+ {
+ label: 'NE01: <%=hfLegend.Value %>',
+ borderColor: 'rgb(7, 173, 236)',
+ lineTension: 0,
+ //steppedLine: false,
+ data: dataNE01
+ },
+ {
+ label: 'NE02: <%=hfLegend.Value %>',
+ borderColor: 'rgb(7, 173, 26)',
+ lineTension: 0,
+ //steppedLine: false,
+ data: dataNE02
+ }
+ ]
},
options: myOptions
});
+
+ // nascondo panel loading
+ var currDiv = document.getElementById("divLoading");
+ currDiv.style.display = "none";
+ console.log("style: " + currDiv.style.display);
}
// errore in reload!
function OnErrorCall_(repo) {
@@ -82,6 +109,9 @@
// funzione di drawing ad OGNI pageload!
function pageLoad() {
+ // mostro panel loading
+ var currDiv = document.getElementById("divLoading");
+ currDiv.style.display = "block";
// chiamo recupero dati + plot della TS
plotTS();
//console.log('pageLoad!');
diff --git a/NKC_WF/site/MachineUnload.aspx.cs b/NKC_WF/site/MachineUnload.aspx.cs
index f4cce2c..67e88b4 100644
--- a/NKC_WF/site/MachineUnload.aspx.cs
+++ b/NKC_WF/site/MachineUnload.aspx.cs
@@ -8,6 +8,21 @@ namespace NKC_WF
{
#region Protected Properties
+ protected string MachineSel
+ {
+ get
+ {
+ return PlaceCod;
+ }
+ set
+ {
+ PlaceCod = value;
+ cmp_MU_bins.MachineSel = value;
+ cmp_MU_carts.MachineSel = value;
+ hlPartMIA.NavigateUrl = $"PartMIA?mach={value}";
+ }
+ }
+
protected int numWaitSvg
{
get
@@ -108,7 +123,8 @@ namespace NKC_WF
{
try
{
- answ = DLMan.taIL.getMissingByBatch(BatchId).Count > 0;
+ bool hasMIA = DLMan.taIL.getMissingByBatch(BatchId).Count > 0;
+ answ = hasMIA && MachineSel!="#";
}
catch
{ }
@@ -121,21 +137,6 @@ namespace NKC_WF
#region Private Methods
- protected string MachineSel
- {
- get
- {
- return PlaceCod;
- }
- set
- {
- PlaceCod = value;
- cmp_MU_bins.MachineSel = value;
- cmp_MU_carts.MachineSel = value;
- }
- }
-
-
///
/// Aggiorna componente principale e child components
///
@@ -166,9 +167,9 @@ namespace NKC_WF
upnlDrawings.Update();
upnlTitle.Update();
}
+ }
// definisco se mostrare PartMIA
hlPartMIA.Visible = showPartMIA;
- }
}
///
diff --git a/NKC_WF/site/PartMIA.aspx b/NKC_WF/site/PartMIA.aspx
index baaeb09..85e4152 100644
--- a/NKC_WF/site/PartMIA.aspx
+++ b/NKC_WF/site/PartMIA.aspx
@@ -8,7 +8,7 @@
<%@ Register Src="~/WebUserControls/cmp_MachSem.ascx" TagPrefix="uc1" TagName="cmp_MachSem" %>
-
+
-
+
\ No newline at end of file
diff --git a/NKC_WF/site/PartMIA.aspx.cs b/NKC_WF/site/PartMIA.aspx.cs
index a047b79..3aef37c 100644
--- a/NKC_WF/site/PartMIA.aspx.cs
+++ b/NKC_WF/site/PartMIA.aspx.cs
@@ -109,6 +109,16 @@ namespace NKC_WF.site
}
}
+ public string MachineSel
+ {
+ get
+ {
+ string answ = "";
+ answ = memLayer.ML.QSS("mach");
+ return answ;
+ }
+ }
+
#endregion Public Properties
#region Private Methods
@@ -126,6 +136,10 @@ namespace NKC_WF.site
///
private void doUpdate()
{
+ if (!string.IsNullOrEmpty(MachineSel))
+ {
+ PlaceCod = MachineSel;
+ }
if (PLID > 0)
{
cmp_partMIA.Visible = false;
diff --git a/NKC_WF/site/PlannerReports.aspx b/NKC_WF/site/PlannerReports.aspx
index 8a5ae60..c0b6768 100644
--- a/NKC_WF/site/PlannerReports.aspx
+++ b/NKC_WF/site/PlannerReports.aspx
@@ -6,7 +6,7 @@
<%@ Register Src="~/WebUserControls/cmp_DailyStatsList.ascx" TagPrefix="uc1" TagName="cmp_DailyStatsList" %>
-
+
@@ -25,21 +25,10 @@
-
<%# traduci("PleaseSelectReportType") %>
+
<%# traduci("PleaseSelectReportType") %>
- <%--
-
-
-
-
-
-
-
-
-
- --%>