- 종목명 검색 개선

- 엑셀 핸들러 추가
- 기타 코드 정리
This commit is contained in:
2017-01-10 19:22:02 +09:00
parent 349de89a05
commit ea5165a4aa
8 changed files with 286 additions and 159 deletions

View File

@@ -55,11 +55,29 @@ namespace NewsCrawler
if(Util.IsDebugging() == false)
return;
SearchCode("[클릭 e종목]로엔, 본격적으로 시작되는 카카오 시너");
SearchCode("[클릭 e종목]\"SK텔레콤, 투자심리 개선 가능성 주목해");
SearchCode("[클릭 e종목]SK하이닉스, 추가 상승 낙관적");
SearchCode("MBK, 45억 규모 유상증자 결정");
SearchCode("다음주 코스피 1960~1990…산유량 감산여부에 주목");
Console.WriteLine("Code Search Test");
Console.WriteLine(SearchCode("[클릭 e종목]로엔, 본격적으로 시작되는 카카오 시너"));
Console.WriteLine(SearchCode("[클릭 e종목]\"SK텔레콤, 투자심리 개선 가능성 주목해"));
Console.WriteLine(SearchCode("[클릭 e종목]SK하이닉스, 추가 상승 낙관적"));
Console.WriteLine(SearchCode("MBK, 45억 규모 유상증자 결정"));
Console.WriteLine(SearchCode("다음주 코스피 1960~1990…산유량 감산여부에 주목"));
Console.WriteLine(SearchCode("\"사세요 일색 보고서\" 증권사 투자등급 공시 '"));
Console.WriteLine(SearchCode("허서홍 GS에너지 상무, GS 보통주 5.1만주 매수"));
Console.WriteLine(SearchCode("엠씨넥스, 아이클론 프리미엄 블랙박스 'i5 W"));
Console.WriteLine(SearchCode("에스아이티글로벌, 김의서 대표이사 체제로 변"));
Console.WriteLine(SearchCode("시몬스침대, 일산 가구공단에 프리미엄 매장 오"));
Console.WriteLine(SearchCode("[유럽증시]美 고용지표 앞두고 짙은 관망세"));
Console.WriteLine(SearchCode("코스콤, 강신 신임 전무이사 선임"));
Console.WriteLine(SearchCode("[베스트리포트]원자현미경, 반도체의 질문에 답"));
Console.WriteLine(SearchCode("거래소, 인콘에 최대주주 지분매각 추진설 조회"));
Console.WriteLine(SearchCode("와이제이엠게임즈, 서울 강남구로 본점 이전"));
Console.WriteLine(SearchCode("[특징주] 에이치엘비-생명, 아파티닙 글로벌 임상 3상 최종 승인 소식에 상승세"));
Console.WriteLine(SearchCode("진도군, 112건의 계약심사 통해 예산 10억원 절감"));
Console.WriteLine("Test End");
}
void MakeList()
@@ -75,6 +93,8 @@ namespace NewsCrawler
if(Code.m_strCode[0] == 'A')
m_CodeList.Add(Code);
}
m_CodeList.Sort((a, b) => b.m_strName.Length-a.m_strName.Length);
}
void LoadCodeType(string strPath, CODE_TYPE enType)
@@ -221,6 +241,8 @@ namespace NewsCrawler
m_SynonymList.Add(Code);
}
}
m_SynonymList.Sort((a, b) => b.m_strName.Length-a.m_strName.Length);
}
}
@@ -232,19 +254,6 @@ namespace NewsCrawler
string[] words = strReplace.Trim().Split(' ');
string strCodeWord = words[0];
//int iBracesPos = strText.Trim().IndexOfAny(new char[] { ']', '>', ')' });
//string[] astrWords = strText.Substring(iBracesPos).Trim().Split(' ');
//string[] astrWords = strText.Trim().Split(' ');
//if(astrWords.Length < 1)
// return null;
//string strCodeWord;
//if(astrWords.Length > 1 && astrWords[0].IndexOfAny(new char[] { ']', '>', ')' }) >= 0)
// strCodeWord = astrWords[1];
//else
// strCodeWord = astrWords[0];
CODE_VALUE Result = m_CodeList.Find(s => strCodeWord.Contains(s.m_strName));
if(Result != null)
return Result;