Fix refresh filtro ricerca x elenco interventi

This commit is contained in:
Samuele E. Locatelli
2015-10-27 12:11:58 +01:00
parent 3884068038
commit af3d4d4f4d
24 changed files with 149 additions and 29 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -116,27 +116,16 @@
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="getByPeriodoSearch" TypeName="GIM_data.DS_applicazioneTableAdapters.v_intervExpTableAdapter"
FilterExpression=" (idxStato < 3) ">
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByPeriodoSearch" TypeName="GIM_data.DS_applicazioneTableAdapters.v_intervExpTableAdapter" FilterExpression=" (idxStato < 3) ">
<FilterParameters>
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="valoreCercato" />
<asp:SessionParameter DefaultValue="0" Name="idxTipo" SessionField="idxTipo_filt"
Type="Int32" />
<asp:SessionParameter DefaultValue="0" Name="idxImpianto" SessionField="idxImpianto_filt"
Type="Int32" />
<asp:SessionParameter DefaultValue="0" Name="idxMacchina" SessionField="idxMacchina_filt"
Type="Int32" />
<%--<asp:ControlParameter ControlID="mod_filtroTipo" DefaultValue="0" Name="idxTipo"
PropertyName="valoreInt" Type="Int32" />
<asp:ControlParameter ControlID="mod_filtroMacchina" DefaultValue="0" Name="idxMacchina"
PropertyName="valoreInt" Type="Int32" />--%>
<asp:SessionParameter DefaultValue="0" Name="idxTipo" SessionField="idxTipo_filt" Type="Int32" />
<asp:SessionParameter DefaultValue="0" Name="idxImpianto" SessionField="idxImpianto_filt" Type="Int32" />
<asp:SessionParameter DefaultValue="0" Name="idxMacchina" SessionField="idxMacchina_filt" Type="Int32" />
</FilterParameters>
<SelectParameters>
<asp:SessionParameter DefaultValue="01/01/1900" Name="inizio" SessionField="_inizio"
Type="DateTime" />
<asp:SessionParameter DefaultValue="31/12/9999" Name="fine" SessionField="_fine"
Type="DateTime" />
<asp:SessionParameter DefaultValue="01/01/1900" Name="inizio" SessionField="_inizio" Type="DateTime" />
<asp:SessionParameter DefaultValue="31/12/9999" Name="fine" SessionField="_fine" Type="DateTime" />
<asp:SessionParameter DefaultValue="*" Name="search" SessionField="valoreCercato" />
</SelectParameters>
</asp:ObjectDataSource>
@@ -173,6 +173,10 @@ public partial class mod_elencoRichieste : ApplicationUserControl
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
if(!Page.IsPostBack)
{
doUpdate();
}
_idxGridView = "numIntMtz";
mod_periodoAnalisi1.eh_doUpdate += new EventHandler(mod_periodoAnalisi1_eh_doUpdate);
}
@@ -5,7 +5,7 @@ using System.Web.UI;
using System.Web.UI.WebControls;
using SteamWare;
public partial class WebUserControls_mod_filtraMtzProg : ApplicationUserControl
public partial class WebUserControls_mod_filtraMtzProg : SteamWare.UserControl
{
/// <summary>
/// evento che segnala la disponibilità di un nuovo stato di filtraggio salvato in sessione...
@@ -18,27 +18,45 @@ public partial class WebUserControls_mod_filtraMtzProg : ApplicationUserControl
/// <summary>
/// inizializzazione valori di default
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected override void OnInit(EventArgs e)
protected void Page_Load(object sender, EventArgs e)
{
base.OnInit(e);
_idxGridView = "idxIntPro";
if (!Page.IsPostBack)
{
mod_filtroImpianto.ods = odsImpianti;
mod_filtroImpianto.txtMostraTutti = traduci("MostraTuttiImpianti");
mod_filtroImpianto.txtMostraSoloSelez= traduci("SelezionaImpianti");
mod_filtroMacchina.ods = odsMacchine;
mod_filtroMacchina.txtMostraTutti = traduci("MostraTuttiMacchine");
mod_filtroMacchina.txtMostraSoloSelez = traduci("SelezionaMacchine");
mod_filtroTipo.ods = odsTipo;
mod_filtroTipo.txtMostraTutti = traduci("MostraTuttiTipo");
mod_filtroTipo.txtMostraSoloSelez = traduci("SelezionaTipo");
fixOds();
checkSelVal();
}
mod_filtroTipo.eh_selValore += new EventHandler(mod_filtroTipo_eh_selValore);
mod_filtroMacchina.eh_selValore += new EventHandler(mod_filtroMacchina_eh_selValore);
mod_filtroImpianto.eh_selValore += new EventHandler(mod_filtroImpianto_eh_selValore);
}
/// <summary>
/// verifica se sia possibile preimpostare i valori filtrati...
/// </summary>
private void checkSelVal()
{
if(memLayer.ML.isInSessionObject("idxMacchina_filt"))
{
mod_filtroMacchina.Visible = true;
}
}
/// <summary>
/// imposta ODS dei controlli
/// </summary>
private void fixOds()
{
mod_filtroImpianto.ods = odsImpianti;
mod_filtroImpianto.txtMostraTutti = traduci("MostraTuttiImpianti");
mod_filtroImpianto.txtMostraSoloSelez = traduci("SelezionaImpianti");
mod_filtroMacchina.ods = odsMacchine;
mod_filtroMacchina.txtMostraTutti = traduci("MostraTuttiMacchine");
mod_filtroMacchina.txtMostraSoloSelez = traduci("SelezionaMacchine");
mod_filtroTipo.ods = odsTipo;
mod_filtroTipo.txtMostraTutti = traduci("MostraTuttiTipo");
mod_filtroTipo.txtMostraSoloSelez = traduci("SelezionaTipo");
}
void mod_filtroImpianto_eh_selValore(object sender, EventArgs e)
{
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
<pages>
<controls>
<add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />
</controls>
</pages>
</system.web>
</configuration>
@@ -0,0 +1,23 @@
You have downloaded the ASP.NET AJAX Control Toolkit v15.1.3 nuget package.
To learn more about this release, please read this post:
https://community.devexpress.com/blogs/aspnet/archive/2015/05/21/asp-net-ajax-control-toolkit-v15-1-2-nuget-bug-fixes-and-more.aspx
Getting Started
---------------
Please see https://www.devexpress.com/go/AjaxControlToolkit_Nuget_TextFile_CodePlex.aspx for more information on using AjaxControlToolkit.
Upgrading from earlier version
------------------------------
Please see https://ajaxcontroltoolkit.codeplex.com/wikipage?title=Upgrade%20your%20project%20to%20AjaxControlToolkit%20v15.1 for more information on how to
upgrade to version 15.1
Maintained by DevExpress
------------------------
The ASP.NET AJAX Control Toolkit is now maintained by DevExpress.
Visit http://devexpress.com/ms-act for more information.
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<UsingTask AssemblyFile="AjaxMinTask.dll" TaskName="AjaxMin" />
<UsingTask AssemblyFile="AjaxMinTask.dll" TaskName="AjaxMinBundleTask" />
<UsingTask AssemblyFile="AjaxMinTask.dll" TaskName="AjaxMinManifestTask" />
<UsingTask AssemblyFile="AjaxMinTask.dll" TaskName="AjaxMinManifestCleanTask" />
<PropertyGroup>
<!-- if the project has a Content folder, we want that to be the root output; otherwise just dump everything relative to the project root -->
<AjaxMinOutputFolder Condition="$(AjaxMinOutputFolder)=='' and Exists('$(ProjectDir)Content\')">$(ProjectDir)Content\</AjaxMinOutputFolder>
<AjaxMinOutputFolder Condition="$(AjaxMinOutputFolder)==''">$(ProjectDir)</AjaxMinOutputFolder>
<!-- default is to NOT treat warnings as errors -->
<AjaxMinTreatWarningsAsErrors Condition="$(AjaxMinTreatWarningsAsErrors)==''">false</AjaxMinTreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<AjaxMinManifests Include="**/*.ajaxmin"/>
</ItemGroup>
<!-- target to clean output for all ajaxmin manifest files in the project -->
<Target Name="CleanAjaxMinManifests" AfterTargets="Clean" Inputs="@AjaxMinManifests" Outputs="@(AjaxMinManifests->'%(FullPath).cleantrigger')">
<Message Text="Cleaning AjaxMin Manifests" Importance="high" />
<AjaxMinManifestCleanTask OutputFolder="$(AjaxMinOutputFolder)" Manifests="@(AjaxMinManifests)" />
</Target>
<!-- target to build all ajaxmin manifest files in the project -->
<Target Name="BuildAjaxMinManifests" AfterTargets="Build" Inputs="@AjaxMinManifests" Outputs="@(AjaxMinManifests->'%(FullPath).buildtrigger')">
<Message Text="Processing AjaxMin Manifests" Importance="high" />
<AjaxMinManifestTask ProjectDefaultSwitches="-define:$(DefineConstants) $(AjaxMinProjectDefaultSwitches)"
Configuration="$(Configuration)"
TreatWarningsAsErrors="$(AjaxMinTreatWarningsAsErrors)"
InputFolder="$(ProjectDir)"
OutputFolder="$(AjaxMinOutputFolder)"
Manifests="@(AjaxMinManifests)" />
</Target>
</Project>
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<UsingTask AssemblyFile="AjaxMinTask.dll" TaskName="AjaxMin" />
<UsingTask AssemblyFile="AjaxMinTask.dll" TaskName="AjaxMinBundleTask" />
<UsingTask AssemblyFile="AjaxMinTask.dll" TaskName="AjaxMinManifestTask" />
<UsingTask AssemblyFile="AjaxMinTask.dll" TaskName="AjaxMinManifestCleanTask" />
<PropertyGroup>
<!-- if the project has a Content folder, we want that to be the root output; otherwise just dump everything relative to the project root -->
<AjaxMinOutputFolder Condition="$(AjaxMinOutputFolder)=='' and Exists('$(ProjectDir)Content\')">$(ProjectDir)Content\</AjaxMinOutputFolder>
<AjaxMinOutputFolder Condition="$(AjaxMinOutputFolder)==''">$(ProjectDir)</AjaxMinOutputFolder>
<!-- default is to NOT treat warnings as errors -->
<AjaxMinTreatWarningsAsErrors Condition="$(AjaxMinTreatWarningsAsErrors)==''">false</AjaxMinTreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<AjaxMinManifests Include="**/*.ajaxmin"/>
</ItemGroup>
<!-- target to clean output for all ajaxmin manifest files in the project -->
<Target Name="CleanAjaxMinManifests" AfterTargets="Clean" Inputs="@AjaxMinManifests" Outputs="@(AjaxMinManifests->'%(FullPath).cleantrigger')">
<Message Text="Cleaning AjaxMin Manifests" Importance="high" />
<AjaxMinManifestCleanTask OutputFolder="$(AjaxMinOutputFolder)" Manifests="@(AjaxMinManifests)" />
</Target>
<!-- target to build all ajaxmin manifest files in the project -->
<Target Name="BuildAjaxMinManifests" AfterTargets="Build" Inputs="@AjaxMinManifests" Outputs="@(AjaxMinManifests->'%(FullPath).buildtrigger')">
<Message Text="Processing AjaxMin Manifests" Importance="high" />
<AjaxMinManifestTask ProjectDefaultSwitches="-define:$(DefineConstants) $(AjaxMinProjectDefaultSwitches)"
Configuration="$(Configuration)"
TreatWarningsAsErrors="$(AjaxMinTreatWarningsAsErrors)"
InputFolder="$(ProjectDir)"
OutputFolder="$(AjaxMinOutputFolder)"
Manifests="@(AjaxMinManifests)" />
</Target>
</Project>