mod_tipoGuasto.ascx
ASPXCodeBehind
@@ -1503,8 +1517,10 @@
+
+
diff --git a/Projects/WebGIM/GIM_site/WebUserControls/mod_SinonimiTag.ascx b/Projects/WebGIM/GIM_site/WebUserControls/mod_SinonimiTag.ascx
new file mode 100644
index 0000000..854bda9
--- /dev/null
+++ b/Projects/WebGIM/GIM_site/WebUserControls/mod_SinonimiTag.ascx
@@ -0,0 +1,80 @@
+<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_SinonimiTag.ascx.cs" Inherits="GIM_site.WebUserControls.mod_SinonimiTag" %>
+<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
+
+<%: traduci("GestioneSinonimi") %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%--
+
+
+
+
+
+
+
+
+
+
+
+
+ --%>
+
+ <%--
+
+ -->
+
+ --%>
+
+ <%--
+
+
+
+
+
+
+
+
+
+
+
+
+
+ --%>
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Projects/WebGIM/GIM_site/WebUserControls/mod_SinonimiTag.ascx.cs b/Projects/WebGIM/GIM_site/WebUserControls/mod_SinonimiTag.ascx.cs
new file mode 100644
index 0000000..ff874c6
--- /dev/null
+++ b/Projects/WebGIM/GIM_site/WebUserControls/mod_SinonimiTag.ascx.cs
@@ -0,0 +1,108 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using SteamWare;
+
+namespace GIM_site.WebUserControls
+{
+ public partial class mod_SinonimiTag : ApplicationUserControl
+ {
+ public event EventHandler eh_resetSelezione;
+ ///
+ /// evento dati associati a controllo
+ ///
+ ///
+ ///
+ protected void grView_DataBound(object sender, EventArgs e)
+ {
+ if (grView.Rows.Count > 0)
+ {
+ LinkButton lb;
+ // aggiorno gli headers
+ foreach (TableCell cella in grView.HeaderRow.Cells)
+ {
+ try
+ {
+ lb = (LinkButton)cella.Controls[0];
+ lb.Text = traduci(lb.Text);
+ }
+ catch
+ { }
+ }
+ int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1);
+ lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord);
+ }
+ else
+ {
+ lblNumRec.Text = "";
+ }
+ }
+ ///
+ /// reset delle selezioni
+ ///
+ ///
+ ///
+ protected void btnReset_Click(object sender, EventArgs e)
+ {
+ resetSelezione();
+ }
+ ///
+ /// resetta la selezione dei valori in caso di modifiche su altri controlli
+ ///
+ public void resetSelezione()
+ {
+ grView.SelectedIndex = -1;
+ grView.DataBind();
+ if (eh_resetSelezione != null)
+ {
+ eh_resetSelezione(this, new EventArgs());
+ }
+ }
+ ///
+ /// seleziono valore in editing...
+ ///
+ ///
+ ///
+ protected void grView_RowEditing(object sender, GridViewEditEventArgs e)
+ {
+ // seleziono la riga corrente...
+ grView.SelectedIndex = e.NewEditIndex;
+ }
+ ///
+ /// gestione evento inserimento nuovo record standard (se ZERO presenti)
+ ///
+ ///
+ ///
+ protected void btnNewFromEmpty_Click(object sender, EventArgs e)
+ {
+ // reset selezione...
+ resetSelezione();
+ // i primi valori ("0") di default sono "ND"... li inserisco come standard...
+ TA_app.obj.taAnagTags.Insert(memLayer.ML.confReadString("newTagCode"), memLayer.ML.confReadString("newTagClass"), memLayer.ML.confReadString("newTagDescr"));
+ grView.DataBind();
+ }
+ ///
+ /// verifica se il tag abbia child (= associazioni a macchine o items...)
+ ///
+ ///
+ public bool hasChild(object _TagCode)
+ {
+ bool answ = false;
+ int trovati = 0;
+ string TagCode = "";
+ try
+ {
+ TagCode = _TagCode.ToString();
+ trovati += TA_app.obj.taTag2Item.getByTag(TagCode).Rows.Count;
+ trovati += TA_app.obj.tatag2Macc.getByTag(TagCode).Rows.Count;
+ answ = (trovati > 0);
+ }
+ catch
+ { }
+ return answ;
+ }
+ }
+}
\ No newline at end of file
diff --git a/Projects/WebGIM/GIM_site/WebUserControls/mod_SinonimiTag.ascx.designer.cs b/Projects/WebGIM/GIM_site/WebUserControls/mod_SinonimiTag.ascx.designer.cs
new file mode 100644
index 0000000..feede5b
--- /dev/null
+++ b/Projects/WebGIM/GIM_site/WebUserControls/mod_SinonimiTag.ascx.designer.cs
@@ -0,0 +1,42 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace GIM_site.WebUserControls {
+
+
+ public partial class mod_SinonimiTag {
+
+ ///
+ /// grView control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.GridView grView;
+
+ ///
+ /// lblNumRec control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblNumRec;
+
+ ///
+ /// ods control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.ObjectDataSource ods;
+ }
+}
diff --git a/Projects/WebGIM/GIM_site/WebUserControls/mod_anagTags.ascx b/Projects/WebGIM/GIM_site/WebUserControls/mod_anagTags.ascx
index b87078a..d4b2790 100644
--- a/Projects/WebGIM/GIM_site/WebUserControls/mod_anagTags.ascx
+++ b/Projects/WebGIM/GIM_site/WebUserControls/mod_anagTags.ascx
@@ -1,95 +1,87 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_anagTags.ascx.cs" Inherits="GIM_site.WebUserControls.mod_anagTags" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
-
+<%: traduci("GestioneTags") %>
-
-
FARE GESTIONE SINONIMI
- in modo da ricodificare i tags (salvando l'operazione in tab sinonimi x successivi import e però spostando i collegamenti verso items e macchine ai tags "raggruppati")
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
diff --git a/Projects/WebGIM/GIM_site/WebUserControls/mod_anagTags.ascx.cs b/Projects/WebGIM/GIM_site/WebUserControls/mod_anagTags.ascx.cs
index 6fe68da..65d7295 100644
--- a/Projects/WebGIM/GIM_site/WebUserControls/mod_anagTags.ascx.cs
+++ b/Projects/WebGIM/GIM_site/WebUserControls/mod_anagTags.ascx.cs
@@ -10,50 +10,6 @@ namespace GIM_site.WebUserControls
{
public partial class mod_anagTags : ApplicationUserControl
{
-
- protected override void Page_Load(object sender, EventArgs e)
- {
- base.Page_Load(sender, e);
- if (!Page.IsPostBack)
- {
- setMode(false);
- }
- }
-
- public bool _showRicodifica
- {
- get
- {
- return memLayer.ML.BoolSessionObj("showRicodifica");
- }
- set
- {
- memLayer.ML.setSessionVal("showRicodifica", value);
- }
- }
- ///
- /// imposta modalità controllo
- ///
- ///
- private void setMode(bool showRicodifica)
- {
- _showRicodifica = showRicodifica;
- string txtBtn = "";
- if (showRicodifica)
- {
- txtBtn = "MostraTags";
- }
- else
- {
- txtBtn = "MostraRicodifica";
- }
- // traduco buttons!
- btnMode.Text = traduci(txtBtn);
- // sistemo visibilità tags
- divRicodifica.Visible = showRicodifica;
- divTags.Visible = !showRicodifica;
- }
-
public event EventHandler eh_resetSelezione;
///
/// evento dati associati a controllo
@@ -149,10 +105,5 @@ namespace GIM_site.WebUserControls
return answ;
}
- protected void btnMode_Click(object sender, EventArgs e)
- {
- // inverto modalità ricodifica (scambio si/no)
- setMode(!_showRicodifica);
- }
}
}
\ No newline at end of file
diff --git a/Projects/WebGIM/GIM_site/WebUserControls/mod_anagTags.ascx.designer.cs b/Projects/WebGIM/GIM_site/WebUserControls/mod_anagTags.ascx.designer.cs
index 2e8a2b1..52c90a6 100644
--- a/Projects/WebGIM/GIM_site/WebUserControls/mod_anagTags.ascx.designer.cs
+++ b/Projects/WebGIM/GIM_site/WebUserControls/mod_anagTags.ascx.designer.cs
@@ -12,33 +12,6 @@ namespace GIM_site.WebUserControls {
public partial class mod_anagTags {
- ///
- /// btnMode control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Button btnMode;
-
- ///
- /// divRicodifica control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.HtmlControls.HtmlGenericControl divRicodifica;
-
- ///
- /// divTags control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.HtmlControls.HtmlGenericControl divTags;
-
///
/// grView control.
///
diff --git a/Projects/WebGIM/GIM_site/WebUserControls/mod_tags.ascx b/Projects/WebGIM/GIM_site/WebUserControls/mod_tags.ascx
new file mode 100644
index 0000000..634e903
--- /dev/null
+++ b/Projects/WebGIM/GIM_site/WebUserControls/mod_tags.ascx
@@ -0,0 +1,15 @@
+<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_tags.ascx.cs" Inherits="GIM_site.WebUserControls.mod_tags" %>
+<%@ Register Src="~/WebUserControls/mod_anagTags.ascx" TagPrefix="uc1" TagName="mod_anagTags" %>
+<%@ Register Src="~/WebUserControls/mod_SinonimiTag.ascx" TagPrefix="uc1" TagName="mod_SinonimiTag" %>
+
+
+
+
+
+
+
+
+
+
diff --git a/Projects/WebGIM/GIM_site/WebUserControls/mod_tags.ascx.cs b/Projects/WebGIM/GIM_site/WebUserControls/mod_tags.ascx.cs
new file mode 100644
index 0000000..0f39e24
--- /dev/null
+++ b/Projects/WebGIM/GIM_site/WebUserControls/mod_tags.ascx.cs
@@ -0,0 +1,61 @@
+using SteamWare;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace GIM_site.WebUserControls
+{
+ public partial class mod_tags : SteamWare.UserControl
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!Page.IsPostBack)
+ {
+ setMode(false);
+ }
+ }
+
+ public bool _showRicodifica
+ {
+ get
+ {
+ return memLayer.ML.BoolSessionObj("showRicodifica");
+ }
+ set
+ {
+ memLayer.ML.setSessionVal("showRicodifica", value);
+ }
+ }
+ ///
+ /// imposta modalità controllo
+ ///
+ ///
+ private void setMode(bool showRicodifica)
+ {
+ _showRicodifica = showRicodifica;
+ string txtBtn = "";
+ if (showRicodifica)
+ {
+ txtBtn = "MostraTags";
+ }
+ else
+ {
+ txtBtn = "MostraRicodifica";
+ }
+ // traduco buttons!
+ btnMode.Text = traduci(txtBtn);
+ // sistemo visibilità tags
+ divRicodifica.Visible = showRicodifica;
+ divTags.Visible = !showRicodifica;
+ }
+
+ protected void btnMode_Click(object sender, EventArgs e)
+ {
+ // inverto modalità ricodifica (scambio si/no)
+ setMode(!_showRicodifica);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Projects/WebGIM/GIM_site/WebUserControls/mod_tags.ascx.designer.cs b/Projects/WebGIM/GIM_site/WebUserControls/mod_tags.ascx.designer.cs
new file mode 100644
index 0000000..cfb61c4
--- /dev/null
+++ b/Projects/WebGIM/GIM_site/WebUserControls/mod_tags.ascx.designer.cs
@@ -0,0 +1,60 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace GIM_site.WebUserControls {
+
+
+ public partial class mod_tags {
+
+ ///
+ /// btnMode control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Button btnMode;
+
+ ///
+ /// divRicodifica control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlGenericControl divRicodifica;
+
+ ///
+ /// mod_SinonimiTag control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::GIM_site.WebUserControls.mod_SinonimiTag mod_SinonimiTag;
+
+ ///
+ /// divTags control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlGenericControl divTags;
+
+ ///
+ /// mod_anagTags control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::GIM_site.WebUserControls.mod_anagTags mod_anagTags;
+ }
+}
diff --git a/Projects/WebGIM/GIM_site/bin/GIM_data.dll b/Projects/WebGIM/GIM_site/bin/GIM_data.dll
index 3ac89b6..08316db 100644
Binary files a/Projects/WebGIM/GIM_site/bin/GIM_data.dll and b/Projects/WebGIM/GIM_site/bin/GIM_data.dll differ
diff --git a/Projects/WebGIM/GIM_site/bin/GIM_site.dll b/Projects/WebGIM/GIM_site/bin/GIM_site.dll
index 333e1d6..09676f5 100644
Binary files a/Projects/WebGIM/GIM_site/bin/GIM_site.dll and b/Projects/WebGIM/GIM_site/bin/GIM_site.dll differ
diff --git a/Projects/WebGIM/GIM_site/sql/GIM_1.6.256.sql b/Projects/WebGIM/GIM_site/sql/GIM_1.6.256.sql
index 9f5d045..cfaa2a5 100644
--- a/Projects/WebGIM/GIM_site/sql/GIM_1.6.256.sql
+++ b/Projects/WebGIM/GIM_site/sql/GIM_1.6.256.sql
@@ -47,4 +47,6 @@ exec voc.stp_insNewLemma 'DescrLocazione', 'Locazione'
exec voc.stp_insNewLemma 'dtLastUpd', 'Last Update'
exec voc.stp_insNewLemma 'MostraTags', 'Mostra Tags'
exec voc.stp_insNewLemma 'MostraRicodifica', 'Mostra Ricodifica'
+exec voc.stp_insNewLemma 'GestioneTags', 'Elenco Etichette'
+exec voc.stp_insNewLemma 'GestioneSinonimi', 'Gestione ricodifica Etichette'