Beispiel #1
0
        /// <summary>
        /// 更新统计信息基数值
        /// </summary>
        /// <param name="model"></param>
        /// <returns>false:失败 true:成功</returns>
        public virtual bool SetSummaryCount(EyouSoft.Model.SystemStructure.SummaryCount model)
        {
            StringBuilder strSql = new StringBuilder();

            strSql.AppendFormat(SQL_SummaryCount_SetSummaryCount, model.TravelAgencyVirtual, "TravelAgencyVirtual");
            strSql.AppendFormat(SQL_SummaryCount_SetSummaryCount, model.HotelVirtual, "HotelVirtual");
            strSql.AppendFormat(SQL_SummaryCount_SetSummaryCount, model.SightVirtual, "SightVirtual");
            strSql.AppendFormat(SQL_SummaryCount_SetSummaryCount, model.CarVirtual, "CarVirtual");
            strSql.AppendFormat(SQL_SummaryCount_SetSummaryCount, model.GoodsVirtual, "GoodsVirtual");
            strSql.AppendFormat(SQL_SummaryCount_SetSummaryCount, model.UserVirtual, "UserVirtual");
            strSql.AppendFormat(SQL_SummaryCount_SetSummaryCount, model.IntermediaryVirtual, "IntermediaryVirtual");
            strSql.AppendFormat(SQL_SummaryCount_SetSummaryCount, model.RouteVirtual, "RouteVirtual");
            strSql.AppendFormat(SQL_SummaryCount_SetSummaryCount, model.CityRouteVirtual, "CityRouteVirtual");
            strSql.AppendFormat(SQL_SummaryCount_SetSummaryCount, model.ShopVirtual, "ShopVirtual");
            strSql.AppendFormat(SQL_SummaryCount_SetSummaryCount, model.MQUserVirtual, "MQUserVirtual");
            strSql.AppendFormat(SQL_SummaryCount_SetSummaryCount, model.TicketCompanyVirtual, "TicketCompanyVirtual");
            strSql.AppendFormat(SQL_SummaryCount_SetSummaryCount, model.TicketFreightVirtual, "TicketFreightVirtual");
            strSql.AppendFormat(SQL_SummaryCount_SetSummaryCount, model.BuyerVirtual, "BuyersVirtual");
            strSql.AppendFormat(SQL_SummaryCount_SetSummaryCount, model.SuppliersVirtual, "SuppliersVirtual");
            strSql.AppendFormat(SQL_SummaryCount_SetSummaryCount, model.SupplyInfosVirtual, "SupplyInfosVirtual");
            strSql.AppendFormat(SQL_SummaryCount_SetSummaryCount, model.ScenicVirtual, "ScenicVirtual");
            DbCommand dc = this.SystemStore.GetSqlStringCommand(strSql.ToString());

            return(DbHelper.ExecuteSqlTrans(dc, this.SystemStore) > 0?true:false);
        }
Beispiel #2
0
        /// <summary>
        /// 目的地接社省份列表
        /// </summary>
        private void GetdjList()
        {
            //统计
            EyouSoft.Model.SystemStructure.SummaryCount SumModel = EyouSoft.BLL.SystemStructure.SummaryCount.CreateInstance().GetSummary();
            int CityCount = 0;

            if (SumModel != null)
            {
                SumAllRoute = SumModel.RouteVirtual + SumModel.Route;
                CityCount   = SumModel.CityRouteVirtual;
            }
            SumModel = null;
            if (CityModel != null)
            {
                SumTodayRoute = CityModel.ParentTourCount + CityCount;
                thisCityName  = CityModel.CityName;
            }


            IList <EyouSoft.Model.SystemStructure.SysProvince> ProvinIdList = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetListLocalCity();

            if (ProvinIdList != null)
            {
                foreach (EyouSoft.Model.SystemStructure.SysProvince item in ProvinIdList)
                {
                    strAllLocalCity +=
                        string.Format("<li><a href='{0}'><nobr>{1}</nobr></a></li>",
                                      EyouSoft.Common.URLREWRITE.Tour.GetLocalAgencyListUrl(item.ProvinceId),
                                      item.ProvinceName);
                }
            }
            ProvinIdList = null;
        }
