Ejemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     // BaseCount = bll.GetCount<WBBaseInfo>(string.Format("WebSiteOwner='{0}'",bll.WebsiteOwner));
     // CompanyCount = bll.GetCount<WBCompanyInfo>(string.Format("WebSiteOwner='{0}'", bll.WebsiteOwner));
     ProjectCount      = bll.GetCount <WBProjectInfo>(string.Format("WebSiteOwner='{0}'", bll.WebsiteOwner));
     JointProjectCount = bll.GetCount <WBJointProjectInfo>(string.Format("WebSiteOwner='{0}'", bll.WebsiteOwner));
 }
Ejemplo n.º 2
0
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            int    pageIndex = !string.IsNullOrEmpty(context.Request["pageindex"]) ? int.Parse(context.Request["pageindex"]) : 1;
            int    pageSize  = !string.IsNullOrEmpty(context.Request["pagesize"]) ? int.Parse(context.Request["pagesize"]) : 10;
            string keyWord   = context.Request["keyword"];

            System.Text.StringBuilder sbWhere = new System.Text.StringBuilder(string.Format(" WebSiteOwner='{0}'", bll.WebsiteOwner));
            if (!string.IsNullOrEmpty(keyWord))
            {
                sbWhere.AppendFormat(" AND LinkText like '%{0}%'", keyWord);
            }
            int totalCount = bll.GetCount <ZentCloud.BLLJIMP.Model.Slide>(sbWhere.ToString());
            var slideData  = bll.GetLit <ZentCloud.BLLJIMP.Model.Slide>(pageSize, pageIndex, sbWhere.ToString());
            var list       = from p in slideData
                             select new
            {
                slide_id   = p.AutoID,
                img_url    = p.ImageUrl,
                link       = p.Link,
                link_text  = p.LinkText,
                slide_type = p.Type,
                slide_sort = p.Sort
            };
            var data = new
            {
                totalcount = totalCount,
                list       = list//列表
            };

            context.Response.Write(ZentCloud.Common.JSONHelper.ObjectToJson(data));
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 根据条件获取数据
        /// </summary>
        private static string GetAllByAny(HttpContext context)
        {
            //if (!_isview)
            //{
            //    return null;
            //}

            int    pageIndex = Convert.ToInt32(context.Request["page"]);
            int    pageSize  = Convert.ToInt32(context.Request["rows"]);
            string keyWord   = context.Request["SearchTitle"];
            var    strWhere  = string.Format("UserID='{0}'", DataLoadTool.GetCurrUserID());

            //if (!string.IsNullOrEmpty(searchtitle))
            //{
            //    searchCondition += "UserID like '%" + searchtitle + "%'";
            //}

            List <ZentCloud.BLLJIMP.Model.WeixinMemberInfo> dataList = bll.GetLit <ZentCloud.BLLJIMP.Model.WeixinMemberInfo>(pageSize, pageIndex, strWhere, "RegDate ASC");

            int totalCount = bll.GetCount <ZentCloud.BLLJIMP.Model.WeixinMemberInfo>(strWhere);

            return(Common.JSONHelper.ObjectToJson(
                       new
            {
                total = totalCount,
                rows = dataList
            }));
        }
Ejemplo n.º 4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(Request["id"]))
     {
         Response.Write("无参数");
         Response.End();
         return;
     }
     model = bll.Get <WBBaseInfo>(string.Format("AutoID={0}", Request["id"]));
     if (model == null)
     {
         Response.Write("基地不存在");
         Response.End();
         return;
     }
     if (model.IsDisable.Equals(1))
     {
         Response.Write("此基地已经禁用,暂时不能查看");
         Response.End();
         return;
     }
     if (DataLoadTool.CheckWanBangLogin())
     {
         IsLogin = true;
         if (bll.GetCount <WBAttentionInfo>(string.Format("UserId='{0}' And AttentionAutoID={1} And AttentionType={2}", HttpContext.Current.Session[SessionKey.WanBangUserID].ToString(), model.AutoID, 0)) > 0)
         {
             IsAttention = true;
         }
     }
 }
Ejemplo n.º 5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         uinfo        = DataLoadTool.GetCurrUserModel();
         bllUserScore = new BLLJIMP.BLLUserScore(uinfo.UserID);
         BLLJIMP.BLL bll = new BLLJIMP.BLL();
         txtCount.Text       = bll.GetCount <BLLJIMP.Model.ForwardingRecord>(string.Format(" FUserID='{0}' and TypeName = '分享'", uinfo.UserID)).ToString();
         IsShowRed           = bll.GetCount <BLLJIMP.Model.ReviewInfo>(string.Format("ForeignkeyId='{0}' and IsRead <> 1", uinfo.UserID)) > 0 ? true : false;
         UserLevel           = bllUserScore.GetUserLevelByTotalScore(uinfo.HistoryTotalScore);
         FlowerCount         = bllUser.GetUserFlowerCount(uinfo.UserID);
         AttentionCount      = bllUser.GetUserAttentionCount(uinfo.UserID);
         IsHaveUnReadMessage = bllNotice.IsHaveUnReadMessage(bll.GetCurrentUserInfo().UserID).ToString();
         IsTutor             = bllUser.IsTutor(uinfo);
     }
 }
Ejemplo n.º 6
0
        public void ProcessRequest(HttpContext context)
        {
            int    pageIndex = !string.IsNullOrEmpty(context.Request["pageindex"]) ? int.Parse(context.Request["pageindex"]) : 1;
            int    pageSize  = !string.IsNullOrEmpty(context.Request["pagesize"]) ? int.Parse(context.Request["pagesize"]) : 10;
            string keyWord   = context.Request["keyword"];

            System.Text.StringBuilder sbWhere = new System.Text.StringBuilder(" 1=1");
            if (!string.IsNullOrEmpty(keyWord))
            {
                sbWhere.AppendFormat(" AND ExpressCompanyName like '%{0}%'", keyWord);
            }
            int totalCount  = bll.GetCount <ExpressInfo>(sbWhere.ToString());
            var expressData = bll.GetLit <ExpressInfo>(pageSize, pageIndex, sbWhere.ToString());
            var list        = from p in expressData
                              select new
            {
                express_company_name = p.ExpressCompanyName,
                express_company_code = p.ExpressCompanyCode
            };
            var data = new
            {
                totalcount = totalCount,
                list       = list//列表
            };

            context.Response.Write(ZentCloud.Common.JSONHelper.ObjectToJson(data));
            return;
        }
