Plot page
- Plot Type
+
+ Plot Type
- Num Columns
+
+
diff --git a/INTERFACE/WebLCP/WUC/mod_showSvgList.ascx.cs b/INTERFACE/WebLCP/WUC/mod_showSvgList.ascx.cs
index cef891d..3b368ed 100644
--- a/INTERFACE/WebLCP/WUC/mod_showSvgList.ascx.cs
+++ b/INTERFACE/WebLCP/WUC/mod_showSvgList.ascx.cs
@@ -6,17 +6,27 @@ namespace WebLCP.WUC
{
protected void Page_Load(object sender, EventArgs e)
{
+ mod_jobsList.eh_doRefresh += Mod_jobsList_eh_doRefresh;
+ }
+ private void Mod_jobsList_eh_doRefresh(object sender, EventArgs e)
+ {
+ doUpdate();
+ }
+
+ private void doUpdate()
+ {
+ repPlots.DataBind();
}
protected void ddlNumCol_SelectedIndexChanged(object sender, EventArgs e)
{
- repPlots.DataBind();
+ doUpdate();
}
protected void ddlType_SelectedIndexChanged(object sender, EventArgs e)
{
- repPlots.DataBind();
+ doUpdate();
}
}
}
\ No newline at end of file
diff --git a/INTERFACE/WebLCP/dataLayer.cs b/INTERFACE/WebLCP/dataLayer.cs
index 4ccf949..c6cf5a9 100644
--- a/INTERFACE/WebLCP/dataLayer.cs
+++ b/INTERFACE/WebLCP/dataLayer.cs
@@ -1,4 +1,5 @@
-using SteamWare;
+using Newtonsoft.Json;
+using SteamWare;
using System;
using System.Collections;
@@ -198,51 +199,21 @@ namespace WebLCP
public static ICollection getSelectedJobs()
{
ArrayList al = new ArrayList();
- plotData currPlot = new plotData();
- currPlot.path = "~/results/J000000042/DensityPlots_Un-adjusted.svg";
- currPlot.jobId = 42;
- currPlot.jobCode = "J000000042";
- al.Add(currPlot);
- currPlot.path = "~/results/J000000043/DensityPlots_Un-adjusted.svg";
- currPlot.jobId = 43;
- currPlot.jobCode = "J000000043";
- al.Add(currPlot);
- currPlot.path = "~/results/J000000044/DensityPlots_Un-adjusted.svg";
- currPlot.jobId = 44;
- currPlot.jobCode = "J000000044";
- al.Add(currPlot);
- currPlot.path = "~/results/J000000045/DensityPlots_Un-adjusted.svg";
- currPlot.jobId = 45;
- currPlot.jobCode = "J000000045";
- al.Add(currPlot);
- currPlot.path = "~/results/J000000042/DensityPlots_Un-adjusted.svg";
- currPlot.jobId = 42;
- currPlot.jobCode = "J000000042";
- al.Add(currPlot);
- currPlot.path = "~/results/J000000043/DensityPlots_Un-adjusted.svg";
- currPlot.jobId = 43;
- currPlot.jobCode = "J000000043";
- al.Add(currPlot);
- currPlot.path = "~/results/J000000044/DensityPlots_Un-adjusted.svg";
- currPlot.jobId = 44;
- currPlot.jobCode = "J000000044";
- al.Add(currPlot);
- currPlot.path = "~/results/J000000045/DensityPlots_Un-adjusted.svg";
- currPlot.jobId = 45;
- currPlot.jobCode = "J000000045";
- al.Add(currPlot);
+ string rawdata = memLayer.ML.StringSessionObj("jobSelection");
+ if (rawdata != "")
+ {
+ al = JsonConvert.DeserializeObject
(rawdata);
+ }
+ // restituisco array!
return al;
}
-
-
}
///
/// Classe oggetto plot
///
- public class plotData
+ public class jobData
{
public int jobId { get; set; }
public string jobCode { get; set; }
- public string path { get; set; }
}
}
\ No newline at end of file