vbscript 损失评估线计算(获取动态数据并计算它们)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vbscript 损失评估线计算(获取动态数据并计算它们)相关的知识,希望对你有一定的参考价值。

		Dim objEvaluationLine as clsLossEvaluationLine
		Dim ValeuraneufHTMontant as decimal
		Dim Coefficientdevetuste as decimal
		Dim Valeurvenale as decimal
		Dim Valeuraneufbonus as decimal

		Dim objClaim As clsClaim
		objClaim = GetObjectToBeUsedForThisClass(GetType(clsClaim).Name, ListOfObjectsToBeUsedInFormula)
		
		objEvaluationLine=GetObjectToBeUsedForThisClass(GetType(clsLossEvaluationLine).Name, ListOfObjectsToBeUsedInFormula)
		Trace("objEvaluationLine  found " & objEvaluationLine.AsString(""),7)
		if objEvaluationLine isnot nothing then
		
			ValeuraneufHTMontant=clsDynamicMethodOrPropertyCall.Manager.ValueForAPropertyName(objEvaluationLine,"ValeuraneufHTMontant",Nothing,True)
			Trace("ValeuraneufHTMontant="& ValeuraneufHTMontant,7)
			Trace("objClaim status " & objClaim.ClaimStatus , 7)
			
			if objClaim.ClaimStatus=1 then
				'loss declaration
				result(0)=ValeuraneufHTMontant
			else
			
				Coefficientdevetuste=clsDynamicMethodOrPropertyCall.Manager.ValueForAPropertyName(objEvaluationLine,"Coefficientdevetuste",Nothing,True)
				Trace("Coefficientdevetuste="& Coefficientdevetuste,7)
				Valeurvenale=clsDynamicMethodOrPropertyCall.Manager.ValueForAPropertyName(objEvaluationLine,"Valeurvenale",Nothing,True)
				Trace("Valeurvenale="& Valeurvenale,7)
				Valeuraneufbonus=clsDynamicMethodOrPropertyCall.Manager.ValueForAPropertyName(objEvaluationLine,"Valeuraneufbonus",Nothing,True)
				Trace("Valeuraneufbonus="& Valeuraneufbonus,7)
				if Valeuraneufbonus>0 then
					result(0)=Valeurvenale*(1+(Valeuraneufbonus/100))
					if result(0)>ValeuraneufHTMontant then
						result(0)=ValeuraneufHTMontant
					end if
				Else
					result(0)=Valeurvenale
				End if
			End If
		else
			result(0)=0
		end if

以上是关于vbscript 损失评估线计算(获取动态数据并计算它们)的主要内容,如果未能解决你的问题,请参考以下文章

vbscript 获取当前评估行的动态数据

vbscript 获取当前损失描述的日期数据,并测试日期是否已填写

vbscript 覆盖计算动态数据的值

如何在 Tensorflow Estimator 的每个全局步骤中获取训练损失并评估损失?

vbscript 从另一个coverage获取动态数据

vbscript 仅在第一次损失流程通知中显示索赔数据