From dc700f7c5ff5bea80bd3aab998acf82573023b58 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Wed, 8 Jul 2020 21:56:07 +0200 Subject: [PATCH] Ancora fix grafici (da completare detail...) --- MP-TAB/MP-TAB.csproj | 16 +++++ MP-TAB/WebUserControls/cmp_ST_detail.ascx | 39 +++++++--- .../cmp_ST_detail.ascx.designer.cs | 4 +- MP-TAB/WebUserControls/cmp_ST_objCheck.ascx | 1 + .../WebUserControls/cmp_ST_objCheck.ascx.cs | 17 +++++ .../cmp_ST_objCheck.ascx.designer.cs | 17 +++++ MP-TAB/WebUserControls/cmp_ST_objView.ascx | 16 +++++ MP-TAB/WebUserControls/cmp_ST_objView.ascx.cs | 70 ++++++++++++++++++ .../cmp_ST_objView.ascx.designer.cs | 71 +++++++++++++++++++ 9 files changed, 238 insertions(+), 13 deletions(-) create mode 100644 MP-TAB/WebUserControls/cmp_ST_objCheck.ascx create mode 100644 MP-TAB/WebUserControls/cmp_ST_objCheck.ascx.cs create mode 100644 MP-TAB/WebUserControls/cmp_ST_objCheck.ascx.designer.cs create mode 100644 MP-TAB/WebUserControls/cmp_ST_objView.ascx create mode 100644 MP-TAB/WebUserControls/cmp_ST_objView.ascx.cs create mode 100644 MP-TAB/WebUserControls/cmp_ST_objView.ascx.designer.cs diff --git a/MP-TAB/MP-TAB.csproj b/MP-TAB/MP-TAB.csproj index f60ae373..baec53d9 100644 --- a/MP-TAB/MP-TAB.csproj +++ b/MP-TAB/MP-TAB.csproj @@ -660,6 +660,8 @@ + + @@ -958,6 +960,20 @@ cmp_ST_detail.ascx + + cmp_ST_objCheck.ascx + ASPXCodeBehind + + + cmp_ST_objCheck.ascx + + + cmp_ST_objView.ascx + ASPXCodeBehind + + + cmp_ST_objView.ascx + mod_checkHttps.ascx ASPXCodeBehind diff --git a/MP-TAB/WebUserControls/cmp_ST_detail.ascx b/MP-TAB/WebUserControls/cmp_ST_detail.ascx index 26fdd80d..f5184de8 100644 --- a/MP-TAB/WebUserControls/cmp_ST_detail.ascx +++ b/MP-TAB/WebUserControls/cmp_ST_detail.ascx @@ -1,28 +1,45 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_ST_detail.ascx.cs" Inherits="MoonProTablet.WebUserControls.cmp_ST_detail" %> +<%@ Register Src="~/WebUserControls/cmp_ST_objView.ascx" TagPrefix="uc1" TagName="cmp_ST_objView" %> - + +<%-- - <%-- - --%> - <%----%> + + + - <%----%> + - <%----%> - <%----%> + + - -rifare con repeater + modulo che traduce oggetto da tipo (testo, input, immagine...)
-completare con interazione campi richiesti!!!
-NB: campi richiesti devono prevedere check con valore in tab specifica istanze ODL +
--%> + + + +
+ +
+
+ +
+ +
+
+
+ +
+ completare con interazione campi richiesti!!!
+ NB: campi richiesti devono prevedere check con valore in tab specifica istanze ODL +
diff --git a/MP-TAB/WebUserControls/cmp_ST_detail.ascx.designer.cs b/MP-TAB/WebUserControls/cmp_ST_detail.ascx.designer.cs index c41283e0..51ccc490 100644 --- a/MP-TAB/WebUserControls/cmp_ST_detail.ascx.designer.cs +++ b/MP-TAB/WebUserControls/cmp_ST_detail.ascx.designer.cs @@ -15,13 +15,13 @@ namespace MoonProTablet.WebUserControls { /// - /// Controllo grView. + /// Controllo repDetail. /// /// /// Campo generato automaticamente. /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// - protected global::System.Web.UI.WebControls.GridView grView; + protected global::System.Web.UI.WebControls.Repeater repDetail; /// /// Controllo ods. diff --git a/MP-TAB/WebUserControls/cmp_ST_objCheck.ascx b/MP-TAB/WebUserControls/cmp_ST_objCheck.ascx new file mode 100644 index 00000000..d6d0f539 --- /dev/null +++ b/MP-TAB/WebUserControls/cmp_ST_objCheck.ascx @@ -0,0 +1 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_ST_objCheck.ascx.cs" Inherits="MoonProTablet.WebUserControls.cmp_ST_objCheck" %> diff --git a/MP-TAB/WebUserControls/cmp_ST_objCheck.ascx.cs b/MP-TAB/WebUserControls/cmp_ST_objCheck.ascx.cs new file mode 100644 index 00000000..0cfaaec3 --- /dev/null +++ b/MP-TAB/WebUserControls/cmp_ST_objCheck.ascx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace MoonProTablet.WebUserControls +{ + public partial class cmp_ST_objCheck : System.Web.UI.UserControl + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/MP-TAB/WebUserControls/cmp_ST_objCheck.ascx.designer.cs b/MP-TAB/WebUserControls/cmp_ST_objCheck.ascx.designer.cs new file mode 100644 index 00000000..1ff32f8f --- /dev/null +++ b/MP-TAB/WebUserControls/cmp_ST_objCheck.ascx.designer.cs @@ -0,0 +1,17 @@ +//------------------------------------------------------------------------------ +// +// Codice generato da uno strumento. +// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// +//------------------------------------------------------------------------------ + +namespace MoonProTablet.WebUserControls +{ + + + public partial class cmp_ST_objCheck + { + } +} diff --git a/MP-TAB/WebUserControls/cmp_ST_objView.ascx b/MP-TAB/WebUserControls/cmp_ST_objView.ascx new file mode 100644 index 00000000..b60fc713 --- /dev/null +++ b/MP-TAB/WebUserControls/cmp_ST_objView.ascx @@ -0,0 +1,16 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_ST_objView.ascx.cs" Inherits="MoonProTablet.WebUserControls.cmp_ST_objView" %> + + + + +
+
+ <%: hfLabel.Value %> +
+
+ <%: hfValue.Value %> +
+
+
+ +
\ No newline at end of file diff --git a/MP-TAB/WebUserControls/cmp_ST_objView.ascx.cs b/MP-TAB/WebUserControls/cmp_ST_objView.ascx.cs new file mode 100644 index 00000000..77bc0850 --- /dev/null +++ b/MP-TAB/WebUserControls/cmp_ST_objView.ascx.cs @@ -0,0 +1,70 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace MoonProTablet.WebUserControls +{ + public partial class cmp_ST_objView : MpTabControl + { + public string dataType + { + get + { + return hfType.Value.Trim(); + } + set + { + hfType.Value = value.Trim(); + } + } + public string dataLabel + { + get + { + return hfLabel.Value.Trim(); + } + set + { + hfLabel.Value = value.Trim(); + } + } + public string dataValue + { + get + { + return hfValue.Value.Trim(); + } + set + { + hfValue.Value = value.Trim(); + } + } + protected void Page_Load(object sender, EventArgs e) + { + fixDisplay(); + } + + private void fixDisplay() + { + divImg.Visible = false; + divTxt.Visible = false; + switch (dataType) + { + case "IMG": + divImg.Visible = true; + break; + + case "TXT": + divTxt.Visible = true; + break; + default: + divTxt.Visible = true; + break; + } + } + + } +} \ No newline at end of file diff --git a/MP-TAB/WebUserControls/cmp_ST_objView.ascx.designer.cs b/MP-TAB/WebUserControls/cmp_ST_objView.ascx.designer.cs new file mode 100644 index 00000000..c781b8c7 --- /dev/null +++ b/MP-TAB/WebUserControls/cmp_ST_objView.ascx.designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// Codice generato da uno strumento. +// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// +//------------------------------------------------------------------------------ + +namespace MoonProTablet.WebUserControls +{ + + + public partial class cmp_ST_objView + { + + /// + /// Controllo hfType. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.HiddenField hfType; + + /// + /// Controllo hfLabel. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.HiddenField hfLabel; + + /// + /// Controllo hfValue. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.HiddenField hfValue; + + /// + /// Controllo divTxt. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divTxt; + + /// + /// Controllo divImg. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divImg; + + /// + /// Controllo imgData. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.Image imgData; + } +}