vbscript 检查覆盖范围,执行保费计算,从其他保险范围中提取dd

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vbscript 检查覆盖范围,执行保费计算,从其他保险范围中提取dd相关的知识,希望对你有一定的参考价值。

Dim PolicyVersion As clsPolicyVersion
        Dim SubscribedCoverage As clsSubscribedCoverage
        Dim OfferedCoverage As clsOfferedCoverage

        PolicyVersion = GetCurrentPolicy()
        If PolicyVersion IsNot Nothing Then
            For Each SubscribedCoverage In PolicyVersion.GetListOfAllSubscribedCoverages
                OfferedCoverage = SubscribedCoverage.MyOfferedCoverage
                If OfferedCoverage IsNot Nothing Then
                    If OfferedCoverage.OfferedServiceCode = "CNOL" Then
						Dim objSubscribedCoverage1 As clsSubscribedCoverage
						Dim NoEmployees as Integer
						objSubscribedCoverage1 = GetPolicyLevelCoverage("CNOL") 
						NoEmployees = clsDynamicMethodOrPropertyCall.Manager.ValueForAPropertyName(objSubscribedCoverage1.MySubscribedServiceSpecificData,  "NonOwnedLiabilityNumberofEmployees", Nothing, True)
                    Dim NonOwnedAutos as decimal = NoEmployees * NonOwnedHired1
                        SetValueForThisData("Transportation Vehicle-->RW - Vehicle, Uninsured Motorists BI  - Non Owned Autos",NonOwnedAutos)
                    End If
                    If OfferedCoverage.OfferedServiceCode = "CHA" Then
						Dim objSubscribedCoverage2 As clsSubscribedCoverage
						Dim CostofHireLimit as Integer
						objSubscribedCoverage2 = GetPolicyLevelCoverage("CHA") 
						CostofHireLimit = clsDynamicMethodOrPropertyCall.Manager.ValueForAPropertyName(objSubscribedCoverage2.MySubscribedServiceSpecificData,  "HiredAutoCostofHire", Nothing, True)
                    Dim HiredAutosPer as decimal = CostofHireLimit * 0.01 * NonOwnedHired2
                        SetValueForThisData("Transportation Vehicle-->RW - Vehicle, Uninsured Motorists BI  - Hired Autos",HiredAutosPer)
                    Exit for
                    End If
                End If
            Next
        End If

以上是关于vbscript 检查覆盖范围,执行保费计算,从其他保险范围中提取dd的主要内容,如果未能解决你的问题,请参考以下文章

vbscript 计算范围内不是空单元格

vbscript 计算使用范围内的行数和列数!

需要VBScript列出已禁用的帐户

北京交强险规则

等保费用是什么?为什么这么贵?

等保费用是什么?为什么这么贵?