Beispiel #3
0
 /// <summary>
 ///当前平台用户人数
 /// </summary>
 private void GetMQUserCount()
 {
     EyouSoft.Model.SystemStructure.SummaryCount model = EyouSoft.BLL.SystemStructure.SummaryCount.CreateInstance().GetSummary();
     if (model != null)
     {
         this.labSumNumber.Text = (model.MQUser + model.MQUserVirtual).ToString();
     }
     model = null;
 }
Beispiel #4
0
 /// <summary>
 /// 更新统计信息基数值
 /// </summary>
 /// <param name="model"></param>
 /// <returns>false:失败 true:成功</returns>
 public bool SetSummaryCount(EyouSoft.Model.SystemStructure.SummaryCount model)
 {
     if (model == null)
     {
         return(false);
     }
     EyouSoftCache.Remove(CacheTag.System.SummaryCount);
     return(dal.SetSummaryCount(model));
 }
Beispiel #5
0
 /// <summary>
 /// 获取统计信息
 /// </summary>
 /// <returns></returns>
 public EyouSoft.Model.SystemStructure.SummaryCount GetSummary()
 {
     EyouSoft.Model.SystemStructure.SummaryCount model = (EyouSoft.Model.SystemStructure.SummaryCount)EyouSoftCache.GetCache(CacheTag.System.SummaryCount);
     if (model == null)
     {
         model = dal.GetSummary();
         EyouSoftCache.Add(CacheTag.System.SummaryCount, model, DateTime.Today.AddDays(1).AddMinutes(10));
     }
     return(model);
 }
Beispiel #6
0
 protected void GetHotelCount()
 {
     EyouSoft.IBLL.SystemStructure.ISummaryCount SummaryBll   = EyouSoft.BLL.SystemStructure.SummaryCount.CreateInstance();
     EyouSoft.Model.SystemStructure.SummaryCount SummaryModel = SummaryBll.GetSummary();
     if (SummaryModel != null)
     {
         this.lblHotelCount.Text = (SummaryModel.Hotel + SummaryModel.HotelVirtual).ToString();
     }
     SummaryModel = null;
     SummaryBll   = null;
 }
Beispiel #7
0
 /// <summary>
 /// 绑定
 /// </summary>
 protected void BindNum()
 {
     EyouSoft.Model.SystemStructure.SummaryCount SummaryModel = EyouSoft.BLL.SystemStructure.SummaryCount.CreateInstance().GetSummary();
     if (SummaryModel != null)
     {
         //采购商数量
         litBuy.Text = (SummaryModel.Buyer + SummaryModel.BuyerVirtual).ToString();
         //供需数量
         litNum.Text = (SummaryModel.SupplyInfos + SummaryModel.SupplyInfosVirtual).ToString();
         //供应商数量
         litSup.Text = (SummaryModel.Suppliers + SummaryModel.SuppliersVirtual).ToString();
     }
 }
Beispiel #8
0
 /// <summary>
 /// 获取网站统计数量
 /// </summary>
 private void GetDataCount()
 {
     EyouSoft.Model.SystemStructure.SummaryCount model = EyouSoft.BLL.SystemStructure.SummaryCount.CreateInstance().GetSummary();
     if (model != null)
     {
         //实际 + 虚拟
         //注册公司 = 旅行社数量 + 酒店数量 + 景区管理公司数量 + 车队数量 + 购物店数量
         lbregCount.Text =
             (model.TravelAgency + model.TravelAgencyVirtual + model.Hotel + model.HotelVirtual + model.Sight +
              model.SightVirtual + model.Car + model.CarVirtual + model.Shop + model.ShopVirtual).ToString();
         lbrouteCount.Text = (model.User + model.UserVirtual).ToString();
         lbMqCount.Text    = (model.Route + model.RouteVirtual).ToString();
     }
 }
