diff --git a/WebSites/WebGIM/Bin/SteamWare.dll b/WebSites/WebGIM/Bin/SteamWare.dll
index 5d0e268..63afc7c 100644
Binary files a/WebSites/WebGIM/Bin/SteamWare.dll and b/WebSites/WebGIM/Bin/SteamWare.dll differ
diff --git a/WebSites/WebGIM/elencoRichieste.aspx.cs b/WebSites/WebGIM/elencoRichieste.aspx.cs
index 36eb240..c75e9c0 100644
--- a/WebSites/WebGIM/elencoRichieste.aspx.cs
+++ b/WebSites/WebGIM/elencoRichieste.aspx.cs
@@ -10,6 +10,17 @@ public partial class elencoRichieste : System.Web.UI.Page
{
mod_elencoRichieste1.eh_selValore += new EventHandler(mod_elencoRichieste1_eh_selValore);
mod_elencoRichieste1.eh_resetSelezione += new EventHandler(mod_elencoRichieste1_eh_resetSelezione);
+ mod_dettaglioIntervento1.eh_chiudi += new EventHandler(mod_dettaglioIntervento1_eh_chiudi);
+ }
+ ///
+ /// resetto selezione, nascondo dettaglio
+ ///
+ ///
+ ///
+ void mod_dettaglioIntervento1_eh_chiudi(object sender, EventArgs e)
+ {
+ mod_dettaglioIntervento1.Visible = false;
+ mod_elencoRichieste1.resetSelezione();
}
///
/// resetto selezione, nascondo dettaglio
@@ -28,5 +39,6 @@ public partial class elencoRichieste : System.Web.UI.Page
void mod_elencoRichieste1_eh_selValore(object sender, EventArgs e)
{
mod_dettaglioIntervento1.Visible = true;
+ mod_dettaglioIntervento1.doUpdate();
}
}
diff --git a/WebSites/WebGIM/mod_anagAmbitiGuasto.ascx b/WebSites/WebGIM/mod_anagAmbitiGuasto.ascx
index 335a2d1..ae7b066 100644
--- a/WebSites/WebGIM/mod_anagAmbitiGuasto.ascx
+++ b/WebSites/WebGIM/mod_anagAmbitiGuasto.ascx
@@ -34,7 +34,7 @@
ToolTip='<%# traduci("Edit") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.modifica, SteamWare.dimImg.small) %>' />
-
+
@@ -66,7 +66,7 @@
-
+
diff --git a/WebSites/WebGIM/mod_dettaglioIntervento.ascx b/WebSites/WebGIM/mod_dettaglioIntervento.ascx
index a6c4a24..d10b33a 100644
--- a/WebSites/WebGIM/mod_dettaglioIntervento.ascx
+++ b/WebSites/WebGIM/mod_dettaglioIntervento.ascx
@@ -1,2 +1,375 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_dettaglioIntervento.ascx.cs" Inherits="mod_dettaglioIntervento" %>
-aaa
\ No newline at end of file
+
+
+
+ numIntMtz:
+
+
+ richiesta:
+
+
+ dataLav:
+
+
+ turnoLav:
+
+
+ matr:
+
+
+ guasto:
+
+
+ idxAmbito:
+
+
+ idxPriorita:
+
+
+ isFermo:
+
+
+ idxTipo:
+
+
+ idxImpianto:
+
+
+ idxMacchina:
+
+
+ descrizione:
+
+
+ idxStato:
+
+
+ presaInCarico:
+
+
+ inizioIntervento:
+
+
+ fineIntervento:
+
+
+ descrizioneIntervento:
+
+
+ isPreventivabile:
+
+
+ idxCausale:
+
+
+ descrAmbitoGuasto:
+
+
+ descrPriorita:
+
+
+ descrTipo:
+
+
+ codImpianto:
+
+
+ nomeImpianto:
+
+
+ codMacchina:
+
+
+ nomeMacchina:
+
+
+ DescrStato:
+
+
+ descrCausale:
+
+
+
+
+
+
+ numIntMtz:
+
+
+ richiesta:
+
+
+ dataLav:
+
+
+ turnoLav:
+
+
+ matr:
+
+
+ guasto:
+
+
+ idxAmbito:
+
+
+ idxPriorita:
+
+
+ isFermo:
+
+
+ idxTipo:
+
+
+ idxImpianto:
+
+
+ idxMacchina:
+
+
+ descrizione:
+
+
+ idxStato:
+
+
+ presaInCarico:
+
+
+ inizioIntervento:
+
+
+ fineIntervento:
+
+
+ descrizioneIntervento:
+
+
+ isPreventivabile:
+
+
+ idxCausale:
+
+
+ descrAmbitoGuasto:
+
+
+ descrPriorita:
+
+
+ descrTipo:
+
+
+ codImpianto:
+
+
+ nomeImpianto:
+
+
+ codMacchina:
+
+
+ nomeMacchina:
+
+
+ DescrStato:
+
+
+ descrCausale:
+
+
+
+
+
+
+ numIntMtz:
+
+
+ richiesta:
+
+
+ dataLav:
+
+
+ turnoLav:
+
+
+ matr:
+
+
+ guasto:
+
+
+ idxAmbito:
+
+
+ idxPriorita:
+
+
+ isFermo:
+
+
+ idxTipo:
+
+
+ idxImpianto:
+
+
+ idxMacchina:
+
+
+ descrizione:
+
+
+ idxStato:
+
+
+ presaInCarico:
+
+
+ inizioIntervento:
+
+
+ fineIntervento:
+
+
+ descrizioneIntervento:
+
+
+ isPreventivabile:
+
+
+ idxCausale:
+
+
+ descrAmbitoGuasto:
+
+
+ descrPriorita:
+
+
+ descrTipo:
+
+
+ codImpianto:
+
+
+ nomeImpianto:
+
+
+ codMacchina:
+
+
+ nomeMacchina:
+
+
+ DescrStato:
+
+
+ descrCausale:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/WebSites/WebGIM/mod_dettaglioIntervento.ascx.cs b/WebSites/WebGIM/mod_dettaglioIntervento.ascx.cs
index deea2ee..7e651d5 100644
--- a/WebSites/WebGIM/mod_dettaglioIntervento.ascx.cs
+++ b/WebSites/WebGIM/mod_dettaglioIntervento.ascx.cs
@@ -3,11 +3,90 @@ using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
+using SteamWare;
public partial class mod_dettaglioIntervento : System.Web.UI.UserControl
{
+ #region gestione eventi
+
+ public event EventHandler eh_chiudi;
+ //public event EventHandler eh_nuovoValore;
+ //public event EventHandler eh_selValore;
+
+ #endregion
+
protected void Page_Load(object sender, EventArgs e)
{
+ if (!Page.IsPostBack)
+ {
+ setupInizialeControlli();
+ }
+ }
+ ///
+ /// setup iniziale e di reset dei controlli
+ ///
+ private void setupInizialeControlli()
+ {
+ traduciObj();
+ frmView_default.ChangeMode(FormViewMode.ReadOnly);
+ frmView_default.Visible = true;
+ frmView_full.Visible = false;
+ }
+ private void traduciObj()
+ {
+ btnChiudi.Text = traduci("btnChiudi");
+ btnCompilaMtz.Text = traduci("btnCompilaMtz");
+ btnEditFull.Text = traduci("btnEditFull");
+ }
+ ///
+ /// wrapper alla traduzione
+ ///
+ ///
+ ///
+ public string traduci(object lemma)
+ {
+ return user_std.UtSn.Traduci(lemma.ToString());
+ }
+ ///
+ /// aggiorna il dato mostrato
+ ///
+ public void doUpdate()
+ {
+ setupInizialeControlli();
+ }
+ ///
+ /// abilita compilazione parte mtz dell'intervento
+ ///
+ ///
+ ///
+ protected void btnCompilaMtz_Click(object sender, EventArgs e)
+ {
+ frmView_default.ChangeMode(FormViewMode.Edit);
+ frmView_default.Visible = true;
+ frmView_full.Visible = false;
+ }
+ ///
+ /// permette editing di tutto
+ ///
+ ///
+ ///
+ protected void btnEditFull_Click(object sender, EventArgs e)
+ {
+ frmView_full.ChangeMode(FormViewMode.Edit);
+ frmView_full.Visible = true;
+ frmView_default.Visible = false;
+ }
+ ///
+ /// chiude la parte di editing
+ ///
+ ///
+ ///
+ protected void btnChiudi_Click(object sender, EventArgs e)
+ {
+ if (eh_chiudi != null)
+ {
+ eh_chiudi(this, new EventArgs());
+ }
}
}
diff --git a/WebSites/WebGIM/mod_elFamMacch.ascx b/WebSites/WebGIM/mod_elFamMacch.ascx
index abe1cbb..992ffb3 100644
--- a/WebSites/WebGIM/mod_elFamMacch.ascx
+++ b/WebSites/WebGIM/mod_elFamMacch.ascx
@@ -34,7 +34,7 @@
-
+
@@ -63,7 +63,7 @@
TargetControlID="imgDelete">
-
+
diff --git a/WebSites/WebGIM/mod_elMacch2Fam.ascx b/WebSites/WebGIM/mod_elMacch2Fam.ascx
index 5092f77..b1cce6a 100644
--- a/WebSites/WebGIM/mod_elMacch2Fam.ascx
+++ b/WebSites/WebGIM/mod_elMacch2Fam.ascx
@@ -36,7 +36,7 @@
TargetControlID="imgDelete">
-
+
diff --git a/WebSites/WebGIM/mod_elencoRichieste.ascx b/WebSites/WebGIM/mod_elencoRichieste.ascx
index 2d68bd9..4e5cffb 100644
--- a/WebSites/WebGIM/mod_elencoRichieste.ascx
+++ b/WebSites/WebGIM/mod_elencoRichieste.ascx
@@ -26,12 +26,17 @@
-
-
+
+
+
+
+
-
+
@@ -47,17 +52,18 @@
-
+
-
+
-
+
-
+
@@ -71,12 +77,6 @@
ToolTip='<%# Eval("descrizione") %>' />
-
-
-
-
-
-
-
+
@@ -76,7 +76,7 @@
TargetControlID="imgDelete">
-
+
diff --git a/WebSites/WebGIM/mod_tipoGuasto.ascx b/WebSites/WebGIM/mod_tipoGuasto.ascx
index 25ad6d9..3e72891 100644
--- a/WebSites/WebGIM/mod_tipoGuasto.ascx
+++ b/WebSites/WebGIM/mod_tipoGuasto.ascx
@@ -32,7 +32,7 @@
-
+
@@ -61,7 +61,7 @@
TargetControlID="imgDelete">
-
+