Ejemplo n.º 7
0
        /// <summary>
        /// 获取公司列表
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        private string List(HttpContext context)
        {
            int    pageIndex = !string.IsNullOrEmpty(context.Request["pageindex"]) ? int.Parse(context.Request["pageindex"]) : 1;
            int    pageSize  = !string.IsNullOrEmpty(context.Request["pagesize"]) ? int.Parse(context.Request["pagesize"]) : 10;
            string keyWord   = context.Request["keyword"];

            System.Text.StringBuilder sbWhere = new System.Text.StringBuilder(string.Format(" WebSiteOwner='{0}'", bll.WebsiteOwner));
            if (!string.IsNullOrEmpty(keyWord))
            {
                sbWhere.AppendFormat(" And ComPanyName like '%{0}%'", keyWord);
            }
            int totalCount = bll.GetCount <CompanyInfo>(sbWhere.ToString());
            var sourceData = bll.GetLit <CompanyInfo>(pageSize, pageIndex, sbWhere.ToString());
            var list       = from p in sourceData
                             select new
            {
                company_id         = p.CompanyId,
                company_logo       = bll.GetImgUrl(p.CompanyLogo),
                company_name       = p.ComPanyName,
                company_tel        = p.LinkTel,
                company_natrue     = p.Nature,
                company_director   = p.Director,
                company_websiteurl = p.WebsiteUrl
            };

            var data = new
            {
                totalcount = totalCount,
                list       = list,//列表
            };

            return(ZentCloud.Common.JSONHelper.ObjectToJson(data));
        }
Ejemplo n.º 8
0
        /// <summary>
        /// 根据条件获取数据
        /// </summary>
        private static string GetAllByAny(HttpContext context)
        {
            //if (!_isview)
            //{
            //    return null;
            //}

            int    page            = Convert.ToInt32(context.Request["page"]);
            int    rows            = Convert.ToInt32(context.Request["rows"]);
            string searchtitle     = context.Request["SearchTitle"];
            var    searchCondition = string.Format("UserID='{0}'", Comm.DataLoadTool.GetCurrUserID());

            if (!string.IsNullOrEmpty(searchtitle))
            {
                searchCondition += "And WeiboName like '%" + searchtitle + "%'";
            }

            List <WeiboUserCollect> list = bll.GetLit <WeiboUserCollect>(rows, page, searchCondition, "AddDate DESC");

            int totalCount = bll.GetCount <WeiboUserCollect>(searchCondition);

            string jsonResult = ZentCloud.Common.JSONHelper.ObjectToJson(totalCount, list);

            return(jsonResult);
        }
Ejemplo n.º 9
0
        public void ProcessRequest(HttpContext context)
        {
            int    pageIndex = !string.IsNullOrEmpty(context.Request["pageindex"]) ? int.Parse(context.Request["pageindex"]) : 1;
            int    pageSize  = !string.IsNullOrEmpty(context.Request["pagesize"]) ? int.Parse(context.Request["pagesize"]) : 10;
            string keyWord   = context.Request["keyword"];

            System.Text.StringBuilder sbWhere = new System.Text.StringBuilder(string.Format(" WebSiteOwner='{0}' AND CategoryType='activity'", bll.WebsiteOwner));
            if (string.IsNullOrEmpty(keyWord))
            {
                sbWhere.AppendFormat(" AND CategoryName like '%{0}%' ", keyWord);
            }
            int totalCount       = bll.GetCount <ArticleCategory>(sbWhere.ToString());
            var mallCategoryData = bll.GetLit <ArticleCategory>(pageSize, pageIndex, sbWhere.ToString());
            var list             = from p in mallCategoryData
                                   select new
            {
                category_id        = p.AutoID,
                category_name      = p.CategoryName,
                category_summary   = p.Summary,
                category_img_url   = p.ImgSrc,
                category_sort      = p.Sort,
                category_systype   = p.SysType,
                category_parent_id = p.PreID
            };
            var data = new
            {
                totalcount = totalCount,
                list       = list//列表
            };

            context.Response.Write(ZentCloud.Common.JSONHelper.ObjectToJson(data));
        }
Ejemplo n.º 10
0
        public void ProcessRequest(HttpContext context)
        {
            int    pageIndex = string.IsNullOrEmpty(context.Request["page"]) ? 1 : int.Parse(context.Request["page"]);
            int    pageSize  = string.IsNullOrEmpty(context.Request["rows"]) ? 1 : int.Parse(context.Request["rows"]);
            string keyWord   = context.Request["keyword"];

            System.Text.StringBuilder sbWhere = new System.Text.StringBuilder();

            sbWhere.AppendFormat(" WebsiteOwner='{0}'", bll.WebsiteOwner);

            if (!string.IsNullOrEmpty(keyWord))
            {
                sbWhere.AppendFormat(" And PageName like '%{0}%'", keyWord);
            }
            var totalCount = bll.GetCount <PcPage>(sbWhere.ToString());
            var sourceData = bll.GetLit <PcPage>(pageSize, pageIndex, sbWhere.ToString());
            var list       = from p in sourceData
                             select new {
                p.PageId,
                p.PageName
            };

            var data = new
            {
                total = totalCount,
                rows  = list
            };

            context.Response.Write(ZentCloud.Common.JSONHelper.ObjectToJson(data));
        }
Ejemplo n.º 11
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                BLLJIMP.Model.UserInfo uinfo = bll.GetCurrentUserInfo();
                if (string.IsNullOrEmpty(uinfo.TrueName) || string.IsNullOrEmpty(uinfo.Phone))
                {
                    isUserRegistered = false;
                }

                AutoId = Request["id"];
                if (!string.IsNullOrEmpty(AutoId))
                {
                    GetPosition();

                    var List = bll.GetList <ArticleCategory>(string.Format("WebsiteOwner='{0}' And CategoryType in ('trade','Professional')", bll.WebsiteOwner));
                    TradeList        = List.Where(p => p.CategoryType.Equals("trade")).ToList();
                    ProfessionalList = List.Where(p => p.CategoryType.Equals("Professional")).ToList();
                    IsApply          = bll.GetCount <ApplyPositionInfo>(string.Format("UserId='{0}' And PositionId={1}", DataLoadTool.GetCurrUserID(), AutoId)) > 0 ? true : false;
                }
            }
            catch (Exception)
            {
                Response.End();
            }
        }
