/// <summary> /// 地标行政区查询缓存指令 /// </summary> /// <param name="cityCode"></param> /// <param name="type"></param> static void CreateLandMarkSearchRQRequest(string cityCode, EyouSoft.HotelBI.LandMarkSearchType type) { EyouSoft.HotelBI.AvailCache.MLandMarkSearchRQInfo info = new EyouSoft.HotelBI.AvailCache.MLandMarkSearchRQInfo(); info.CityCode = cityCode; info.LandMarkType = type; System.Diagnostics.Stopwatch stop = new System.Diagnostics.Stopwatch(); stop.Reset(); stop.Start(); Console.WriteLine(info.RequestXML); string s = EyouSoft.HotelBI.Utils.CreateRequest(info.RequestXML, true); Console.WriteLine(s); stop.Stop(); Console.WriteLine("执行时间:" + stop.ElapsedMilliseconds); }
/// <summary> /// 地标行政区查询缓存指令 /// </summary> static void CreateLandMarkSearchRQRequest() { string cityCode = "PEK"; EyouSoft.HotelBI.LandMarkSearchType type = EyouSoft.HotelBI.LandMarkSearchType.POR; while (true) { Console.Write("请输入城市代码 如(PEK):\n"); cityCode = Console.ReadLine(); if (cityCode == "exit") { break; } Console.Write("请输入地标行政区查询类型:0:POR(地标信息),1:DST(行政区信息),2:TRA(交通信息),3:SGT(周围景观)\n"); int t = 0; int.TryParse(Console.ReadLine(), out t); type = (EyouSoft.HotelBI.LandMarkSearchType)t; CreateLandMarkSearchRQRequest(cityCode, (EyouSoft.HotelBI.LandMarkSearchType)type); } }