- AAA
+
<%: traduci("StatoCollaudi") %>
diff --git a/CMS_SC/StatoDossiers.aspx.cs b/CMS_SC/StatoDossiers.aspx.cs
index 5c44580..51de33e 100644
--- a/CMS_SC/StatoDossiers.aspx.cs
+++ b/CMS_SC/StatoDossiers.aspx.cs
@@ -22,7 +22,7 @@ namespace CMS_SC
{
((Bootstrap)this.Master).showSearch = true;
mod_righePag.numRowPag = 20;
- mod_elencoSchedeDossier.pageSize = mod_righePag.numRowPag;
+ mod_StatoCollaudi.pageSize = mod_righePag.numRowPag;
}
mod_righePag.eh_newNum += mod_righePag_eh_newNum;
mod_elencoDossiers.eh_selezioneValore += mod_elencoDossiers_eh_selezioneValore;
@@ -35,7 +35,7 @@ namespace CMS_SC
void mod_elencoDossiers_eh_selezioneValore(object sender, EventArgs e)
{
- mod_elencoSchedeDossier.idxDossier = mod_elencoDossiers.idxDossier.ToString();
+ mod_StatoCollaudi.idxDossier = mod_elencoDossiers.idxDossier.ToString();
}
///
@@ -57,7 +57,7 @@ namespace CMS_SC
void mod_righePag_eh_newNum(object sender, EventArgs e)
{
- mod_elencoSchedeDossier.pageSize = mod_righePag.numRowPag;
+ mod_StatoCollaudi.pageSize = mod_righePag.numRowPag;
}
///
@@ -70,7 +70,7 @@ namespace CMS_SC
// inserisco tutte le schede da template x tutte le fasi indicate nella struttura di setup...
DtProxy.man.taSCM.insMisFasiMissing(mod_elencoDossiers.idxDossier);
mod_elencoDossiers.doUpdate();
- mod_elencoSchedeDossier.doUpdate();
+ mod_StatoCollaudi.doUpdate();
}
}
}
\ No newline at end of file
diff --git a/CMS_SC/StatoDossiers.aspx.designer.cs b/CMS_SC/StatoDossiers.aspx.designer.cs
index 66822ba..0bc0d37 100644
--- a/CMS_SC/StatoDossiers.aspx.designer.cs
+++ b/CMS_SC/StatoDossiers.aspx.designer.cs
@@ -31,13 +31,13 @@ namespace CMS_SC {
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divDetail;
///
- /// mod_elencoSchedeDossier control.
+ /// mod_StatoCollaudi control.
///
///
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
///
- protected global::CMS_SC.WebUserControls.mod_elencoSchedeDossier mod_elencoSchedeDossier;
+ protected global::CMS_SC.WebUserControls.mod_StatoCollaudi mod_StatoCollaudi;
///
/// mod_righePag control.
diff --git a/CMS_SC/WebUserControls/mod_StatoCollaudi.ascx b/CMS_SC/WebUserControls/mod_StatoCollaudi.ascx
new file mode 100644
index 0000000..e53a681
--- /dev/null
+++ b/CMS_SC/WebUserControls/mod_StatoCollaudi.ascx
@@ -0,0 +1,69 @@
+<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_StatoCollaudi.ascx.cs" Inherits="CMS_SC.WebUserControls.mod_StatoCollaudi" %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%# traduci("moveMis") %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/CMS_SC/WebUserControls/mod_StatoCollaudi.ascx.cs b/CMS_SC/WebUserControls/mod_StatoCollaudi.ascx.cs
new file mode 100644
index 0000000..c67543a
--- /dev/null
+++ b/CMS_SC/WebUserControls/mod_StatoCollaudi.ascx.cs
@@ -0,0 +1,151 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using CMS_SC_Data;
+using SteamWare;
+
+namespace CMS_SC.WebUserControls
+{
+ public partial class mod_StatoCollaudi : SteamWare.UserControl
+ {
+ ///
+ /// selezione valore in DettScheda
+ ///
+ public event EventHandler eh_selezioneValore;
+ ///
+ /// sollevo evento selezione
+ ///
+ protected void raiseEvent()
+ {
+ // sollevo evento nuovo valore...
+ if (eh_selezioneValore != null)
+ {
+ eh_selezioneValore(this, new EventArgs());
+ }
+ }
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+ ///
+ /// dimensione pagina grid view
+ ///
+ public int pageSize
+ {
+ get
+ {
+ return grView.PageSize;
+ }
+ set
+ {
+ grView.PageSize = value;
+ }
+ }
+ ///
+ /// dossier selezionato
+ ///
+ public string idxDossier
+ {
+ get
+ {
+ return hfIdxDossier.Value;
+ }
+ set
+ {
+ hfIdxDossier.Value = value;
+ grView.DataBind();
+ }
+ }
+ public void doUpdate()
+ {
+ grView.DataBind();
+ }
+ ///
+ /// selezione scheda...
+ ///
+ ///
+ ///
+ protected void grView_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ // verifico se ho un argomento di tipo moveUp / moveDown... quale comando?
+ string _comando = "";
+ string CodSchedaVersNum = "";
+ if (SteamWare.memLayer.ML.isInSessionObject("nextObjCommand"))
+ {
+ _comando = SteamWare.memLayer.ML.StringSessionObj("nextObjCommand");
+ SteamWare.memLayer.ML.emptySessionVal("nextObjCommand");
+ }
+ if (_comando != "")
+ {
+ CodSchedaVersNum = string.Format("{0}.{1}.{2}", grView.SelectedDataKey["CodScheda"], grView.SelectedDataKey["Vers"], grView.SelectedDataKey["NumScheda"]);
+ // SE c'era comando eseguo move...
+ switch (_comando)
+ {
+ case "moveUp":
+ case "moveDown":
+ DtProxy.man.taSCM.moveUpDown(_comando, Convert.ToInt32(idxDossier), CodSchedaVersNum);
+ break;
+ //case "clone":
+ // DtProxy.man.taDS.clone(memLayer.ML.QSS("CodSchedaVers"), grView.SelectedDataKey["CodMisura"].ToString());
+ // break;
+ default:
+ break;
+ }
+ resetSelezione();
+ }
+ else
+ {
+ raiseEvent();
+ }
+ }
+ protected void btnReset_Click(object sender, EventArgs e)
+ {
+ resetSelezione();
+ }
+ ///
+ /// resetto selezione
+ ///
+ private void resetSelezione()
+ {
+ grView.SelectedIndex = -1;
+ grView.DataBind();
+ raiseEvent();
+ }
+ ///
+ /// determina visibilità frecce spostamento
+ ///
+ /// direzione: UP / DOWN
+ /// Ordinale
+ ///
+ public bool arrowVisible(object _direction, object _Ordinale)
+ {
+ bool answ = false;
+ string direction = _direction.ToString();
+ int Ordinale = Convert.ToInt32(_Ordinale.ToString());
+ switch (direction)
+ {
+ case "UP":
+ answ = Ordinale > 1;
+ break;
+ case "DOWN":
+ answ = Ordinale < DtProxy.man.taSCM.getByDossier(Convert.ToInt32(idxDossier)).Rows.Count;
+ break;
+ default:
+ break;
+ }
+ return answ;
+ }
+ ///
+ /// salvo in session il prox comando
+ ///
+ ///
+ ///
+ protected void lb_Click(object sender, EventArgs e)
+ {
+ SteamWare.memLayer.ML.setSessionVal("nextObjCommand", ((LinkButton)sender).CommandArgument);
+ }
+ }
+}
\ No newline at end of file
diff --git a/CMS_SC/WebUserControls/mod_StatoCollaudi.ascx.designer.cs b/CMS_SC/WebUserControls/mod_StatoCollaudi.ascx.designer.cs
new file mode 100644
index 0000000..d055cd4
--- /dev/null
+++ b/CMS_SC/WebUserControls/mod_StatoCollaudi.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 CMS_SC.WebUserControls {
+
+
+ public partial class mod_StatoCollaudi {
+
+ ///
+ /// 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;
+
+ ///
+ /// 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;
+
+ ///
+ /// hfIdxDossier control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.HiddenField hfIdxDossier;
+ }
+}
diff --git a/CMS_SC/bin/CMS-SC-Data.dll b/CMS_SC/bin/CMS-SC-Data.dll
index 1be0e05..f64d7d2 100644
Binary files a/CMS_SC/bin/CMS-SC-Data.dll and b/CMS_SC/bin/CMS-SC-Data.dll differ
diff --git a/CMS_SC/bin/CMS_SC.dll b/CMS_SC/bin/CMS_SC.dll
index 279dd3e..c04a785 100644
Binary files a/CMS_SC/bin/CMS_SC.dll and b/CMS_SC/bin/CMS_SC.dll differ
diff --git a/CMS_SC/bin/SteamWare.dll b/CMS_SC/bin/SteamWare.dll
index 300143f..662fcaf 100644
Binary files a/CMS_SC/bin/SteamWare.dll and b/CMS_SC/bin/SteamWare.dll differ
diff --git a/CMS_SC/sql/ManualUpdate_2.0_2.1.sql b/CMS_SC/sql/ManualUpdate_2.0_2.1.sql
index d6bfea4..3df9f91 100644
--- a/CMS_SC/sql/ManualUpdate_2.0_2.1.sql
+++ b/CMS_SC/sql/ManualUpdate_2.0_2.1.sql
@@ -29,6 +29,7 @@ FROM Misure
-- update vocabolario
exec voc.stp_insNewLemma 'btnClonaConfFamMacch', 'Merge da Famiglia Esistente'
exec voc.stp_insNewLemma 'StatoDossiers', 'Stato Dossiers'
+exec voc.stp_insNewLemma 'StatoCollaudi', 'Stato Collaudi'
-- modifiche DB