コード例 #1
0
ファイル: AppPointUseWay.cs プロジェクト: sundysj/Hongkun
        /// <summary>
        /// 获取key
        /// </summary>
        public static string GetKey(AppPointUseWay @enum)
        {
            switch (@enum)
            {
            case AppPointUseWay.PropertyFeeDeduction:
                return("0001");

            case AppPointUseWay.StoreTradeDeduction:
                return("0002");

            case AppPointUseWay.StoreCouponExchange:
                return("0003");

            case AppPointUseWay.PropertyGiftExchange:
                return("0004");

            case AppPointUseWay.StoreGoodsExchange:
                return("0005");

            case AppPointUseWay.AutomaticallyExpire:
                return("0099");

            default:
                throw new ArgumentException("不存在该使用方式");
            }
        }
コード例 #2
0
ファイル: AppPointUseWay.cs プロジェクト: sundysj/Hongkun
        public static string GetValue(AppPointUseWay @enum)
        {
            switch (@enum)
            {
            case AppPointUseWay.PropertyFeeDeduction:
                return("物业费抵用");

            case AppPointUseWay.StoreTradeDeduction:
                return("购物抵用");

            case AppPointUseWay.StoreCouponExchange:
                return("购物优惠券兑换");

            case AppPointUseWay.PropertyGiftExchange:
                return("物业礼品兑换");

            case AppPointUseWay.StoreGoodsExchange:
                return("商家商品兑换");

            case AppPointUseWay.AutomaticallyExpire:
                return("自动过期");

            default:
                throw new ArgumentException("不存在该使用方式");
            }
        }