Example #1
0
 protected void check(string[] strArr)
 {
     Response.Clear();
     Eyousoft_yhq.BLL.Comment BLL = new Eyousoft_yhq.BLL.Comment();
     bool result = BLL.Update(strArr);
     Response.Write(UtilsCommons.AjaxReturnJson(result ? "1" : "0", result ? "审核成功!" : "审核失败!"));
     Response.End();
 }
Example #2
0
        protected void check(string[] strArr)
        {
            Response.Clear();
            Eyousoft_yhq.BLL.Comment BLL = new Eyousoft_yhq.BLL.Comment();
            bool result = BLL.Update(strArr);

            Response.Write(UtilsCommons.AjaxReturnJson(result ? "1" : "0", result ? "审核成功!" : "审核失败!"));
            Response.End();
        }
Example #3
0
 protected void initList(string pid)
 {
     Eyousoft_yhq.BLL.Comment combll = new Eyousoft_yhq.BLL.Comment();
     var list = combll.GetList(null);
     if (list != null && list.Count > 0)
     {
         var count = list.Where(t => t.ProductID == pid).ToList();
         shuliang = count.Count.ToString();
         rpt_list.DataSource = count;
         rpt_list.DataBind();
     }
 }
Example #4
0
        protected void initList(string pid)
        {
            Eyousoft_yhq.BLL.Comment combll = new Eyousoft_yhq.BLL.Comment();
            var list = combll.GetList(null);

            if (list != null && list.Count > 0)
            {
                var count = list.Where(t => t.ProductID == pid).ToList();
                shuliang            = count.Count.ToString();
                rpt_list.DataSource = count;
                rpt_list.DataBind();
            }
        }
Example #5
0
        /// <summary>
        /// 初始化页面
        /// </summary>
        /// <param name="id">产品编号</param>
        protected void pageInit(string id)
        {
            var model = EyouSoft.Common.Page.HuiyuanPage.GetUserInfo();

            if (model != null)
            {
                hybh = model.UserID;
            }
            Eyousoft_yhq.BLL.Product bll = new Eyousoft_yhq.BLL.Product();
            gModel = new Eyousoft_yhq.Model.Product();
            gModel = bll.GetModel(id);
            if (gModel != null)
            {
                lbl_ProName.Text = gModel.ProductName;
                shichangjia      = gModel.MarketPrice.ToString("C0");
                appjia           = gModel.AppPrice.ToString("C0");
                dianhua          = gModel.LinkTel;
                descript         = Utils.GetText2(gModel.ProductDis, 30, true);
                //Lit_chutuan.Text = gModel.SendTourKnow.Replace("\n", "<br/>");
                //Lit_conpair.Text = gModel.Scompare.Replace("\n", "<br/>");

                //Lit_xingcheng.Text = gModel.TourDis.Replace("\n", "<br/>");
                //Lit_jieshao.Text = gModel.ProductDis.Replace("\n", "<br/>");
                yhm        = gModel.FavourCode;
                pinglunshu = new Eyousoft_yhq.BLL.Comment().GetCountNum(gModel.ProductID).ToString();
                if (DateTime.Compare(DateTime.Now, Utils.GetDateTime(gModel.ValidiDate.ToString())) > 0 && !gModel.IsEveryDay)
                {
                    spanResult.Visible = false;
                }
                switch (gModel.PType)
                {
                case 2:
                    lit_Menu.Text = string.Format("<div class=\"pro_content\"> <h3><ul class=\"tiaozheng\"><li li_index=\"1\" class=\"active\">产品介绍</li><li li_index=\"2\">使用须知</li></ul></h3><div class=\"contentbox\"><div>{0}</div><div style=\"display: none\">{1}</div> </div><div><img src=\"/images/pro_b.png\" width=\"300\"></div></div>", gModel.ProductDis.Replace("\n", "<br/>"), gModel.SendTourKnow.Replace("\n", "<br/>"));
                    break;

                case 3:
                    lit_Menu.Text = string.Format("<div class=\"pro_content\"> <h3><ul class=\"tiaozheng\"><li li_index=\"1\" class=\"active\">产品介绍</li><li li_index=\"2\">使用须知</li></ul></h3><div class=\"contentbox\"><div>{0}</div><div style=\"display: none\">{1}</div> </div><div><img src=\"/images/pro_b.png\" width=\"300\"></div></div>", gModel.ProductDis.Replace("\n", "<br/>"), gModel.SendTourKnow.Replace("\n", "<br/>"));
                    break;

                default:
                    lit_Menu.Text = string.Format("<div class=\"pro_content\"> <h3><ul class=\"tiaozheng\"><li li_index=\"1\" class=\"active\">产品介绍</li><li li_index=\"2\">参考行程</li><li li_index=\"3\">出团须知</li><li li_index=\"4\">同类比较</li></ul></h3><div class=\"contentbox\"><div>{0}</div><div style=\"display: none\">{1}</div> <div style=\"display: none\">{2}</div><div style=\"display: none\">{3}</div></div><div><img src=\"/images/pro_b.png\" width=\"300\"></div></div>", gModel.ProductDis.Replace("\n", "<br/>"), gModel.TourDis.Replace("\n", "<br/>"), gModel.SendTourKnow.Replace("\n", "<br/>"), gModel.Scompare);
                    break;
                }
            }
            else
            {
                lit_Menu.Text = string.Format("<div class=\"pro_content\"> <h3><ul class=\"tiaozheng\"><li li_index=\"1\" class=\"active\">产品介绍</li><li li_index=\"2\">参考行程</li><li li_index=\"3\">出团须知</li><li li_index=\"4\">同类比较</li></ul></h3><div class=\"contentbox\"><div></div><div style=\"display: none\"></div> <div style=\"display: none\"></div><div style=\"display: none\"></div></div><div><img src=\"/images/pro_b.png\" width=\"300\"></div></div>");
            }
        }
