Пример #1
0
        void InitXiLie()
        {
            var chaXun = new EyouSoft.Model.YlStructure.MXiLieChaXunInfo();

            chaXun.GongSiLeiXing = Utils.GetEnumValue <EyouSoft.Model.EnumType.YlStructure.YouLunLeiXing>(Utils.GetQueryStringValue("t"), EyouSoft.Model.EnumType.YlStructure.YouLunLeiXing.长江游轮);
            int _recordcount = 0;
            var items        = new EyouSoft.BLL.YlStructure.BJiChuXinXi().GetXiLies(CurrentUserCompanyID, 10000, 1, ref _recordcount, chaXun);

            System.Text.StringBuilder s = new System.Text.StringBuilder();

            string xilieid = Utils.GetQueryStringValue("txtxilieid");

            if (items != null && items.Count > 0)
            {
                foreach (var item in items)
                {
                    if (item.XiLieId == xilieid)
                    {
                        s.AppendFormat("<option value='{0}' selected='selected'>{1}</option>", item.XiLieId, item.MingCheng);
                    }
                    else
                    {
                        s.AppendFormat("<option value='{0}'>{1}</option>", item.XiLieId, item.MingCheng);
                    }
                }
            }

            ltrXiLie.Text = s.ToString();
        }
Пример #2
0
        /// <summary>
        /// 游轮系列
        /// </summary>
        private void YouLunXiLie()
        {
            int           recordCount = 0;
            StringBuilder sb          = new StringBuilder();
            var           chaXun      = new EyouSoft.Model.YlStructure.MXiLieChaXunInfo();

            chaXun.GongSiLeiXing = YouLunLeiXing;

            var list = new EyouSoft.BLL.YlStructure.BJiChuXinXi().GetXiLies(YuMingInfo.CompanyId, 1000, 1, ref recordCount, chaXun);

            if (list != null)
            {
                for (int i = 0; i < 3; i++)
                {
                    if (list.Count > i && list[i] != null)
                    {
                        sb.AppendFormat("<a href=\"/Hangqi/HangQiList.aspx?xl={0}\">{1}</a>", list[i].XiLieId, list[i].MingCheng);
                    }
                }
                txtXiLie.Text            = sb.ToString();
                rptList_Xilie.DataSource = list;
                rptList_Xilie.DataBind();
            }
        }