protected void Ordenes_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            if (e.CommandName == "Entregar")
            {
                int index;
                int idPedido;

                index    = int.Parse(e.CommandArgument.ToString());
                idPedido = int.Parse(Ordenes.DataKeys[index].Value.ToString());
                byte estAnt = lgp.UltimoEstadoPedido(idPedido);

                lgp.ActualizarEstadoPedido(1, idPedido);

                Response.Redirect("~/Modulos/ModuloCocina.aspx?UltimaEntregada=" + idPedido + "&EstadoAnterior=" + estAnt);
            }
        }