Ejemplo n.º 12
0
        public void ProcessRequest(HttpContext context)
        {
            int    pageIndex = !string.IsNullOrEmpty(context.Request["pageindex"]) ? int.Parse(context.Request["pageindex"]) : 1;
            int    pageSize  = !string.IsNullOrEmpty(context.Request["pagesize"]) ? int.Parse(context.Request["pagesize"]) : 10;
            string keyWord   = context.Request["keyword"];

            System.Text.StringBuilder sbWhere = new System.Text.StringBuilder(string.Format(" WebsiteOwner='{0}'", bll.WebsiteOwner));
            if (!string.IsNullOrEmpty(keyWord))
            {
                sbWhere.AppendFormat(" AND TypeName like '%{0}%'", keyWord);
            }
            int totalCount  = bll.GetCount <ZentCloud.BLLJIMP.Model.TypeInfo>(sbWhere.ToString());
            var expressData = bll.GetLit <ZentCloud.BLLJIMP.Model.TypeInfo>(pageSize, pageIndex, sbWhere.ToString());
            var list        = from p in expressData
                              select new
            {
                type_id   = p.TypeId,
                type_name = p.TypeName
            };

            apiResp.status = true;
            apiResp.msg    = "ok";
            apiResp.result = new
            {
                totalcount = totalCount,
                list       = list//列表
            };
            context.Response.Write(ZentCloud.Common.JSONHelper.ObjectToJson(apiResp));
        }
Ejemplo n.º 13
0
        private static string GetAllByAny(HttpContext context)
        {
            int    pageIndex   = Convert.ToInt32(context.Request["page"]);
            int    pageSize    = Convert.ToInt32(context.Request["rows"]);
            string searchtitle = context.Request["SearchTitle"];
            string filterType  = context.Request["FilterType"];



            var sbWhere = new System.Text.StringBuilder(" 1=1");

            if (!string.IsNullOrEmpty(searchtitle))
            {
                sbWhere.AppendFormat(" And PagePath like '%{0}%'", searchtitle);
            }
            if (!string.IsNullOrEmpty(filterType))
            {
                sbWhere.AppendFormat(" And FilterType ='{0}'", filterType);
            }
            else
            {
                sbWhere.AppendFormat(" And FilterType !='WXOAuth'");
            }

            List <ModuleFilterInfo> list = bll.GetLit <ModuleFilterInfo>(pageSize, pageIndex, sbWhere.ToString(), "PagePath ASC");

            int totalCount = bll.GetCount <ZentCloud.BLLJIMP.Model.ModuleFilterInfo>(sbWhere.ToString());

            return(Common.JSONHelper.ObjectToJson(
                       new
            {
                total = totalCount,
                rows = list
            }));
        }
Ejemplo n.º 14
0
        /// <summary>
        /// 根据条件获取数据
        /// </summary>
        private string GetAllByAny(HttpContext context)
        {
            int page                            = Convert.ToInt32(context.Request["page"]);
            int rows                            = Convert.ToInt32(context.Request["rows"]);
            var searchCondition                 = string.Format("UserID='{0}' And GroupType=1", Comm.DataLoadTool.GetCurrUserID());
            List <MemberGroupInfo> list         = bll.GetLit <MemberGroupInfo>(rows, page, searchCondition, "GroupName DESC");
            MemberGroupInfo        DefaultGroup = new MemberGroupInfo();

            DefaultGroup.GroupID   = "0";
            DefaultGroup.GroupName = "无分组";
            list.Add(DefaultGroup);

            int    totalCount = bll.GetCount <MemberGroupInfo>(searchCondition);
            string jsonResult = ZentCloud.Common.JSONHelper.ObjectToJson(totalCount, list);

            return(jsonResult);

            //var searchCondition = string.Format("UserID='{0}' And GroupType=1", Comm.DataLoadTool.GetCurrUserID());
            //List<MemberGroupInfo> list = bll.GetList<MemberGroupInfo>(searchCondition);
            //MemberGroupInfo DefaultGroup = new MemberGroupInfo();
            //DefaultGroup.GroupID = "-2";
            //DefaultGroup.GroupName="无分组";
            //list.Add(DefaultGroup);
            //int totalCount = bll.GetCount<MemberGroupInfo>(searchCondition);
            //string jsonResult = ZentCloud.Common.JSONHelper.ObjectToJson(totalCount, list);
            //return jsonResult;
        }
Ejemplo n.º 15
0
        /// <summary>
        /// 根据条件获取数据
        /// </summary>
        private static string GetAllByAny(HttpContext context)
        {
            //if (!_isview)
            //{
            //    return null;
            //}

            int    pageIndex = Convert.ToInt32(context.Request["page"]);
            int    pageSize  = Convert.ToInt32(context.Request["rows"]);
            string keyWord   = context.Request["SearchTitle"];
            var    strWhere  = "";
            var    userinfo  = DataLoadTool.GetCurrUserModel();

            if (userinfo.UserType != 1)
            {
                strWhere = string.Format("UserID='{0}'", userinfo.UserID);
            }
            if (!string.IsNullOrEmpty(keyWord))
            {
                strWhere += " UserID like '%" + keyWord + "%'";
            }

            List <ZentCloud.BLLJIMP.Model.WeixinMsgDetails> list = bll.GetLit <ZentCloud.BLLJIMP.Model.WeixinMsgDetails>(pageSize, pageIndex, strWhere, "ReplyDate DESC");

            int totalCount = bll.GetCount <ZentCloud.BLLJIMP.Model.WeixinMsgDetails>(strWhere);

            return(Common.JSONHelper.ObjectToJson(
                       new
            {
                total = totalCount,
                rows = list
            }));
        }
