Example #1
0
		public clsMAST_INDEXOPTION_TB Clone()
		{
			try
			{
				clsMAST_INDEXOPTION_TB cloneTB = new clsMAST_INDEXOPTION_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._OPTION_TYP = this._OPTION_TYP;
				cloneTB._STRIKE = this._STRIKE;
				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);
			}
		}
Example #2
0
		public static clsMAST_INDEXOPTION_TB Create(DataRow dr)
		{
			try
			{
				clsMAST_INDEXOPTION_TB tb = new clsMAST_INDEXOPTION_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._OPTION_TYP = Convert.ToInt32(dr[6]);
				tb._STRIKE = Convert.ToDouble(dr[7]);
				tb._CURR = Convert.ToString(dr[8]);
				tb._EFFECTIVE_DT = Convert.ToString(dr[9]);
				tb._MATURITY_DT = Convert.ToString(dr[10]); 
				
				return tb;
			}
			catch(Exception ex)
			{
				throw new Exception(ex.Message);
			}
		}