Avanzamento x gestione filtro coerente in progetti
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using Newtonsoft.Json;
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
@@ -46,6 +47,7 @@ namespace GPW_Admin.WebUserControls
|
||||
intAnalys = date;
|
||||
showArch = false;
|
||||
showEmpty = true;
|
||||
|
||||
}
|
||||
|
||||
#endregion Public Constructors
|
||||
@@ -98,18 +100,6 @@ namespace GPW_Admin.WebUserControls
|
||||
}
|
||||
}
|
||||
|
||||
protected int idxCliSel
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.IntSessionObj("idxCli_sel");
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("idxCli_sel", $"{value}");
|
||||
}
|
||||
}
|
||||
|
||||
protected int idxProjSel
|
||||
{
|
||||
get
|
||||
@@ -202,7 +192,14 @@ namespace GPW_Admin.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
private void filtroCli_eh_selValore(object sender, EventArgs e)
|
||||
{
|
||||
idxCliSel = filtroCli.isChecked ? filtroCli.valoreInt : 0;
|
||||
if (filtroCli.isChecked)
|
||||
{
|
||||
memLayer.ML.setSessionVal("idxCli_sel", filtroCli.valore);
|
||||
}
|
||||
else
|
||||
{
|
||||
memLayer.ML.setSessionVal("idxCli_sel", "");
|
||||
}
|
||||
// salvo!
|
||||
var tempFilt = currFiltProj;
|
||||
tempFilt.filtCli = filtroCli.isChecked;
|
||||
@@ -262,7 +259,6 @@ namespace GPW_Admin.WebUserControls
|
||||
showVuoti = currFilt.showEmpty;
|
||||
showOnlyStarred = currFilt.onlyStarred;
|
||||
filtroCli.isChecked = currFilt.filtCli;
|
||||
idxCliSel = filtroCli.isChecked ? filtroCli.valoreInt : 0;
|
||||
filtroGrp.isChecked = currFilt.filtGrp;
|
||||
// se deselezionato --> svuoto
|
||||
if (!currFilt.filtGrp)
|
||||
@@ -613,7 +609,7 @@ namespace GPW_Admin.WebUserControls
|
||||
try
|
||||
{
|
||||
idxCli = DataProxy.DP.taAP.getByIdxPrj(idxProgetto)[0].idxCliente;
|
||||
idxCliSel = idxCli;
|
||||
memLayer.ML.setSessionVal("idxCli_sel", $"{idxCli}");
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
|
||||
Reference in New Issue
Block a user