Ejemplo n.º 16
0
        /// <summary>
        /// 根据条件获取数据
        /// </summary>
        private static string GetAllByAny(HttpContext context)
        {
            //if (!_isview)
            //{
            //    return null;
            //}

            int    pageIndex = Convert.ToInt32(context.Request["page"]);
            int    pageSize  = Convert.ToInt32(context.Request["rows"]);
            string keyWord   = context.Request["SearchTitle"];
            var    strWhere  = string.Format("UserID='{0}'", websiteOwner);

            if (!string.IsNullOrEmpty(keyWord))
            {
                strWhere += " AND Title like '%" + keyWord + "%'";
            }

            List <ZentCloud.BLLJIMP.Model.WeixinMsgSourceInfo> list = bll.GetLit <ZentCloud.BLLJIMP.Model.WeixinMsgSourceInfo>(pageSize, pageIndex, strWhere, "SourceID DESC");

            int totalCount = bll.GetCount <ZentCloud.BLLJIMP.Model.WeixinMsgSourceInfo>(strWhere);

            return(Common.JSONHelper.ObjectToJson(
                       new
            {
                total = totalCount,
                rows = list
            }));
        }
Ejemplo n.º 17
0
        /// <summary>
        /// 获取众筹活动列表
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        private string List(HttpContext context)
        {
            int    pageIndex = !string.IsNullOrEmpty(context.Request["pageindex"]) ? int.Parse(context.Request["pageindex"]) : 1;
            int    pageSize  = !string.IsNullOrEmpty(context.Request["pagesize"]) ? int.Parse(context.Request["pagesize"]) : 10;
            string keyWord   = context.Request["keyword"];
            string type      = context.Request["crowdfund_type"];

            System.Text.StringBuilder sbWhere = new System.Text.StringBuilder(string.Format(" WebSiteOwner='{0}'", bll.WebsiteOwner));
            if (!string.IsNullOrEmpty(keyWord))
            {
                sbWhere.AppendFormat(" And Title like '%{0}%'", keyWord);
            }
            if (!string.IsNullOrEmpty(type))
            {
                sbWhere.AppendFormat(" And Type ={0}", type);
            }
            int totalCount = bll.GetCount <CrowdFundInfo>(sbWhere.ToString());
            var sourceData = bll.GetLit <CrowdFundInfo>(pageSize, pageIndex, sbWhere.ToString(), " AutoID DESC ");
            var list       = from p in sourceData
                             select new
            {
                crowdfund_id         = p.CrowdFundID,
                crowdfund_type       = p.Type,
                crowdfund_title      = p.Title,
                crowdfund_img_url    = p.CoverImage,
                crowdfund_pay_amount = p.TotalPayAmount,
                crowdfund_pay_count  = p.PayPersionCount,
                crowdfund_percent    = p.PayPercent
            };

            var data = new
            {
                totalcount = totalCount,
                list       = list,//列表
            };

            return(ZentCloud.Common.JSONHelper.ObjectToJson(data));
        }
Ejemplo n.º 18
0
 private BLLJIMP.Model.JuActivityInfo GetActivity(string id)
 {
     model = bll.Get <BLLJIMP.Model.JuActivityInfo>(string.Format(" JuActivityID='{0}'", id));
     if (model != null)
     {
         if (model.ActivityEndDate != null)
         {
             if (DateTime.Now >= (DateTime)model.ActivityEndDate)
             {
                 model.IsHide = 1;
             }
         }
         model.PV = model.PV + 1;
         bll.Update(model);
         txtTitle.Text = model.ActivityName;
         txtStart.Text = model.IsHide == 0 ? "进行中" : "已结束";
         if (model.IsHide == -1)
         {
             txtStart.Text = "待开始";
         }
         if ((model.MaxSignUpTotalCount > 0) && (model.SignUpTotalCount >= model.MaxSignUpTotalCount) && (model.IsHide == 0))
         {
             txtStart.Text = "已满员";
         }
         classStr = model.IsHide == 0 ? "listbox" : "listbox partyover";
         if (model.IsHide == -1)
         {
             classStr = "listbox";
         }
         if (model.MaxSignUpTotalCount > 0 && (model.SignUpTotalCount >= model.MaxSignUpTotalCount))
         {
             classStr = "listbox partyfull";
         }
         txtTime.Text    = model.ActivityStartDate.ToString();
         txtAddress.Text = model.ActivityAddress;
         if ((!string.IsNullOrEmpty(model.CategoryId)) && (!model.CategoryId.Equals("0")))
         {
             txtType.Text = bll.Get <BLLJIMP.Model.ArticleCategory>(string.Format(" AutoID={0}", model.CategoryId)).CategoryName;
         }
         txtContent.Text          = model.ActivityDescription;
         txtNum.Text              = model.SignUpTotalCount.ToString();
         txtActivityIntegral.Text = model.ActivityIntegral.ToString();
         if (bll.GetCount <ActivityDataInfo>(string.Format("ActivityID={0} And WeixinOpenID='{1}' And IsDelete=0 ", model.SignUpActivityID, UserInfo.WXOpenId)) > 0)
         {
             IsSubmit = true;
         }
     }
     return(model);
 }
Ejemplo n.º 19
0
        /// <summary>
        /// 获取文章评论信息
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        private string GetArticleReviewlist(HttpContext context)
        {
            string           id        = context.Request["articleid"];
            int              pageIndex = int.Parse(context.Request["pageindex"]);
            int              pageSize  = int.Parse(context.Request["pagesize"]);
            ArticleReviewApi apiResult = new ArticleReviewApi();
            StringBuilder    sbWhere   = new StringBuilder();

            sbWhere.AppendFormat(" ReviewID={0}", id);
            apiResult.totalcount = bll.GetCount <ReplyReviewInfo>(sbWhere.ToString());
            List <ReplyReviewInfo> data       = bll.GetLit <BLLJIMP.Model.ReplyReviewInfo>(pageSize, pageIndex, sbWhere.ToString(), " AutoId desc");
            List <ArticleReview>   jsonResult = new List <ArticleReview>();

            foreach (var item in data)
            {
                ArticleReview review = new ArticleReview();
                //目标评论内容
                if (item.PraentId > 0)
                {
                    var targetReply = bll.Get <ReplyReviewInfo>(string.Format("AutoId={0}", item.PraentId)); if (targetReply != null)
                    {
                        review.reply = new ArticleReplyReview();
                        review.reply.reviewcontent = targetReply.ReplyContent;
                        review.reply.nickname      = targetReply.UserName;
                    }
                }

                //目标评论内容
                var userInfo = bllUser.GetUserInfo(item.UserId);
                if (userInfo != null)
                {
                    review.headimg = userInfo.WXHeadimgurlLocal;
                }
                review.id            = item.AutoId;
                review.nickname      = item.UserName;
                review.time          = bll.GetTimeStamp(item.InsertDate);
                review.reviewcontent = item.ReplyContent;
                if ((bll.IsLogin) && (item.UserId.Equals(currentUserInfo.UserID)))
                {
                    review.deleteflag = true;
                }


                jsonResult.Add(review);
            }
            apiResult.list = jsonResult;
            return(Common.JSONHelper.ObjectToJson(apiResult));
        }
