Exemplo n.º 1
0
        public Business.Entities.RiskImpact GetDbObject()
        {
            Business.Entities.RiskImpact dbItem = new Business.Entities.RiskImpact();
            dbItem.Type              = Type;
            dbItem.ImpactId          = ImpactId;
            dbItem.RiskId            = RiskId;
            dbItem.QuantitatifImpact = QuantitatifImpact;
            dbItem.Probability       = Probability;
            dbItem.Impact            = Impact;
            dbItem.RPN = RPN;
            //dbItem.QuantitatifImpactRes = QuantitatifImpactRes;
            //dbItem.ProbabilityRes = ProbabilityRes;
            //dbItem.ImpactRes = ImpactRes;
            //dbItem.RPNRes = RPNRes;
            dbItem.ModifiedBy   = ModifiedBy;
            dbItem.ModifiedDate = ModifiedDate;
            dbItem.CreatedBy    = CreatedBy;
            dbItem.CreatedDate  = CreatedDate;
            dbItem.IsDeleted    = IsDeleted;

            return(dbItem);
        }
Exemplo n.º 2
0
        public RiskImpactFormStub(Business.Entities.RiskImpact riskImpact)
        {
            RiskId            = riskImpact.RiskId;
            ImpactId          = riskImpact.ImpactId;
            this.Type         = riskImpact.Type;
            QuantitatifImpact = riskImpact.QuantitatifImpact;
            Probability       = riskImpact.Probability;
            Impact            = riskImpact.Impact;
            RPN = riskImpact.RPN;
            //QuantitatifImpactRes    = riskImpact.QuantitatifImpactRes;
            //ProbabilityRes          = riskImpact.ProbabilityRes;
            //ImpactRes               = riskImpact.ImpactRes;
            //RPNRes                  = riskImpact.RPNRes;
            ModifiedBy   = riskImpact.ModifiedBy;
            ModifiedDate = riskImpact.ModifiedDate;
            CreatedBy    = riskImpact.CreatedBy;
            CreatedDate  = riskImpact.CreatedDate;
            IsDeleted    = riskImpact.IsDeleted;

            FillProbabilityOptions();
            FillImpactOptions();
        }