Beispiel #9
0
        protected void btn_Save_Click(object sender, EventArgs e)
        {
            if (isManageGrant)
            {
                EyouSoft.Model.SystemStructure.SummaryCount model = new EyouSoft.Model.SystemStructure.SummaryCount();
                //获取表单数据
                int CityCount        = Utils.GetInt(Utils.GetFormValue(this.txtCityCount.UniqueID), 0);
                int WorldCount       = Utils.GetInt(Utils.GetFormValue(this.txtWorldCount.UniqueID), 0);
                int CarCount         = Utils.GetInt(Utils.GetFormValue(this.txtFactCarCount.UniqueID), 0);
                int HotelCount       = Utils.GetInt(Utils.GetFormValue(this.txtFactHotelCount.UniqueID), 0);
                int JourCount        = Utils.GetInt(Utils.GetFormValue(this.txtFactJourCount.UniqueID), 0);
                int ShopCount        = Utils.GetInt(Utils.GetFormValue(this.txtFactShopCount.UniqueID), 0);
                int SightCount       = Utils.GetInt(Utils.GetFormValue(this.txtFactSightCount.UniqueID), 0);
                int UserCount        = Utils.GetInt(Utils.GetFormValue(this.txtUserCount.UniqueID), 0);
                int InteCount        = Utils.GetInt(Utils.GetFormValue(this.txtIntemediCount.UniqueID), 0);
                int MQCount          = Utils.GetInt(Utils.GetFormValue(this.txtMQCount.UniqueID), 0);
                int FeightCount      = Utils.GetInt(Utils.GetFormValue(this.txtFeightCount.UniqueID), 0);
                int BuyersCount      = Utils.GetInt(Utils.GetFormValue(this.txtBuyersVirtual.UniqueID), 0);
                int SuppliersCount   = Utils.GetInt(Utils.GetFormValue(this.txtSuppliersVirtual.UniqueID), 0);
                int SupplyInfosCount = Utils.GetInt(Utils.GetFormValue(this.txtSupplyInfosVirtual.UniqueID), 0);
                int ScenicCount      = Utils.GetInt(Utils.GetFormValue(this.txtScenicVirtual.UniqueID), 0);

                //保存到实体类
                model.CityRouteVirtual     = CityCount;
                model.RouteVirtual         = WorldCount;
                model.CarVirtual           = CarCount;
                model.SightVirtual         = SightCount;
                model.HotelVirtual         = HotelCount;
                model.TravelAgencyVirtual  = JourCount;
                model.ShopVirtual          = ShopCount;
                model.UserVirtual          = UserCount;
                model.IntermediaryVirtual  = InteCount;
                model.MQUserVirtual        = MQCount;
                model.TicketFreightVirtual = FeightCount;
                model.BuyerVirtual         = BuyersCount;
                model.SuppliersVirtual     = SuppliersCount;
                model.SupplyInfosVirtual   = SupplyInfosCount;
                model.ScenicVirtual        = ScenicCount;

                //修改虚拟数量
                bool isFlag = EyouSoft.BLL.SystemStructure.SummaryCount.CreateInstance().SetSummaryCount(model);
                if (isFlag)
                {
                    MessageBox.ShowAndRedirect(this, "操作成功", "DataCount.aspx");
                }
                model = null;
            }
        }
Beispiel #10
0
        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();
        }
Beispiel #11
0
        /// <summary>
        /// 初始化页面数据
        /// </summary>
        private void InitPageData()
        {
            //初始化广告
            ltrAdvBraner.Text = GetAdvPath();

            //初始快速发布供求图片
            EyouSoft.SSOComponent.Entity.UserInfo SiteUserInfo = new EyouSoft.SSOComponent.Entity.UserInfo();
            bool IsLogin = EyouSoft.Security.Membership.UserProvider.IsUserLogin(out SiteUserInfo);

            if (!IsLogin && menuindex == 1)
            {
                ltrRelease.Text = string.Format("<a href=\"{0}\"><img src=\"{1}/images/UserPublicCenter/kuaichufabu.gif\" width=\"163\"border=\"0\" height=\"27\" /></a>", EyouSoft.Security.Membership.UserProvider.BuildLoginAndReturnUrl(Utils.GeneratePublicCenterUrl("/SupplierInfo/SupplierInfo.aspx", CityId), string.Empty), Domain.ServerComponents);
            }
            SiteUserInfo = null;

            //初始化统计数据
            EyouSoft.Model.SystemStructure.SummaryCount model = EyouSoft.BLL.SystemStructure.SummaryCount.CreateInstance().GetSummary();
            ltrSummaryCount.Text = string.Format("<li>注册用户<strong>({0}人)</strong>本周供需信息<strong>({1}条)</strong></li>", model.User + model.UserVirtual, model.Intermediary + model.IntermediaryVirtual);
            model = null;
        }