Example #6
0
        /// <summary>
        /// 初始化页面
        /// </summary>
        /// <param name="id">产品编号</param>
        protected void pageInit(string id)
        {
            var model = EyouSoft.Common.Page.HuiyuanPage.GetUserInfo();
            if (model != null)
            {
                hybh = model.UserID;

            }
            Eyousoft_yhq.BLL.Product bll = new Eyousoft_yhq.BLL.Product();
            gModel = new Eyousoft_yhq.Model.Product();
            gModel = bll.GetModel(id);
            if (gModel != null)
            {
                lbl_ProName.Text = gModel.ProductName;
                shichangjia = gModel.MarketPrice.ToString("C0");
                appjia = gModel.AppPrice.ToString("C0");
                dianhua = gModel.LinkTel;
                descript = Utils.GetText2(gModel.ProductDis, 30, true);
                //Lit_chutuan.Text = gModel.SendTourKnow.Replace("\n", "<br/>");
                //Lit_conpair.Text = gModel.Scompare.Replace("\n", "<br/>");

                //Lit_xingcheng.Text = gModel.TourDis.Replace("\n", "<br/>");
                //Lit_jieshao.Text = gModel.ProductDis.Replace("\n", "<br/>");
                yhm = gModel.FavourCode;
                pinglunshu = new Eyousoft_yhq.BLL.Comment().GetCountNum(gModel.ProductID).ToString();
                if (DateTime.Compare(DateTime.Now, Utils.GetDateTime(gModel.ValidiDate.ToString())) > 0 && !gModel.IsEveryDay)
                {
                    spanResult.Visible = false;
                }
                switch (gModel.PType)
                {
                    case 2:
                        lit_Menu.Text = string.Format("<div class=\"pro_content\"> <h3><ul class=\"tiaozheng\"><li li_index=\"1\" class=\"active\">产品介绍</li><li li_index=\"2\">使用须知</li></ul></h3><div class=\"contentbox\"><div>{0}</div><div style=\"display: none\">{1}</div> </div><div><img src=\"/images/pro_b.png\" width=\"300\"></div></div>", gModel.ProductDis.Replace("\n", "<br/>"), gModel.SendTourKnow.Replace("\n", "<br/>"));
                        break;
                    case 3:
                        lit_Menu.Text = string.Format("<div class=\"pro_content\"> <h3><ul class=\"tiaozheng\"><li li_index=\"1\" class=\"active\">产品介绍</li><li li_index=\"2\">使用须知</li></ul></h3><div class=\"contentbox\"><div>{0}</div><div style=\"display: none\">{1}</div> </div><div><img src=\"/images/pro_b.png\" width=\"300\"></div></div>", gModel.ProductDis.Replace("\n", "<br/>"), gModel.SendTourKnow.Replace("\n", "<br/>"));
                        break;
                    default:
                        lit_Menu.Text = string.Format("<div class=\"pro_content\"> <h3><ul class=\"tiaozheng\"><li li_index=\"1\" class=\"active\">产品介绍</li><li li_index=\"2\">参考行程</li><li li_index=\"3\">出团须知</li><li li_index=\"4\">同类比较</li></ul></h3><div class=\"contentbox\"><div>{0}</div><div style=\"display: none\">{1}</div> <div style=\"display: none\">{2}</div><div style=\"display: none\">{3}</div></div><div><img src=\"/images/pro_b.png\" width=\"300\"></div></div>", gModel.ProductDis.Replace("\n", "<br/>"), gModel.TourDis.Replace("\n", "<br/>"), gModel.SendTourKnow.Replace("\n", "<br/>"), gModel.Scompare);
                        break;
                }

            }
            else
            {
                lit_Menu.Text = string.Format("<div class=\"pro_content\"> <h3><ul class=\"tiaozheng\"><li li_index=\"1\" class=\"active\">产品介绍</li><li li_index=\"2\">参考行程</li><li li_index=\"3\">出团须知</li><li li_index=\"4\">同类比较</li></ul></h3><div class=\"contentbox\"><div></div><div style=\"display: none\"></div> <div style=\"display: none\"></div><div style=\"display: none\"></div></div><div><img src=\"/images/pro_b.png\" width=\"300\"></div></div>");
            }
        }
