Esempio n. 1
0
 private ClaimCollection GetProposerClaims(DataRecord data)
 {
     ClaimCollection claims = new ClaimCollection();
     for (int currentProposerClaim = 1; currentProposerClaim <= HowManyClaims; currentProposerClaim ++ )
     {
         claims.Add(BuildClaim(
             data["PROPOSERCLAIM" + currentProposerClaim + "CLAIMEDFOR"],
             data["PROPOSERCLAIM" + currentProposerClaim + "WHOWASDRIVING"],
             data["PROPOSERCLAIM" + currentProposerClaim + "WHOWASATFAULT"],
             data["PROPOSERCLAIM" + currentProposerClaim + "ANYINJURIES"],
             data["PROPOSERCLAIM" + currentProposerClaim + "CLAIMDATE"],
             data["PROPOSERCLAIM" + currentProposerClaim + "TYPEOFDAMAGE"],
             data["PROPOSERCLAIM" + currentProposerClaim + "CLAIMMADEUNDERINSURANCE"],
             data["PROPOSERCLAIM" + currentProposerClaim + "NCDAFFECTED"],
             data["PROPOSERCLAIM" + currentProposerClaim + "THEFTTYPEDESCRIPTION"],
             data["PROPOSERCLAIM" + currentProposerClaim + "OTHERTYPEDESCRIPTION"]));
     }
       return claims;
 }
Esempio n. 2
0
        public ClaimCollection GetAdditionalDriverClaims(DataRecord data, string currentDriver)
        {
            ClaimCollection claims = new ClaimCollection();
            int additionalDriverHowManyClaims = Convert.ToInt32( data["ADD"+ currentDriver + "HOWMANYCLAIMS"]);
            for (int currentClaim = 1; currentClaim <= additionalDriverHowManyClaims; currentClaim ++ )
            {
                claims.Add(BuildClaim(
                        data["ADD" + currentDriver + "CLAIM" + currentClaim.ToString() + "CLAIMEDFOR"],
                        data["ADD" + currentDriver + "CLAIM" + currentClaim.ToString() + "WHOWASDRIVING"],
                        data["ADD" + currentDriver + "CLAIM" + currentClaim.ToString() + "WHOWASATFAULT"],
                        data["ADD" + currentDriver + "CLAIM" + currentClaim.ToString() + "ANYINJURIES"],
                        data["ADD" + currentDriver + "CLAIM" + currentClaim.ToString() + "CLAIMDATE"],
                        data["ADD" + currentDriver + "CLAIM" + currentClaim.ToString() + "TYPEOFDAMAGE"],
                        data["ADD" + currentDriver + "CLAIM" + currentClaim.ToString() + "CLAIMMADEUNDERINSURANCE"],
                        data["ADD" + currentDriver + "CLAIM" + currentClaim.ToString() + "NCDAFFECTED"],
                        data["ADD" + currentDriver + "CLAIM" + currentClaim.ToString() + "THEFTTYPEDESCRIPTION"],
                        data["ADD" + currentDriver + "CLAIM" + currentClaim.ToString() + "OTHERTYPEDESCRIPTION"]));
            }

            return claims;
        }