protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                conexion = new Conexion();

                tab_tienda.InnerHtml = "    <div class=\"navbar\"> " + "<div class=\"navbar-inner\">" +
                                       "<h6>Productos</h6>" +
                                       "  <div class=\"nav pull-right\">" +
                                       "<a href=\"#\" class=\"dropdown-toggle just-icon\" data-toggle=\"dropdown\"><i class=\"font-cog\"></i></a>" +
                                       "<ul class=\"dropdown-menu pull-right\">" +
                                       "<li><a href=\"#\"><i class=\"font-heart\"></i>Favorite it</a></li>" +
                                       "<li><a href=\"#\"><i class=\"font-refresh\"></i>Reload page</a></li>" +
                                       "<li><a href=\"#\"><i class=\"font-link\"></i>Attach something</a></li>" +
                                       "</ul>" +
                                       "</div>" +
                                       "</div>" +
                                       "</div>" + Llenar_Productos();

                DataSet ds = conexion.Mostrar("Bodega B, Producto P Where B.producto = P.producto and B.Cantidad > 0", "B.Producto PROD, P.Abreviatura ABRE");
                producto.DataSource     = ds;
                producto.DataTextField  = "ABRE";
                producto.DataValueField = "PROD";
                producto.DataBind();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                conexion = new Conexion();

                tab_producto.InnerHtml = "    <div class=\"navbar\"> " + "<div class=\"navbar-inner\">" +
                                         "<h6>Productos</h6>" +
                                         "  <div class=\"nav pull-right\">" +
                                         "<a href=\"#\" class=\"dropdown-toggle just-icon\" data-toggle=\"dropdown\"><i class=\"font-cog\"></i></a>" +
                                         "<ul class=\"dropdown-menu pull-right\">" +
                                         "<li><a href=\"#\"><i class=\"font-heart\"></i>Favorite it</a></li>" +
                                         "<li><a href=\"#\"><i class=\"font-refresh\"></i>Reload page</a></li>" +
                                         "<li><a href=\"#\"><i class=\"font-link\"></i>Attach something</a></li>" +
                                         "</ul>" +
                                         "</div>" +
                                         "</div>" +
                                         "</div>" + Llenar_Productos();

                DataSet ds = conexion.Mostrar("Tipo", "Tipo,Descripcion");

                tipopro.DataSource     = ds;
                tipopro.DataTextField  = "Descripcion";
                tipopro.DataValueField = "Tipo";
                tipopro.DataBind();
            }
        }
Beispiel #3
0
        private string LLenar_Tabla()
        {
            string columnas  = " c.Nombre, c.Apellido, sum(d.Cantidad) Cantidad, SUM( p.Abono) Abonado, SUM(d.Cantidad) - SUM( p.Abono) 'Deuda' \n ";
            string condicion =
                " Deuda d join Cliente c on d.Cliente = c.Cliente left join Pago p on p.Deuda = d.Deuda \n" +
                " group by c.Nombre, c.Apellido \n" +
                " having SUM(p.Abono) < SUM(d.Cantidad) or SUM(p.Abono) is null \n" +
                " order by SUM(d.Cantidad) desc "
            ;
            DataSet roles = conn.Mostrar(condicion, columnas);
            String  data  = "No hay Productos Disponibles";

            if (roles.Tables.Count > 0)
            {
                data = "<div class=\"table-overflow\"> " +
                       "<table class=\"table table-striped table-bordered\" id=\"data-table\">" +
                       "<thead>" +
                       "<tr>" +
                       " <th  align =\"center\">Nombre</th>" +
                       "<th align =\"center\">Apellido</th>" +
                       "<th align =\"center\">Cantidad</th>" +
                       "<th align =\"center\">Abonado</th>" +
                       "<th align =\"center\">Deuda</th>" +
                       "</tr>" +
                       "</thead>" + "<tbody>";

                foreach (DataRow item in roles.Tables[0].Rows)
                {
                    data += "<tr>" +
                            "<td id=\"codigo\" runat=\"server\" align =\"Center\">" + item["Nombre"].ToString() + "</td>" +
                            "<td>" + item["Apellido"].ToString() + "</td>" +
                            "<td>" + item["Cantidad"].ToString() + "</td>";

                    if (item["Abonado"].ToString().Equals(""))
                    {
                        data += "<td> 0,00 </td>" +
                                "<td>" + item["Cantidad"].ToString() + "</td>" +
                                "</tr>"
                        ;
                    }
                    else
                    {
                        data += "<td>" + item["Abonado"].ToString() + "</td>" +
                                "<td>" + item["Deuda"].ToString() + "</td>" +
                                "</tr>"
                        ;
                    }
                }


                data += "</tbody>" +
                        "</table>" +
                        "</div>" +
                        "</div>";
            }
            return(data);
        }
