Ejemplo n.º 1
0
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            context.Response.Expires     = 0;
            string result = "false";

            try
            {
                userBll            = new BLLUser("");
                weixinBll          = new BLLWeixin("");
                this.juActivityBll = new BLLJuActivity("");
                this.systemSet     = this.juActivityBll.GetSysSet();
                string Action = context.Request["Action"];

                switch (Action)
                {
                case "QueryJuActivityForWapCommon":    //活动查询
                    result = QueryJuActivityForWapCommon(context);
                    break;

                case "QueryActivityListForSpreadRank":    //活动排名列表
                    result = QueryActivityListForSpreadRank(context);
                    break;

                case "QueryJuActivityForWap":
                    result = QueryJuActivityForWap(context);
                    break;

                case "AddJuActivityPraise":    //增加赞
                    result = AddJuActivityPraise(context);
                    break;

                //case "QueryJuMaster"://查询专家库
                //    result = QueryJuMaster(context);
                //    break;
                //case "QueryJuMasterFeedBack"://查询专家库留言//所有人可见
                //    result = QueryJuMasterFeedBack(context);
                //    break;
                //case "AddJuMasterUserLinkerInfo"://提交联系信息
                //    result = AddJuMasterUserLinkerInfo(context);
                //    break;
                //case "AddJuMasterFeedBack"://提交留言
                //    result = AddJuMasterFeedBack(context);
                //    break;
                case "QueryJuActivitySpreadRank":    //提交留言
                    result = QueryJuActivitySpreadRank(context);
                    break;
                }
            }
            catch (Exception ex)
            {
                result = ex.Message;
            }

            context.Response.Write(result);
        }
Ejemplo n.º 2
0
        private void LoadPermission()
        {
            BLLJuActivity juActivityBll = new BLLJuActivity();

            ZentCloud.BLLPermission.BLLMenuPermission permissionBll = new ZentCloud.BLLPermission.BLLMenuPermission("");
            StringBuilder          sb         = new StringBuilder();
            int                    columCount = 3;
            int                    _w         = 740 / columCount;
            List <ArticleCategory> cateList   = juActivityBll.GetList <ArticleCategory>(string.Format("WebsiteOwner='{0}' And CategoryType='{1}' Order by Sort", juActivityBll.WebsiteOwner, "Permission"));

            foreach (var cateitem in cateList)
            {
                List <ZentCloud.BLLPermission.Model.PermissionInfo> pmsGroup = permissionBll.GetList <ZentCloud.BLLPermission.Model.PermissionInfo>(string.Format(" PermissionCateId={0} order by PermissionID DESC", cateitem.AutoID));
                if (pmsGroup.Count > 0)
                {
                    sb.AppendFormat("<fieldset style=\"padding: 0px 10px 10px 10px; margin-top:10px; \">");
                    sb.AppendFormat("<legend><input id=\"cb_{0}\" title=\"{1}\" type=\"checkbox\" name=\"checktype\" class=\"positionTop2\" value=\"{0}\" /> <label title=\"{1}\" for=\"cb_{0}\">{1}</label></legend>", cateitem.AutoID, cateitem.CategoryName);
                    sb.AppendFormat("<ul style=\"width:100%;\">");

                    for (int i = 0; i < pmsGroup.Count; i++)
                    {
                        sb.AppendFormat("<li style=\"width:{0}px;float:left;overflow:hidden;white-space: nowrap;text-overflow: ellipsis;\">", _w);
                        sb.AppendFormat(string.Format(@"<input id=""cb_{0}"" title=""{2}"" type=""checkbox"" name=""checksingle"" class=""positionTop2"" value=""{0}"" /> <label title=""{2}"" for=""cb_{0}"">{1}</label><br />", pmsGroup[i].PermissionID, pmsGroup[i].PermissionName, string.IsNullOrWhiteSpace(pmsGroup[i].PermissionDescription) ? pmsGroup[i].PermissionName : pmsGroup[i].PermissionDescription));
                        sb.AppendFormat("</li>");
                    }
                    sb.AppendFormat("</ul>");
                    sb.AppendFormat("</fieldset>");
                }
            }
            string cateIds = ZentCloud.Common.MyStringHelper.ListToStr(cateList.Select(p => p.AutoID).ToList(), "", ",");

            if (string.IsNullOrWhiteSpace(cateIds))
            {
                cateIds = "-1";
            }
            List <ZentCloud.BLLPermission.Model.PermissionInfo> pmsGroup1 = new ZentCloud.BLLPermission.BLLMenuPermission("").GetList <ZentCloud.BLLPermission.Model.PermissionInfo>(string.Format(" PermissionCateId Not In ({0}) order by PermissionID DESC", cateIds));

            if (pmsGroup1.Count > 0)
            {
                sb.AppendFormat("<fieldset style=\"0px 10px 10px 10px; margin-top:10px;\">");
                sb.AppendFormat("<legend><input id=\"cb_{0}\" title=\"{1}\" type=\"checkbox\" name=\"checktype\" class=\"positionTop2\" value=\"{0}\" /> <label title=\"{1}\" for=\"cb_{0}\">{1}</label></legend>", 0, "未分类");
                sb.AppendFormat("<ul style=\"width:100%;\">");

                for (int i = 0; i < pmsGroup1.Count; i++)
                {
                    sb.AppendFormat("<li style=\"width:{0}px;float:left;overflow:hidden;white-space: nowrap;text-overflow: ellipsis;\">", _w);
                    sb.AppendFormat(string.Format(@"<input id=""cb_{0}"" title=""{2}"" type=""checkbox"" name=""checksingle"" class=""positionTop2"" value=""{0}"" /> <label title=""{2}"" for=""cb_{0}"">{1}</label><br />", pmsGroup1[i].PermissionID, pmsGroup1[i].PermissionName, string.IsNullOrWhiteSpace(pmsGroup1[i].PermissionDescription) ? pmsGroup1[i].PermissionName : pmsGroup1[i].PermissionDescription));
                    sb.AppendFormat("</li>");
                }
                sb.AppendFormat("</ul>");
                sb.AppendFormat("</fieldset>");
            }
            PermissionHtml = sb.ToString();
        }
