//--------------------------------------------- public bool AccepteProjetsParentsDuType(CTypeProjet typeProjet) { if (typeProjet != null) { return(typeProjet.AccepteProjetsFilsDuType(this)); } return(true); }
//--------------------------------------------- public bool AccepteProjetsFilsDuType(CTypeProjet typeProjet) { if (typeProjet == null) { return(true); } CListeObjetsDonnees lst = RelationsTypesProjetsFilsPossibles; if (lst.Count == 0) { return(true); } lst.Filtre = new CFiltreData(CRelationTypeProjet_TypeProjet.c_champTypeFils + "=@1", typeProjet.Id); lst.InterditLectureInDB = true; return(lst.Count > 0); }
//------------------------------------------------------------------- public override CResultAErreur VerifieDonnees(CObjetDonnee objet) { CResultAErreur result = CResultAErreur.True; try { CTypeProjet typeProj = (CTypeProjet)objet; if (typeProj.Libelle == null || typeProj.Libelle == "") { result.EmpileErreur(I.T("The Project Type label cannot be empty|448")); } } catch (Exception e) { result.EmpileErreur(new CErreurException(e)); } return(result); }