Ejemplo n.º 20
0
        private static string GetAllByAny(HttpContext context)
        {
            int    page            = Convert.ToInt32(context.Request["page"]);
            int    rows            = Convert.ToInt32(context.Request["rows"]);
            string searchtitle     = context.Request["SearchTitle"];
            var    searchCondition = string.Format("UserID='{0}'", Comm.DataLoadTool.GetCurrUserID());

            //if (!string.IsNullOrEmpty(searchtitle))
            //{
            //    searchCondition += " And MsgKeyword like '%" + searchtitle + "%'";
            //}

            List <UserSignHistory> list = bll.GetLit <UserSignHistory>(rows, page, searchCondition, "AddDate DESC");

            int totalCount = bll.GetCount <ZentCloud.BLLJIMP.Model.UserSignHistory>(searchCondition);

            string jsonResult = ZentCloud.Common.JSONHelper.ObjectToJson(totalCount, list);

            return(jsonResult);
        }
Ejemplo n.º 21
0
        /// <summary>
        /// 列表
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        private string List(HttpContext context)
        {
            System.Text.StringBuilder sbWhere = new System.Text.StringBuilder(string.Format(" WebsiteOwner='{0}'", bll.WebsiteOwner));
            string keyWord = context.Request["keyword"];

            if (!string.IsNullOrEmpty(keyWord))
            {
                sbWhere.AppendFormat(" And (BarCode='{0}' Or CodeName='{0}' Or ModelCode='{0}')", keyWord);
            }
            var totalCount = bll.GetCount <BarCodeInfo>(sbWhere.ToString());
            var sourceData = bll.GetLit <BarCodeInfo>(rows, page, sbWhere.ToString(), "AutoId DESC");

            var data = new
            {
                total = totalCount,
                rows  = sourceData//列表
            };

            return(ZentCloud.Common.JSONHelper.ObjectToJson(data));
        }
Ejemplo n.º 22
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (string.IsNullOrEmpty(Request["id"]))
                {
                    Response.Write("无参数");
                    Response.End();
                    return;
                }
                model = bll.Get <WBProjectInfo>(string.Format("AutoId={0}", Request["id"]));
                if (model == null)
                {
                    Response.Write("项目不存在");
                    Response.End();
                    return;
                }
                if (model.Status.Equals(0))
                {
                    Response.Write("项目正在审核中,暂时不能查看");
                    Response.End();
                    return;
                }

                companymodel = bll.Get <WBCompanyInfo>(string.Format("UserId='{0}'", model.UserId));
                if (DataLoadTool.CheckWanBangLogin())
                {
                    IsLogin = true;
                    if (bll.GetCount <WBAttentionInfo>(string.Format("UserId='{0}' And AttentionAutoID={1} And AttentionType={2}", HttpContext.Current.Session[SessionKey.WanBangUserID].ToString(), model.AutoID, 2)) > 0)
                    {
                        IsAttention = true;
                    }
                }
            }
            catch (Exception)
            {
                Response.End();
            }
        }
Ejemplo n.º 23
0
        /// <summary>
        /// 获取中奖记录
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        private string getdonationrecord(HttpContext context)
        {
            DonationsModel result      = new DonationsModel();
            List <Person>  list        = new List <Person>();
            int            PeopleCount = 0;
            decimal        TotalAmount = 0;

            if (string.IsNullOrEmpty(context.Request["pageindex"]))
            {
                //resp.Msg = "pageindex不能为空";
                goto outoff;
            }
            if (string.IsNullOrEmpty(context.Request["pagesize"]))
            {
                //resp.Msg = "pagesize不能为空";
                goto outoff;
            }
            int pageIndex = int.Parse(context.Request["pageindex"]);
            int pageSize  = int.Parse(context.Request["pagesize"]);
            var source    = bll.GetLit <WXMallOrderInfo>(pageSize, pageIndex, string.Format("WebsiteOwner='qianwei' And OrderUserID='system' And PaymentStatus=1"), " InsertDate DESC");

            PeopleCount = bll.GetCount <WXMallOrderInfo>(string.Format("WebsiteOwner='qianwei' And OrderUserID='system' And PaymentStatus=1"));
            TotalAmount = bll.GetList <WXMallOrderInfo>(string.Format("WebsiteOwner='qianwei' And OrderUserID='system' And PaymentStatus=1")).Sum(p => p.TotalAmount);


            foreach (var item in source)
            {
                Person model = new Person();
                model.showname = item.Consignee;
                model.money    = item.TotalAmount;
                list.Add(model);
            }
outoff:
            result.list       = list;
            result.totalcount = PeopleCount;
            result.totalmoney = TotalAmount;
            return(Common.JSONHelper.ObjectToJson(result));
        }
Ejemplo n.º 24
0
        public void ProcessRequest(HttpContext context)
        {
            int    pageIndex      = !string.IsNullOrEmpty(context.Request["pageindex"]) ? int.Parse(context.Request["pageindex"]) : 1;
            int    pageSize       = !string.IsNullOrEmpty(context.Request["pagesize"]) ? int.Parse(context.Request["pagesize"]) : 10;
            string keyWord        = context.Request["keyword"];
            string navigationType = context.Request["navigation_link_type"];

            System.Text.StringBuilder sbWhere = new System.Text.StringBuilder(string.Format(" WebSiteOwner='{0}'", bll.WebsiteOwner));
            if (!string.IsNullOrEmpty(keyWord))
            {
                sbWhere.AppendFormat(" AND NavigationName like '%{0}%'", keyWord);
            }
            if (!string.IsNullOrEmpty(navigationType))
            {
                sbWhere.AppendFormat(" AND NavigationLinkType ='{0}'", navigationType);
            }
            int totalCount     = bll.GetCount <ZentCloud.BLLJIMP.Model.Navigation>(sbWhere.ToString());
            var navigationData = bll.GetLit <ZentCloud.BLLJIMP.Model.Navigation>(pageSize, pageIndex, sbWhere.ToString());
            var list           = from p in navigationData
                                 select new
            {
                navigation_id        = p.AutoID,
                pre_id               = p.ParentId,
                navigation_img       = p.NavigationImage,
                navigation_name      = p.NavigationName,
                navigation_link      = p.NavigationLink,
                navigation_link_type = p.NavigationLinkType,
                navigation_sort      = p.Sort
            };
            var data = new
            {
                totalcount = totalCount,
                list       = list//列表
            };

            context.Response.Write(ZentCloud.Common.JSONHelper.ObjectToJson(data));
        }
