Exemplo n.º 1
0
        public static string GetValue(AppPointUsableObject @enum)
        {
            switch (@enum)
            {
            case AppPointUsableObject.PropertyFee:
                return("物业费");

            case AppPointUsableObject.ParkingFee:
                return("车位费");

            case AppPointUsableObject.OtherFee:
                return("其他代收费用");

            case AppPointUsableObject.Goods:
                return("商品");

            default:
                throw new ArgumentException("不存在该积分对象");
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// 获取key
        /// </summary>
        public static string GetKey(AppPointUsableObject @enum)
        {
            switch (@enum)
            {
            case AppPointUsableObject.PropertyFee:
                return("0001");

            case AppPointUsableObject.ParkingFee:
                return("0002");

            case AppPointUsableObject.OtherFee:
                return("0003");

            case AppPointUsableObject.Goods:
                return("0011");

            default:
                throw new ArgumentException("不存在该积分对象");
            }
        }