void modifFdt(int p_id) { T_FeuilleDeTemps fdt = BD_CoEco.GetFeuilleDeTempsById(p_id); if (fdt.dimanche != null) { tb_dimanche.Text = fdt.dimanche.ToString(); } if (fdt.lundi != null) { tb_lundi.Text = fdt.lundi.ToString(); } if (fdt.mardi != null) { tb_mardi.Text = fdt.mardi.ToString(); } if (fdt.mercredi != null) { tb_mercredi.Text = fdt.mercredi.ToString(); } if (fdt.jeudi != null) { tb_jeudi.Text = fdt.jeudi.ToString(); } if (fdt.vendredi != null) { tb_vendredi.Text = fdt.vendredi.ToString(); } if (fdt.samedi != null) { tb_samedi.Text = fdt.samedi.ToString(); } //--COM if (fdt.commentaireDimanche != null) { tb_dimancheCommentaire.Text = fdt.commentaireDimanche.ToString(); } if (fdt.commentaireLundi != null) { tb_lundiCommentaire.Text = fdt.commentaireLundi.ToString(); } if (fdt.commentaireMardi != null) { tb_mardiCommentaire.Text = fdt.commentaireMardi.ToString(); } if (fdt.commentaireMercredi != null) { tb_mercrediCommentaire.Text = fdt.commentaireMercredi.ToString(); } if (fdt.commentaireJeudi != null) { tb_jeudiCommentaire.Text = fdt.commentaireJeudi.ToString(); } if (fdt.commentaireVendredi != null) { tb_vendrediCommentaire.Text = fdt.commentaireVendredi.ToString(); } if (fdt.commentaireSamedi != null) { tb_samediCommentaire.Text = fdt.commentaireSamedi.ToString(); } ddl_Projet.SelectedValue = BD_CoEco.GetCatByID(fdt.idCategorie).idProjet.ToString(); List <T_CategoriePro> listCat = BD_CoEco.GetListeCategorie(BD_CoEco.GetProByID(int.Parse(ddl_Projet.SelectedValue))); listCat = listCat.OrderBy(o => o.descript).ToList(); foreach (T_CategoriePro categoriePro in listCat) { ddl_Categorie.Items.Add(new ListItem(categoriePro.descript, categoriePro.idCategorie.ToString())); } ddl_Categorie.SelectedValue = fdt.idCategorie.ToString(); }