/// <summary>
        ///
        /// </summary>
        public string GetVipCardRechargeRecordListData()
        {
            var    service = new VipCardRechargeRecordBLL(CurrentUserInfo);
            string content = string.Empty;

            string key = string.Empty;

            if (Request("VipCardID") != null && Request("VipCardID") != string.Empty)
            {
                key = Request("VipCardID").ToString().Trim();
            }

            int pageIndex = Utils.GetIntVal(FormatParamValue(Request("page"))) - 1;

            IList <VipCardRechargeRecordEntity> data;

            int maxRowCount   = PageSize;
            int startRowIndex = Utils.GetIntVal(Request("start"));

            VipCardRechargeRecordEntity queryInfo = new VipCardRechargeRecordEntity();

            queryInfo.VipCardID = key;
            data = service.GetList(queryInfo, pageIndex, PageSize);
            int totalCount = service.GetListCount(queryInfo);

            content = string.Format("{{\"totalCount\":{1},\"topics\":{0}}}",
                                    data.ToJSON(),
                                    totalCount);

            return(content);
        }
        /// <summary>
        /// 卡注销
        /// </summary>
        public string SaveVipCardRechargeData()
        {
            var    vipCardRechargeRecordBLL = new VipCardRechargeRecordBLL(CurrentUserInfo);
            var    vipCardBLL = new VipCardBLL(CurrentUserInfo);
            string content    = string.Empty;
            var    data       = new VipRespData();

            string key = string.Empty;

            if (Request("vip") != null && Request("vip") != string.Empty)
            {
                key = Request("vip").ToString().Trim();
            }

            var entity = key.DeserializeJSONTo <VipCardRechargeQueryEntity>();

            if (entity.VipCardID == null || entity.VipCardID.Trim().Length == 0)
            {
                data.success     = false;
                data.Description = "卡标识不能为空";
                return(data.ToJSON());
            }

            string error  = string.Empty;
            var    result = vipCardRechargeRecordBLL.SetVipCardRecjargeRpecord(
                entity.VipCardID, entity.RechargeAmount, entity.OrderNo,
                entity.PaymentTypeID, entity.UnitID, out error);

            if (!result)
            {
                data.success     = false;
                data.Description = "错误:" + error;
                return(data.ToJSON());
            }

            string Lock = string.Empty;

            if (Request("Lock") != null && Request("Lock") != string.Empty)
            {
                Lock = Request("Lock").ToString().Trim();
                if (Lock == "1")
                {
                    LockVipCardInfoData();
                }
            }

            content = data.ToJSON();
            return(content);
        }