Beispiel #4
0
        protected String Llenar_Roles()
        {
            Conexion conexion  = new Conexion();
            string   Columnas  = " c.Cliente Nombre, c.Apellido Apellido, u.Usuario Vendedor, Fecha , Total ";
            string   Condicion = "Venta v, Cliente c, Usuario u" +
                                 "where v.Cliente = c.Cliente" +
                                 "and v.Usuario = u.Usuario" +
                                 "and Fecha = '20150108'";
            DataSet clientes = conexion.Mostrar(Condicion, Columnas);
            String  data     = "No hay Ventas Disponibles";

            if (clientes.Tables.Count > 0)
            {
                data = "<div class=\"table-overflow\"> " +
                       "<div class=\"well\">" +
                       "<div class=\"control-group\">" +
                       "<label class=\"control-label\">Default datepicker:</label>" +
                       "<div class=\"controls\">" +
                       "<input type=\"text\" class=\"datepicker\" />" +
                       "</div>" +
                       "</div>" +
                       "</div>" +
                       "<table class=\"table table-striped table-bordered\" id=\"data-table\">" +
                       "<thead>" +
                       "<tr>" +
                       "<th  align =\"center\">Nombre</th>" +
                       "<th  align =\"center\">Apellido</th>" +
                       " <th  align =\"center\">Vendedor</th>" +
                       " <th  align =\"center\">Fecha</th>" +
                       " <th  align =\"center\">Total</th>" +
                       "</tr>" +
                       "</thead>" + "<tbody>";

                foreach (DataRow item in clientes.Tables[0].Rows)
                {
                    data += "<tr>" +
                            "<td id=\"codigo\" runat=\"server\" align =\"Center\">" + item["Nombre"].ToString() + "</td>" +
                            "<td id=\"codigo\" runat=\"server\" >" + item["Apellido"].ToString() + "</td>" +
                            "<td id=\"codigo\" runat=\"server\" align =\"Center\">" + item["Vendedor"].ToString() + "</td>" +
                            "<td id=\"codigo\" runat=\"server\" align =\"Center\">" + item["Fecha"].ToString() + "</td>" +
                            "<td id=\"codigo\" runat=\"server\" align =\"Center\">" + item["Total"].ToString() + "</td> ";
                    data += "</tr>";
                }


                data += "</tbody>" +
                        "</table>" +
                        "</div>" +
                        "</div>";
            }

            return(data);
        }
