コード例 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         this.litImgFrist.Text = "<a href='javascript:void(0);'><img src=" + ImageManage.GetImagerServerUrl(1) + "/images/hotel/main2.jpg" + "  width=\"" + imageWidth + "\"/></a>";
     }
 }
コード例 #2
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            CityId = EyouSoft.Common.Function.StringValidate.GetIntValue(Request.QueryString["CityId"]);

            ImageServerPath = ImageManage.GetImagerServerUrl(1);
        }
コード例 #3
0
 protected override void OnPreInit(EventArgs e)
 {
     base.OnPreInit(e);
     imageServerUrl = ImageManage.GetImagerServerUrl(1);
     isLogin        = EyouSoft.Security.Membership.UserProvider.IsUserLogin();
     Model.CompanyStructure.CompanyUser user = EyouSoft.BLL.CompanyStructure.CompanyUser.CreateInstance().GetModel("50caa9ca-f15c-440e-8d91-8d160de3c382");
     _userInfo = new UserInfo()
     {
         CityId      = 1,
         CompanyID   = "1e5edc20-4b83-4c16-8c52-008e0c09bd1e",
         UserName    = user.UserName,
         ContactInfo = user.ContactInfo,
         DepartId    = "1",
         ProvinceId  = 1,
         DepartName  = "432fds",
         IsAdmin     = true,
         ID          = "50caa9ca-f15c-440e-8d91-8d160de3c382",
     };
     Model.CompanyStructure.CompanyRole r = new EyouSoft.Model.CompanyStructure.CompanyRole();
     r.SetRole(EyouSoft.Model.CompanyStructure.CompanyType.专线);
     r.SetRole(EyouSoft.Model.CompanyStructure.CompanyType.组团);
     _userInfo.CompanyRole = r;
     _userInfo.AreaId      = new int[3] {
         1, 2, 3
     };
     //string[] arr = user.AreaList.Split(',');
     //for (int i = 0; i < arr.Length; i++)
     //{
     //    _userInfo.AreaId[i] = Int32.Parse(arr[i]);
     //}
 }
コード例 #4
0
 public string RouteList;    //最新发布线路
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (Utils.GetQueryStringValue("CityId") != "")
         {
             CityId = Convert.ToInt32(Utils.GetQueryStringValue("CityId"));
         }
         Imagepath = ImageManage.GetImagerServerUrl(1);
         Initialize();
     }
 }
コード例 #5
0
        protected override void OnPreInit(EventArgs e)
        {
            base.OnPreInit(e);

            _masterUserInfo = new UserProvider().GetMaster();

            if (_masterUserInfo != null)
            {
                if (_masterUserInfo.AreaId == null)
                {
                    _masterUserInfo.AreaId = new int[] { };
                }
            }

            _isLogin = _masterUserInfo != null ? true : false;

            if (_isLogin == false)
            {
                string isAjax = Request.QueryString["isajax"];
                if (!string.IsNullOrEmpty(isAjax))
                {
                    if (isAjax == "yes")
                    {
                        Response.Clear();
                        Response.Write("notLogin");
                        Response.End();
                    }
                    else
                    {
                        UserProvider.RedirectLoginOpenTopPageYunYing();
                    }
                }
                else
                {
                    UserProvider.RedirectLoginOpenTopPageYunYing();
                }
            }

            imageServerUrl = ImageManage.GetImagerServerUrl(1);

            //_masterUserInfo = new MasterUserInfo()
            //{
            //    UserName="******",
            //    ContactFax = "0571-88652510",
            //    ContactMobile = "13522090770",
            //    ContactName = "管理员_测试",
            //    ContactTel = "0571-5521047",
            //    IsDisable = true,
            //    ID = 4,
            //    AreaId=new int[4]{1,2,3,4}
            //};
        }
コード例 #6
0
        /// <summary>
        /// 获得酒店星级图片
        /// </summary>
        /// <param name="leave"></param>
        /// <returns></returns>
        protected string GetImageByLeave(int leave)
        {
            StringBuilder str = new StringBuilder();

            if (leave > 5)
            {
                leave = leave - 5;
            }
            for (int i = 0; i < leave; i++)
            {
                str.Append("<img src=\"" + ImageManage.GetImagerServerUrl(1) + "/images/hotel/start_02.gif\" width=\"12px\" height=\"13px\" align='absmiddle' />");
            }
            return(str.ToString());
        }
コード例 #7
0
        protected string CompanyId = string.Empty; //公司id
        #endregion

        #region 页面加载
        protected void Page_Load(object sender, EventArgs e)
        {
            CompanyId             = this.SiteUserInfo.CompanyID;
            this.ImgSave.ImageUrl = ImageManage.GetImagerServerUrl(1) + "/images/jipiao/bc_btn.jpg";
            // 初始化旅客类型
            BindVisitorType();
            //绑定证件类型
            BindCardType();
            //初始化国家
            InitCountryList();

            if (!string.IsNullOrEmpty(Utils.InputText(Context.Request.QueryString["EditId"])))
            {
                EditId = Utils.GetString(Context.Request.QueryString["EditId"], "");
            }
            if (!Page.IsPostBack)
            {
                //根据旅客ID获得常旅客实体对象
                EyouSoft.Model.TicketStructure.TicketVistorInfo TicketVisitorInfo = EyouSoft.BLL.TicketStructure.TicketVisitor.CreateInstance().GetTicketVisitorInfo(EditId.ToString());

                this.Master.Naviagtion = AirTicketNavigation.机票常旅客管理;
                this.Title             = "常旅客添加_机票";

                #region 初始化表单数据
                if (TicketVisitorInfo != null)
                {
                    this.ddlCardType.SelectedValue     = ((int)TicketVisitorInfo.CardType).ToString();
                    this.ddlVisitoryType.SelectedValue = ((int)TicketVisitorInfo.VistorType).ToString();
                    this.ddlCountry.SelectedValue      = ((int)TicketVisitorInfo.NationInfo.NationId).ToString();
                    this.txtCardNo.Value = TicketVisitorInfo.CardNo.Trim();
                    this.txtCname.Value  = TicketVisitorInfo.ChinaName.Trim();
                    this.txtEname.Value  = TicketVisitorInfo.EnglishName.Trim();
                    this.txtPhone.Value  = TicketVisitorInfo.ContactTel.Trim();
                    this.txtRemark.Value = TicketVisitorInfo.Remark.Trim();
                    EyouSoft.Model.CompanyStructure.Sex Gender = TicketVisitorInfo.ContactSex;
                    if (Gender == EyouSoft.Model.CompanyStructure.Sex.男)
                    {
                        this.gender_male.Checked = true;
                    }
                    else
                    {
                        this.gender_female.Checked = true;
                    }
                }
                //释放资源
                TicketVisitorInfo = null;
                #endregion
            }
        }
