46 lines
1.3 KiB
C#
46 lines
1.3 KiB
C#
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();
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// imposta num protocollo (se richiesto) con colore ad indicare se tentative/confermato
|
|
/// </summary>
|
|
protected void setNumProt()
|
|
{
|
|
if (chkDoProtocol.Checked)
|
|
{
|
|
chkDoProtocol.Text = "Protocollo";
|
|
lblNumProt.Text = "123456-2012";
|
|
}
|
|
else
|
|
{
|
|
chkDoProtocol.Text = "solo archivio";
|
|
lblNumProt.Text = " - ";
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// cambio scelta si/no protocollo
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
protected void chkDoProtocol_CheckedChanged(object sender, EventArgs e)
|
|
{
|
|
setNumProt();
|
|
}
|
|
}
|
|
} |