Beispiel #5
0
        private string LLenar_Tabla()
        {
            string columnas  = " p.Abreviatura, p.Descripcion, i.Precio, i.cantidad Disponibilidad, 'Unidades' Unidad ";
            string condicion =
                " Inventario i, Producto p \n" +
                "where i.Producto = p.Producto \n" +
                "and i.Cantidad is not null \n" +
                "union \n" +
                "select p.Abreviatura, p.Descripcion, i.precio, i.metros_cuadrados, 'Metros Cuadrados' \n" +
                "from Inventario i, Producto p \n" +
                "where i.Producto = p.Producto \n" +
                "and i.Metros_Cuadrados is not null "
            ;
            DataSet roles = conn.Mostrar(condicion, columnas);
            String  data  = "No hay Productos Disponibles";

            if (roles.Tables.Count > 0)
            {
                data = "<div class=\"table-overflow\"> " +
                       "<table class=\"table table-striped table-bordered\" id=\"data-table\">" +
                       "<thead>" +
                       "<tr>" +
                       " <th  align =\"center\">Abreviatura</th>" +
                       "<th align =\"center\">Descripcion</th>" +
                       "<th align =\"center\">Precio</th>" +
                       "<th align =\"center\">Disponibilidad</th>" +
                       "<th align =\"center\">Unidades</th>" +
                       "</tr>" +
                       "</thead>" + "<tbody>";

                foreach (DataRow item in roles.Tables[0].Rows)
                {
                    data += "<tr>" +
                            "<td id=\"codigo\" runat=\"server\" align =\"Center\">" + item["Abreviatura"].ToString() + "</td>" +
                            "<td>" + item["Descripcion"].ToString() + "</td>" +
                            "<td>" + item["Precio"].ToString() + "</td>" +
                            "<td>" + item["Disponibilidad"].ToString() + "</td>" +
                            "<td>" + item["Unidad"].ToString() + "</td>" +
                            "</tr>"
                    ;
                }


                data += "</tbody>" +
                        "</table>" +
                        "</div>" +
                        "</div>";
            }
            return(data);
        }
        protected String Llenar_Productos()
        {
            DataSet productos = conexion.Mostrar("Producto P, Tipo T Where P.Tipo = T.tipo ", " P.PRODUCTO, P.ABREVIATURA, P.DESCRIPCION, P.PORCENTAJE," +
                                                 "P.LARGO, P.ANCHO, P.MARCA, T.DESCRIPCION NOMBRETIPO ");
            String data = "No hay Productos Disponibles";

            if (productos != null)
            {
                data = "<div class=\"table-overflow\"> " +
                       "<table class=\"table table-striped table-bordered\" id=\"data-table\">" +
                       "<thead>" +
                       "<tr>" +
                       "<th  align =\"center\">Abreviatura</th>" +
                       " <th  align =\"center\">Descripcion</th>" +
                       " <th  align =\"center\">Tipo</th>" +
                       "<th align =\"center\">Porcentaje</th>" +
                       " <th  align =\"center\">Largo</th>" +
                       " <th  align =\"center\">Ancho</th>" +
                       " <th  align =\"center\">Marca</th>" +
                       "<th align =\"center\">Acciones</th>" +
                       "</tr>" +
                       "</thead>" + "<tbody>";

                foreach (DataRow item in productos.Tables[0].Rows)
                {
                    data += "<tr>" +
                            "<td id=\"codigo\" runat=\"server\" align =\"Center\">" + item["ABREVIATURA"].ToString() + "</td>" +
                            "<td id=\"codigo\" runat=\"server\" >" + item["DESCRIPCION"].ToString() + "</td>" +
                            "<td id=\"codigo\" runat=\"server\" align =\"Center\">" + item["NOMBRETIPO"].ToString() + "</td>" +
                            "<td id=\"codigo\" runat=\"server\" align =\"Center\">" + item["PORCENTAJE"].ToString() + "</td>" +
                            "<td id=\"codigo\" runat=\"server\" align =\"Center\">" + item["LARGO"].ToString() + "</td>" +
                            "<td id=\"codigo\" runat=\"server\" align =\"Center\">" + item["ANCHO"].ToString() + "</td>" +
                            "<td id=\"codigo\" runat=\"server\" align =\"Center\">" + item["MARCA"].ToString() + "</td> ";
                    data += " <td>" +
                            "<ul class=\"table-controls\">" +
                            " <li><a href=\"javascript:Mostrar_Producto(" + item["PRODUCTO"].ToString() + ")\" id=\"edit\" class=\"tip\" CssClass=\"Edit\" title=\"Editar\"><i class=\"fam-pencil\"></i></a> </li>" +
                            "<li><a  href=\"javascript:Eliminar_Producto(" + item["PRODUCTO"].ToString() + ")\" class=\"tip\" CssClass=\"Elim\" title=\"Eliminar\"><i class=\"fam-cross\"></i></a> </li>" +
                            "</td>";
                    data += "</tr>";
                }


                data += "</tbody>" +
                        "</table>" +
                        "</div>" +
                        "</div>";
            }
            return(data);
        }
        protected String Llenar_Productos()
        {
            DataSet productos = conexion.Mostrar("Producto P, Inventario I, TIPO T Where P.Producto = I.Producto AND P.Tipo = T.Tipo ", " P.PRODUCTO, P.ABREVIATURA, P.DESCRIPCION, P.PORCENTAJE," +
                                                 "P.LARGO, P.ANCHO, P.MARCA, T.DESCRIPCION NOMBRETIPO, I.SUCURSAL SUCURSAL, I.PRECIO PRECIO, I.CANTIDAD CANTIDAD, I.METROS_CUADRADOS METROS");
            String data = "No hay Productos Disponibles";

            if (productos != null)
            {
                data = "<div class=\"table-overflow\"> " +
                       "<table class=\"table table-striped table-bordered\" id=\"data-table\">" +
                       "<thead>" +
                       "<tr>" +
                       "<th  align =\"center\">Abreviatura</th>" +
                       " <th  align =\"center\">Descripcion</th>" +
                       " <th  align =\"center\">Tipo</th>" +
                       " <th  align =\"center\">Marca</th>" +
                       "<th align =\"center\">Cantidad Inventario</th>" +
                       "<th align =\"center\">Metros Disponibles</th>" +
                       "<th align =\"center\">Precio Unidad/Metro</th>" +
                       "<th align =\"center\">Acciones</th>" +
                       "</tr>" +
                       "</thead>" + "<tbody>";

                foreach (DataRow item in productos.Tables[0].Rows)
                {
                    data += "<tr>" +
                            "<td id=\"abre\" runat=\"server\" align =\"Center\">" + item["ABREVIATURA"].ToString() + "</td>" +
                            "<td id=\"desc\" runat=\"server\" >" + item["DESCRIPCION"].ToString() + "</td>" +
                            "<td id=\"nombretipo\" runat=\"server\" align =\"Center\">" + item["NOMBRETIPO"].ToString() + "</td>" +
                            "<td id=\"marc\" runat=\"server\" align =\"Center\">" + item["MARCA"].ToString() + "</td>" +
                            "<td id=\"marc\" runat=\"server\" align =\"Center\">" + item["CANTIDAD"].ToString() + "</td>" +
                            "<td id=\"marc\" runat=\"server\" align =\"Center\">" + item["METROS"].ToString() + "</td>" +
                            "<td id=\"cant\" runat=\"server\" align =\"Center\">" + item["PRECIO"].ToString() + "</td> ";
                    data += " <td>" +
                            "<ul class=\"table-controls\">" +
                            " <li><a href=\"javascript:Editar_Bodega(" + item["PRODUCTO"].ToString() + ")\" id=\"edit\" class=\"tip\" CssClass=\"Edit\" title=\"Editar\"><i class=\"fam-pencil\"></i></a> </li>" +
                            "</td>";
                    data += "</tr>";
                }


                data += "</tbody>" +
                        "</table>" +
                        "</div>" +
                        "</div>";
            }
            return(data);
        }