コード例 #8
0
        /// <summary>
        /// Override OnInit
        /// </summary>
        /// <param name="e"></param>
        protected override void OnInit(EventArgs e)
        {
            //初始化公司ID
            string currentUrlPath = HttpContext.Current.Request.ServerVariables["Http_Host"];

            //如果使用独立域名访问网店,则根据域名查询所属公司ID.
            if (Domain.SeniorOnlineShop.IndexOf(currentUrlPath) == -1)
            {
                EyouSoft.Model.SystemStructure.SysCompanyDomain cDomianModel = EyouSoft.BLL.SystemStructure.SysCompanyDomain.CreateInstance().
                                                                               GetSysCompanyDomain(EyouSoft.Model.SystemStructure.DomainType.网店域名, currentUrlPath);
                if (cDomianModel != null)
                {
                    this._companyid  = cDomianModel.CompanyId;
                    this.TABLINKS_SY = "/";
                }
            }

            //如果没有使用独立域名访问网店,则从QueryString集合中查找cid参数,获取公司ID
            if (string.IsNullOrEmpty(this._companyid))
            {
                this._companyid = Utils.GetQueryStringValue("cid");
            }

            //获取高级网店信息和公司信息
            this._companyinfo = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(this._companyid);
            if (this._companyinfo == null)
            {
                Utils.ShowError("高级网店不存在!", "SeniorShop");
                return;
            }

            //判断是否开通高级网店
            if (this._companyinfo.CompanyRole.HasRole(EyouSoft.Model.CompanyStructure.CompanyType.专线) && !Utils.IsOpenHighShop(this._companyid))
            {
                Utils.ShowError("该公司未开通高级网店!", "SeniorShop");
                return;
            }

            this._companyeshopinfo = EyouSoft.BLL.ShopStructure.HighShopCompanyInfo.CreateInstance().GetModel(this._companyid);

            this.ImageServerUrl = ImageManage.GetImagerServerUrl(1);

            Utils.EShopTemplateValidate(this.CompanyId, _companyeshopinfo.TemplateId);

            base.OnInit(e);
        }
コード例 #9
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         string ImageServerPath = ImageManage.GetImagerServerUrl(1);
         if (TabIndex == 0)
         {
             imagePath1 = ImageServerPath + "/images/barcj.gif";
             imagePath2 = ImageServerPath + "/images/barcjun.gif";
         }
         else
         {
             imagePath1 = ImageServerPath + "/images/barcjun.gif";
             imagePath2 = ImageServerPath + "/images/barcj.gif";
         }
     }
 }
コード例 #10
0
        protected override void OnPreInit(EventArgs e)
        {
            base.OnPreInit(e);
            imageServerUrl = ImageManage.GetImagerServerUrl(1);
            UserInfo userInfo = null;

            isLogin = EyouSoft.Security.Membership.UserProvider.IsUserLogin(out userInfo);

            if (userInfo != null)
            {
                _userInfo = userInfo;
                //判断当前用户所在的公司是否通过审核
                _IsCompanyCheck = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetCompanyState(_userInfo.CompanyID).IsCheck;
                //如果用户属于【车队,购物店,酒店,旅游用品店】,则_IsSupplyUser=true,_IsAirTicketSupplyUser=false
                //如果用户属于【机票供应商】,则_IsSupplyUser=false,_IsAirTicketSupplyUser=true
                //如果用户属于【旅行社,景区】,则_IsAirTicketSupplyUser=false
                if (userInfo.CompanyRole.HasRole(EyouSoft.Model.CompanyStructure.CompanyType.车队) ||
                    userInfo.CompanyRole.HasRole(EyouSoft.Model.CompanyStructure.CompanyType.购物店) ||
                    userInfo.CompanyRole.HasRole(EyouSoft.Model.CompanyStructure.CompanyType.景区) ||
                    userInfo.CompanyRole.HasRole(EyouSoft.Model.CompanyStructure.CompanyType.酒店) ||
                    userInfo.CompanyRole.HasRole(EyouSoft.Model.CompanyStructure.CompanyType.旅游用品店))
                {
                    _IsAirTicketSupplyUser = false;
                    _IsTravelUser          = false;
                }
                else if (userInfo.CompanyRole.HasRole(EyouSoft.Model.CompanyStructure.CompanyType.机票供应商))
                {
                    _IsAirTicketSupplyUser = true;
                    _IsTravelUser          = false;
                }
                else if (userInfo.CompanyRole.Length > 0 && userInfo.CompanyRole.HasRole(EyouSoft.Model.CompanyStructure.CompanyType.随便逛逛))  //身份角色长度为0,表示随便逛逛
                {
                    //zwc 20101122 增加随便逛逛
                    _IsTemporaryUser = true;
                }
                else
                {
                    _IsAirTicketSupplyUser = false;
                    _IsTravelUser          = true;
                }
            }
        }
コード例 #11
0
 //加载公司信息
 private void InitCompanyInfo()
 {
     EyouSoft.Model.CompanyStructure.CompanyDetailInfo compDetail = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(this.SiteUserInfo.CompanyID); //公司详细信息
     if (compDetail != null)
     {
         ltr_BrandName.Text   = compDetail.CompanyBrand;
         ltr_CompanyName.Text = compDetail.CompanyName;
         ltr_Address.Text     = compDetail.CompanyAddress;
         ltr_LinkPerson.Text  = compDetail.ContactInfo.ContactName;
         ltr_Faxs.Text        = compDetail.ContactInfo.Fax;
         ltr_Mobile.Text      = compDetail.ContactInfo.Mobile;
         ltr_Phone.Text       = compDetail.ContactInfo.Tel;
         if (!string.IsNullOrEmpty(compDetail.ContactInfo.MQ))
         {
             MQHtml = string.Format("<img src=\"{0}/Images/seniorshop/mqonline.gif\" width=\"70\" height=\"18\" />", ImageManage.GetImagerServerUrl(1));
         }
         ImagePath = Utils.GetLineShopImgPath(compDetail.AttachInfo.CompanyImg.ImagePath, 6);  //宣传图片
         LogoPath  = Utils.GetLineShopImgPath(compDetail.AttachInfo.CompanyLogo.ImagePath, 2); //Logo
     }
     compDetail = null;
 }
