private const int ST4_EXCHPRODNAME = 29; // Exchange "short" name #endregion// members #region Constructors // ***************************************************************** // **** Constructors **** // ***************************************************************** public StatementReader2(string positionFilePath, string fillsFillPath) { m_FilePathForPosition = positionFilePath; m_FilePathForFills = fillsFillPath; string filePath = string.Format("{0}{1}", Misty.Lib.Application.AppInfo.GetInstance().UserPath, ProductTableName); m_ProductMapping = new InstrumentNameMapTable(filePath); if (!string.IsNullOrEmpty(positionFilePath)) { ReadStatement(m_FilePathForPosition, true); // Loads "PortfolioPosition" } if (!string.IsNullOrEmpty(fillsFillPath)) { ReadStatement(m_FilePathForFills, false); // Loads "PortfolioFills" } }
private StatementReader(string positionFilePath, string fillsFillPath, string productTableFileName) { m_FilePathForPosition = positionFilePath; m_ProductTableName = productTableFileName; string filePath = string.Format("{0}{1}", Misty.Lib.Application.AppInfo.GetInstance().UserPath, m_ProductTableName); m_ProductMapping = new InstrumentNameMapTable(filePath); //string newName = m_ProductTableName.Replace(".txt", ".csv"); //instrMap.SaveTable(string.Format("{0}{1}", Misty.Lib.Application.AppInfo.GetInstance().UserPath, newName)); //ReadProductTable(); // loads m_RcgToBreProduct, product naming maps. if (!string.IsNullOrEmpty(positionFilePath)) { ReadStatement(positionFilePath, true); // Loads "PortfolioPosition" } if (!string.IsNullOrEmpty(fillsFillPath)) { ReadStatement(fillsFillPath, false); // Loads "PortfolioFills" } }