Ejemplo n.º 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         this.websiteOwner = DataLoadTool.GetWebsiteInfoModel().WebsiteOwner;
         Id            = Request["id"];
         juActivityBll = new BLLJuActivity("");
         if (!string.IsNullOrEmpty(Id))
         {
             aconfig = juActivityBll.Get <BLLJIMP.Model.ActivityConfig>(string.Format(" WebsiteOwner='{0}'", websiteOwner));
             if (aconfig == null)
             {
                 aconfig = new BLLJIMP.Model.ActivityConfig()
                 {
                     TheOrganizers = ""
                 };
             }
             GetActivityInfo(Id);
         }
     }
 }
Ejemplo n.º 4
0
        private string EditRechargeConfig(HttpContext context)
        {
            string           recharge                  = context.Request["Recharge"];
            string           vipPrice                  = context.Request["VIPPrice"];
            string           sendNoticePrice           = context.Request["SendNoticePrice"];
            string           minScore                  = context.Request["MinScore"];
            string           minWithdrawCashScore      = context.Request["MinWithdrawCashScore"];
            string           vipPrice0                 = context.Request["VIPPrice0"];
            string           vipDatelong               = context.Request["VIPDatelong"];
            string           vipInterestID             = context.Request["VIPInterestID"];
            string           vipInterestDescription    = context.Request["VIPInterestDescription"];
            string           websiteOwner              = bllkeyValueData.WebsiteOwner;
            KeyVauleDataInfo rechargeKeyValue          = new KeyVauleDataInfo("Recharge", "100", recharge, websiteOwner, null, currentUserInfo.UserID);
            KeyVauleDataInfo sendNoticePriceValue      = new KeyVauleDataInfo("SendNoticePrice", "1", sendNoticePrice, websiteOwner, null, currentUserInfo.UserID);
            KeyVauleDataInfo minScoreValue             = new KeyVauleDataInfo("MinScore", "1", minScore, websiteOwner, null, currentUserInfo.UserID);
            KeyVauleDataInfo minWithdrawCashScoreValue = new KeyVauleDataInfo("MinWithdrawCashScore", "1", minWithdrawCashScore, websiteOwner, null, currentUserInfo.UserID);
            KeyVauleDataInfo VIPPriceKeyValue          = new KeyVauleDataInfo("VIPPrice", "1", vipPrice, websiteOwner, null, currentUserInfo.UserID);
            KeyVauleDataInfo VIPPrice0KeyValue         = new KeyVauleDataInfo("VIPPrice", "0", vipPrice0, websiteOwner, null, currentUserInfo.UserID);
            KeyVauleDataInfo VIPDatelongKeyValue       = new KeyVauleDataInfo("VIPDatelong", "1", vipDatelong, websiteOwner, null, currentUserInfo.UserID);
            KeyVauleDataInfo VIPInterestIDKeyValue     = new KeyVauleDataInfo("VIPInterestID", "1", vipInterestID, websiteOwner, null, currentUserInfo.UserID);
            JuActivityInfo   juAct    = new JuActivityInfo();
            BLLJuActivity    bllJuAct = new BLLJuActivity();

            if (!string.IsNullOrWhiteSpace(vipInterestID) && vipInterestID != "0")
            {
                juAct = bllJuAct.GetJuActivity(Convert.ToInt32(vipInterestID));
                juAct.ActivityDescription = vipInterestDescription;
                if (!bllJuAct.PutArticle(juAct))
                {
                    resp.Status = -1;
                    resp.Msg    = "提交VIP权益失败";
                    return(Common.JSONHelper.ObjectToJson(resp));
                }
            }
            else if (!string.IsNullOrWhiteSpace(vipInterestDescription))
            {
                vipInterestID = bllJuAct.GetGUID(TransacType.CommAdd);
                VIPInterestIDKeyValue.DataValue = vipInterestID;

                juAct.JuActivityID        = Convert.ToInt32(vipInterestID);
                juAct.ActivityName        = "VIP权益";
                juAct.ArticleType         = "ConfigContent";
                juAct.UserID              = currentUserInfo.UserID;
                juAct.WebsiteOwner        = websiteOwner;
                juAct.CreateDate          = DateTime.Now;
                juAct.ActivityDescription = vipInterestDescription;
                if (!bllJuAct.Add(juAct))
                {
                    resp.Status = -1;
                    resp.Msg    = "提交VIP权益失败";
                    return(Common.JSONHelper.ObjectToJson(resp));
                }
            }

            BLLTransaction tran = new BLLTransaction();

            if (bllkeyValueData.PutDataValue(rechargeKeyValue, tran) &&
                bllkeyValueData.PutDataValue(sendNoticePriceValue, tran) &&
                bllkeyValueData.PutDataValue(minScoreValue, tran) &&
                bllkeyValueData.PutDataValue(minWithdrawCashScoreValue, tran) &&
                bllkeyValueData.PutDataValue(VIPPriceKeyValue, tran) &&
                bllkeyValueData.PutDataValue(VIPPrice0KeyValue, tran) &&
                bllkeyValueData.PutDataValue(VIPDatelongKeyValue, tran) &&
                bllkeyValueData.PutDataValue(VIPInterestIDKeyValue, tran))
            {
                tran.Commit();
                resp.Status = 1;
                resp.Msg    = "提交成功";
            }
            else
            {
                tran.Rollback();
                resp.Status = -1;
                resp.Msg    = "提交失败";
            }
            return(Common.JSONHelper.ObjectToJson(resp));
        }
