fix con indici e semplificazione refresh su disp periodica data la zona...
This commit is contained in:
Binary file not shown.
@@ -39,10 +39,19 @@ namespace WebSCR.WebUserControls
|
||||
txtCerca.Text = memLayer.ML.StringSessionObj("currDoc");
|
||||
if (memLayer.ML.isInSessionObject("currDoc"))
|
||||
{
|
||||
if (memLayer.ML.CRI("_logLevel") > 5)
|
||||
{
|
||||
logger.lg.scriviLog("doUpdate - INIZIO refresh x search");
|
||||
}
|
||||
ddlAnno.DataBind();
|
||||
// salvo anno..
|
||||
memLayer.ML.setSessionVal("yearSel", ddlAnno.SelectedValue);
|
||||
refreshSearch();
|
||||
|
||||
if (memLayer.ML.CRI("_logLevel") > 5)
|
||||
{
|
||||
logger.lg.scriviLog("doUpdate - FINE refresh x search");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -106,8 +115,16 @@ namespace WebSCR.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
protected void txtCerca_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (memLayer.ML.CRI("_logLevel") > 5)
|
||||
{
|
||||
logger.lg.scriviLog("txtCerca_TextChanged - INIZIO refresh x search");
|
||||
}
|
||||
refreshSearch();
|
||||
reportEvent();
|
||||
if (memLayer.ML.CRI("_logLevel") > 5)
|
||||
{
|
||||
logger.lg.scriviLog("txtCerca_TextChanged - FINE refresh x search");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// refresh search da documento
|
||||
@@ -120,9 +137,18 @@ namespace WebSCR.WebUserControls
|
||||
{
|
||||
try
|
||||
{
|
||||
if (memLayer.ML.CRI("_logLevel") > 5)
|
||||
{
|
||||
logger.lg.scriviLog("refreshSearch - PRE search");
|
||||
}
|
||||
riga = DtProxy.man.taVcz.getBySearch(ricerca, Convert.ToInt32(ddlAnno.SelectedValue))[0];
|
||||
if (riga != null)
|
||||
{
|
||||
|
||||
if (memLayer.ML.CRI("_logLevel") > 5)
|
||||
{
|
||||
logger.lg.scriviLog("refreshSearch - post search popolo dati");
|
||||
}
|
||||
lblCliente.Text = string.Format("<b>{0}</b><br />{1} ", riga.RagSoc, riga.Indir);
|
||||
lblIndirizzo.Text = string.Format("{0} | {1}", riga.Localita, riga.Prov);
|
||||
lblZona.Text = riga.Zona;
|
||||
@@ -132,6 +158,10 @@ namespace WebSCR.WebUserControls
|
||||
}
|
||||
else
|
||||
{
|
||||
if (memLayer.ML.CRI("_logLevel") > 5)
|
||||
{
|
||||
logger.lg.scriviLog("refreshSearch - riga vuota");
|
||||
}
|
||||
memLayer.ML.emptySessionVal("currDoc");
|
||||
}
|
||||
}
|
||||
@@ -149,10 +179,18 @@ namespace WebSCR.WebUserControls
|
||||
|
||||
protected void ddlAnno_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (memLayer.ML.CRI("_logLevel") > 5)
|
||||
{
|
||||
logger.lg.scriviLog("ddlAnno_SelectedIndexChanged - INIZIO refresh x search");
|
||||
}
|
||||
// salvo anno
|
||||
memLayer.ML.setSessionVal("yearSel", ddlAnno.SelectedValue);
|
||||
refreshSearch();
|
||||
reportEvent();
|
||||
if (memLayer.ML.CRI("_logLevel") > 5)
|
||||
{
|
||||
logger.lg.scriviLog("ddlAnno_SelectedIndexChanged - FINE refresh x search");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -398,8 +398,13 @@ namespace WebSCR.WebUserControls
|
||||
{
|
||||
errorMess = "Selezionato Documento";
|
||||
lblWarning.Text = errorMess;
|
||||
refreshDetail();
|
||||
mod_giornata.doUpdate();
|
||||
|
||||
// 2016.02.03 semplificato udpate a SOLO disp periodo (zona)
|
||||
//refreshDetail();
|
||||
//mod_giornata.doUpdate();
|
||||
|
||||
mod_dispPeriodo.Zona = mod_filtroZona.Zona;
|
||||
mod_dispPeriodo.doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// refresh detail
|
||||
@@ -427,11 +432,6 @@ namespace WebSCR.WebUserControls
|
||||
mod_dispPeriodo.doUpdate();
|
||||
mod_impegno.doUpdate();
|
||||
mod_dettInt.doUpdate();
|
||||
|
||||
#if false
|
||||
// check reset data
|
||||
resetDocMatr();
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user