//Cargar un registro a la tabla de Ordenes
        public void LlenarOrden(string cod, int id)
        {
            OrdenBLL objOrden = new OrdenBLL();
            string   codigo   = cod;
            string   producto = "";
            double   precio   = 0.00;
            int      idOrden  = 0;

            App_Code.DAL.ProductosDSTableAdapters.ProductosTableAdapter adaptador = new App_Code.DAL.ProductosDSTableAdapters.ProductosTableAdapter();
            App_Code.DAL.ProductosDS.ProductosDataTable tabla = adaptador.MostrarTodosProductos();
            foreach (App_Code.DAL.ProductosDS.ProductosRow filas in tabla)
            {
                if (filas.id_producto == id)
                {
                    precio   = Convert.ToDouble(filas.precio_unitario);
                    producto = filas.nombre_producto;
                }
            }
            objOrden.InsertarOrden(id, cod, producto, precio);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            OrdenBLL truncar = new OrdenBLL();

            truncar.TruncarOrden();
            string user;

            if (Session["Usuario"] != null)
            {
                user           = Session["Usuario"].ToString();
                Label1.Text    = user;
                Label5.Text    = "Salir";
                Label6.Visible = false;
            }
            else
            {
                Label5.Text    = "Sign Up";
                Label6.Visible = true;
                Label1.Text    = "";
            }
        }