public static string incomeLevel2Str(Util.Resource resource, IncomeLevel level) { switch (level) { case IncomeLevel.GOOD: return resource.getMsg("good"); case IncomeLevel.BAD: return resource.getMsg("bad"); default: return resource.getMsg("good"); } }
public static string familyLevel2Str(Util.Resource resource, FamilyLevel level) { switch (level) { case FamilyLevel.LOW: return resource.getMsg("family_level_low"); case FamilyLevel.MEDIUM: return resource.getMsg("family_level_medium"); case FamilyLevel.HIGH: return resource.getMsg("family_level_high"); default: return resource.getMsg("family_level_medium"); } }
public static string customerType2Str(Util.Resource resource, CustomerType type) { switch (type) { case CustomerType.AGENT: return resource.getMsg("customer_type_agent"); case CustomerType.PERSONAL: return resource.getMsg("customer_type_personal"); case CustomerType.OTHER: return resource.getMsg("customer_type_other"); default: return resource.getMsg("customer_type_personal"); } }
public static string customerLevel2Str(Util.Resource resource, CustomerLevel level) { switch (level) { case CustomerLevel.LOW: return resource.getMsg("customer_level_low"); case CustomerLevel.MEDIUM: return resource.getMsg("customer_level_medium"); case CustomerLevel.HIGH: return resource.getMsg("customer_level_high"); default: return resource.getMsg("customer_level_medium"); } }