Fix comportamento date selezionate
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -48,7 +48,15 @@ namespace WebSCR.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
void mod_filtroPeriodo_eh_selData(object sender, EventArgs e)
|
||||
{
|
||||
refreshDetail();
|
||||
DateTime adesso = DateTime.Now;
|
||||
try
|
||||
{
|
||||
adesso = Convert.ToDateTime(mod_filtroPeriodo.dataFrom);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
Response.Redirect(string.Format("{0}?Data={1:yyyy-MM-dd}", devicesAuthProxy.pagCorrente, adesso));
|
||||
//refreshDetail();
|
||||
}
|
||||
/// <summary>
|
||||
/// recupera valore querystring
|
||||
@@ -137,6 +145,19 @@ namespace WebSCR.WebUserControls
|
||||
/// </summary>
|
||||
private void refreshDetail()
|
||||
{
|
||||
// ricarica eventuale data se in cookie e non in URL...
|
||||
if (qsVal("Data") == "")
|
||||
{
|
||||
DateTime adesso = DateTime.Now;
|
||||
try
|
||||
{
|
||||
//adesso = Convert.ToDateTime(memLayer.ML.StringSessionObj("DataRif"));
|
||||
adesso = Convert.ToDateTime(mod_filtroPeriodo.dataFrom);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
Response.Redirect(string.Format("{0}?Data={1:yyyy-MM-dd}", devicesAuthProxy.pagCorrente, adesso));
|
||||
}
|
||||
mod_dispPeriodo.DataFrom = mod_filtroPeriodo.dataFrom.ToString("yyyy-MM-dd");
|
||||
mod_dispPeriodo.NumGG = mod_filtroPeriodo.numGG.ToString();
|
||||
mod_dispPeriodo.Zona = mod_filtroZona.Zona;
|
||||
@@ -144,5 +165,6 @@ namespace WebSCR.WebUserControls
|
||||
mod_impegno.doUpdate();
|
||||
mod_dettInt.doUpdate();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user