protected void Page_Load(object sender, EventArgs e) { cityBll = EyouSoft.BLL.SystemStructure.SysCity.CreateInstance(); provinceBll = EyouSoft.BLL.SystemStructure.SysProvince.CreateInstance(); //获取当前页 pageIndex = Utils.GetInt(Request.QueryString["Page"], 1); //获取查询条件 int province = Utils.GetInt(Utils.GetQueryStringValue("province")); int city = Utils.GetInt(Utils.GetQueryStringValue("city")); string companyName = Utils.InputText(Server.UrlDecode(Request.QueryString["companyname"] ?? "")).Trim(); string admin = Utils.InputText(Server.UrlDecode(Request.QueryString["admin"] ?? "")).Trim(); string myCompanyId = SiteUserInfo.CompanyID; EyouSoft.Model.CompanyStructure.QueryParamsCompany query = new EyouSoft.Model.CompanyStructure.QueryParamsCompany(); query.CityId = city; query.PorvinceId = province; query.CompanyName = companyName; query.ContactName = admin; //绑定我的客户 IList <EyouSoft.Model.CompanyStructure.MyCustomer> myCustomerList = EyouSoft.BLL.CompanyStructure.MyCustomer.CreateInstance().GetList(myCompanyId, query, pageSize, pageIndex, ref recordCount); if (myCustomerList != null && myCustomerList.Count > 0) { asc_rptCustomerList.DataSource = myCustomerList; asc_rptCustomerList.DataBind(); BindPage(); } else { asc_rptCustomerList.EmptyText = "暂无客户信息"; this.ExportPageInfo1.Visible = false; } }
/// <summary> /// 初始化所有的出港城市 /// </summary> /// <returns></returns> private void InitLeaveCity() { StringBuilder str = new StringBuilder(); EyouSoft.IBLL.SystemStructure.ISysCity bll = EyouSoft.BLL.SystemStructure.SysCity.CreateInstance(); IList <EyouSoft.Model.SystemStructure.SysCity> list = bll.GetCityList(); if (list != null && list.Count > 0) { IList <EyouSoft.Model.SystemStructure.SysCity> listProvince = new List <EyouSoft.Model.SystemStructure.SysCity>(); Hashtable hashP = new Hashtable(); foreach (EyouSoft.Model.SystemStructure.SysCity model in list) { if (model.IsSite && model.IsEnabled) { if (!hashP.Contains(model.ProvinceId)) { hashP.Add(model.ProvinceId, model); listProvince.Add(model); } } } if (listProvince != null && listProvince.Count > 0) { this.rptProvinceID.DataSource = listProvince; this.rptProvinceID.DataBind(); } listProvince = null; } list = null; bll = null; }
protected void LoadUserInfo(int userId) { EyouSoft.Model.SystemStructure.SystemUser userModel = userBll.GetSystemUserModel(userId); us_txtFax.Value = userModel.ContactFax; us_txtMoible.Value = userModel.ContactMobile; us_txtRealName.Value = userModel.ContactName; us_txtTel.Value = userModel.ContactTel; us_txtUserName1.Value = userModel.UserName; us_txtUserName1.Attributes.Add("readonly", "readonly"); userPermitList = userModel.PermissionList;//账户权限 userTypes = userModel.CustomerTypeIds; //获取账户负责区域列表 EyouSoft.IBLL.SystemStructure.ISysCity cityBll = EyouSoft.BLL.SystemStructure.SysCity.CreateInstance(); StringBuilder areaBuilder = new StringBuilder(); if (userModel.AreaId != null) { foreach (int areaId in userModel.AreaId) { EyouSoft.Model.SystemStructure.SysCity cityModel = cityBll.GetSysCityModel(areaId); areaBuilder.Append(string.Format("<input type='checkbox' checked='checked' id='ckSale_{0}' name='ckSellCity' value='{0}' /><label for='ckSale_{0}'>{1}</label>", areaId.ToString(), cityModel != null ? cityModel.CityName : "暂无")); } } areaHTML = areaBuilder.ToString(); //绑定类别 }
protected void LoadRouteOrder(string tourId) { tourModel = tourBll.GetTourInfo(tourId); if (tourModel != null) { //是否隐藏下订单按钮 if (tourBll.IsDeleted(tourId)) { Page.ClientScript.RegisterClientScriptBlock(this.GetType(), Guid.NewGuid().ToString(), "<script>;alert('该团队不存在!');if(window.parent.Boxy.getIframeDialog){window.parent.Boxy.getIframeDialog('" + Request.QueryString["iframeId"] + "').hide();}else{window.close();}</script>"); return; } if (tourModel.TourState == EyouSoft.Model.TourStructure.TourState.收客 && tourModel.RemnantNumber > 0) { ro_SaveOrder.Visible = true; } else if (tourModel.TourState != EyouSoft.Model.TourStructure.TourState.收客) { Page.ClientScript.RegisterClientScriptBlock(this.GetType(), Guid.NewGuid().ToString(), "<script>;alert('该团队已停收!');</script>"); } else if (tourModel.RemnantNumber == 0) { Page.ClientScript.RegisterClientScriptBlock(this.GetType(), Guid.NewGuid().ToString(), "<script>;alert('该团队人数已满!');</script>"); } parentId = tourModel.ParentTourID;//获取模板团编号 } else { Page.ClientScript.RegisterClientScriptBlock(this.GetType(), Guid.NewGuid().ToString(), "<script>;alert('该团队不存在!');if(window.parent.Boxy.getIframeDialog){window.parent.Boxy.getIframeDialog('" + Request.QueryString["iframeId"] + "').hide();}else{window.close();}</script>"); return; } routeName = tourModel.RouteName;//线路名称 startDate = tourModel.LeaveDate.ToString("yyyy-MM-dd"); weekDay = EyouSoft.Common.Utils.ConvertWeekDayToChinese(tourModel.LeaveDate); remain = tourModel.RemnantNumber; //剩余人数 company = tourModel.CompanyName; //公司名称 contant = tourModel.TourContact; //团队负责人 tel = tourModel.TourContactTel; MQ = tourModel.TourContacMQ; int cityId = tourModel.LeaveCity;//出港城市ID ro_traffic.Value = tourModel.LeaveTraffic; EyouSoft.Model.SystemStructure.SysCity cityModel = EyouSoft.BLL.SystemStructure.SysCity.CreateInstance().GetSysCityModel(cityId); if (cityModel != null) { leaveCity = cityModel.CityName;//获取出港城市名 } //绑定报价类型 leaveCity EyouSoft.IBLL.SystemStructure.ISysCity cityBll = EyouSoft.BLL.SystemStructure.SysCity.CreateInstance(); ro_rpt_priceList.DataSource = tourModel.TourPriceDetail; ro_rpt_priceList.DataBind(); }
/// <summary> /// 获的所有的销售城市 /// </summary> protected void GetAllSaleCity() { StringBuilder strAllCity = new StringBuilder(); IList <EyouSoft.Model.SystemStructure.SysProvince> ProvinceList = EyouSoft.BLL.SystemStructure.SysProvince.CreateInstance().GetProvinceList(); if (ProvinceList != null && ProvinceList.Count > 0) { EyouSoft.IBLL.SystemStructure.ISysCity Citybll = EyouSoft.BLL.SystemStructure.SysCity.CreateInstance(); foreach (EyouSoft.Model.SystemStructure.SysProvince Province in ProvinceList) { IList <EyouSoft.Model.SystemStructure.SysCity> Citylist; string isAll = Utils.GetQueryStringValue("isall"); if (isAll == "yes") { Citylist = Citybll.GetSysCityList(Province.ProvinceId, null); } else { Citylist = Citybll.GetSaleCity(null, new int[] { Province.ProvinceId }); } if (Citylist != null && Citylist.Count > 0) { strAllCity.Append("<tr bgcolor=\"#DBF7FD\" >"); strAllCity.Append("<td align=\"center\">"); strAllCity.AppendFormat("<input type=\"checkbox\" name='ckProvince' id=\"ckAllCity_{1}\" onclick=\"OtherAllSaleCity.ckAllProvinceCity(this);\"/><label for=\"ckAllCity_{1}\" style=\"cursor:pointer\">{0}</label>:", Province.ProvinceName, Province.ProvinceId); strAllCity.Append("</td>"); strAllCity.Append("<td align=\"left\" bgcolor=\"#FFFFFF\">"); string allCity = ""; int Count = 0; foreach (EyouSoft.Model.SystemStructure.SysCity City in Citylist) { allCity += string.Format("<input id=\"thisCity_{0}\" type=\"checkbox\" value=\"{0}\" name=\"checkbox_Area\" /><label for=\"thisCity_{0}\" style=\"cursor:pointer\">{1}</label> ", City.CityId, City.CityName); Count++; if (Count != 0 && Count % 8 == 0) { allCity += "<br/>"; } } strAllCity.Append(allCity); strAllCity.Append("</td>"); strAllCity.Append("</tr>"); } Citylist = null; } Citybll = null; } ProvinceList = null; strAllCityList = strAllCity.ToString(); }
protected void BindArea() { sysCityBll = EyouSoft.BLL.SystemStructure.SysCity.CreateInstance(); EyouSoft.Model.SystemStructure.SysCity city = sysCityBll.GetSysCityModel(SiteUserInfo.CityId); if (city != null && city.CityAreaControls != null) { //获取国内长线区域 sysAreaList = city.CityAreaControls.Where(i => i.RouteType == AreaType.国内长线).ToList(); recordCount = sysAreaList.Count; if (sysAreaList.Count > 0) { ds_rpt_home1.DataSource = sysAreaList; ds_rpt_home1.DataBind(); } else { longArea = "<tr><td class='noarea'>暂无线路区域信息!</td><tr>"; } //获取国内短线区域 sysAreaList = city.CityAreaControls.Where(i => i.RouteType == AreaType.国内短线).ToList(); recordCount = sysAreaList.Count; if (sysAreaList.Count > 0) { ds_rpt_home2.DataSource = sysAreaList; ds_rpt_home2.DataBind(); } else { shortArea = "<tr><td class='noarea'>暂无线路区域信息!</td><tr>"; } //获取国际线区域 sysAreaList = city.CityAreaControls.Where(i => i.RouteType == AreaType.国际线).ToList(); recordCount = sysAreaList.Count; if (sysAreaList.Count > 0) { ds_rpt_abroad1.DataSource = sysAreaList; ds_rpt_abroad1.DataBind(); } else { exitArea = "<tr><td class='noarea'>暂无线路区域信息!</td><tr>"; } } //初始化大平台公司总数,以及当前用户收藏的公司数量 EyouSoft.IBLL.SystemStructure.ISummaryCount summaryBll = EyouSoft.BLL.SystemStructure.SummaryCount.CreateInstance(); totalCompany = summaryBll.GetSummary().TravelAgency + summaryBll.GetSummary().TravelAgencyVirtual; //获取平台公司总数 setCompanyNum = favorBll.GetAllFavorCount(SiteUserInfo.CompanyID); //获取收藏的公司数 }
/// <summary> /// 获取省份城市名称 /// </summary> /// <param name="CityId"></param> /// <returns></returns> protected string GetProCityName(int CityId) { string returnVal = ""; //实例化类的对象 EyouSoft.IBLL.SystemStructure.ISysCity cbll = EyouSoft.BLL.SystemStructure.SysCity.CreateInstance(); EyouSoft.Model.SystemStructure.SysCity cModel = cbll.GetSysCityModel(CityId); if (cModel != null) { returnVal = cModel.ProvinceName + " " + cModel.CityName; } //释放资源 cModel = null; cbll = null; return(returnVal); }
/// <summary> /// 获得所有的省份,销售城市,初始化数据 /// </summary> private void InitData() { string str1 = ""; string str2 = ""; int AllByteCount = 50; string strDefault = ""; IList <EyouSoft.Model.SystemStructure.SysProvince> ProvinceList = EyouSoft.BLL.SystemStructure.SysProvince.CreateInstance().GetProvinceList(); if (ProvinceList != null && ProvinceList.Count > 0) { EyouSoft.IBLL.SystemStructure.ISysCity Citybll = EyouSoft.BLL.SystemStructure.SysCity.CreateInstance(); foreach (EyouSoft.Model.SystemStructure.SysProvince Province in ProvinceList) { IList <EyouSoft.Model.SystemStructure.SysCity> Citylist = Citybll.GetSaleCity(null, new int[] { Province.ProvinceId }); if (Citylist != null && Citylist.Count > 0) { if (Province.AreaId == EyouSoft.Model.SystemStructure.ProvinceAreaType.直辖市)//表明直辖市 { str1 += string.Format("<a id='p_{1}' href='javascript:void(0)' onclick='ChangeProvinceName(this,{0})' {3}><strong>{2}</strong></a><span style='letter-spacing: -3px'> | </span>", Citylist[0].CityId, Province.ProvinceId, Province.ProvinceName, Province.ProvinceId == ProvinceId ? "style='color:Red'" : ""); } else { string name = string.Format("{0} | ", Province.ProvinceName); if (Utils.GetByteLength(strDefault + name) > AllByteCount) { str2 += "<br />"; strDefault = name; } else { strDefault += name; } str2 += string.Format("<a id='p_{1}' href='javascript:void(0)' onclick='ChangeProvinceName(this,{0})' {3}>{2}</a><span style='letter-spacing: -3px'> | </span>", Citylist[0].CityId, Province.ProvinceId, Province.ProvinceName, Province.ProvinceId == ProvinceId ? "style='color:Red'" : ""); } foreach (EyouSoft.Model.SystemStructure.SysCity cityModel in Citylist) { //获得当前省份下的销售城市信息 strSiteName += string.Format("<label pid='{3}'><a id='c_{0}' href='javascript:void(0)' onclick='ChangeSiteName(this,{0})' {2}>{1}</a><span style='letter-spacing: -3px'> | </span></label>", cityModel.CityId, cityModel.CityName, cityModel.CityId == CityId ? "style='color:Red'" : "", cityModel.ProvinceId); } Citylist = null; } } //strSiteName = strSiteName.Length > 0 ? strSiteName.Substring(0, strSiteName.LastIndexOf("|")) : ""; } ProvinceArray = new string[] { str1.Length > 0 ? str1.Substring(0, str1.LastIndexOf("|")) : "", str2.Length > 0 ? str2.Substring(0, str2.LastIndexOf("|")) : "" }; }
protected string GetIsSiteCity(string ProvinceID) { StringBuilder str = new StringBuilder(); EyouSoft.IBLL.SystemStructure.ISysCity bll = EyouSoft.BLL.SystemStructure.SysCity.CreateInstance(); IList <EyouSoft.Model.SystemStructure.SysCity> list = bll.GetCityList(int.Parse(ProvinceID), 0, string.Empty, true, true); if (list != null && list.Count > 0) { foreach (EyouSoft.Model.SystemStructure.SysCity model in list) { str.AppendFormat("<label for=\"chkLeaveCityID{0}\" hideFocus=\"false\"><input type=\"checkbox\" name=\"chkLeaveCityID\" id=\"chkLeaveCityID{0}\" value=\"{0}|{1}\" />{1} ", model.CityId, model.CityName); } } list = null; bll = null; return(str.ToString()); }
/// <summary> /// 分站URL改写 /// </summary> public static string CityUrlRewrite(int cityId) { if (cityId == 362) { return(Domain.UserPublicCenter + "/hangzhou"); } EyouSoft.IBLL.SystemStructure.ISysCity Citybll = EyouSoft.BLL.SystemStructure.SysCity.CreateInstance(); EyouSoft.Model.SystemStructure.SysCity model = Citybll.GetSysCityModel(cityId); if (model != null) { return(Domain.UserPublicCenter + "/" + model.RewriteCode); } else { return(Domain.UserPublicCenter + "/"); } }
/// <summary> /// 获取目的地地接社城市列表 /// </summary> private void InitCityList() { StringBuilder str = new StringBuilder(); string tmp = string.Empty; EyouSoft.IBLL.SystemStructure.ISysCity bll = EyouSoft.BLL.SystemStructure.SysCity.CreateInstance(); IList <EyouSoft.Model.SystemStructure.SysCity> list = bll.GetSysCityList(ProvinceID, null); if (list != null && list.Count > 0) { foreach (EyouSoft.Model.SystemStructure.SysCity model in list) { if (RequestCityID == 0) { tmp = string.Format("<li id=\"cityID_0\"><a class=\"dijieshechengon\" href=\"" + EyouSoft.Common.URLREWRITE.Tour.GetLocalAgencyListUrl(model.ProvinceId, CityId) + "\"><nobr>{1}:</nobr></a></li>", model.ProvinceId, model.ProvinceName); //tmp = string.Format("<li id=\"cityID_0\"><a class=\"dijieshechengon\" href=\"" + Utils.GeneratePublicCenterUrl("/RouteManage/LocalAgencyList.aspx?ProvinceID={0}", CityId) + "\"><nobr>{1}:</nobr></a></li>", model.ProvinceId, model.ProvinceName); } else { tmp = string.Format("<li id=\"cityID_0\"><a href=\"" + EyouSoft.Common.URLREWRITE.Tour.GetLocalAgencyListUrl(model.ProvinceId, CityId) + "\"><nobr>{1}:</nobr></a></li>", model.ProvinceId, model.ProvinceName); //tmp = string.Format("<li id=\"cityID_0\"><a href=\"" + Utils.GeneratePublicCenterUrl("/RouteManage/LocalAgencyList.aspx?ProvinceID={0}", CityId) + "\"><nobr>{1}:</nobr></a></li>", model.ProvinceId, model.ProvinceName); } if (model.CityId == RequestCityID) { str.AppendFormat("<li id=\"cityID_{0}\"><a class=\"dijieshechengon\" href=\"" + EyouSoft.Common.URLREWRITE.Tour.GetLocalAgencyListUrl(model.ProvinceId, model.CityId, CityId) + "\"><nobr>{2}</nobr></a></li>", model.CityId, model.ProvinceId, model.CityName); //str.AppendFormat("<li id=\"cityID_{0}\"><a class=\"dijieshechengon\" href=\"" + Utils.GeneratePublicCenterUrl("/RouteManage/LocalAgencyList.aspx?ProvinceID={1}&RequestCityID={0}", CityId) + "\"><nobr>{2}</nobr></a></li>", model.CityId, model.ProvinceId, model.CityName); } else { str.AppendFormat("<li id=\"cityID_{0}\"><a href=\"" + EyouSoft.Common.URLREWRITE.Tour.GetLocalAgencyListUrl(model.ProvinceId, model.CityId, CityId) + "\"><nobr>{2}</nobr></a></li>", model.CityId, model.ProvinceId, model.CityName); //str.AppendFormat("<li id=\"cityID_{0}\"><a href=\"" + Utils.GeneratePublicCenterUrl("/RouteManage/LocalAgencyList.aspx?ProvinceID={1}&RequestCityID={0}", CityId) + "\"><nobr>{2}</nobr></a></li>", model.CityId, model.ProvinceId, model.CityName); } } } list = null; bll = null; if (str.ToString() != string.Empty) { strCityList = tmp + str.ToString(); } }
protected void Page_Load(object sender, EventArgs e) { RequestCityID = Utils.GetInt(Request.QueryString["RequestCityID"], 0); //目的地地接社所在城市 SaleCityID = CityId; ProvinceID = Utils.GetInt(Request.QueryString["ProvinceID"], 0); //目的地接社所在省份 strURL = Utils.GeneratePublicCenterUrl("/RouteManage/LocalAgencyList.aspx?ProvinceID=" + ProvinceID + "&RequestCityID=" + RequestCityID, CityId); if (!Page.IsPostBack) { InitCityList(); InitLocalAgencyList(); } //如果 地接社所在城市 条件 不为空,则显示 城市名称 //如果 地接社所在城市条件 为空,则显示 所在省份名称 string placeName = string.Empty;//地名 if (RequestCityID != 0) { EyouSoft.Model.SystemStructure.SysCity tmpCityModel = null; EyouSoft.IBLL.SystemStructure.ISysCity bll = EyouSoft.BLL.SystemStructure.SysCity.CreateInstance(); tmpCityModel = bll.GetSysCityModel(RequestCityID); if (tmpCityModel != null) { placeName = tmpCityModel.CityName; } } else if (ProvinceID != 0) { EyouSoft.Model.SystemStructure.SysProvince tmpProModel = null; EyouSoft.IBLL.SystemStructure.ISysProvince proBll = EyouSoft.BLL.SystemStructure.SysProvince.CreateInstance(); tmpProModel = proBll.GetProvinceModel(ProvinceID); if (tmpProModel != null) { placeName = tmpProModel.ProvinceName; } } //根据 地名 格式化 页面标题 this.Page.Title = string.Format("{0}地接社_{0}地接电话_{0}旅行社大全", placeName); }
protected void Page_Load(object sender, EventArgs e) { if (!CheckGrant(TravelPermission.组团_线路采购预定)) { Utils.ResponseNoPermit(); return; } //是否设置目录 if (EyouSoft.BLL.CompanyStructure.CompanyFavor.CreateInstance().GetAllFavorCount(SiteUserInfo.CompanyID) < 1) { rs_rpt_tourList.EmptyText = "<tr><td style='text-align:center'>您尚未添加任何产品供应商,请先<a href='javascript:void(0);' onclick='javascript:$(\"#divDirectoryset\").find(\"a\").click();return false'>挑选专线</a>!</td></tr>"; ListItem cityItem = new ListItem("选择全部出港城市", ""); rs_selCity.Items.Insert(0, cityItem); this.rs_ExportPageInfo1.Visible = false; return; } method = Utils.GetQueryStringValue("method"); cityBll = EyouSoft.BLL.SystemStructure.SysCity.CreateInstance(); tourBll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); pageIndex = Utils.GetInt(Request.QueryString["Page"], 1); BindTourData(); //绑定团队列表 LoadAreaTypeStateInfo(); //加载筛选条件信息 BindPage(); //设置分页 //恢复搜索条件 if (method == "cityfilt") { rs_selCity.Value = Utils.GetQueryStringValue("cityid");// 出港城市 } else if (method == "search") { rs_selRouteCompany.Value = Utils.InputText(Server.UrlDecode(Request.QueryString["companyid"] ?? "")); rs_txtEndTime.Value = Utils.InputText(Server.UrlDecode(Request.QueryString["endtime"] ?? "")); rs_txtRouteName.Value = Utils.InputText(Server.UrlDecode(Request.QueryString["routename"] ?? "")); rs_txtStartTime.Value = Utils.InputText(Server.UrlDecode(Request.QueryString["starttime"] ?? "")); rs_selRouteArea.Value = Utils.InputText(Server.UrlDecode(Request.QueryString["routearea"] ?? "")); } }
//初始化页面 public void Initialize() { provinceID = Utils.GetInt(Utils.GetQueryStringValue("provinceID"), 0); cityID = Utils.GetInt(Utils.GetQueryStringValue("cId"), 0); areaID = Utils.GetInt(Utils.GetQueryStringValue("areaID"), 0); companytypeid = Utils.GetInt(Utils.GetQueryStringValue("companytype")); pageIndex = Utils.GetInt(Request.QueryString["Page"], 1); companyName = Utils.GetQueryStringValue("CompanyName").Trim(); companyType = Utils.GetQueryStringValue("companytype"); if (provinceID <= 0 && cityID > 0) { EyouSoft.IBLL.SystemStructure.ISysCity Bcity = EyouSoft.BLL.SystemStructure.SysCity.CreateInstance(); EyouSoft.Model.SystemStructure.SysCity Mcity = new EyouSoft.Model.SystemStructure.SysCity(); Mcity = Bcity.GetSysCityModel(cityID); provinceID = Mcity.ProvinceId; } //获取省份列表 EyouSoft.IBLL.SystemStructure.ISysProvince Bpro = EyouSoft.BLL.SystemStructure.SysProvince.CreateInstance(); IList <EyouSoft.Model.SystemStructure.SysProvince> ProList = Bpro.GetProvinceList(); this.province.DataSource = ProList; this.province.DataBind(); //获取同行列表 EyouSoft.IBLL.CompanyStructure.ICompanyInfo Bcompany = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance(); IList <EyouSoft.Model.CompanyStructure.CompanyTongHang> ComList = null; ComList = Bcompany.GetTongHangList(pageSize, pageIndex, ref recordCount, new EyouSoft.Model.CompanyStructure.QueryNewCompany() { PorvinceId = provinceID, KeyWord = companyName, CityId = cityID, CountyId = areaID, CompanyTypes = (companytypeid == 0) ? null : new CompanyType?[] { (EyouSoft.Model.CompanyStructure.CompanyType) companytypeid } }); //获取省份名字 if (provinceID > 0) { provinceName = Bpro.GetProvinceModel(provinceID).ProvinceName; } else { provinceName = "全部"; } Bcompany = null; if (ComList != null && ComList.Count > 0) { this.rivalList.DataSource = ComList; this.rivalList.DataBind(); BindPage(); } else { this.rivalList.EmptyText = "搜索结果为空,请尝试修改搜索条件重试!"; this.pageInfor.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { if (!CheckGrant(TravelPermission.营销工具_同业名录)) { Utils.ResponseNoPermit(); return; } string method = Utils.GetQueryStringValue("method"); EyouSoft.Model.CompanyStructure.CompanyDetailInfo companyModel = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(SiteUserInfo.CompanyID); if (companyModel != null) { SiteUserComLev = companyModel.CompanyLev; } myCustomerBll = EyouSoft.BLL.CompanyStructure.MyCustomer.CreateInstance(); tourOrderBLL = EyouSoft.BLL.TourStructure.TourOrder.CreateInstance(); cityBll = EyouSoft.BLL.SystemStructure.SysCity.CreateInstance(); provinceBll = EyouSoft.BLL.SystemStructure.SysProvince.CreateInstance(); if (method == "clearMyCustomers") { if (!haveUpdate) { Page.ClientScript.RegisterStartupScript(this.GetType(), Guid.NewGuid().ToString(), "<script type='text/javascript'>alert('对不起,你没有该权限!');</script>"); } else { ClearMyCustomers();//解除合作关系 } } //获取当前页 pageIndex = Utils.GetInt(Request.QueryString["Page"], 1); //获取查询条件 int province = Utils.GetInt(Utils.InputText(Server.UrlDecode(Request.QueryString["province"] ?? ""))); //省份ID int city = Utils.GetInt(Utils.InputText(Server.UrlDecode(Request.QueryString["city"] ?? ""))); //城市ID string companyName = Utils.InputText(Server.UrlDecode(Request.QueryString["companyname"] ?? "")); //公司名 string admin = Utils.InputText(Server.UrlDecode(Request.QueryString["admin"] ?? "")); //负责人 string brand = Utils.InputText(Server.UrlDecode(Request.QueryString["brand"] ?? "")); //品牌 string myCompanyId = SiteUserInfo.CompanyID; EyouSoft.Model.CompanyStructure.QueryParamsCompany query = new EyouSoft.Model.CompanyStructure.QueryParamsCompany(); query.CityId = city; query.PorvinceId = province; query.CompanyBrand = brand; query.CompanyName = companyName; query.ContactName = admin; //绑定我的客户 IList <EyouSoft.Model.CompanyStructure.MyCustomer> myCustomerList = myCustomerBll.GetList(myCompanyId, query, pageSize, pageIndex, ref recordCount); if (myCustomerList != null && myCustomerList.Count > 0) { alc_rpt_customers.DataSource = myCustomerList; alc_rpt_customers.DataBind(); BindPage(province, city, companyName, admin, brand); } else { alc_rpt_customers.EmptyText = "<tr><td style='text-align:center'>暂无客户信息</td></tr>"; this.ExportPageInfo1.Visible = false; } //清除对象 myCustomerList = null; myCustomerBll = null; cityBll = null; provinceBll = null; tourOrderBLL = null; //恢复查询条件 mc_pc.SetProvinceId = province; mc_pc.SetCityId = city; mc_txtAdmin.Value = admin; mc_txtBrand.Value = brand; mc_txtCompanyName.Value = companyName; }
protected void Page_Load(object sender, EventArgs e) { string method = Utils.GetQueryStringValue("method"); if (!CheckGrant(TravelPermission.营销工具_同业名录)) { Utils.ResponseNoPermit(); return; } EyouSoft.Model.CompanyStructure.CompanyDetailInfo companyModel = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(SiteUserInfo.CompanyID); if (companyModel != null) { SiteUserComLev = companyModel.CompanyLev; } //是否开通收费MQ //if (!companyModel.StateMore.CompanyService.IsServiceAvailable(EyouSoft.Model.CompanyStructure.SysService.MQ)) //{ // Server.Transfer("/SystemSet/ApplyMQ.aspx?iscustomer=yes&" + StringValidate.BuildUrlString(Request.QueryString, new string[] { }), false); // return; //} if (method == "setMyCustomer")//设置为我的客户 { if (!haveUpdate) { Utils.ResponseMeg(false, "对不起,你没有改权限!"); return; } myCustomerBll = EyouSoft.BLL.CompanyStructure.MyCustomer.CreateInstance(); SetMyCustomer(); myCustomerBll = null; return; } //获取查询条件 int province = Utils.GetInt(Utils.InputText(Server.UrlDecode(Request.QueryString["province"] ?? ""))); //省份ID int city = Utils.GetInt(Utils.InputText(Server.UrlDecode(Request.QueryString["city"] ?? ""))); //城市ID string companyName = Utils.InputText(Server.UrlDecode(Request.QueryString["companyname"] ?? "")); //公司名 string admin = Utils.InputText(Server.UrlDecode(Request.QueryString["admin"] ?? "")); //负责人 string brand = Utils.InputText(Server.UrlDecode(Request.QueryString["brand"] ?? "")); //品牌 EyouSoft.Model.CompanyStructure.QueryParamsCompany query = new EyouSoft.Model.CompanyStructure.QueryParamsCompany(); query.CityId = city; query.PorvinceId = province; query.CompanyBrand = brand; query.CompanyName = companyName; query.ContactName = admin; //当前页码 pageIndex = Utils.GetInt(Request.QueryString["Page"], 1); //获取我的客户 cityBll = EyouSoft.BLL.SystemStructure.SysCity.CreateInstance(); provinceBll = EyouSoft.BLL.SystemStructure.SysProvince.CreateInstance(); companyAreaBll = EyouSoft.BLL.CompanyStructure.CompanyArea.CreateInstance(); IList <EyouSoft.Model.CompanyStructure.CompanyInfo> allCustomerList = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetListTravelAgency(query, pageSize, pageIndex, ref recordCount); if (allCustomerList != null && allCustomerList.Count > 0) { alc_rpt_customers.DataSource = allCustomerList; alc_rpt_customers.DataBind(); BindPage(province, city, companyName, admin, brand);//设置分页 } else { alc_rpt_customers.EmptyText = "<tr><td style='text-align:center'>暂无客户信息</td></tr>"; this.ExportPageInfo1.Visible = false; } //清理对象 allCustomerList = null; cityBll = null; provinceBll = null; //恢复查询条件 ac_pc.SetProvinceId = province; ac_pc.SetCityId = city; ac_txtAdmin.Value = admin; ac_txtBrand.Value = brand; ac_txtCompanyName.Value = companyName; }
/// <summary> /// 获的所有的销售城市 /// </summary> protected void GetAllSaleCity() { int Index = EyouSoft.Common.Utils.GetInt(Request.QueryString["Index"]); string strUrl = "/Default.aspx"; switch (Index) { case 2: strUrl = "/RouteManage/Default.aspx"; break; case 3: strUrl = "/PlaneInfo/PlaneListPage.aspx"; break; case 4: strUrl = "/ScenicManage/ScenicDefalut.aspx"; break; case 5: strUrl = "/HotelManage/Default.aspx"; break; case 6: strUrl = "/CarInfo/CarListPage.aspx"; break; case 7: strUrl = "/TravelManage/TravelDefault.aspx"; break; case 8: strUrl = "/ShoppingInfo/ShoppingListPage.aspx"; break; case 9: strUrl = "/SupplierInfo/SupplierInfo.aspx"; break; } StringBuilder strAllCity = new StringBuilder(); IList <EyouSoft.Model.SystemStructure.SysProvince> ProvinceList = EyouSoft.BLL.SystemStructure.SysProvince.CreateInstance().GetProvinceList(); if (ProvinceList != null && ProvinceList.Count > 0) { EyouSoft.IBLL.SystemStructure.ISysCity Citybll = EyouSoft.BLL.SystemStructure.SysCity.CreateInstance(); foreach (EyouSoft.Model.SystemStructure.SysProvince Province in ProvinceList) { IList <EyouSoft.Model.SystemStructure.SysCity> Citylist = Citybll.GetSysCityList(Province.ProvinceId, null); if (Citylist != null && Citylist.Count > 0) { strAllCity.Append("<tr>"); strAllCity.Append("<td align=\"left\" style=\"border-bottom: 1px dashed rgb(238, 238, 238);\">"); strAllCity.AppendFormat("<h3>{0}:", Province.ProvinceName); string allCity = ""; int Count = 0; Citylist = (Citylist.OrderByDescending(pet => pet.IsEnabled)).ToList(); foreach (EyouSoft.Model.SystemStructure.SysCity City in Citylist) { if (Count != 0 && Count % 7 == 0) { allCity += "<br/> "; } string Enabledstyle = ""; if (!City.IsEnabled) { Enabledstyle = "style='color:#6E90B6'"; } allCity += string.Format("<nobr><a href=\"{0}\" nowrap=\"nowrap\" {2}>{1}</a></nobr> <span style='color:#eeeeee'>|</span> ", SubStation.CityUrlRewrite(City),//strUrl + "?CityId=" + City.CityId + "&isCut=1", City.CityName, Enabledstyle); Count++; } if (allCity != "") { allCity = allCity.Substring(0, allCity.Length - 9); } strAllCity.Append(allCity); strAllCity.Append("</h3>"); strAllCity.Append("</td>"); strAllCity.Append("</tr>"); } Citylist = null; } Citybll = null; } ProvinceList = null; strAllCityList = strAllCity.ToString(); }
/// <summary> /// 初始化基础信息 /// </summary> private void InitBasicInfo() { if (UserInfoModel != null) { EyouSoft.Model.CompanyStructure.CompanyInfo comModel = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(UserInfoModel.CompanyID); if (comModel != null) { this.lblLoginUser.Text = "您好," + UserInfoModel.UserName + Utils.GetCompanyLevImg(comModel.CompanyLev) + " 欢迎登录同业114。信息完整度:<a class=\"ff0000\" href='javascript:void(0);' onclick='topTab.open(\"/systemset/companyinfoset.aspx\",\"单位信息\");return false;' >" + (comModel.InfoFull * 100).ToString("00") + "%</a>"; } else { this.lblLoginUser.Text = "您好," + UserInfoModel.UserName + " 欢迎登录同业114。"; } } EyouSoft.IBLL.CompanyStructure.ICompanySetting CSetBll = EyouSoft.BLL.CompanyStructure.CompanySetting.CreateInstance(); EyouSoft.Model.CompanyStructure.CompanySetting CSetModel = CSetBll.GetModel(UserInfoModel.CompanyID); if (CSetModel != null) { switch (CSetModel.FirstMenu) { case EyouSoft.Model.CompanyStructure.MenuSection.专线服务: FirstMenu = "0"; break; case EyouSoft.Model.CompanyStructure.MenuSection.组团服务: FirstMenu = "1"; break; case EyouSoft.Model.CompanyStructure.MenuSection.地接服务: FirstMenu = "2"; break; case EyouSoft.Model.CompanyStructure.MenuSection.景区服务: FirstMenu = "3"; break; default: FirstMenu = "1"; break; } } #region 公告区 EyouSoft.IBLL.SystemStructure.ISummaryCount SummaryBll = EyouSoft.BLL.SystemStructure.SummaryCount.CreateInstance(); EyouSoft.Model.SystemStructure.SummaryCount SummaryModel = SummaryBll.GetSummary(); if (SummaryModel != null) { this.lblRouteAgencyCount.Text = (SummaryModel.TravelAgency + SummaryModel.TravelAgencyVirtual).ToString(); this.lblHotelCount.Text = (SummaryModel.Hotel + SummaryModel.HotelVirtual).ToString(); this.lblSightCount.Text = (SummaryModel.Sight + SummaryModel.SightVirtual).ToString(); this.lblCarCount.Text = (SummaryModel.Car + SummaryModel.CarVirtual).ToString(); this.lblShoppingCount.Text = (SummaryModel.Shop + SummaryModel.ShopVirtual).ToString(); } SummaryModel = null; SummaryBll = null; #endregion #region 业114提醒 EyouSoft.Model.CompanyStructure.CompanyRole RoleModel = UserInfoModel.CompanyRole; EyouSoft.Model.CompanyStructure.CompanyType[] enumType = RoleModel.RoleItems; #region 专线和组团显示控制 if (enumType != null && enumType.Length > 0) { foreach (EyouSoft.Model.CompanyStructure.CompanyType type in enumType) { if (type == EyouSoft.Model.CompanyStructure.CompanyType.专线) { IsRouteAgency = true; } else if (type == EyouSoft.Model.CompanyStructure.CompanyType.组团 || type == EyouSoft.Model.CompanyStructure.CompanyType.其他采购商) { IsTourAgency = true; } else if (type == EyouSoft.Model.CompanyStructure.CompanyType.地接) { IsLocalAgency = true; } else if (type == EyouSoft.Model.CompanyStructure.CompanyType.景区) { IsSightAgency = true; } else { IsOther = true; } } if (IsRouteAgency) // 仅为专线 { this.span_RouteAgency.Visible = true; this.ul_RouteAgency.Visible = true; } if (IsTourAgency) // 仅为组团 { this.span_TourAgency.Visible = true; this.ul_TourAgency.Visible = true; } if (IsLocalAgency) //仅为地接 { this.span_ErAgency.Visible = true; this.ul_ErAgency.Visible = true; } if (IsSightAgency) //景区 { this.span_Scenic.Visible = true; this.ul_Scenic.Visible = true; } //if (IsOther) //{ // Utils.ShowError("对不起,您不是旅行社账户!", ""); // this.span_RouteAgency.Visible = false; // this.ul_RouteAgency.Visible = false; // this.span_TourAgency.Visible = false; // this.ul_TourAgency.Visible = false; // this.span_ErAgency.Visible = false; // this.ul_ErAgency.Visible = false; // this.span_Scenic.Visible = true; // this.ul_Scenic.Visible = true; // divNoLocalAgency.Visible = false; //} } #endregion EyouSoft.IBLL.TourStructure.ITour TourBll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); EyouSoft.IBLL.NewTourStructure.ITourList iorderBll = EyouSoft.BLL.NewTourStructure.BTourList.CreateInstance(); EyouSoft.IBLL.NewTourStructure.IPowderList powderBll = EyouSoft.BLL.NewTourStructure.BPowderList.CreateInstance(); EyouSoft.IBLL.NewTourStructure.IRoute routeBll = EyouSoft.BLL.NewTourStructure.BRoute.CreateInstance(); Dictionary <string, int> dic = null; #region 组团提醒 if (IsTourAgency) // 组团提醒 { //获得线路数和团队数 EyouSoft.IBLL.SystemStructure.ISysCity CityBll = EyouSoft.BLL.SystemStructure.SysCity.CreateInstance(); EyouSoft.Model.SystemStructure.SysCity CityModel = CityBll.GetSysCityModel(UserInfoModel.CityId); if (CityModel != null) { this.lblCity.Text = CityModel.CityName; this.lblTemplateTourCount.Text = CityModel.ParentTourCount.ToString(); this.lblChildTourCount.Text = CityModel.TourCount.ToString(); } CityModel = null; CityBll = null; //获得组团订单信息 dic = iorderBll.GetOrderTravelCount(UserInfoModel.CompanyID); if (dic != null) { if (dic.ContainsKey("未发团散客预订单") && dic.ContainsKey("散客订单未处理") && dic.ContainsKey("散客订单预留待付款") && dic.ContainsKey("散客订单已确认")) { this.lblTourOrderFrist.Text = string.Format( " 未发团散客预订单:<a class=\"ff0000\" href=\"/teamservice/fitorders.aspx?goTimeS={0}\" onclick=\"topTab.open($(this).attr('href'),'我的散拼订单');return false;\"><b>", DateTime.Now.ToShortDateString()) + dic["未发团散客预订单"].ToString() + "单</b></a>,"; this.lblTourOrderFrist.Text += string.Format( "其中未处理<a class=\"ff0000\" href=\"/teamservice/fitorders.aspx?goTimeS={3}&status={0},{1},{2}\" onclick=\"topTab.open($(this).attr('href'),'我的散拼订单');return false;\"><b>", (int)EyouSoft.Model.NewTourStructure.PowderOrderStatus.组团社待处理, (int)EyouSoft.Model.NewTourStructure.PowderOrderStatus.组团社已阅, (int)EyouSoft.Model.NewTourStructure.PowderOrderStatus.专线商待处理, DateTime.Now.ToShortDateString()) + dic["散客订单未处理"].ToString() + "单</b></a>,"; this.lblTourOrderFrist.Text += string.Format( "预留待付款<a class=\"ff0000\" href=\"/teamservice/fitorders.aspx?goTimeS={0}&status={1}\" onclick=\"topTab.open($(this).attr('href'),'我的散拼订单');return false;\"><b>", DateTime.Now.ToShortDateString(), (int)EyouSoft.Model.NewTourStructure.PowderOrderStatus.专线商预留) + dic["散客订单预留待付款"].ToString() + "单</b></a>,"; this.lblTourOrderFrist.Text += string.Format( "已确认<a href=\"/teamservice/fitorders.aspx?goTimeS={0}&status={1},{2}\" onclick=\"topTab.open($(this).attr('href'),'我的散拼订单');return false;\"><b>", DateTime.Now.ToShortDateString(), (int)EyouSoft.Model.NewTourStructure.PowderOrderStatus.专线商已确定, (int)EyouSoft.Model.NewTourStructure.PowderOrderStatus.结单) + dic["散客订单已确认"].ToString() + "单</b></a>"; } if (dic.ContainsKey("未发团团队预订单") && dic.ContainsKey("团队未确认") && dic.ContainsKey("团队已确认")) { this.lblTourOrderSecond.Text = string.Format( "未发团团队预订单:<a class=\"ff0000\" href=\"/teamservice/teamorders.aspx?ref=0&goTimeS={0}\" onclick=\"topTab.open($(this).attr('href'),'我的散拼订单');return false;\"><b>", DateTime.Now.ToShortDateString()) + dic["未发团团队预订单"].ToString() + "单</b></a>,"; this.lblTourOrderSecond.Text += string.Format( "未确认订单<a class=\"ff0000\" href=\"/teamservice/teamorders.aspx?ref=0&goTimeS={1}&status={0}\" onclick=\"topTab.open($(this).attr('href'),'我的散拼订单');return false;\"><b>", (int)EyouSoft.Model.NewTourStructure.TourOrderStatus.未确认, DateTime.Now.ToShortDateString()) + dic["团队未确认"].ToString() + "单</b></a>,"; this.lblTourOrderSecond.Text += string.Format( "已确认<a href=\"/teamservice/teamorders.aspx?ref=0&goTimeS={2}&status={0},{1}\" onclick=\"topTab.open($(this).attr('href'),'我的散拼订单');return false;\"><b>", (int)EyouSoft.Model.NewTourStructure.TourOrderStatus.已确认, (int)EyouSoft.Model.NewTourStructure.TourOrderStatus.结单, DateTime.Now.ToShortDateString()) + dic["团队已确认"].ToString() + "单</b></a>"; } } } #endregion #region 专线提醒 if (IsRouteAgency) { int ComingLeaveTourNumber = TourBll.GetComingExpireTourNumber(); if (ComingLeaveTourNumber > 0) { this.lblComingExpireToursCount.Text = "<img src='" + ImageServerPath + "/images/gantanhao.gif' />您当前共有<a href='/routeagency/notstartingteams.aspx' onclick=\"topTab.open($(this).attr('href'),'未出发团队');return false;\">" + ComingLeaveTourNumber + "个团</a>将于1周后到期,请及时更新计划,以方便组团社查询"; } //获得专线下线路区域和团的数量 IList <EyouSoft.Model.TourStructure.AreaStatInfo> TourByAreaCount = powderBll.GetCurrentUserTourByAreaStats(); if (TourByAreaCount != null && TourByAreaCount.Count > 0) { StringBuilder strTour = new StringBuilder(); foreach (EyouSoft.Model.TourStructure.AreaStatInfo AreaStaModel in TourByAreaCount) { strTour.Append("<a class=\"lan14\" href=\"/routeagency/scatteredfightplan.aspx?lineId=" + AreaStaModel.AreaId.ToString() + "\" onclick=\"topTab.open($(this).attr('href'),'我的散拼计划');return false;\">" + AreaStaModel.AreaName + "(" + AreaStaModel.Number.ToString() + ")</a>"); } this.lblRoutePlanCount.Text = strTour.ToString(); } dic = iorderBll.GetOrderBusinessCount(UserInfoModel.CompanyID); if (dic != null) { //获得专线订单信息 if (dic.ContainsKey("有效散客订单") && dic.ContainsKey("散客订单未处理") && dic.ContainsKey("散客预留待付款") && dic.ContainsKey("散客订单已确认")) { this.lblRouteOrderFrist.Text = "有效散客订单:<a href=\"/routeagency/allfitorders.aspx\" class=\"ff0000\" onclick=\"topTab.open($(this).attr('href'),'所有散拼订单');return false;\"><b>" + dic["有效散客订单"].ToString() + "单</b></a>,"; this.lblRouteOrderFrist.Text += "其中未处理<a href=\"/routeagency/allfitorders.aspx?statue=2\" class=\"ff0000\" onclick=\"topTab.open($(this).attr('href'),'所有散拼订单');return false;\"><b>" + dic["散客订单未处理"].ToString() + "单</b></a>,"; this.lblRouteOrderFrist.Text += "预留待付款<a href=\"/routeagency/allfitorders.aspx?statue=3\" class=\"ff0000\" onclick=\"topTab.open($(this).attr('href'),'所有散拼订单');return false;\"><b>" + dic["散客预留待付款"].ToString() + "单</b></a>,"; this.lblRouteOrderFrist.Text += "已确认:<a href=\"/routeagency/allfitorders.aspx?statue=6\" onclick=\"topTab.open($(this).attr('href'),'所有散拼订单');return false;\"><b>" + dic["散客订单已确认"].ToString() + "单</b></a>"; } if (dic.ContainsKey("团队订单") && dic.ContainsKey("团队订单未处理") && dic.ContainsKey("团队订单已确认")) { this.lblRouteOrderSecond.Text = "有效团队订单:共有<a href=\"/teamservice/teamorders.aspx?routeSource=1\" class=\"ff0000\" onclick=\"topTab.open($(this).attr('href'),'团队订单管理');return false;\"><b>" + dic["团队订单"].ToString() + "单</b></a>,"; this.lblRouteOrderSecond.Text += "其中未处理<a href=\"/teamservice/teamorders.aspx?routeSource=1&status=0\" class=\"ff0000\" onclick=\"topTab.open($(this).attr('href'),'团队订单管理');return false;\"><b>" + dic["团队订单未处理"].ToString() + "单</b></a>,"; this.lblRouteOrderSecond.Text += " 已确认:<a href=\"/teamservice/teamorders.aspx?routeSource=1&status=1\" onclick=\"topTab.open($(this).attr('href'),'团队订单管理');return false;\"><b>" + dic["团队订单已确认"] + "单</b></a>"; } if (dic.ContainsKey("历史订单") && dic.ContainsKey("成人数") && dic.ContainsKey("儿童数")) { this.lblRouteOrderThird.Text = "历史订单:共计<a class=\"ff0000\"><b>" + dic["历史订单"].ToString() + "单</b></a>,人数" + dic["成人数"].ToString() + "大" + dic["儿童数"].ToString() + "小"; } } //获得专线商的访问数量 this.lblBrowseUserCount.Text = TourBll.GetVisitedNumberByCompany(UserInfoModel.CompanyID).ToString(); } #endregion #region 地接提醒 if (IsLocalAgency) { //获得地接线路区域信息 IList <EyouSoft.Model.TourStructure.AreaStatInfo> routeByAreaCount = routeBll.GetCurrentUserRouteByAreaStats(); if (routeByAreaCount != null && routeByAreaCount.Count > 0) { StringBuilder strTour = new StringBuilder(); foreach (EyouSoft.Model.TourStructure.AreaStatInfo AreaStaModel in routeByAreaCount) { strTour.Append("<a href='/routeagency/routemanage/routeview.aspx?routeSource=2' onclick=\"topTab.open($(this).attr('href'),'我的线路库',{isRefresh:false,data:{AreaId:" + AreaStaModel.AreaId + "}});return false;\" class='lan14'>" + AreaStaModel.AreaName + "(" + AreaStaModel.Number + ")</a><br />"); } this.lblLocalRoute.Text = strTour.ToString(); } dic = iorderBll.GetOrderGroundCount(UserInfoModel.CompanyID); if (dic != null) { //获得地接团队订单信息 if (dic.ContainsKey("有效团队订单") && dic.ContainsKey("团队订单未处理") && dic.ContainsKey("团队订单已处理")) { this.lblLocalOrderCount.Text = "有效团队订单:共有<a href=\"/teamservice/teamorders.aspx?routeSource=2\" class=\"ff0000\" onclick=\"topTab.open($(this).attr('href'),'团队订单管理');return false;\"><b>" + dic["有效团队订单"].ToString() + "单</b></a>,"; this.lblLocalOrderCount.Text += "其中未处理<a href=\"/teamservice/teamorders.aspx?routeSource=2&status=0\" class=\"ff0000\" onclick=\"topTab.open($(this).attr('href'),'团队订单管理');return false;\"><b>" + dic["团队订单未处理"].ToString() + "单</b></a>,"; this.lblLocalOrderCount.Text += "已确认:<a href=\"/teamservice/teamorders.aspx?routeSource=2&status=1\" onclick=\"topTab.open($(this).attr('href'),'团队订单管理');return false;\"><b>" + dic["团队订单已处理"].ToString() + "单</b></a>"; } } } #endregion #region 景区提醒 if (IsSightAgency) { //获得将过期景点门票 this.lblScenicCountOver.Text = "您当前共有<a href=\"/ScenicManage/MyScenice.aspx\" onclick=\"topTab.open($(this).attr('href'),'我的景区');return false;\">" + EyouSoft.BLL.ScenicStructure.BScenicTickets.CreateInstance().GetExpireTickets(UserInfoModel.CompanyID).ToString() + "个景区门票</a>将于1周后到期,请及时更新计划,以方便旅行社查询"; int recordCount = 0; IList <EyouSoft.Model.ScenicStructure.MScenicArea> scenicList = EyouSoft.BLL.ScenicStructure.BScenicArea.CreateInstance().GetListAndTickets(3, 1, ref recordCount, null); if (scenicList != null && scenicList.Count > 0) { string sbScenic = ""; for (int i = 0; i < scenicList.Count; i++) { sbScenic += "<a class=\"lan14\" href=\"/ScenicManage/MyScenice.aspx\" onclick=\"topTab.open($(this).attr('href'),'我的景区');return false;\">" + scenicList[i].ScenicName + "</a> "; } this.lblScenicCount.Text = sbScenic; } } #endregion #endregion }