private void LoadIssuerAndUnderlyingData() { KoreaIssuerNameHash = new Hashtable(); koreaUnderlyingHash = new Hashtable(); string codeMapPath = ".\\Config\\Korea\\KOREA_ELWFMCodeMap.xml"; ClassCodeMap codeMapObj = ConfigUtil.ReadConfig(codeMapPath, typeof(ClassCodeMap)) as ClassCodeMap; List <IssuerCodeConversion> iList = codeMapObj.IssuerCodeMap.ToList(); List <UnderlyingCodeConversion> uList = codeMapObj.UnderlyingCodeMap.ToList(); foreach (var item in iList) { if (!KoreaIssuerNameHash.Contains(item.DSPLY_NMLL)) { item.fullname = item.fullname.Contains("@") ? item.fullname.Replace("@", "&") : item.fullname; item.orgname = item.orgname.Contains("@") ? item.orgname.Replace("@", "&") : item.orgname; item.shortname = item.shortname.Contains("@") ? item.shortname.Replace("@", "&") : item.shortname; item.NDA_TC = item.NDA_TC.Contains("@") ? item.NDA_TC.Replace("@", "&") : item.NDA_TC; KoreaIssuerNameHash.Add(item.DSPLY_NMLL, item); } } foreach (var item in uList) { if (!koreaUnderlyingHash.Contains(item.KoreaName)) { item.QACommonName = item.QACommonName.Contains("@") ? item.QACommonName.Replace("@", "&") : item.QACommonName; item.IDNDisplayName = item.IDNDisplayName.Contains("@") ? item.IDNDisplayName.Replace("@", "&") : item.IDNDisplayName; item.NDA_TC = item.NDA_TC.Contains("@") ? item.NDA_TC.Replace("@", "&") : item.NDA_TC; koreaUnderlyingHash.Add(item.KoreaName, item); } } }
private void LoadIssuerAndUnderlyingData() { try { KoreaIssuerNameHash = new Hashtable(); koreaUnderlyingHash = new Hashtable(); string codeMapPath = ".\\Config\\Korea\\KOREA_ELWFMCodeMap.xml"; ClassCodeMap codeMapObj = ConfigUtil.ReadConfig(codeMapPath, typeof(ClassCodeMap)) as ClassCodeMap; List <IssuerCodeConversion> iList = codeMapObj.IssuerCodeMap.ToList(); List <UnderlyingCodeConversion> uList = codeMapObj.UnderlyingCodeMap.ToList(); foreach (var item in iList) { if (!KoreaIssuerNameHash.Contains(item.DSPLY_NMLL)) { KoreaIssuerNameHash.Add(item.DSPLY_NMLL, item); } } foreach (var item in uList) { if (!koreaUnderlyingHash.Contains(item.DSPLY_NMLL)) { koreaUnderlyingHash.Add(item.DSPLY_NMLL, item); } } } catch (Exception ex) { String msg = "Error found in LoadIssuerAndUnderlyingData() : \r\n" + ex.ToString(); Logger.Log(msg, Logger.LogType.Warning); return; } }