Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Master.WeiZhi = WzGuangGaoWeiZhi.游轮会议横幅;

            WzKvKey type = (WzKvKey)Utils.GetInt(Utils.GetQueryStringValue("type"));

            if (type > 0)
            {
                GetContent(type);
            }
        }
Exemplo n.º 2
0
        private void GetContent(WzKvKey type)
        {
            EyouSoft.BLL.YlStructure.BWz bll = new EyouSoft.BLL.YlStructure.BWz();
            int recordCount = 0;
            MWzHuiYiAnLiChaXunInfo model = new MWzHuiYiAnLiChaXunInfo();

            if (type == WzKvKey.长江游轮会议详介)
            {
                model.LeiXing = YouLunLeiXing.长江游轮;
            }
            if (type == WzKvKey.海洋邮轮会议详介)
            {
                model.LeiXing = YouLunLeiXing.海洋邮轮;
            }

            data = bll.GetHuiYiAnLis(YuMingInfo.CompanyId, 100, 1, ref recordCount, model);
            Repeater1.DataSource = data.Select(x => x.ShiJian1.Year).Distinct().OrderByDescending(x => x).Take(5);
            Repeater1.DataBind();
        }