//------------------------------------------------------------------------------ public CImputationsCouts GetImputationsAFaireSurUtilisateursDeCout() { CImputationsCouts imputations = new CImputationsCouts(this); COperation operationParente = OperationParente; if (operationParente != null && (operationParente.Row.RowState == DataRowState.Deleted || operationParente.Row.RowState == DataRowState.Detached)) { operationParente.VersionToReturn = DataRowVersion.Original; } if (operationParente != null) { imputations.AddImputation(operationParente, imputations.PoidsTotal == 0 ? 1 : 0, null); } if (FractionIntervention != null) { imputations.AddImputation(FractionIntervention, imputations.PoidsTotal == 0 ? 1 : 0, null); } else if (Intervention != null) { imputations.AddImputation(Intervention, imputations.PoidsTotal == 0 ? 1 : 0, null); } return(imputations); }
//--------------------------------------------- public CImputationsCouts GetImputationsAFaireSurUtilisateursDeCout() { CImputationsCouts imputations = new CImputationsCouts(this); foreach (CRelationBesoin_Satisfaction rel in RelationsSatisfaits) { imputations.AddImputation(rel.Besoin, rel.RatioCoutReelApplique, rel); } return(imputations); }
//----------------------------------------------------------------------- public CImputationsCouts GetImputationsAFaireSurUtilisateursDeCout() { CImputationsCouts imputations = new CImputationsCouts(this); if (Intervention != null) { imputations.AddImputation(Intervention, 1, null); } return(imputations); }