/// <summary>初始系统标的信息 /// </summary> protected internal DataTable_Quotes <Data_Quote> InitQuote_zxc(StockInfo pStockInfo) { if (pStockInfo == null) { return(null); } DataTable_Quotes <Data_Quote> quoteZxc = new DataTable_Quotes <Data_Quote>(pStockInfo.StockID_Tag, pStockInfo); this.InitDBModel(quoteZxc); //行情日志表(延迟加载) _quotesLog = new DataTable_LogQuotes <LogData_Quote>(); this.InitDBModel(_quotesLog); _quotesZxc.Add(pStockInfo.StockID_Tag, quoteZxc); return(quoteZxc); }
/// <summary>查询行情标的信息 /// </summary> /// <param name="stockID">标的编号</param> /// <param name="stockName">标的名称</param> /// <returns></returns> protected internal DataTable_Quotes <Data_Quote> Get_QuoteData(string stockTag) { //校检标识 StockInfo pStockInfo = Quote_Datas._Datas.Get_StockInfo(stockTag); if (pStockInfo == null) { return(null); } DataTable_Quotes <Data_Quote> pData_Quotes = null; if (_quotesZxc.TryGetValue(pStockInfo.StockID_Tag, out pData_Quotes)) { return(pData_Quotes); } //初始行情表 pData_Quotes = this.InitQuote_zxc(pStockInfo); return(pData_Quotes); }