public AjouterEntrevueEntrepriseVue(Utilisateur user, int Id) { InitializeComponent(); User = user; MonEntrevue = new Entrevue(); MonEntrevue.IdEntreprise = Id; MonEntrevue.IdEtudiant = -1; listeTypeEntrevue = new List <string>(); listeTypeResultat = new List <string>(); IsModified = false; foreach (IdDescription id in ListeDescription.listTypeEntrevue) { listeTypeEntrevue.Add(id.Description); } foreach (IdDescription id in ListeDescription.listTypeResultat) { listeTypeResultat.Add(id.Description); } choixEntrevueVue.ItemsSource = listeTypeEntrevue; resultatTypeVue.ItemsSource = listeTypeResultat; lesEtudiants = ManagerEtudiant.recupererListeProfilesEtudiantsRechercheStage(); ajouterEtudiantVue(); }
public AjouterCommunicationVue(Utilisateur user) { InitializeComponent(); User = user; Rect workArea = System.Windows.SystemParameters.WorkArea; this.Left = (workArea.Width - this.Width) / 2 + workArea.Left; this.Top = (workArea.Height - this.Height) / 2 + workArea.Top; style = this.FindResource("BtnStyleNoHover") as Style; //PERMISSIONS //admin if (User.IdTypeUtilisateur == 1) { BtnComptes.Visibility = System.Windows.Visibility.Visible; BtnConfigurations.Visibility = System.Windows.Visibility.Visible; } //ressources humaines else if (User.IdTypeUtilisateur == 2) { BtnComptes.Visibility = System.Windows.Visibility.Hidden; BtnConfigurations.Visibility = System.Windows.Visibility.Visible; } else { BtnComptes.Visibility = System.Windows.Visibility.Hidden; BtnConfigurations.Visibility = System.Windows.Visibility.Hidden; BtnValiderAjouter.Visibility = System.Windows.Visibility.Hidden; StatistiquesMenu.Visibility = System.Windows.Visibility.Hidden; } userName.Content = User.Nom; com = new Communication(); com.IdTo = -1; listStatusCommunication = new List <string>(); listTypeCommunication = new List <string>(); foreach (IdDescription id in ListeDescription.listStatusCommunication) { listStatusCommunication.Add(id.Description); } foreach (IdDescription id in ListeDescription.listTypeCommunication) { listTypeCommunication.Add(id.Description); } ChoixStatus.ItemsSource = listStatusCommunication; ChoixType.ItemsSource = listTypeCommunication; //comportament par defaut de l affichage resultat.Visibility = System.Windows.Visibility.Hidden; lesEtudiants = ManagerEtudiant.recupererListeProfilesEtudiantsRechercheStage(); ajouterEtudiantVue(); }
// constructeur public AjouterStageVue(Utilisateur user) { InitializeComponent(); InitializeComponent(); Rect workArea = System.Windows.SystemParameters.WorkArea; this.Left = (workArea.Width - this.Width) / 2 + workArea.Left; this.Top = (workArea.Height - this.Height) / 2 + workArea.Top; User = user; style = this.FindResource("BtnStyleNoHover2") as Style; //PERMISSIONS //admin if (User.IdTypeUtilisateur == 1) { BtnComptes.Visibility = System.Windows.Visibility.Visible; BtnConfigurations.Visibility = System.Windows.Visibility.Visible; } //ressources humaines else if (User.IdTypeUtilisateur == 2) { BtnComptes.Visibility = System.Windows.Visibility.Hidden; BtnConfigurations.Visibility = System.Windows.Visibility.Visible; } else { BtnComptes.Visibility = System.Windows.Visibility.Hidden; BtnConfigurations.Visibility = System.Windows.Visibility.Hidden; StatistiquesMenu.Visibility = System.Windows.Visibility.Hidden; } userName.Content = User.Nom; lesEtudiants = ManagerEtudiant.recupererListeProfilesEtudiantsRechercheStage(); lesEntreprises = ManagerEntreprise.recupererListeProfilesEntreprises(); resultat.Visibility = System.Windows.Visibility.Hidden; listTypeStage = new List <string>(); foreach (IdDescription id in ListeDescription.listTypeStage) { listTypeStage.Add(id.Description); } LeStage = new Stage(); LeStage.IdEntreprise = -1; LeStage.IdEtudiant = -1; ChoixType.ItemsSource = listTypeStage; ajouterEntrepriseVue(); ajouterEtudiantVue(); }
public Acceuil(Utilisateur user) { InitializeComponent(); Rect workArea = System.Windows.SystemParameters.WorkArea; this.Left = (workArea.Width - this.Width) / 2 + workArea.Left; this.Top = (workArea.Height - this.Height) / 2 + workArea.Top; User = user; ////PERMISSIONS //admin if (User.IdTypeUtilisateur == 1) { BtnComptes.Visibility = System.Windows.Visibility.Visible; BtnConfigurations.Visibility = System.Windows.Visibility.Visible; } //ressources humaines else if (User.IdTypeUtilisateur == 2) { BtnComptes.Visibility = System.Windows.Visibility.Hidden; BtnConfigurations.Visibility = System.Windows.Visibility.Visible; } else { BtnComptes.Visibility = System.Windows.Visibility.Hidden; BtnConfigurations.Visibility = System.Windows.Visibility.Hidden; StatistiquesMenu.Visibility = System.Windows.Visibility.Hidden; } etudiantsAcceuil = ManagerEtudiant.recupererListeProfilesEtudiantsRechercheStage(); NbEtudiantRecherche.Content = ManagerStatistique.recupererNbEtudiantsRecherche(); NbEntrevue10jours.Content = ManagerStatistique.recupererNbEntrevuesDans10Jours(); NbCommunicationAttente.Content = ManagerCommunication.recupererNbCommunitionEnAttenteUtilisateurEtudiant(); NbEntrepriseEnregistre.Content = ManagerStatistique.recupererNbEntreprisesEnregistrees(); // Console.WriteLine(etudiantsAcceuil.Count); ajouterEtudiantVue(); //Console.WriteLine(NbEtudiantRecherche); userName.Content = User.Nom; }
private void BtnValiderRechercher_Click(object sender, RoutedEventArgs e) { resultat.Visibility = System.Windows.Visibility.Hidden; String ChoixStatusValeur = (String)ChoixStatus.SelectedValue; String ChoixFormationValeur = (String)ChoixFormation.SelectedValue; DateTime?date = ChoixDate.SelectedDate; int idFormation = ListeDescription.recupererIdFormation(ChoixFormationValeur); int idStatus = ListeDescription.recupererIdDescription(ChoixStatusValeur, ListeDescription.listStatusCarrieres); String idFormationString = idFormation.ToString(); String idStatusString = idStatus.ToString(); //MessageBox.Show(idStatusString + " " + idFormationString); String ChoixPrenomValeur = ChoixPrenom.Text; String ChoixNomValeur = ChoixNom.Text; String ChoixCourrielValeur = ChoixCourriel.Text; String ChoixVilleValeur = ChoixVille.Text; Dictionary <String, String> dictionnay = new Dictionary <String, String>(); //dictionnay.Add("statusValeur", ChoixStatusValeur); //dictionnay.Add("ChoixFormation", ChoixFormationValeur); if (date != null) { String dateValue = date.Value.ToShortDateString(); dictionnay.Add("dateNaissance", dateValue); } if (Convert.ToBoolean(PermisCheckBox.IsChecked)) { dictionnay.Add("permisConduire", "1"); } if (Convert.ToBoolean(VoitureCheckBox.IsChecked)) { dictionnay.Add("vehicule", "1"); } if (idFormation != -1) { dictionnay.Add("idFormation", idFormationString); } if (idStatus != -1) { dictionnay.Add("idStatusCarriere", idStatusString); } dictionnay.Add("prenom", ChoixPrenomValeur); dictionnay.Add("nom", ChoixNomValeur); dictionnay.Add("courriel", ChoixCourrielValeur); dictionnay.Add("ville", ChoixVilleValeur); lesEtudiants = ManagerEtudiant.recupererListeProfilesEtudiantsSelonRecherche(dictionnay); if (lesEtudiants != null) { ListeEtudiantsVue.Children.Clear(); ajouterEtudiantVue(); } else { ListeEtudiantsVue.Children.Clear(); resultat.Visibility = System.Windows.Visibility.Visible; lesEtudiants = ManagerEtudiant.recupererListeProfilesEtudiantsRechercheStage(); } }
private void RadioBtnEtudiant_Click(object sender, RoutedEventArgs e) { ListeEtudiantsEntrepriseVue.Children.Clear(); lesEtudiants = ManagerEtudiant.recupererListeProfilesEtudiantsRechercheStage(); ajouterEtudiantVue(); }