Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                MWzYuMingInfo m = null;
                m = EyouSoft.Security.Membership.YlHuiYuanProvider.GetYuMingInfo();
                if (m != null)
                {
                    YuMingInfo = m;
                }
                YouLunHangXiang(); YouLunXiLie(); DengChuan(); ChuFaTime();
            }

            if (YouLunLeiXing.HasValue)
            {
                if (YouLunLeiXing.Value == EyouSoft.Model.EnumType.YlStructure.YouLunLeiXing.海洋邮轮)
                {
                    S1 = "邮轮";
                    S2 = "出发港口";

                    phgs.Visible = true;
                    phxl.Visible = false;

                    YouLunGongSi();
                }
            }
        }
Exemplo n.º 2
0
        private void InitTopInfo()
        {
            MWzYuMingInfo m = null;

            m = EyouSoft.Security.Membership.YlHuiYuanProvider.GetYuMingInfo();
            EyouSoft.BLL.YlStructure.BHangQi bll = new EyouSoft.BLL.YlStructure.BHangQi();
            int recordCount          = 0;
            MHangQiChaXunInfo chaxun = new MHangQiChaXunInfo()
            {
                IsYouXiao = true,
                LeiXing   = LeiXing,
                BiaoQian  = EyouSoft.Model.EnumType.YlStructure.HangQiBiaoQian.热门推荐,
                PaiXu     = 2
            };
            var list = bll.GetHangQis(m.CompanyId, 4, 1, ref recordCount, chaxun);

            if (list != null)
            {
                rptList_tj_top.DataSource = list;
                rptList_tj_top.DataBind();
                txtHangQiName.Text = HangQiNameHtml(list);
            }
            chaxun.BiaoQian = EyouSoft.Model.EnumType.YlStructure.HangQiBiaoQian.热门;
            var list2 = bll.GetHangQis(m.CompanyId, 7, 1, ref recordCount, chaxun);

            if (list2 != null)
            {
                rptList_tj_down.DataSource = list2;
                rptList_tj_down.DataBind();
            }
        }
Exemplo n.º 3
0
        public void ProcessRequest(HttpContext context)
        {
            string        ErpFilepath = string.Empty;
            MWzYuMingInfo m           = null;

            m = EyouSoft.Security.Membership.YlHuiYuanProvider.GetYuMingInfo();

            if (m != null)
            {
                if (!string.IsNullOrEmpty(m.CompanyId))
                {
                    ErpFilepath = "http://" + m.ErpYuMing;
                }
            }

            string        CompanyId = Utils.GetQueryStringValue("CompanyId");
            var           LeiXing   = Utils.GetQueryStringValue("LeiXing");
            StringBuilder tmpStr    = new StringBuilder();

            tmpStr.Append("<ul id=\"i_ul_rexiao\">");
            tmpStr.Append(HotList(m.CompanyId, LeiXing, ErpFilepath));
            tmpStr.Append("</ul>");
            context.Response.ContentType = "text/plain";
            context.Response.Write(tmpStr.ToString());
        }
Exemplo n.º 4
0
        /// <summary>
        /// 获取当前域名信息
        /// </summary>
        /// <returns></returns>
        public static MWzYuMingInfo GetYuMingInfo()
        {
            string s = System.Web.HttpContext.Current.Request.Url.Host.ToLower();

            IDictionary <string, MWzYuMingInfo> domains = (IDictionary <string, MWzYuMingInfo>)EyouSoftCache.GetCache(EyouSoft.Cache.Tag.TagName.YlWzYuMings);
            MWzYuMingInfo info = null;

            domains = domains ?? new Dictionary <string, MWzYuMingInfo>();
            if (domains.ContainsKey(s))
            {
                info = domains[s];
            }
            else
            {
                IYlHuiYuanLogin dal = new DYlHuiYuanLogin();
                info = dal.GetYuMingInfo(s);
                if (info != null)
                {
                    domains.Add(s, info);
                    EyouSoft.Cache.Facade.EyouSoftCache.Add(EyouSoft.Cache.Tag.TagName.YlWzYuMings, domains);
                }
            }

            return(info);
        }
