Files
MoonPro.net/MP-TAB/Commenti.aspx.cs
T
2020-09-14 21:25:58 +02:00

69 lines
2.0 KiB
C#

using SteamWare;
using System;
namespace MoonProTablet
{
public partial class Commenti : BasePage
{
protected void Page_Load(object sender, EventArgs e)
{
Session["TipoLink"] = "EditMacch";
mod_insComm1.eh_newVal += mod_insComm1_eh_newVal;
mod_insComm1.eh_reset += mod_insComm1_eh_reset;
mod_insComm1.eh_inserting += mod_insComm1_eh_inserting;
mod_commenti1.eh_reqEdit += mod_commenti1_eh_reqEdit;
mod_fermate1.eh_reqEdit += mod_fermate1_eh_reqEdit;
}
void mod_fermate1_eh_reqEdit(object sender, EventArgs e)
{
// avendo in sessione inizio fermata DEVO andare a pagina DichFermi, in modalità "ritroso", precompilare data/ora ed eventuale descizione...
Response.Redirect("Fermate.aspx");
}
void mod_insComm1_eh_inserting(object sender, EventArgs e)
{
}
void mod_commenti1_eh_reqEdit(object sender, EventArgs e)
{
mod_insComm1.caricaCommento();
}
void mod_insComm1_eh_reset(object sender, EventArgs e)
{
showPnlDichiaraz(false);
mod_commenti1.doUpdate();
}
void mod_insComm1_eh_newVal(object sender, EventArgs e)
{
mod_commenti1.doUpdate();
}
void mod_dichiarazione1_eh_newVal(object sender, EventArgs e)
{
// ricarico tutto!
Response.Redirect("Commenti.aspx");
}
void mod_commenti1_eh_reset(object sender, EventArgs e)
{
showPnlDichiaraz(false);
}
/// <summary>
/// richiesta ins nuovo evento...
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
void mod_commenti1_eh_newVal(object sender, EventArgs e)
{
showPnlDichiaraz(true);
}
private void showPnlDichiaraz(bool showDich)
{
pnlEventi.Visible = !showDich;
}
}
}