diff --git a/WebSites/WebGIM/assegnazioniMacchineImpianti.aspx b/WebSites/WebGIM/assegnazioniMacchineImpianti.aspx
new file mode 100644
index 0000000..e206e67
--- /dev/null
+++ b/WebSites/WebGIM/assegnazioniMacchineImpianti.aspx
@@ -0,0 +1,9 @@
+<%@ Page Title="" Language="C#" MasterPageFile="~/AjaxTitle.master" AutoEventWireup="true" CodeFile="assegnazioniMacchineImpianti.aspx.cs" Inherits="assegnazioniMacchineImpianti" %>
+
+<%@ Register src="mod_assegnazioniMacchineImpianti.ascx" tagname="mod_assegnazioniMacchineImpianti" tagprefix="uc1" %>
+
+
+
+
+
diff --git a/WebSites/WebGIM/assegnazioniMacchineImpianti.aspx.cs b/WebSites/WebGIM/assegnazioniMacchineImpianti.aspx.cs
new file mode 100644
index 0000000..f2e735e
--- /dev/null
+++ b/WebSites/WebGIM/assegnazioniMacchineImpianti.aspx.cs
@@ -0,0 +1,13 @@
+using System;
+using System.Collections.Generic;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+public partial class assegnazioniMacchineImpianti : System.Web.UI.Page
+{
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+}
diff --git a/WebSites/WebGIM/impianti.aspx.cs b/WebSites/WebGIM/impianti.aspx.cs
index 21cef31..bf9733e 100644
--- a/WebSites/WebGIM/impianti.aspx.cs
+++ b/WebSites/WebGIM/impianti.aspx.cs
@@ -23,6 +23,7 @@ public partial class impianti : System.Web.UI.Page
void Mod_macchine1_eh_selValore(object sender, EventArgs e)
{
mod_macchine1.Visible = true;
+ mod_macchine1.idxImpiantoSel = memLayer.ML.IntSessionObj("idxImpianto_sel");
mod_macchine1.doUpdate();
}
diff --git a/WebSites/WebGIM/mod_assegnazioniMacchineImpianti.ascx b/WebSites/WebGIM/mod_assegnazioniMacchineImpianti.ascx
new file mode 100644
index 0000000..cc14a38
--- /dev/null
+++ b/WebSites/WebGIM/mod_assegnazioniMacchineImpianti.ascx
@@ -0,0 +1,41 @@
+<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_assegnazioniMacchineImpianti.ascx.cs"
+ Inherits="mod_assegnazioniMacchineImpianti" %>
+<%@ Register Src="mod_selettore_ajax.ascx" TagName="mod_selettore_ajax" TagPrefix="uc1" %>
+<%@ Register Src="mod_macchine.ascx" TagName="mod_macchine" TagPrefix="uc2" %>
+
+
+ |
+
+ |
+
+ |
+
+
+ |
+
+
+ |
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+
\ No newline at end of file
diff --git a/WebSites/WebGIM/mod_assegnazioniMacchineImpianti.ascx.cs b/WebSites/WebGIM/mod_assegnazioniMacchineImpianti.ascx.cs
new file mode 100644
index 0000000..7df721e
--- /dev/null
+++ b/WebSites/WebGIM/mod_assegnazioniMacchineImpianti.ascx.cs
@@ -0,0 +1,93 @@
+using System;
+using System.Collections.Generic;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using SteamWare;
+
+public partial class mod_assegnazioniMacchineImpianti : System.Web.UI.UserControl
+{
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ }
+ ///
+ /// click spostamento da A a B
+ ///
+ ///
+ ///
+ protected void btnA2B_Click(object sender, EventArgs e)
+ {
+ // solo se macchina selezionata...
+ if (mod_macchine1.idxMacchinaSel != 0)
+ {
+ // sposto da A a B
+ TA_app.obj.taMacchine.sp_spostaMacchina(mod_macchine1.idxMacchinaSel, Convert.ToInt32(ddlImpianto_B.SelectedValue));
+ updateAll();
+ lblWarning.Visible = false;
+ }
+ else
+ {
+ // mostro errore...
+ lblWarning.Text = user_std.UtSn.Traduci("ErroreNoMaccSel");
+ lblWarning.Visible = true;
+ }
+ }
+ ///
+ /// click spostamento da B ad A
+ ///
+ ///
+ ///
+ protected void btnB2A_Click(object sender, EventArgs e)
+ {
+ if (mod_macchine2.idxMacchinaSel != 0)
+ { // sposto da B ad A
+ TA_app.obj.taMacchine.sp_spostaMacchina(mod_macchine2.idxMacchinaSel, Convert.ToInt32(ddlImpianto_A.SelectedValue));
+ updateAll();
+ lblWarning.Visible = false;
+ }
+ else
+ {
+ // mostro errore...
+ lblWarning.Text = user_std.UtSn.Traduci("ErroreNoMaccSel");
+ lblWarning.Visible = true;
+ }
+ }
+ ///
+ /// aggiorna visualizzazioni delle 2 tab di dettaglio
+ ///
+ private void updateAll()
+ {
+ update_A();
+ update_B();
+ }
+ ///
+ /// aggiorno tab impianto A
+ ///
+ ///
+ ///
+ protected void ddlImpianto_A_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ update_A();
+ }
+
+ private void update_A()
+ {
+ mod_macchine1.idxImpiantoSel = Convert.ToInt32(ddlImpianto_A.SelectedValue);
+ mod_macchine1.doUpdate();
+ }
+ ///
+ /// aggiorno tab impianto B
+ ///
+ ///
+ ///
+ protected void ddlImpianto_B_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ update_B();
+ }
+
+ private void update_B()
+ {
+ mod_macchine2.idxImpiantoSel = Convert.ToInt32(ddlImpianto_B.SelectedValue);
+ mod_macchine2.doUpdate();
+ }
+}
diff --git a/WebSites/WebGIM/mod_macchine.ascx b/WebSites/WebGIM/mod_macchine.ascx
index 9ec3e28..186e81c 100644
--- a/WebSites/WebGIM/mod_macchine.ascx
+++ b/WebSites/WebGIM/mod_macchine.ascx
@@ -16,7 +16,8 @@
-
+
@@ -47,7 +48,8 @@
ToolTip='<%# traduci("Cancel") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.annulla , SteamWare.dimImg.small) %>' />
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%--
+ --%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
diff --git a/WebSites/WebGIM/mod_macchine.ascx.cs b/WebSites/WebGIM/mod_macchine.ascx.cs
index f4998af..8848833 100644
--- a/WebSites/WebGIM/mod_macchine.ascx.cs
+++ b/WebSites/WebGIM/mod_macchine.ascx.cs
@@ -206,6 +206,17 @@ public partial class mod_macchine : ApplicationUserControl
resetSelezione();
}
///
+ /// reset della selezione
+ ///
+ ///
+ ///
+ protected void btnResetShort_Click(object sender, EventArgs e)
+ {
+ grViewShort.SelectedIndex = -1;
+ grViewShort.DataBind();
+ lblWarning.Visible = false;
+ }
+ ///
/// gestione cambio selezione valore
///
///
@@ -268,6 +279,11 @@ public partial class mod_macchine : ApplicationUserControl
#endregion
#region area codice variabile
+
+ ///
+ /// devo mostrare meno colonne
+ ///
+ protected bool _dispLessCol = false;
///
/// effettua update del modulo
///
@@ -275,6 +291,10 @@ public partial class mod_macchine : ApplicationUserControl
{
resetSelezione();
updateOdsDaFiltro();
+ grView.SelectedIndex = -1;
+ grView.DataBind();
+ grViewShort.SelectedIndex = -1;
+ grViewShort.DataBind();
}
///
@@ -284,6 +304,7 @@ public partial class mod_macchine : ApplicationUserControl
///
protected bool objIsNotRelated(object idxObj)
{
+ // !!!FARE!!!
return true;// taMacchine.getByIdxFase(idxObj.ToString()).Rows.Count == 0;
}
///
@@ -304,6 +325,17 @@ public partial class mod_macchine : ApplicationUserControl
{
base.OnInit(e);
_idxGridView = "idxmacchina";
+ // determino quale grView a seconda del tipo visibilità colonne...
+ if (_dispLessCol)
+ {
+ grView.Visible = false;
+ grViewShort.Visible = true;
+ }
+ else
+ {
+ grView.Visible = true;
+ grViewShort.Visible = false;
+ }
updateOdsDaFiltro();
}
///
@@ -315,7 +347,7 @@ public partial class mod_macchine : ApplicationUserControl
if (vistaModulo == tipoVistaMod.selezione)
{
filterExpr += " AND idxImpianto = {1} ";
-
+
}
ods.FilterExpression = filterExpr;
}
@@ -414,7 +446,7 @@ public partial class mod_macchine : ApplicationUserControl
public bool isDelEnabled(object cosa, object idx)
{
bool answ = false;
- // controllo se ci siano record correlati...
+ // controllo se ci siano record correlati...
if (objIsNotRelated(idx))
{
answ = isVisible(cosa);
@@ -425,8 +457,60 @@ public partial class mod_macchine : ApplicationUserControl
}
return answ;
}
-
-
-
+ ///
+ /// indica il valore dell'impianto filtrato in visualizzazione
+ ///
+ public int idxImpiantoSel
+ {
+ get
+ {
+ return Convert.ToInt32(lblImpianto.Text);
+ }
+ set
+ {
+ lblImpianto.Text = value.ToString();
+ }
+ }
+ ///
+ /// definisce se mostrare meno colonne (per funzione MOVE delle macchine tra diversi impianti)
+ ///
+ public bool dispLessCol
+ {
+ get
+ {
+ return _dispLessCol;
+ }
+ set
+ {
+ _dispLessCol = value;
+ }
+ }
+ ///
+ /// definisce se mostrare o meno una colonna...
+ ///
+ public bool mostraColonna
+ {
+ get
+ {
+ return !_dispLessCol;
+ }
+ }
+ ///
+ /// restituisce idx della amcchina selezionata nel grVIew versione "short"
+ ///
+ public int idxMacchinaSel
+ {
+ get
+ {
+ int answ = -1;
+ try
+ {
+ answ = Convert.ToInt32(grViewShort.SelectedValue);
+ }
+ catch
+ { }
+ return answ;
+ }
+ }
#endregion
}
\ No newline at end of file
diff --git a/WebSites/WebGIM/mod_menuBottom.ascx b/WebSites/WebGIM/mod_menuBottom.ascx
index d803d8e..6e595ab 100644
--- a/WebSites/WebGIM/mod_menuBottom.ascx
+++ b/WebSites/WebGIM/mod_menuBottom.ascx
@@ -1,4 +1,4 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_menuBottom.ascx.cs"
Inherits="mod_menuBottom" %>
-15 -
+17 -