private void Page_Load(object sender, System.EventArgs e)
 {
     SiemensTM.Classes.Login l = (SiemensTM.Classes.Login) this.Page;
     if (l.IsUserLogged() && l.IsAdminUser())
     {
         this.admin_separator.InnerHtml = " | ";
         this.admin_link.InnerHtml      = "Administrare";
     }
 }
        private void Page_Load(object sender, System.EventArgs e)
        {
            SiemensTM.Classes.Login   l          = new SiemensTM.Classes.Login();
            Salaries.Business.Angajat objAngajat = l.GetLoggedAngajat();
            if (objAngajat != null)
            {
                int id = new SiemensTM.Classes.Login().GetLoggedUserID();

                lblNume.Text  = objAngajat.Nume + " " + objAngajat.Prenume;
                lblTitlu.Text = objAngajat.TitluSimbol;
                if (l.IsAdminUser())
                {
                    lblTitlu.Text = " Administrator - " + lblTitlu.Text;
                }

                lblFunctie.Text     = objAngajat.FunctieCurentaNume;
                lblDepartament.Text = objAngajat.DepartamentCurentCod;
            }
        }