Ejemplo n.º 5
0
        /// <summary>
        /// 根据url获取检测任务
        /// </summary>
        /// <param name="url"></param>
        /// <returns></returns>
        public Model.ShareMonitorInfo GetMonitorByUrl(string url)
        {
            Model.ShareMonitorInfo result = new Model.ShareMonitorInfo();

            //根据url查找监测任务,移除原有参数 comeonshareid from isappinstalled,判断原始链接  增加过滤签到标识
            //移除http:// https://

            url = url.ToLower().Replace("http://", "").Replace("https://", "").Replace("amp;amp;amp;", "").Replace("amp;amp;", "");

            url = CommonPlatform.Helper.StringHandler.UrlRemoveParm(
                url,
                new List <string>()
            {
                "comeonshareid", "from", "isappinstalled", "redirect"
            }
                );

            List <Model.ShareMonitorInfo> monitorList = new List <Model.ShareMonitorInfo>();

            //monitorList = GetList<Model.ShareMonitorInfo>(string.Format(" MonitorUrl like'%{0}%' AND IsDel = 0 AND WebSiteOwner = '{1}' ", url,WebsiteOwner));
            //if (monitorList != null && monitorList.Count > 0)
            //{
            //    monitorList = monitorList.OrderBy(p => p.MonitorUrl.Length).ToList();
            //    result = monitorList[0];
            //}

            //新算法
            monitorList = GetCurrMonitorList();
            monitorList = monitorList.Where(p => p.MonitorUrl.IndexOf(url, StringComparison.OrdinalIgnoreCase) > -1).ToList();
            if (monitorList != null && monitorList.Count > 0)
            {
                monitorList = monitorList.OrderBy(p => p.MonitorUrl.Length).ToList();
                result      = monitorList[0];
            }
            else
            {
                /*
                 * 判断,如果是chtml结尾的,则为活动或者文章任务
                 * 针对当前url和活动id
                 * 新建一个监测任务
                 * 并记录下外键id和类型(文章/活动)
                 */

                if (url.IndexOf(".chtml", StringComparison.OrdinalIgnoreCase) > 0)
                {
                    int activityId = 0;

                    try
                    {
                        string[] parameters = url.Split('/');
                        activityId = Convert.ToInt32(parameters[1], 16);
                    }
                    catch (Exception ex)
                    {
                    }

                    BLLJuActivity bllJuActivity = new BLLJuActivity();

                    var juModel = bllJuActivity.GetJuActivity(activityId);

                    if (juModel != null)
                    {
                        //一个活动只建立一个微监测
                        var monitorInfoByJuActivity = GetMonitorByFK(juModel.JuActivityID.ToString(), juModel.ArticleType);

                        if (monitorInfoByJuActivity != null)
                        {
                            result = monitorInfoByJuActivity;
                        }
                        else
                        {
                            Model.ShareMonitorInfo newMonitorInfo = new Model.ShareMonitorInfo()
                            {
                                MonitorId    = Convert.ToInt32(GetGUID(TransacType.CommAdd)),
                                CreateTime   = DateTime.Now,
                                CreateUser   = "******",
                                ForeignkeyId = juModel.JuActivityID.ToString(),
                                IsDel        = 0,
                                MonitorName  = "[系统建立]" + juModel.ActivityName,
                                MonitorType  = juModel.ArticleType,//类型以后有多地方用则用个枚举管理起来,防止冲突重名
                                MonitorUrl   = url,
                                ReadCount    = 0,
                                ShareCount   = 0,
                                WebSiteOwner = WebsiteOwner
                            };

                            if (Add(newMonitorInfo))
                            {
                                UpdateCurrMonitorList();
                                result = newMonitorInfo;
                            }
                        }
                    }
                }
            }

            return(result);
        }
