[Quantproject-developers] QuantProject/b2_DataAccess/Tables Tickers_tickerGroups.cs,1.4,1.5
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2004-09-05 13:50:06
|
Update of /cvsroot/quantproject/QuantProject/b2_DataAccess/Tables In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22422/b2_DataAccess/Tables Modified Files: Tickers_tickerGroups.cs Log Message: Added Tickers_TickerGroups class to manage tickers inside groups Index: Tickers_tickerGroups.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b2_DataAccess/Tables/Tickers_tickerGroups.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Tickers_tickerGroups.cs 4 Aug 2004 22:56:29 -0000 1.4 --- Tickers_tickerGroups.cs 5 Sep 2004 13:49:31 -0000 1.5 *************** *** 45,48 **** --- 45,65 ---- } + + /// <summary> + /// It fills the given dataTable with tickers belonging to a given group + /// </summary> + /// <param name="groupID">The groupID corresponding to the tickers whose + /// values have to be stored in the given Data Table</param> + /// <param name="dataTable">The dataTable where to store tickers</param> + /// <returns></returns> + public static void SetDataTable( string groupID , DataTable dataTable) + { + string sql; + sql = "SELECT " + Tickers_tickerGroups.Ticker + " FROM tickers_tickerGroups " + + "WHERE " + Tickers_tickerGroups.GroupID + "='" + + groupID + "'"; + SqlExecutor.SetDataTable( sql , dataTable ); + } + /// <summary> /// It provides deletion of the single ticker from the specified group |