| 123456789101112131415161718192021222324252627282930 |
- using System.Collections.Generic;
- namespace BizCom.Enum
- {
- public class ProductCategory
- {
- public const int xianHuo = 1,//现货类
- dingZhi = 2,//定制类
- dianZiWenJian = 3;//电子文件
- static Dictionary<int, string> map = null;
- static ProductCategory()
- {
- if (map == null)
- {
- map = new Dictionary<int, string>();
- map.Add(ProductCategory.xianHuo, "现货类");
- map.Add(ProductCategory.dingZhi, "定制类");
- map.Add(ProductCategory.dianZiWenJian, "电子文件");
- }
- }
- public static string getText(int value)
- {
- return map[value];
- }
- }
- }
|