diff --git a/GMW.suo b/GMW.suo
index ac2dbe16..f95455cf 100644
Binary files a/GMW.suo and b/GMW.suo differ
diff --git a/GMW/GMW.csproj b/GMW/GMW.csproj
index e45605e4..abc14420 100644
--- a/GMW/GMW.csproj
+++ b/GMW/GMW.csproj
@@ -141,6 +141,8 @@
3.5
+
+
3.5
@@ -180,6 +182,7 @@
+
@@ -1157,6 +1160,8 @@
+
+
@@ -1292,11 +1297,8 @@
-
-
-
10.0
diff --git a/GMW/WebUserControls/mod_manSAO.ascx b/GMW/WebUserControls/mod_manSAO.ascx
index 293041e5..cf07d1ca 100644
--- a/GMW/WebUserControls/mod_manSAO.ascx
+++ b/GMW/WebUserControls/mod_manSAO.ascx
@@ -13,7 +13,7 @@
-<%--
diff --git a/GMW/WebUserControls/mod_manSAO.ascx.cs b/GMW/WebUserControls/mod_manSAO.ascx.cs
index 895596b0..19cfa0f3 100644
--- a/GMW/WebUserControls/mod_manSAO.ascx.cs
+++ b/GMW/WebUserControls/mod_manSAO.ascx.cs
@@ -41,6 +41,111 @@ namespace GMW.WebUserControls
memLayer.ML.setSessionVal("udcSelSAO", value);
}
}
+ ///
+ /// definisce se sia possibile cambiare le postazioni
+ ///
+ public bool canSelPost
+ {
+ get
+ {
+ return filtroPostazione.changeSelEnabled;
+ }
+ set
+ {
+ filtroPostazione.changeSelEnabled = value;
+ }
+ }
+ ///
+ /// calcola postazione corrente (ip, name, printer)
+ ///
+ private void calcolaPostazione()
+ {
+ postazione_IP = Request.UserHostName;
+ postazione_name = dnsUtils.DetermineCompName(postazione_IP);
+ // cerco stampante x postazione
+ postazione_printer = "n.d.";
+ try
+ {
+ DS_Applicazione.ElencoPostazioniDataTable tabPost = DataProxy.obj.taElPost.getByCod(postazione_name);
+ if (tabPost.Rows.Count > 0)
+ {
+ postazione_printer = tabPost[0].stampante;
+ }
+ else
+ {
+ tabPost = DataProxy.obj.taElPost.getByCod("default");
+ postazione_printer = tabPost[0].stampante;
+ }
+ }
+ catch
+ { }
+ }
+ ///
+ /// udc da stampare
+ ///
+ protected string udcReq
+ {
+ get
+ {
+ return memLayer.ML.StringSessionObj("udcSelSAO");
+ }
+ }
+ ///
+ /// indica ip della postazione corrente
+ ///
+ protected string postazione_IP
+ {
+ get
+ {
+ return memLayer.ML.StringSessionObj("postazione_IP");
+ }
+ set
+ {
+ memLayer.ML.setSessionVal("postazione_IP", value);
+ }
+ }
+ ///
+ /// indica name della postazione corrente
+ ///
+ protected string postazione_name
+ {
+ get
+ {
+ return memLayer.ML.StringSessionObj("postazione_name");
+ }
+ set
+ {
+ memLayer.ML.setSessionVal("postazione_name", value);
+ }
+ }
+ ///
+ /// indica stampante associata alla postazione corrente
+ ///
+ protected string postazione_printer
+ {
+ get
+ {
+ return memLayer.ML.StringSessionObj("postazione_printer");
+ }
+ set
+ {
+ memLayer.ML.setSessionVal("postazione_printer", value);
+ }
+ }
+ ///
+ /// idxPosizione abilitata x cancellazione
+ ///
+ public int idxPosizione2del
+ {
+ get
+ {
+ return memLayer.ML.IntSessionObj(string.Format("idxPosizione_{0}", this.ID));
+ }
+ set
+ {
+ memLayer.ML.setSessionVal(string.Format("idxPosizione_{0}", this.ID), value);
+ }
+ }
#endregion
@@ -87,7 +192,7 @@ namespace GMW.WebUserControls
#endregion
- #region controllo visualizzazione dati
+ #region controlli ed utility x visualizzazione dati
///
/// ssitema visualizzazione dal filtraggi
@@ -135,35 +240,6 @@ namespace GMW.WebUserControls
aggiornaElencoRighe();
#endif
}
-
- #endregion
-
-#if false
- ///
- /// gestione evento selezione
- ///
- ///
- ///
- public void filtroPostazione_eh_selValore(object sender, EventArgs e)
- {
- checkFixOds();
- //postazione_name = filtroPostazione.valore;
- }
- ///
- /// sistema visibilità/abilitazione buttons
- ///
- private void setBtnState()
- {
- btnElimina.Visible = memLayer.ML.confReadBool("userCanDelUdc");
- bool abilita = false;
- if (idxEvento > 0 && udcSel != "")
- {
- abilita = true;
- }
- btnStampa.Enabled = abilita;
- btnElimina.Enabled = abilita;
- }
-
///
/// restituisce url immagine da cod azione
///
@@ -181,13 +257,18 @@ namespace GMW.WebUserControls
return answ;
}
///
- /// reset della selezione
+ /// sistema visibilità/abilitazione buttons
///
- ///
- ///
- protected void btnReset_Click(object sender, EventArgs e)
+ private void setBtnState()
{
- resetSelezione();
+ btnElimina.Visible = memLayer.ML.confReadBool("userCanDelUdc");
+ bool abilita = false;
+ if (idxEvento > 0 && udcSel != "")
+ {
+ abilita = true;
+ }
+ btnStampa.Enabled = abilita;
+ btnElimina.Enabled = abilita;
}
///
/// resetta la selezione dei valori in caso di modifiche su altri controlli
@@ -201,41 +282,6 @@ namespace GMW.WebUserControls
setBtnState();
}
///
- /// gestione evento select
- ///
- ///
- ///
- protected void grView_SelectedIndexChanged(object sender, EventArgs e)
- {
- // salvo idxEvento x abilitare buttons
- idxEvento = Convert.ToInt32(grView.SelectedDataKey["idxEvento"]);
- // salvo UDC x reprint
- string udc = "";
- try
- {
- udc = MagClass.magazzino.taSAO.getByIdxEvento(idxEvento)[0].UDC;
- }
- catch
- { }
- if (udc != "")
- {
- // verifico UDC valido (non cancellato!!!)
- if (MagClass.magazzino.checkUDC(udc))
- {
- udcSel = udc;
- }
- else
- {
- udcSel = "";
- }
- }
- else
- {
- udcSel = "";
- }
- setBtnState();
- }
- ///
/// forza update controllo
///
public void doUpdate()
@@ -244,100 +290,11 @@ namespace GMW.WebUserControls
memLayer.ML.setSessionVal("dataToPost", DateTime.Now.AddDays(1));
grView.DataBind();
}
-
- ///
- /// idxPosizione abilitata x cancellazione
- ///
- public int idxPosizione2del
- {
- get
- {
- return memLayer.ML.IntSessionObj(string.Format("idxPosizione_{0}", this.ID));
- }
- set
- {
- memLayer.ML.setSessionVal(string.Format("idxPosizione_{0}", this.ID), value);
- }
- }
-
- ///
- /// udc da stampare
- ///
- protected string udcReq
- {
- get
- {
- return memLayer.ML.StringSessionObj("udcSelSAO");
- }
- }
- ///
- /// indica ip della postazione corrente
- ///
- protected string postazione_IP
- {
- get
- {
- return memLayer.ML.StringSessionObj("postazione_IP");
- }
- set
- {
- memLayer.ML.setSessionVal("postazione_IP", value);
- }
- }
- ///
- /// indica name della postazione corrente
- ///
- protected string postazione_name
- {
- get
- {
- return memLayer.ML.StringSessionObj("postazione_name");
- }
- set
- {
- memLayer.ML.setSessionVal("postazione_name", value);
- }
- }
- ///
- /// calcola postazione corrente (ip, name, printer)
- ///
- private void calcolaPostazione()
- {
- postazione_IP = Request.UserHostName;
- postazione_name = dnsUtils.DetermineCompName(postazione_IP);
- // cerco stampante x postazione
- postazione_printer = "n.d.";
- try
- {
- DS_Applicazione.ElencoPostazioniDataTable tabPost = DataProxy.obj.taElPost.getByCod(postazione_name);
- if (tabPost.Rows.Count > 0)
- {
- postazione_printer = tabPost[0].stampante;
- }
- else
- {
- tabPost = DataProxy.obj.taElPost.getByCod("default");
- postazione_printer = tabPost[0].stampante;
- }
- }
- catch
- { }
- }
- ///
- /// indica stampante associata alla postazione corrente
- ///
- protected string postazione_printer
- {
- get
- {
- return memLayer.ML.StringSessionObj("postazione_printer");
- }
- set
- {
- memLayer.ML.setSessionVal("postazione_printer", value);
- }
- }
-#endif
+
+ #endregion
+
+ #region controlli interazione (buttons, gridviews)
+
///
/// richiede stampa
///
@@ -410,18 +367,66 @@ namespace GMW.WebUserControls
#endif
}
///
- /// definisce se sia possibile cambiare le postazioni
+ /// reset della selezione
///
- public bool canSelPost
+ ///
+ ///
+ protected void btnReset_Click(object sender, EventArgs e)
{
- get
- {
- return filtroPostazione.changeSelEnabled;
- }
- set
- {
- filtroPostazione.changeSelEnabled = value;
- }
+#if false
+ resetSelezione();
+#endif
}
+ ///
+ /// gestione evento select
+ ///
+ ///
+ ///
+ protected void grView_SelectedIndexChanged(object sender, EventArgs e)
+ {
+#if false
+ // salvo idxEvento x abilitare buttons
+ idxEvento = Convert.ToInt32(grView.SelectedDataKey["idxEvento"]);
+ // salvo UDC x reprint
+ string udc = "";
+ try
+ {
+ udc = MagClass.magazzino.taSAO.getByIdxEvento(idxEvento)[0].UDC;
+ }
+ catch
+ { }
+ if (udc != "")
+ {
+ // verifico UDC valido (non cancellato!!!)
+ if (MagClass.magazzino.checkUDC(udc))
+ {
+ udcSel = udc;
+ }
+ else
+ {
+ udcSel = "";
+ }
+ }
+ else
+ {
+ udcSel = "";
+ }
+ setBtnState();
+#endif
+ }
+ ///
+ /// gestione evento selezione
+ ///
+ ///
+ ///
+ public void filtroPostazione_eh_selValore(object sender, EventArgs e)
+ {
+ checkFixOds();
+#if false
+ postazione_name = filtroPostazione.valore;
+#endif
+ }
+
+ #endregion
}
}
\ No newline at end of file
diff --git a/GMW/WebUserControls/mod_manSAO.ascx.designer.cs b/GMW/WebUserControls/mod_manSAO.ascx.designer.cs
index c8fc719b..5ef72dfc 100644
--- a/GMW/WebUserControls/mod_manSAO.ascx.designer.cs
+++ b/GMW/WebUserControls/mod_manSAO.ascx.designer.cs
@@ -47,5 +47,23 @@ namespace GMW.WebUserControls {
/// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Button btnElimina;
+
+ ///
+ /// 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;
+
+ ///
+ /// odsSAO control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.ObjectDataSource odsSAO;
}
}
diff --git a/GMW/bin/GMW.dll b/GMW/bin/GMW.dll
index 91de660e..0f71652b 100644
Binary files a/GMW/bin/GMW.dll and b/GMW/bin/GMW.dll differ
diff --git a/GMW/bin/GMW_data.dll b/GMW/bin/GMW_data.dll
index f667a1ef..6a94c8bc 100644
Binary files a/GMW/bin/GMW_data.dll and b/GMW/bin/GMW_data.dll differ
diff --git a/GMW/bin/SteamWare.dll b/GMW/bin/SteamWare.dll
index 4bca5ac8..7d917a51 100644
Binary files a/GMW/bin/SteamWare.dll and b/GMW/bin/SteamWare.dll differ