コード例 #12
0
        private void InitCompanyInfo()
        {
            // 公司基本信息
            EyouSoft.Model.CompanyStructure.CompanyDetailInfo model = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(SiteUserInfo.CompanyID);
            if (model != null)
            {
                if (model.AttachInfo != null && model.AttachInfo.CompanyShopBanner != null && !String.IsNullOrEmpty(model.AttachInfo.CompanyShopBanner.ImagePath))
                {
                    this.imgBanner.Src = Domain.FileSystem + model.AttachInfo.CompanyShopBanner.ImagePath;
                }
                this.ltrContactName.Text = model.ContactInfo.ContactName;
                this.ltrTel.Text         = model.ContactInfo.Tel;
                this.ltrFax.Text         = model.ContactInfo.Fax;
                this.ltrWebSite.Text     = model.WebSite;
                this.ltrAdress.Text      = model.CompanyAddress;
                this.ltrMQ.Text          = Utils.GetMQ(model.ContactInfo.MQ);
                this.ltrQQ.Text          = Utils.GetQQ(model.ContactInfo.QQ);
            }
            model = null;

            EyouSoft.Model.CompanyStructure.CompanyAttachInfo attachmodel = EyouSoft.BLL.CompanyStructure.CompanyAttachInfo.CreateInstance().GetModel(SiteUserInfo.CompanyID);
            if (attachmodel != null && attachmodel.CompanyLogo != null && !String.IsNullOrEmpty(attachmodel.CompanyLogo.ImagePath))
            {
                this.imgLogo.Src = Domain.FileSystem + attachmodel.CompanyLogo.ImagePath;
            }
            else
            {
                this.imgLogo.Src = Domain.FileSystem + "/images/shopnoimg/nologo.gif";
            }

            EyouSoft.Model.ShopStructure.HighShopCompanyInfo CompanyInfo = EyouSoft.BLL.ShopStructure.HighShopCompanyInfo.CreateInstance().GetModel(SiteUserInfo.CompanyID);
            if (CompanyInfo != null && !String.IsNullOrEmpty(CompanyInfo.CompanyInfo))
            {
                // 关于我们
                this.ltrAboutUsTitle.Text = SiteUserInfo.CompanyName;
                this.ltrAboutUs.Text      = Utils.GetText(Utils.InputText(CompanyInfo.CompanyInfo), 150, true) + "<span style=\"background: #FFF6C7; border: 1px solid #FF8624;color: #339933; float: center; text-align:left;height:15px; width:165px; cursor:pointer;\" onclick=\"return boxymethods('/eshop/setaboutus.aspx','景区介绍',730,470);\"><img src=\"" + ImageManage.GetImagerServerUrl(1) + "/Images/seniorshop/gan.gif\" /><strong>【添加景区介绍】</strong></span>";

                this.ltrCopyright.Text = CompanyInfo.ShopCopyRight;   // 版权
            }
            CompanyInfo = null;

            // 广告图片
            EyouSoft.Model.CompanyStructure.SupplierInfo smodel = EyouSoft.BLL.CompanyStructure.SupplierInfo.CreateInstance().GetModel(SiteUserInfo.CompanyID);
            if (smodel != null && smodel.ProductInfo != null && smodel.ProductInfo.Count > 0)
            {
                this.imgAdv.Src = Domain.FileSystem + smodel.ProductInfo[0].ImagePath.ToString();
            }
            else
            {
                this.imgAdv.Src = ImageManage.GetImagerServerUrl(1) + "/images/shopnoimg/norotapic.gif";
            }
            smodel = null;

            // 友情链接
            IList <EyouSoft.Model.ShopStructure.HighShopFriendLink> FriendLinkList = EyouSoft.BLL.ShopStructure.HighShopFriendLink.CreateInstance().GetList(SiteUserInfo.CompanyID);
            string tmp = "<b><font class=\"C_G\">友情链接:</font></b>";

            if (FriendLinkList != null && FriendLinkList.Count > 0)
            {
                foreach (EyouSoft.Model.ShopStructure.HighShopFriendLink linkModel in FriendLinkList)
                {
                    tmp += linkModel.LinkName + "|";
                }
                if (tmp.EndsWith("|"))
                {
                    tmp = tmp.Substring(0, tmp.Length - 1);
                }
            }
            this.ltrFriendLink.Text = tmp;
            FriendLinkList          = null;
        }