Ejemplo n.º 25
0
        /// <summary>
        /// 根据条件获取数据
        /// </summary>
        private static string GetAllByAny(HttpContext context)
        {
            //if (!_isview)
            //{
            //    return null;
            //}
            var userid = Comm.DataLoadTool.GetCurrUserID();

            if (string.IsNullOrEmpty(userid))
            {
                return("请重新登录");
            }
            string flowid = context.Request["FlowID"];

            if (bll.Get <WXFlowInfo>(string.Format("FlowID={0} and UserID='{1}'", flowid, userid)) == null)
            {
                return("无权查看");
            }
            int    page        = Convert.ToInt32(context.Request["page"]);
            int    rows        = Convert.ToInt32(context.Request["rows"]);
            string searchtitle = context.Request["SearchTitle"];

            var searchCondition = string.Format("FlowID={0}", flowid);

            if (!string.IsNullOrEmpty(searchtitle))
            {
                searchCondition += "And FlowField like '%" + searchtitle + "%'";
            }

            List <WXFlowStepInfo> list = bll.GetLit <WXFlowStepInfo>(rows, page, searchCondition, "StepID ASC");

            int totalCount = bll.GetCount <WXFlowStepInfo>(searchCondition);

            string jsonResult = ZentCloud.Common.JSONHelper.ListToEasyUIJson(totalCount, list);

            return(jsonResult);
        }
Ejemplo n.º 26
0
        public void ProcessRequest(HttpContext context)
        {
            string      lotteryId = context.Request["lottery_id"];
            WXLotteryV1 model     = bllLottery.GetLottery(int.Parse(lotteryId));

            if (model == null)
            {
                apiResp.msg  = "摇一摇不存在";
                apiResp.code = (int)BLLJIMP.Enums.APIErrCode.IsNotFound;
                context.Response.Write(ZentCloud.Common.JSONHelper.ObjectToJson(apiResp));
                return;
            }
            MonitorEventDetailsInfo detailInfo = new MonitorEventDetailsInfo();

            detailInfo.MonitorPlanID  = int.Parse(lotteryId);
            detailInfo.EventType      = 0;
            detailInfo.EventBrowser   = HttpContext.Current.Request.Browser == null ? "" : HttpContext.Current.Request.Browser.ToString();
            detailInfo.EventBrowserID = HttpContext.Current.Request.Browser.Id;;
            if (HttpContext.Current.Request.Browser.Beta)
            {
                detailInfo.EventBrowserIsBata = "测试版";
            }
            else
            {
                detailInfo.EventBrowserIsBata = "正式版";
            }

            detailInfo.EventBrowserVersion = HttpContext.Current.Request.Browser.Version;
            detailInfo.EventDate           = DateTime.Now;
            if (HttpContext.Current.Request.Browser.Win16)
            {
                detailInfo.EventSysByte = "16位系统";
            }
            else
            if (HttpContext.Current.Request.Browser.Win32)
            {
                detailInfo.EventSysByte = "32位系统";
            }
            else
            {
                detailInfo.EventSysByte = "64位系统";
            }
            detailInfo.EventSysPlatform = HttpContext.Current.Request.Browser.Platform;
            detailInfo.SourceIP         = ZentCloud.Common.MySpider.GetClientIP();
            detailInfo.IPLocation       = ZentCloud.Common.MySpider.GetIPLocation(detailInfo.SourceIP);
            detailInfo.SourceUrl        = HttpContext.Current.Request.Url.ToString();
            detailInfo.WebsiteOwner     = bll.WebsiteOwner;
            if (bll.IsLogin)
            {
                detailInfo.EventUserID = bll.GetCurrUserID();
            }
            bool eventDetail = bll.Add(detailInfo);

            int ipCount = bll.GetCount <MonitorEventDetailsInfo>(" SourceIP ", string.Format(" WebsiteOwner='{0}' AND MonitorPlanID={1} ", bll.WebsiteOwner, int.Parse(lotteryId)));
            int uvCount = bll.GetCount <MonitorEventDetailsInfo>(" EventUserID ", string.Format(" EventUserID is not null AND WebsiteOwner='{0}' AND MonitorPlanID={1} ", bll.WebsiteOwner, int.Parse(lotteryId)));
            int pvCount = bll.GetCount <MonitorEventDetailsInfo>(string.Format(" WebsiteOwner='{0}' AND MonitorPlanID={1} ", bll.WebsiteOwner, int.Parse(lotteryId)));

            bll.Update(new WXLotteryV1(), string.Format(" IP={0},PV={1},UV={2} ", ipCount, pvCount, uvCount), string.Format(" LotteryID={0} ", int.Parse(lotteryId)));
            apiResp.msg    = "操作完成";
            apiResp.status = true;
            context.Response.Write(ZentCloud.Common.JSONHelper.ObjectToJson(apiResp));
        }
Ejemplo n.º 27
0
        /// <summary>
        /// 查询基地
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public string QueryBaseInfo(HttpContext context)
        {
            int    pageIndex = Convert.ToInt32(context.Request["page"]);
            int    pageSize  = Convert.ToInt32(context.Request["rows"]);
            string baseName  = context.Request["BaseName"];
            string area      = context.Request["Area"];

            StringBuilder sbWhere = new StringBuilder(string.Format("WebsiteOwner='{0}'", bll.WebsiteOwner));

            if (!string.IsNullOrEmpty(baseName))
            {
                sbWhere.AppendFormat(" And BaseName like '%{0}%'", baseName);
            }
            if (!string.IsNullOrEmpty(area))
            {
                sbWhere.AppendFormat(" And Area = '{0}'", area);
            }


            int totalCount             = bll.GetCount <WBBaseInfo>(sbWhere.ToString());
            List <WBBaseInfo> dataList = new List <WBBaseInfo>();

            dataList = bll.GetLit <WBBaseInfo>(pageSize, pageIndex, sbWhere.ToString(), "AutoID DESC");
            return(Common.JSONHelper.ObjectToJson(
                       new
            {
                total = totalCount,
                rows = dataList
            }));
        }
