示例#1
0
        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();
            //绑定类别
        }
示例#2
0
        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);                                  //获取收藏的公司数
        }
示例#3
0
        /// <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);
        }
示例#4
0
        protected string GetProAndCity(int pId, int cId)
        {
            string strCity = "";
            string strPro  = "";

            EyouSoft.Model.SystemStructure.SysCity     city     = cityBll.GetSysCityModel(cId);
            EyouSoft.Model.SystemStructure.SysProvince province = provinceBll.GetProvinceModel(pId);
            if (city != null)
            {
                strCity = city.CityName;
            }
            if (province != null)
            {
                strPro = province.ProvinceName;
            }
            return(strPro + "-" + strCity);
        }
示例#5
0
        /// <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 + "/");
            }
        }
示例#6
0
        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);
        }
示例#7
0
        /// <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>&nbsp;&nbsp;";
                    }
                    this.lblScenicCount.Text = sbScenic;
                }
            }
            #endregion
            #endregion
        }
示例#8
0
        //初始化页面
        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;
            }
        }