Пример #1
0
		public clsMAST_INDEXFUTURES_TB Clone()
		{
			try
			{
				clsMAST_INDEXFUTURES_TB cloneTB = new clsMAST_INDEXFUTURES_TB();
				
				
				cloneTB._INSTRUMENT_ID = this._INSTRUMENT_ID;
				cloneTB._INSTRUMENT_TYP = this._INSTRUMENT_TYP;
				cloneTB._NOTIONAL = this._NOTIONAL;
				cloneTB._QUANTITY = this._QUANTITY;
				cloneTB._INDEX_MULTIPLIER = this._INDEX_MULTIPLIER;
				cloneTB._UNDERLYING_INDEX_CD = this._UNDERLYING_INDEX_CD;
				cloneTB._CURR = this._CURR;
				cloneTB._EFFECTIVE_DT = this._EFFECTIVE_DT;
				cloneTB._MATURITY_DT = this._MATURITY_DT; 
				
				return cloneTB;
			}
			catch(Exception ex)
			{
				throw new Exception(ex.Message);
			}
		}
Пример #2
0
		public static clsMAST_INDEXFUTURES_TB Create(DataRow dr)
		{
			try
			{
				clsMAST_INDEXFUTURES_TB tb = new clsMAST_INDEXFUTURES_TB();
				
				
				tb._INSTRUMENT_ID = Convert.ToString(dr[0]);
				tb._INSTRUMENT_TYP = Convert.ToInt32(dr[1]);
				tb._NOTIONAL = Convert.ToDouble(dr[2]);
				tb._QUANTITY = Convert.ToInt32(dr[3]);
				tb._INDEX_MULTIPLIER = Convert.ToInt32(dr[4]);
				tb._UNDERLYING_INDEX_CD = Convert.ToString(dr[5]);
				tb._CURR = Convert.ToString(dr[6]);
				tb._EFFECTIVE_DT = Convert.ToString(dr[7]);
				tb._MATURITY_DT = Convert.ToString(dr[8]); 
				
				return tb;
			}
			catch(Exception ex)
			{
				throw new Exception(ex.Message);
			}
		}