-
+
diff --git a/WebSites/WebGIM/mod_dettMtzProg.ascx b/WebSites/WebGIM/mod_dettMtzProg.ascx
index c579b6a..b8ea767 100644
--- a/WebSites/WebGIM/mod_dettMtzProg.ascx
+++ b/WebSites/WebGIM/mod_dettMtzProg.ascx
@@ -1,3 +1,102 @@
-<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_dettMtzProg.ascx.cs" Inherits="mod_dettMtzProg" %>
-dettaglio editabile
-dell'intervento programmato
\ No newline at end of file
+<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_dettMtzProg.ascx.cs"
+ Inherits="mod_dettMtzProg" %>
+<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
diff --git a/WebSites/WebGIM/mod_dettMtzProg.ascx.cs b/WebSites/WebGIM/mod_dettMtzProg.ascx.cs
index fc5cad6..5aef33a 100644
--- a/WebSites/WebGIM/mod_dettMtzProg.ascx.cs
+++ b/WebSites/WebGIM/mod_dettMtzProg.ascx.cs
@@ -3,11 +3,78 @@ using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
+using SteamWare;
public partial class mod_dettMtzProg : System.Web.UI.UserControl
{
+ public event EventHandler eh_newInserted;
+
protected void Page_Load(object sender, EventArgs e)
{
+ if (!Page.IsPostBack)
+ {
+ traduciObj();
+ setupValori();
+ }
+ }
+ private void setupValori()
+ {
+ txtDataInizio.Text = DateTime.Now.ToString("dd/MM/yy");
+ txtCadenza.Text = "1";
+ }
+
+ private void traduciObj()
+ {
+ lblInsNewIntPro.Text = traduci("lblInsNewIntPro");
+ lblDescrMtzPro.Text = traduci("lblDescrMtzPro");
+ lblInizioMtzPro.Text = traduci("lblInizioMtzPro");
+ lblPrior.Text = traduci("lblPrior");
+ chkImpFermo.Text = traduci("chkImpFermo");
+ lblTipoGuasto.Text = traduci("lblTipoGuasto");
+ lblFreq.Text = traduci("lblFreq");
+ lblCadenza.Text = traduci("lblCadenza");
+ btnCreaMtzPro.Text = traduci("btnCreaMtzPro");
+ lblMacchineInteressate.Text = traduci("lblMacchineInteressate");
+ rfvCad.Text = traduci("cadIntReq");
+ rfvDescrizione.Text = traduci("descrIntReq");
+ rfvData.Text = traduci("dataReq");
+ }
+ ///
+ /// wrap traduzione
+ ///
+ ///
+ ///
+ public string traduci(object lemma)
+ {
+ return user_std.UtSn.Traduci(lemma.ToString());
+ }
+ protected void btnCreaMtzPro_Click(object sender, EventArgs e)
+ {
+ // spazzo TUTTE le righe del controllo...
+ foreach (ListItem riga in listMacchine.Items)
+ {
+ // se è selezionata creo riga anche x lei...
+ if (riga.Selected)
+ {
+ creaInterventoMtzPro(Convert.ToInt32(riga.Value));
+ }
+ }
+ // resetto selezioni e controlli...
+ txtDescrizione.Text = "";
+ txtCercaMacchine.Text = "*";
+ listMacchine.SelectedIndex = -1;
+ if (eh_newInserted != null)
+ {
+ eh_newInserted(this, new EventArgs());
+ }
+ }
+ ///
+ /// crea un intervento di mtz programmata x la macchina con idx passato
+ ///
+ ///
+ private void creaInterventoMtzPro(int idx)
+ {
+ TA_app.obj.taMtzPro.Insert(idx, Convert.ToDateTime(txtDataInizio.Text), ddlFreq.SelectedValue, Convert.ToInt32(txtCadenza.Text), txtDescrizione.Text.Trim(), Convert.ToInt32(ddlPrior.SelectedValue), chkImpFermo.Checked, Convert.ToInt32(ddlTipo.SelectedValue));
}
}
diff --git a/WebSites/WebGIM/mod_elencoMtzProg.ascx b/WebSites/WebGIM/mod_elencoMtzProg.ascx
index a24697d..30b74aa 100644
--- a/WebSites/WebGIM/mod_elencoMtzProg.ascx
+++ b/WebSites/WebGIM/mod_elencoMtzProg.ascx
@@ -1,2 +1,6 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_elencoMtzProg.ascx.cs" Inherits="mod_elencoMtzProg" %>
-tabella elenco manutenzioni, con ricerca abilitata...
\ No newline at end of file
+
+
+tabella elenco manutenzioni, con ricerca abilitata...
diff --git a/WebSites/WebGIM/mod_elencoMtzProg.ascx.cs b/WebSites/WebGIM/mod_elencoMtzProg.ascx.cs
index a5ba57d..1cffb88 100644
--- a/WebSites/WebGIM/mod_elencoMtzProg.ascx.cs
+++ b/WebSites/WebGIM/mod_elencoMtzProg.ascx.cs
@@ -3,11 +3,28 @@ using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
+using SteamWare;
public partial class mod_elencoMtzProg : System.Web.UI.UserControl
{
+ public event EventHandler eh_newReq;
+
protected void Page_Load(object sender, EventArgs e)
{
}
+ protected void btnNew_Click(object sender, EventArgs e)
+ {
+ if (eh_newReq != null)
+ {
+ eh_newReq(this, new EventArgs());
+ }
+ }
+ ///
+ /// aggiorno il controllo
+ ///
+ public void doUpdate()
+ {
+ //
+ }
}
diff --git a/WebSites/WebGIM/mod_insertRichiesta.ascx b/WebSites/WebGIM/mod_insertRichiesta.ascx
index 128bda6..41b5516 100644
--- a/WebSites/WebGIM/mod_insertRichiesta.ascx
+++ b/WebSites/WebGIM/mod_insertRichiesta.ascx
@@ -11,17 +11,17 @@
@@ -65,7 +65,7 @@
-
@@ -89,7 +89,7 @@
-
@@ -116,6 +116,8 @@
+
diff --git a/WebSites/WebGIM/mtzProg.aspx b/WebSites/WebGIM/mtzProg.aspx
index 793ab80..311b4a1 100644
--- a/WebSites/WebGIM/mtzProg.aspx
+++ b/WebSites/WebGIM/mtzProg.aspx
@@ -3,15 +3,10 @@
<%@ Register Src="mod_elencoMtzProg.ascx" TagName="mod_elencoMtzProg" TagPrefix="uc1" %>
<%@ Register Src="mod_dettMtzProg.ascx" TagName="mod_dettMtzProg" TagPrefix="uc2" %>
+<%@ Register Src="mod_fixCal.ascx" TagName="mod_fixCal" TagPrefix="uc3" %>
-
+
+
+
+
diff --git a/WebSites/WebGIM/mtzProg.aspx.cs b/WebSites/WebGIM/mtzProg.aspx.cs
index 6deaefb..e25a314 100644
--- a/WebSites/WebGIM/mtzProg.aspx.cs
+++ b/WebSites/WebGIM/mtzProg.aspx.cs
@@ -8,6 +8,19 @@ public partial class mtzProg : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
+ mod_elencoMtzProg1.eh_newReq += new EventHandler(mod_elencoMtzProg1_eh_newReq);
+ mod_dettMtzProg1.eh_newInserted += new EventHandler(mod_dettMtzProg1_eh_newInserted);
+ }
+ void mod_dettMtzProg1_eh_newInserted(object sender, EventArgs e)
+ {
+ // nascondo dettaglio inserimento nuovi e aggiorno tabella elenco...
+ mod_dettMtzProg1.Visible = false;
+ mod_elencoMtzProg1.doUpdate();
+ }
+
+ void mod_elencoMtzProg1_eh_newReq(object sender, EventArgs e)
+ {
+ mod_dettMtzProg1.Visible = true;
}
}
diff --git a/WebSites/WebGIM/sql/GIM_0002.sql b/WebSites/WebGIM/sql/GIM_0002.sql
index ff3b7b2..8605b6c 100644
--- a/WebSites/WebGIM/sql/GIM_0002.sql
+++ b/WebSites/WebGIM/sql/GIM_0002.sql
@@ -36,7 +36,7 @@ INSERT INTO dbo.AnagAmbitoGuasto
VALUES (6, N'mancanza energia')
INSERT INTO dbo.AnagAmbitoGuasto
(idxAmbito, descrAmbitoGuasto)
- VALUES (7, N'preventivo')
+ VALUES (7, N'Mtz programmata')
INSERT INTO dbo.AnagAmbitoGuasto
(idxAmbito, descrAmbitoGuasto)
VALUES (8, N'errata programmazione')