using SteamWare; using System; namespace MP_ADM { public partial class BCode : BasePage { #region Private Methods private void checkEnabled() { bool optPar = memLayer.ML.CRB("OptAdmBCodeEnabled"); divContent.Visible = optPar; string messaggio = ""; if (!optPar) { messaggio = "Attenzione: Gestione BarCode disabilitata"; } lblDataImportOut.Text = messaggio; } #endregion Private Methods #region Protected Methods protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { checkEnabled(); string codPre = memLayer.ML.CRS("OptAdmBCode_CodPre"); mod_barcode.codOrdPre = codPre != "" ? codPre : "OPR"; mod_gestPromODL.codOrdPre = mod_barcode.codOrdPre; mod_gestPromODL.enableSelFase = memLayer.ML.CRB("OptBCode_enbSelFase"); mod_gestPromODL.CodGruppo = memLayer.ML.CRS("OptBCode_CodGruppo"); ((MoonPro)this.Master).showSearch = true; } } #endregion Protected Methods } }