コード例 #13
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsLogin)
            {
                Response.Clear();
                Response.Write("你尚未登录");
                Response.End();
                return;
            }
            int    m = 100;
            string y = Utils.GetMoney(m);

            airTypestr = Utils.GetInt(Utils.GetQueryStringValue("airType"), 1);
            FreightType airType = (FreightType)airTypestr;

            startCity = Utils.GetQueryStringValue("startCity");
            toCity    = Utils.GetQueryStringValue("toCity");
            int peopleNum = Utils.GetInt(Utils.GetQueryStringValue("peopleNum"), -1);

            startDatestr = Utils.GetQueryStringValue("startDate");
            backDatestr  = Utils.GetQueryStringValue("backDate");
            DateTime startDate  = Utils.GetDateTime(startDatestr);
            DateTime backDate   = Utils.GetDateTime(backDatestr);
            string   airCompany = Utils.GetQueryStringValue("airCompany");

            airCompany = Regex.Replace(airCompany, @"\(.*\)", "");
            int airId = -1;

            pType = Utils.GetInt(Utils.GetQueryStringValue("peopleType"), 0);
            if (pType == 0)
            {
                peopleType = new Nullable <TravellerType>(TravellerType.内宾);
            }
            else if (pType == 1)
            {
                peopleType = new Nullable <TravellerType>(TravellerType.外宾);
            }
            startCityName = Server.UrlDecode((Request.QueryString["startCity1"] ?? ""));
            toCityName    = Server.UrlDecode((Request.QueryString["toCity1"] ?? ""));
            //string[] sCityArr = startCity.Split('|');
            //string[] tCityArr = toCity.Split('|');
            //if (sCityArr.Length > 1 && tCityArr.Length > 1)
            //{
            startCityId = Utils.GetInt(startCity);
            toCityId    = Utils.GetInt(toCity);
            //}
            IList <EyouSoft.Model.TicketStructure.TicketFlightCompany> airList = EyouSoft.BLL.TicketStructure.TicketFlightCompany.CreateInstance().GetTicketFlightCompanyList(airCompany);

            if (airList != null && airList.Count == 1 && airList[0].AirportName == airCompany)
            {
                airId = airList[0].Id;
            }
            else
            {
                airId = -1;
            }


            QueryTicketFreightInfo queryInfo = new QueryTicketFreightInfo(null, null, startCityId, toCityId, peopleNum, startDate, backDate, airId, peopleType);

            EyouSoft.IBLL.TicketStructure.ITicketFreightInfo tfiBll = EyouSoft.BLL.TicketStructure.TicketFreightInfo.CreateInstance();


            imageServerUrl = ImageManage.GetImagerServerUrl(1);

            IList <EyouSoft.Model.TicketStructure.TicketFreightInfoList> tfilList = tfiBll.GetFreightInfoList(queryInfo);

            if (tfilList != null && tfilList.Count > 0)
            {
                acl_rptCustomerList.DataSource = tfilList;
                acl_rptCustomerList.DataBind();
            }
            else
            {
                acl_rptCustomerList.EmptyText = "<table><tr><td style='text-align:center'>暂无机票信息</td></tr><table>";
            }
        }
コード例 #14
0
        /// <summary>
        /// Override OnInit
        /// </summary>
        /// <param name="e"></param>
        protected override void OnInit(EventArgs e)
        {
            this.ImageServerUrl = ImageManage.GetImagerServerUrl(1);

            //初始化公司ID
            string currentUrlPath = HttpContext.Current.Request.ServerVariables["Http_Host"];

            //如果使用独立域名访问网店,则根据域名查询所属公司ID.
            if (Domain.SeniorOnlineShop.IndexOf(currentUrlPath) == -1)
            {
                EyouSoft.Model.SystemStructure.SysCompanyDomain cDomianModel = EyouSoft.BLL.SystemStructure.SysCompanyDomain.CreateInstance().
                                                                               GetSysCompanyDomain(EyouSoft.Model.SystemStructure.DomainType.网店域名, currentUrlPath);
                if (cDomianModel != null)
                {
                    this._companyid  = cDomianModel.CompanyId;
                    this.TABLINKS_SY = "/";
                }
            }

            //如果没有使用独立域名访问网店,则从QueryString集合中查找cid参数,获取公司ID
            if (string.IsNullOrEmpty(this._companyid))
            {
                this._companyid = Utils.GetQueryStringValue("cid");
            }

            //获取高级网店信息和公司信息
            this._companyinfo = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(this._companyid);
            if (this._companyinfo == null)
            {
                Utils.ShowError("高级网店不存在!", "景区高级网店");
                return;
            }

            //判断是否开通高级网店
            if (this._companyinfo.CompanyRole.HasRole(EyouSoft.Model.CompanyStructure.CompanyType.景区) && !Utils.IsOpenHighShop(this._companyid))
            {
                Utils.ShowError("该公司未开通高级网店!", "景区高级网店");
                return;
            }

            this._companyeshopinfo = EyouSoft.BLL.ShopStructure.HighShopCompanyInfo.CreateInstance().GetModel(this._companyid);

            //高级网店配置信息
            if (this._companyeshopinfo == null)
            {
                Utils.ShowError("高级网店未做任何配置,暂时不能访问!", "景区高级网店");
                return;
            }

            if (string.IsNullOrEmpty(this.CompanyEShopInfo.GoogleMapKey) || this.CompanyEShopInfo.GoogleMapKey.ToLower() == "undefined")
            {
                GoogleMapKey =
                    EyouSoft.Common.ConfigModel.ConfigClass.GetConfigString("appSettings", "GoogleMapsAPIKEY");
            }
            else
            {
                GoogleMapKey = this.CompanyEShopInfo.GoogleMapKey;
            }

            base.OnInit(e);
        }
コード例 #15
0
 protected override void OnInit(EventArgs e)
 {
     base.OnInit(e);
     imageServerUrl = ImageManage.GetImagerServerUrl(1);
 }
