void InitRX1() { var chaXun = new EyouSoft.Model.YlStructure.MHangQiChaXunInfo(); chaXun.IsYouXiao = true; chaXun.IsReXiao = true; chaXun.LeiXing = LeiXing; int recordCount = 0; var items = new EyouSoft.BLL.YlStructure.BHangQi().GetHangQis(YuMingInfo.CompanyId, 10, 1, ref recordCount, chaXun); StringBuilder s = new StringBuilder(); if (items != null && items.Count > 0) { int i = 1; foreach (var item in items) { s.AppendFormat("<li><em>{0}</em>", i); s.AppendFormat("<a href=\"{0}{1}.html\">{2}</a>", GetHqUrl(item.LeiXing), item.HangQiId, item.MingCheng); s.AppendFormat("<p>{0}/人起</p>", item.QiShiJiaGe.ToString("C2")); s.AppendFormat("</li>"); i++; } } RCWE(s.ToString()); }
/// <summary> /// get chaxun info /// </summary> /// <returns></returns> EyouSoft.Model.YlStructure.MHangQiChaXunInfo GetChaXunInfo() { var info = new EyouSoft.Model.YlStructure.MHangQiChaXunInfo(); info.LeiXing = (EyouSoft.Model.EnumType.YlStructure.YouLunLeiXing?)Utils.GetEnumValueNull(typeof(EyouSoft.Model.EnumType.YlStructure.YouLunLeiXing), Utils.GetQueryStringValue("txtLeiXing")); info.MingCheng = Utils.GetQueryStringValue("txtMingCheng"); info.BianHao = Utils.GetQueryStringValue("txtBianHao"); return(info); }
void InitRX() { var chaXun = new EyouSoft.Model.YlStructure.MHangQiChaXunInfo(); chaXun.IsYouXiao = true; chaXun.IsReXiao = true; chaXun.LeiXing = LeiXing; int recordCount = 0; var items = new EyouSoft.BLL.YlStructure.BHangQi().GetHangQis(YuMingInfo.CompanyId, 5, 1, ref recordCount, chaXun); if (items != null && items.Count > 0) { rptRX.DataSource = items; rptRX.DataBind(); } }
EyouSoft.Model.YlStructure.MHangQiChaXunInfo GetChaXunInfo() { var info = new EyouSoft.Model.YlStructure.MHangQiChaXunInfo(); info.IsYouXiao = true; info.LeiXing = LeiXing; string hx = Utils.GetQueryStringValue("hx"); info.HX = GetIntArr(hx); string xl = Utils.GetQueryStringValue("xl"); info.XL = GetStringArr(xl); string gs = Utils.GetQueryStringValue("gs"); info.GS = GetStringArr(gs); string gk = Utils.GetQueryStringValue("gk"); info.GK = GetIntArr(gk); string ts = Utils.GetQueryStringValue("ts"); info.TS = GetIntArr(ts); string jg = Utils.GetQueryStringValue("jg"); info.JG = GetIntArr(jg); string yf = Utils.GetQueryStringValue("yf"); info.YF = GetStringArr(yf); info.GuanJianZi = Server.UrlDecode(Utils.GetQueryStringValue("gjz")); string sj = Utils.GetQueryStringValue("sj"); info.RiQi1 = Utils.GetDateTimeNullable(sj); info.RiQi2 = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("sj1")); info.PaiXu = Utils.GetInt(Utils.GetQueryStringValue("px")); info.ChuanZhiId = Utils.GetQueryStringValue("cz"); return(info); }
/// <summary> /// 获取航期信息集合 /// </summary> /// <param name="companyId">公司编号</param> /// <param name="pageSize">页记录数</param> /// <param name="pageIndex">页序号</param> /// <param name="recordCount">总记录数</param> /// <param name="chaXun">查询</param> /// <returns></returns> public IList <EyouSoft.Model.YlStructure.MHangQiInfo> GetHangQis(string companyId, int pageSize, int pageIndex, ref int recordCount, EyouSoft.Model.YlStructure.MHangQiChaXunInfo chaXun) { if (string.IsNullOrEmpty(companyId)) { return(null); } return(dal.GetHangQis(companyId, pageSize, pageIndex, ref recordCount, chaXun)); }
protected void Page_Load(object sender, EventArgs e) { EyouSoft.Model.EnumType.YlStructure.YouLunLeiXing? _LeiXing = null; EyouSoft.Model.EnumType.YlStructure.WzZiXunLeiXing?_LeiXing1 = null; var info = new EyouSoft.BLL.YlStructure.BWz().GetZiXunInfo(Utils.GetQueryStringValue("s")); if (info != null) { ltr.Text = info.LeiXing.ToString(); ltr0.Text = info.BiaoTi; Title = info.BiaoTi; ltr1.Text = "发布时间:" + info.IssueTime.ToString("yyyy-MM-dd"); ltr2.Text = info.NeiRong; _LeiXing1 = info.LeiXing; } else if (Enum.IsDefined(typeof(Model.EnumType.YlStructure.WzZiXunLeiXing), Utils.GetInt(Utils.GetQueryStringValue("t")))) { _LeiXing1 = (Model.EnumType.YlStructure.WzZiXunLeiXing)Utils.GetInt(Utils.GetQueryStringValue("t")); } switch (_LeiXing1) { case EyouSoft.Model.EnumType.YlStructure.WzZiXunLeiXing.长江游轮攻略: case EyouSoft.Model.EnumType.YlStructure.WzZiXunLeiXing.长江游轮问题解答: _LeiXing = EyouSoft.Model.EnumType.YlStructure.YouLunLeiXing.长江游轮; break; case EyouSoft.Model.EnumType.YlStructure.WzZiXunLeiXing.海洋邮轮攻略: case EyouSoft.Model.EnumType.YlStructure.WzZiXunLeiXing.海洋邮轮问题解答: _LeiXing = EyouSoft.Model.EnumType.YlStructure.YouLunLeiXing.海洋邮轮; break; } if (_LeiXing1 == EyouSoft.Model.EnumType.YlStructure.WzZiXunLeiXing.长江游轮问题解答 || _LeiXing1 == EyouSoft.Model.EnumType.YlStructure.WzZiXunLeiXing.海洋邮轮问题解答) { ltr.Text = "问题解答"; ltr1.Visible = false; } if (_LeiXing1 == EyouSoft.Model.EnumType.YlStructure.WzZiXunLeiXing.长江游轮攻略) { ltr.Text = "游轮攻略"; ltr1.Visible = false; } if (_LeiXing1 == EyouSoft.Model.EnumType.YlStructure.WzZiXunLeiXing.海洋邮轮攻略) { ltr.Text = "邮轮攻略"; ltr1.Visible = false; } int recordCount = 0; pageIndex = UtilsCommons.GetPadingIndex(); var chaXun = new EyouSoft.Model.YlStructure.MWzZiXunChaXunInfo(); chaXun.LeiXing = _LeiXing1; var items = new EyouSoft.BLL.YlStructure.BWz().GetZiXuns(YuMingInfo.CompanyId, pageSize, pageIndex, ref recordCount, chaXun); if (items != null && items.Count > 0) { rpt.DataSource = items; rpt.DataBind(); RegisterScript(string.Format("pConfig.pageSize={0};pConfig.pageIndex={1};pConfig.recordCount={2};", pageSize, pageIndex, recordCount)); } var chaxun = new EyouSoft.Model.YlStructure.MHangQiChaXunInfo() { IsYouXiao = true, LeiXing = _LeiXing, BiaoQian = EyouSoft.Model.EnumType.YlStructure.HangQiBiaoQian.热门推荐 }; var list = new EyouSoft.BLL.YlStructure.BHangQi().GetHangQis(YuMingInfo.CompanyId, 3, 1, ref recordCount, chaxun); if (list != null) { rptHot.DataSource = list; rptHot.DataBind(); } }