﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace AgoWeb.Views.Sistema
{
    public partial class SistemaMenu : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Session[Util.UtilAgo.SessaoUsuario] == null)
                {
                    Response.Redirect("~/Default.aspx");
                }
            }            
        }

        public void LinkButtonPerfil_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/Views/Sistema/Perfil.aspx");
        }

        public void LinkButtonFuncionalidade_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/Default.aspx");
        }

        public void LinkButtonPerfilFuncionalidade_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/Default.aspx");
        }

        public void LinkButtonPerfilDisciplina_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/Views/Sistema/PerfilDisciplina.aspx");
        }

        public void LinkButtonDisciplina_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/Views/Sistema/Disciplina.aspx");
        }

        protected void LinkButtonIndicador_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/Views/Sistema/Indicador/IndicadorGrid.aspx");
        }
    }
}