コード例 #16
0
        public void ProcessRequest(HttpContext context)
        {
            EyouSoft.SSOComponent.Entity.UserInfo SiteUserInfo = null;
            bool IsLogin = EyouSoft.Security.Membership.UserProvider.IsUserLogin(out SiteUserInfo);
            context.Response.ContentType = "text/plain";
            string ImageServerURL = ImageManage.GetImagerServerUrl(1);
            #region 参数生成
            int pageIndex = 1;
            int pageSize = 10;
            int recordCount = 0;
            int ItemIndex = 1;
            int ChildItemIndex = 1;
            string TopicId = string.Empty;
            int TopicType = 1; //回复类型 1:供求 2:嘉宾访谈
            int CurrCityId = 0; //当前销售城市
            StringBuilder StrCommHTML = new StringBuilder();
            if (context.Request.QueryString["pageIndex"] != null && StringValidate.IsInteger(context.Request.QueryString["pageIndex"].ToString()))
            {
                pageIndex = int.Parse(context.Request.QueryString["pageIndex"].ToString());
            }
            if (context.Request.QueryString["pageSize"] != null && StringValidate.IsInteger(context.Request.QueryString["pageSize"].ToString()))
            {
                pageSize = int.Parse(context.Request.QueryString["pageSize"].ToString());
            }
            if (context.Request.QueryString["TopicType"] != null && StringValidate.IsInteger(context.Request.QueryString["TopicType"].ToString()))
            {
                TopicType = int.Parse(context.Request.QueryString["TopicType"].ToString());
            }
            if (context.Request.QueryString["TopicId"] != null)
            {
                TopicId = StringValidate.SafeRequest(context.Request.QueryString["TopicId"].ToString());
            }
            if (context.Request.QueryString["cityid"] != null)
            {
                int.TryParse(context.Request.QueryString["cityid"].ToString(), out CurrCityId);
            }
            #endregion

            #region 生成回复列表
            EyouSoft.Model.CompanyStructure.CompanyType? UnitType =null;
            string GoToUrl=string.Empty;
            EyouSoft.IBLL.CommunityStructure.IExchangeComment ICommentBll = EyouSoft.BLL.CommunityStructure.ExchangeComment.CreateInstance();
            IList<EyouSoft.Model.CommunityStructure.ExchangeComment> list = new List<EyouSoft.Model.CommunityStructure.ExchangeComment>();
            if (TopicType == 1)
            {
                list = ICommentBll.GetSupplyComment(pageSize, pageIndex, ref recordCount, TopicId);
            }
            else
            {
                list = ICommentBll.GetGuestInterview(pageSize, pageIndex, ref recordCount, TopicId);
            }
            StrCommHTML.Append("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"border:1px solid #ccc;\">");
            StrCommHTML.Append("<tr>");
            StrCommHTML.AppendFormat("<td style=\"background:url({0}/images/seniorshop/gqplhang.gif) repeat-x; height:29px; font-size:14px; padding-left:10px; text-align:left;\">", ImageServerURL);
            StrCommHTML.AppendFormat("<a name=\"d1\"> </a><strong>网友评论| 共{0}条</strong></td>", recordCount);
            StrCommHTML.Append("</tr><tr><td>");
            if (list != null && list.Count > 0)
            {
                foreach (EyouSoft.Model.CommunityStructure.ExchangeComment parent in list)
                {

                    UnitType = Utils.GetCompanyType(parent.CompanyId);
                    GoToUrl = UnitType.HasValue ? Utils.GetCompanyDomain(parent.CompanyId, UnitType.Value) : "javascript:void(0);";
                    UnitType = null;
                    StrCommHTML.Append("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"border-bottom:1px dashed #d5d5d5; margin-top:5px;\">");
                    StrCommHTML.Append("<tr>");
                    StrCommHTML.Append("<td width=\"78%\" align=\"left\">");
                    StrCommHTML.AppendFormat("<em style=\"color:#009900; font-size:18px; font-weight:bold;\">{0}</em>楼 ", (pageIndex - 1) * pageSize + ItemIndex);
                    StrCommHTML.AppendFormat("<span class=\"gqlvse\"><strong><a {2} href=\"{0}\" class=\"font12_grean\">{1}</a></strong></span>", GoToUrl, parent.IsAnonymous ? "" : parent.CompanyName,UnitType.HasValue?"target=\"_blank\"":"");
                    StrCommHTML.AppendFormat("<label class=\"gqlvse\"><strong> {0} </strong></label> {1}说: ", parent.IsAnonymous ? "网友" : parent.OperatorName, EyouSoft.Common.Utils.GetMQ(parent.OperatorMQ));
                    StrCommHTML.Append("</td>");
                    //StrCommHTML.AppendFormat("<td width=\"22%\" align=\"right\">{0} {1}</td>", parent.IssueTime.ToString("yyyy-MM-dd HH:mm"), IsLogin ? string.Format("|<a href=\"javascript:void(0);\" onclick=\"gotoComment('{0}',{1});return false\">回复</a> ", parent.ID, (pageIndex - 1) * pageSize + ItemIndex) : "");
                    StrCommHTML.AppendFormat("<td width=\"22%\" align=\"right\">{0} {1}</td>", parent.IssueTime.ToString("yyyy-MM-dd HH:mm"), string.Format("|<a href=\"javascript:void(0);\" onclick=\"gotoComment('{0}',{1});return false\">回复</a> ", parent.ID, (pageIndex - 1) * pageSize + ItemIndex));
                    StrCommHTML.Append("</tr>");
                    StrCommHTML.Append("<tr>");
                    if (parent.IsHasNextLevel)
                    {
                        StrCommHTML.Append("<td colspan=\"2\" align=\"left\" class=\"detaillou\">");
                        IList<EyouSoft.Model.CommunityStructure.ExchangeComment> childList = ICommentBll.GetCommentByCommentId(parent.ID);
                        if (childList != null && childList.Count > 0)
                        {
                            for (int i = 0; i < childList.Count + 1; i++)
                            {
                                StrCommHTML.Append("<div>");
                            }
                            StrCommHTML.AppendFormat("<p><span>{0}</span></p>{1}</div>", ChildItemIndex, StringValidate.TextToHtml(parent.CommentText));
                            ChildItemIndex += 1;
                            foreach (EyouSoft.Model.CommunityStructure.ExchangeComment child in childList)
                            {
                                UnitType = Utils.GetCompanyType(parent.CompanyId);
                                GoToUrl = UnitType.HasValue ? Utils.GetCompanyDomain(parent.CompanyId, UnitType.Value) : "javascript:void(0);";
                                UnitType = null;
                                StrCommHTML.AppendFormat("<p><a  {5} href=\"{0}\">{1}</a>{2}<span>{3}</span></p>{4}</div>"
                                   , GoToUrl, child.IsAnonymous ? "" : child.CompanyName, child.IsAnonymous ? "网友" : child.OperatorName, ChildItemIndex,
                                   StringValidate.TextToHtml(child.CommentText),UnitType.HasValue?"target=\"_blank\"":"");
                                ChildItemIndex += 1;
                            }
                        }
                    }
                    else
                    {
                        StrCommHTML.AppendFormat("<td colspan=\"2\" align=\"left\" style=\"padding:10px; font-size:14px;\">{0}</td>",StringValidate.TextToHtml(parent.CommentText));
                    }
                    StrCommHTML.Append("</td></tr></table>");
                    ItemIndex += 1;
                    ChildItemIndex = 1;
                }
            }
            else
            {
                StrCommHTML.Append("暂无回复!");
            }
            StrCommHTML.Append("</td></tr></table>");
            StrCommHTML.AppendFormat("<input type=\"hidden\" id=\"hIndex\" value=\"{0}\">", pageIndex);
            StrCommHTML.AppendFormat("<input type=\"hidden\" id=\"hSize\" value=\"{0}\">", pageSize);
            StrCommHTML.AppendFormat("<input type=\"hidden\" id=\"hRecordCount\" value=\"{0}\">", recordCount);
            #endregion

            context.Response.Write(StrCommHTML.ToString());
            context.Response.End();
        }
コード例 #17
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            #region 初始化_IsSeniorShopPage属性

            /*if (Request.CurrentExecutionFilePath.ToLower().IndexOf("/seniorshop/") != -1)
             * {
             *  _IsSeniorShopPage = true;
             * }*/
            this._IsSeniorShopPage = Utils.IsEShopPage();
            #endregion

            #region 取销售城市
            _cityId = Utils.GetInt(Request.QueryString["CityId"]);
            int        isCut = Utils.GetInt(Request.QueryString["isCut"]);
            HttpCookie c*k   = Request.Cookies[COOKIE_KEY_CITY];
            if (_cityId > 0 && isCut == 1)
            {
                //string domainSuffix = Utils.GetDomainSuffix(Utils.AbsoluteWebRoot);
                //if (!String.IsNullOrEmpty(domainSuffix))
                //{
                //    response.Cookies[LoginCookie_UserName].Domain = domainSuffix;
                //}
                //存cookie
                if (c*k == null)
                {
                    c*k         = new System.Web.HttpCookie(COOKIE_KEY_CITY);
                    c*k.Value   = _cityId.ToString();
                    c*k.Expires = DateTime.Now.AddDays(10);
                    //c*k.Domain = ".tongye114.com";
                    Response.Cookies.Add(c*k);
                }
                else //修改
                {
                    Response.Cookies.Remove(COOKIE_KEY_CITY);
                    Response.Cookies[COOKIE_KEY_CITY].Expires = DateTime.Now.AddDays(-1);
                    c*k         = new HttpCookie(COOKIE_KEY_CITY);
                    c*k.Value   = _cityId.ToString();
                    c*k.Expires = DateTime.Now.AddDays(10);
                    //c*k.Domain = ".tongye114.com";
                    Response.Cookies.Add(c*k);
                }
            }
            else
            {
                if (_cityId <= 0)
                {
                    //取cookie
                    int cokV = Utils.GetInt(c*k != null ? c*k.Value : "");
                    if (cokV > 0)
                    {
                        _cityId = cokV;
                    }
                    else  //IP
                    {
                        string Remote_IP = StringValidate.GetRemoteIP();

                        EyouSoft.Model.SystemStructure.CityBase cityModel = EyouSoft.BLL.SystemStructure.SysCity.CreateInstance().GetClientCityByIp(Remote_IP);
                        if (cityModel != null && cityModel.CityId > 0)
                        {
                            _cityId = cityModel.CityId;
                        }
                        else//默认值(杭州)
                        {
                            //_cityId = 362;
                            _cityId = 0;
                        }
                        cityModel = null;
                    }
                }
            }
            #endregion
            _imageServerPath = ImageManage.GetImagerServerUrl(1);

            //如果取不到城市信息,则跳转到 切换城市页面
            if (_cityId == 0)
            {
                if (IsNeedLinkToCutCityPage() == true)
                {
                    Response.Redirect(Domain.UserPublicCenter + "/ToCutCity.aspx", true);
                }
            }
            #region 城市Model

            //如果取不到城市信息,则跳转到 切换城市页面
            EyouSoft.Model.SystemStructure.SysCity thisCityModel = EyouSoft.BLL.SystemStructure.SysCity.CreateInstance().GetSysCityModel(_cityId);
            if (thisCityModel != null)//找到
            {
                _cityModel = new EyouSoft.Model.SystemStructure.SysCity();
                _cityModel = thisCityModel;
            }
            else  //没有找到
                  //_cityId = 362;
                  //EyouSoft.Model.SystemStructure.SysCity hzCityModel = EyouSoft.BLL.SystemStructure.SysCity.CreateInstance().GetSysCityModel(CityId);
                  //_cityModel = new EyouSoft.Model.SystemStructure.SysCity();
                  //_cityModel = hzCityModel;
                  //hzCityModel = null;
                  //判断 是否需要 跳转到 选择城市 页面
            {
                if (IsNeedLinkToCutCityPage() == true)//需要
                {
                    Response.Redirect(Domain.UserPublicCenter + "/ToCutCity.aspx", true);
                }
                else//不需要
                {
                    //如果找不到城市信息,则默认初始化 为 杭州
                    _cityId    = 362;
                    _cityModel = EyouSoft.BLL.SystemStructure.SysCity.CreateInstance().GetSysCityModel(_cityId);
                }
            }



            thisCityModel = null;
            #endregion
        }
コード例 #18
0
        private void InitCompanyInfo()
        {
            EyouSoft.Model.CompanyStructure.CompanyDetailInfo compDetail = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(CompanyID); //公司详细信息
            if (compDetail != null)
            {
                CompanyBrand        = compDetail.CompanyBrand;
                ltr_Address.Text    = "地址:" + compDetail.CompanyAddress;
                ltr_LinkPerson.Text = "联系人:" + compDetail.ContactInfo.ContactName;
                ltr_Fax.Text        = "传真:" + compDetail.ContactInfo.Fax;
                ltr_Mobile.Text     = "手机:" + compDetail.ContactInfo.Mobile;
                ltr_Phone.Text      = "电话:" + compDetail.ContactInfo.Tel;

                if (!string.IsNullOrEmpty(compDetail.ContactInfo.MQ))
                {
                    Mqpath = string.Format("<img src=\"{0}/Images/seniorshop/mqonline.gif\" width=\"70\" height=\"18\" />", ImageManage.GetImagerServerUrl(1));
                }//compDetail.AttachInfo.CompanyShopBanner.ImagePath  图片路径
                BannerImage     = EyouSoft.Common.Utils.GetEShopImgOrFalash(compDetail.AttachInfo.CompanyShopBanner.ImagePath, "javascript:void(0)"); //高级网店头部图片
                CompanyCardPath = Utils.GetLineShopImgPath(compDetail.AttachInfo.CompanyCard.ImagePath, 1); //卡片
            }
            compDetail = null;
            //版权显示
            EyouSoft.Model.ShopStructure.HighShopCompanyInfo info = EyouSoft.BLL.ShopStructure.HighShopCompanyInfo.CreateInstance().GetModel(CompanyID);
            if (info != null)
            {
                ltrCopyRight.Text = info.ShopCopyRight;
            }
            info = null;
        }
コード例 #19
0
        /// <summary>
        /// 初始化控件
        /// </summary>
        private void InitData()
        {
            #region 图片新闻

            CommonTopicControl1.PartType  = UserPublicCenter.SupplierInfo.UserControl.CommonTopicControl.PartTypes.资讯;
            CommonTopicControl1.TopicType = UserPublicCenter.SupplierInfo.UserControl.CommonTopicControl.TopicTypes.图文广告列表;

            #endregion

            #region 最多查看资讯绑定

            rptMostArticle.DataSource = EyouSoft.BLL.CommunityStructure.InfoArticle.CreateInstance().GetTopListByReadCount(8, null, null);
            rptMostArticle.DataBind();

            #endregion

            IList <EyouSoft.Model.AdvStructure.AdvInfo> List = EyouSoft.BLL.AdvStructure.Adv.CreateInstance().GetAdvs(CurrCityId, EyouSoft.Model.AdvStructure.AdvPosition.供求信息频道供求信息文章页图片广告1);
            if (List != null && List.Count > 0)
            {
                ltrAdv.Text = string.Format("<a target=\"_blank\" href=\"{0}\" title=\"{1}\"><img alt=\"{2}\" src=\"{3}\" width=\"250\" height=\"170\" /></a>", List[0].RedirectURL, List[0].Title, List[0].Title, Domain.FileSystem + List[0].ImgPath);
                List.Clear();
            }
            List = null;

            if (IsLogin)
            {
                EyouSoft.Security.Membership.UserProvider.IsUserLogin(out SiteUserInfo);
                panIsLogin.Visible     = true;
                ltrContactName.ToolTip = SiteUserInfo.ContactInfo.ContactName;
                ltrContactName.Text    = Utils.GetText2(SiteUserInfo.ContactInfo.ContactName, 5, false);
                ltrCompanyname.ToolTip = SiteUserInfo.CompanyName;
                ltrCompanyname.Text    = Utils.GetText2(SiteUserInfo.CompanyName, 10, false);
                EyouSoft.Model.CompanyStructure.CompanyAttachInfo model = EyouSoft.BLL.CompanyStructure.CompanyAttachInfo.CreateInstance().GetModel(SiteUserInfo.CompanyID);
                if (model != null)
                {
                    string CompanyLogo = ImageManage.GetImagerServerUrl(1) + "/Images/UserPublicCenter/defaultlogo.jpg";
                    if (model.CompanyLogo.ImagePath.Length > 0)
                    {
                        CompanyLogo = Domain.FileSystem + model.CompanyLogo.ImagePath;
                    }
                    ltrLog.Text = string.Format("<img src=\"{0}\" width=\"90\" height=\"56\" />", CompanyLogo);
                }
                model = null;
                EyouSoft.Model.CompanyStructure.CompanyDetailInfo CompanyModel = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(SiteUserInfo.CompanyID);
                if (CompanyModel != null)
                {
                    aSupplyInfo1.HRef = Domain.UserBackCenter + "/supplyinformation/allsupplymanage.aspx";
                    aSupplyInfo2.HRef = Domain.UserBackCenter + "/supplyinformation/allsupplymanage.aspx";
                    aSupplyInfo3.HRef = Domain.UserBackCenter + "/supplyinformation/hassupplyfavorites.aspx";
                    //if (CompanyModel.BusinessProperties != EyouSoft.Model.CompanyStructure.BusinessProperties.旅游社)
                    //{
                    //    EyouSoft.Model.CompanyStructure.CompanyService ServiceModel = CompanyModel.StateMore.CompanyService; ;
                    //    bool IsOpenHighShop = ServiceModel.IsServiceAvailable(EyouSoft.Model.CompanyStructure.SysService.HighShop);
                    //    if (!IsOpenHighShop)
                    //    {
                    //        aSupplyInfo1.HRef = "javascript:;";
                    //        aSupplyInfo1.Attributes.Add("onclick", "alert('您还没有开通高级网店,无法使用此功能!');return false;");
                    //        aSupplyInfo2.HRef = "javascript:;";
                    //        aSupplyInfo2.Attributes.Add("onclick", "alert('您还没有开通高级网店,无法使用此功能!');return false;");
                    //        aSupplyInfo3.HRef = "javascript:;";
                    //        aSupplyInfo3.Attributes.Add("onclick", "alert('您还没有开通高级网店,无法使用此功能!');return false;");
                    //    }
                    //    ServiceModel = null;
                    //}
                    EyouSoft.Model.CompanyStructure.CompanyType?cType = Utils.GetCompanyType(SiteUserInfo.CompanyID);
                    if (cType.HasValue)
                    {
                        aShop.HRef = Utils.GetCompanyDomain(SiteUserInfo.CompanyID, cType.Value);
                    }
                    else
                    {
                        aShop.HRef   = "javascript:void(0);";
                        aShop.Target = "";
                    }
                }
                CompanyModel = null;
            }
            else
            {
                panLogin.Visible = true;
                panUrl.Visible   = true;
            }
        }
コード例 #20
0
        protected override void OnPreInit(EventArgs e)
        {
            base.OnPreInit(e);
            imageServerUrl = ImageManage.GetImagerServerUrl(1);

            //初始化当前MQ用户
            _MQLoginId = Utils.GetInt(Request.QueryString[Utils.MQLoginIdKey]);
            _password  = Utils.GetQueryStringValue(Utils.MQPwKey);
            if (_MQLoginId > 0 && !String.IsNullOrEmpty(_password))
            {
                _userInfo = new UserProvider().MQLogin(_MQLoginId, _password);
                UserProvider.GenerateIMFrameUserLoginCookies(UserProvider.GenerateSSOToken(_MQLoginId.ToString()), _MQLoginId.ToString());
            }
            else
            {
                _userInfo = new UserProvider().GetMQUser();
            }

            isLogin = _userInfo != null ? true : false;

            if (!isLogin)
            {
                Response.Clear();
                Response.Write("用户名或者密码失效,请重新点击右边的菜单按钮!");
                Response.End();
            }

            _MQLoginId = Convert.ToInt32(_userInfo.ContactInfo.MQ);
            _password  = _userInfo.PassWordInfo.MD5Password;


            _IsCompanyCheck = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetCompanyState(_userInfo.CompanyID).IsCheck;

            //_password = "******";
            //_MQLoginId = 6709;
            //UserInfo userInfo = null;
            ////isLogin = EyouSoft.Security.Membership.UserProvider.IsUserLogin(out userInfo);
            //isLogin = true;
            ///* UserId:tongye114 */
            //string UserId = "751ae431-8117-4fc3-b9c9-6c4977b57d45";
            ///* UserId :liuyl_test */
            /////UserId = "3f11ad31-4596-403b-b4a8-05f8fdd9dd31";
            ///*test */
            ////UserId = "BC2BAF09-694D-45E0-A5E3-3DDF1E4E2398";
            //Model.CompanyStructure.CompanyUser user = EyouSoft.BLL.CompanyStructure.CompanyUser.CreateInstance().GetModel(UserId);
            //_userInfo = new UserInfo()
            //{
            //    CityId = 1,
            //    CompanyID = user.CompanyID,
            //    UserName = user.UserName,
            //    DepartId = "1",
            //    ProvinceId = 1,
            //    DepartName = "432fds",
            //    IsAdmin = true,
            //    ID = UserId,
            //};
            ////_userInfo.ContactInfo = user.ContactInfo;
            //_userInfo.ContactInfo.ContactName = user.ContactInfo.ContactName;
            //_userInfo.ContactInfo.Email = user.ContactInfo.Email;
            //_userInfo.ContactInfo.MQ = user.ContactInfo.MQ;
            //_userInfo.ContactInfo.QQ = user.ContactInfo.QQ;

            //_IsCompanyCheck = true;
            ////if (userInfo != null)
            ////{
            ////    _userInfo = userInfo;
            ////    _IsCompanyCheck = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetCompanyState(_userInfo.CompanyID).IsCheck;
            ////    if (userInfo.CompanyRole.HasRole(EyouSoft.Model.CompanyStructure.CompanyType.车队)
            ////        || userInfo.CompanyRole.HasRole(EyouSoft.Model.CompanyStructure.CompanyType.购物店)
            ////        || userInfo.CompanyRole.HasRole(EyouSoft.Model.CompanyStructure.CompanyType.景区)
            ////        || userInfo.CompanyRole.HasRole(EyouSoft.Model.CompanyStructure.CompanyType.酒店)
            ////        || userInfo.CompanyRole.HasRole(EyouSoft.Model.CompanyStructure.CompanyType.旅游用品店))
            ////    {
            ////        _IsSupplyUser = true;
            ////    }
            ////    else
            ////    {
            ////        _IsSupplyUser = false;
            ////    }
            ////}
            ////Model.CompanyStructure.CompanyRole r = new EyouSoft.Model.CompanyStructure.CompanyRole();
            ////r.SetRole(EyouSoft.Model.CompanyStructure.CompanyType.专线);
            ////r.SetRole(EyouSoft.Model.CompanyStructure.CompanyType.组团);
            //_userInfo.CompanyRole.SetRole(EyouSoft.Model.CompanyStructure.CompanyType.专线);
            //_userInfo.CompanyRole.SetRole(EyouSoft.Model.CompanyStructure.CompanyType.组团);
            //_userInfo.CompanyRole.SetRole(EyouSoft.Model.CompanyStructure.CompanyType.地接);
            //_userInfo.AreaId = new int[6] { 1, 2, 3,4,5,241 };
            ////,7,8,9,1,2,3,4,5,6,10,11,12,13,14,15,16,17,18,19,20,21,22,23,2
            //_userInfo.PermissionList = new int[24] { 7, 8, 9, 1, 2, 3, 4, 5, 6, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 };
            ////_userInfo.AreaId = new int[user.Area.Count] { };
            ////string[] arr = user.are.Split(',');
            ////for (int i = 0; i < user.Area.Count; i++)
            ////{
            ////    _userInfo.AreaId[i] = user.Area[i].AreaId;
            ////}

            #region 更新cookie  修改人: 杜桂云
            CityId = Utils.GetInt(Request.QueryString["CityId"]);
            if (CityId > 0 && !string.IsNullOrEmpty(Request.QueryString["isCut"]))
            {
                //存cookie
                if (Response.Cookies["MQCityId"] == null)
                {
                    System.Web.HttpCookie cookie = new System.Web.HttpCookie("MQCityId");
                    cookie.Value   = CityId.ToString();
                    cookie.Expires = DateTime.Now.AddDays(10);
                    Response.Cookies.Add(cookie);
                }
                else //修改
                {
                    Response.Cookies["MQCityId"].Value   = CityId.ToString();
                    Response.Cookies["MQCityId"].Expires = DateTime.Now.AddDays(10);
                }
            }
            else
            {
                if (CityId <= 0)
                {
                    //取cookie
                    if (Utils.GetInt(Response.Cookies["MQCityId"].Value) > 0)
                    {
                        CityId = Utils.GetInt(Response.Cookies["MQCityId"].Value);
                    }
                    else  //
                    {
                        if (SiteUserInfo.CityId > 0)
                        {
                            CityId = SiteUserInfo.CityId;
                        }
                        else//默认值(杭州)
                        {
                            CityId = 362;
                        }
                    }
                }
            }
            #endregion

            #region 城市Model

            EyouSoft.Model.SystemStructure.SysCity thisCityModel = EyouSoft.BLL.SystemStructure.SysCity.CreateInstance().GetSysCityModel(CityId);
            if (thisCityModel != null)
            {
                CityModel              = new EyouSoft.Model.SystemStructure.SysCity();
                CityModel.CityId       = CityId;
                CityModel.CityName     = thisCityModel.CityName;
                CityModel.ProvinceId   = thisCityModel.ProvinceId;
                CityModel.ProvinceName = thisCityModel.ProvinceName;
            }
            else
            {
                CityId = 362;
                EyouSoft.Model.SystemStructure.SysCity hzCityModel = EyouSoft.BLL.SystemStructure.SysCity.CreateInstance().GetSysCityModel(CityId);
                CityModel              = new EyouSoft.Model.SystemStructure.SysCity();
                CityModel.CityId       = CityId;
                CityModel.CityName     = hzCityModel.CityName;
                CityModel.ProvinceId   = hzCityModel.ProvinceId;
                CityModel.ProvinceName = hzCityModel.ProvinceName;
                hzCityModel            = null;
            }
            thisCityModel = null;
            #endregion
        }