Exemplo n.º 1
0
        /// <summary>
        /// init repeater 01
        /// </summary>
        void InitRpt1()
        {
            var items = new Eyousoft_yhq.BLL.BHuiYuanGuanXi().GetGuanZhus(HuiYuanId2);

            rpt01.DataSource = items;
            rpt01.DataBind();
        }
Exemplo n.º 2
0
        /// <summary>
        /// quxiao guanzhu
        /// </summary>
        void QuXiaoGuanZhu()
        {
            if (!IsLogin)
            {
                Utils.RCWE_AJAX("-99", "需要登录后才能取消关注,你确定要跳转到登录窗口吗?", Request.Url.ToString().ToLower().Replace("dotype", "__dotype"));
            }

            string txtHuiYuanId1 = Utils.GetFormValue("txtHuiYuanId1");
            string txtHuiYuanId2 = Utils.GetFormValue("txtHuiYuanId2");
            int    txtGuanZhuId  = Utils.GetInt(Utils.GetFormValue("txtGuanZhuId"));

            if (HuiYuanInfo.UserID != txtHuiYuanId1)
            {
                Utils.RCWE_AJAX("0", "取消关注失败,请重试");
            }

            var bllRetCode = new Eyousoft_yhq.BLL.BHuiYuanGuanXi().HuiYuanGuanZhu_QuXiao(txtGuanZhuId, txtHuiYuanId1, txtHuiYuanId2);

            if (bllRetCode == 1)
            {
                Utils.RCWE_AJAX("1", "取消关注成功");
            }
            else
            {
                Utils.RCWE_AJAX("0", "取消关注失败,请重试");
            }
        }
Exemplo n.º 3
0
        /// <summary>
        /// init repeater
        /// </summary>
        void InitRpt()
        {
            var items = new Eyousoft_yhq.BLL.BHuiYuanGuanXi().GetLiuYans(HuiYuanId2);

            if (IsLogin && HuiYuanId2 == HuiYuanInfo.UserID)
            {
                new Eyousoft_yhq.BLL.Member().Update(HuiYuanId2, Eyousoft_yhq.Model.OptionType.留言);
            }

            if (items != null && items.Count > 0)
            {
                ph01.Visible = false;
                ph02.Visible = true;

                rpt.DataSource = items;
                rpt.DataBind();
            }
            else
            {
                ph01.Visible = true;
                ph02.Visible = false;

                if (IsLogin && HuiYuanId2 == HuiYuanInfo.UserID)
                {
                    ltrXX01.Text = "还没有人给你留言哦<br/><a href=\"/huiyuanweixin/mingpian.aspx\">赶快把你的微名片分享给朋友吧</a>";
                    this.Title   = "给我的留言";
                }
                else
                {
                    ltrXX01.Text = "还没有人给他留言哦<br/><!--<a href=\"javascript:void(0)\"  data-class=\"woyaoliuyan\">我要留言</a>-->";
                    this.Title   = "给他(她)的留言";
                }
            }
        }
Exemplo n.º 4
0
        /// <summary>
        /// huifu liuyan
        /// </summary>
        void HuiFuLiuYan()
        {
            if (!IsLogin)
            {
                Utils.RCWE_AJAX("-99", "需要登录后才能回复,你确定要跳转到登录窗口吗?", Request.Url.ToString().ToLower().Replace("dotype", "__dotype"));
            }

            string txtHuiYuanId1   = Utils.GetFormValue("txtHuiYuanId1");
            string txtHuiYuanId2   = Utils.GetFormValue("txtHuiYuanId2");
            string txtHuiFuNeiRong = Utils.GetFormValue("txtHuiFuNeiRong");
            int    txtLiuYanId     = Utils.GetInt(Utils.GetFormValue("txtLiuYanId"));

            if (string.IsNullOrEmpty(txtHuiYuanId1) || string.IsNullOrEmpty(txtHuiFuNeiRong) || txtLiuYanId < 1)
            {
                Utils.RCWE_AJAX("-1", "回复失败,请重试");
            }
            if (txtHuiYuanId2 != HuiYuanInfo.UserID)
            {
                Utils.RCWE_AJAX("-1", "回复失败,请重试");
            }

            int bllRetCode = new Eyousoft_yhq.BLL.BHuiYuanGuanXi().HuiYuanLiuYan_HuiFu(txtLiuYanId, txtHuiYuanId1, HuiYuanInfo.UserID, txtHuiFuNeiRong);

            if (bllRetCode == 1)
            {
                Utils.RCWE_AJAX("1", "回复成功");
            }
            else
            {
                Utils.RCWE_AJAX("0", "回复失败,请重试");
            }
        }