Example #7
0
 protected void addMsg(string productId)
 {
     if (info != null)
     {
         var model = new Eyousoft_yhq.Model.Comment();
         model.CommentText = Utils.GetQueryStringValue("context");
         model.ProductID = productId;
         model.PeopleID = info.UserID;
         model.IssueTime = DateTime.Now;
         model.CheckState = "0";
         bool i = new Eyousoft_yhq.BLL.Comment().Add(model);
     }
     else
     {
         Response.Redirect("/login.aspx");
     }
 }
Example #8
0
 protected void addMsg(string productId)
 {
     if (info != null)
     {
         var model = new Eyousoft_yhq.Model.Comment();
         model.CommentText = Utils.GetQueryStringValue("context");
         model.ProductID   = productId;
         model.PeopleID    = info.UserID;
         model.IssueTime   = DateTime.Now;
         model.CheckState  = "0";
         bool i = new Eyousoft_yhq.BLL.Comment().Add(model);
     }
     else
     {
         Response.Redirect("/login.aspx");
     }
 }
Example #9
0
        protected void initList()
        {
            Eyousoft_yhq.BLL.Comment      bll        = new Eyousoft_yhq.BLL.Comment();
            Eyousoft_yhq.Model.serComment serchModel = new Eyousoft_yhq.Model.serComment();
            serchModel.sTime = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("stime"));
            serchModel.eTime = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("etime"));
            pageIndex        = UtilsCommons.GetPagingIndex("Page");
            var list = bll.GetList(pageSize, pageIndex, ref recordCount, serchModel);

            if (list != null && list.Count > 0)
            {
                rpt_list.DataSource = list;
                rpt_list.DataBind();
                BindPage();
                litMsg.Visible = false;
            }
            else
            {
                rpt_list.Visible = false;
            }
        }
Example #10
0
        protected void initList()
        {
            Eyousoft_yhq.BLL.Comment bll = new Eyousoft_yhq.BLL.Comment();
            Eyousoft_yhq.Model.serComment serchModel = new Eyousoft_yhq.Model.serComment();
            serchModel.sTime = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("stime"));
            serchModel.eTime = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("etime"));
            pageIndex = UtilsCommons.GetPagingIndex("Page");
            var list = bll.GetList(pageSize, pageIndex, ref recordCount, serchModel);
            if (list != null && list.Count > 0)
            {
                rpt_list.DataSource = list;
                rpt_list.DataBind();
                BindPage();
                litMsg.Visible = false;

            }
            else
            {
                rpt_list.Visible = false;
            }
        }
Example #11
0
        protected string getCommentNum(object id)
        {
            var i = new Eyousoft_yhq.BLL.Comment().GetCountNum(id.ToString());

            return(i.ToString());
        }
Example #12
0
 protected string getCommentNum(object id)
 {
     var i = new Eyousoft_yhq.BLL.Comment().GetCountNum(id.ToString());
     return i.ToString();
 }