Beispiel #12
0
 /// <summary>
 /// 初始化数据绑定
 /// </summary>
 protected void BindInfo()
 {
     EyouSoft.Model.SystemStructure.SummaryCount model = EyouSoft.BLL.SystemStructure.SummaryCount.CreateInstance().GetSummary();
     if (model != null)
     {
         this.lblCarCount.Text           = model.Car.ToString();
         this.lblHotelCount.Text         = model.Hotel.ToString();
         this.lblJourneyCount.Text       = model.TravelAgency.ToString();
         this.lblRouteCount.Text         = model.Route.ToString();
         this.lblShopCount.Text          = model.Shop.ToString();
         this.lblSightCount.Text         = model.Sight.ToString();
         this.lblUserCount.Text          = model.User.ToString();
         this.lblIntemediCount.Text      = model.Intermediary.ToString();
         this.lblMQ_Count.Text           = model.MQUser.ToString();
         this.txtIntemediCount.Text      = model.IntermediaryVirtual.ToString();
         this.txtUserCount.Text          = model.UserVirtual.ToString();
         this.txtCityCount.Text          = model.CityRouteVirtual.ToString();
         this.txtWorldCount.Text         = model.RouteVirtual.ToString();
         this.txtFactCarCount.Text       = model.CarVirtual.ToString();
         this.txtFactHotelCount.Text     = model.HotelVirtual.ToString();
         this.txtFactJourCount.Text      = model.TravelAgencyVirtual.ToString();
         this.txtFactShopCount.Text      = model.ShopVirtual.ToString();
         this.txtFactSightCount.Text     = model.SightVirtual.ToString();
         this.txtMQCount.Text            = model.MQUserVirtual.ToString();
         this.lblFeightCount.Text        = model.TicketFreight.ToString();
         this.txtFeightCount.Text        = model.TicketFreightVirtual.ToString();
         this.lblBuyers.Text             = model.Buyer.ToString();
         this.txtBuyersVirtual.Text      = model.BuyerVirtual.ToString();
         this.lblSuppliers.Text          = model.Suppliers.ToString();
         this.txtSuppliersVirtual.Text   = model.SuppliersVirtual.ToString();
         this.lblSupplyInfos.Text        = model.SupplyInfos.ToString();
         this.txtSupplyInfosVirtual.Text = model.SupplyInfosVirtual.ToString();
         this.lblScenic.Text             = model.Scenic.ToString();
     }
     model = null;
 }
Beispiel #13
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
        }
