diff --git a/Projects/WebGIM/GIM_data/bin/GIM_data.dll b/Projects/WebGIM/GIM_data/bin/GIM_data.dll
index 6baebbd..679f603 100644
Binary files a/Projects/WebGIM/GIM_data/bin/GIM_data.dll and b/Projects/WebGIM/GIM_data/bin/GIM_data.dll differ
diff --git a/Projects/WebGIM/GIM_data/bin/SteamWare.dll b/Projects/WebGIM/GIM_data/bin/SteamWare.dll
index 29f87fb..f238152 100644
Binary files a/Projects/WebGIM/GIM_data/bin/SteamWare.dll and b/Projects/WebGIM/GIM_data/bin/SteamWare.dll differ
diff --git a/Projects/WebGIM/GIM_site/WebUserControls/mod_tag2Macc.ascx b/Projects/WebGIM/GIM_site/WebUserControls/mod_tag2Macc.ascx
index fa4e421..1062b59 100644
--- a/Projects/WebGIM/GIM_site/WebUserControls/mod_tag2Macc.ascx
+++ b/Projects/WebGIM/GIM_site/WebUserControls/mod_tag2Macc.ascx
@@ -54,33 +54,26 @@
<%: traduci("addNewTag2Macc") %>
-
-
-
-
-
diff --git a/Projects/WebGIM/GIM_site/WebUserControls/mod_tag2Macc.ascx.cs b/Projects/WebGIM/GIM_site/WebUserControls/mod_tag2Macc.ascx.cs
index d3e3a45..eedf423 100644
--- a/Projects/WebGIM/GIM_site/WebUserControls/mod_tag2Macc.ascx.cs
+++ b/Projects/WebGIM/GIM_site/WebUserControls/mod_tag2Macc.ascx.cs
@@ -308,20 +308,23 @@ namespace GIM_site.WebUserControls
protected void lbtAddNew_Click(object sender, EventArgs e)
{
- // aggiunge tag ad Macc selezionato...
+ // aggiunge tag a TUTTE le macchine selezionate...
int idxMacc = 0;
- try
+ // spazzo TUTTE le righe del controllo...
+ foreach (ListItem riga in listMacchine.Items)
{
- idxMacc = Convert.ToInt32(ddlMacc.SelectedValue);
- }
- catch
- { }
- if (idxMacc > 0)
- {
- TA_app.obj.taTag2Macc.Insert(hfTagCode.Value, idxMacc);
- grViewMacc.DataBind();
- ddlMacc.DataBind();
+ // se รจ selezionata creo riga anche x lei...
+ if (riga.Selected)
+ {
+ idxMacc = Convert.ToInt32(riga.Value);
+ if (idxMacc > 0)
+ {
+ TA_app.obj.taTag2Macc.Insert(hfTagCode.Value, idxMacc);
+ }
+ }
}
+ grViewMacc.DataBind();
+ listMacchine.DataBind();
}
protected void grViewTags_RowDeleted(object sender, GridViewDeletedEventArgs e)
@@ -330,7 +333,7 @@ namespace GIM_site.WebUserControls
protected void grViewMacc_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
- ddlMacc.DataBind();
+ listMacchine.DataBind();
}
protected void btnShowHideAdd_Click(object sender, EventArgs e)
diff --git a/Projects/WebGIM/GIM_site/WebUserControls/mod_tag2Macc.ascx.designer.cs b/Projects/WebGIM/GIM_site/WebUserControls/mod_tag2Macc.ascx.designer.cs
index 36b964c..34bbedb 100644
--- a/Projects/WebGIM/GIM_site/WebUserControls/mod_tag2Macc.ascx.designer.cs
+++ b/Projects/WebGIM/GIM_site/WebUserControls/mod_tag2Macc.ascx.designer.cs
@@ -102,24 +102,6 @@ namespace GIM_site.WebUserControls {
///
protected global::System.Web.UI.WebControls.LinkButton lbtAddNew;
- ///
- /// ddlMacc control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.DropDownList ddlMacc;
-
- ///
- /// odsMaccAvail control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.ObjectDataSource odsMaccAvail;
-
///
/// txtCercaMacchine control.
///
diff --git a/Projects/WebGIM/GIM_site/bin/GIM_data.dll b/Projects/WebGIM/GIM_site/bin/GIM_data.dll
index 6baebbd..679f603 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 9d8c7e1..dddb058 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/bin/SteamWare.dll b/Projects/WebGIM/GIM_site/bin/SteamWare.dll
index 29f87fb..f238152 100644
Binary files a/Projects/WebGIM/GIM_site/bin/SteamWare.dll and b/Projects/WebGIM/GIM_site/bin/SteamWare.dll differ