예제 #1
0
        private static void ht_FileWatchEvent2(object sender, CompleteEventArgs e)
        {
            //timer2.Stop();
            //Console.WriteLine("加载时间" + i.ToString() + "ms");
            //diseaseShowItem = diseaseser.DiseaseShowDeserializer(e.Node);

            //Console.WriteLine("名称{0},概述{1}", diseaseShowItem.name, diseaseShowItem.diseasetext);
        }
예제 #2
0
        private static void Ht_FileWatchEvent(object sender, CompleteEventArgs e)
        {
            TransferData td = new TransferData();
            StoreServer ss = new StoreServer();
            td = ss.StoreShowDeserializer(e.Node);
            Console.WriteLine(td.startstation + ">" + td.endstation);
               List<string> wayList= td.ways[0][0].ways.Split(',').ToList<string>();
            Tickets t = new Tickets();
            var leftCollects = TrainTicketLeftQuery.DoQueryTrainTicketLeftCollects(DateTime.Now.AddDays(3).ToString("yyyy-MM-dd"), "GZQ", "BJP", "");

            t.getTickets("GZQ", "XAY", td.ways[0][0].starttime);
            Console.WriteLine(td.ways[0][0]);
            Console.ReadLine();
        }
예제 #3
0
        static void ht_FileWatchEvent(object sender, CompleteEventArgs e)
        {
            //timer2.Stop();
            //Console.WriteLine("加载时间" + i.ToString() + "ms");
            //diseaseSearchItemList = diseaseser.DiseaseSearchDeserializer(e.Node).ToList();
            //foreach (var item in diseaseSearchItemList)
            //{
            //    Console.WriteLine("ID{0},症状{1}", item.id, item.title);
            //}
            //HttpHelper ht = new HttpHelper();

            //string id = Console.ReadLine();
            //string url = "http://www.tngou.net/api/disease/show";
            //Dictionary<string, string> dic = new Dictionary<string, string>();
            //dic.Add("id", id);
            //ht.CreatePostHttpResponse(url, dic);
            //ht.FileWatchEvent += ht_FileWatchEvent2;
            //timer2.Start();
        }
예제 #4
0
        private void ResponseReadySocket(IAsyncResult asyncResult)
        {
            try
            {
                WebRequest request = asyncResult.AsyncState as WebRequest;
                WebResponse response = request.EndGetResponse(asyncResult) as HttpWebResponse;
                result = GetResponseString(response);

                CompleteEventArgs args = new CompleteEventArgs(result);
                FileWatchEvent(this, args);

            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
            }
        }
예제 #5
0
        private static void Ht_FileWatchEvent9(object sender, CompleteEventArgs e)
        {
            Console.Clear();

            Console.WriteLine("正在生成检查项目(hospitalShowItem), 已经成功{0}条", hospitalShowItem.Count);
            Console.WriteLine("已完成  {0}%", string.Format("{0:0.00}", (i * 1.0 / k) * 100));

            List<HospitalShowItem> temp = hospitalser.HospitalShowDeserializer(e.Node).ToList();
            hospitalShowItem.AddRange(temp);
            if (i == k)
            {
                Console.WriteLine("按任意键继续。。");
                return;
            }

            go8(i);
            i++;
        }
예제 #6
0
 private static void Ht_FileWatchEvent6(object sender, CompleteEventArgs e)
 {
     searchResult = e.Node;
     Console.WriteLine("按任意键继续。。");
     Console.WriteLine(searchResult);
 }
예제 #7
0
 private static void Ht_FileWatchEvent5(object sender, CompleteEventArgs e)
 {
     departmentMap = departmentser.departmentDeserializer(e.Node).ToList();
     Console.WriteLine("按任意键继续。。");
 }
예제 #8
0
 private static void Ht_FileWatchEvent4(object sender, CompleteEventArgs e)
 {
     List<SymptomShowItem> temp = symptomser.SymptomListDeserializer(e.Node).ToList();
     foreach (var item in temp)
     {
         Console.WriteLine(item.name);
     }
     Console.WriteLine("按任意键继续。。");
     Console.ReadKey();
 }
예제 #9
0
 private static void Ht_FileWatchEvent3(object sender, CompleteEventArgs e)
 {
     bodyMap = bodyser.bodyDeserializer(e.Node).ToList();
     Console.WriteLine("按任意键继续。。");
 }
예제 #10
0
        private static void Ht_FileWatchEvent2(object sender, CompleteEventArgs e)
        {
            Console.Clear();

            Console.WriteLine("已经成功{0}条", symptomShowItem.Count);
            Console.WriteLine("已完成  {0}%", string.Format("{0:0.00}", (i * 1.0 / k) * 100));

            List<SymptomShowItem> temp = symptomser.SymptomListDeserializer(e.Node).ToList();
            symptomShowItem.AddRange(temp);
            if (i == k)
            {
                Console.WriteLine("按任意键继续。。");
                return;
            }

            go2(i);
            i++;
        }
예제 #11
0
 private static void Ht_FileWatchEvent18(object sender, CompleteEventArgs e)
 {
     List<AreaMap> temp = areaser.AreaShowDeserializer(e.Node).ToList();
     if (type == 0)
     {
         area.AddRange(
          temp.Select(c => new Area()
          {
              id = c.id,
              level = c.level,
              parentName = "",
              name = c.region,
              x = c.x,
              y = c.y
          }).ToList());
         go18("province");
     }
     else if (type == 1)
     {
         area.AddRange(
          temp.Select(c => new Area()
          {
              id = c.id,
              level = c.level,
              parentName = c.region,
              name = c.province,
              x = c.x,
              y = c.y
          }).ToList());
         go18("city");
     }
     else if (type == 2)
     {
         area.AddRange(
          temp.Select(c => new Area()
          {
              id = c.id,
              level = c.level,
              parentName = c.province,
              name = c.city,
              x = c.x,
              y = c.y
          }).ToList());
     }type++;
 }
예제 #12
0
 private static void Ht_FileWatchEvent11(object sender, CompleteEventArgs e)
 {
     List<InfoShowItem> temp = infoser.InfoShowDeserializer(e.Node).ToList();
     infoShowItem.AddRange(temp);
     foreach (var item in infoShowItem)
     {
         Console.WriteLine("{0}--{1}", item.title, TimeHelper.TimeStamptoDateTime(item.time.ToString()).ToString("yyyy/MM/dd"));
     }
     Console.WriteLine("Click to Continue.");
     Console.ReadLine();
     page++;
     go11(page);
 }