Fix errori SAO
- si potevano cancellare anche UDC già cancellati
- errore insalvataggio postazione ("*") poiché svuotata in pageload
- fix visualizzazione udc storico che restava in memoria al cambio di dati di filtraggio
This commit is contained in:
@@ -273,6 +273,7 @@ namespace GMW.WebUserControls
|
||||
filtroAzioni.eh_selValore += new EventHandler(filtroAzioni_eh_selValore);
|
||||
filtroParticolare.eh_selValore += new EventHandler(filtroParticolare_eh_selValore);
|
||||
filtroUDC.eh_selValore += new EventHandler(filtroUDC_eh_selValore);
|
||||
mod_periodoAnalisi1.eh_doUpdate += new EventHandler(mod_periodoAnalisi1_eh_doUpdate);
|
||||
traduciObj();
|
||||
}
|
||||
|
||||
@@ -329,7 +330,7 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
btnElimina.Visible = true;
|
||||
bool abilita = false;
|
||||
if (idxEvento > 0 && udcSel != "")
|
||||
if (idxEvento > 0 && udcSel != "" && MagClass.magazzino.checkUDC(udcSel))
|
||||
{
|
||||
abilita = true;
|
||||
}
|
||||
@@ -394,6 +395,8 @@ namespace GMW.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
protected void btnElimina_Click(object sender, EventArgs e)
|
||||
{
|
||||
//in primis ricalcolo la postazione...
|
||||
calcolaPostazione();
|
||||
/**********************************************
|
||||
* controllo che l'UDC
|
||||
* - esista
|
||||
@@ -438,6 +441,8 @@ namespace GMW.WebUserControls
|
||||
// reset finale
|
||||
resetSelezione();
|
||||
}
|
||||
// resetto postazione...
|
||||
postazione_name = "*";
|
||||
}
|
||||
/// <summary>
|
||||
/// reset della selezione
|
||||
@@ -490,6 +495,7 @@ namespace GMW.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
public void filtroPostazione_eh_selValore(object sender, EventArgs e)
|
||||
{
|
||||
resetSelezione();
|
||||
postazione_name = filtroPostazione.valore;
|
||||
checkFixOds();
|
||||
}
|
||||
@@ -500,6 +506,7 @@ namespace GMW.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
void filtroSoggetto_eh_selValore(object sender, EventArgs e)
|
||||
{
|
||||
resetSelezione();
|
||||
CodSoggettoSAO = filtroSoggetto.valore;
|
||||
checkFixOds();
|
||||
}
|
||||
@@ -510,6 +517,7 @@ namespace GMW.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
void filtroAzioni_eh_selValore(object sender, EventArgs e)
|
||||
{
|
||||
resetSelezione();
|
||||
CodAzioneUt = filtroAzioni.valore;
|
||||
checkFixOds();
|
||||
}
|
||||
@@ -520,6 +528,7 @@ namespace GMW.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
void filtroUDC_eh_selValore(object sender, EventArgs e)
|
||||
{
|
||||
resetSelezione();
|
||||
UdcSAO = filtroUDC.valore;
|
||||
checkFixOds();
|
||||
}
|
||||
@@ -530,6 +539,7 @@ namespace GMW.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
void filtroParticolare_eh_selValore(object sender, EventArgs e)
|
||||
{
|
||||
resetSelezione();
|
||||
ParticSAO = filtroParticolare.valore;
|
||||
checkFixOds();
|
||||
}
|
||||
@@ -540,6 +550,18 @@ namespace GMW.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
protected void txtNumRighe_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
resetSelezione();
|
||||
aggiornaControlliDataGL();
|
||||
checkFixOds();
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiornamento dati
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void mod_periodoAnalisi1_eh_doUpdate(object sender, EventArgs e)
|
||||
{
|
||||
resetSelezione();
|
||||
aggiornaControlliDataGL();
|
||||
checkFixOds();
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user