Ejemplo n.º 6
0
        public string GetContentHtml(NoticeType noticeType, UserInfo user, JuActivityInfo juActivity, string content)
        {
            StringBuilder sbHtml        = new StringBuilder();
            BLLUser       bllUser       = new BLLUser();
            BLLJuActivity bllJuActivity = new BLLJuActivity();

            if (noticeType == NoticeType.FollowUser)
            {
                sbHtml.AppendFormat("<a href=\"{0}\">{1}</a>  关注了您",
                                    GetUserLink(user.AutoID, WebsiteOwner), bllUser.GetUserDispalyName(user));
            }
            else if (noticeType == NoticeType.DisFollowUser)
            {
                sbHtml.AppendFormat("<a href=\"{0}\">{1}</a>  取消了对您的关注",
                                    GetUserLink(user.AutoID, WebsiteOwner), bllUser.GetUserDispalyName(user));
            }
            else if (noticeType == NoticeType.InviteAnswer)
            {
                sbHtml.AppendFormat("<a href=\"{0}\">{1}</a>  邀请您回答 :<a href=\"{2}\">{3}</a>",
                                    GetUserLink(user.AutoID, WebsiteOwner), bllUser.GetUserDispalyName(user),
                                    GetArticleLink(juActivity.JuActivityID, WebsiteOwner, juActivity.ArticleType),
                                    juActivity.ActivityName);
            }
            else if (noticeType == NoticeType.FollowArticle)
            {
                sbHtml.AppendFormat("<a href=\"{0}\">{1}</a>  关注了您的{2} :<a href=\"{3}\">《{4}》</a>",
                                    GetUserLink(user.AutoID, WebsiteOwner), bllUser.GetUserDispalyName(user),
                                    GetArticleTypeName(juActivity.ArticleType, WebsiteOwner),
                                    GetArticleLink(juActivity.JuActivityID, WebsiteOwner, juActivity.ArticleType),
                                    juActivity.ActivityName);
            }
            else if (noticeType == NoticeType.FollowQuestion)
            {
                sbHtml.AppendFormat("<a href=\"{0}\">{1}</a>  关注了您的{2} :<a href=\"{3}\">{4}</a>",
                                    GetUserLink(user.AutoID, WebsiteOwner), bllUser.GetUserDispalyName(user),
                                    GetArticleTypeName(juActivity.ArticleType, WebsiteOwner),
                                    GetArticleLink(juActivity.JuActivityID, WebsiteOwner, juActivity.ArticleType),
                                    juActivity.ActivityName);
            }
            else if (noticeType == NoticeType.QuestionIsAnswered)
            {
                sbHtml.AppendFormat("<a href=\"{0}\">{1}</a>  答复了您的{2} :<a href=\"{3}\">{4}</a>",
                                    GetUserLink(user.AutoID, WebsiteOwner), bllUser.GetUserDispalyName(user),
                                    GetArticleTypeName(juActivity.ArticleType, WebsiteOwner),
                                    GetArticleLink(juActivity.JuActivityID, WebsiteOwner, juActivity.ArticleType),
                                    juActivity.ActivityName);
                sbHtml.AppendFormat("<br /><br />回答:{0}", content);
            }
            else if (noticeType == NoticeType.FollowQuestionIsAnswered)
            {
                sbHtml.AppendFormat("<a href=\"{0}\">{1}</a>  答复了您的关注的{2} :<a href=\"{3}\">{4}</a>",
                                    GetUserLink(user.AutoID, WebsiteOwner), bllUser.GetUserDispalyName(user),
                                    GetArticleTypeName(juActivity.ArticleType, WebsiteOwner),
                                    GetArticleLink(juActivity.JuActivityID, WebsiteOwner, juActivity.ArticleType),
                                    juActivity.ActivityName);
                sbHtml.AppendFormat("<br /><br />回答:{0}", content);
            }
            else if (noticeType == NoticeType.FavoriteArticle)
            {
                if (juActivity.ArticleType == "Statuses")
                {
                    sbHtml.AppendFormat("<a href=\"{0}\">{1}</a>  收藏了了您的动态 :{2}",
                                        GetUserLink(user.AutoID, WebsiteOwner), bllUser.GetUserDispalyName(user), juActivity.ActivityDescription);
                }
                else
                {
                    string tt = juActivity.ArticleType == "Question" ? "问题" : "文章";
                    sbHtml.AppendFormat("<a href=\"{0}\">{1}</a>  收藏了了您的{2} :<a href=\"{3}\">《{4}》</a>",
                                        GetUserLink(user.AutoID, WebsiteOwner), bllUser.GetUserDispalyName(user),
                                        GetArticleTypeName(juActivity.ArticleType, WebsiteOwner),
                                        GetArticleLink(juActivity.JuActivityID, WebsiteOwner, juActivity.ArticleType),
                                        juActivity.ActivityName);
                }
            }
            else if (noticeType == NoticeType.FavoriteReview)
            {
                sbHtml.AppendFormat("<a href=\"{0}\">{1}</a>  收藏了您的评论 :{2}",
                                    GetUserLink(user.AutoID, WebsiteOwner), bllUser.GetUserDispalyName(user), content);
            }
            else if (noticeType == NoticeType.JuActivityPraise)
            {
                if (juActivity.ArticleType == "Statuses")
                {
                    sbHtml.AppendFormat("<a href=\"{0}\">{1}</a>  赞了您的动态 :{2}",
                                        GetUserLink(user.AutoID, WebsiteOwner), bllUser.GetUserDispalyName(user), juActivity.ActivityDescription);
                }
                else if (juActivity.ArticleType == "Comment")
                {
                    sbHtml.AppendFormat("<a href=\"{0}\">{1}</a>  赞了您的{2} :<a href=\"{3}\">{4}</a>",
                                        GetUserLink(user.AutoID, WebsiteOwner), bllUser.GetUserDispalyName(user),
                                        GetArticleTypeName(juActivity.ArticleType, WebsiteOwner),
                                        GetArticleLink(juActivity.JuActivityID, WebsiteOwner, juActivity.ArticleType),
                                        juActivity.Summary);
                }
                else
                {
                    sbHtml.AppendFormat("<a href=\"{0}\">{1}</a>  赞了您的{2} :<a href=\"{3}\">《{4}》</a>",
                                        GetUserLink(user.AutoID, WebsiteOwner), bllUser.GetUserDispalyName(user),
                                        GetArticleTypeName(juActivity.ArticleType, WebsiteOwner),
                                        GetArticleLink(juActivity.JuActivityID, WebsiteOwner, juActivity.ArticleType),
                                        juActivity.ActivityName);
                }
            }
            else if (noticeType == NoticeType.DisJuActivityPraise)
            {
                if (juActivity.ArticleType == "Statuses")
                {
                    sbHtml.AppendFormat("<a href=\"{0}\">{1}</a>  取消了对您的{2}的点赞 :{3}",
                                        GetUserLink(user.AutoID, WebsiteOwner), bllUser.GetUserDispalyName(user),
                                        GetArticleTypeName(juActivity.ArticleType, WebsiteOwner), juActivity.ActivityDescription);
                }
                else if (juActivity.ArticleType == "Comment")
                {
                    sbHtml.AppendFormat("<a href=\"{0}\">{1}</a>  取消了对您的{2}的点赞 :<a href=\"{3}\">{4}</a>",
                                        GetUserLink(user.AutoID, WebsiteOwner), bllUser.GetUserDispalyName(user),
                                        GetArticleTypeName(juActivity.ArticleType, WebsiteOwner),
                                        GetArticleLink(juActivity.JuActivityID, WebsiteOwner, juActivity.ArticleType),
                                        juActivity.Summary);
                }
                else
                {
                    sbHtml.AppendFormat("<a href=\"{0}\">{1}</a>  取消了您的{2}的点赞 :<a href=\"{3}\">《{4}》</a>",
                                        GetUserLink(user.AutoID, WebsiteOwner), bllUser.GetUserDispalyName(user),
                                        GetArticleTypeName(juActivity.ArticleType, WebsiteOwner),
                                        GetArticleLink(juActivity.JuActivityID, WebsiteOwner, juActivity.ArticleType),
                                        juActivity.ActivityName);
                }
            }
            else if (noticeType == NoticeType.ReviewPraise)
            {
                sbHtml.AppendFormat("<a href=\"{0}\">{1}</a>  赞了您的回复 :{2}",
                                    GetUserLink(user.AutoID, WebsiteOwner), bllUser.GetUserDispalyName(user), content);
            }
            else if (noticeType == NoticeType.ReportJuActivityIllegalContent)
            {
                if (juActivity.ArticleType == "Statuses")
                {
                    sbHtml.AppendFormat("<a href=\"{0}\">{1}</a>  举报了您的动态 :{2}",
                                        GetUserLink(user.AutoID, WebsiteOwner), bllUser.GetUserDispalyName(user), juActivity.ActivityDescription);
                }
                else
                {
                    sbHtml.AppendFormat("<a href=\"{0}\">{1}</a>  举报了您的{2} :<a href=\"{3}\">《{4}》</a>",
                                        GetUserLink(user.AutoID, WebsiteOwner), bllUser.GetUserDispalyName(user),
                                        GetArticleTypeName(juActivity.ArticleType, WebsiteOwner),
                                        GetArticleLink(juActivity.JuActivityID, WebsiteOwner, juActivity.ArticleType),
                                        juActivity.ActivityName);
                }
            }
            else if (noticeType == NoticeType.ReportReviewIllegalContent)
            {
                sbHtml.AppendFormat("<a href=\"{0}\">{1}</a>  举报了您的评论:{2}",
                                    GetUserLink(user.AutoID, WebsiteOwner), bllUser.GetUserDispalyName(user), content);
            }
            else if (noticeType == NoticeType.ReviewArticle)
            {
                if (juActivity.ArticleType == "Statuses")
                {
                    sbHtml.AppendFormat("<a href=\"{0}\">{1}</a>  评论了您的动态 :{2}",
                                        GetUserLink(user.AutoID, WebsiteOwner), bllUser.GetUserDispalyName(user), juActivity.ActivityDescription);
                    sbHtml.AppendFormat("<br /><br />评论:{0}", content);
                }
                else
                {
                    sbHtml.AppendFormat("<a href=\"{0}\">{1}</a>  评论了您的{2} :<a href=\"{3}\">《{4}》</a>",
                                        GetUserLink(user.AutoID, WebsiteOwner), bllUser.GetUserDispalyName(user),
                                        GetArticleTypeName(juActivity.ArticleType, WebsiteOwner), GetArticleLink(juActivity.JuActivityID, WebsiteOwner, juActivity.ArticleType),
                                        juActivity.ActivityName);
                    sbHtml.AppendFormat("<br /><br />评论:{0}", content);
                }
            }
            else if (noticeType == NoticeType.FriendApply)
            {
                sbHtml.AppendFormat("<a href=\"{0}\">{1}</a>  申请成为您的好友 <br />", GetUserLink(user.AutoID, WebsiteOwner), bllUser.GetUserDispalyName(user));
                sbHtml.AppendFormat("<span class=\"j-pass\" data-account=\"{0}\"  data-nick=\"{1}\" data-ico=\"{2}\">同意</span>", user.AutoID, bllUser.GetUserDispalyName(user), bllUser.GetUserDispalyAvatar(user));
                sbHtml.AppendFormat("<span class=\"j-reject\" data-account=\"{0}\"  data-nick=\"{1}\" data-ico=\"{2}\">拒绝</span>", user.AutoID, bllUser.GetUserDispalyName(user), bllUser.GetUserDispalyAvatar(user));
            }
            else if (noticeType == NoticeType.PassFriendApply)
            {
                sbHtml.AppendFormat("<a href=\"{0}\">{1}</a>  通过了您的好友申请 ", GetUserLink(user.AutoID, WebsiteOwner), bllUser.GetUserDispalyName(user));
            }
            else if (noticeType == NoticeType.RejectFriendApply)
            {
                sbHtml.AppendFormat("<a href=\"{0}\">{1}</a>  拒绝了您的好友申请 ", GetUserLink(user.AutoID, WebsiteOwner), bllUser.GetUserDispalyName(user));
            }
            else if (noticeType == NoticeType.DeleteFriend)
            {
                sbHtml.AppendFormat("<a href=\"{0}\">{1}</a>  已将您从好友中删除 ", GetUserLink(user.AutoID, WebsiteOwner), bllUser.GetUserDispalyName(user));
            }
            else if (noticeType == NoticeType.SystemMessage)
            {
                sbHtml.AppendFormat("<a href=\"javascript:;\">系统消息</a> :{0}", content);
            }
            else if (noticeType == NoticeType.Message)
            {
                sbHtml.AppendFormat("<a href=\"{0}\">{1}</a>  给您留言 :{2}",
                                    GetUserLink(user.AutoID, WebsiteOwner), bllUser.GetUserDispalyName(user), content);
            }
            return(sbHtml.ToString());
        }