using AppData; using SteamWare; using System; namespace C_TRACK.WebUserControls { public partial class mod_checkPost : System.Web.UI.UserControl { protected void Page_Load(object sender, EventArgs e) { // se ho operatore in sessione ma NON HO postazione... cerco di recuperare postazione if (CodOpr != "" && CodPost == "") { // cerco da tab se ha una postazione (prendo la prima...) var righeOpr = dataLayer.man.taAP.getByOpr(CodOpr); if (righeOpr.Rows.Count > 0) { CodPost = righeOpr[0].CodPost; } } // verifico di avere CodOpr in sessione... if (CodPost == "") { // mostro warning.. divWarning.Visible = true; // se NON sono in pagina bcode --> rimando a richiesta dichiarazione POSTAZIONE (con BARCODE) if (devicesAuthProxy.pagCorrente != "barcode") { Response.Redirect("~/barcode"); } } else { divWarning.Visible = false; } } /// /// Codice postazione di lavoro /// public string CodPost { get { return memLayer.ML.StringSessionObj("CodPost"); } set { memLayer.ML.setSessionVal("CodPost", value); memLayer.ML.emptySessionVal("DescPost"); } } /// /// Codice postazione di lavoro /// public string CodOpr { get { return memLayer.ML.StringSessionObj("CodOpr"); } } } }