| | |
| | | } |
| | | foreach (var sichuanjieshoudtl1 in lists) |
| | | { |
| | | try |
| | | { |
| | | sichuanjieshoudtl aaaaaaaa = new sichuanjieshoudtl(); |
| | | aaaaaaaa.pageurl = sichuanjieshoudtl1.QuerySelector("a").GetAttribute("href"); |
| | | aaaaaaaa.title = sichuanjieshoudtl1.QuerySelector("a").QuerySelector("p").TextContent; |
| | | aaaaaaaa.shorttitle = aaaaaaaa.title; |
| | | using (HttpClient clientdtl = new HttpClient()) |
| | | { |
| | | ZhengfuProject zhengfuProject = _ccontext.ZhengfuProjects.Where(x => x.Pageurl == aaaaaaaa.pageurl).FirstOrDefault(); |
| | | if (zhengfuProject == null) |
| | | { |
| | | HttpResponseMessage responsedtl = clientdtl.GetAsync(aaaaaaaa.pageurl).Result; |
| | | var resdtl = responsedtl.Content.ReadAsStringAsync().Result; |
| | |
| | | var Purchaser = ps[ps.Length - 2].TextContent; |
| | | var content = ps[1].OuterHtml + documentdtl.All.Where(m => m.Id == "myPrintArea").FirstOrDefault().OuterHtml.Replace("cellpadding=\"0\"", "cellpadding=\"0\" border=\"1\" bordercolor=\"#D3D3D3\""); |
| | | |
| | | ZhengfuProject zhengfuProject = _ccontext.ZhengfuProjects.Where(x => x.Pageurl == aaaaaaaa.pageurl).FirstOrDefault(); |
| | | if (zhengfuProject == null) |
| | | { |
| | | |
| | | zhengfuProject = new ZhengfuProject(); |
| | | zhengfuProject.Id = Guid.NewGuid().ToString(); |
| | | zhengfuProject.Gglx = "01"; |
| | |
| | | Thread.CurrentThread.Join(1000 * 2);//阻止设定时间 |
| | | } |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | logg.WriteLog(ex.Message); |
| | | |
| | | logg.WriteLog(ex.StackTrace); |
| | | |
| | | logg.WriteLog(ex.ToString()); |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
| | | } |
| | | page += 1; |
| | | Thread.CurrentThread.Join(1000 * 2);//阻止设定时间 |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | foreach (var sichuanjieshoudtl1 in lists) |
| | | { |
| | | try { |
| | | sichuanjieshoudtl aaaaaaaa = new sichuanjieshoudtl(); |
| | | aaaaaaaa.pageurl = sichuanjieshoudtl1.QuerySelector("a").GetAttribute("href"); |
| | | aaaaaaaa.title = sichuanjieshoudtl1.QuerySelector("a").QuerySelector("p").TextContent; |
| | | aaaaaaaa.shorttitle = aaaaaaaa.title; |
| | | using (HttpClient clientdtl = new HttpClient()) |
| | | { |
| | | ZhengfuProject zhengfuProject = _ccontext.ZhengfuProjects.Where(x => x.Pageurl == aaaaaaaa.pageurl).FirstOrDefault(); |
| | | if (zhengfuProject == null) |
| | | { |
| | | HttpResponseMessage responsedtl = clientdtl.GetAsync(aaaaaaaa.pageurl).Result; |
| | | var resdtl = responsedtl.Content.ReadAsStringAsync().Result; |
| | |
| | | |
| | | |
| | | |
| | | ZhengfuProject zhengfuProject = _ccontext.ZhengfuProjects.Where(x => x.Pageurl == aaaaaaaa.pageurl).FirstOrDefault(); |
| | | if (zhengfuProject == null) |
| | | { |
| | | |
| | | zhengfuProject = new ZhengfuProject(); |
| | | zhengfuProject.Id = Guid.NewGuid().ToString(); |
| | | zhengfuProject.Gglx = "02"; |
| | |
| | | Thread.CurrentThread.Join(1000 * 2);//阻止设定时间 |
| | | } |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | logg.WriteLog(ex.Message); |
| | | |
| | | logg.WriteLog(ex.StackTrace); |
| | | |
| | | logg.WriteLog(ex.ToString()); |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
| | | } |
| | | page += 1; |
| | | Thread.CurrentThread.Join(1000 * 2);//阻止设定时间 |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | foreach (var sichuanjieshoudtl1 in lists) |
| | | { |
| | | try { |
| | | sichuanjieshoudtl aaaaaaaa = new sichuanjieshoudtl(); |
| | | aaaaaaaa.pageurl = sichuanjieshoudtl1.QuerySelector("a").GetAttribute("href"); |
| | | aaaaaaaa.title = sichuanjieshoudtl1.QuerySelector("a").QuerySelector("p").TextContent; |
| | | aaaaaaaa.shorttitle = aaaaaaaa.title; |
| | | using (HttpClient clientdtl = new HttpClient()) |
| | | { |
| | | ZhengfuProject zhengfuProject = _ccontext.ZhengfuProjects.Where(x => x.Pageurl == aaaaaaaa.pageurl).FirstOrDefault(); |
| | | if (zhengfuProject == null) |
| | | { |
| | | HttpResponseMessage responsedtl = clientdtl.GetAsync(aaaaaaaa.pageurl).Result; |
| | | var resdtl = responsedtl.Content.ReadAsStringAsync().Result; |
| | |
| | | |
| | | |
| | | |
| | | ZhengfuProject zhengfuProject = _ccontext.ZhengfuProjects.Where(x => x.Pageurl == aaaaaaaa.pageurl).FirstOrDefault(); |
| | | if (zhengfuProject == null) |
| | | { |
| | | |
| | | zhengfuProject = new ZhengfuProject(); |
| | | zhengfuProject.Id = Guid.NewGuid().ToString(); |
| | | zhengfuProject.Gglx = "03"; |
| | |
| | | } |
| | | } |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | logg.WriteLog(ex.Message); |
| | | |
| | | logg.WriteLog(ex.StackTrace); |
| | | |
| | | logg.WriteLog(ex.ToString()); |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |
| | | page += 1; |
| | | Thread.CurrentThread.Join(1000 * 2);//阻止设定时间 |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | foreach (var sichuanjieshoudtl1 in lists) |
| | | { |
| | | try { |
| | | sichuanjieshoudtl aaaaaaaa = new sichuanjieshoudtl(); |
| | | aaaaaaaa.pageurl = sichuanjieshoudtl1.QuerySelector("a").GetAttribute("href"); |
| | | aaaaaaaa.title = sichuanjieshoudtl1.QuerySelector("a").QuerySelector("p").TextContent; |
| | | aaaaaaaa.shorttitle = aaaaaaaa.title; |
| | | using (HttpClient clientdtl = new HttpClient()) |
| | | { |
| | | |
| | | ZhengfuProject zhengfuProject = _ccontext.ZhengfuProjects.Where(x => x.Pageurl == aaaaaaaa.pageurl).FirstOrDefault(); |
| | | if (zhengfuProject == null) |
| | | { |
| | | HttpResponseMessage responsedtl = clientdtl.GetAsync(aaaaaaaa.pageurl).Result; |
| | | var resdtl = responsedtl.Content.ReadAsStringAsync().Result; |
| | |
| | | |
| | | |
| | | |
| | | ZhengfuProject zhengfuProject = _ccontext.ZhengfuProjects.Where(x => x.Pageurl == aaaaaaaa.pageurl).FirstOrDefault(); |
| | | if (zhengfuProject == null) |
| | | { |
| | | zhengfuProject = new ZhengfuProject(); |
| | | zhengfuProject.Id = Guid.NewGuid().ToString(); |
| | | zhengfuProject.Gglx = "04"; |
| | |
| | | } |
| | | } |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | logg.WriteLog(ex.Message); |
| | | |
| | | logg.WriteLog(ex.StackTrace); |
| | | |
| | | logg.WriteLog(ex.ToString()); |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |
| | | page += 1; |
| | | Thread.CurrentThread.Join(1000 * 2);//阻止设定时间 |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | foreach (var sichuanjieshoudtl1 in lists) |
| | | { |
| | | try |
| | | { |
| | | sichuanjieshoudtl aaaaaaaa = new sichuanjieshoudtl(); |
| | | aaaaaaaa.pageurl = sichuanjieshoudtl1.QuerySelector("a").GetAttribute("href"); |
| | | aaaaaaaa.title = sichuanjieshoudtl1.QuerySelector("a").QuerySelector("p").TextContent; |
| | | aaaaaaaa.shorttitle = aaaaaaaa.title; |
| | | using (HttpClient clientdtl = new HttpClient()) |
| | | { |
| | | ZhengfuProject zhengfuProject = _ccontext.ZhengfuProjects.Where(x => x.Pageurl == aaaaaaaa.pageurl).FirstOrDefault(); |
| | | if (zhengfuProject == null) |
| | | { |
| | | HttpResponseMessage responsedtl = clientdtl.GetAsync(aaaaaaaa.pageurl).Result; |
| | | var resdtl = responsedtl.Content.ReadAsStringAsync().Result; |
| | |
| | | |
| | | |
| | | |
| | | ZhengfuProject zhengfuProject = _ccontext.ZhengfuProjects.Where(x => x.Pageurl == aaaaaaaa.pageurl).FirstOrDefault(); |
| | | if (zhengfuProject == null) |
| | | { |
| | | |
| | | zhengfuProject = new ZhengfuProject(); |
| | | zhengfuProject.Id = Guid.NewGuid().ToString(); |
| | | zhengfuProject.Gglx = "11"; |
| | |
| | | } |
| | | } |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | logg.WriteLog(ex.Message); |
| | | |
| | | logg.WriteLog(ex.StackTrace); |
| | | |
| | | logg.WriteLog(ex.ToString()); |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |
| | | page += 1; |
| | | Thread.CurrentThread.Join(1000 * 2);//阻止设定时间 |
| | | } |
| | | |
| | | |