private void AddSocieteBase() { Societe societes = new Societe(); int id_societe = 0; societes.nom_societe = nom_societe; societes.adresse_societe = adresse_societe; societes.email_societe = email_societe; societes.ville_societe = ville_societe; societes.cp_societe = cp_societe; societes.tel_societe = tel_societe; using (API_Daltons.Service1Client api = new API_Daltons.Service1Client()) { id_societe = api.AddSociete(societes); } if (id_societe > 0) { nom_societe = ""; adresse_societe = ""; email_societe = ""; ville_societe = ""; cp_societe = ""; tel_societe = ""; RaisePropertyChanged("nom_societe"); RaisePropertyChanged("adresse_societe"); RaisePropertyChanged("email_societe"); RaisePropertyChanged("ville_societe"); RaisePropertyChanged("cp_societe"); RaisePropertyChanged("tel_societe"); } RaisePropertyChanged("DataSociete"); }
private void UpdateSocieteBase() { using (API_Daltons.Service1Client api = new API_Daltons.Service1Client()) { api.UPDSociete(SelectedItem); RaisePropertyChanged("DataSociete"); } }
private IList <Motif_intervention> SearchMotifBase() { Motif_intervention motif = new Motif_intervention(); motif.libelle = ""; IList <Motif_intervention> ListMotif = null; using (API_Daltons.Service1Client api = new API_Daltons.Service1Client()) { { ListMotif = api.SearchMotif(); } } return(ListMotif); }
private IList <Intervention> SearchInterventionBase() { Intervention interventions = new Intervention(); interventions.date_intervention = DateTime.Now; IList <Intervention> ListIntervention = null; using (API_Daltons.Service1Client api = new API_Daltons.Service1Client()) { { ListIntervention = api.SearchIntervention(); } } return(ListIntervention); }
private IList <Compte_rendu> SearchCompte_RenduBase() { Compte_rendu compte_rendus = new Compte_rendu(); compte_rendus.note = ""; IList <Compte_rendu> ListCompte_rendu = null; using (API_Daltons.Service1Client api = new API_Daltons.Service1Client()) { { ListCompte_rendu = api.SearchCompte_rendu(); } } return(ListCompte_rendu); }
private IList <Technicien> SearchTechnicienBase() { Technicien techniciens = new Technicien(); techniciens.nom = ""; techniciens.prenom = ""; techniciens.tel = ""; IList <Technicien> ListTechnicien = null; using (API_Daltons.Service1Client api = new API_Daltons.Service1Client()) { { ListTechnicien = api.SearchTechnicien(); } } return(ListTechnicien); }
private IList <Compte_rendu> SearchCompte_RenduBase() { Compte_rendu compte_rendus = new Compte_rendu(); compte_rendus.note = ""; if (SelectedItem != null) { compte_rendus.id_technicien = ParentModel.SelectedItem.id_technicien; } IList <Compte_rendu> ListCompte_rendu = null; using (API_Daltons.Service1Client api = new API_Daltons.Service1Client()) { { ListCompte_rendu = api.SearchCompte_rendu(); } } return(ListCompte_rendu); }
private IList <Societe> SearchSocieteBase() { Societe societes = new Societe(); societes.nom_societe = ""; societes.adresse_societe = ""; societes.email_societe = ""; societes.ville_societe = ""; societes.cp_societe = ""; societes.tel_societe = ""; IList <Societe> ListSociete = null; using (API_Daltons.Service1Client api = new API_Daltons.Service1Client()) { { ListSociete = api.SearchSociete(); } } return(ListSociete); }