//private string cargarmenu(int Perfil, string opc) //{ // string sub = ""; // switch (Perfil) // { // case 1: // sub = "<h2 style='font-family: Tahoma; color: #0066CC; font-weight: normal; font-size: 15px;'>" + opc + "</h2><p><a href='pais.aspx' style='font-size: 12px'>Pais</a><a href='provincia.aspx' style='font-size: 12px'>Provincias</a><a href='ciudad.aspx' style='font-size: 12px'>Ciudades</a><a href='costoenvio.aspx' style='font-size: 12px'>Costo de Envio</a></p>"; // break; // case 2: // sub = "<h2 style='font-family: Tahoma; color: #0066CC; font-weight: normal; font-size: 15px;'>" + opc + "</h2><p><a href='nosotro.aspx' style='font-size: 12px'>Nosotros</a><a href='misionvision.aspx' style='font-size: 12px;'>Misión y Visión</a><a href='noticias.aspx' style='font-size: 12px;'>Noticias</a><a href='ofertas.aspx' style='font-size: 12px'>Ofertas</a><a href='empresa.aspx' style='font-size: 12px'>Sucursales</a></p>"; // //sub = "<h2 style='font-family: Tahoma; color: #0066CC; font-weight: normal; font-size: 15px;'>" + opc + "</h2><p><a href='nosotro.aspx' style='font-size: 12px'>Nosotros</a><a href='misionvision.aspx' style='font-size: 12px;'>Misión y Visión</a><a href='noticias.aspx' style='font-size: 12px;'>Noticias</a><a href='ofertas.aspx' style='font-size: 12px'>Ofertas</a><a href='empresa.aspx' style='font-size: 12px'>Sucursales</a></p>"; // break; // case 3: // sub = "<h2 style='font-family: Tahoma; color: #0066CC; font-weight: normal; font-size: 15px;'>" + opc + "</h2><p><a href='categoria.aspx' style='font-size: 12px'>Categoria</a><a href='subcategoria.aspx' style='font-size: 12px'>Sub-Categoria</a><a href='marca.aspx' style='font-size: 12px'>Marca</a><a href='items.aspx' style='font-size: 12px'>Ingreso de producto</a><a href='asignarproducto.aspx' style='font-size: 12px'>Productos sin marca</a><a href='asignarproductosub.aspx' style='font-size: 12px'>Productos sin sub-categoria</a></p>";//<a href='imagenes.aspx' style='font-size: 12px'>Imagenes de producto</a> // break; // case 4: // sub = "<h2 style='font-family: Tahoma; color: #0066CC; font-weight: normal; font-size: 15px;'>" + opc + "</h2><p><a href='usuadministrador.aspx' style='font-size: 12px'>Nuevo Usuario</a><a href='perfil.aspx' style='font-size: 12px'>Asignar Perfil</a>";//<a href='claves.aspx' style='font-size: 12px'>Cambiar Claves</a></p>"; // break; // case 5: // sub = "<h2 style='font-family: Tahoma; color: #0066CC; font-weight: normal; font-size: 15px;'>" + opc + "</h2><p><a href='usucliente.aspx' style='font-size: 12px'>Consultas Usuario</a></p>"; // break; // case 6: // sub = "<h2 style='font-family: Tahoma; color: #0066CC; font-weight: normal; font-size: 15px;'>" + opc + "</h2><p><a href='galeriafoto.aspx' style='font-size: 12px'>Imagenes</a></p>"; // break; // case 7: // sub = "<h2 style='font-family: Tahoma; color: #0066CC; font-weight: normal; font-size: 15px;'>" + opc + "</h2><p><a href='rproductos.aspx' style='font-size: 12px'>Productos</a><a href='rtransacciones.aspx' style='font-size: 12px'>Transacciones</a><a href='inventario.aspx' style='font-size: 12px'>Inventario</a></p>"; // break; // case 9: // sub = "<h2 style='font-family: Tahoma; color: #0066CC; font-weight: normal; font-size: 15px;'>" + opc + "</h2><p><a href='promociones.aspx' style='font-size: 12px'>Promociones/Publicidad</a></p>"; // break; // case 10: // sub = "<h2 style='font-family: Tahoma; color: #0066CC; font-weight: normal; font-size: 15px;'>" + opc + "</h2><p><a href='servicios.aspx' style='font-size: 12px'>Servicios</a><a href='categoria_serv.aspx' style='font-size: 12px'>Categorias Servicios</a></p>"; // break; // } // return sub; //} private void consutarinbox() { ServicioCom21.ServicioCom21 _consulta = new ServicioCom21.ServicioCom21(); DataSet _ds = _consulta.Com21_consulta_inbox_outbox(); if (_ds.Tables[2].Rows.Count > 0) { imgEmailNL.ImageUrl = "~/images/mail_1_3.png"; } else { imgEmailNL.ImageUrl = "~/images/mail_1.png"; } }
private void cargarOutbox() { ServicioCom21.ServicioCom21 _consulta = new ServicioCom21.ServicioCom21(); DataSet _categoria = _consulta.Com21_consulta_inbox_outbox(); if (_categoria.Tables[1].Rows.Count > 0) { pSBS.Visible = true; pNBS.Visible = false; GvCorreoS.DataSource = _categoria.Tables[1]; GvCorreoS.DataBind(); } else { pSBS.Visible = false; pNBS.Visible = true; } }
private void cargarInbox() { ServicioCom21.ServicioCom21 _consulta = new ServicioCom21.ServicioCom21(); DataSet _categoria = _consulta.Com21_consulta_inbox_outbox(); if (_categoria.Tables[0].Rows.Count > 0) { pSBE.Visible = true; pNBE.Visible = false; GvCorreoE.DataSource = _categoria.Tables[0]; GvCorreoE.DataBind(); GridView row = this.GvCorreoE; HiddenField _leido = default(HiddenField); ImageButton _lei = default(ImageButton); foreach (GridViewRow r in row.Rows) { _leido = (HiddenField)r.FindControl("Leido"); _lei = (ImageButton)r.FindControl("VerEditar"); if (_leido.Value == "2") { _lei.ImageUrl = "~/images/64_email.png"; } else { _lei.ImageUrl = "~/images/64_email2.png"; } } } else { pSBE.Visible = false; pNBE.Visible = true; } }