コード例 #1
0
		public clsMAST_LEGINFO_FIXED_TB Clone()
		{
			try
			{
				clsMAST_LEGINFO_FIXED_TB cloneTB = new clsMAST_LEGINFO_FIXED_TB();
				
				
				cloneTB._INSTRUMENT_ID = this._INSTRUMENT_ID;
				cloneTB._LEG_TYP = this._LEG_TYP;
				cloneTB._NOTIONAL = this._NOTIONAL;
				cloneTB._CURR = this._CURR;
				cloneTB._EFFECTIVE_DT = this._EFFECTIVE_DT;
				cloneTB._MATURITY_DT = this._MATURITY_DT;
				cloneTB._LEG_TENOR = this._LEG_TENOR;
				cloneTB._FIXED_RATE = this._FIXED_RATE; 
				
				return cloneTB;
			}
			catch(Exception ex)
			{
				throw new Exception(ex.Message);
			}
		}
コード例 #2
0
		public static clsMAST_LEGINFO_FIXED_TB Create(DataRow dr)
		{
			try
			{
				clsMAST_LEGINFO_FIXED_TB tb = new clsMAST_LEGINFO_FIXED_TB();
				
				
				tb._INSTRUMENT_ID = Convert.ToString(dr[0]);
				tb._LEG_TYP = Convert.ToInt32(dr[1]);
				tb._NOTIONAL = Convert.ToDouble(dr[2]);
				tb._CURR = Convert.ToString(dr[3]);
				tb._EFFECTIVE_DT = Convert.ToString(dr[4]);
				tb._MATURITY_DT = Convert.ToString(dr[5]);
				tb._LEG_TENOR = Convert.ToString(dr[6]);
				tb._FIXED_RATE = Convert.ToDouble(dr[7]); 
				
				return tb;
			}
			catch(Exception ex)
			{
				throw new Exception(ex.Message);
			}
		}