Ejemplo n.º 28
0
 protected void Page_Load(object sender, EventArgs e)
 {
     userInfo    = bll.GetCurrentUserInfo();
     RecommCount = bll.GetCount <BLLJIMP.Model.ForwardingRecord>(string.Format(" FUserID='{0}' and TypeName = '分享'", userInfo.UserID));
 }
Ejemplo n.º 29
0
        ZentCloud.BLLJIMP.Model.UserInfo userInfo; //当前登陆的用户
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                AutoId = Request["AutoId"];
                if (!string.IsNullOrEmpty(AutoId))
                {
                    GetTheVoteInfo(AutoId);

                    MonitorEventDetailsInfo detailInfo = new MonitorEventDetailsInfo();
                    detailInfo.MonitorPlanID  = int.Parse(AutoId);
                    detailInfo.EventType      = 0;
                    detailInfo.EventBrowser   = HttpContext.Current.Request.Browser == null ? "" : HttpContext.Current.Request.Browser.ToString();
                    detailInfo.EventBrowserID = HttpContext.Current.Request.Browser.Id;;
                    if (HttpContext.Current.Request.Browser.Beta)
                    {
                        detailInfo.EventBrowserIsBata = "测试版";
                    }
                    else
                    {
                        detailInfo.EventBrowserIsBata = "正式版";
                    }

                    detailInfo.EventBrowserVersion = HttpContext.Current.Request.Browser.Version;
                    detailInfo.EventDate           = DateTime.Now;
                    if (HttpContext.Current.Request.Browser.Win16)
                    {
                        detailInfo.EventSysByte = "16位系统";
                    }
                    else
                    if (HttpContext.Current.Request.Browser.Win32)
                    {
                        detailInfo.EventSysByte = "32位系统";
                    }
                    else
                    {
                        detailInfo.EventSysByte = "64位系统";
                    }
                    detailInfo.EventSysPlatform = HttpContext.Current.Request.Browser.Platform;
                    detailInfo.SourceIP         = Common.MySpider.GetClientIP();
                    detailInfo.IPLocation       = Common.MySpider.GetIPLocation(detailInfo.SourceIP);
                    detailInfo.SourceUrl        = HttpContext.Current.Request.Url.ToString();
                    detailInfo.WebsiteOwner     = bll.WebsiteOwner;
                    detailInfo.ModuleType       = "thevote";
                    if (bll.IsLogin)
                    {
                        detailInfo.EventUserID = bll.GetCurrUserID();
                    }
                    detailInfo.ShareTimestamp = "3";
                    bll.Add(detailInfo);

                    int ipCount = bll.GetCount <MonitorEventDetailsInfo>(" SourceIP ", string.Format(" WebsiteOwner='{0}' AND MonitorPlanID={1} AND ShareTimestamp='3'  ", bll.WebsiteOwner, int.Parse(AutoId)));
                    int uvCount = bll.GetCount <MonitorEventDetailsInfo>(" EventUserID ", string.Format(" EventUserID is not null AND WebsiteOwner='{0}' AND MonitorPlanID={1} AND ShareTimestamp='3' ", bll.WebsiteOwner, int.Parse(AutoId)));
                    int pvCount = bll.GetCount <MonitorEventDetailsInfo>(string.Format(" WebsiteOwner='{0}' AND MonitorPlanID={1} AND ShareTimestamp='3' ", bll.WebsiteOwner, int.Parse(AutoId)));

                    bll.Update(new TheVoteInfo(), string.Format(" IP={0},PV={1},UV={2} ", ipCount, pvCount, uvCount), string.Format(" AutoId={0} ", AutoId));
                }
                else
                {
                    StringBuilder str = new StringBuilder();
                    str.AppendFormat("<li>");
                    str.AppendFormat("<div>{0}</div>", "没有数据");
                    str.AppendFormat("</li>");
                    needList.InnerHtml = str.ToString();
                }
            }
        }
