Files
MoonPro.net/MP-TAB/WebUserControls/cmp_selPzPallet.ascx.cs
T
2018-10-25 23:55:06 +02:00

51 lines
1.0 KiB
C#

using SteamWare;
using System;
namespace MoonProTablet.WebUserControls
{
public partial class cmp_selPzPallet : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
/// <summary>
/// Valore PzPallet selezionato
/// </summary>
public int pzPallet
{
get
{
int answ = 1;
// provo a recuperare pz Pallet
int.TryParse(ddlPzPallet.SelectedValue, out answ);
return answ;
}
set
{
try
{
ddlPzPallet.SelectedValue = value.ToString();
}
catch (Exception exc)
{
logger.lg.scriviLog(string.Format("Errore in assegnazione pz pallet ({0}){1}{2}", value, Environment.NewLine, exc), tipoLog.EXCEPTION);
}
}
}
/// <summary>
/// Imposta abilitazione alla modifica
/// </summary>
public bool enableSet
{
get
{
return ddlPzPallet.Enabled;
}
set
{
ddlPzPallet.Enabled = value;
}
}
}
}