93 lines
2.2 KiB
C#
93 lines
2.2 KiB
C#
using AppData;
|
|
using Newtonsoft.Json;
|
|
using SteamWare;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
|
|
namespace C_TRACK
|
|
{
|
|
public class BaseUserControl : System.Web.UI.UserControl
|
|
{
|
|
#region Public Events
|
|
|
|
protected dataLayer DLMan = new dataLayer();
|
|
|
|
/// <summary>
|
|
/// Generico evento di richiesta refresh a aprent
|
|
/// </summary>
|
|
public event EventHandler eh_doRefresh;
|
|
|
|
/// <summary>
|
|
/// Generico evento di richiesta refresh a aprent
|
|
/// </summary>
|
|
public event EventHandler eh_doReset;
|
|
|
|
#endregion Public Events
|
|
|
|
#region Protected Properties
|
|
|
|
/// <summary>
|
|
/// Codice operatore salvato in cookie
|
|
/// </summary>
|
|
protected string cookieCodOpr
|
|
{
|
|
get
|
|
{
|
|
return memLayer.ML.getCookieVal("CTrack_CodOpr");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Codice post salvato in cookie
|
|
/// </summary>
|
|
protected string cookieCodPost
|
|
{
|
|
get
|
|
{
|
|
return memLayer.ML.getCookieVal("CTrack_CodPost");
|
|
}
|
|
}
|
|
|
|
#endregion Protected Properties
|
|
|
|
#region Public Methods
|
|
|
|
/// <summary>
|
|
/// Chiamata evento
|
|
/// </summary>
|
|
public void raiseEvent()
|
|
{
|
|
// se qualcuno ascolta sollevo evento nuovo valore...
|
|
if (eh_doRefresh != null)
|
|
{
|
|
eh_doRefresh(this, new EventArgs());
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Chiamata evento
|
|
/// </summary>
|
|
public void raiseReset()
|
|
{
|
|
// se qualcuno ascolta sollevo evento nuovo valore...
|
|
if (eh_doReset != null)
|
|
{
|
|
eh_doReset(this, new EventArgs());
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Wrapper traduzione termini
|
|
/// </summary>
|
|
/// <param name="lemma"></param>
|
|
/// <returns></returns>
|
|
public string traduci(string lemma)
|
|
{
|
|
return SteamWare.user_std.UtSn.Traduci(lemma);
|
|
}
|
|
|
|
#endregion Public Methods
|
|
}
|
|
} |