Exemplo n.º 5
0
        /// <summary>
        /// tijiao liuyan
        /// </summary>
        void TiJiaoLiuYan()
        {
            if (!IsLogin)
            {
                Utils.RCWE_AJAX("-99", "需要登录后才能留言,你确定要跳转到登录窗口吗?", Request.Url.ToString().ToLower().Replace("dotype", "__dotype"));
            }

            string txtHuiYuanId2    = Utils.GetFormValue("txtHuiYuanId2");
            string txtLiuYanNeiRong = Utils.GetFormValue("txtLiuYanNeiRong");

            if (string.IsNullOrEmpty(txtHuiYuanId2) || string.IsNullOrEmpty(txtLiuYanNeiRong))
            {
                Utils.RCWE_AJAX("-1", "留言失败,请重试");
            }
            if (txtHuiYuanId2 == HuiYuanInfo.UserID)
            {
                Utils.RCWE_AJAX("-1", "留言失败:不能给自己留言");
            }

            int bllRetCode = new Eyousoft_yhq.BLL.BHuiYuanGuanXi().HuiYuanLiuYan(HuiYuanInfo.UserID, txtHuiYuanId2, txtLiuYanNeiRong);

            if (bllRetCode == 1)
            {
                Utils.RCWE_AJAX("1", "留言成功");
            }
            else
            {
                Utils.RCWE_AJAX("0", "留言失败,请重试");
            }
        }
Exemplo n.º 6
0
        /// <summary>
        /// init repeater 02
        /// </summary>
        void InitRpt2()
        {
            if (!IsLogin)
            {
                return;
            }

            var items = new Eyousoft_yhq.BLL.BHuiYuanGuanXi().GetGuanZhus1(HuiYuanInfo.UserID);

            if (items != null && items.Count > 0)
            {
                rpt02.DataSource = items;
                rpt02.DataBind();
                ph03.Visible = true;

                WoGuanZhuJiShu = items.Count;
            }
        }
Exemplo n.º 7
0
        /// <summary>
        /// wo yao guanzhu
        /// </summary>
        void WoYaoGuanZhu()
        {
            if (!IsLogin)
            {
                Utils.RCWE_AJAX("-99", "需要登录后才能关注,你确定要跳转到登录窗口吗?", Request.Url.ToString().ToLower().Replace("dotype", "__dotype"));
            }

            string txtHuiYuanId2 = Utils.GetFormValue("txtHuiYuanId2");
            var    bllRetCode    = new Eyousoft_yhq.BLL.BHuiYuanGuanXi().HuiYuanGuanZhu(HuiYuanInfo.UserID, txtHuiYuanId2);

            if (bllRetCode == 1)
            {
                Utils.RCWE_AJAX("1", "关注成功");
            }
            else
            {
                Utils.RCWE_AJAX("0", "关注失败,请重试");
            }
        }
Exemplo n.º 8
0
        /// <summary>
        /// tijiao liuyan
        /// </summary>
        void TiJiaoLiuYan()
        {
            if (!IsLogin) { Utils.RCWE_AJAX("-99", "需要登录后才能留言,你确定要跳转到登录窗口吗?", Request.Url.ToString().ToLower().Replace("dotype", "__dotype")); }

            string txtHuiYuanId2 = Utils.GetFormValue("txtHuiYuanId2");
            string txtLiuYanNeiRong = Utils.GetFormValue("txtLiuYanNeiRong");

            if (string.IsNullOrEmpty(txtHuiYuanId2) || string.IsNullOrEmpty(txtLiuYanNeiRong)) { Utils.RCWE_AJAX("-1", "留言失败,请重试"); }
            if (txtHuiYuanId2 == HuiYuanInfo.UserID) { Utils.RCWE_AJAX("-1", "留言失败:不能给自己留言"); }

            int bllRetCode = new Eyousoft_yhq.BLL.BHuiYuanGuanXi().HuiYuanLiuYan(HuiYuanInfo.UserID, txtHuiYuanId2, txtLiuYanNeiRong);

            if (bllRetCode == 1) { Utils.RCWE_AJAX("1", "留言成功"); }
            else { Utils.RCWE_AJAX("0", "留言失败,请重试"); }
        }
Exemplo n.º 9
0
        /// <summary>
        /// init repeater
        /// </summary>
        void InitRpt()
        {
            var items = new Eyousoft_yhq.BLL.BHuiYuanGuanXi().GetLiuYans(HuiYuanId2);
            if (IsLogin && HuiYuanId2 == HuiYuanInfo.UserID)
            {
                new Eyousoft_yhq.BLL.Member().Update(HuiYuanId2, Eyousoft_yhq.Model.OptionType.留言);
            }

            if (items != null && items.Count > 0)
            {
                ph01.Visible = false;
                ph02.Visible = true;

                rpt.DataSource = items;
                rpt.DataBind();
            }
            else
            {
                ph01.Visible = true;
                ph02.Visible = false;

                if (IsLogin && HuiYuanId2 == HuiYuanInfo.UserID)
                {
                    ltrXX01.Text = "还没有人给你留言哦<br/><a href=\"/huiyuanweixin/mingpian.aspx\">赶快把你的微名片分享给朋友吧</a>";
                    this.Title = "给我的留言";
                }
                else
                {
                    ltrXX01.Text = "还没有人给他留言哦<br/><!--<a href=\"javascript:void(0)\"  data-class=\"woyaoliuyan\">我要留言</a>-->";
                    this.Title = "给他(她)的留言";
                }
            }
        }
