diff --git a/WebSites/WebGIM/Bin/SteamWare.dll b/WebSites/WebGIM/Bin/SteamWare.dll index a58e2b3..b0cce97 100644 Binary files a/WebSites/WebGIM/Bin/SteamWare.dll and b/WebSites/WebGIM/Bin/SteamWare.dll differ diff --git a/WebSites/WebGIM/ExcelExportMtzPrevPending.aspx b/WebSites/WebGIM/ExcelExportMtzPrevPending.aspx index 061d1c4..165b162 100644 --- a/WebSites/WebGIM/ExcelExportMtzPrevPending.aspx +++ b/WebSites/WebGIM/ExcelExportMtzPrevPending.aspx @@ -37,6 +37,10 @@ OldValuesParameterFormatString="original_{0}" FilterExpression=" (codImpianto LIKE '%{0}%') OR (nomeImpianto LIKE '%{0}%') OR (codMacchina LIKE '%{0}%') OR (nomeMacchina LIKE '%{0}%') OR (descrizione LIKE '%{0}%') OR (descrPriorita LIKE '%{0}%') OR (descrTipo LIKE '%{0}%') "> + + diff --git a/WebSites/WebGIM/ExcelExportMtzPrevPending.aspx.cs b/WebSites/WebGIM/ExcelExportMtzPrevPending.aspx.cs index 899d4ad..7cd9a5d 100644 --- a/WebSites/WebGIM/ExcelExportMtzPrevPending.aspx.cs +++ b/WebSites/WebGIM/ExcelExportMtzPrevPending.aspx.cs @@ -3,8 +3,8 @@ using System.Collections.Generic; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; -using SteamWare; using System.Web.UI.HtmlControls; +using SteamWare; public partial class ExcelExportMtzPrevPending : System.Web.UI.Page { @@ -83,7 +83,25 @@ public partial class ExcelExportMtzPrevPending : System.Web.UI.Page public void aggiornamento() { grView.AllowPaging = false; + checkFixOds(); ods.DataBind(); + grView.DataBind(); + } + + /// + /// sistemo filtraggio con valori selezionati + /// + private void checkFixOds() + { + ods.FilterExpression = "( (codImpianto LIKE '%{0}%') OR (nomeImpianto LIKE '%{0}%') OR (codMacchina LIKE '%{0}%') OR (nomeMacchina LIKE '%{0}%') OR (descrizione LIKE '%{0}%') OR (descrPriorita LIKE '%{0}%') OR (descrTipo LIKE '%{0}%') )"; + if (memLayer.ML.isInSessionObject("idxTipo_filt")) + { + ods.FilterExpression += " AND (idxTipo = {1})"; + } + if (memLayer.ML.isInSessionObject("idxMacchina_filt")) + { + ods.FilterExpression += " AND (idxMacchina = {2})"; + } } diff --git a/WebSites/WebGIM/WebUserControls/mod_dettMtzProg.ascx b/WebSites/WebGIM/WebUserControls/mod_dettMtzProg.ascx index 94f1843..dfd755a 100644 --- a/WebSites/WebGIM/WebUserControls/mod_dettMtzProg.ascx +++ b/WebSites/WebGIM/WebUserControls/mod_dettMtzProg.ascx @@ -1,19 +1,28 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_dettMtzProg.ascx.cs" Inherits="mod_dettMtzProg" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> - +<%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %> +
@@ -22,7 +31,11 @@
- + +
+
+ +

+ DataValueField="value" CssClass="textEv_1" OnDataBound="ddlPrior_DataBound" /> diff --git a/WebSites/WebGIM/WebUserControls/mod_dettMtzProg.ascx.cs b/WebSites/WebGIM/WebUserControls/mod_dettMtzProg.ascx.cs index bba4203..e90b1ed 100644 --- a/WebSites/WebGIM/WebUserControls/mod_dettMtzProg.ascx.cs +++ b/WebSites/WebGIM/WebUserControls/mod_dettMtzProg.ascx.cs @@ -86,4 +86,47 @@ public partial class mod_dettMtzProg : System.Web.UI.UserControl { ddlPrior.SelectedIndex = 2; } + + protected override void OnInit(EventArgs e) + { + base.OnInit(e); + if (!Page.IsPostBack) + { + mod_filtroImpianto.ods = odsImpianti; + } + } + + /// + /// chiamato post modifica valore check/selezione nel selettore filtro impianto + /// + /// + /// + public void eh_selectedImpianto(object sender, EventArgs e) + { + checkFixOds(); + } + + private void checkFixOds() + { + if (mod_filtroImpianto.valoreInt != 0) + { + // resetto la selezione... + listMacchine.SelectedIndex = -1; + // cambio filtro su ods macchine mostrate... + if (mod_filtroImpianto.valoreInt > 0) + { + odsMacchine.FilterExpression = "(label LIKE '%{0}%') AND conditio = " + mod_filtroImpianto.valore; + odsMacchine.DataBind(); + } + } + else + { + odsMacchine.FilterExpression = "(label LIKE '%{0}%')"; + odsMacchine.DataBind(); + } + } + protected void txtCercaMacchine_TextChanged(object sender, EventArgs e) + { + checkFixOds(); + } } diff --git a/WebSites/WebGIM/WebUserControls/mod_elencoRichieste.ascx b/WebSites/WebGIM/WebUserControls/mod_elencoRichieste.ascx index 73de493..b7816d5 100644 --- a/WebSites/WebGIM/WebUserControls/mod_elencoRichieste.ascx +++ b/WebSites/WebGIM/WebUserControls/mod_elencoRichieste.ascx @@ -1,7 +1,8 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_elencoRichieste.ascx.cs" Inherits="mod_elencoRichieste" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> -<%@ Register Src="~/WebUserControls/mod_periodoAnalisi.ascx" TagName="mod_periodoAnalisi" TagPrefix="uc1" %> +<%@ Register Src="~/WebUserControls/mod_periodoAnalisi.ascx" TagName="mod_periodoAnalisi" + TagPrefix="uc1" %>
+ DataKeyNames="numIntMtz" DataSourceID="ods" OnRowDataBound="grView_RowDataBound" + OnPageIndexChanged="grView_PageIndexChanged"> @@ -57,7 +57,7 @@ - + @@ -68,12 +68,13 @@ - + - - + + + + @@ -89,8 +90,7 @@ - + diff --git a/WebSites/WebGIM/images/mtzProg.png b/WebSites/WebGIM/images/mtzProg.png index 20a8fdd..cd75e5b 100644 Binary files a/WebSites/WebGIM/images/mtzProg.png and b/WebSites/WebGIM/images/mtzProg.png differ
+

+
+
+ + + +

+ CssClass="textEv_1Left" />