| | |
| | | } |
| | | var currPage = 1; |
| | | string sichuanpageurll = ""; |
| | | Thread.CurrentThread.Join(1000 * 60 * 30);//阻止设定时间 |
| | | //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=9&dbselect=bidx&kw=%E6%84%8F%E5%90%91&start_time=&end_time=&timeType=6&displayZone=%E5%9B%9B%E5%B7%9D&zoneId=51&pppStatus=&agentName="; |
| | |
| | | } |
| | | using (HttpClient clientdtl = new HttpClient()) |
| | | { |
| | | var zhengfuProjectcount = _ccontext.ZhengfuProjects.Count(x => (x.RecStatus == "A" && x.Pageurl == aaaaaaaa.pageurl) || (x.RecStatus == "A" && x.Title == aaaaaaaa.title && x.Gglx == "02" && x.OpenTenderTime == DateTime.Parse(NoticeTime))); |
| | | var notime = DateTime.Parse(NoticeTime).ToString("yyyy-MM-dd"); |
| | | var notimestart = DateTime.Parse(notime); |
| | | var notimeend = notimestart.AddDays(1); |
| | | var zhengfuProjectcount = _ccontext.ZhengfuProjects.Count(x => (x.RecStatus == "A" && x.Pageurl == aaaaaaaa.pageurl) || (x.RecStatus == "A" && x.Title == aaaaaaaa.title && x.Gglx == "02" && x.NoticeTime >= notimestart && x.NoticeTime < notimeend) ); |
| | | |
| | | |
| | | if (zhengfuProjectcount <= 0) |
| | |
| | | } |
| | | using (HttpClient clientdtl = new HttpClient()) |
| | | { |
| | | 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))); |
| | | var notime = DateTime.Parse(NoticeTime).ToString("yyyy-MM-dd"); |
| | | var notimestart = DateTime.Parse(notime); |
| | | var notimeend = notimestart.AddDays(1); |
| | | var zhengfuProjectCount = _ccontext.ZhengfuProjects.Count(x => (x.RecStatus == "A" && x.Pageurl == aaaaaaaa.pageurl) || (x.RecStatus == "A" && x.Title == aaaaaaaa.title && x.Gglx == "01" && x.NoticeTime >= notimestart && x.NoticeTime < notimeend)); |
| | | if (zhengfuProjectCount <= 0) |
| | | { |
| | | clientdtl.Timeout = TimeSpan.FromSeconds(60); |
| | |
| | | { |
| | | if (td[i].TextContent.IndexOf("项目编号:") >= 0) |
| | | { |
| | | |
| | | OpenTenderCode = td[i].TextContent.Replace("项目编号:", "").Replace("/", "").Trim(); |
| | | if (string.IsNullOrEmpty(OpenTenderCode)) |
| | | OpenTenderCode = td[i].TextContent.Replace("项目编号:", "").Replace("/", "").Trim(); |
| | | |
| | | } |
| | | if (td[i].TextContent.IndexOf("预算金额:") >= 0) |
| | |
| | | } |
| | | using (HttpClient clientdtl = new HttpClient()) |
| | | { |
| | | 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))); |
| | | var notime = DateTime.Parse(NoticeTime).ToString("yyyy-MM-dd"); |
| | | var notimestart = DateTime.Parse(notime); |
| | | var notimeend = notimestart.AddDays(1); |
| | | var zhengfuProjectCount = _ccontext.ZhengfuProjects.Count(x => (x.RecStatus == "A" && x.Pageurl == aaaaaaaa.pageurl) || (x.RecStatus == "A" && x.Title == aaaaaaaa.title && x.Gglx == "03" && x.NoticeTime >= notimestart && x.NoticeTime < notimeend)); |
| | | if (zhengfuProjectCount <= 0) |
| | | { |
| | | clientdtl.Timeout = TimeSpan.FromSeconds(60); |
| | |
| | | { |
| | | if (td[i].TextContent.IndexOf("项目编号:") >= 0) |
| | | { |
| | | |
| | | OpenTenderCode = td[i].TextContent.Replace("项目编号:", "").Replace("一、", "").Trim(); |
| | | if (string.IsNullOrEmpty(OpenTenderCode)) |
| | | OpenTenderCode = td[i].TextContent.Replace("项目编号:", "").Replace("一、", "").Trim(); |
| | | |
| | | if (OpenTenderCode.IndexOf("(招标文件编号") >= 0) |
| | | { |
| | |
| | | { |
| | | if (td[i].TextContent.IndexOf("项目编号:") >= 0) |
| | | { |
| | | |
| | | OpenTenderCode = td[i].TextContent.Replace("项目编号:", "").Replace("一、", "").Trim(); |
| | | if (string.IsNullOrEmpty(OpenTenderCode)) |
| | | OpenTenderCode = td[i].TextContent.Replace("项目编号:", "").Replace("一、", "").Trim(); |
| | | |
| | | if (OpenTenderCode.IndexOf("(招标文件编号") >= 0) |
| | | { |
| | |
| | | } |
| | | using (HttpClient clientdtl = new HttpClient()) |
| | | { |
| | | 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))); |
| | | var notime = DateTime.Parse(NoticeTime).ToString("yyyy-MM-dd"); |
| | | var notimestart = DateTime.Parse(notime); |
| | | var notimeend = notimestart.AddDays(1); |
| | | var zhengfuProjectCount = _ccontext.ZhengfuProjects.Count(x => (x.RecStatus == "A" && x.Pageurl == aaaaaaaa.pageurl) || (x.RecStatus == "A" && x.Title == aaaaaaaa.title && x.Gglx == "04" && x.NoticeTime >= notimestart && x.NoticeTime < notimeend)); |
| | | if (zhengfuProjectCount <= 0) |
| | | { |
| | | clientdtl.Timeout = TimeSpan.FromSeconds(60); |
| | |
| | | { |
| | | if (td[i].TextContent.IndexOf("原公告的采购项目编号:") >= 0) |
| | | { |
| | | |
| | | OpenTenderCode = td[i].TextContent.Replace("原公告的采购项目编号:", "").Trim(); |
| | | if (string.IsNullOrEmpty(OpenTenderCode)) |
| | | OpenTenderCode = td[i].TextContent.Replace("原公告的采购项目编号:", "").Trim(); |
| | | |
| | | } |
| | | if (td[i].TextContent.IndexOf("预算金额:") >= 0) |
| | |
| | | } |
| | | using (HttpClient clientdtl = new HttpClient()) |
| | | { |
| | | 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))); |
| | | var notime = DateTime.Parse(NoticeTime).ToString("yyyy-MM-dd"); |
| | | var notimestart = DateTime.Parse(notime); |
| | | var notimeend = notimestart.AddDays(1); |
| | | var zhengfuProjectCount = _ccontext.ZhengfuProjects.Count(x => (x.RecStatus == "A" && x.Pageurl == aaaaaaaa.pageurl) || (x.RecStatus == "A" && x.Title == aaaaaaaa.title && x.Gglx == "11" && x.NoticeTime >= notimestart && x.NoticeTime < notimeend)); |
| | | if (zhengfuProjectCount <= 0) |
| | | { |
| | | clientdtl.Timeout = TimeSpan.FromSeconds(60); |
| | |
| | | { |
| | | if (td[i].TextContent.IndexOf("采购项目编号:") >= 0) |
| | | { |
| | | |
| | | OpenTenderCode = td[i].TextContent.Replace("采购项目编号:", "").Trim(); |
| | | if (string.IsNullOrEmpty(OpenTenderCode)) |
| | | OpenTenderCode = td[i].TextContent.Replace("采购项目编号:", "").Trim(); |
| | | |
| | | } |
| | | if (td[i].TextContent.IndexOf("预算金额:") >= 0) |