Beispiel #14
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void InitPage()
        {
            EyouSoft.Model.CompanyStructure.SupplierInfo model = EyouSoft.BLL.CompanyStructure.SupplierInfo.CreateInstance().GetModel(CompanyID);
            if (model.State.CompanyService.IsServiceAvailable(EyouSoft.Model.CompanyStructure.SysService.HighShop))
            {
                IsHighShopSupply = true;
                WebSiteUrl       = Domain.SeniorOnlineShop + "/scenicspots/T1/Default.aspx?cid=" + CompanyID + "&CityId=" + this.SiteUserInfo.CityId;
            }
            else
            {
                switch (this.SiteUserInfo.CompanyRole.RoleItems[0])
                {
                case EyouSoft.Model.CompanyStructure.CompanyType.景区:
                    WebSiteUrl = EyouSoft.Common.URLREWRITE.ScenicSpot.ScenicDetailsUrl(CompanyID, this.SiteUserInfo.CityId);
                    //UserPublicCenter + "/ScenicManage/ScenicDetails.aspx?cid=" + this.SiteUserInfo.CompanyID + "&CityId=" + this.SiteUserInfo.CityId;
                    break;

                case EyouSoft.Model.CompanyStructure.CompanyType.酒店:
                    WebSiteUrl = Domain.UserPublicCenter + "/HotelManage/HotelDetails.aspx?cid=" + this.SiteUserInfo.CompanyID + "&CityId=" + this.SiteUserInfo.CityId;
                    break;

                case EyouSoft.Model.CompanyStructure.CompanyType.购物店:
                    WebSiteUrl = Domain.UserPublicCenter + "/ShoppingInfo/GeneralShoppingShop.aspx?cid=" + this.SiteUserInfo.CompanyID + "&CityId=" + this.SiteUserInfo.CityId;
                    break;

                case EyouSoft.Model.CompanyStructure.CompanyType.旅游用品店:
                    WebSiteUrl = EyouSoft.Common.URLREWRITE.TravelProtects.TravelDetailsUrl(this.SiteUserInfo.CityId, CompanyID);
                    //Domain.UserPublicCenter + "/TravelManage/TravelDetails.aspx?cid=" + this.SiteUserInfo.CompanyID + "&CityId=" + this.SiteUserInfo.CityId;
                    break;

                default:
                    WebSiteUrl = EyouSoft.Common.URLREWRITE.Car.CardGeneralCarShopUrl(this.SiteUserInfo.CityId, CompanyID);
                    //Domain.UserPublicCenter + "/CarInfo/GeneralCarShop.aspx?cid=" + this.SiteUserInfo.CompanyID + "&CityId=" + this.SiteUserInfo.CityId;
                    break;
                }
            }
            model = null;

            #region 公告区
            this.lblLoginUser.Text = this.SiteUserInfo.UserName;
            ltrCompanyName.Text    = this.SiteUserInfo.CompanyName;
            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 初始化运营广告

            IList <EyouSoft.Model.SystemStructure.Affiche> list = EyouSoft.BLL.SystemStructure.Affiche.CreateInstance().GetTopList(10, EyouSoft.Model.SystemStructure.AfficheType.旅行社后台广告);
            if (list != null && list.Count > 0)
            {
                this.dlAdv.DataSource = list;
                this.dlAdv.DataBind();
            }
            list = null;

            #endregion
        }