Ejemplo n.º 30
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Id        = Convert.ToInt32(Request["AutoId"]);
            shareLink = string.Format("http://{0}{1}?AutoId={2}", Request.Url.Host, Request.FilePath, Id);
            wxsInfo   = bll.Get <BLLJIMP.Model.WXShowInfo>(" AutoId=" + Id);
            if (wxsInfo != null)
            {
                string sourceimg = wxsInfo.ShowImg;
                wxsInfo.ShowImg = "http://" + Request.Url.Host + wxsInfo.ShowImg;
                List <BLLJIMP.Model.WXShowImgInfo> wxsInfos = bll.GetList <BLLJIMP.Model.WXShowImgInfo>(" ShowId=" + wxsInfo.AutoId);
                if (wxsInfos != null)
                {
                    for (int i = 0; i < wxsInfos.Count; i++)
                    {
                        strInit.AppendFormat("<div class=\"listli\"><img src=\"{0}\" class=\"img\" data-original=\"background-image:url({0}); \"></span>", wxsInfos[i].ImgStr);
                        strInit.AppendFormat("<span class=\"text\" style=\"color:{3};\"><h2 style=\"color:{2};\">{0}</h2>{1}</span>", wxsInfos[i].ShowTitle, wxsInfos[i].ShowContext, wxsInfos[i].ShowTitleColor, wxsInfos[i].ShowContextColor);
                        strInit.AppendFormat("<span class=\"nextbtn\"><span class=\"smallicon\"></span></span></div>");

                        if (string.IsNullOrEmpty(wxsInfos[i].ShowTitle) && string.IsNullOrEmpty(wxsInfos[i].ShowContext))
                        {
                            stranimation.Append("case " + i + ":_this.animation(current.find(\".img\"), " + wxsInfos[i].ShowAnimation.ToString() + ", function () {");
                            stranimation.Append(" _this.animation(current.find(\".nextbtn\"), 99);");
                            stranimation.Append("});break;");

                            stranimation.Append("\n");
                        }
                        else
                        {
                            //stranimation.AppendFormat("case " + i + ":_this.animation(current.find(\".img\"), " + wxsInfos[i].ShowAnimation + ", function () {");
                            string str = "case " + i + ":";
                            stranimation.Append(str + "_this.animation(current.find(\".img\")," + wxsInfos[i].ShowAnimation + ", function () {");
                            stranimation.Append("_this.animation(current.find(\".text\"), 2,");
                            string s = "function () { ";
                            stranimation.Append(s + "_this.animation(current.find(\".nextbtn\"), 99)});");
                            stranimation.Append("})");
                            stranimation.Append(";break;");

                            stranimation.Append("\n");
                        }
                    }
                }
                if (!string.IsNullOrEmpty(wxsInfo.ShowUrl))
                {
                    stranimation.Append("case " + wxsInfos.Count + ":_this.animation(current.find(\".blackpage\"), 15, function (){ ");
                    stranimation.Append("_this.maininitstate++;if(_this.maininitstate");
                    stranimation.Append(" == 2) { _this.container.css({ \"-webkit-transition\"");
                    stranimation.Append(": \"opacity 1s ease-out\", \"opacity\": \"0\" });");

                    stranimation.AppendFormat("window.location.href = '{0}';", wxsInfo.ShowUrl);

                    stranimation.Append(" var picanimate1end = function () { _this.container[0].removeEventListener(\"webkitTransitionEnd\", picanimate1end, false);");
                    stranimation.Append("_this.container.remove();}; _this.container[0].addEventListener(\"webkitTransitionEnd\", picanimate1end, false);");
                    stranimation.Append(" }}); break;");

                    stranimation.Append("\n");
                }
                stranimation.Append("default ");
                stranimation.Append(": _this.animation(current.find(\".img\")");
                stranimation.Append(", 1, function () {");
                stranimation.Append("_this.animation(current.find(\".text\"), 2,");
                stranimation.Append("function () { _this.animation(current.find(\".nextbtn\"), 99)});");
                stranimation.Append("});");


                MonitorEventDetailsInfo detailInfo = new MonitorEventDetailsInfo();
                detailInfo.MonitorPlanID  = Id;
                detailInfo.EventType      = 0;
                detailInfo.EventBrowser   = HttpContext.Current.Request.Browser == null ? "" : HttpContext.Current.Request.Browser.ToString();
                detailInfo.EventBrowserID = HttpContext.Current.Request.Browser.Id;;
                if (HttpContext.Current.Request.Browser.Beta)
                {
                    detailInfo.EventBrowserIsBata = "测试版";
                }
                else
                {
                    detailInfo.EventBrowserIsBata = "正式版";
                }

                detailInfo.EventBrowserVersion = HttpContext.Current.Request.Browser.Version;
                detailInfo.EventDate           = DateTime.Now;
                if (HttpContext.Current.Request.Browser.Win16)
                {
                    detailInfo.EventSysByte = "16位系统";
                }
                else
                if (HttpContext.Current.Request.Browser.Win32)
                {
                    detailInfo.EventSysByte = "32位系统";
                }
                else
                {
                    detailInfo.EventSysByte = "64位系统";
                }
                detailInfo.EventSysPlatform = HttpContext.Current.Request.Browser.Platform;
                detailInfo.SourceIP         = Common.MySpider.GetClientIP();
                detailInfo.IPLocation       = Common.MySpider.GetIPLocation(detailInfo.SourceIP);
                detailInfo.SourceUrl        = HttpContext.Current.Request.Url.ToString();
                detailInfo.RequesSourcetUrl = HttpContext.Current.Request.UrlReferrer != null?HttpContext.Current.Request.UrlReferrer.ToString() : "";

                detailInfo.WebsiteOwner = bll.WebsiteOwner;
                detailInfo.ModuleType   = "wshow";
                if (bll.IsLogin)
                {
                    detailInfo.EventUserID = bll.GetCurrUserID();
                }
                bll.Add(detailInfo);

                int ipCount = bll.GetCount <MonitorEventDetailsInfo>(" SourceIP ", string.Format(" WebsiteOwner='{0}' AND MonitorPlanID={1} ", bll.WebsiteOwner, Id));
                int uvCount = bll.GetCount <MonitorEventDetailsInfo>(" EventUserID ", string.Format(" EventUserID is not null AND WebsiteOwner='{0}' AND MonitorPlanID={1} ", bll.WebsiteOwner, Id));
                int pvCount = bll.GetCount <MonitorEventDetailsInfo>(string.Format(" WebsiteOwner='{0}' AND MonitorPlanID={1} ", bll.WebsiteOwner, Id));

                wxsInfo.PV      = pvCount;
                wxsInfo.IP      = ipCount;
                wxsInfo.UV      = uvCount;
                wxsInfo.ShowImg = sourceimg;
                bll.Update(wxsInfo);


                if (!string.IsNullOrEmpty(Request["sid"])) //有推广人
                {
                    if (!string.IsNullOrEmpty(wxsInfo.ShowUrl))
                    {
                        if (wxsInfo.ShowUrl.EndsWith(".chtml"))
                        {
                            //替换链接
                            var par = wxsInfo.ShowUrl.Split('/');
                            wxsInfo.ShowUrl = wxsInfo.ShowUrl.Replace(par[3], string.Format("{0}/{1}", par[3], Request["sid"]));
                            shareLink       = string.Format("{0}&sid={1}", shareLink, Request["sid"]);
                        }
                    }
                }
                else
                {
                    if (bll.IsLogin)
                    {
                        if (!string.IsNullOrEmpty(wxsInfo.ShowUrl))
                        {
                            if (wxsInfo.ShowUrl.EndsWith(".chtml"))
                            {
                                UserInfo CurrentUserInfo  = bll.GetCurrentUserInfo();
                                string   CurrentUserIDHex = Convert.ToString(CurrentUserInfo.AutoID, 16);
                                //替换链接
                                var par = wxsInfo.ShowUrl.Split('/');
                                wxsInfo.ShowUrl = wxsInfo.ShowUrl.Replace(par[3], string.Format("{0}/{1}", par[3], CurrentUserIDHex));
                                shareLink       = string.Format("{0}&sid={1}", shareLink, CurrentUserIDHex);
                            }
                        }
                    }
                }
            }
        }