Exemple #1
0
        public RiskFormStub(Business.Entities.Risk risk)
        {
            RiskId                    = risk.RiskId;
            Controll                  = risk.Controll;
            KRI                       = risk.KRI;
            ProcessBusiness           = risk.ProcessBusiness;
            QualitatifImpact          = risk.QualitatifImpact;
            QualitatifQuantitatifRisk = risk.QualitatifQuantitatifRisk;
            RiskAgent                 = risk.RiskAgent;
            RiskCategory              = risk.RiskCategory;
            RiskClasification         = risk.RiskClasification;
            RiskEvent                 = risk.RiskEvent;
            RiskImpacts               = risk.RiskImpacts;
            RiskMitigations           = risk.RiskMitigations;
            RiskNumber                = risk.RiskNumber;
            Year                      = risk.Year;
            ModifiedBy                = risk.ModifiedBy;
            ModifiedDate              = risk.ModifiedDate;
            CreatedBy                 = risk.CreatedBy;
            CreatedDate               = risk.CreatedDate;
            IsDeleted                 = risk.IsDeleted;

            FillQualitatifQuantitatifRiskOptions();
            FillRiskClasificationOptions();
        }
Exemple #2
0
        public Business.Entities.Risk GetDbObject()
        {
            Business.Entities.Risk dbItem = new Business.Entities.Risk();
            dbItem.RiskId                    = RiskId;
            dbItem.Controll                  = Controll;
            dbItem.KRI                       = KRI;
            dbItem.ProcessBusiness           = ProcessBusiness;
            dbItem.QualitatifImpact          = QualitatifImpact;
            dbItem.QualitatifQuantitatifRisk = QualitatifQuantitatifRisk;
            dbItem.RiskAgent                 = RiskAgent;
            dbItem.RiskCategory              = RiskCategory;
            dbItem.RiskClasification         = RiskClasification;
            dbItem.RiskEvent                 = RiskEvent;
            dbItem.RiskImpacts               = RiskImpacts;
            dbItem.RiskMitigations           = RiskMitigations;
            dbItem.RiskNumber                = RiskNumber;
            dbItem.Year                      = Year;
            dbItem.ModifiedBy                = ModifiedBy;
            dbItem.ModifiedDate              = ModifiedDate;
            dbItem.CreatedBy                 = CreatedBy;
            dbItem.CreatedDate               = CreatedDate;
            dbItem.IsDeleted                 = IsDeleted;

            return(dbItem);
        }