Example #13
0
        /// <summary>
        /// 初始化页面
        /// </summary>
        protected void initPage()
        {
            EyouSoft.Model.SSOStructure.MUserInfo info = EyouSoft.Common.Page.HuiyuanPage.GetUserInfo();
            if (info != null)
            {
                isLogin = "******";
            }

            string id    = Utils.GetQueryStringValue("id");
            var    model = new Eyousoft_yhq.BLL.Product().GetModel(id);

            if (model != null)
            {
                yhm = model.FavourCode;
                lblproductName.Text = lblMenuTitle.Text = model.ProductName;
                lbldescript.Text    = Utils.GetText2(model.ProductDis, 100, true);
                lblprice.Text       = model.AppPrice.ToString("0");
                lblZK.Text          = ((model.AppPrice / model.MarketPrice) * 10).ToString("0.0");
                lblMarketPrice.Text = model.MarketPrice.ToString("C0");
                lblSaleCount.Text   = model.SaleNum.ToString();
                ltrDescript.Text    = model.ProductDis.Replace("\n", "<br/>");
                ltrTour.Text        = model.TourDis.Replace("\n", "<br/>");
                ltrKown.Text        = model.SendTourKnow.Replace("\n", "<br/>");
                ltrCompair.Text     = model.Scompare.Replace("\n", "<br/>");
                if (!string.IsNullOrEmpty(model.ServiceQQ))
                {
                    lblQQ.Text = string.Format("<a target=\"_blank\" href=\"http://wpa.qq.com/msgrd?v=3&uin={0}&site=qq&menu=yes\"  ><img src=\"/images/qq.gif\"></a>", model.ServiceQQ);
                }
                else
                {
                    lblQQ.Text = "<a href=\"javascript:;\" ><img src=\"/images/qq.gif\"></a>";
                }
                if (model.AttachList != null)
                {
                    for (int i = 0; i < model.AttachList.Count; i++)
                    {
                        if (model.AttachList[i].IsWebImage)
                        {
                            lblImg.Text = string.Format("<img src=\"{0}\" style=\"width:455px;height:280px\" />", model.AttachList[i].FilePath);
                        }
                    }
                }
                else
                {
                    lblImg.Text = "<img src=\"/images/pro_mainpic.jpg\" />";
                }
                pinglunshu = new Eyousoft_yhq.BLL.Comment().GetCountNum(model.ProductID).ToString();

                if (DateTime.Compare(DateTime.Now, Utils.GetDateTime(model.ValidiDate.ToString())) > 0 && !model.IsEveryDay)
                {
                    place_Viadate.Visible   = false;
                    place_isViadate.Visible = true;
                }
                switch (model.PType)
                {
                case 2:
                    getType              = "车票";
                    lblKnow.Text         = "使用须知";
                    PlaceHolder1.Visible = PlaceHolder2.Visible = false;
                    break;

                case 3:
                    getType              = "景点门票";
                    lblKnow.Text         = "使用须知";
                    PlaceHolder1.Visible = PlaceHolder2.Visible = false;
                    break;

                default:
                    break;
                }
            }
        }
Example #14
0
        /// <summary>
        /// 初始化页面
        /// </summary>
        protected void initPage()
        {
            EyouSoft.Model.SSOStructure.MUserInfo info = EyouSoft.Common.Page.HuiyuanPage.GetUserInfo();
            if (info != null)
            {
                isLogin = "******";
            }

            string id = Utils.GetQueryStringValue("id");
            var model = new Eyousoft_yhq.BLL.Product().GetModel(id);
            if (model != null)
            {
                yhm = model.FavourCode;
                lblproductName.Text = lblMenuTitle.Text = model.ProductName;
                lbldescript.Text = Utils.GetText2(model.ProductDis, 100, true);
                lblprice.Text = model.AppPrice.ToString("0");
                lblZK.Text = ((model.AppPrice / model.MarketPrice) * 10).ToString("0.0");
                lblMarketPrice.Text = model.MarketPrice.ToString("C0");
                lblSaleCount.Text = model.SaleNum.ToString();
                ltrDescript.Text = model.ProductDis.Replace("\n", "<br/>");
                ltrTour.Text = model.TourDis.Replace("\n", "<br/>");
                ltrKown.Text = model.SendTourKnow.Replace("\n", "<br/>");
                ltrCompair.Text = model.Scompare.Replace("\n", "<br/>");
                if (!string.IsNullOrEmpty(model.ServiceQQ))
                {
                    lblQQ.Text = string.Format("<a target=\"_blank\" href=\"http://wpa.qq.com/msgrd?v=3&uin={0}&site=qq&menu=yes\"  ><img src=\"/images/qq.gif\"></a>", model.ServiceQQ);
                }
                else
                {
                    lblQQ.Text = "<a href=\"javascript:;\" ><img src=\"/images/qq.gif\"></a>";
                }
                if (model.AttachList != null)
                {
                    for (int i = 0; i < model.AttachList.Count; i++)
                    {
                        if (model.AttachList[i].IsWebImage) lblImg.Text = string.Format("<img src=\"{0}\" style=\"width:455px;height:280px\" />", model.AttachList[i].FilePath);
                    }
                }
                else
                {
                    lblImg.Text = "<img src=\"/images/pro_mainpic.jpg\" />";
                }
                pinglunshu = new Eyousoft_yhq.BLL.Comment().GetCountNum(model.ProductID).ToString();

                if (DateTime.Compare(DateTime.Now, Utils.GetDateTime(model.ValidiDate.ToString())) > 0 && !model.IsEveryDay)
                {
                    place_Viadate.Visible = false;
                    place_isViadate.Visible = true;
                }
                switch (model.PType)
                {
                    case 2:
                        getType = "车票";
                        lblKnow.Text = "使用须知";
                        PlaceHolder1.Visible = PlaceHolder2.Visible = false;
                        break;
                    case 3:
                        getType = "景点门票";
                        lblKnow.Text = "使用须知";
                        PlaceHolder1.Visible = PlaceHolder2.Visible = false;
                        break;
                    default:
                        break;
                }

            }
        }