private void BibliotecaAll()
        {
            // funcion inactiva , fuera de uso
            try
            {
                DataSet dsBiblioteca = oCoon.ejecutarDataSet("UP_WEBSIGE_CLIENTE_OBTENERFOTOSBIBLIOTECAPOP", Convert.ToInt32(this.Session["companyid"]), this.Session["categoria"].ToString().Trim(), Convert.ToInt32(this.Session["id_Brand"]), Convert.ToInt32(this.Session["id_material"]), this.Session["Canal"].ToString().Trim());
                if (this.Session["Canal"].ToString().Trim() == "0")
                {
                    Table = 0;
                }
                else
                {
                    Table = 1;
                }
                //ListViewBiblioteca.DataSource = dsBiblioteca.Tables[Table];
                //ListViewBiblioteca.DataBind();

                ListViewBibliotecaPOP.DataSource = dsBiblioteca.Tables[Table];
                ListViewBibliotecaPOP.DataBind();
            }
            catch (Exception ex)
            {
                Get_Administrativo.Get_Delete_Sesion_User(usersession.Text);
                this.Session.Abandon();
                Response.Redirect("~/err_mensaje_seccion.aspx", true);
            }
        }
 private void BibliotecaDetalle()
 {
     try
     {
         DataSet dsBibliotecaDetalle = Get_DataClientes.Get_ObtenerPOPDetallado(Convert.ToInt32(this.Session["Biblioteca"]));
         if (dsBibliotecaDetalle.Tables[0].Rows.Count > 0)
         {
             ListViewBibliotecaPOP.DataSource = dsBibliotecaDetalle.Tables[0];
             ListViewBibliotecaPOP.DataBind();
             if (dsBibliotecaDetalle.Tables[0].Rows.Count > 1)
             {
                 AfterListDataPager.Visible  = true;
                 BeforeListDataPager.Visible = true;
             }
             else
             {
                 AfterListDataPager.Visible  = false;
                 BeforeListDataPager.Visible = false;
             }
         }
     }
     catch (Exception ex)
     {
         Get_Administrativo.Get_Delete_Sesion_User(usersession.Text);
         this.Session.Abandon();
         Response.Redirect("~/err_mensaje_seccion.aspx", true);
     }
 }
Exemple #3
0
        protected void ListViewMateriales_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.Session["id_material"] = "0";
            //MarcaAgua.Style.Value = "position: absolute;top: 50%;left:50%; height: 390px; width:520px; margin-top: -165px; margin-left: -180px;  z-index: 2; background-position: center center;   background-repeat: no-repeat;  background-image: url('../ImgBooom/none.png');";
            LblMaterialSel.Visible          = true;
            CarrouselBiblioteca.Style.Value = "display:none;";
            ListBiblioteca.Style.Value      = "display:Block;  overflow: auto;  height: 420px; max-height: 420px;";
            ListViewBibliotecaPOP.DataBind();
            int   item          = Convert.ToInt32(this.Session["MaterialSeleccionado"]);
            Label lblidmaterial = new Label();

            lblidmaterial = ((Label)ListViewMateriales.Items[item].FindControl("idtipoMa"));
            this.Session["tipomaterial"] = lblidmaterial.Text;
            LblCategoriaSel.Text         = ((Label)ListViewMateriales.Items[item].FindControl("TipoMaDescripcion")).Text.ToUpper().ToString().Trim();
            LblMarcaSel.Text             = "Todas";
            LblMaterialSel.Text          = "TODOS";
            //Obtener_MenusMarcas();
            divMaterial.Style.Value = " width:188px;  max-height: 200px; overflow: auto;display:block;background-color:Transparent;";

            MenuMaterial.Items.Clear();
            divMaterial.Style.Value = "Display:block;";
            //divMarcas.Style.Value = " width:188px;  max-height: 45%; overflow-y: auto;display:block;background-color:Transparent;";
            Obtener_MenusMaterial();
            BibliotecaXMarca();
            //BibliotecaXMaterial();


            //CarrouselBiblioteca.Style.Value = "display:none;";
            //ListBiblioteca.Style.Value = "display:Block; padding-left: 20px; overflow: auto;  width: 98%; min-width: 98%; max-width:98%; height:99%; max-height:99%;";

            //divMaterial.Style.Value = " width:188px;  max-height: 55%; overflow-y: auto;display:block;background-color:Transparent;";
        }
        protected void ListViewCanales_SelectedIndexChanged(object sender, EventArgs e)
        {
            //MarcaAgua.Style.Value = "position: absolute;top: 50%;left:50%; height: 390px; width:520px; margin-top: -165px; margin-left: -180px;  z-index: 2; background-position: center center;   background-repeat: no-repeat;  background-image: url('../ImgBooom/none.png');";
            LblMaterialSel.Visible          = true;
            CarrouselBiblioteca.Style.Value = "display:none;";
            ListBiblioteca.Style.Value      = "display:Block;  overflow: auto;  height: 420px; max-height: 420px;";
            ListViewBibliotecaPOP.DataBind();
            int   item           = Convert.ToInt32(this.Session["CategoriaSeleccionada"]);
            Label lbCodcategoria = new Label();

            lbCodcategoria            = ((Label)ListViewCanales.Items[item].FindControl("idCategory"));
            this.Session["categoria"] = lbCodcategoria.Text;
            LblCategoriaSel.Text      = ((Label)ListViewCanales.Items[item].FindControl("nameCategory")).Text.ToUpper().ToString().Trim();
            LblMarcaSel.Text          = "Todas";
            LblMaterialSel.Text       = "TODOS";
            Obtener_MenusMarcas();
            MenuMaterial.Items.Clear();
            divMaterial.Style.Value = "Display:none;";
            divMarcas.Style.Value   = " width:188px;  max-height: 200px; overflow: auto;display:block;background-color:Transparent;";
            BibliotecaXCategorias();
        }