public SicrWorkings(Guid eclId, EclType eclType) { this.eclId = eclId; this._eclType = eclType; _lifetimeEadWorkings = new LifetimeEadWorkings(eclId, this._eclType); _sicrInputs = new SicrInputWorkings(eclId, this._eclType); _pdMapping = new PDMapping(eclId, this._eclType); scenarioLifetimeLGD = new ScenarioLifetimeLGD(eclId, this._eclType); _processECL_LGD = new ProcessECL_LGD(eclId, eclType); }
public bool ProcessFrameworkOverride(FrameworkParameters input, List <Loanbook_Data> batchContracts, Guid eclId, EclType eclType) { var overrideModel = Path.Combine(input.BasePath, $"{AppSettings.new_}{AppSettings.override_}{input.ModelFileName}"); var modelRemote = overrideModel.Replace(AppSettings.Drive, AppSettings.ECLServer5).Replace(AppSettings.new_, AppSettings.complete_).Replace(AppSettings.override_, string.Empty); File.Copy(modelRemote, overrideModel, true); var overrides = new ProcessECL_LGD(eclId, eclType).GetOverrideData(4); WriteOverrideData(overrides, overrideModel); var modelOverrideRemote = overrideModel.Replace(AppSettings.Drive, AppSettings.ECLServer5); File.Copy(overrideModel, modelOverrideRemote, true); return(true); }
public LifetimeEadWorkings(Guid eclId, EclType eclType) { this._eclId = eclId; this._eclType = eclType; _irFactorWorkings = new IrFactorWorkings(_eclId, _eclType); _sicrInputs = new SicrInputWorkings(this._eclId, _eclType); _processECL_LGD = new ProcessECL_LGD(eclId, eclType); var eclFrameworkAssumptions = GetECLFrameworkAssumptions(); var itm = eclFrameworkAssumptions.FirstOrDefault(o => o.Key == ImpairmentRowKeys.ForwardTransitionStage2to3); try { if (itm != null) { MPD_Default_Criteria = int.Parse(itm.Value) / 30; } } catch { } reportingDate = GetReportingDate(eclType, eclId); }
public UpdatedFSVsWorkings(Guid eclId, EclType eclType) { this.eclId = eclId; this._eclType = eclType; _processECL_LGD = new ProcessECL_LGD(eclId, eclType); }