diff --git a/XPS/mod_anagraficaStati.ascx b/XPS/mod_anagraficaStati.ascx index 9bfa0f6..6936c74 100644 --- a/XPS/mod_anagraficaStati.ascx +++ b/XPS/mod_anagraficaStati.ascx @@ -4,14 +4,16 @@ <%@ Register Src="mod_selettore_ajax.ascx" TagName="mod_selettore_ajax" TagPrefix="uc1" %> <%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %>
- +   +
- +   + @@ -129,8 +131,8 @@ - + @@ -145,4 +147,14 @@
- \ No newline at end of file + +
+ + + + + + + diff --git a/XPS/mod_anagraficaStati.ascx.cs b/XPS/mod_anagraficaStati.ascx.cs index 4cca8ee..965c47c 100644 --- a/XPS/mod_anagraficaStati.ascx.cs +++ b/XPS/mod_anagraficaStati.ascx.cs @@ -235,7 +235,17 @@ public partial class mod_anagraficaStati : ApplicationUserControl DataColumnCollection colonne = tabella.Columns; return colonne; } - + /// + /// traduco labels + /// + protected override void traduciObj() + { + base.traduciObj(); + lblMappe.Text = traduci("lblMappe"); + lblTipo.Text = traduci("lblTipo"); + btnShowClona.Text = traduci("btnShowClona"); + btnClonaStati.Text = traduci("btnClonaStati"); + } /// /// inizializzazione valori di default /// @@ -248,6 +258,7 @@ public partial class mod_anagraficaStati : ApplicationUserControl { Mod_filtroMappa.ods = odsMappa; Mod_filtroTipoObj.ods = odsTipoObj; + Mod_filtroTipoObjDest.ods = odsTipoObj; } } void Mod_filtro1_eh_selValore(object sender, EventArgs e) @@ -348,6 +359,49 @@ public partial class mod_anagraficaStati : ApplicationUserControl e.InputParameters["CodMappa"] = Mod_filtroMappa.valore; e.InputParameters["IdxTipoObj"] = Mod_filtroTipoObj.valore; } + /// + /// mostra pannello cloning + /// + /// + /// + protected void btnShowClona_Click(object sender, EventArgs e) + { + setClonaVisibility(); + } + private void setClonaVisibility() + { + if (pnlClona.Visible) + { + btnShowClona.Text = traduci("btnShowClona"); + } + else + { + btnShowClona.Text = traduci("btnHideClona"); + } + pnlClona.Visible = !pnlClona.Visible; + } + /// + /// chiamo stored di cloning stati... + /// + /// + /// + protected void btnClonaStati_Click(object sender, EventArgs e) + { + // verifico siano diverse le selezioni... + if (Mod_filtroTipoObj.valoreInt != Mod_filtroTipoObjDest.valoreInt) + { + DS_XPSTableAdapters.SP taSP = new DS_XPSTableAdapters.SP(); + taSP.sp_clonaStati(Mod_filtroMappa.valore, Mod_filtroTipoObj.valoreInt, Mod_filtroTipoObjDest.valoreInt); + lblWarning.Visible = false; + // nascondo... + setClonaVisibility(); + } + else + { + lblWarning.Text = traduci("erroreSelDest"); + lblWarning.Visible = true; + } + } #endregion } \ No newline at end of file diff --git a/db/SteamWare_XPS.zip b/db/SteamWare_XPS.zip index 1460a2d..abe7946 100644 Binary files a/db/SteamWare_XPS.zip and b/db/SteamWare_XPS.zip differ