Exemplo n.º 10
0
        /// <summary>
        /// huifu liuyan
        /// </summary>
        void HuiFuLiuYan()
        {
            if (!IsLogin) { Utils.RCWE_AJAX("-99", "需要登录后才能回复,你确定要跳转到登录窗口吗?", Request.Url.ToString().ToLower().Replace("dotype", "__dotype")); }

            string txtHuiYuanId1 = Utils.GetFormValue("txtHuiYuanId1");
            string txtHuiYuanId2 = Utils.GetFormValue("txtHuiYuanId2");
            string txtHuiFuNeiRong = Utils.GetFormValue("txtHuiFuNeiRong");
            int txtLiuYanId =Utils.GetInt( Utils.GetFormValue("txtLiuYanId"));

            if (string.IsNullOrEmpty(txtHuiYuanId1) || string.IsNullOrEmpty(txtHuiFuNeiRong) || txtLiuYanId < 1) { Utils.RCWE_AJAX("-1", "回复失败,请重试"); }
            if (txtHuiYuanId2 != HuiYuanInfo.UserID) { Utils.RCWE_AJAX("-1", "回复失败,请重试"); }

            int bllRetCode = new Eyousoft_yhq.BLL.BHuiYuanGuanXi().HuiYuanLiuYan_HuiFu(txtLiuYanId, txtHuiYuanId1, HuiYuanInfo.UserID, txtHuiFuNeiRong);

            if (bllRetCode == 1) { Utils.RCWE_AJAX("1", "回复成功"); }
            else { Utils.RCWE_AJAX("0", "回复失败,请重试"); }
        }
Exemplo n.º 11
0
        /// <summary>
        /// wo yao guanzhu
        /// </summary>
        void WoYaoGuanZhu()
        {
            if (!IsLogin) { Utils.RCWE_AJAX("-99", "需要登录后才能关注,你确定要跳转到登录窗口吗?", Request.Url.ToString().ToLower().Replace("dotype", "__dotype")); }

            string txtHuiYuanId2 = Utils.GetFormValue("txtHuiYuanId2");
            var bllRetCode = new Eyousoft_yhq.BLL.BHuiYuanGuanXi().HuiYuanGuanZhu(HuiYuanInfo.UserID, txtHuiYuanId2);

            if (bllRetCode == 1) { Utils.RCWE_AJAX("1", "关注成功"); }
            else { Utils.RCWE_AJAX("0", "关注失败,请重试"); }
        }
Exemplo n.º 12
0
        /// <summary>
        /// quxiao guanzhu
        /// </summary>
        void QuXiaoGuanZhu()
        {
            if (!IsLogin) { Utils.RCWE_AJAX("-99", "需要登录后才能取消关注,你确定要跳转到登录窗口吗?", Request.Url.ToString().ToLower().Replace("dotype", "__dotype")); }

            string txtHuiYuanId1 = Utils.GetFormValue("txtHuiYuanId1");
            string txtHuiYuanId2 = Utils.GetFormValue("txtHuiYuanId2");
            int txtGuanZhuId = Utils.GetInt(Utils.GetFormValue("txtGuanZhuId"));

            if (HuiYuanInfo.UserID != txtHuiYuanId1) { Utils.RCWE_AJAX("0", "取消关注失败,请重试"); }

            var bllRetCode = new Eyousoft_yhq.BLL.BHuiYuanGuanXi().HuiYuanGuanZhu_QuXiao(txtGuanZhuId, txtHuiYuanId1, txtHuiYuanId2);

            if (bllRetCode == 1) { Utils.RCWE_AJAX("1", "取消关注成功"); }
            else { Utils.RCWE_AJAX("0", "取消关注失败,请重试"); }
        }
Exemplo n.º 13
0
        /// <summary>
        /// init repeater 02
        /// </summary>
        void InitRpt2()
        {
            if (!IsLogin) return;

            var items = new Eyousoft_yhq.BLL.BHuiYuanGuanXi().GetGuanZhus1(HuiYuanInfo.UserID);

            if (items != null&&items.Count>0)
            {
                rpt02.DataSource = items;
                rpt02.DataBind();
                ph03.Visible = true;

                WoGuanZhuJiShu = items.Count;
            }
        }
Exemplo n.º 14
0
        /// <summary>
        /// init repeater 01
        /// </summary>
        void InitRpt1()
        {
            var items = new Eyousoft_yhq.BLL.BHuiYuanGuanXi().GetGuanZhus(HuiYuanId2);

            rpt01.DataSource = items;
            rpt01.DataBind();
        }