public ActionResult ULGeoLocationList(string cityName, string type) { GeoBiz geoBiz = GeoBiz.GetInstant(); GeoModel geo = geoBiz.GetGeoByCityName(cityName); IList <GeoLocationModel> locations = new List <GeoLocationModel>(); string typeName = ""; if (type == "geoDs") { typeName = "行政区"; locations = geoBiz.GetGeoDs(geo.id) as IList <GeoLocationModel>; } else if (type == "geoCls") { typeName = "商业区"; locations = geoBiz.GetGeoCls(geo.id) as IList <GeoLocationModel>; } else if (type == "geoLLs") { typeName = "标志物"; locations = geoBiz.GetGeoLls(geo.id) as IList <GeoLocationModel>; } ViewData[typeof(GeoLocationModel).Name] = locations; ViewData["typeName"] = typeName; return(View()); }
public ActionResult Index() { PublicBiz publicBiz = PublicBiz.GetInstant(); FrontPageModel frontPage = publicBiz.getCurFrontPage(); string[] cityNames = frontPage.homeHotCityNameArray.Split(','); GeoBiz geoBiz = GeoBiz.GetInstant(); IList <GeoModel> geos = new List <GeoModel>(); foreach (string cityName in cityNames) { GeoModel geo = geoBiz.GetGeoByCityName(cityName); geo.geoCls = geoBiz.GetGeoCls(geo.id); geo.geoDs = geoBiz.GetGeoDs(geo.id); geo.geoLls = geoBiz.GetGeoLls(geo.id); geos.Add(geo); } ViewData[typeof(IList <GeoModel>).Name] = geos; this.VdCityTopHotel(20, cityNames); this.VdHotBookingHotel(10); this.VdHotBrand(12); this.VdHotCity(15); this.setPageDesc(PublicBiz.getCurPageSeo().hotelIndexDesc); this.setPageKeyWords(PublicBiz.getCurPageSeo().hotelIndexKeywords); return(View()); }
// // GET: /Exhi/ public ActionResult Index(string cityName, string keyword) { ICriteria icr = BaseZdBiz.CreateCriteria <ExhiModel>(new PagerObject(1, 20)); GeoBiz geoBiz = GeoBiz.GetInstant(); if (WebUtil.IsPost()) { GeoModel geo = geoBiz.GetGeoByCityName(cityName); icr.Add(Restrictions.Eq("geoFk", geo.id)); icr.Add(Restrictions.Like("name", "%" + keyword + "%")); } icr.AddOrder(Order.Desc("startDate")); IList <ExhiModel> exhis = icr.List <ExhiModel>(); ViewData[typeof(ExhiModel).Name] = exhis; this.VdHotBookingHotel(10); this.VdHotBrand(12); this.VdHotCity(15); PageSeoModel seo = PublicBiz.getCurPageSeo(); this.setPageDesc(seo.exhiIndexDesc); this.setPageKeyWords(seo.exhiIndexKeywords); return(View()); }
// // GET: /Geo/ public ActionResult Index(string cityName, string geoClId, string geoDId) { GeoBiz geoBiz = GeoBiz.GetInstant(); cityName = ObjectUtil.Parse(cityName, "广州"); GeoModel geo = geoBiz.GetGeoByCityName(cityName); if (geo == null) { geo = geoBiz.GetGeoByCityName("广州"); } GeoLocationModel geoLocation = null; PageSeoModel seo = PublicBiz.getCurPageSeo(); this.setPageDesc(string.Format(seo.cityDesc, geo.cityCode, geo.cityName)); this.setPageKeyWords(string.Format(seo.cityKeywords, geo.cityCode, geo.cityName)); if (!string.IsNullOrEmpty(geoClId)) { geoLocation = BaseZdBiz.Load <GeoCommercialLocationModel>(Restrictions.Eq("geoFk", geo.id), Restrictions.Eq("locationId", geoClId)); this.setPageDesc(string.Format(seo.cityClDesc, geo.cityCode, geo.cityName, geoLocation.locationId, geoLocation.name)); this.setPageKeyWords(string.Format(seo.cityClKeywords, geo.cityCode, geo.cityName, geoLocation.locationId, geoLocation.name)); } else if (!string.IsNullOrEmpty(geoDId)) { geoLocation = BaseZdBiz.Load <GeoDistrictsModel>(Restrictions.Eq("geoFk", geo.id), Restrictions.Eq("locationId", geoDId)); this.setPageDesc(string.Format(seo.cityDDesc, geo.cityCode, geo.cityName, geoLocation.locationId, geoLocation.name)); this.setPageKeyWords(string.Format(seo.cityDKeywords, geo.cityCode, geo.cityName, geoLocation.locationId, geoLocation.name)); } ViewData[typeof(GeoLocationModel).Name] = geoLocation; ViewData[typeof(GeoModel).Name] = geo; return(View()); }
public ActionResult Search(string cityName, string keyWord, string geoClId, string geoDId, DateTime?checkInDate) { PublicBiz publicBiz = PublicBiz.GetInstant(); FrontPageModel frontPage = publicBiz.getCurFrontPage(); GeoBiz geoBiz = GeoBiz.GetInstant(); GeoModel geo = geoBiz.GetGeoByCityName(cityName); this.VdGeoLocation(geo); GeoLocationModel geoLocation = null; PageSeoModel seo = PublicBiz.getCurPageSeo(); this.setPageDesc(string.Format(seo.cityDesc, geo.cityCode, geo.cityName)); this.setPageKeyWords(string.Format(seo.cityKeywords, geo.cityCode, geo.cityName)); if (!string.IsNullOrEmpty(geoClId)) { geoLocation = BaseZdBiz.Load <GeoCommercialLocationModel>(Restrictions.Eq("geoFk", geo.id), Restrictions.Eq("locationId", geoClId)); this.setPageDesc(string.Format(seo.cityClDesc, geo.cityCode, geo.cityName, geoLocation.locationId, geoLocation.name)); this.setPageKeyWords(string.Format(seo.cityClKeywords, geo.cityCode, geo.cityName, geoLocation.locationId, geoLocation.name)); } else if (!string.IsNullOrEmpty(geoDId)) { geoLocation = BaseZdBiz.Load <GeoDistrictsModel>(Restrictions.Eq("geoFk", geo.id), Restrictions.Eq("locationId", geoDId)); this.setPageDesc(string.Format(seo.cityDDesc, geo.cityCode, geo.cityName, geoLocation.locationId, geoLocation.name)); this.setPageKeyWords(string.Format(seo.cityDKeywords, geo.cityCode, geo.cityName, geoLocation.locationId, geoLocation.name)); } else if (!string.IsNullOrEmpty(keyWord)) { this.setPageDesc(string.Format(seo.hotelSearchDesc, cityName, keyWord, (checkInDate ?? DateTime.Now).ToShortDateString())); this.setPageKeyWords(string.Format(seo.hotelSearchKeywords, cityName, keyWord, (checkInDate ?? DateTime.Now).ToShortDateString())); } ViewData[typeof(GeoLocationModel).Name] = geoLocation; ICriteria icr = BaseZdBiz.CreateCriteria <BrandModel>(); string[] brandNames = frontPage.searchBrandNameArray.Split(','); icr.Add(Restrictions.In("brandName", brandNames)); IList <BrandModel> brands = icr.List <BrandModel>(); ViewData[typeof(BrandModel).Name] = brands; this.VdHotCity(15); return(View()); }
protected void VdGeoLocation(GeoModel geo) { GeoBiz geoBiz = GeoBiz.GetInstant(); ViewData[VD_KEY_GEO] = geo; IList <GeoCommercialLocationModel> geoCls = geoBiz.GetGeoCls(geo.id); ViewData[VD_KEY_GEO_CLS] = geoCls; IList <GeoDistrictsModel> geoDs = geoBiz.GetGeoDs(geo.id); ViewData[VD_KEY_GEO_DS] = geoDs; IList <GeoLandmarkLocationModel> geoLLs = geoBiz.GetGeoLls(geo.id); ViewData[VD_KEY_GEO_LLS] = geoLLs; }
public ActionResult DivGeoLoctaionTip(string cityName, string cityId) { GeoBiz geoBiz = GeoBiz.GetInstant(); GeoModel geo = null; if (!string.IsNullOrEmpty(cityName)) { geo = geoBiz.GetGeoByCityName(cityName); } else if (!string.IsNullOrEmpty(cityId)) { geo = geoBiz.GetGeoByCityId(cityId); } else { geo = geoBiz.GetGeoByCityName("广州"); } VdGeoLocation(geo); return(View()); }
public ActionResult TableGeoLocationList(string cityName) { GeoBiz geoBiz = GeoBiz.GetInstant(); GeoModel geo = geoBiz.GetGeoByCityName(cityName); IList <GeoCommercialLocationModel> geoCls = geoBiz.GetGeoCls(geo.id); ViewData[typeof(GeoCommercialLocationModel).Name] = geoCls; //icr = BaseZdBiz.CreateCriteria<GeoDistrictsModel>(pager); //icr.Add(Restrictions.Eq("geoFk", geo.id)); IList <GeoDistrictsModel> geoDs = geoBiz.GetGeoDs(geo.id); ViewData[typeof(GeoDistrictsModel).Name] = geoDs; //icr = BaseZdBiz.CreateCriteria<GeoLandmarkLocationModel>(pager); //icr.Add(Restrictions.Eq("geoFk", geo.id)); IList <GeoLandmarkLocationModel> geoLLs = geoBiz.GetGeoLls(geo.id); ViewData[typeof(GeoLandmarkLocationModel).Name] = geoLLs; return(View()); }
public ActionResult Index() { GeoBiz geoBiz = GeoBiz.GetInstant(); PublicBiz publicBiz = PublicBiz.GetInstant(); FrontPageModel frontPage = publicBiz.getCurFrontPage(); // icr=BaseZdBiz.CreateCriteria<HotelCommentModel>(new PagerObject(1,10)); // IList<HotelCommentModel> listComment = icr.List<HotelCommentModel>(); // ViewData[typeof(HotelCommentModel).Name] = listComment; this.VdHotNews(4); this.VdHotBrand(16); string[] cityNames = frontPage.homeHotCityNameArray.Split(','); this.VdCityTopHotel(10, cityNames); this.VdHotBookingHotel(10); this.VdHotCommentHotel(10); this.VdHotCity(15); this.setPageDesc(PublicBiz.getCurPageSeo().homeIndexDesc); this.setPageKeyWords(PublicBiz.getCurPageSeo().homeIndexKeywords); return(View()); }
protected void VdCityTopHotel(int rows, string[] cityNames) { Dictionary <string, IList <HotelDetailModel> > dictCityHotels = new Dictionary <string, IList <HotelDetailModel> >(); Dictionary <string, IList <GeoCommercialLocationModel> > dictCityGeoCls = new Dictionary <string, IList <GeoCommercialLocationModel> >(); ICriteria icr = null; GeoBiz geoBiz = GeoBiz.GetInstant(); DataBiz dataBiz = DataBiz.GetInstant(); IList <HotelDetailModel> hotelDetails = dataBiz.getHotHotelDetail(); foreach (string cityName in cityNames) { IList <HotelDetailModel> tempHotelDetails = new List <HotelDetailModel>(); GeoModel geo = geoBiz.GetGeoByCityName(cityName); string cityId = geo.cityCode; foreach (HotelDetailModel hotelDetail in hotelDetails) { if (tempHotelDetails.Count == rows) { break; } if (hotelDetail.city == cityId) { tempHotelDetails.Add(hotelDetail); } } dictCityHotels.Add(cityName, tempHotelDetails); IList <GeoCommercialLocationModel> geoCls = geoBiz.GetGeoCls(geo.id); dictCityGeoCls.Add(cityName, geoCls); } ViewData[VD_KEY_CITY_HOT_HOTEL_DICT] = dictCityHotels; ViewData[VD_KEY_CITY_HOT_GEO_CLS_DICT] = dictCityGeoCls; }
public ActionResult ViewHotelSearch(string viewName, string cityName, DateTime?checkInDate, DateTime?checkOutDate, string keyword, string hotelId , string star, string priceRegexp, string geoLlId, string geoClId, string geoDid, string brandName, string orderbyCode, string orderbyType , decimal?startLng, decimal?endLng, decimal?startLat, decimal?endLat, string geoMode, int?radius ) { ELongApiBiz elongBiz = ELongApiBiz.GetInstant(); GeoBiz geoBiz = GeoBiz.GetInstant(); string cityId = geoBiz.GetGeoByCityName(cityName).cityCode; ToyzNumberRangeObject priceRange = null; GetHotelConditionForGetHotelList condition = new GetHotelConditionForGetHotelList(); condition.CheckInDate = checkInDate ?? this.getDefaultCheckInDate(); condition.CheckOutDate = checkOutDate ?? this.getDefaultCheckOutDate(); condition.CityId = cityId; //condition.HotelName = keyword; condition.MaxRows = this.getPager().size; condition.PageIndex = this.getPager().page; if (string.IsNullOrEmpty(geoMode) || geoMode == "0") { if (!string.IsNullOrEmpty(keyword)) { condition.HotelName = keyword; } if (!string.IsNullOrEmpty(hotelId)) { condition.HotelId = hotelId; condition.CityId = null; } if (!string.IsNullOrEmpty(brandName)) { condition.HotelName = brandName; } if (!string.IsNullOrEmpty(star)) { condition.StarCode = star; } if (!string.IsNullOrEmpty(priceRegexp)) { priceRegexp = HttpUtility.UrlDecode(priceRegexp); IToyzObjcet toyzPrice = NumberUtil.ParseToyz(priceRegexp); priceRange = toyzPrice as ToyzNumberRangeObject; if (priceRange != null) { condition.LowestRate = priceRange.min; condition.HighestRate = priceRange.max; } } if (!string.IsNullOrEmpty(geoLlId)) { condition.LandmarkLocationID = geoLlId; } else if (!string.IsNullOrEmpty(geoClId)) { condition.CommercialLocationId = geoClId; } else if (!string.IsNullOrEmpty(geoDid)) { condition.DistrictId = geoDid; } } else if (geoMode == "1") { condition.StartLatitude = startLat ?? 0; condition.StartLongitude = startLng ?? 0; condition.EndLatitude = endLat ?? 0; condition.EndLongitude = endLng ?? 0; condition.PositionModeCode = geoMode; } else if (geoMode == "2") { condition.StartLatitude = startLat ?? 0; condition.StartLongitude = startLng ?? 0; condition.EndLatitude = condition.StartLatitude; condition.EndLongitude = condition.StartLongitude; condition.PositionModeCode = geoMode; condition.Radius = radius ?? 0; } if (!string.IsNullOrEmpty(orderbyCode)) { condition.OrderByCode = orderbyCode; condition.OrderTypeCode = orderbyType; } else { condition.OrderTypeCode = "desc"; } PageList <HotelForGetHotelList> hotels = elongBiz.getHotelList(condition); /* * if(priceRegexp!=null){ * foreach (HotelForGetHotelList hotel in hotels) { * foreach() * RoomForGetHotelList[] rooms = hotel.Rooms; * } */ IList <string> hotelIds = new List <string>(); foreach (HotelForGetHotelList hotel in hotels) { hotelIds.Add(hotel.HotelId); } ICriteria icr = BaseZdBiz.CreateCriteria <HotelDetailModel>(); icr.Add(Restrictions.In("id", hotelIds.ToArray())); IList <HotelDetailModel> hotelDetails = icr.List <HotelDetailModel>(); icr = BaseZdBiz.CreateCriteria <HotelFeatrueInfoModel>(); icr.Add(Restrictions.In("hotelId", hotelIds.ToArray())); IList <HotelFeatrueInfoModel> hotelFeats = icr.List <HotelFeatrueInfoModel>(); Dictionary <string, HotelDetailModel> dictHotelDetails = hotelDetails.ToDictionary(p => p.id); Dictionary <string, HotelFeatrueInfoModel> dictHotelFeat = hotelFeats.ToDictionary(p => p.hotelId); ViewData[typeof(PageList <HotelForGetHotelList>).Name] = hotels; ViewData[typeof(Dictionary <string, HotelDetailModel>).Name] = dictHotelDetails; ViewData[typeof(HotelFeatrueInfoModel).Name] = dictHotelFeat; ViewData[typeof(ToyzNumberRangeObject).Name] = priceRange; return(View(viewName)); }
// // GET: /Hotel/ public ActionResult Detail(string hotelId) { HotelDetailModel hotelDetail = BaseZdBiz.Load <HotelDetailModel>(hotelId); ViewData[typeof(HotelDetailModel).Name] = hotelDetail; HotelFeatrueInfoModel hotelFi = BaseZdBiz.Load <HotelFeatrueInfoModel>(hotelId); ViewData[typeof(HotelFeatrueInfoModel).Name] = hotelFi; HotelModel hotel = BaseZdBiz.Load <HotelModel>(hotelId); ViewData[typeof(HotelModel).Name] = hotel; ICriteria icr = BaseZdBiz.CreateCriteria <HotelImageModel>(); icr.Add(Restrictions.Eq("hotelFk", hotelId)); IList <HotelImageModel> images = icr.List <HotelImageModel>(); ViewData[typeof(HotelImageModel).Name] = images; GeoBiz geoBiz = GeoBiz.GetInstant(); GeoModel geo = geoBiz.GetGeoByCityId(hotelDetail.city); this.VdGeoLocation(geo); icr = BaseZdBiz.CreateCriteria <HotelLandMarkModel>(); icr.Add(Restrictions.Eq("hotelFk", hotelDetail.id)); IList <HotelLandMarkModel> hotelLls = icr.List <HotelLandMarkModel>(); ViewData[typeof(HotelLandMarkModel).Name] = hotelLls; icr = BaseZdBiz.CreateCriteria <HotelSurroundingAttractionModel>(); icr.Add(Restrictions.Eq("hotelFk", hotelDetail.id)); IList <HotelSurroundingAttractionModel> hotelSas = icr.List <HotelSurroundingAttractionModel>(); ViewData[typeof(HotelSurroundingAttractionModel).Name] = hotelSas; icr = BaseZdBiz.CreateCriteria <HotelSurroundingCommerceModel>(); icr.Add(Restrictions.Eq("hotelFk", hotelDetail.id)); IList <HotelSurroundingCommerceModel> hotelScs = icr.List <HotelSurroundingCommerceModel>(); ViewData[typeof(HotelSurroundingCommerceModel).Name] = hotelScs; icr = BaseZdBiz.CreateCriteria <HotelSurroundingRestaurantModel>(); icr.Add(Restrictions.Eq("hotelFk", hotelDetail.id)); IList <HotelSurroundingRestaurantModel> hotelSrs = icr.List <HotelSurroundingRestaurantModel>(); ViewData[typeof(HotelSurroundingRestaurantModel).Name] = hotelSrs; icr = BaseZdBiz.CreateCriteria <HotelSurroundingShopModel>(); icr.Add(Restrictions.Eq("hotelFk", hotelDetail.id)); IList <HotelSurroundingShopModel> hotelSss = icr.List <HotelSurroundingShopModel>(); ViewData[typeof(HotelSurroundingShopModel).Name] = hotelSss; icr = BaseZdBiz.CreateCriteria <HotelTrafficInfoModel>(); icr.Add(Restrictions.Eq("hotelFk", hotelDetail.id)); IList <HotelTrafficInfoModel> hotelTrs = icr.List <HotelTrafficInfoModel>(); ViewData[typeof(HotelTrafficInfoModel).Name] = hotelTrs; icr = BaseZdBiz.CreateCriteria <HotelCommentModel>(new PagerObject(1, 5)); icr.Add(Restrictions.Eq("hotelFk", hotelDetail.id)); icr.AddOrder(Order.Desc("createDate")); IList <HotelCommentModel> hotelComments = icr.List <HotelCommentModel>(); ViewData[typeof(HotelCommentModel).Name] = hotelComments; PageSeoModel seo = PublicBiz.getCurPageSeo(); this.setPageDesc(string.Format(seo.hotelDetailDesc, hotel.hotelId, hotel.hotelName, hotelDetail.address, hotelDetail.description, geo.cityCode, geo.cityName)); this.setPageKeyWords(string.Format(seo.hotelDetailKeywords, hotel.hotelId, hotel.hotelName, hotelDetail.address, hotelDetail.description, geo.cityCode, geo.cityName)); this.VdHotCity(15); return(View()); }
public void StartGenPageFile() { isStop = false; int count = 0; GeoBiz geoBiz = GeoBiz.GetInstant(); if (cbHomeIndex.Checked) { count += genPageFile("/Public/Home/Index", tbPathIndex.Text); } if (cbHotelIndex.Checked) { count += genPageFile("/Public/Hotel/Index", tbPathHotel.Text); } if (cbCommentIndex.Checked) { count += genPageFile("/Public/Comment/Index", tbPathComment.Text); } if (cbBrandIndex.Checked) { count += genPageFile("/Public/Brand/Index", tbPathBrand.Text); } if (cbNewsIndex.Checked) { count += genPageFile("/Public/News/Index", tbPathNews.Text); } if (cbExhiIndex.Checked) { count += genPageFile("/Public/Exhi/Index", tbPathExhi.Text); } ICriteria icr = BaseZdBiz.CreateCriteria <HotelModel>(); if (cbHotelDetail.Checked) { IList <HotelModel> hotels = icr.List <HotelModel>(); count = 0; foreach (HotelModel hotel in hotels) { if (isStop) { break; } count += genPageFile( string.Format("/Public/Hotel/Detail?hotelId={0}", hotel.hotelId) , string.Format(tbPathHotelDetail.Text, hotel.hotelId) ); this.tsslResult.Text = string.Format("({0}/{1}),{2}:{3} 生成中...", count, hotels.Count, hotel.hotelId, hotel.hotelName); } } if (cbBrandDetail.Checked) { icr = BaseZdBiz.CreateCriteria <BrandModel>(); IList <BrandModel> brands = icr.List <BrandModel>(); count = 0; foreach (BrandModel brand in brands) { if (isStop) { break; } count += genPageFile( string.Format("/Public/Brand/BrandHotel?brandId={0}", brand.brandID) , string.Format(tbPathBrandDetail.Text, brand.brandID) ); this.tsslResult.Text = string.Format("({0}/{1}),{2}:{3} 生成中...", count, brands.Count, brand.brandID, brand.brandName); } } if (cbNewsHotel.Checked) { icr = BaseZdBiz.CreateCriteria <NewsModel>(); IList <NewsModel> newss = icr.List <NewsModel>(); count = 0; foreach (NewsModel news in newss) { if (isStop) { break; } count += genPageFile( string.Format("/Public/News/NewsHotel?newsId={0}", news.id) , string.Format(tbPathNewsDetail.Text, news.id) ); this.tsslResult.Text = string.Format("({0}/{1}),{2}:{3} 生成中...", count, newss.Count, news.id, news.title); } } if (cbExhiHotel.Checked) { icr = BaseZdBiz.CreateCriteria <ExhiModel>(); IList <ExhiModel> exhis = icr.List <ExhiModel>(); count = 0; foreach (ExhiModel exhi in exhis) { if (isStop) { break; } count += genPageFile( string.Format("/Public/Exhi/ExhiHotel?exhiId={0}", exhi.id) , string.Format(tbPathExhiDetail.Text, exhi.id) ); this.tsslResult.Text = string.Format("({0}/{1}),{2}:{3} 生成中...", count, exhis.Count, exhi.id, exhi.name); } } if (cbCityHotel.Checked) { IList <GeoModel> geos = BaseZdBiz.List <GeoModel>(); foreach (GeoModel geo in geos) { if (isStop) { break; } count += genPageFile( string.Format("/Public/Hotel/Search?cityName={0}", geo.cityName) , string.Format(tbCityHotel.Text.Trim(), geo.cityName, geo.cityCode) ); this.tsslResult.Text = string.Format("({0}/{1}),{2}:{3} 生成中...", count, geos.Count, geo.cityCode, geo.cityName); if (cbClHotel.Checked) { IList <GeoCommercialLocationModel> geoCls = geoBiz.GetGeoCls(geo.id); int c = 0; foreach (GeoCommercialLocationModel geoCl in geoCls) { if (isStop) { break; } c += genPageFile( string.Format("/Public/Hotel/Search?cityName={0}&geoClId={1}", geo.cityName, geoCl.locationId) , string.Format(tbClHotel.Text.Trim(), geo.cityCode, geoCl.locationId) ); this.tsslResult.Text = string.Format("({0}/{1}),{2}:{3}:{4} 生成中...", c, geoCls.Count, geo.cityCode, geo.cityName, geoCl.name); } } if (cbDHotel.Checked) { IList <GeoDistrictsModel> geoDs = geoBiz.GetGeoDs(geo.id); int c = 0; foreach (GeoDistrictsModel geoD in geoDs) { if (isStop) { break; } c += genPageFile( string.Format("/Public/Hotel/Search?cityName={0}&geoDId={1}", geo.cityName, geoD.locationId) , string.Format(tbDHotel.Text.Trim(), geo.cityCode, geoD.locationId) ); this.tsslResult.Text = string.Format("({0}/{1}),{2}:{3}:{4} 生成中...", c, geoDs.Count, geo.cityCode, geo.cityName, geoD.name); } } } } this.tsslResult.Text = string.Format("{0}完成", DateTime.Now.ToString()); }