using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace ETS_WS.WebUserControls
{
public partial class mod_testataProt : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
txtDataProt.Text = DateTime.Now.ToShortDateString();
setNumProt();
}
}
///
/// imposta num protocollo (se richiesto) con colore ad indicare se tentative/confermato
///
protected void setNumProt()
{
if (chkDoProtocol.Checked)
{
chkDoProtocol.Text = "Protocollo";
lblNumProt.Text = "123456-2012";
}
else
{
chkDoProtocol.Text = "solo archivio";
lblNumProt.Text = " - ";
}
}
///
/// cambio scelta si/no protocollo
///
///
///
protected void chkDoProtocol_CheckedChanged(object sender, EventArgs e)
{
setNumProt();
}
}
}