private static string ConvertUseCode(AD_AddressUse value) { string code = ""; switch (value) { case AD_AddressUse.HomeAddress: code = "H"; break; case AD_AddressUse.PrimaryHome: code = "HP"; break; case AD_AddressUse.VacationHome: code = "HV"; break; case AD_AddressUse.WorkPlace: code = "DIR"; break; case AD_AddressUse.Public: code = "PUB"; break; case AD_AddressUse.BadAddress: code = "BAD"; break; case AD_AddressUse.PhysicalVisit: code = "PHYS"; break; case AD_AddressUse.PostalAddress: code = "PST"; break; case AD_AddressUse.TemporaryAddress: code = "TMP"; break; case AD_AddressUse.Alphabetic: code = "ABC"; break; case AD_AddressUse.Ideographic: code = "IDE"; break; case AD_AddressUse.Syllabic: code = "SYL"; break; default: break; } return(code); }
internal static CS <PostalAddressUse> ConvertUse(AD_AddressUse value) { CS <PostalAddressUse> converted = new CS <PostalAddressUse>(); switch (value) { case AD_AddressUse.HomeAddress: converted.Code = PostalAddressUse.HomeAddress; break; case AD_AddressUse.PrimaryHome: converted.Code = PostalAddressUse.PrimaryHome; break; case AD_AddressUse.VacationHome: converted.Code = PostalAddressUse.VacationHome; break; case AD_AddressUse.WorkPlace: converted.Code = PostalAddressUse.WorkPlace; break; case AD_AddressUse.Public: converted.Code = PostalAddressUse.Public; break; case AD_AddressUse.BadAddress: converted.Code = PostalAddressUse.BadAddress; break; case AD_AddressUse.PhysicalVisit: converted.Code = PostalAddressUse.PhysicalVisit; break; case AD_AddressUse.PostalAddress: converted.Code = PostalAddressUse.PostalAddress; break; case AD_AddressUse.TemporaryAddress: converted.Code = PostalAddressUse.TemporaryAddress; break; case AD_AddressUse.Alphabetic: converted.Code = PostalAddressUse.Alphabetic; break; case AD_AddressUse.Ideographic: converted.Code = PostalAddressUse.Ideographic; break; case AD_AddressUse.Syllabic: converted.Code = PostalAddressUse.Syllabic; break; default: break; } return(converted); }
private static string ConvertUseCode(AD_AddressUse value) { string code = ""; switch (value) { case AD_AddressUse.HomeAddress: code = "H"; break; case AD_AddressUse.PrimaryHome: code = "HP"; break; case AD_AddressUse.VacationHome: code = "HV"; break; case AD_AddressUse.WorkPlace: code = "DIR"; break; case AD_AddressUse.Public: code = "PUB"; break; case AD_AddressUse.BadAddress: code = "BAD"; break; case AD_AddressUse.PhysicalVisit: code = "PHYS"; break; case AD_AddressUse.PostalAddress: code = "PST"; break; case AD_AddressUse.TemporaryAddress: code = "TMP"; break; case AD_AddressUse.Alphabetic: code = "ABC"; break; case AD_AddressUse.Ideographic: code = "IDE"; break; case AD_AddressUse.Syllabic: code = "SYL"; break; default: break; } return code; }
internal static CS<PostalAddressUse> ConvertUse(AD_AddressUse value) { CS<PostalAddressUse> converted = new CS<PostalAddressUse>(); switch (value) { case AD_AddressUse.HomeAddress: converted.Code = PostalAddressUse.HomeAddress; break; case AD_AddressUse.PrimaryHome: converted.Code = PostalAddressUse.PrimaryHome; break; case AD_AddressUse.VacationHome: converted.Code = PostalAddressUse.VacationHome; break; case AD_AddressUse.WorkPlace: converted.Code = PostalAddressUse.WorkPlace; break; case AD_AddressUse.Public: converted.Code = PostalAddressUse.Public; break; case AD_AddressUse.BadAddress: converted.Code = PostalAddressUse.BadAddress; break; case AD_AddressUse.PhysicalVisit: converted.Code = PostalAddressUse.PhysicalVisit; break; case AD_AddressUse.PostalAddress: converted.Code = PostalAddressUse.PostalAddress; break; case AD_AddressUse.TemporaryAddress: converted.Code = PostalAddressUse.TemporaryAddress; break; case AD_AddressUse.Alphabetic: converted.Code = PostalAddressUse.Alphabetic; break; case AD_AddressUse.Ideographic: converted.Code = PostalAddressUse.Ideographic; break; case AD_AddressUse.Syllabic: converted.Code = PostalAddressUse.Syllabic; break; default: break; } return converted; }