Beispiel #8
0
        protected void Page_Load(object sender, EventArgs e)
        {
            conexion = new Conexion();
            DataSet Productos = conexion.Mostrar("Producto", "producto, abreviatura");
            String  html      = "<select data-placeholder=\"Agregar producto\" class=\"select\" tabindex=\"2\">";

            html += "<option value=\"\"></option> ";

            foreach (DataRow item in Productos.Tables[0].Rows)
            {
                html += "<option value=\"" + item["producto"] + "\">" + item["Abreviatura"] + "</option> ";
            }

            html += "</select>";


            this.productos.InnerHtml = html;
        }
Beispiel #9
0
        private string LLenar_Tabla()
        {
            string columnas  = " c.Nombre, c.Apellido, COUNT(v.Venta)'Cantidad',SUM( v.Total ) Total \n";
            string condicion =
                "Cliente c, Venta v \n" +
                "where v.Cliente = c.Cliente \n" +
                "group by c.Nombre, c.Apellido \n" +
                "order by Total desc"
            ;
            DataSet roles = conn.Mostrar(condicion, columnas);
            String  data  = "No hay Productos Disponibles";

            if (roles.Tables.Count > 0)
            {
                data = "<div class=\"table-overflow\"> " +
                       "<table class=\"table table-striped table-bordered\" id=\"data-table\">" +
                       "<thead>" +
                       "<tr>" +
                       " <th  align =\"center\">Nombre</th>" +
                       "<th align =\"center\">Apellido</th>" +
                       "<th align =\"center\">Cantidad</th>" +
                       "<th align =\"center\">Total</th>" +
                       "</tr>" +
                       "</thead>" + "<tbody>";

                foreach (DataRow item in roles.Tables[0].Rows)
                {
                    data += "<tr>" +
                            "<td id=\"codigo\" runat=\"server\" align =\"Center\">" + item["Nombre"].ToString() + "</td>" +
                            "<td>" + item["Apellido"].ToString() + "</td>" +
                            "<td>" + item["Cantidad"].ToString() + "</td>" +
                            "<td>" + item["Total"].ToString() + "</td>" +
                            "</tr>"
                    ;
                }


                data += "</tbody>" +
                        "</table>" +
                        "</div>" +
                        "</div>";
            }
            return(data);
        }
