| | |
| | | ViewBag.flbx = _liaotianService.GetSYScode("system", "shifou").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); |
| | | ViewBag.ShiFouyReasonname = _liaotianService.GetSYScode("Project", "ShiFouyReasonname").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); |
| | | |
| | | ViewBag.Baomingtimebegin = DateTime.Now.AddYears(-1).ToString("yyyy-MM-dd"); |
| | | ViewBag.Baomingtimebegin = DateTime.Now.AddMonths(-6).ToString("yyyy-MM-dd"); |
| | | ViewBag.Baomingtimeend = DateTime.Now.ToString("yyyy-MM-dd"); |
| | | |
| | | |
| | | ViewBag.wanshan = _liaotianService.GetSYScode("Project", "wanshan").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); |
| | | |
| | | return View(); |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | var feibiaoliyous = cDocumet.QuerySelectorAll("div").Where(m => m.Id == "_notice_content_reason-reason"); |
| | | if (feibiaoliyous != null && feibiaoliyous.ToList().Count > 0) |
| | | { |
| | | var feibiaoliyou = feibiaoliyous.First(); |
| | | projectDTO.Fbyy = feibiaoliyou.TextContent.Replace("\n", "").Replace("\t", ""); |
| | | projectDTO.Fblx = "终止采购"; |
| | | } |
| | | |
| | | |
| | | var Numbers = cDocumet.QuerySelectorAll("h4"); |
| | | foreach(var Number in Numbers ) |
| | | { |
| | |
| | | { |
| | | var Fbyy = Number.QuerySelector("span"); |
| | | projectDTO.Fbyy = Fbyy.TextContent.Trim(); |
| | | projectDTO.Fblx = "停止评审"; |
| | | } |
| | | if (Number != null && Number.TextContent.Contains("终止原因")) |
| | | { |
| | | var Fbyy = Number.QuerySelector("span"); |
| | | projectDTO.Fbyy = Fbyy.TextContent.Trim(); |
| | | projectDTO.Fblx = "停止评审"; |
| | | } |
| | | |
| | | } |
| | | var Caigourennames = cDocumet.QuerySelectorAll("span").Where(m => m.Id == "_notice_content_noticePurchase-purchaserOrgName"); |
| | | if (Caigourennames != null && Caigourennames.ToList().Count > 0) |
| | |
| | | } |
| | | projectDTO.StartTimestr = timestr; |
| | | } |
| | | |
| | | var tittle = document.QuerySelector("h1"); |
| | | if (tittle != null) |
| | | { |
| | | string tittlestr = tittle.TextContent; |
| | | |
| | | projectDTO.Name = tittlestr; |
| | | } |
| | | var table = document.QuerySelector("table").QuerySelectorAll("tr"); |
| | | if (table != null) |
| | | { |
| | |
| | | } |
| | | |
| | | } |
| | | else if (select != null && select.TextContent.IndexOf("项目名称") >= 0) |
| | | //else if (select != null && select.TextContent.IndexOf("项目名称") >= 0) |
| | | //{ |
| | | // if (table[i + 1] != null) |
| | | // { |
| | | // var td1 = table[i + 1].QuerySelector("td"); |
| | | // if (td1 != null) |
| | | // { |
| | | // projectDTO.Name = table[i + 1].QuerySelector("td").TextContent.Trim();//OuterHtml |
| | | // } |
| | | // } |
| | | |
| | | //} |
| | | else if (select != null && select.TextContent.IndexOf("项目终止的原因") >= 0) |
| | | { |
| | | if (table[i + 1] != null) |
| | | { |
| | | var td1 = table[i + 1].QuerySelector("td"); |
| | | if (td1 != null) |
| | | { |
| | | projectDTO.Name = table[i + 1].QuerySelector("td").TextContent.Trim();//OuterHtml |
| | | projectDTO.Fbyy = table[i + 1].QuerySelector("td").TextContent.Trim();//OuterHtml |
| | | if (projectDTO.Fbyy.IndexOf("终止")<0) |
| | | { |
| | | projectDTO.Fblx = "停止评审"; |
| | | } |
| | | else |
| | | { |
| | | projectDTO.Fblx = "终止采购"; |
| | | } |
| | | } |
| | | } |
| | | |