Beispiel #15
0
        /// <summary>
        /// 获取统计信息
        /// </summary>
        /// <returns></returns>
        public EyouSoft.Model.SystemStructure.SummaryCount GetSummary()
        {
            EyouSoft.Model.SystemStructure.SummaryCount model = new EyouSoft.Model.SystemStructure.SummaryCount();
            NameValueCollection setting = new NameValueCollection();
            DbCommand           dc      = this.SystemStore.GetSqlStringCommand(SQL_SummaryCount_SELECT);

            using (IDataReader dr = DbHelper.ExecuteReader(dc, this.SystemStore))
            {
                while (dr.Read())
                {
                    setting.Add(dr.GetString(dr.GetOrdinal("FieldName")), dr.GetString(dr.GetOrdinal("FieldValue")));
                }
            }
            if (!string.IsNullOrEmpty(setting["Buyers"]))
            {
                model.Buyer = int.Parse(setting["Buyers"]);
            }
            if (!string.IsNullOrEmpty(setting["BuyersVirtual"]))
            {
                model.BuyerVirtual = int.Parse(setting["BuyersVirtual"]);
            }
            if (!string.IsNullOrEmpty(setting["Suppliers"]))
            {
                model.Suppliers = int.Parse(setting["Suppliers"]);
            }
            if (!string.IsNullOrEmpty(setting["SuppliersVirtual"]))
            {
                model.SuppliersVirtual = int.Parse(setting["SuppliersVirtual"]);
            }
            if (!string.IsNullOrEmpty(setting["SupplyInfos"]))
            {
                model.SupplyInfos = int.Parse(setting["SupplyInfos"]);
            }
            if (!string.IsNullOrEmpty(setting["SupplyInfosVirtual"]))
            {
                model.SupplyInfosVirtual = int.Parse(setting["SupplyInfosVirtual"]);
            }

            if (!string.IsNullOrEmpty(setting["TravelAgency"]))
            {
                model.TravelAgency = int.Parse(setting["TravelAgency"]);
            }
            if (!string.IsNullOrEmpty(setting["Hotel"]))
            {
                model.Hotel = int.Parse(setting["Hotel"]);
            }
            if (!string.IsNullOrEmpty(setting["Sight"]))
            {
                model.Sight = int.Parse(setting["Sight"]);
            }
            if (!string.IsNullOrEmpty(setting["Car"]))
            {
                model.Car = int.Parse(setting["Car"]);
            }
            if (!string.IsNullOrEmpty(setting["Shop"]))
            {
                model.Shop = int.Parse(setting["Shop"]);
            }
            if (!string.IsNullOrEmpty(setting["Goods"]))
            {
                model.Goods = int.Parse(setting["Goods"]);
            }
            if (!string.IsNullOrEmpty(setting["User"]))
            {
                model.User = int.Parse(setting["User"]);
            }
            if (!string.IsNullOrEmpty(setting["Intermediary"]))
            {
                model.Intermediary = int.Parse(setting["Intermediary"]);
            }
            if (!string.IsNullOrEmpty(setting["Route"]))
            {
                model.Route = int.Parse(setting["Route"]);
            }
            if (!string.IsNullOrEmpty(setting["MQUser"]))
            {
                model.MQUser = int.Parse(setting["MQUser"]);
            }
            if (!string.IsNullOrEmpty(setting["TravelAgencyVirtual"]))
            {
                model.TravelAgencyVirtual = int.Parse(setting["TravelAgencyVirtual"]);
            }
            if (!string.IsNullOrEmpty(setting["HotelVirtual"]))
            {
                model.HotelVirtual = int.Parse(setting["HotelVirtual"]);
            }
            if (!string.IsNullOrEmpty(setting["SightVirtual"]))
            {
                model.SightVirtual = int.Parse(setting["SightVirtual"]);
            }
            if (!string.IsNullOrEmpty(setting["CarVirtual"]))
            {
                model.CarVirtual = int.Parse(setting["CarVirtual"]);
            }
            if (!string.IsNullOrEmpty(setting["ShopVirtual"]))
            {
                model.ShopVirtual = int.Parse(setting["ShopVirtual"]);
            }
            if (!string.IsNullOrEmpty(setting["GoodsVirtual"]))
            {
                model.GoodsVirtual = int.Parse(setting["GoodsVirtual"]);
            }
            if (!string.IsNullOrEmpty(setting["UserVirtual"]))
            {
                model.UserVirtual = int.Parse(setting["UserVirtual"]);
            }
            if (!string.IsNullOrEmpty(setting["IntermediaryVirtual"]))
            {
                model.IntermediaryVirtual = int.Parse(setting["IntermediaryVirtual"]);
            }
            if (!string.IsNullOrEmpty(setting["RouteVirtual"]))
            {
                model.RouteVirtual = int.Parse(setting["RouteVirtual"]);
            }
            if (!string.IsNullOrEmpty(setting["CityRouteVirtual"]))
            {
                model.CityRouteVirtual = int.Parse(setting["CityRouteVirtual"]);
            }
            if (!string.IsNullOrEmpty(setting["MQUserVirtual"]))
            {
                model.MQUserVirtual = int.Parse(setting["MQUserVirtual"]);
            }
            if (!string.IsNullOrEmpty(setting["TicketCompany"]))
            {
                model.TicketCompany = int.Parse(setting["TicketCompany"]);
            }
            if (!string.IsNullOrEmpty(setting["TicketCompanyVirtual"]))
            {
                model.TicketCompanyVirtual = int.Parse(setting["TicketCompanyVirtual"]);
            }
            if (!string.IsNullOrEmpty(setting["TicketFreight"]))
            {
                model.TicketFreight = int.Parse(setting["TicketFreight"]);
            }
            if (!string.IsNullOrEmpty(setting["TicketFreightVirtual"]))
            {
                model.TicketFreightVirtual = int.Parse(setting["TicketFreightVirtual"]);
            }
            if (!string.IsNullOrEmpty(setting["Scenic"]))
            {
                model.Scenic = int.Parse(setting["Scenic"]);
            }
            if (!string.IsNullOrEmpty(setting["ScenicVirtual"]))
            {
                model.ScenicVirtual = int.Parse(setting["ScenicVirtual"]);
            }
            return(model);
        }