Beispiel #10
0
        protected String Llenar_Usuarios()
        {
            DataSet clientes = conexion.Mostrar("USUARIO U, ROL R where U.ROL = R.ROL ", " U.USUARIO , U.NOMBRE, U.NICKNAME, U.APELLIDO, U.DPI, R.NOMBRE ROL ");
            String  data     = "No hay Usuarios Disponibles";

            if (clientes.Tables.Count > 0)
            {
                data = "<div class=\"table-overflow\"> " +
                       "<table class=\"table table-striped table-bordered\" id=\"data-table\">" +
                       "<thead>" +
                       "<tr>" +
                       "<th  align =\"center\">Nick Name</th>" +
                       " <th  align =\"center\">Nombre</th>" +
                       " <th  align =\"center\">Apellido</th>" +
                       " <th  align =\"center\">Dpi</th>" +
                       "<th align =\"center\">Rol</th>" +
                       "<th align =\"center\">Acciones</th>" +
                       "</tr>" +
                       "</thead>" + "<tbody>";

                foreach (DataRow item in clientes.Tables[0].Rows)
                {
                    data += "<tr>" +
                            "<td id=\"codigo\" runat=\"server\" align =\"Center\">" + item["NICKNAME"].ToString() + "</td>" +
                            "<td id=\"codigo\" runat=\"server\" >" + item["NOMBRE"].ToString() + "</td>" +
                            "<td id=\"codigo\" runat=\"server\" align =\"Center\">" + item["APELLIDO"].ToString() + "</td>" +
                            "<td id=\"codigo\" runat=\"server\" align =\"Center\">" + item["DPI"].ToString() + "</td>" +
                            "<td id=\"codigo\" runat=\"server\" align =\"Center\">" + item["ROL"].ToString() + "</td> ";
                    data += " <td>" +
                            "<ul class=\"table-controls\">" +
                            " <li><a href=\"javascript:Mostrar_usuario(" + item["USUARIO"].ToString() + ")\" id=\"edit\" class=\"tip\" CssClass=\"Edit\" title=\"Editar\"><i class=\"fam-pencil\"></i></a> </li>" +
                            "<li><a  href=\"javascript:Eliminar_Usuario(" + item["USUARIO"].ToString() + ")\" class=\"tip\" CssClass=\"Elim\" title=\"Eliminar\"><i class=\"fam-cross\"></i></a> </li>" +
                            "</td>";
                    data += "</tr>";
                }


                data += "</tbody>" +
                        "</table>" +
                        "</div>" +
                        "</div>";
            }
            return(data);
        }
        protected String Llenar_Clientes()
        {
            DataSet clientes = conexion.Mostrar("Cliente ", " * ");
            String  data     = "No hay Clientes Disponibles";

            if (clientes.Tables.Count > 0)
            {
                data = "<div class=\"table-overflow\"> " +
                       "<table class=\"table table-striped table-bordered\" id=\"data-table\">" +
                       "<thead>" +
                       "<tr>" +
                       "<th  align =\"center\">Codigo Cliente</th>" +
                       " <th  align =\"center\">Nombre</th>" +
                       " <th  align =\"center\">Apellido</th>" +
                       "<th align =\"center\">N.I.T.</th>" +
                       " <th  align =\"center\">Direccion</th>" +
                       " <th  align =\"center\">Telefono</th>" +
                       "<th align =\"center\">Acciones</th>" +
                       "</tr>" +
                       "</thead>" + "<tbody>";

                foreach (DataRow item in clientes.Tables[0].Rows)
                {
                    data += "<tr><td id=\"codigo\" runat=\"server\" align =\"Center\">" + item["Cliente"].ToString() +
                            "</td><td id=\"nombre\" runat=\"server\" align =\"Center\" >" + item["Nombre"].ToString() + "</td><td id=\"apellido\" runat=\"server\" align =\"Center\">" + item["Apellido"].ToString() +
                            "</td><td id=\"nit\" runat=\"server\" align =\"Center\" >" + item["Nit"].ToString() + "</td><td id=\"direccion\" runat=\"server\" align =\"Center\">" + item["Direccion"].ToString() +
                            "<td id=\"telefono\" runat=\"server\" align =\"Center\">" + item["Telefono"].ToString() + "</td>";
                    data += " <td>" +
                            "<ul class=\"table-controls\">" +
                            " <li><a href=\"javascript:Mostrar_cliente(" + item["Cliente"].ToString() + ")\" id=\"edit\" class=\"tip\" CssClass=\"Edit\" title=\"Editar\"><i class=\"fam-pencil\"></i></a> </li>" +
                            "<li><a  href=\"javascript:Eliminar_Cliente(" + item["Cliente"].ToString() + ")\" class=\"tip\" CssClass=\"Elim\" title=\"Eliminar\"><i class=\"fam-cross\"></i></a> </li>" +
                            "</td>";
                    data += "</tr>";
                }


                data += "</tbody>" +
                        "</table>" +
                        "</div>" +
                        "</div>";
            }
            return(data);
        }
