using System; using System.Collections.Generic; using System.Linq; using System.Web; using GPW_data; using SteamWare; using System.Globalization; using System.Web.UI; using System.Web.UI.WebControls; namespace GPW_Commesse { public class BaseUserControl : System.Web.UI.UserControl { /// /// Evento cancel /// public event EventHandler ehCancel; /// /// Evento save /// public event EventHandler ehSave; /// /// Sollevo evento cancel /// protected void raiseCancel() { if (ehCancel != null) { ehCancel(this, new EventArgs()); } } /// /// Sollevo evento save /// protected void raiseSave() { if (ehSave != null) { ehSave(this, new EventArgs()); } } /// /// Verifica se il valore sia > 0 /// /// /// public bool gtZero(object _valore) { bool answ = false; decimal valore = 0; decimal.TryParse(_valore.ToString(), out valore); answ = valore > 0; return answ; } /// /// idxDipendente in sessione /// protected int idxDip { get { return memLayer.ML.IntSessionObj("idxDipBCode"); } set { memLayer.ML.setSessionVal("idxDipBCode", value); } } } }