示例#1
0
        public virtual void Update(KpiRev newRevision)
        {
            var currentRevision = ActiveRevision;

            currentRevision?.Deactivate();

            KpiRevs.Add(newRevision);
        }
示例#2
0
        public static KpiRev Create(Kpi kpi, string kpiName, string kpiDesc, string calculationFormula, UnitOfMeasure unitOfMeasure, MonthlyValuesValueObject targets, User userCreator)
        {
            var entity = new KpiRev(userCreator)
            {
                Kpi                = kpi,
                KpiName            = kpiName,
                KpiDesc            = kpiDesc,
                CalculationFormula = calculationFormula,
                UnitOfMeasure      = unitOfMeasure,
                Targets            = targets
            };

            return(entity);
        }