Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                string usuarioLogado = Convert.ToString(Session["NomeUsuarioLogado"]);
                lblUsuarioLogado.Text = usuarioLogado;

                ProjetoDAL pd = new ProjetoDAL();

                if (pd == null)
                {
                    lblMensagem.Text = "Lista Vazia.";
                }
                else
                {
                    gridProjetos.DataSource = pd.ListarProj(Convert.ToInt32(Session["CodigoUsuarioLogado"]));   //Popular a grid
                    gridProjetos.DataBind();                                                                    //Exibe a grid
                }
            }
            catch (Exception ex)
            {
                lblMensagem.Text = ex.Message;
            }
        }
Exemplo n.º 2
0
 public ProfessorController(IESContext context)
 {
     this._context = context;
     projetoDAL    = new ProjetoDAL(context);
     professorDAL  = new ProfessorDAL(context);
 }
Exemplo n.º 3
0
 public AlunoController(IESContext context)
 {
     this._context = context;
     projetoDAL    = new ProjetoDAL(context);
     alunoDAL      = new AlunoDAL(context);
 }
Exemplo n.º 4
0
        public int RemoveProject(ProjetoDTO _projeto)
        {
            ProjetoDAL cmd = new ProjetoDAL();

            return(cmd.UpdateData(_projeto));
        }
Exemplo n.º 5
0
        public List <ProjetoDTO> GetDataWithParam(ProjetoDTO _projeto)
        {
            ProjetoDAL cmd = new ProjetoDAL();

            return(cmd.GetDataInDataBase(_projeto));
        }
Exemplo n.º 6
0
 public ProjetoController(IESContext context)
 {
     _context   = context;
     projetoDAL = new ProjetoDAL(context);
 }