| | |
| | | yixianggonggao(_ccontext, sichuanpageurll, operationStartTime, operationEndTime, currPage); |
| | | logg.WriteLog("中国政采网四川省意向公开 开始获取结束", "中国政采网四川省"); |
| | | #endregion |
| | | |
| | | Thread.CurrentThread.Join(1000 * 60 * 30);//阻止设定时间 |
| | | |
| | | |
| | | #region 公开招标 |
| | |
| | | caigougonggao(_ccontext, sichuanpageurll, operationStartTime, operationEndTime, currPage, "1", "公开招标"); |
| | | logg.WriteLog("中国政采网四川省采购公告 公开招标 开始获取结束", "中国政采网四川省"); |
| | | #endregion |
| | | Thread.CurrentThread.Join(1000 * 60 * 30);//阻止设定时间 |
| | | |
| | | #region 询价 |
| | | currPage = 1; |
| | |
| | | caigougonggao(_ccontext, sichuanpageurll, operationStartTime, operationEndTime, currPage, "4", "询价"); |
| | | logg.WriteLog("中国政采网四川省采购公告 询价 开始获取结束", "中国政采网四川省"); |
| | | #endregion |
| | | Thread.CurrentThread.Join(1000 * 60 * 30);//阻止设定时间 |
| | | |
| | | #region 竞争性谈判 |
| | | currPage = 1; |
| | | sichuanpageurll = "http://search.ccgp.gov.cn/bxsearch?searchtype=1&page_index=1&bidSort=0&buyerName=&projectId=&pinMu=0&bidType=3&dbselect=bidx&kw=&start_time=&end_time=&timeType=6&displayZone=%E5%9B%9B%E5%B7%9D&zoneId=51&pppStatus=&agentName="; |
| | |
| | | caigougonggao(_ccontext, sichuanpageurll, operationStartTime, operationEndTime, currPage, "5", "竞争性谈判"); |
| | | logg.WriteLog("中国政采网四川省采购公告 竞争性谈判 开始获取结束", "中国政采网四川省"); |
| | | #endregion |
| | | Thread.CurrentThread.Join(1000 * 60 * 30);//阻止设定时间 |
| | | |
| | | #region 单一来源 |
| | | currPage = 1; |
| | | sichuanpageurll = "http://search.ccgp.gov.cn/bxsearch?searchtype=1&page_index=1&bidSort=0&buyerName=&projectId=&pinMu=0&bidType=4&dbselect=bidx&kw=&start_time=&end_time=&timeType=6&displayZone=%E5%9B%9B%E5%B7%9D&zoneId=51&pppStatus=&agentName="; |
| | |
| | | caigougonggao(_ccontext, sichuanpageurll, operationStartTime, operationEndTime, currPage, "7", "单一来源"); |
| | | logg.WriteLog("中国政采网四川省采购公告 单一来源 开始获取结束", "中国政采网四川省"); |
| | | #endregion |
| | | Thread.CurrentThread.Join(1000 * 60 * 30);//阻止设定时间 |
| | | |
| | | #region 邀请招标 |
| | | currPage = 1; |
| | | sichuanpageurll = "http://search.ccgp.gov.cn/bxsearch?searchtype=1&page_index=1&bidSort=0&buyerName=&projectId=&pinMu=0&bidType=6&dbselect=bidx&kw=&start_time=&end_time=&timeType=6&displayZone=%E5%9B%9B%E5%B7%9D&zoneId=51&pppStatus=&agentName="; |
| | |
| | | caigougonggao(_ccontext, sichuanpageurll, operationStartTime, operationEndTime, currPage, "2", "邀请招标"); |
| | | logg.WriteLog("中国政采网四川省采购公告 邀请招标 开始获取结束", "中国政采网四川省"); |
| | | #endregion |
| | | Thread.CurrentThread.Join(1000 * 60 * 30);//阻止设定时间 |
| | | |
| | | #region 竞争性磋商 |
| | | currPage = 1; |
| | | sichuanpageurll = "http://search.ccgp.gov.cn/bxsearch?searchtype=1&page_index=1&bidSort=0&buyerName=&projectId=&pinMu=0&bidType=10&dbselect=bidx&kw=&start_time=&end_time=&timeType=6&displayZone=%E5%9B%9B%E5%B7%9D&zoneId=51&pppStatus=&agentName="; |
| | |
| | | caigougonggao(_ccontext, sichuanpageurll, operationStartTime, operationEndTime, currPage, "3", "竞争性磋商"); |
| | | logg.WriteLog("中国政采网四川省采购公告 竞争性磋商 开始获取结束", "中国政采网四川省"); |
| | | #endregion |
| | | |
| | | Thread.CurrentThread.Join(1000 * 60 * 30);//阻止设定时间 |
| | | |
| | | |
| | | #region 中标公告 |
| | |
| | | zhongbiaogonggao(_ccontext, sichuanpageurll, operationStartTime, operationEndTime, currPage); |
| | | logg.WriteLog("中国政采网四川省中标公告 开始获取结束", "中国政采网四川省"); |
| | | #endregion |
| | | |
| | | Thread.CurrentThread.Join(1000 * 60 * 30);//阻止设定时间 |
| | | |
| | | #region 成交公告 |
| | | currPage = 1; |
| | |
| | | zhongbiaogonggao(_ccontext, sichuanpageurll, operationStartTime, operationEndTime, currPage); |
| | | logg.WriteLog("中国政采网四川省成交公告 开始获取结束", "中国政采网四川省"); |
| | | #endregion |
| | | |
| | | Thread.CurrentThread.Join(1000 * 60 * 30);//阻止设定时间 |
| | | |
| | | #region 更正公告 |
| | | currPage = 1; |
| | |
| | | gengzhenggonggao(_ccontext, sichuanpageurll, operationStartTime, operationEndTime, currPage); |
| | | logg.WriteLog("中国政采网四川省更正公告 开始获取结束", "中国政采网四川省"); |
| | | #endregion |
| | | |
| | | Thread.CurrentThread.Join(1000 * 60 * 30);//阻止设定时间 |
| | | |
| | | #region 废标公告 |
| | | currPage = 1; |
| | |
| | | Thread.CurrentThread.Join(1000 * 5);//阻止设定时间 |
| | | logg.WriteLog(page.ToString(), "中国政采网四川省"); |
| | | string sichuanpageurl2 = sichuanpageurll.Replace("page_index=1", "page_index=" + page); |
| | | try |
| | | { |
| | | using (HttpClient client = new HttpClient()) |
| | | { |
| | | client.Timeout = TimeSpan.FromSeconds(60); |
| | | //List<sichuanjieshoudtl> data = new List<sichuanjieshoudtl>(); |
| | | HttpResponseMessage response = client.GetAsync(sichuanpageurl2).Result; |
| | | var res = response.Content.ReadAsStringAsync().Result; |
| | |
| | | |
| | | if (zhengfuProjectcount <= 0) |
| | | { |
| | | clientdtl.Timeout = TimeSpan.FromSeconds(60); |
| | | HttpResponseMessage responsedtl = clientdtl.GetAsync(aaaaaaaa.pageurl).Result; |
| | | var resdtl = responsedtl.Content.ReadAsStringAsync().Result; |
| | | var documentdtl = parser.ParseDocument(resdtl); |
| | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | logg.WriteLog(ex.Message, "中国政采网四川省"); |
| | | |
| | | logg.WriteLog(ex.StackTrace, "中国政采网四川省"); |
| | | |
| | | logg.WriteLog(ex.ToString(), "中国政采网四川省"); |
| | | } |
| | | |
| | | page += 1; |
| | | |
| | | } |
| | |
| | | Thread.CurrentThread.Join(1000 * 5);//阻止设定时间 |
| | | logg.WriteLog(page.ToString(), "中国政采网四川省"); |
| | | string sichuanpageurl2 = sichuanpageurll.Replace("page_index=1", "page_index=" + page); |
| | | try |
| | | { |
| | | using (HttpClient client = new HttpClient()) |
| | | { |
| | | client.Timeout = TimeSpan.FromSeconds(60); |
| | | //List<sichuanjieshoudtl> data = new List<sichuanjieshoudtl>(); |
| | | HttpResponseMessage response = client.GetAsync(sichuanpageurl2).Result; |
| | | var res = response.Content.ReadAsStringAsync().Result; |
| | |
| | | var zhengfuProjectCount = _ccontext.ZhengfuProjects.Count(x => (x.RecStatus == "A" && x.Pageurl == aaaaaaaa.pageurl) || (x.RecStatus == "A" && x.Title == aaaaaaaa.title && x.Gglx == "01" && x.OpenTenderTime == DateTime.Parse(NoticeTime))); |
| | | if (zhengfuProjectCount <=0) |
| | | { |
| | | clientdtl.Timeout = TimeSpan.FromSeconds(60); |
| | | HttpResponseMessage responsedtl = clientdtl.GetAsync(aaaaaaaa.pageurl).Result; |
| | | var resdtl = responsedtl.Content.ReadAsStringAsync().Result; |
| | | var documentdtl = parser.ParseDocument(resdtl); |
| | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | logg.WriteLog(ex.Message, "中国政采网四川省"); |
| | | |
| | | logg.WriteLog(ex.StackTrace, "中国政采网四川省"); |
| | | |
| | | logg.WriteLog(ex.ToString(), "中国政采网四川省"); |
| | | } |
| | | |
| | | |
| | | page += 1; |
| | | |
| | | } |
| | |
| | | Thread.CurrentThread.Join(1000 * 5);//阻止设定时间 |
| | | logg.WriteLog(page.ToString(), "中国政采网四川省"); |
| | | string sichuanpageurl2 = sichuanpageurll.Replace("page_index=1", "page_index=" + page); |
| | | try |
| | | { |
| | | using (HttpClient client = new HttpClient()) |
| | | { |
| | | client.Timeout = TimeSpan.FromSeconds(60); |
| | | //List<sichuanjieshoudtl> data = new List<sichuanjieshoudtl>(); |
| | | HttpResponseMessage response = client.GetAsync(sichuanpageurl2).Result; |
| | | var res = response.Content.ReadAsStringAsync().Result; |
| | |
| | | var zhengfuProjectCount = _ccontext.ZhengfuProjects.Count(x => (x.RecStatus == "A" && x.Pageurl == aaaaaaaa.pageurl) || (x.RecStatus == "A" && x.Title == aaaaaaaa.title && x.Gglx == "03" && x.OpenTenderTime == DateTime.Parse(NoticeTime))); |
| | | if (zhengfuProjectCount <=0) |
| | | { |
| | | clientdtl.Timeout = TimeSpan.FromSeconds(60); |
| | | HttpResponseMessage responsedtl = clientdtl.GetAsync(aaaaaaaa.pageurl).Result; |
| | | var resdtl = responsedtl.Content.ReadAsStringAsync().Result; |
| | | var documentdtl = parser.ParseDocument(resdtl); |
| | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | logg.WriteLog(ex.Message, "中国政采网四川省"); |
| | | |
| | | logg.WriteLog(ex.StackTrace, "中国政采网四川省"); |
| | | |
| | | logg.WriteLog(ex.ToString(), "中国政采网四川省"); |
| | | } |
| | | |
| | | |
| | | page += 1; |
| | | |
| | | } |
| | |
| | | Thread.CurrentThread.Join(1000 * 5);//阻止设定时间 |
| | | logg.WriteLog(page.ToString(), "中国政采网四川省"); |
| | | string sichuanpageurl2 = sichuanpageurll.Replace("page_index=1", "page_index=" + page); |
| | | try |
| | | { |
| | | using (HttpClient client = new HttpClient()) |
| | | { |
| | | client.Timeout = TimeSpan.FromSeconds(60); |
| | | //List<sichuanjieshoudtl> data = new List<sichuanjieshoudtl>(); |
| | | HttpResponseMessage response = client.GetAsync(sichuanpageurl2).Result; |
| | | var res = response.Content.ReadAsStringAsync().Result; |
| | |
| | | var zhengfuProjectCount = _ccontext.ZhengfuProjects.Count(x => (x.RecStatus == "A" && x.Pageurl == aaaaaaaa.pageurl) || (x.RecStatus == "A" && x.Title == aaaaaaaa.title && x.Gglx == "04" && x.OpenTenderTime == DateTime.Parse(NoticeTime))); |
| | | if (zhengfuProjectCount<=0) |
| | | { |
| | | clientdtl.Timeout = TimeSpan.FromSeconds(60); |
| | | HttpResponseMessage responsedtl = clientdtl.GetAsync(aaaaaaaa.pageurl).Result; |
| | | var resdtl = responsedtl.Content.ReadAsStringAsync().Result; |
| | | var documentdtl = parser.ParseDocument(resdtl); |
| | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | logg.WriteLog(ex.Message, "中国政采网四川省"); |
| | | |
| | | logg.WriteLog(ex.StackTrace, "中国政采网四川省"); |
| | | |
| | | logg.WriteLog(ex.ToString(), "中国政采网四川省"); |
| | | } |
| | | |
| | | |
| | | page += 1; |
| | | |
| | | } |
| | |
| | | Thread.CurrentThread.Join(1000 * 5);//阻止设定时间 |
| | | logg.WriteLog(page.ToString(), "中国政采网四川省"); |
| | | string sichuanpageurl2 = sichuanpageurll.Replace("page_index=1", "page_index=" + page); |
| | | try |
| | | { |
| | | using (HttpClient client = new HttpClient()) |
| | | { |
| | | //List<sichuanjieshoudtl> data = new List<sichuanjieshoudtl>(); |
| | | client.Timeout = TimeSpan.FromSeconds(60); |
| | | HttpResponseMessage response = client.GetAsync(sichuanpageurl2).Result; |
| | | var res = response.Content.ReadAsStringAsync().Result; |
| | | var document = parser.ParseDocument(res); |
| | |
| | | var zhengfuProjectCount = _ccontext.ZhengfuProjects.Count(x => (x.RecStatus == "A" && x.Pageurl == aaaaaaaa.pageurl) || (x.RecStatus == "A" && x.Title == aaaaaaaa.title && x.Gglx == "11" && x.OpenTenderTime == DateTime.Parse(NoticeTime))); |
| | | if (zhengfuProjectCount <=0) |
| | | { |
| | | clientdtl.Timeout = TimeSpan.FromSeconds(60); |
| | | HttpResponseMessage responsedtl = clientdtl.GetAsync(aaaaaaaa.pageurl).Result; |
| | | var resdtl = responsedtl.Content.ReadAsStringAsync().Result; |
| | | var documentdtl = parser.ParseDocument(resdtl); |
| | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | logg.WriteLog(ex.Message, "中国政采网四川省"); |
| | | |
| | | logg.WriteLog(ex.StackTrace, "中国政采网四川省"); |
| | | |
| | | logg.WriteLog(ex.ToString(), "中国政采网四川省"); |
| | | } |
| | | |
| | | |
| | | page += 1; |
| | | |
| | | } |