/// <summary>
        /// 获取Vip信息
        /// </summary>
        public string GetCustomerPayAssignInfoById()
        {
            var service = new CustomerPayAssignBLL(CurrentUserInfo);
            CustomerPayAssignEntity obj = null;
            string content = string.Empty;

            string key = string.Empty;

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

            CustomerPayAssignEntity queryEntity = new CustomerPayAssignEntity();

            queryEntity.AssignId = key;
            var tmpList = service.GetList(queryEntity, 1, 1);

            if (tmpList != null && tmpList.Count > 0)
            {
                obj = tmpList[0];
            }

            var jsonData = new JsonData();

            jsonData.totalCount = obj == null ? "0" : "1";
            jsonData.data       = obj;

            content = jsonData.ToJSON();
            return(content);
        }
        /// <summary>
        /// 查询
        /// </summary>
        public string GetCustomerPayAssignListData()
        {
            var form = Request("form").DeserializeJSONTo <VipQueryEntity>();

            var    service = new CustomerPayAssignBLL(CurrentUserInfo);
            string content = string.Empty;

            CustomerPayAssignEntity queryEntity = new CustomerPayAssignEntity();

            queryEntity.CustomerId            = CurrentUserInfo.CurrentUser.customer_id;
            queryEntity.PaymentTypeId         = FormatParamValue(form.PaymentTypeId);
            queryEntity.CustomerAccountNumber = FormatParamValue(form.CustomerAccountNumber);
            int pageIndex = Utils.GetIntVal(FormatParamValue(Request("page")));

            var listObj    = service.GetList(queryEntity, pageIndex, PageSize);
            var totalCount = service.GetListCount(queryEntity);

            var jsonData = new JsonData();

            jsonData.totalCount = totalCount.ToString();
            jsonData.data       = listObj;

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