public frmInscriptionDepense(Employes employe) { InitializeComponent(); //Testy test this.noEmploye = employe.No; this.employe = employe; }
public frmMenu(Employes employe) { InitializeComponent(); this.employe = employe; switch(employe.NotypeEmploye) { case (int)enumTypeEmploye.administrateur: break; case (int)enumTypeEmploye.direction: btnModifierAbonnes.Enabled = false; btnAjoutAbonnement.Enabled = false; btnReabonnement.Enabled = false; break; case (int)enumTypeEmploye.proprioClub: btnGestionEmployes.Enabled = false; break; case (int)enumTypeEmploye.employeClub: btnGestionEmployes.Enabled = false; break; case (int)enumTypeEmploye.employeProShop: btnModifierAbonnes.Enabled = false; btnAjoutAbonnement.Enabled = false; btnGestionEmployes.Enabled = false; btnReabonnement.Enabled = false; break; case (int)enumTypeEmploye.employeResto: btnModifierAbonnes.Enabled = false; btnAjoutAbonnement.Enabled = false; btnGestionEmployes.Enabled = false; btnReabonnement.Enabled = false; break; case (int)enumTypeEmploye.profGolf: btnModifierAbonnes.Enabled = false; btnAjoutAbonnement.Enabled = false; btnGestionEmployes.Enabled = false; btnReabonnement.Enabled = false; break; default: throw new NotImplementedException(); } }
public frmAbonnementPrincipal(Employes emp) { InitializeComponent(); this.emp = emp; }
private Employes genereEmploye() { Employes emp = new Employes(); emp.Age = (int)ageNumeric.Value; emp.Cellulaire = celTextBox.Text == "( ) -" ? "" : celTextBox.Text; emp.CodePostal = codePostalTextBox.Text; emp.Courriel = courrielTextBox.Text; emp.IdProvince = cbProvince.SelectedValue.ToString(); emp.MotDePasse = motDePasseTextBox.Text; emp.No = int.Parse(noTextBox.Text); emp.NoCivique = noCiviqueTextBox.Text; emp.Nom = nomTextBox.Text; emp.NotypeEmploye = (int)cmbTypeEmploye.SelectedValue; emp.Prenom = prenomTextBox.Text; emp.Remarque = remarqueTextBox.Text; emp.Rue = rueTextBox.Text; emp.SalaireHoraire = decimal.Parse(salaireHoraireTextBox.Text); emp.Sexe = cmbSexe.SelectedItem.ToString(); emp.Telephone = telTextBox.Text; emp.Ville = villeTextBox.Text; return emp; }
public frmReabonnement(Employes emp) { InitializeComponent(); this.emp = emp; }
private void detach_Employes(Employes entity) { this.SendPropertyChanging(); entity.TypesEmploye = null; }
partial void DeleteEmployes(Employes instance);
private void attach_Employes(Employes entity) { this.SendPropertyChanging(); entity.TypesEmploye = this; }
partial void InsertEmployes(Employes instance);
partial void UpdateEmployes(Employes instance);
private void detach_Employes(Employes entity) { this.SendPropertyChanging(); entity.Provinces = null; }
private void attach_Employes(Employes entity) { this.SendPropertyChanging(); entity.Provinces = this; }
public frmAjoutPartieGolf(Employes employe) { InitializeComponent(); this.employe = employe; }
private void frmModifierEmploye_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'bDClubDeGolfBDataSet.TypesEmploye' table. You can move, or remove it, as needed. this.typesEmployeTableAdapter.Fill(this.bDClubDeGolfBDataSet.TypesEmploye); // TODO: This line of code loads data into the 'bDClubDeGolfBDataSet.Provinces' table. You can move, or remove it, as needed. this.provincesTableAdapter.Fill(this.bDClubDeGolfBDataSet.Provinces); employesBindingSource.DataSource = from unEmploye in dataContexteProjet1.Employes where unEmploye.No == noEmploye select unEmploye; emp = (Employes)employesBindingSource.Current; cmbSexe.SelectedItem = emp.Sexe; }
public frmGestionEmployes(Employes employe) { InitializeComponent(); this.employe = employe; }