static string getBuyMethod(HTMLEngine.MyRootHtmlNode root) { //是否包含关键字 "现金认购" var cnt = EntityProperty.FindWordCnt("现金认购", root).Count; Program.Logger.WriteLine("现金认购(文本):" + cnt); if (cnt > 0) { return("现金"); } return(""); }
static string GetUnionMember(HTMLEngine.MyRootHtmlNode root, String YiFang) { var paragrahlist = EntityProperty.FindWordCnt("联合体", root); var Union = new List <String>(); foreach (var paragrahId in paragrahlist) { foreach (var comp in companynamelist) { if (comp.positionId == paragrahId) { if (!Union.Contains(comp.secFullName)) { if (!comp.secFullName.Equals(YiFang)) { Union.Add(comp.secFullName); } } } } } return(String.Join("、", Union)); }