protected void Page_Load(object sender, EventArgs e) { string method = Utils.GetFormValue("method"); tbMemId = "AddMemorandum" + Guid.NewGuid().ToString(); if (method == "save") { SaveMem(); return; } if (!IsPostBack) { string memId = Utils.GetString(Request.QueryString["MemId"], ""); hdeUppage.Value = Request.QueryString["UpPage"]; DataBindMemStateUrgle(); if (memId.Length > 0) //修改 { ShowMemoInfo(memId); } else { DateTime defaultdate = Utils.GetDateTime(Request.QueryString["DefaultDay"], DateTime.MinValue); DatePicker1.Value = defaultdate == DateTime.MinValue ? "" : defaultdate.ToString("yyyy-MM-dd"); } this.AddJavaScriptInclude(JsManage.GetJsFilePath("validatorform"), true, false); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { divApplSuss.Visible = false; if (StringValidate.SafeRequest(Request.QueryString["AddEShop"]) == "1") { AddEShop(); } InitCompanyInfo(); this.AddJavaScriptInclude(JsManage.GetJsFilePath("validatorform"), true, false); } }
protected void Page_Load(object sender, EventArgs e) { AddMetaTag("description", PageTitle.Plane_Des); AddMetaTag("keywords", PageTitle.Plane_Keywords); this.Page.Title = PageTitle.Plane_Title; this.AddStylesheetInclude(CssManage.GetCssFilePath("gouwu")); this.AddStylesheetInclude(CssManage.GetCssFilePath("jipiaostyle")); this.AddStylesheetInclude(CssManage.GetCssFilePath("body")); this.AddJavaScriptInclude(JsManage.GetJsFilePath("jquery"), false, false); //初始化 现有运价数 ,平台用户数 int freightCount = 0, platformUserCount = 0; EyouSoft.Model.SystemStructure.SummaryCount scount = EyouSoft.BLL.SystemStructure.SummaryCount.CreateInstance().GetSummary(); if (scount != null) { freightCount = scount.TicketFreightVirtual + scount.TicketFreight; platformUserCount = scount.User + scount.UserVirtual; } ltrFreightCount.Text = freightCount.ToString(); ltrPlatformUserCount.Text = platformUserCount.ToString(); if (!IsPostBack) { string newUrl = Utils.GetQueryStringValue("return"); if (newUrl == "PlaneListPage") { goToUrl = "/PlaneInfo/PlaneListPage.aspx"; } //供应商信息 BindTicketAgu(); //初始化 运价参考 列表 BindTicketInfo(); } //五张轮换广告 InitAdv(); }
protected override void OnInit(EventArgs e) { base.OnInit(e); EyouSoft.Common.Control.FrontPage page = this.Page as FrontPage; //判断用户是否登录 if (!page.IsLogin) { Response.Redirect("/AirTickets/Login.aspx", true); } page.AddStylesheetInclude(CssManage.GetCssFilePath("body")); page.AddStylesheetInclude(CssManage.GetCssFilePath("jipiaostyle")); page.AddJavaScriptInclude(JsManage.GetJsFilePath("jquery"), false, false); //根据用户的身份 初始化其对应的后台系统地址 ltrUserName.Text = page.SiteUserInfo.UserName; //根据当前用户所属的公司ID ,从公司信息中 获取 用户的登录次数和最后登录时间 EyouSoft.Model.CompanyStructure.CompanyDetailInfo companyInfo = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(page.SiteUserInfo.CompanyID); if (companyInfo != null) { ltrLoginCount.Text = companyInfo.StateMore.LoginCount.ToString(); ltrLastLoginTime.Text = companyInfo.StateMore.LastLoginTime.ToString("yyyy年MM月dd日HH点mm分");//格式2010年8月13日9点19分 } //判断当前用户身份,如果其是机票供应商,则显示 进入机票供应商后台 链接。 if (page.IsAirTicketSupplyUser)//是 { spanAirGongYinLink.Visible = true; } else//不是 { spanAirGongYinLink.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { //网店的点击量 EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().SetShopClickNum(this.CompanyId); #region 根据用户选择网店模板,初始化,默认选择style1.css int styleIndex = 1; if (_highCompanyInfo != null) { styleIndex = _highCompanyInfo.TemplateId; if (_highCompanyInfo.TemplateId < 1 || _highCompanyInfo.TemplateId > 4) { styleIndex = 1; } } string styleName = string.Format("style{0}", styleIndex); FrontPage basepage = this.Page as FrontPage; basepage.AddStylesheetInclude(CssManage.GetCssFilePath(styleName)); #endregion //初始化ImageServerUrl ImageServerUrl = basepage.ImageServerUrl; //初始化页面标题,公司名称 string companyName = _detailCompanyInfo.CompanyName; //this.Page.Title = string.Format("{0}_{1}",this.Page.Title,companyName); if (this.Page.Title.Equals(string.Empty) || this.Page.Title.Equals("首页")) { this.Page.Title = string.Format("{0}", companyName); } else { this.Page.Title = string.Format("{0}_{1}", this.Page.Title, companyName); } //EyouSoft.Model.SystemStructure.SysProvince provinceModel = EyouSoft.BLL.SystemStructure.SysProvince.CreateInstance().GetProvinceModel(_detailCompanyInfo.ProvinceId); //EyouSoft.Model.SystemStructure.SysCity cityModel = EyouSoft.BLL.SystemStructure.SysCity.CreateInstance().GetSysCityModel(_detailCompanyInfo.CityId); //this.Page.Title = string.Format("{1}", this.Page.Title, companyName); //HtmlMeta meta = new HtmlMeta(); //meta.Name = "description"; //meta.Content = string.Format(EyouSoft.Common.PageTitle.SeniorShop_Des, companyName, provinceModel.ProvinceName + cityModel.CityName, "3"); //Page.Header.Controls.Add(meta); #region 页面顶部初始化 //用户是否登录 //noLogin.Visible = true; //isLogin.Visible = false; //顶部菜单链接初始化 #endregion //高级网店头部图片javascript:void(0) BannerImage = Utils.GetEShopImgOrFalash(_detailCompanyInfo.AttachInfo.CompanyShopBanner.ImagePath, "javascript:void(0)"); //Utils.GetLineShopImgPath( _detailCompanyInfo.AttachInfo.CompanyLogo.ImagePath,2); //imgLogo.Src = companyLogoSrc; //linkLogo.HRef = Utils.GenerateShopPageUrl("/seniorshop/Default.aspx", _CompanyId); //公司名称初始化 //ltrCompanyName.Text = companyName; //营业执照号初始化 //ltrNum.Text = _detailCompanyInfo.License; #region 初始化导航栏 string navOnCss = "nav-on"; string currentUrl = Request.Url.ToString(); //根据当前访问的Url,高亮访问的url对应的导航链接 if (currentUrl.IndexOf("seniorshop/default", StringComparison.OrdinalIgnoreCase) != -1) { linkHome.Attributes["class"] = navOnCss; } else if (currentUrl.IndexOf("seniorshop/tourlist", StringComparison.OrdinalIgnoreCase) != -1) { linkTourList.Attributes["class"] = navOnCss; } else if (currentUrl.IndexOf("seniorshop/TourDetail", StringComparison.OrdinalIgnoreCase) != -1) { linkTourList.Attributes["class"] = navOnCss; } else if (currentUrl.IndexOf("seniorshop/ziyuan", StringComparison.OrdinalIgnoreCase) != -1) { linkZiYuan.Attributes["class"] = navOnCss; } else if (currentUrl.IndexOf("seniorshop/mudidi", StringComparison.OrdinalIgnoreCase) != -1) { linkMudidi.Attributes["class"] = navOnCss; } else if (currentUrl.IndexOf("seniorshop/newslist", StringComparison.OrdinalIgnoreCase) != -1) { linkNews.Attributes["class"] = navOnCss; } else if (currentUrl.IndexOf("seniorshop/new", StringComparison.OrdinalIgnoreCase) != -1) { linkNews.Attributes["class"] = navOnCss; } else if (currentUrl.IndexOf("seniorshop/noticelist", StringComparison.OrdinalIgnoreCase) != -1) { linkNotice.Attributes["class"] = navOnCss; } else if (currentUrl.IndexOf("seniorshop/aboutus", StringComparison.OrdinalIgnoreCase) != -1) { linkAboutUs.Attributes["class"] = navOnCss; } //初始化导航链接 linkHome.HRef = Utils.GenerateShopPageUrl2(this.TABLINKS_SY, _CompanyId); linkTourList.HRef = Utils.GenerateShopPageUrl2("/TourList", _CompanyId);; linkZiYuan.HRef = Utils.GenerateShopPageUrl2("/ziyuan", _CompanyId); linkMudidi.HRef = Utils.GenerateShopPageUrl2("/mudidis", _CompanyId); linkNews.HRef = Utils.GenerateShopPageUrl2("/newslist", _CompanyId); linkNotice.HRef = Utils.GenerateShopPageUrl2("/noticelist", _CompanyId); linkAboutUs.HRef = Utils.GenerateShopPageUrl2("/aboutus", _CompanyId); #endregion #region 公司档案初始化 if (basepage.IsLogin) { phLogin.Visible = true; phNoLogin.Visible = false; ltrUserName.Text = basepage.SiteUserInfo.UserName; linkLogout.HRef = Utils.GetLogoutUrl(linkHome.HRef); } else { phLogin.Visible = false; phNoLogin.Visible = true; basepage.AddJavaScriptInclude(JsManage.GetJsFilePath("blogin"), false, false); this.Page.RegisterClientScriptBlock("blogininit", "<script>;blogin.ssologinurl='" + EyouSoft.Common.Domain.PassportCenter + "';</script>"); btnLogin.Attributes["onclick"] = "$('#errSpan').html('');blogin(document.getElementById('aspnetForm'),'','" + linkHome.HRef + "',function(m){$('#errSpan').html(m);});return false;"; } //注册链接初始化 linkUserReg.HRef = Domain.UserPublicCenter + "/Register/CompanyUserRegister.aspx"; //初始化公司品牌名称 CompanyBrandName = _detailCompanyInfo.CompanyBrand;//"公司品牌名称"; //出港城市初始化 //ltrDepartureCity.Text = "出港城市"; //联系人初始化 ltrContactPeople.Text = _detailCompanyInfo.ContactInfo.ContactName;//"联系人"; //MQ点击初始化 MQLink = Utils.GetMQ(_detailCompanyInfo.ContactInfo.MQ); //手机初始化 ltrMobile.Text = _detailCompanyInfo.ContactInfo.Mobile; //电话初始化 ltrTelPhone.Text = _detailCompanyInfo.ContactInfo.Tel; //传真初始化 ltrFax.Text = _detailCompanyInfo.ContactInfo.Fax; //地址初始化 ltrAddress.Text = _detailCompanyInfo.CompanyAddress; //会员信用信息初始化 //是否已发布服务承诺 //ltrChengNuo.Text = @"<img src='"+ImageServerUrl+"/images/seniorshop/Commitico16.gif' /><span class='hui'>已发布承诺书,查看详细</span>"; ////信用指数 //XinYongZhiShu = "信用60分"; ////活跃指数 //HuoYueZhiShu = "活跃60fen"; ////推荐指数 //TuiJianZhiShu = "推荐60分"; #endregion //企业名片初始化 imgMingPian.Src = Utils.GetLineShopImgPath(_detailCompanyInfo.AttachInfo.CompanyCard.ImagePath, 1);//string.Format("{0}/images/seniorshop/mingpian.gif",ImageServerUrl); //友情链接初始化 //HighShopFriendLink..::.GetList rptFriendLinks.DataSource = EyouSoft.BLL.ShopStructure.HighShopFriendLink.CreateInstance().GetList(_CompanyId); rptFriendLinks.DataBind(); //页脚初始化 ltrCopyRight.Text = _highCompanyInfo != null?_highCompanyInfo.ShopCopyRight:""; }
protected void Page_Load(object sender, EventArgs e) { Page.ClientScript.RegisterClientScriptInclude(Page.GetType(), "GetCityList", JsManage.GetJsFilePath("GetCityList")); MessageBox.ResponseScript(this.Page, "BindProvinceList('" + this.ddl_ProvinceList.ClientID + "');"); BindProvince(); //BindCity(); if (!IsPostBack) { /* 默认选中项 */ if (SetProvinceId > 0) { this.Page.ClientScript.RegisterStartupScript(this.GetType(), Guid.NewGuid().ToString(), "SetProvince(" + SetProvinceId + ");ChangeList('" + this.ddl_CityList.ClientID + "'," + SetProvinceId + ");", true); if (SetCityId > 0) { this.Page.ClientScript.RegisterStartupScript(this.GetType(), Guid.NewGuid().ToString(), "SetCity(" + SetCityId + ");", true); } } if (IsShowRequired) { this.Page.ClientScript.RegisterStartupScript(this.GetType(), Guid.NewGuid().ToString(), "$('#ProvinceRequired').show();$('#CityRequired').show()", true); } } }
/// <summary> /// 初始化网店头部 企业名片 登录块 版权 /// </summary> private void InitInfo() { //Head if (this.CompanyInfo.AttachInfo.CompanyShopBanner.BannerType == EyouSoft.Model.CompanyStructure.ShopBannerType.Default) { this.phDefaultHead.Visible = true; this.imgHeadLogo.Src = Domain.FileSystem + this.CompanyInfo.AttachInfo.CompanyShopBanner.CompanyLogo; this.ltrHeadLogoName.Text = this.CompanyInfo.CompanyName; this.STYHeadBanner = "background:url('" + Domain.FileSystem + this.CompanyInfo.AttachInfo.CompanyShopBanner.BannerBackground + "');background-repeat:no-repeat;"; } else { this.phPersonalizeHead.Visible = true; this.ltrPersonalizeHead.Text = Utils.GetEShopImgOrFalash(this.CompanyInfo.AttachInfo.CompanyShopBanner.ImagePath, "javascript:void(0)"); } //当前的TAB switch (this.CTAB) { case T4TAB.出游指南: this.lnkCYZN.Attributes.Add("class", "nav-on"); break; case T4TAB.机票预定: this.lnkJPYD.Attributes.Add("class", "nav-on"); break; case T4TAB.酒店预定: this.lnkJDYD.Attributes.Add("class", "nav-on"); break; case T4TAB.散拼计划: this.lnkSPJH.Attributes.Add("class", "nav-on"); break; case T4TAB.团队定制: this.lnkTDDZ.Attributes.Add("class", "nav-on"); break; default: this.lnkSY.Attributes.Add("class", "nav-on"); break; } //TAB链接 this.lnkSY.HRef = this.lnkSY1.HRef = Utils.GenerateShopPageUrl2(this.TABLINKS_SY, this.CompanyId); this.lnkSPJH.HRef = this.lnkSPJH1.HRef = Utils.GenerateShopPageUrl2(TABLINKS_SPJH, this.CompanyId); this.lnkTDDZ.HRef = this.lnkTDDZ1.HRef = Utils.GenerateShopPageUrl2(TABLINKS_TDDZ, this.CompanyId); this.lnkCYZN.HRef = this.lnkCYZN1.HRef = Utils.GenerateShopPageUrl2(TABLINKS_CYZN, this.CompanyId); this.lnkJPYD.HRef = this.lnkJPYD1.HRef = Utils.GenerateShopPageUrl2(TABLINKS_JPYD, this.CompanyId); this.lnkJDYD.HRef = this.lnkJDYD1.HRef = Utils.GenerateShopPageUrl2(TABLINKS_JDYD, this.CompanyId); this.lnkGYWM1.HRef = Utils.GenerateShopPageUrl2(TABLINKS_GYWM, this.CompanyId); //企业名片 this.ltrCompanyBrandName.Text = this.CompanyInfo.CompanyBrand; this.ltrContactName.Text = this.CompanyInfo.ContactInfo.ContactName + " " + Utils.GetBigImgMQ(this.CompanyInfo.ContactInfo.MQ); this.ltrContactMobile.Text = this.CompanyInfo.ContactInfo.Mobile; this.ltrContactTelephone.Text = this.CompanyInfo.ContactInfo.Tel; this.ltrContactFax.Text = this.CompanyInfo.ContactInfo.Fax; this.ltrContactAddress.Text = this.CompanyInfo.CompanyAddress; this.imgCompanyCard.Src = Utils.GetLineShopImgPath(this.CompanyInfo.AttachInfo.CompanyCard.ImagePath, 1); FrontPage basepage = this.Page as FrontPage; //登录块 if (basepage.IsLogin) { phLogin.Visible = true; phNoLogin.Visible = false; ltrUserName.Text = basepage.SiteUserInfo.UserName; linkLogout.HRef = Utils.GetLogoutUrl(Utils.GenerateShopPageUrl2("/default", this.CompanyId)); } else { phLogin.Visible = false; phNoLogin.Visible = true; basepage.AddJavaScriptInclude(JsManage.GetJsFilePath("blogin"), false, false); this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(), Guid.NewGuid().ToString(), ";blogin.ssologinurl='" + EyouSoft.Common.Domain.PassportCenter + "';", true); btnLogin.Attributes["onclick"] = "$('#errSpan').html('');blogin(document.getElementById('aspnetForm'),'','" + Utils.GenerateShopPageUrl2(TABLINKS_SY, this.CompanyId) + "',function(m){$('#errSpan').html(m);});return false;"; } //版权 this.ltrCopyRight.Text = this.CompanyEShopInfo.ShopCopyRight; }
protected void Page_Load(object sender, EventArgs e) { #region 权限判断 //查询 //判断是否有【景区_景区管理栏目管理】权限,如果没有改权限,则不能查看改页面 //if (!this.CheckMasterGrant(YuYingPermission.景区_景区管理栏目管理)) //{ // Utils.ResponseNoPermit(YuYingPermission.景区_景区管理栏目管理, true); // return; //} //IsUpdateGant = CheckMasterGrant(YuYingPermission.景区_景区管理栏目修改); //IsDeleteGant = CheckMasterGrant(YuYingPermission.景区_景区管理栏目删除); //IsAddGant = CheckMasterGrant(YuYingPermission.景区_景区管理栏目新增); #endregion //初始化枚举绑定 BindEnum(); Page.ClientScript.RegisterClientScriptInclude(Page.GetType(), "GetCityList", JsManage.GetJsFilePath("GetCityList")); MessageBox.ResponseScript(this.Page, "BindProvinceList('" + this.ddl_ProvinceList.ClientID + "');"); BindProvince(); //BindCity(); /* 默认选中项 */ if (SetProvinceId > 0) { this.Page.ClientScript.RegisterStartupScript(this.GetType(), Guid.NewGuid().ToString(), "SetProvince(" + SetProvinceId + ");ChangeList('" + this.ddl_CityList.ClientID + "'," + this.ddl_CountyList.ClientID + "," + SetProvinceId + ");", true); if (SetCityId > 0) { this.Page.ClientScript.RegisterStartupScript(this.GetType(), Guid.NewGuid().ToString(), "SetCity(" + SetCityId + ");ChangeCountyList('" + SetCountyId + "','" + this.ddl_CityList.ClientID + "','" + this.ddl_ProvinceList.ClientID + "')", true); if (SetCountyId > 0) { this.Page.ClientScript.RegisterStartupScript(this.GetType(), Guid.NewGuid().ToString(), "SetCounty(" + SetCountyId + ");", true); } } } if (IsShowRequired) { this.Page.ClientScript.RegisterStartupScript(this.GetType(), Guid.NewGuid().ToString(), "$('#ProvinceRequired').show();$('#CityRequired').show();$('#CountyRequired').show()", true); } if (!IsPostBack) { intoData(); } }
protected void Page_Load(object sender, EventArgs e) { Page.ClientScript.RegisterClientScriptInclude(Page.GetType(), "GetCityList", JsManage.GetJsFilePath("GetCityList")); MessageBox.ResponseScript(this.Page, "BindProvinceList('" + this.ddl_ProvinceList.ClientID + "');BindProvinceCheckboxList('SaleProvince');"); //MessageBox.ResponseScript(this.Page,"BindProvinceCheckboxList('SaleProvince');"); BindProvince(); //BindCity(); if (!IsPostBack) { /* 默认选中项 */ if (SetProvinceId > 0) { this.Page.ClientScript.RegisterStartupScript(this.GetType(), Guid.NewGuid().ToString(), "SetProvince(" + SetProvinceId + ");ChangeList('" + this.ddl_CityList.ClientID + "'," + SetProvinceId + ");", true); if (SetCityId > 0) { this.Page.ClientScript.RegisterStartupScript(this.GetType(), Guid.NewGuid().ToString(), "SetCity(" + SetCityId + ");", true); } } if (IsShowRequired) { this.Page.ClientScript.RegisterStartupScript(this.GetType(), Guid.NewGuid().ToString(), "$('#ProvinceRequired').show();$('#CityRequired').show()", true); } } IsYkApplay = Request.QueryString["IsYkApplay"]; if (!string.IsNullOrEmpty(IsYkApplay)) { if (IsLogin && (IsYkApplay == "1" || IsYkApplay == "2")) { if (SiteUserInfo.CompanyRole.HasRole(EyouSoft.Model.CompanyStructure.CompanyType.随便逛逛))//随便逛逛 { UserName = SiteUserInfo.UserName; Email = SiteUserInfo.ContactInfo.Email; Mobile = SiteUserInfo.ContactInfo.Mobile; TureName = SiteUserInfo.ContactInfo.ContactName; } else //不是随便逛逛用户跳转到企业完善信息页 { Response.Redirect("~/Default.aspx"); } } else { Response.Redirect("Login.aspx"); } } else { if (Request.QueryString["type"] != null) { string type = Request.QueryString["type"].ToString(); //注册 if (type.Equals("add", StringComparison.OrdinalIgnoreCase)) { Response.Clear(); Response.Write(RegisterCompany(null)); Response.End(); } //随便逛逛用户申请 if (type.Equals("update", StringComparison.OrdinalIgnoreCase)) { Response.Clear(); Response.Write(RegisterCompany(SiteUserInfo.CompanyID)); Response.End(); } //获的省份下的销售城市 else if (type.Equals("GetSaleCity", StringComparison.OrdinalIgnoreCase)) { Response.Clear(); Response.Write(GetSaleCity()); Response.End(); } //获的省份/城市下的线路区域 else if (type.Equals("GetTourArea", StringComparison.OrdinalIgnoreCase)) { Response.Clear(); Response.Write(GetTourAreaList()); Response.End(); } } } }
protected void Page_Load(object sender, EventArgs e) { string titleInfo = ""; string url = ""; string url2 = ""; if (Utils.GetFormValue("method") == "save") //航班折扣申请 { SavePlaneInfo(); return; } if (!string.IsNullOrEmpty(Utils.InputText(Request.QueryString["TypeID"]))) { TypeID = Utils.GetInt(Request.QueryString["TypeID"]); if (!string.IsNullOrEmpty(Utils.InputText(Request.QueryString["NewsID"]))) { NewsID = Utils.GetInt(Request.QueryString["NewsID"]); //实例化类的对象,更新浏览次数 EyouSoft.BLL.SystemStructure.Affiche.CreateInstance().UpdateReadCount(NewsID); //绑定数据 BindListInfo(); } else { EyouSoft.Common.Function.MessageBox.ShowAndRedirect(this.Page, "暂无该新闻信息!", "PlaneListPage.aspx?CityId=" + CityId); return; } url = Utils.GeneratePublicCenterUrl("PlaneListPage.aspx", CityId); switch (TypeID) { case 0: titleName += "_运价参考"; url2 = Utils.GeneratePublicCenterUrl("PlaneNewsList.aspx?TypeID=0", CityId); titleInfo = string.Format("<a href=\"{0}\">机票首页</a> <a href=\"{1}\"> >运价参考</a> >正文", url, url2); #region 加载航班折扣申请用到的js,css,控件 this.AddStylesheetInclude(CssManage.GetCssFilePath("boxy")); this.AddJavaScriptInclude(JsManage.GetJsFilePath("boxy"), true, false); this.AddJavaScriptInclude(JsManage.GetJsFilePath("validatorform"), true, false); divPlaneAppl.Visible = true; #endregion break; case 1: titleName += "_帮助信息"; url2 = Utils.GeneratePublicCenterUrl("PlaneNewsList.aspx?TypeID=1", CityId); titleInfo = string.Format("<a href=\"{0}\">机票首页</a> <a href=\"{1}\"> >帮助信息</a> >正文", url, url2); break; default: titleName += "_合作供应商"; url2 = Utils.GeneratePublicCenterUrl("PlaneNewsList.aspx?TypeID=2", CityId); titleInfo = string.Format("<a href=\"{0}\">机票首页</a> <a href=\"{1}\"> >合作供应商</a> >正文", url, url2); break; } this.div_Title.InnerHtml = titleInfo; this.CityAndMenu1.HeadMenuIndex = 3; this.Page.Title = titleName; this.hidNewId.Value = NewsID.ToString(); //文章ID (用于机票) this.hidTitle.Value = titleName; } else { //广告连接过来 if (!string.IsNullOrEmpty(Utils.InputText(Request.QueryString["NewsID"]))) { int advID = Utils.GetInt(Request.QueryString["NewsID"]); EyouSoft.Model.AdvStructure.AdvInfo advModel = EyouSoft.BLL.AdvStructure.Adv.CreateInstance().GetAdvInfo(advID); if (advModel != null) { //初始化信息:时间,标题,内容 this.lbl_Time.Text = advModel.IssueTime.ToString("yyyy年MM月dd日 hh:mm"); this.lbl_Title.Text = advModel.Title; this.lit_Content.Text = advModel.Remark; this.divShow.Visible = false; this.Page.Title = advModel.Title; this.hidNewId.Value = advID.ToString(); //文章ID (用于机票) this.hidTitle.Value = advModel.Title; } advModel = null; } else { EyouSoft.Common.Function.MessageBox.ShowAndRedirect(this.Page, "暂无该广告信息!", "/Default.aspx?CityId=" + CityId); return; } } }
protected void Page_Load(object sender, EventArgs e) { EditId = Request.QueryString["EditId"]; CompanyId = this.SiteUserInfo.CompanyID; if (!IsPostBack) { Page.ClientScript.RegisterClientScriptInclude(Page.GetType(), "GetCityList", JsManage.GetJsFilePath("GetCityList")); initPage(); if (!IsLogin) { EyouSoft.Security.Membership.UserProvider.RedirectLogin(Domain.UserBackCenter + "/Default.aspx"); } if (EditId != null) { //页面赋值 GetSceniceInfo(); SceniceId = EditId.ToString(); } else { BindThemecheck(); } } string type = Utils.GetQueryStringValue("type"); int argument = Utils.GetInt(Utils.GetQueryStringValue("arg")); if (type == "BinLankId" && argument != 0) { Response.Clear(); Response.Write(GetLandMark(argument)); Response.End(); } }
protected void Page_Load(object sender, EventArgs e) { Page.ClientScript.RegisterClientScriptInclude(Page.GetType(), "GetCityList", JsManage.GetJsFilePath("GetCityList")); MessageBox.ResponseScript(this.Page, "BindProvinceList('" + this.drpProvinceID.ClientID + "');"); this.drpProvinceID.Attributes.Add("onchange", "ChangeList('" + this.drpCity.ClientID + "',this.options[this.selectedIndex].value);"); if (!Page.IsPostBack) { //InitAreaList(); if (DefaultProvinceID > 0) { this.Page.ClientScript.RegisterStartupScript(Page.GetType(), Guid.NewGuid().ToString(), "SetProvince(" + DefaultProvinceID + ");ChangeList('" + this.drpCity.ClientID + "'," + DefaultProvinceID + ");", true); if (DefaultCityID > 0) { this.Page.ClientScript.RegisterStartupScript(Page.GetType(), Guid.NewGuid().ToString(), "SetCity(" + DefaultCityID + "," + DefaultProvinceID + ");", true); if (DefaultAreaID > 0) { this.Page.ClientScript.RegisterStartupScript(Page.GetType(), Guid.NewGuid().ToString(), "SetArea(" + DefaultAreaID + ");", true); } } } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { GetUnionLogo(); InitCompanyInfo(); FrontPage basepage = this.Page as FrontPage; basepage.AddJavaScriptInclude(JsManage.GetJsFilePath("jquery"), false, false); basepage.AddStylesheetInclude(CssManage.GetCssFilePath("gouwu")); basepage.AddStylesheetInclude(CssManage.GetCssFilePath("body")); GetCity(); CityId = (this.Page as EyouSoft.Common.Control.FrontPage).CityId; IsSiteExtend = EyouSoft.BLL.AdvStructure.SiteExtend.CreateInstance().IsExtendSite(CityId); BindNotice(); //公告 BindNum(); //采购商、供应商、供需数量 GetUnionLogo(); //联盟logo this.GetHotCitys(); //热门城市 switch (HeadMenuIndex) { case 1: menu1.Attributes["class"] = "select"; break; case 2: menu2.Attributes["class"] = "select"; break; case 3: menu3.Attributes["class"] = "select"; break; case 4: menu4.Attributes["class"] = "select"; break; case 5: menu5.Attributes["class"] = "select"; break; case 6: menu6.Attributes["class"] = "select"; break; case 7: menu7.Attributes["class"] = "select"; break; default: menu1.Attributes["class"] = "select"; break; } menu1.HRef = SubStation.CityUrlRewrite(CityId); menu2.HRef = Tour.GetXianLuUrl(CityId); //menu3.HRef = Plane.PlaneDefaultUrl(CityId); menu4.HRef = Hotel.GetHotelBannerUrl(CityId); menu5.HRef = ScenicSpot.ScenicDefalutUrl(CityId); menu6.HRef = EyouSoft.Common.URLREWRITE.SupplierInfo.InfoDefaultUrlWrite(CityId); menu7.HRef = Infomation.InfoDefaultUrlWrite(); } }
protected void Page_Load(object sender, EventArgs e) { long.TryParse(Utils.GetQueryStringValue("Id"), out Id); IsorNoLogin = IsLogin; Page.ClientScript.RegisterClientScriptInclude(Page.GetType(), "GetCityList", JsManage.GetJsFilePath("GetCityList")); MessageBox.ResponseScript(this.Page, "BindProvinceList('" + this.ddl_ProvinceList.ClientID + "');"); BindProvince(); GoogleMapKey = Utils.GetGoogleMapKeyByXml(); if (!IsPostBack) { ScenicAdvBannerSecond(); GetScenicModel(); this.ViewRightControl1.Cid = ScenicModel.CityId; this.CityAndMenu1.HeadMenuIndex = 5; /* 默认省份选中项 */ if (SetProvinceId > 0) { this.Page.ClientScript.RegisterStartupScript(this.GetType(), Guid.NewGuid().ToString(), "SetProvince(" + SetProvinceId + ");ChangeList('" + this.ddl_CityList.ClientID + "'," + SetProvinceId + ");", true); if (SetCityId > 0) { this.Page.ClientScript.RegisterStartupScript(this.GetType(), Guid.NewGuid().ToString(), "SetCity(" + SetCityId + ");", true); } } if (IsShowRequired) { this.Page.ClientScript.RegisterStartupScript(this.GetType(), Guid.NewGuid().ToString(), "$('#ProvinceRequired').show();$('#CityRequired').show()", true); } strb = new StringBuilder(""); #region 获取城市景区 if (ScenicModel != null) { var listcity = EyouSoft.BLL.SystemStructure.SysCity.CreateInstance().GetCityList().Where(r => r.ProvinceId == ScenicModel.ProvinceId); foreach (var item in listcity) { if (item.CityId == ScenicModel.CityId) { strb.Append("<li class=\"dangqian\">" + item.CityName + "旅游景点</a></li>"); } else { strb.Append("<li><a href=\"/ScenicManage/ScenicList.aspx?cid=" + item.CityId + "\">" + item.CityName + "旅游景点</a></li>"); } } } #endregion } }
protected void Page_Load(object sender, EventArgs e) { Page.ClientScript.RegisterClientScriptInclude(Page.GetType(), "GetCityList", JsManage.GetJsFilePath("GetCityList")); MessageBox.ResponseScript(this.Page, "BindProvinceList('" + this.ddl_ProvinceList.ClientID + "');"); BindProvince(); GoogleMapKey = EyouSoft.Common.ConfigModel.ConfigClass.GetConfigString("appSettings", "GoogleMapsAPIKEY"); if (!IsPostBack) { ScenicAdvBannerSecond(); GetScenicModel(); this.ViewRightControl1.Cid = ScenicModel.CityId; this.CityAndMenu1.HeadMenuIndex = 5; /* 默认省份选中项 */ if (SetProvinceId > 0) { this.Page.ClientScript.RegisterStartupScript(this.GetType(), Guid.NewGuid().ToString(), "SetProvince(" + SetProvinceId + ");ChangeList('" + this.ddl_CityList.ClientID + "'," + SetProvinceId + ");", true); if (SetCityId > 0) { this.Page.ClientScript.RegisterStartupScript(this.GetType(), Guid.NewGuid().ToString(), "SetCity(" + SetCityId + ");", true); } } if (IsShowRequired) { this.Page.ClientScript.RegisterStartupScript(this.GetType(), Guid.NewGuid().ToString(), "$('#ProvinceRequired').show();$('#CityRequired').show()", true); } } //添加点击量 EyouSoft.BLL.ScenicStructure.BScenicArea.CreateInstance().UpdateClickNum(scenicId); }
protected bool IslevImg = false; //是否显示公司等级图标 protected void Page_Load(object sender, EventArgs e) { Page.ClientScript.RegisterClientScriptInclude(Page.GetType(), "GetCityList", JsManage.GetJsFilePath("GetCityList")); MessageBox.ResponseScript(this.Page, "BindProvinceList('" + this.ddl_ProvinceList.ClientID + "')"); //绑定省份 BindProvince(); //绑定单位类型 GetCompanyType(); if (!IsPostBack) { (this.Master as UserPublicCenter.MasterPage.NewPublicCenter).HeadMenuIndex = 1;//设置导航条 Initialize(); this.Title = provinceName + "旅行社大全_" + provinceName + "地接社_" + provinceName + "组团社_" + provinceName + "专线_旅游企业大全_同业114同行频道"; } }