Beispiel #12
0
        private string LLenar_Tabla()
        {
            string columnas  = " p.Abreviatura, p.Descripcion, SUM(d.Cantidad) Cantidad, SUM(d.Cantidad*I.Precio) Total \n ";
            string condicion =
                " DetalleVenta d, Producto p, Inventario i \n" +
                "where p.Producto = d.Producto \n" +
                "and i.Producto = d.Producto \n" +
                "group by p.Abreviatura, p.Descripcion  \n" +
                "order by Cantidad, Total \n"
            ;
            DataSet roles = conn.Mostrar(condicion, columnas);
            String  data  = "No hay Clientes Disponibles";

            if (roles.Tables.Count > 0)
            {
                data = "<div class=\"table-overflow\"> " +
                       "<table class=\"table table-striped table-bordered\" id=\"data-table\">" +
                       "<thead>" +
                       "<tr>" +
                       " <th  align =\"center\">Abreviatura</th>" +
                       "<th align =\"center\">Descripcion</th>" +
                       "<th align =\"center\">Cantidad</th>" +
                       "<th align =\"center\">Total</th>" +
                       "</tr>" +
                       "</thead>" + "<tbody>";

                foreach (DataRow item in roles.Tables[0].Rows)
                {
                    data += "<tr>" +
                            "<td id=\"codigo\" runat=\"server\" align =\"Center\">" + item["Abreviatura"].ToString() + "</td>" +
                            "<td>" + item["Descripcion"].ToString() + "</td>" +
                            "<td>" + item["Cantidad"].ToString() + "</td>" +
                            "<td>" + item["Total"].ToString() + "</td>";
                }


                data += "</tbody>" +
                        "</table>" +
                        "</div>" +
                        "</div>";
            }
            return(data);
        }
Beispiel #13
0
        protected String Llenar_Roles()
        {
            DataSet roles = conexion.Mostrar(" Rol ", " * ");
            String  data  = "No hay Roles Disponibles";

            if (roles.Tables.Count > 0)
            {
                data = "<div class=\"table-overflow\"> " +
                       "<table class=\"table table-striped table-bordered\" id=\"data-table\">" +
                       "<thead>" +
                       "<tr>" +
                       " <th  align =\"center\">Codigo</th>" +
                       "<th align =\"center\">Nombre</th>" +
                       "<th align =\"center\">Acciones</th>" +
                       "</tr>" +
                       "</thead>" + "<tbody>";

                foreach (DataRow item in roles.Tables[0].Rows)
                {
                    data += "<tr><td id=\"codigo\" runat=\"server\" align =\"Center\">" + item["Rol"].ToString() +
                            "</td><td>" + item["Nombre"].ToString() + "</td>";
                    data += " <td>" +
                            "<ul class=\"table-controls\">" +
                            " <li><a href=\"javascript:Mostrar(" + item["Rol"].ToString() + ")\" id=\"edit\" class=\"tip\" CssClass=\"Edit\" title=\"Editar\"><i class=\"fam-pencil\"></i></a> </li>" +
                            "<li><a  href=\"javascript:Eliminar(" + item["Rol"].ToString() + ")\" class=\"tip\" CssClass=\"Elim\" title=\"Eliminar\"><i class=\"fam-cross\"></i></a> </li>" +
                            "</td>";
                    data += "</tr>";
                }


                data += "</tbody>" +
                        "</table>" +
                        "</div>" +
                        "</div>";
            }
            return(data);
        }