Beispiel #1
0
        /// <summary>
        /// 查询
        /// </summary>
        public string GetUnitRewardData()
        {
            string    error   = string.Empty;
            var       service = new VipBLL(CurrentUserInfo);
            VipEntity listObj = null;
            string    content = string.Empty;

            VipEntity queryEntity = new VipEntity();

            queryEntity.Page     = Utils.GetIntVal(Request("page"));
            queryEntity.PageSize = PageSize;
            //queryEntity.VipInfo = FormatParamValue(form.VipInfo);
            queryEntity.UnitId            = FormatParamValue(Request("UnitId"));
            queryEntity.IntegralSourceIds = FormatParamValue(Request("IntegralSourceIds"));
            queryEntity.BeginDate         = FormatParamValue(Request("BeginDate"));
            queryEntity.EndDate           = FormatParamValue(Request("EndDate"));

            if (queryEntity.IntegralSourceIds.StartsWith(","))
            {
                queryEntity.IntegralSourceIds = queryEntity.IntegralSourceIds.Substring(1);
            }

            listObj = service.GetUnitIntegral(queryEntity, out error);

            var jsonData = new JsonData();

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

            content = string.Format("{{\"totalCount\":{1},\"topics\":{0}}}",
                                    jsonData.data.ToJSON(),
                                    jsonData.totalCount);
            return(content);
        }
Beispiel #2
0
        private void GetUnitIntegral()
        {
            LoggingSessionInfo loggingSessionInfo = new LoggingSessionInfo();

            loggingSessionInfo = new CLoggingSessionService().GetLoggingSessionInfo("f6a7da3d28f74f2abedfc3ea0cf65c01", "17e02a6dd0094de9b18da1ca73d37027");
            VipEntity vipSearchInfo = new VipEntity();
            VipEntity info          = new VipEntity();
            VipBLL    vipServer     = new VipBLL(loggingSessionInfo);
            string    strError      = string.Empty;

            info = vipServer.GetUnitIntegral(vipSearchInfo, out strError);
        }