Exemplo n.º 5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                MWzYuMingInfo m = null;
                m = EyouSoft.Security.Membership.YlHuiYuanProvider.GetYuMingInfo();
                if (m != null)
                {
                    YuMingInfo = m;
                }
                YouLunHangXiang(); YouLunXiLie(); DengChuan(); ChuFaTime();
            }

            Model.EnumType.YlStructure.WzYouQingLianJieLeiXing?_youhuileixing = Model.EnumType.YlStructure.WzYouQingLianJieLeiXing.长江优惠信息;

            if (YouLunLeiXing.HasValue)
            {
                if (YouLunLeiXing.Value == EyouSoft.Model.EnumType.YlStructure.YouLunLeiXing.海洋邮轮)
                {
                    S1        = "邮轮";
                    S2        = "出发港口";
                    MenuClass = " sub-menu01";

                    phgs.Visible = true;
                    phxl.Visible = false;

                    YouLunGongSi();
                    _youhuileixing = Model.EnumType.YlStructure.WzYouQingLianJieLeiXing.海洋优惠信息;
                }
            }

            var l = new BLL.YlStructure.BWz().GetYouQingLianJies(YuMingInfo.CompanyId, new MWzYouQingLianJieChaXunInfo()
            {
                LeiXing = _youhuileixing
            });

            if (l != null && l.Count > 0)
            {
                this.YouHuiLianJie += "<p class=\"hy_red\">优惠信息</p>";
                foreach (var m in l)
                {
                    this.YouHuiLianJie += string.Format("<p><a target=\"_blank\" href=\"{0}\" class=\"hy_yellow\"><img src=\"../images/hy-icon01.gif\" />{1}</a></p>", m.Url, m.MingCheng);
                }
            }
        }
Exemplo n.º 6
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            MWzYuMingInfo m = null;

            m = EyouSoft.Security.Membership.YlHuiYuanProvider.GetYuMingInfo();

            if (m == null)
            {
                RCWE("ERROR:YUMING");
            }
            if (string.IsNullOrEmpty(m.CompanyId))
            {
                RCWE("ERROR:YUMING");
            }

            YuMingInfo = m;

            ErpFilepath = "http://" + YuMingInfo.ErpYuMing;
        }
Exemplo n.º 7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            MWzYuMingInfo m = null;

            m = EyouSoft.Security.Membership.YlHuiYuanProvider.GetYuMingInfo();
            EyouSoft.BLL.YlStructure.BHangQi bll = new EyouSoft.BLL.YlStructure.BHangQi();
            int           recordCount            = 0;
            StringBuilder sb = new StringBuilder();

            if (!IsTuanGou)
            {
                MHangQiChaXunInfo chaxun = new MHangQiChaXunInfo()
                {
                    IsYouXiao = true,

                    BiaoQian = EyouSoft.Model.EnumType.YlStructure.HangQiBiaoQian.热门推荐
                };
                chaxun.LeiXing = LeiXing;

                var list = bll.GetHangQis(m.CompanyId, 7, 1, ref recordCount, chaxun);

                if (list != null)
                {
                    foreach (var item in list)
                    {
                        string FuJians = "";

                        string url      = "/hangqi/";
                        var    _leiXing = (EyouSoft.Model.EnumType.YlStructure.YouLunLeiXing)item.LeiXing;
                        if (_leiXing == EyouSoft.Model.EnumType.YlStructure.YouLunLeiXing.海洋邮轮)
                        {
                            url = "/hangqi/HY";
                        }



                        if (item.FuJians != null && item.FuJians.Count > 0)
                        {
                            FuJians = TuPian.F1(Utils.GetErpFilepath() + item.FuJians[0].Filepath, 153, 104);
                        }
                        sb.AppendFormat("<li title='{0}'>", item.MingCheng);
                        sb.AppendFormat("<a href=\"{0}\"><img src=\"{1}\"><span style='height:23px;overflow:hidden;'>{2}", url + item.HangQiId + ".html", FuJians, item.MingCheng);
                        sb.Append("</span></a></li>");
                    }
                    litList.Text = sb.ToString();
                }
            }
            else
            {
                MTuanGouChaXunInfo tg = new MTuanGouChaXunInfo();

                var TuanGou = bll.GetTuanGous(m.CompanyId, 7, 1, ref recordCount, tg);

                if (TuanGou != null)
                {
                    foreach (var item in TuanGou)
                    {
                        string FuJians = "";

                        string url = "/TuanGou/TuanGouXiangQing.aspx";

                        FuJians = TuPian.F1(Utils.GetErpFilepath() + item.FengMian, 153, 104);
                        sb.AppendFormat("<li title='{0}'>", item.MingCheng);
                        sb.AppendFormat("<a href=\"{0}\"><img src=\"{1}\"><span style='height:23px;overflow:hidden;'>{2}", url + "?TuanGouId=" + item.TuanGouId, FuJians, item.MingCheng);
                        sb.Append("</span></a></li>");
                    }
                }
            }
            litList.Text = sb.ToString();
        }