Beispiel #16
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string requestType = Request.QueryString["type"] != null ? Request.QueryString["type"].ToString().ToLower() : "";

            if (requestType == "save")
            {
                Save();
            }
            // 判断用户是否登录,如果没有登录跳转到登录页面
            if (!IsLogin)
            {
                EyouSoft.Security.Membership.UserProvider.RedirectLogin(Domain.UserBackCenter + "/TicketsCenter/Default.aspx");
                return;
            }

            //判断用户所在公司,在运营后台是否通过了审核
            if (!IsCompanyCheck)//没有通过审核
            {
                Utils.ShowError("对不起,您还没通过审核,不能进入机票供应商后台!", "ticketscenter");
                return;
            }

            //判断用户是否是机票供应商用户
            if (!IsAirTicketSupplyUser)//不是
            {
                Utils.ShowError("对不起,您不是机票供应商用户,不能进入机票供应商后台!", "ticketscenter");
                return;
            }

            //判断用户绑定的支付帐户信息 是否已经成功加入支付圈
            EyouSoft.IBLL.TicketStructure.ITicketCompanyAccount bll =
                EyouSoft.BLL.TicketStructure.TicketCompanyAccount.CreateInstance();

            //当前只能判断支付宝接口和财付通接口的帐户
            IList <EyouSoft.Model.TicketStructure.TicketCompanyAccount> accountList =
                bll.GetTicketCompanyAccountList(SiteUserInfo.CompanyID);

            if (accountList != null && accountList.Count > 0)
            {
                foreach (EyouSoft.Model.TicketStructure.TicketCompanyAccount account in accountList)
                {
                    if (account.InterfaceType == EyouSoft.Model.TicketStructure.TicketAccountType.支付宝)
                    {
                        if (account.IsSign)//已经签约
                        {
                            continue;
                        }
                        //通过 支付宝查询是否签约接口,获取该帐户是否已经签约
                        Query_Customer queryCustomer = new Query_Customer(
                            AlipayParameters.Partner,
                            AlipayParameters.Key,
                            AlipayParameters.SignType,
                            AlipayParameters.Input_Charset,
                            account.AccountNumber);
                        Query_Customer_Result queryCustomerResult = queryCustomer.GetResult();
                        if (queryCustomerResult.IsSuccess_Refund_Charge)//已经签约
                        {
                            //将成功签约的状态保存到数据库中
                            account.IsSign = true;
                            bll.SetIsSign(account.CompanyId, account.InterfaceType, true);
                        }
                    }
                    else if (account.InterfaceType == EyouSoft.Model.TicketStructure.TicketAccountType.财付通)
                    {
                        if (account.IsSign)//已经建立委托退款关系
                        {
                            continue;
                        }
                        //通过 财付通查询是否建立委托退款关系接口,获取该帐户是否已经建立委托关系
                        trustRefundQuerys querys = new trustRefundQuerys(
                            TenpayParameters.Bargainor_ID,
                            account.AccountNumber,
                            TenpayParameters.Key,
                            Context);
                        bool isTrust = querys.IsTrustRefund();
                        if (isTrust == true)//已经建立关系
                        {
                            //将成功建立关系的状态保存到数据库中
                            account.IsSign = true;
                            bll.SetIsSign(account.CompanyId, account.InterfaceType, true);
                        }
                    }
                }
            }

            //初始化订单管理列表
            diclist = EyouSoft.BLL.TicketStructure.TicketOrder.CreateInstance().GetSupplierHandelStats(SiteUserInfo.CompanyID);

            //初始化公司信息
            ltrCompanyName.Text = SiteUserInfo.CompanyName;
            EyouSoft.IBLL.CompanyStructure.ICompanyInfo       CompanyInfo      = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
            EyouSoft.Model.CompanyStructure.CompanyDetailInfo CompanyInfoModel = CompanyInfo.GetModel(SiteUserInfo.CompanyID);
            if (CompanyInfoModel != null)
            {
                if (!String.IsNullOrEmpty(CompanyInfoModel.AttachInfo.CompanyLogo.ImagePath))
                {
                    this.imgLogo.Src = Domain.FileSystem + CompanyInfoModel.AttachInfo.CompanyLogo.ImagePath;
                }
                else
                {
                    this.imgLogo.Src = ImageServerUrl + "/images/logo.gif";
                }
            }
            ltrUserName.Text = SiteUserInfo.UserName;

            //初始化  现有运价数 ,平台用户数
            int gongYingUserCount = 0;

            EyouSoft.Model.SystemStructure.SummaryCount scount =
                EyouSoft.BLL.SystemStructure.SummaryCount.CreateInstance().GetSummary();
            if (scount != null)
            {
                gongYingUserCount = scount.TicketCompanyVirtual;
            }
            ltrGongYingCompanyCount.Text = gongYingUserCount.ToString();

            //初始化用户资料
            EyouSoft.IBLL.TicketStructure.ITicketSupplierInfo isupplierInfoBll =
                EyouSoft.BLL.TicketStructure.TicketSupplierInfo.CreateInstance();
            EyouSoft.Model.TicketStructure.TicketWholesalersAllInfo allInfo =
                isupplierInfoBll.GetSupplierInfo(SiteUserInfo.CompanyID);
            if (allInfo != null)
            {
                Default_ContactPeople.Value = allInfo.ContactName;                              //联系人
                Default_Phone.Value         = allInfo.ContactTel;                               //联系电话
                ltrUserLevel.Text           = allInfo.ProxyLev;                                 //代理级别
                ltrTicketSuccess.Text       = (allInfo.SuccessRate * 100).ToString("F1") + "%"; //出票成功率
                Default_ICP.Value           = allInfo.ICPNumber;                                //ICP备案号
                Default_Url.Value           = allInfo.WebSite;                                  //网址

                string licenceImg = allInfo.AttachInfo.BusinessCertif.LicenceImg;               //营业执照
                //判断是否有上传了营业执照
                if (!string.IsNullOrEmpty(licenceImg))                                          //有
                {
                    //显示 查看图片链接
                    ltrFile1.Text = string.Format("<a href='{0}' target='_blank'>查看</a>", Domain.FileSystem + licenceImg);
                }
                else
                {
                    ltrFile1.Text = "暂无营业执照";
                }

                string bronze = allInfo.AttachInfo.Bronze; //铜牌
                //判断是否有上传了铜牌
                if (!string.IsNullOrEmpty(bronze))         //有
                {
                    //显示 查看图片链接
                    ltrFile2.Text = string.Format("<a href='{0}' target='_blank'>查看</a>", Domain.FileSystem + bronze);
                }
                else
                {
                    ltrFile2.Text = "暂无铜牌图片";
                }

                string tradeAward = allInfo.AttachInfo.TradeAward; //行业奖项
                //判断是否有上传了行业奖项
                if (!string.IsNullOrEmpty(tradeAward))             //有
                {
                    //显示 查看图片链接
                    ltrFile3.Text = string.Format("<a href='{0}' target='_blank'>查看</a>", Domain.FileSystem + tradeAward);
                }
                else
                {
                    ltrFile3.Text = "暂无行业奖项图片";
                }

                Default_Remark.Value = allInfo.CompanyRemark;//备注
            }
        }