Exemple #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (oPagina != null)
            {
                ClientScriptHelper.RegisterHeaderCSS("css/white.css", this.Page);

                FillContent();
            }
        }
Exemple #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            WSTimeOut = Convert.ToInt32(ConfigurationManager.AppSettings["WSTimeOut"]);
            if (!Page.IsPostBack)
            {
                FillContent();
            }

            ResetControls();

            ClientScriptHelper.RegisterHeaderScript(ClientScriptHelper.getURLHome() + "js/jquery.uniform.js", this.Page);
            ClientScriptHelper.RegisterHeaderCSS(ClientScriptHelper.getURLHome() + "css/uniform.default.css", this.Page);
            string pagina = ClientScriptHelper.getEnlace_Articulo(oPagina);
        }
Exemple #3
0
        private void FillContent()
        {
            ClientScriptHelper.RegisterHeaderCSS("css/jquery-ui.min.css", this.Page);
            ClientScriptHelper.RegisterHeaderScript("js/jquery-ui.min.js", this.Page);
            ClientScriptHelper.RegisterHeaderScript("js/datepicker-es.js", this.Page);

            if (!Page.IsPostBack)
            {
                DateTime today = DateTime.Now;
                //DateTime fechaIni = today.AddDays((today.Day * -1) + 1);
                DateTime fechaIni = today.AddDays(-7);
                DateTime fechaFin = today;

                txtFechaIni.Text  = fechaIni.ToString("dd/MM/yyyy");
                txtFechaFin.Text  = fechaFin.ToString("dd/MM/yyyy");
                paginador.Visible = false;
            }

            PrepareWSEX();
        }
        private void FillDetalle(int IdPromocion)
        {
            ClientScriptHelper.RegisterHeaderCSS("css/promociones.css", Page);

            ePromocion oItem = HttpServices.GetItem_Promocion(IdPromocion);

            if (oItem != null)
            {
                litTitulo.Text      = oItem.titulo;
                litDescripcion.Text = oItem.descripcion;
                litEstilos.Text     = "<style>" + oItem.estilos_css.Replace(".wrapper_interna section .container .caja", ".promociones_interna") + "</style>";
            }

            int IdPlantilla_Contacto = 27;
            int IdMenuWeb_Contacto   = 5;
            List <eArticulo> list    = lCMS.ArticuloPlantilla_listarWeb(IdPlantilla_Contacto, IdMenuWeb_Contacto, oSeccionWeb.IdIdioma);

            if (list.Count > 0)
            {
                lnkContactanos.NavigateUrl = ClientScriptHelper.getEnlace_Articulo(list[0]);
            }
        }
Exemple #5
0
        private void FillContent()
        {
            if (oSeccionWeb != null)
            {
                ClientScriptHelper.RegisterHeaderCSS("css/white.css", this.Page);

                UserControl  oUcRuta = (UserControl)Page.LoadControl(string.Format("~/uc/ruta.ascx"));
                WebContentUC ucRuta  = (WebContentUC)oUcRuta;
                pnlRuta.Controls.Add(oUcRuta);
                LoadUserControl(ucRuta, oSeccionWeb);

                if (oSeccionWeb.VerMenu)
                {
                    UserControl  oUcSubmenu = (UserControl)Page.LoadControl(string.Format("~/uc/submenu.ascx"));
                    WebContentUC ucSubmenu  = (WebContentUC)oUcSubmenu;
                    plhSubmenu.Controls.Add(oUcSubmenu);
                    LoadUserControl(ucSubmenu, oSeccionWeb);
                }


                //Cargar BuscadorProductos
                UserControl  oUcBuscador = (UserControl)Page.LoadControl(string.Format("~/uc/buscardorProductos.ascx"));
                WebContentUC ucBuscador  = (WebContentUC)oUcBuscador;
                plhBuscadorProductos.Controls.Add(oUcBuscador);
                LoadUserControl(ucBuscador, oSeccionWeb);

                //Cargar Home de sección, dependiendo del ID
                string uc_acceso = "";

                switch (oSeccionWeb.IdMenuWeb)
                {
                case 2: uc_acceso = "home_compania";
                    break;

                case 3: uc_acceso = "home_inversionistas";
                    break;

                case 4: uc_acceso = "home_productos";
                    break;

                case 5: uc_acceso = "home_responsabilidad";
                    break;

                case 6: uc_acceso = "home_novedades";
                    break;
                }


                if (uc_acceso != "")
                {
                    UserControl  oUcHomeNivel = (UserControl)Page.LoadControl(string.Format("~/uc/content/" + uc_acceso + ".ascx"));
                    WebContentUC ucHomeNivel  = (WebContentUC)oUcHomeNivel;
                    plhHomeNivel.Controls.Add(oUcHomeNivel);
                    LoadUserControl(ucHomeNivel, oSeccionWeb);
                    litTituloSubMenu.Text = oSeccionWeb.Titulo;
                    if (oSeccionWeb.ImagenSeccion != null)
                    {
                        divBanner.Style["background-image"] = "url(" + ClientScriptHelper.getURLHome() + Directorio.Seccion_Imagen + oSeccionWeb.ImagenSeccion + ")";
                    }
                }
            }
        }