pulizia eventi gestione calendario...

This commit is contained in:
Samuele E. Locatelli
2016-01-20 18:32:58 +01:00
parent 5b5ddd43cd
commit b8f9180e6d
9 changed files with 0 additions and 52 deletions
Binary file not shown.
@@ -30,8 +30,6 @@ namespace WebSCR.WebUserControls
{
data = Convert.ToDateTime(qsVal("Data"));
}
DayPilotCalendar1.TimeRangeSelected += DayPilotCalendar1_TimeRangeSelected;
DayPilotCalendar1.EventMove += DayPilotCalendar1_EventMove;
DayPilotCalendar1.Days = day2show;
}
@@ -132,56 +130,6 @@ namespace WebSCR.WebUserControls
}
}
/// <summary>
/// evento selezione periodo inizio
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void DayPilotCalendar1_TimeRangeSelected(object sender, DayPilot.Web.Ui.Events.TimeRangeSelectedEventArgs e)
{
#if false
// verifico di avere la squadra selezionata...
if (memLayer.ML.StringSessionObj("elencoSquadre").Length > 0)
{
// verifico di avere MatrOP selezionata
if (memLayer.ML.isInSessionObject("matrOp"))
{
// verifico di avere DOC selezionato...
if (memLayer.ML.StringSessionObj("currDoc").Length > 0)
{
// recupero OC se in sessione...
string doc = memLayer.ML.StringSessionObj("currDoc");
// tolto doc default a zero...
//if (doc == "") doc = "OC00000000";
// prendo la squadra selezionata
//string squadra = mod_selSquadre.selected[0].ToString();
string squadra = memLayer.ML.StringSessionObj("elencoSquadre").Split(',')[0].ToString();
// selezionato periodo, salvo evento inizio...
DtProxy.man.taImp.insertQuery(e.Start, "INDIC", squadra, doc, yearSel);
// consumo il doc selezionato e quindi rimuovo da sessione...
memLayer.ML.emptySessionVal("currDoc");
// rimuovo matrOp
memLayer.ML.emptySessionVal("matrOp");
// segno refresh FULL necessario
needRefresh = true;
}
else
{
errMessGiorn = "Prego indicare documento OC/DC per procedere";
}
}
else
{
errMessGiorn = "Prego indicare Matricola Operatore per procedere";
}
}
else
{
errMessGiorn = "Prego selezionare UNA squadra per procedere";
}
doUpdate();
#endif
}
#if false
/// <summary>
/// richiesta refresh COMPLETO della pagina
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.